+// return the found category, if ..
+// name matches catname AND
+// parent is NULL, or
+// parent is value and matches cats parent.
+// ex:
+// If you're looking for Game/NULL, you'll find it.
+// If you're looking for Game/Emulator, you'll find it.
+// If you're looking for Emulator/NULL you WILL NOT find it.
+freedesktop_cat_t *freedesktop_category_query ( char *name, char *parentcatname ) {