diff options
Diffstat (limited to 'src/lib/efreet/Efreet_Mime.h')
-rw-r--r-- | src/lib/efreet/Efreet_Mime.h | 49 |
1 files changed, 11 insertions, 38 deletions
diff --git a/src/lib/efreet/Efreet_Mime.h b/src/lib/efreet/Efreet_Mime.h index 29d65e516c..83ee812426 100644 --- a/src/lib/efreet/Efreet_Mime.h +++ b/src/lib/efreet/Efreet_Mime.h @@ -14,31 +14,7 @@ * @{ */ -#ifdef EAPI -# undef EAPI -#endif - -#ifdef _WIN32 -# ifdef EFL_BUILD -# ifdef DLL_EXPORT -# define EAPI __declspec(dllexport) -# else -# define EAPI -# endif -# else -# define EAPI __declspec(dllimport) -# endif -#else -# ifdef __GNUC__ -# if __GNUC__ >= 4 -# define EAPI __attribute__ ((visibility("default"))) -# else -# define EAPI -# endif -# else -# define EAPI -# endif -#endif +#include <efreet_api.h> #ifdef __cplusplus extern "C" { @@ -49,7 +25,7 @@ extern "C" { * @return @c 1 on success or @c 0 on failure. * @brief Initializes the efreet mime settings */ -EAPI int efreet_mime_init(void); +EFREET_API int efreet_mime_init(void); /** * @return The number of times the init function has been called minus the @@ -57,7 +33,7 @@ EAPI int efreet_mime_init(void); * @brief Shuts down Efreet mime settings system if a balanced number of * init/shutdown calls have been made */ -EAPI int efreet_mime_shutdown(void); +EFREET_API int efreet_mime_shutdown(void); /** * @param file The file to find the mime type @@ -65,35 +41,35 @@ EAPI int efreet_mime_shutdown(void); * @brief Retrieve the mime type of a file * @note The return value of this function is not guaranteed to be stringshared. */ -EAPI const char *efreet_mime_type_get(const char *file); +EFREET_API const char *efreet_mime_type_get(const char *file); /** * @param file The file to check the mime type * @return Mime type as a string. * @brief Retrieve the mime type of a file using magic */ -EAPI const char *efreet_mime_magic_type_get(const char *file); +EFREET_API const char *efreet_mime_magic_type_get(const char *file); /** * @param file The file to check the mime type * @return Mime type as a string. * @brief Retrieve the mime type of a file using globs */ -EAPI const char *efreet_mime_globs_type_get(const char *file); +EFREET_API const char *efreet_mime_globs_type_get(const char *file); /** * @param file The file to check the mime type * @return Mime type as a string. * @brief Retrieve the special mime type of a file */ -EAPI const char *efreet_mime_special_type_get(const char *file); +EFREET_API const char *efreet_mime_special_type_get(const char *file); /** * @param file The file to check the mime type * @return Mime type as a string. * @brief Retrieve the fallback mime type of a file. */ -EAPI const char *efreet_mime_fallback_type_get(const char *file); +EFREET_API const char *efreet_mime_fallback_type_get(const char *file); /** @@ -103,13 +79,13 @@ EAPI const char *efreet_mime_fallback_type_get(const char *file); * @return Mime type icon path as a string. * @brief Retrieve the mime type icon for a file. */ -EAPI const char *efreet_mime_type_icon_get(const char *mime, const char *theme, +EFREET_API const char *efreet_mime_type_icon_get(const char *mime, const char *theme, unsigned int size); /** * @brief Clear mime icons mapping cache */ -EAPI void efreet_mime_type_cache_clear(void); +EFREET_API void efreet_mime_type_cache_clear(void); /** * @brief Flush mime icons mapping cache @@ -117,7 +93,7 @@ EAPI void efreet_mime_type_cache_clear(void); * Flush timeout is defined at compile time by * EFREET_MIME_ICONS_FLUSH_TIMEOUT */ -EAPI void efreet_mime_type_cache_flush(void); +EFREET_API void efreet_mime_type_cache_flush(void); /** * @} @@ -127,7 +103,4 @@ EAPI void efreet_mime_type_cache_flush(void); } #endif -#undef EAPI -#define EAPI - #endif |