![]()  | 
  
    libxputty 0.1
    
   | 
 
Go to the source code of this file.
Typedefs | |
| typedef struct XdgGlobHash | XdgGlobHash | 
Enumerations | |
| enum | XdgGlobType { XDG_GLOB_LITERAL , XDG_GLOB_SIMPLE , XDG_GLOB_FULL } | 
Functions | |
| void | _xdg_mime_glob_read_from_file (XdgGlobHash *glob_hash, const char *file_name, int version_two) | 
| XdgGlobHash * | _xdg_glob_hash_new (void) | 
| void | _xdg_glob_hash_free (XdgGlobHash *glob_hash) | 
| int | _xdg_glob_hash_lookup_file_name (XdgGlobHash *glob_hash, const char *text, const char *mime_types[], int n_mime_types) | 
| void | _xdg_glob_hash_append_glob (XdgGlobHash *glob_hash, const char *glob, const char *mime_type, int weight, int case_sensitive) | 
| XdgGlobType | _xdg_glob_determine_type (const char *glob) | 
| void | _xdg_glob_hash_dump (XdgGlobHash *glob_hash) | 
| typedef struct XdgGlobHash XdgGlobHash | 
Definition at line 33 of file xdgmimeglob.h.
| enum XdgGlobType | 
| Enumerator | |
|---|---|
| XDG_GLOB_LITERAL | |
| XDG_GLOB_SIMPLE | |
| XDG_GLOB_FULL | |
Definition at line 35 of file xdgmimeglob.h.
| XdgGlobType _xdg_glob_determine_type | ( | const char * | glob | ) | 
Definition at line 519 of file xdgmimeglob.c.
References XDG_GLOB_FULL, XDG_GLOB_LITERAL, and XDG_GLOB_SIMPLE.
Referenced by _xdg_glob_hash_append_glob().
| void _xdg_glob_hash_append_glob | ( | XdgGlobHash * | glob_hash, | 
| const char * | glob, | ||
| const char * | mime_type, | ||
| int | weight, | ||
| int | case_sensitive | ||
| ) | 
Definition at line 545 of file xdgmimeglob.c.
References _xdg_glob_determine_type(), XdgGlobHash::full_list, XdgGlobHash::literal_list, XdgGlobHash::simple_node, XDG_GLOB_FULL, XDG_GLOB_LITERAL, and XDG_GLOB_SIMPLE.
Referenced by _xdg_mime_glob_read_from_file().
| void _xdg_glob_hash_dump | ( | XdgGlobHash * | glob_hash | ) | 
Definition at line 573 of file xdgmimeglob.c.
References XdgGlobList::data, XdgGlobHash::full_list, XdgGlobHash::literal_list, XdgGlobList::mime_type, XdgGlobList::next, XdgGlobHash::simple_node, and XdgGlobList::weight.
Referenced by xdg_mime_dump().
| void _xdg_glob_hash_free | ( | XdgGlobHash * | glob_hash | ) | 
Definition at line 510 of file xdgmimeglob.c.
References XdgGlobHash::full_list, XdgGlobHash::literal_list, and XdgGlobHash::simple_node.
Referenced by xdg_mime_shutdown().
| int _xdg_glob_hash_lookup_file_name | ( | XdgGlobHash * | glob_hash, | 
| const char * | text, | ||
| const char * | mime_types[], | ||
| int | n_mime_types | ||
| ) | 
Definition at line 404 of file xdgmimeglob.c.
References XdgGlobList::case_sensitive, XdgGlobList::data, XdgGlobHash::full_list, XdgGlobHash::literal_list, MimeWeight::mime, XdgGlobList::mime_type, XdgGlobList::next, XdgGlobHash::simple_node, MimeWeight::weight, and XdgGlobList::weight.
Referenced by xdg_mime_get_mime_type_for_file(), xdg_mime_get_mime_type_from_file_name(), and xdg_mime_get_mime_types_from_file_name().
| XdgGlobHash * _xdg_glob_hash_new | ( | void | ) | 
Definition at line 484 of file xdgmimeglob.c.
| void _xdg_mime_glob_read_from_file | ( | XdgGlobHash * | glob_hash, | 
| const char * | file_name, | ||
| int | version_two | ||
| ) | 
Definition at line 610 of file xdgmimeglob.c.
References _xdg_glob_hash_append_glob().