2008-07-30 05:46:55 -07:00
|
|
|
#ifndef EINA_TYPES_H_
|
|
|
|
#define EINA_TYPES_H_
|
|
|
|
|
|
|
|
#ifdef EAPI
|
|
|
|
# undef EAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# ifdef EFL_EINA_BUILD
|
|
|
|
# ifdef DLL_EXPORT
|
|
|
|
# define EAPI __declspec(dllexport)
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif /* ! DLL_EXPORT */
|
|
|
|
# else
|
|
|
|
# define EAPI __declspec(dllimport)
|
|
|
|
# endif /* ! EFL_EINA_BUILD */
|
|
|
|
#else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
|
|
|
# define EAPI __attribute__ ((visibility("default")))
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# define EAPI
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2008-07-31 07:59:23 -07:00
|
|
|
#if HAVE___ATTRIBUTE__
|
|
|
|
# define __UNUSED__ __attribute__((unused))
|
|
|
|
#else
|
|
|
|
# define __UNUSED__
|
|
|
|
#endif
|
|
|
|
|
2008-07-30 05:46:55 -07:00
|
|
|
/* remove this TRUE/FALSE redifinitions */
|
|
|
|
|
|
|
|
#ifndef TRUE
|
|
|
|
# define TRUE 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FALSE
|
|
|
|
# define FALSE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
EINA_FALSE = 0,
|
|
|
|
EINA_TRUE = 1
|
|
|
|
} Eina_Bool;
|
|
|
|
|
|
|
|
EAPI extern const unsigned int eina_prime_table[];
|
|
|
|
|
|
|
|
#define EINA_SORT_MIN 0
|
|
|
|
#define EINA_SORT_MAX 1
|
|
|
|
|
|
|
|
typedef void (*Eina_For_Each) (void *value, void *user_data);
|
|
|
|
#define EINA_FOR_EACH(function) ((Eina_For_Each)function)
|
|
|
|
|
|
|
|
typedef void (*Eina_Free_Cb) (void *data);
|
|
|
|
#define EINA_FREE_CB(func) ((Eina_Free_Cb)func)
|
|
|
|
|
|
|
|
typedef unsigned int (*Eina_Hash_Cb) (const void *key);
|
|
|
|
#define EINA_HASH_CB(function) ((Eina_Hash_Cb)function)
|
|
|
|
|
|
|
|
typedef int (*Eina_Compare_Cb) (const void *data1, const void *data2);
|
|
|
|
#define EINA_COMPARE_CB(function) ((Eina_Compare_Cb)function)
|
|
|
|
|
|
|
|
#endif /*EINA_TYPES_H_*/
|