libpnd; supporting newer <titles> and <descriptions> blocks (with backwards compat...
[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" exec="-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_ASSOCARGS "arguments"
91
92 /* <clockspeed frequency="600" /> */
93 #define PND_PXML_ENAME_CLOCK "clockspeed"
94 #define PND_PXML_ATTRNAME_CLOCKFREQ "frequency"
95
96 /* <package name="foo" released="1/1/0001"/> */
97 #define PND_PXML_ENAME_PACKAGE "package"
98 #define PND_PXML_ATTRNAME_PACKAGE_NAME "name"
99 #define PND_PXML_ATTRNAME_PACKAGE_DATE "released"
100
101 /* <mkdir>
102  *   <dir path="..." />
103  * </mkdir>
104  */
105 #define PND_PXML_NODENAME_MKDIR "mkdir"
106 #define PND_PXML_ENAME_MKDIR "dir"
107 #define PND_PXML_ATTRNAME_MKDIRPATH "path"
108
109 /* <info name="AwesomeGame Setup" type="txt/html" src="index.html"/>
110  */
111 #define PND_PXML_ENAME_INFO "info"
112 #define PND_PXML_ATTRNAME_INFONAME "name"
113 #define PND_PXML_ATTRNAME_INFOSRC "src"
114 #define PND_PXML_ATTRNAME_INFOTYPE "type"
115
116 #ifdef __cplusplus
117 } // extern "C"
118 #endif
119
120 #endif /* ifndef h_pnd_pxml_names_h */