Split disco_t -> path_to_object into object_path and object_filename so it is more...
[pandora-libraries.git] / include / pnd_apps.h
1
2 #ifndef h_pnd_apps_h
3 #define h_pnd_apps_h
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 #define PND_APPS_SEARCHPATH "/mnt/sd1/pandora/apps:/mnt/sd2/pandora/apps:./testdata/apps"
10 #define PND_APPS_KEY "autodiscovery.searchpath"
11
12 #define PND_PNDRUN_SEARCHPATH_KEY "pnd.searchpath"
13 #define PND_PNDRUN_KEY "pnd.runscript"
14 #define PND_PNDRUN_FILENAME "pnd_run.sh"
15 #define PND_PNDRUN_DEFAULT "./testdata/scripts/pnd_run.sh"
16
17 #define PND_PXML_OVERRIDE_SEARCHPATH "~/pxml-overrides"
18 #define PND_PXML_OVERRIDE_KEY "overrides.searchpath"
19
20 #define PND_MOUNT_PATH "/mnt/apps/" /* all mounted PND images should be here.. /mnt/apps/myapp/... */
21
22 // .desktop support
23 #define PND_DOTDESKTOP_KEY "dotfiles.dotdesktoppath"
24 #define PND_DOTDESKTOP_DEFAULT "/usr/share/applications"
25
26 // apps
27 #define PND_DEFAULT_WORKDIR "/tmp"
28
29 /* pnd_apps_exec() is used to blindly launch an app, be it a .pnd file bundle or a plain executable
30  * (shell, bin, whatever.) pndrun specifies the full path to the pnd_run sh script, which should be
31  * found using searchpaths and locates.. see locatetest.c for a sample
32  * NOTE: Use pnd_locate function to locate the pnd_run, for example
33  * NOTE: clock speed will be set prior to invoking the script, and set back on exit
34  * NOTE: No values can be except clockspeed; a 0 clockspeed means 'leave alone'. Set startdoir to "." instead of NULL.
35  * fork() is implied; calling this function does not kill this process :)
36  * NOTE: PAss in the full path to the awesomeapp.pnd or to the directory containing PXML.xml (not the PXML.xml itself.)
37  */
38 unsigned char pnd_apps_exec ( char *pndrun, char *fullpath, char *unique_id, char *rel_exec, char *rel_startdir, unsigned int clockspeed );
39
40 #ifdef __cplusplus
41 } /* "C" */
42 #endif
43
44 #endif