efl/legacy/efreet/src/lib/Efreet.h

101 lines
2.0 KiB
C
Raw Normal View History

#ifndef EFREET_H
#define EFREET_H
/**
* @file Efreet.h
* @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:
*
* @li XDG Base Directory Specification
* @li Icon Theme Specification
* @li Desktop Entry Specification
* @li Desktop Menu Specification
* @li FDO URI Specification
* @li Shared Mime Info Specification
* @li Trash Specification
*/
#include <Eina.h>
2007-11-04 01:32:35 -08:00
#ifdef EAPI
# undef EAPI
2007-11-04 01:32:35 -08:00
#endif
#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)
# 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
#ifdef __cplusplus
extern "C" {
#endif
#define EFREET_VERSION_MAJOR 1
#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;
#include "efreet_base.h"
2007-11-04 01:32:35 -08:00
#include "efreet_ini.h"
#include "efreet_icon.h"
#include "efreet_desktop.h"
#include "efreet_menu.h"
#include "efreet_utils.h"
#include "efreet_uri.h"
2011-04-08 04:01:08 -07:00
/**
* @return Value > @c 0 if the initialization was successful, @c 0 otherwise.
2011-04-08 04:01:08 -07:00
* @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 The number of times the init function has been called minus the
* corresponding init call.
2011-04-08 04:01:08 -07:00
* @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);
#ifdef __cplusplus
}
#endif
#endif