summaryrefslogtreecommitdiff
path: root/src/lib/efreet/Efreet_Trash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efreet/Efreet_Trash.h')
-rw-r--r--src/lib/efreet/Efreet_Trash.h43
1 files changed, 8 insertions, 35 deletions
diff --git a/src/lib/efreet/Efreet_Trash.h b/src/lib/efreet/Efreet_Trash.h
index 67db071cae..d606a7ce27 100644
--- a/src/lib/efreet/Efreet_Trash.h
+++ b/src/lib/efreet/Efreet_Trash.h
@@ -1,31 +1,7 @@
#ifndef EFREET_TRASH_H
#define EFREET_TRASH_H
-#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" {
@@ -46,20 +22,20 @@ extern "C" {
* @return @c 1 on success or @c 0 on failure.
* @brief Initializes the efreet trash system
*/
-EAPI int efreet_trash_init(void);
+EFREET_API int efreet_trash_init(void);
/**
* @return No value.
* @brief Cleans up the efreet trash system
*/
-EAPI int efreet_trash_shutdown(void);
+EFREET_API int efreet_trash_shutdown(void);
/**
* @return The XDG Trash local directory or @c NULL on errors.
* Return value must be freed with eina_stringshare_del.
* @brief Retrieves the XDG Trash local directory
*/
-EAPI const char *efreet_trash_dir_get(const char *for_file);
+EFREET_API const char *efreet_trash_dir_get(const char *for_file);
/**
* @param uri The local uri to move in the trash
@@ -72,26 +48,26 @@ EAPI const char *efreet_trash_dir_get(const char *for_file);
* is @c 0 than non-local files will be ignored and @c -1 is returned, if you set
* force_delete to @c 1 non-local files will be deleted without asking.
*/
-EAPI int efreet_trash_delete_uri(Efreet_Uri *uri, int force_delete);
+EFREET_API int efreet_trash_delete_uri(Efreet_Uri *uri, int force_delete);
/**
* @return A list of strings with filename (remember to free the list
* when you don't need anymore).
* @brief List all the files and directory currently inside the trash.
*/
-EAPI Eina_List *efreet_trash_ls(void);
+EFREET_API Eina_List *efreet_trash_ls(void);
/**
* @return @c 1 if the trash is empty or @c 0 if some file are in.
* @brief Check if the trash is currently empty
*/
-EAPI int efreet_trash_is_empty(void);
+EFREET_API int efreet_trash_is_empty(void);
/**
* @return @c 1 on success or @c 0 on failure.
* @brief Delete all the files inside the trash.
*/
-EAPI int efreet_trash_empty_trash(void);
+EFREET_API int efreet_trash_empty_trash(void);
/**
* @}
@@ -101,7 +77,4 @@ EAPI int efreet_trash_empty_trash(void);
}
#endif
-#undef EAPI
-#define EAPI
-
#endif