devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=d769724cccfd1ce3c3cbb50a37e7b8c8e08abeb3
commit d769724cccfd1ce3c3cbb50a37e7b8c8e08abeb3 Author: Chris Michael <cp.mich...@samsung.com> Date: Tue Aug 18 10:08:38 2015 -0400 ecore-wl2: Add events for adding and removing globals Signed-off-by: Chris Michael <cp.mich...@samsung.com> --- src/lib/ecore_wl2/ecore_wl2.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c index 524228a..8943f81 100644 --- a/src/lib/ecore_wl2/ecore_wl2.c +++ b/src/lib/ecore_wl2/ecore_wl2.c @@ -10,6 +10,10 @@ static int _ecore_wl2_init_count = 0; /* external variables */ int _ecore_wl2_log_dom = -1; +/* public API variables */ +EAPI int ECORE_WL2_EVENT_GLOBAL_ADDED = 0; +EAPI int ECORE_WL2_EVENT_GLOBAL_REMOVED = 0; + /* public API functions */ EAPI int ecore_wl2_init(void) @@ -42,6 +46,13 @@ ecore_wl2_init(void) goto ecore_event_err; } + /* handle creating new Ecore_Wl2 event types */ + if (!ECORE_WL2_EVENT_GLOBAL_ADDED) + { + ECORE_WL2_EVENT_GLOBAL_ADDED = ecore_event_type_new(); + ECORE_WL2_EVENT_GLOBAL_REMOVED = ecore_event_type_new(); + } + return _ecore_wl2_init_count; ecore_event_err: --