6 * @brief The file that must be included by any project wishing to use
7 * @addtogroup Efreet_Mime Efreet_Mime: The XDG Shared Mime Info standard
8 * Efreet Mime is a library designed to help apps work with the
9 * Freedesktop.org Shared Mime Info standard.
10 * Efreet_Mime.h provides all of the necessary headers and
11 * includes to work with Efreet_Mime.
20 # ifdef EFL_EFREET_MIME_BUILD
22 # define EAPI __declspec(dllexport)
25 # endif /* ! DLL_EXPORT */
27 # define EAPI __declspec(dllimport)
28 # endif /* ! EFL_EFREET_MIME_BUILD */
32 # define EAPI __attribute__ ((visibility("default")))
47 * @return @c 1 on success or @c 0 on failure.
48 * @brief Initializes the efreet mime settings
50 EAPI int efreet_mime_init(void);
54 * @brief Cleans up the efreet mime settings system
56 EAPI int efreet_mime_shutdown(void);
59 * @param file The file to find the mime type
60 * @return Mime type as a string.
61 * @brief Retrieve the mime type of a file
63 EAPI const char *efreet_mime_type_get(const char *file);
66 * @param file The file to check the mime type
67 * @return Mime type as a string.
68 * @brief Retrieve the mime type of a file using magic
70 EAPI const char *efreet_mime_magic_type_get(const char *file);
73 * @param file The file to check the mime type
74 * @return Mime type as a string.
75 * @brief Retrieve the mime type of a file using globs
77 EAPI const char *efreet_mime_globs_type_get(const char *file);
80 * @param file The file to check the mime type
81 * @return Mime type as a string.
82 * @brief Retrieve the special mime type of a file
84 EAPI const char *efreet_mime_special_type_get(const char *file);
87 * @param file The file to check the mime type
88 * @return Mime type as a string.
89 * @brief Retrieve the fallback mime type of a file.
91 EAPI const char *efreet_mime_fallback_type_get(const char *file);
95 * @param mime The name of the mime type
96 * @param theme The name of the theme to search icons in
97 * @param size The wanted size of the icon
98 * @return Mime type icon path as a string.
99 * @brief Retrieve the mime type icon for a file.
101 EAPI const char *efreet_mime_type_icon_get(const char *mime, const char *theme,
105 * @brief Clear mime icons mapping cache
107 EAPI void efreet_mime_type_cache_clear(void);
110 * @brief Flush mime icons mapping cache
112 * Flush timeout is defined at compile time by
113 * EFREET_MIME_ICONS_FLUSH_TIMEOUT
115 EAPI void efreet_mime_type_cache_flush(void);