Initial commit of libpnd 0.0.5 so we cna restart with GIT
[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 "pnd.searchpath"
13 #define PND_PNDRUN_KEY "pnd.default"
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 /* pnd_apps_exec() is used to blindly launch an app, be it a .pnd file bundle or a plain executable
23  * (shell, bin, whatever.) pndrun specifies the full path to the pnd_run sh script, which should be
24  * found using searchpaths and locates.. see locatetest.c for a sample
25  *   if fullpath ends in PXML_FILENAME (PXML.xml) then pnd_run will be invoked (after extracting goodies
26  *     from PXML file as appropriate)
27  *   if fullpath ends in .pnd then pnd_run will be invoked (after inspecting embedded PXML or best-guess)
28  *   otherwise the fullpath will be executed as-is
29  */
30 signed char pnd_apps_exec ( char *fullpath, char *pndrun );
31
32 #ifdef __cplusplus
33 } /* "C" */
34 #endif
35
36 #endif