Fix preload after removal of ecore_main_loop_begin

Since this function doesn't exist anymore, we need to catch the loop
begin in a different way.
This commit is contained in:
Daniel Zaoui 2018-01-01 00:00:52 +02:00
parent 09dc7c8353
commit c83ed3fabb
1 changed files with 5 additions and 6 deletions

View File

@ -516,12 +516,11 @@ tsuite_feed_event(void *data)
return ECORE_CALLBACK_CANCEL;
}
void
ecore_main_loop_begin(void)
EOAPI Eina_Value *
efl_loop_begin(Eo *obj)
{
void (*_ecore_main_loop_begin)(void) =
dlsym(RTLD_NEXT, "ecore_main_loop_begin");
static Eina_Value * (*_foo)(Eo *) = NULL;
if (!_foo) _foo = dlsym(RTLD_NEXT, __func__);
if (_hook_setting->file_name)
{
@ -558,7 +557,7 @@ ecore_main_loop_begin(void)
}
}
return _ecore_main_loop_begin();
return _foo(obj);
}
static void