40
40
#define XDG_ENTRY(func) _XDG_ENTRY2(XDG_PREFIX,func)
41
41
#define _XDG_ENTRY2(prefix,func) _XDG_ENTRY3(prefix,func)
42
42
#define _XDG_ENTRY3(prefix,func) prefix##_##func
44
#define XDG_RESERVED_ENTRY(func) _XDG_RESERVED_ENTRY2(XDG_PREFIX,func)
45
#define _XDG_RESERVED_ENTRY2(prefix,func) _XDG_RESERVED_ENTRY3(prefix,func)
46
#define _XDG_RESERVED_ENTRY3(prefix,func) _##prefix##_##func
45
49
typedef void (*XdgMimeCallback) (void *user_data);
53
57
#define xdg_mime_get_mime_types_from_file_name XDG_ENTRY(get_mime_types_from_file_name)
54
58
#define xdg_mime_is_valid_mime_type XDG_ENTRY(is_valid_mime_type)
55
59
#define xdg_mime_mime_type_equal XDG_ENTRY(mime_type_equal)
56
#define _xdg_mime_mime_type_equal XDG_ENTRY(mime_type_equal_p)
57
60
#define xdg_mime_media_type_equal XDG_ENTRY(media_type_equal)
58
61
#define xdg_mime_mime_type_subclass XDG_ENTRY(mime_type_subclass)
59
#define _xdg_mime_mime_type_subclass XDG_ENTRY(mime_type_subclass_p)
60
62
#define xdg_mime_get_mime_parents XDG_ENTRY(get_mime_parents)
61
63
#define xdg_mime_list_mime_parents XDG_ENTRY(list_mime_parents)
62
64
#define xdg_mime_unalias_mime_type XDG_ENTRY(unalias_mime_type)
63
#define _xdg_mime_unalias_mime_type XDG_ENTRY(unalias_mime_type_p)
64
65
#define xdg_mime_get_max_buffer_extents XDG_ENTRY(get_max_buffer_extents)
65
66
#define xdg_mime_shutdown XDG_ENTRY(shutdown)
66
67
#define xdg_mime_dump XDG_ENTRY(dump)
67
68
#define xdg_mime_register_reload_callback XDG_ENTRY(register_reload_callback)
68
69
#define xdg_mime_remove_callback XDG_ENTRY(remove_callback)
69
70
#define xdg_mime_type_unknown XDG_ENTRY(type_unknown)
71
#define xdg_mime_get_icon XDG_ENTRY(get_icon)
72
#define xdg_mime_get_generic_icon XDG_ENTRY(get_generic_icon)
74
#define _xdg_mime_mime_type_equal XDG_RESERVED_ENTRY(mime_type_equal)
75
#define _xdg_mime_mime_type_subclass XDG_RESERVED_ENTRY(mime_type_subclass)
76
#define _xdg_mime_unalias_mime_type XDG_RESERVED_ENTRY(unalias_mime_type)
72
79
extern const char xdg_mime_type_unknown[];
96
103
const char **xdg_mime_get_mime_parents (const char *mime);
97
104
char ** xdg_mime_list_mime_parents (const char *mime);
98
105
const char *xdg_mime_unalias_mime_type (const char *mime);
106
const char *xdg_mime_get_icon (const char *mime);
107
const char *xdg_mime_get_generic_icon (const char *mime);
99
108
int xdg_mime_get_max_buffer_extents (void);
100
109
void xdg_mime_shutdown (void);
101
110
void xdg_mime_dump (void);
107
116
/* Private versions of functions that don't call xdg_mime_init () */
108
117
int _xdg_mime_mime_type_equal (const char *mime_a,
109
118
const char *mime_b);
110
int _xdg_mime_media_type_equal (const char *mime_a,
112
119
int _xdg_mime_mime_type_subclass (const char *mime,
113
120
const char *base);
114
121
const char *_xdg_mime_unalias_mime_type (const char *mime);