change one comment in pnd_pxml.h to be more right
[pandora-libraries.git] / include / pnd_pxml.h
index f381dde..1cc2df3 100644 (file)
@@ -87,12 +87,22 @@ char *pnd_pxml_get_clockspeed ( pnd_pxml_handle h );
 char *pnd_pxml_get_background ( pnd_pxml_handle h );
 char *pnd_pxml_get_startdir ( pnd_pxml_handle h );
 char *pnd_pxml_get_mkdir ( pnd_pxml_handle h );
+char *pnd_pxml_get_info_name ( pnd_pxml_handle h );
+char *pnd_pxml_get_info_type ( pnd_pxml_handle h );
+char *pnd_pxml_get_info_src ( pnd_pxml_handle h );
 
 // for 'set' functions, pass NULL value to delete existing value without setting new one
 void pnd_pxml_set_app_name ( pnd_pxml_handle h, char *v );
 
 /* utilities
  */
+typedef enum {
+  pnd_pxml_x11_error = 0,
+  pnd_pxml_x11_required,
+  pnd_pxml_x11_ignored,
+  pnd_pxml_x11_stop
+} pnd_pxml_x11_req_e;
+pnd_pxml_x11_req_e pnd_pxml_get_x11 ( char *pxmlvalue ); // returns error, required, ignored, stop hint
 unsigned char pnd_is_pxml_valid_app ( pnd_pxml_handle h ); // returns 1 when pxml seems like a valid application
 unsigned char pnd_pxml_is_affirmative ( char *v ); // return 1 for 'Y' or '!'
 
@@ -104,7 +114,7 @@ typedef struct
 
 typedef struct
 {
-        unsigned char subapp_number; // 0 for 'only app'; 1+ for <application> # .. first <application> is 1.
+        unsigned char subapp_number; // 0+ for <application> # .. first <application> is 0
        pnd_localized_string_t *titles;
        int titles_c;
        int titles_alloc_c;
@@ -151,6 +161,10 @@ typedef struct
        char *package_release_date;
         char *mkdir_sp; // a colon separated list of paths to be mkdir'd (silently fail) when pnd is autodiscovered. path is always relative to the root of the hosting device.
 
+        char *info_name;      // should be a struct..
+        char *info_filename;
+        char *info_type;
+
 }  pnd_pxml_t;
 
 #ifdef __cplusplus