5 #include "freedesktop_cats.h"
7 // folks want to limit categories to official ones, so okay.
8 // http://standards.freedesktop.org/menu-spec/latest/apa.html
11 char *freedesktop_approved_cats[] = {
98 "ArtificialIntelligence",
151 unsigned char freedesktop_check_cat ( char *name ) {
152 char **p = freedesktop_approved_cats;
156 if ( strcasecmp ( *p, name ) == 0 ) {
169 printf ( "check Applet (should be 1) -> %d\n", freedesktop_check_cat ( "Applet" ) );
170 printf ( "check Education (should be 1) -> %d\n", freedesktop_check_cat ( "Education" ) );
171 printf ( "check Mofo (should be 0) -> %d\n", freedesktop_check_cat ( "Mofo" ) );