From 258639a92e678512c2dd7dc17d24cc6242e2cb58 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Thu, 21 Jan 2016 13:10:48 +0900 Subject: [PATCH] Eo: Actually mark EO_EV_ as EINA_DEPRECATED This should add compilation warnings whereever they're used. --- src/lib/eo/Eo.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index ad70c0ca2f..4eb13cd607 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -1025,9 +1025,12 @@ EAPI const Eo_Event_Description *eo_base_legacy_only_event_description_get(const */ /* XXX: Deprecated, here for compat, DO NOT USE */ -#define EO_EV_CALLBACK_ADD EO_BASE_EVENT_CALLBACK_ADD -#define EO_EV_CALLBACK_DEL EO_BASE_EVENT_CALLBACK_DEL -#define EO_EV_DEL EO_BASE_EVENT_DEL +EINA_DEPRECATED static inline const Eo_Event_Description* _EO_EV_CALLBACK_ADD(void) { return EO_BASE_EVENT_CALLBACK_ADD; } +EINA_DEPRECATED static inline const Eo_Event_Description* _EO_EV_CALLBACK_DEL(void) { return EO_BASE_EVENT_CALLBACK_DEL; } +EINA_DEPRECATED static inline const Eo_Event_Description* _EO_EV_DEL(void) { return EO_BASE_EVENT_DEL; } +#define EO_EV_CALLBACK_ADD _EO_EV_CALLBACK_ADD() +#define EO_EV_CALLBACK_DEL _EO_EV_CALLBACK_DEL() +#define EO_EV_DEL _EO_EV_DEL() /** * @}