Eo: Actually mark EO_EV_ as EINA_DEPRECATED
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 21 Jan 2016 04:10:48 +0000 (13:10 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 21 Jan 2016 04:10:48 +0000 (13:10 +0900)
This should add compilation warnings whereever they're used.

src/lib/eo/Eo.h

index ad70c0c..4eb13cd 100644 (file)
@@ -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()
 
 /**
  * @}