e57fe8df62d4206fdf920a8405b6b10fc27e4f72
[pandora-libraries.git] / include / pnd_pxml_names.h
1 #ifndef h_pnd_pxml_names_h
2 #define h_pnd_pxml_names_h
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* <PXML id="..."> ...*/
9 #define PND_PXML_ATTRNAME_UID "id"
10 #define PND_PXML_ATTRNAME_APPDATANAME "appdata"
11
12 /* <application id="123">*/
13 #define PND_PXML_APP "application"
14
15 /* <title lang="..."> */
16 // deprecated - Zaxxon firmware through HF5 (supported for backwards compatibility)
17 #define PND_PXML_ENAME_TITLE "title"
18 #define PND_PXML_ATTRNAME_TITLELANG "lang"
19 // Zaxxon firmware from HF6 onwards
20 #define PND_PXML_NODENAME_TITLES "titles"
21
22 /* <description lang="...">... */
23 // deprecated - Zaxxon firmware through HF5 (supported for backwards compatibility)
24 #define PND_PXML_ENAME_DESCRIPTION "description"
25 #define PND_PXML_ATTRNAME_DESCRLANG "lang"
26 // Zaxxon firmware from HF6 onwards
27 #define PND_PXML_NODENAME_DESCRIPTIONS "descriptions"
28
29 /* <exec background="true" standalone="false" command="..." startdir="..." /> */
30 #define PND_PXML_ENAME_EXEC "exec"
31 #define PND_PXML_ATTRNAME_EXECBG "background"
32 #define PND_PXML_ATTRNAME_EXECSTAL "standalone"
33 #define PND_PXML_ATTRNAME_EXECCMD "command"
34 #define PND_PXML_ATTRNAME_EXECARGS "arguments"
35 #define PND_PXML_ATTRNAME_EXECWD "startdir"
36 #define PND_PXML_ATTRNAME_EXECNOX11 "x11"
37
38 /* <icon src="..." /> */
39 #define PND_PXML_ENAME_ICON "icon"
40 #define PND_PXML_ATTRNAME_ICONSRC "src"
41
42 /* <previewpics>
43  *   <pic src="..." />
44  * </previewpics>
45  */
46 #define PND_PXML_NODENAME_PREVPICS "previewpics"
47 #define PND_PXML_ENAME_PREVPIC "pic"
48 #define PND_PXML_ATTRNAME_PREVPICSRC "src"
49
50 /* <author name="..." website="..." email="..." /> */
51 #define PND_PXML_ENAME_AUTHOR "author"
52 #define PND_PXML_ATTRNAME_AUTHORNAME "name"
53 #define PND_PXML_ATTRNAME_AUTHORWWW "website"
54 #define PND_PXML_ATTRNAME_AUTHOREMAIL "email"
55
56 /* <version major="1" minor="1" release="1" build="2" /> */
57 #define PND_PXML_ENAME_VERSION "version"
58 #define PND_PXML_ATTRNAME_VERMAJOR "major"
59 #define PND_PXML_ATTRNAME_VERMINOR "minor"
60 #define PND_PXML_ATTRNAME_VERREL "release"
61 #define PND_PXML_ATTRNAME_VERBUILD "build"
62
63 /* <osversion major="1" minor="0" release="0" build="0" /> */
64 #define PND_PXML_ENAME_OSVERSION "osversion"
65 #define PND_PXML_ATTRNAME_OSVERMAJOR "major"
66 #define PND_PXML_ATTRNAME_OSVERMINOR "minor"
67 #define PND_PXML_ATTRNAME_OSVERREL "release"
68 #define PND_PXML_ATTRNAME_OSVERBUILD "build"
69
70 /* <categories>
71  *   <category name="...">
72  *     <subcategory name="..." />
73  *   </category>
74  * </categories>
75  */
76 #define PND_PXML_NODENAME_CATS "categories"
77 #define PND_PXML_ENAME_CAT "category"
78 #define PND_PXML_ATTRNAME_CATNAME "name"
79 #define PND_PXML_ENAME_SUBCAT "subcategory"
80 #define PND_PXML_ATTRNAME_SUBCATNAME "name"
81
82 /* <associations>
83  *   <association name="CSS File" filetype="text/css" command="./blah.sh" arguments="-f %s -t css" />
84  * </associations>
85  */
86 #define PND_PXML_NODENAME_ASSOCS "associations"
87 #define PND_PXML_ENAME_ASSOC "association"
88 #define PND_PXML_ATTRNAME_ASSOCNAME "name"
89 #define PND_PXML_ATTRNAME_ASSOCFTYPE "filetype"
90 #define PND_PXML_ATTRNAME_ASSOCCMD "command"
91 #define PND_PXML_ATTRNAME_ASSOCARGS "arguments"
92
93 /* <clockspeed frequency="600" /> */
94 #define PND_PXML_ENAME_CLOCK "clockspeed"
95 #define PND_PXML_ATTRNAME_CLOCKFREQ "frequency"
96
97 /* <package id="foo-package" name="foo" released="1/1/0001"/> */
98 #define PND_PXML_ENAME_PACKAGE "package"
99 #define PND_PXML_ATTRNAME_PACKAGE_ID "id"
100 #define PND_PXML_ATTRNAME_PACKAGE_NAME "name"
101 #define PND_PXML_ATTRNAME_PACKAGE_DATE "released"
102
103 /* <mkdir>
104  *   <dir path="..." />
105  * </mkdir>
106  */
107 #define PND_PXML_NODENAME_MKDIR "mkdir"
108 #define PND_PXML_ENAME_MKDIR "dir"
109 #define PND_PXML_ATTRNAME_MKDIRPATH "path"
110
111 /* <info name="AwesomeGame Setup" type="txt/html" src="index.html"/>
112  */
113 #define PND_PXML_ENAME_INFO "info"
114 #define PND_PXML_ATTRNAME_INFONAME "name"
115 #define PND_PXML_ATTRNAME_INFOSRC "src"
116 #define PND_PXML_ATTRNAME_INFOTYPE "type"
117
118 #ifdef __cplusplus
119 } // extern "C"
120 #endif
121
122 #endif /* ifndef h_pnd_pxml_names_h */