2 #ifndef h_mmcustom_cats_h
3 #define h_mmcustom_cats_h
5 #define MMCUSTOM_CATS_MAX 255
6 #define MMCUSTOM_CATS_PREF_FILENAME ".mmcats.conf"
8 #define MMCUSTOM_CATS_SECTION "custom_categories"
10 #define MMCUSTOM_CATS_NOCAT "*parent*"
17 extern mmcustom_cat_t mmcustom_complete[];
18 extern unsigned int mmcustom_count;
20 unsigned char mmcustom_setup ( void ); // load
21 void mmcustom_shutdown ( void ); // unload
22 unsigned char mmcustom_is_ready ( void );
24 unsigned char mmcustom_write ( char *fullpath /* if NULL, uses canonical location */ ); // save
25 char *mmcustom_determine_path ( void );
27 mmcustom_cat_t *mmcustom_query ( char *catname, char *parentcatname ); // parentcatname NULL for parents
28 unsigned int mmcustom_subcount ( char *parentcatname ); // how many custom subcats of the named cat (FD or custom)
30 mmcustom_cat_t *mmcustom_register ( char *catname, char *parentcatname );
31 void mmcustom_unregister ( char *catname, char *parentcatname );
33 unsigned int mmcustom_count_subcats ( char *catname );