2007-02-03 05:05:30 -08:00
|
|
|
#ifndef EFREET_H
|
|
|
|
#define EFREET_H
|
|
|
|
|
|
|
|
/**
|
2007-09-06 09:15:10 -07:00
|
|
|
* @file Efreet.h
|
2007-02-03 05:05:30 -08:00
|
|
|
* @brief The file that must be included by any project wishing to use
|
|
|
|
* Efreet. Efreet.h provides all of the necessary headers and includes to
|
|
|
|
* work with Efreet.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @mainpage The Efreet Library
|
|
|
|
*
|
|
|
|
* @section intro Introduction
|
|
|
|
*
|
|
|
|
* Efreet is a library designed to help apps work several of the
|
|
|
|
* Freedesktop.org standards regarding Icons, Desktop files and Menus. To
|
|
|
|
* that end it implements the following specifications:
|
2007-09-06 09:15:10 -07:00
|
|
|
*
|
2007-02-03 05:05:30 -08:00
|
|
|
* @li XDG Base Directory Specification
|
|
|
|
* @li Icon Theme Specification
|
|
|
|
* @li Desktop Entry Specification
|
|
|
|
* @li Desktop Menu Specification
|
2008-08-02 17:07:17 -07:00
|
|
|
* @li FDO URI Specification
|
2008-08-02 14:48:44 -07:00
|
|
|
* @li Shared Mime Info Specification
|
|
|
|
* @li Trash Specification
|
2007-02-03 05:05:30 -08:00
|
|
|
*/
|
|
|
|
|
2009-04-20 16:20:40 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
|
2007-11-04 01:32:35 -08:00
|
|
|
#ifdef EAPI
|
2009-04-20 16:20:40 -07:00
|
|
|
# undef EAPI
|
2007-11-04 01:32:35 -08:00
|
|
|
#endif
|
2009-04-20 16:20:40 -07:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# ifdef EFL_EFREET_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
2007-11-04 01:32:35 -08:00
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
2009-04-20 16:20:40 -07:00
|
|
|
# endif /* ! EFL_EFREET_BUILD */
|
2007-11-04 01:32:35 -08:00
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2007-02-03 05:05:30 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-08-16 02:34:38 -07:00
|
|
|
#define EFREET_VERSION_MAJOR 1
|
2012-01-17 18:32:36 -08:00
|
|
|
#define EFREET_VERSION_MINOR 2
|
2010-05-29 01:30:06 -07:00
|
|
|
|
|
|
|
typedef struct _Efreet_Version
|
|
|
|
{
|
|
|
|
int major;
|
|
|
|
int minor;
|
|
|
|
int micro;
|
|
|
|
int revision;
|
|
|
|
} Efreet_Version;
|
|
|
|
|
|
|
|
EAPI extern Efreet_Version *efreet_version;
|
|
|
|
|
2007-02-03 05:05:30 -08:00
|
|
|
#include "efreet_base.h"
|
2007-11-04 01:32:35 -08:00
|
|
|
#include "efreet_ini.h"
|
2007-02-03 05:05:30 -08:00
|
|
|
#include "efreet_icon.h"
|
|
|
|
#include "efreet_desktop.h"
|
|
|
|
#include "efreet_menu.h"
|
2007-02-06 17:12:25 -08:00
|
|
|
#include "efreet_utils.h"
|
2008-08-02 17:07:17 -07:00
|
|
|
#include "efreet_uri.h"
|
2007-02-03 05:05:30 -08:00
|
|
|
|
2011-04-08 04:01:08 -07:00
|
|
|
/**
|
|
|
|
* @return Returns > 0 if the initialization was successful, 0 otherwise
|
|
|
|
* @brief Initializes the Efreet system
|
|
|
|
*/
|
2007-11-04 01:32:35 -08:00
|
|
|
EAPI int efreet_init(void);
|
2011-04-08 04:01:08 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Returns the number of times the init function as been called
|
|
|
|
* minus the corresponding init call.
|
|
|
|
* @brief Shuts down Efreet if a balanced number of init/shutdown calls have
|
|
|
|
* been made
|
|
|
|
*/
|
2007-11-04 01:32:35 -08:00
|
|
|
EAPI int efreet_shutdown(void);
|
2007-02-03 05:05:30 -08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|