pndnotifyd: fix some crashes
[pandora-libraries.git] / include / pnd_pxml_names.h
index c476c21..70668a4 100644 (file)
@@ -7,25 +7,34 @@ extern "C" {
 
 /* <PXML id="..."> ...*/
 #define PND_PXML_ATTRNAME_UID "id"
+#define PND_PXML_ATTRNAME_APPDATANAME "appdata"
 
 /* <application id="123">*/
 #define PND_PXML_APP "application"
 
 /* <title lang="..."> */
+// deprecated - Zaxxon firmware through HF5 (supported for backwards compatibility)
 #define PND_PXML_ENAME_TITLE "title"
 #define PND_PXML_ATTRNAME_TITLELANG "lang"
+// Zaxxon firmware from HF6 onwards
+#define PND_PXML_NODENAME_TITLES "titles"
 
 /* <description lang="...">... */
+// deprecated - Zaxxon firmware through HF5 (supported for backwards compatibility)
 #define PND_PXML_ENAME_DESCRIPTION "description"
 #define PND_PXML_ATTRNAME_DESCRLANG "lang"
+// Zaxxon firmware from HF6 onwards
+#define PND_PXML_NODENAME_DESCRIPTIONS "descriptions"
 
 /* <exec background="true" standalone="false" command="..." startdir="..." /> */
 #define PND_PXML_ENAME_EXEC "exec"
 #define PND_PXML_ATTRNAME_EXECBG "background"
 #define PND_PXML_ATTRNAME_EXECSTAL "standalone"
 #define PND_PXML_ATTRNAME_EXECCMD "command"
+#define PND_PXML_ATTRNAME_EXECARGS "arguments"
 #define PND_PXML_ATTRNAME_EXECWD "startdir"
-#define PND_PXML_ATTRNAME_EXECNOX11 "no_x11"
+#define PND_PXML_ATTRNAME_EXECNOX11 "x11"
+#define PND_PXML_ATTRNAME_DASHDASH "extraarguments"
 
 /* <icon src="..." /> */
 #define PND_PXML_ENAME_ICON "icon"
@@ -72,21 +81,23 @@ extern "C" {
 #define PND_PXML_ATTRNAME_SUBCATNAME "name"
 
 /* <associations>
- *   <association name="CSS File" filetype="text/css" exec="-f %s -t css" />
+ *   <association name="CSS File" filetype="text/css" command="./blah.sh" arguments="-f %s -t css" />
  * </associations>
  */
 #define PND_PXML_NODENAME_ASSOCS "associations"
 #define PND_PXML_ENAME_ASSOC "association"
 #define PND_PXML_ATTRNAME_ASSOCNAME "name"
 #define PND_PXML_ATTRNAME_ASSOCFTYPE "filetype"
+#define PND_PXML_ATTRNAME_ASSOCCMD "command"
 #define PND_PXML_ATTRNAME_ASSOCARGS "arguments"
 
 /* <clockspeed frequency="600" /> */
 #define PND_PXML_ENAME_CLOCK "clockspeed"
 #define PND_PXML_ATTRNAME_CLOCKFREQ "frequency"
 
-/* <package name="foo" released="1/1/0001"/> */
+/* <package id="foo-package" name="foo" released="1/1/0001"/> */
 #define PND_PXML_ENAME_PACKAGE "package"
+#define PND_PXML_ATTRNAME_PACKAGE_ID "id"
 #define PND_PXML_ATTRNAME_PACKAGE_NAME "name"
 #define PND_PXML_ATTRNAME_PACKAGE_DATE "released"
 
@@ -98,6 +109,13 @@ extern "C" {
 #define PND_PXML_ENAME_MKDIR "dir"
 #define PND_PXML_ATTRNAME_MKDIRPATH "path"
 
+/* <info name="AwesomeGame Setup" type="txt/html" src="index.html"/>
+ */
+#define PND_PXML_ENAME_INFO "info"
+#define PND_PXML_ATTRNAME_INFONAME "name"
+#define PND_PXML_ATTRNAME_INFOSRC "src"
+#define PND_PXML_ATTRNAME_INFOTYPE "type"
+
 #ifdef __cplusplus
 } // extern "C"
 #endif