a9638ce582854c537abfa7b9200dd9db308c3e4f
[pandora-libraries.git] / include / pnd_utility.h
1
2 #ifndef h_pnd_utility_h
3 #define h_pnd_utility_h
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 // given a malloc'd pointer to a string, expand ~ to $HOME as often as it is found, returning a
10 // new string; the old string is destroyed in the process, or returned as-is.
11 char *pnd_expand_tilde ( char *freeable_buffer );
12
13 // arbtrary execute function; fire and forget really
14 void pnd_exec_no_wait_1 ( char *fullpath, char *arg1 );
15
16 // pnd_pxml_get_always() will work against a PXML.xml file or a foo.pnd app-bundle and return
17 // the resulting PXML structure, or fail; ie: It should be handy to avoid the user having to
18 // do the 'what type is this, and if-this-or-that' themselves.
19 //   NOTE: Does _NOT_ automatically pick up PXML-overrides; you can call that function if you want
20 pnd_pxml_handle pnd_pxml_get_by_path ( char *fullpath );
21
22 #ifdef __cplusplus
23 } /* "C" */
24 #endif
25
26 #endif