Large change, to support multiple applications within a single PXML.xml file.
[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
11 /* <application id="123">*/
12 #define PND_PXML_APP "application"
13
14 /* <title lang="..."> */
15 #define PND_PXML_ENAME_TITLE "title"
16 #define PND_PXML_ATTRNAME_TITLELANG "lang"
17
18 /* <description lang="...">... */
19 #define PND_PXML_ENAME_DESCRIPTION "description"
20 #define PND_PXML_ATTRNAME_DESCRLANG "lang"
21
22 /* <exec background="true" standalone="false" command="..." startdir="..." /> */
23 #define PND_PXML_ENAME_EXEC "exec"
24 #define PND_PXML_ATTRNAME_EXECBG "background"
25 #define PND_PXML_ATTRNAME_EXECSTAL "standalone"
26 #define PND_PXML_ATTRNAME_EXECCMD "command"
27 #define PND_PXML_ATTRNAME_EXECWD "startdir"
28 #define PND_PXML_ATTRNAME_EXECNOX11 "no_x11"
29
30 /* <icon src="..." /> */
31 #define PND_PXML_ENAME_ICON "icon"
32 #define PND_PXML_ATTRNAME_ICONSRC "src"
33
34 /* <previewpics>
35  *   <pic src="..." />
36  * </previewpics>
37  */
38 #define PND_PXML_NODENAME_PREVPICS "previewpics"
39 #define PND_PXML_ENAME_PREVPIC "pic"
40 #define PND_PXML_ATTRNAME_PREVPICSRC "src"
41
42 /* <author name="..." website="..." email="..." /> */
43 #define PND_PXML_ENAME_AUTHOR "author"
44 #define PND_PXML_ATTRNAME_AUTHORNAME "name"
45 #define PND_PXML_ATTRNAME_AUTHORWWW "website"
46 #define PND_PXML_ATTRNAME_AUTHOREMAIL "email"
47
48 /* <version major="1" minor="1" release="1" build="2" /> */
49 #define PND_PXML_ENAME_VERSION "version"
50 #define PND_PXML_ATTRNAME_VERMAJOR "major"
51 #define PND_PXML_ATTRNAME_VERMINOR "minor"
52 #define PND_PXML_ATTRNAME_VERREL "release"
53 #define PND_PXML_ATTRNAME_VERBUILD "build"
54
55 /* <osversion major="1" minor="0" release="0" build="0" /> */
56 #define PND_PXML_ENAME_OSVERSION "osversion"
57 #define PND_PXML_ATTRNAME_OSVERMAJOR "major"
58 #define PND_PXML_ATTRNAME_OSVERMINOR "minor"
59 #define PND_PXML_ATTRNAME_OSVERREL "release"
60 #define PND_PXML_ATTRNAME_OSVERBUILD "build"
61
62 /* <categories>
63  *   <category name="...">
64  *     <subcategory name="..." />
65  *   </category>
66  * </categories>
67  */
68 #define PND_PXML_NODENAME_CATS "categories"
69 #define PND_PXML_ENAME_CAT "category"
70 #define PND_PXML_ATTRNAME_CATNAME "name"
71 #define PND_PXML_ENAME_SUBCAT "subcategory"
72 #define PND_PXML_ATTRNAME_SUBCATNAME "name"
73
74 /* <associations>
75  *   <association name="CSS File" filetype="text/css" exec="-f %s -t css" />
76  * </associations>
77  */
78 #define PND_PXML_NODENAME_ASSOCS "associations"
79 #define PND_PXML_ENAME_ASSOC "association"
80 #define PND_PXML_ATTRNAME_ASSOCNAME "name"
81 #define PND_PXML_ATTRNAME_ASSOCFTYPE "filetype"
82 #define PND_PXML_ATTRNAME_ASSOCARGS "arguments"
83
84 /* <clockspeed frequency="600" /> */
85 #define PND_PXML_ENAME_CLOCK "clockspeed"
86 #define PND_PXML_ATTRNAME_CLOCKFREQ "frequency"
87
88 /* <package name="foo" released="1/1/0001"/> */
89 #define PND_PXML_ENAME_PACKAGE "package"
90 #define PND_PXML_ATTRNAME_PACKAGE_NAME "name"
91 #define PND_PXML_ATTRNAME_PACKAGE_DATE "released"
92
93 /* <mkdir>
94  *   <dir path="..." />
95  * </mkdir>
96  */
97 #define PND_PXML_NODENAME_MKDIR "mkdir"
98 #define PND_PXML_ENAME_MKDIR "dir"
99 #define PND_PXML_ATTRNAME_MKDIRPATH "path"
100
101 #ifdef __cplusplus
102 } // extern "C"
103 #endif
104
105 #endif /* ifndef h_pnd_pxml_names_h */