X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=blobdiff_plain;f=minimenu%2Fmmcat.h;h=d367a2f5e32c07ebd5a3640cbaa44ce7126f8222;hp=c886f2d3cc93ccb06c98f80efa3eb5df711065d4;hb=dfdfc979e18d84804e0fff5d87bc6c2c1a875e66;hpb=d53e58a30480ca4e5eeec0eb28a72e7642df3dc3 diff --git a/minimenu/mmcat.h b/minimenu/mmcat.h index c886f2d..d367a2f 100644 --- a/minimenu/mmcat.h +++ b/minimenu/mmcat.h @@ -17,6 +17,7 @@ typedef struct _mm_appref_t { // an actual category reference; points to a list of appref's and supplies a tabname, a filesystem mountpoint, etc. typedef struct _mm_category_t { char *catname; // name of the category + char *parent_catname; // if known, parent cat name unsigned int catflags; // flags // current applications @@ -42,7 +43,7 @@ typedef struct _mm_category_t { // try to populate as many cats as necessary void category_init ( void ); // set up; call first! -unsigned char category_push ( char *catname, pnd_disco_t *app, pnd_conf_handle ovrh, char *fspath, unsigned char visiblep ); // catname is not pulled from app, so we can make them up on the fly (ie: "All"); +unsigned char category_push ( char *catname, char *parentcatname, pnd_disco_t *app, pnd_conf_handle ovrh, char *fspath, unsigned char visiblep ); // catname is not pulled from app, so we can make them up on the fly (ie: "All"); void category_dump ( void ); // sort the apprefs void category_freeall ( void ); int cat_sort_score ( mm_category_t *cat, mm_appref_t *s1, mm_appref_t *s2 ); // like strcmp, but used to sort apps by title