1 #ifndef _EO_INTERNAL_H_ 2 #define _EO_INTERNAL_H_ 3 4 #ifdef EAPI 5 # undef EAPI 6 #endif 7 8 #ifdef _WIN32 9 # ifdef EFL_BUILD 10 # ifdef DLL_EXPORT 11 # define EAPI __declspec(dllexport) 12 # else 13 # define EAPI 14 # endif 15 # else 16 # define EAPI __declspec(dllimport) 17 # endif 18 #else 19 # ifdef __GNUC__ 20 # if __GNUC__ >= 4 21 # define EAPI __attribute__ ((visibility("default"))) 22 # else 23 # define EAPI 24 # endif 25 # else 26 # define EAPI 27 # endif 28 #endif 29 30 typedef unsigned char Eina_Bool; 31 typedef struct _Eo_Opaque Eo; 32 typedef struct _Efl_Event_Description Efl_Event_Description; 33 34 /** 35 * Don't use this. 36 * The values of the returned event structure are also internal, don't assume 37 * anything about them. 38 * @internal 39 */ 40 EAPI const Efl_Event_Description *efl_object_legacy_only_event_description_get(const char *_event_name); 41 42 EAPI void ___efl_auto_unref_set(Eo *obj_id, Eina_Bool enable); 43 44 EAPI int ___efl_ref2_count(const Eo *obj_id); 45 EAPI void ___efl_ref2_reset(const Eo *obj_id); 46 47 #define EFL_CLASS_SIMPLE_CLASS(FUNC, NAME, ABSTRACT_CLASS) \ 48 static const Efl_Class_Description FUNC ##_realized_class_desc = { \ 49 EO_VERSION, \ 50 NAME "_Realized", \ 51 EFL_CLASS_TYPE_REGULAR, \ 52 0, NULL, NULL, NULL \ 53 }; \ 54 EFL_DEFINE_CLASS(FUNC ##_realized_class_get, &FUNC ##_realized_class_desc, ABSTRACT_CLASS, NULL) 55 56 #undef EAPI 57 #define EAPI 58 59 #endif 60