![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | XdgGlobHashNode |
struct | XdgGlobList |
struct | XdgGlobHash |
struct | MimeWeight |
Typedefs | |
typedef struct XdgGlobHashNode | XdgGlobHashNode |
typedef struct XdgGlobList | XdgGlobList |
Functions | |
int | _xdg_glob_hash_lookup_file_name (XdgGlobHash *glob_hash, const char *file_name, const char *mime_types[], int n_mime_types) |
XdgGlobHash * | _xdg_glob_hash_new (void) |
void | _xdg_glob_hash_free (XdgGlobHash *glob_hash) |
XdgGlobType | _xdg_glob_determine_type (const char *glob) |
void | _xdg_glob_hash_append_glob (XdgGlobHash *glob_hash, const char *glob, const char *mime_type, int weight, int case_sensitive) |
void | _xdg_glob_hash_dump (XdgGlobHash *glob_hash) |
void | _xdg_mime_glob_read_from_file (XdgGlobHash *glob_hash, const char *file_name, int version_two) |
typedef struct XdgGlobHashNode XdgGlobHashNode |
Definition at line 48 of file xdgmimeglob.c.
typedef struct XdgGlobList XdgGlobList |
Definition at line 49 of file xdgmimeglob.c.
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 * | file_name, | ||
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().