2008-07-16 12:45:12 -07:00
|
|
|
/* vim: set sw=4 ts=4 sts=4 et: */
|
|
|
|
#ifndef EFREET_TRASH_H
|
|
|
|
#define EFREET_TRASH_H
|
|
|
|
|
|
|
|
#ifdef EAPI
|
2009-04-20 16:20:40 -07:00
|
|
|
# undef EAPI
|
2008-07-16 12:45:12 -07:00
|
|
|
#endif
|
2009-04-20 16:20:40 -07:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# ifdef EFL_EFREET_TRASH_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
2008-07-16 12:45:12 -07:00
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
2009-04-20 16:20:40 -07:00
|
|
|
# endif /* ! EFL_EFREET_TRASH_BUILD */
|
2008-07-16 12:45:12 -07:00
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
2008-08-02 17:07:17 -07:00
|
|
|
* @file Efreet_Trash.h
|
|
|
|
* @brief Contains the methods used to support the FDO trash specification.
|
|
|
|
* @addtogroup Efreet_Trash Efreet_Trash: The XDG Trash Specification
|
|
|
|
* Efreet_Trash.h provides all of the necessary headers and includes to
|
|
|
|
* work with Efreet_Trash.
|
|
|
|
* @{
|
2008-07-16 12:45:12 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
EAPI int efreet_trash_init(void);
|
2009-10-09 23:19:13 -07:00
|
|
|
EAPI int efreet_trash_shutdown(void);
|
2008-07-16 12:45:12 -07:00
|
|
|
|
|
|
|
EAPI const char *efreet_trash_dir_get(void);
|
|
|
|
EAPI int efreet_trash_delete_uri(Efreet_Uri *uri, int force_delete);
|
* estickies,
* etk,
* PROTO/exalt,
* E-MODULES-EXTRA/diskio,
* E-MODULES-EXTRA/drawer,
* E-MODULES-EXTRA/penguins,
* E-MODULES-EXTRA/slideshow,
* E-MODULES-EXTRA/mail,
* E-MODULES-EXTRA/forecasts,
* E-MODULES-EXTRA/iiirk,
* E-MODULES-EXTRA/places,
* e,
* ewl,
* ecore,
* elitaire,
* entrance,
* e_dbus,
* efreet: Here we go, move from Ecore_List to Eina_List.
NOTE: This patch is huge, I did test it a lot, and I hope nothing is
broken. But if you think something change after this commit, please
contact me ASAP.
SVN revision: 39200
2009-02-25 03:03:47 -08:00
|
|
|
EAPI Eina_List *efreet_trash_ls(void);
|
2008-07-16 12:45:12 -07:00
|
|
|
EAPI int efreet_trash_is_empty(void);
|
|
|
|
EAPI int efreet_trash_empty_trash(void);
|
2008-08-02 17:07:17 -07:00
|
|
|
|
2008-07-16 12:45:12 -07:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|