![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | XdgDirTimeList |
struct | XdgCallbackList |
Typedefs | |
typedef struct XdgDirTimeList | XdgDirTimeList |
typedef struct XdgCallbackList | XdgCallbackList |
typedef int(* | XdgDirectoryFunc) (const char *directory, void *user_data) |
Enumerations | |
enum | { XDG_CHECKED_UNCHECKED , XDG_CHECKED_VALID , XDG_CHECKED_INVALID } |
Functions | |
const char * | xdg_mime_get_mime_type_for_data (const void *data, size_t len, int *result_prio) |
const char * | xdg_mime_get_mime_type_for_file (const char *file_name, struct stat *statbuf) |
const char * | xdg_mime_get_mime_type_from_file_name (const char *file_name) |
int | xdg_mime_get_mime_types_from_file_name (const char *file_name, const char *mime_types[], int n_mime_types) |
int | xdg_mime_is_valid_mime_type (const char *mime_type) |
void | xdg_mime_shutdown (void) |
int | xdg_mime_get_max_buffer_extents (void) |
const char * | _xdg_mime_unalias_mime_type (const char *mime_type) |
const char * | xdg_mime_unalias_mime_type (const char *mime_type) |
int | _xdg_mime_mime_type_equal (const char *mime_a, const char *mime_b) |
int | xdg_mime_mime_type_equal (const char *mime_a, const char *mime_b) |
int | xdg_mime_media_type_equal (const char *mime_a, const char *mime_b) |
int | _xdg_mime_mime_type_subclass (const char *mime, const char *base) |
int | xdg_mime_mime_type_subclass (const char *mime, const char *base) |
char ** | xdg_mime_list_mime_parents (const char *mime) |
const char ** | xdg_mime_get_mime_parents (const char *mime) |
void | xdg_mime_dump (void) |
int | xdg_mime_register_reload_callback (XdgMimeCallback callback, void *data, XdgMimeDestroy destroy) |
void | xdg_mime_remove_callback (int callback_id) |
const char * | xdg_mime_get_icon (const char *mime) |
const char * | xdg_mime_get_generic_icon (const char *mime) |
Variables | |
XdgMimeCache ** | _caches = NULL |
const char | xdg_mime_type_unknown [] = "application/octet-stream" |
const char | xdg_mime_type_empty [] = "application/x-zerosize" |
const char | xdg_mime_type_textplain [] = "text/plain" |
typedef struct XdgCallbackList XdgCallbackList |
typedef int(* XdgDirectoryFunc) (const char *directory, void *user_data) |
typedef struct XdgDirTimeList XdgDirTimeList |
anonymous enum |
int _xdg_mime_mime_type_equal | ( | const char * | mime_a, |
const char * | mime_b | ||
) |
Definition at line 706 of file xdgmime.c.
References _xdg_mime_unalias_mime_type().
Referenced by _xdg_mime_magic_lookup_data(), and xdg_mime_mime_type_equal().
int _xdg_mime_mime_type_subclass | ( | const char * | mime, |
const char * | base | ||
) |
Definition at line 770 of file xdgmime.c.
References _caches, _xdg_mime_cache_mime_type_subclass(), _xdg_mime_mime_type_subclass(), _xdg_mime_parent_list_lookup(), _xdg_mime_unalias_mime_type(), and xdg_mime_media_type_equal().
Referenced by _xdg_mime_mime_type_subclass(), and xdg_mime_mime_type_subclass().
const char * _xdg_mime_unalias_mime_type | ( | const char * | mime_type | ) |
Definition at line 684 of file xdgmime.c.
References _caches, _xdg_mime_alias_list_lookup(), and _xdg_mime_cache_unalias_mime_type().
Referenced by _xdg_mime_mime_type_equal(), _xdg_mime_mime_type_subclass(), xdg_mime_get_mime_parents(), and xdg_mime_unalias_mime_type().
void xdg_mime_dump | ( | void | ) |
Definition at line 857 of file xdgmime.c.
References _xdg_glob_hash_dump(), _xdg_mime_alias_list_dump(), _xdg_mime_cache_glob_dump(), and _xdg_mime_parent_list_dump().
const char * xdg_mime_get_generic_icon | ( | const char * | mime | ) |
Definition at line 937 of file xdgmime.c.
References _caches, _xdg_mime_cache_get_generic_icon(), and _xdg_mime_icon_list_lookup().
const char * xdg_mime_get_icon | ( | const char * | mime | ) |
Definition at line 926 of file xdgmime.c.
References _caches, _xdg_mime_cache_get_icon(), and _xdg_mime_icon_list_lookup().
int xdg_mime_get_max_buffer_extents | ( | void | ) |
Definition at line 673 of file xdgmime.c.
References _caches, _xdg_mime_cache_get_max_buffer_extents(), and _xdg_mime_magic_get_buffer_extents().
const char ** xdg_mime_get_mime_parents | ( | const char * | mime | ) |
Definition at line 845 of file xdgmime.c.
References _xdg_mime_parent_list_lookup(), and _xdg_mime_unalias_mime_type().
Referenced by xdg_mime_list_mime_parents().
const char * xdg_mime_get_mime_type_for_data | ( | const void * | data, |
size_t | len, | ||
int * | result_prio | ||
) |
Definition at line 466 of file xdgmime.c.
References _caches, _xdg_binary_or_text_fallback(), _xdg_mime_cache_get_mime_type_for_data(), and _xdg_mime_magic_lookup_data().
const char * xdg_mime_get_mime_type_for_file | ( | const char * | file_name, |
struct stat * | statbuf | ||
) |
Definition at line 493 of file xdgmime.c.
References _caches, _xdg_binary_or_text_fallback(), _xdg_get_base_name(), _xdg_glob_hash_lookup_file_name(), _xdg_mime_cache_get_mime_type_for_file(), _xdg_mime_magic_get_buffer_extents(), _xdg_mime_magic_lookup_data(), and _xdg_utf8_validate().
const char * xdg_mime_get_mime_type_from_file_name | ( | const char * | file_name | ) |
Definition at line 572 of file xdgmime.c.
References _caches, _xdg_glob_hash_lookup_file_name(), and _xdg_mime_cache_get_mime_type_from_file_name().
int xdg_mime_get_mime_types_from_file_name | ( | const char * | file_name, |
const char * | mime_types[], | ||
int | n_mime_types | ||
) |
Definition at line 588 of file xdgmime.c.
References _caches, _xdg_glob_hash_lookup_file_name(), and _xdg_mime_cache_get_mime_types_from_file_name().
int xdg_mime_is_valid_mime_type | ( | const char * | mime_type | ) |
Definition at line 601 of file xdgmime.c.
References _xdg_utf8_validate().
char ** xdg_mime_list_mime_parents | ( | const char * | mime | ) |
Definition at line 821 of file xdgmime.c.
References _caches, _xdg_mime_cache_list_mime_parents(), and xdg_mime_get_mime_parents().
int xdg_mime_media_type_equal | ( | const char * | mime_a, |
const char * | mime_b | ||
) |
Definition at line 730 of file xdgmime.c.
Referenced by _xdg_mime_cache_mime_type_subclass(), and _xdg_mime_mime_type_subclass().
int xdg_mime_mime_type_equal | ( | const char * | mime_a, |
const char * | mime_b | ||
) |
Definition at line 721 of file xdgmime.c.
References _xdg_mime_mime_type_equal().
int xdg_mime_mime_type_subclass | ( | const char * | mime, |
const char * | base | ||
) |
Definition at line 812 of file xdgmime.c.
References _xdg_mime_mime_type_subclass().
int xdg_mime_register_reload_callback | ( | XdgMimeCallback | callback, |
void * | data, | ||
XdgMimeDestroy | destroy | ||
) |
Definition at line 877 of file xdgmime.c.
References XdgCallbackList::callback, XdgCallbackList::callback_id, XdgCallbackList::data, XdgCallbackList::destroy, XdgCallbackList::next, and XdgCallbackList::prev.
void xdg_mime_remove_callback | ( | int | callback_id | ) |
Definition at line 901 of file xdgmime.c.
References XdgCallbackList::callback_id, XdgCallbackList::data, XdgCallbackList::destroy, XdgCallbackList::next, and XdgCallbackList::prev.
void xdg_mime_shutdown | ( | void | ) |
Definition at line 609 of file xdgmime.c.
References _caches, _xdg_glob_hash_free(), _xdg_mime_alias_list_free(), _xdg_mime_cache_unref(), _xdg_mime_icon_list_free(), _xdg_mime_magic_free(), _xdg_mime_parent_list_free(), XdgCallbackList::callback, XdgCallbackList::data, and XdgCallbackList::next.
const char * xdg_mime_unalias_mime_type | ( | const char * | mime_type | ) |
Definition at line 698 of file xdgmime.c.
References _xdg_mime_unalias_mime_type().
Referenced by _xdg_mime_cache_list_mime_parents().
XdgMimeCache** _caches = NULL |
Definition at line 63 of file xdgmime.c.
Referenced by _xdg_mime_cache_get_max_buffer_extents(), _xdg_mime_cache_glob_dump(), _xdg_mime_cache_list_mime_parents(), _xdg_mime_cache_mime_type_subclass(), _xdg_mime_mime_type_subclass(), _xdg_mime_unalias_mime_type(), xdg_mime_get_generic_icon(), xdg_mime_get_icon(), xdg_mime_get_max_buffer_extents(), xdg_mime_get_mime_type_for_data(), xdg_mime_get_mime_type_for_file(), xdg_mime_get_mime_type_from_file_name(), xdg_mime_get_mime_types_from_file_name(), xdg_mime_list_mime_parents(), and xdg_mime_shutdown().
const char xdg_mime_type_empty[] = "application/x-zerosize" |