summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/Eo.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 095ce30a76..c1ff090869 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -1018,6 +1018,11 @@ struct _Eo_Callback_Array_Item
1018 Eo_Event_Cb func; /**< The callback function. */ 1018 Eo_Event_Cb func; /**< The callback function. */
1019}; 1019};
1020 1020
1021/**
1022 * Helper for creating global callback arrays.
1023 * The problem is on windows where you can't declare a static array with
1024 * external symbols in it, because the addresses are only known at runtime.
1025 */
1021#define EO_CALLBACKS_ARRAY_DEFINE(Name, ...) \ 1026#define EO_CALLBACKS_ARRAY_DEFINE(Name, ...) \
1022 static Eo_Callback_Array_Item * \ 1027 static Eo_Callback_Array_Item * \
1023 Name(void) \ 1028 Name(void) \
@@ -1068,7 +1073,7 @@ struct _Eo_Callback_Array_Item
1068 * @} 1073 * @}
1069 */ 1074 */
1070 1075
1071/* XXX: Remove, for compat with the old names. */ 1076/* XXX: Deprecated, here for compat, DO NOT USE */
1072#define EO_EV_CALLBACK_ADD EO_BASE_EVENT_CALLBACK_ADD 1077#define EO_EV_CALLBACK_ADD EO_BASE_EVENT_CALLBACK_ADD
1073#define EO_EV_CALLBACK_DEL EO_BASE_EVENT_CALLBACK_DEL 1078#define EO_EV_CALLBACK_DEL EO_BASE_EVENT_CALLBACK_DEL
1074#define EO_EV_DEL EO_BASE_EVENT_DEL 1079#define EO_EV_DEL EO_BASE_EVENT_DEL