forked from enlightenment/efl
ecore-wl2: Add events for adding and removing globals
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1132afd78a
commit
d769724ccc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue