// another struct? Have always intended discovery_t to have minimal members.. just enough to lead to an
// application (PXML, xecutable, name); if the apps want more details, they can use the pnd_pxml code to
// fetch the full PXML and get all the details. But I think we got out of control here :)
+// NOTE: We really need to rework disco-t so it can include non-english titles/desc; perhaps more info as optional,
+// or a name/value pairing system so it can have extra data in it, without a complex structure.
typedef struct {
// base
unsigned char object_type; // see enum above
- char *path_to_object; // full path to the PXML.xml or awesomeapp.pnd file
+ char *object_path; // directory containing pnd or PXML.xml (does not include filename)
+ char *object_filename; // filename within object_path of the app: the PXML.xml or awesomeapp.pnd file itself
unsigned int pnd_icon_pos; // offset to the byte after end of PXML in a pnd file (should be icon if present)
- // strdup'd from PXML
+ // strdup'd from PXML -- hey, who was the idiot who thought it was a reat idea not to just re-use the pxml-struct?
char *title_en;
+ char *desc_en;
char *unique_id;
char *icon;
char *exec;
- char *main_category;
char *clockspeed;
char *startdir;
+ char *option_no_x11;
+ char *main_category;
+ char *main_category1;
+ char *main_category2;
+ char *alt_category;
+ char *alt_category1;
+ char *alt_category2;
+ char *preview_pic1;
+ char *preview_pic2;
+ char *mkdir_sp;
} pnd_disco_t;
void pnd_disco_destroy ( pnd_disco_t *p ); // a function name that simply could not be avoided
-// emit_dotdesktop() will determine a filename and create a FILENAME.desktop file in the targetpath
-// TODO: Copy the icon into this directory as well, if its source is a .pnd or info is in the dico struct
-unsigned char pnd_emit_dotdesktop ( char *targetpath, char *pndrun, pnd_disco_t *p );
-
-// emit_icon() will attempt to copy the icon from a PXML directory, or from a pnd file if appended,
-// to the given directory; returns 1 on sucess, otherwise is a fail.
-unsigned char pnd_emit_icon ( char *targetpath, pnd_disco_t *p );
-
// TODO: A way to release the disco-lists and reclaim RAM :)
#ifdef __cplusplus