static Eina_Bool startup_status = EINA_FALSE;
static Ecore_Con_Server *svr = NULL;
-static Ecore_Timer *timer_loop;
static Eina_Bool
-_timer_loop_cb(void* data)
+_timer_loop_cb(void* data EINA_UNUSED)
{
- Ecore_Con_Server *svr_connect = data;
-
- if (ecore_con_server_connected_get(svr_connect))
- {
- ecore_main_loop_quit();
- timer_loop = NULL;
- return ECORE_CALLBACK_CANCEL;
- }
-
- return ECORE_CALLBACK_RENEW;
+ ecore_main_loop_quit();
+ return ECORE_CALLBACK_CANCEL;
}
/**
Eina_Bool ok = EINA_FALSE;
ecore_con_server_timeout_set(svr, ECORE_CON_SERVER_TIMEOUT);
- if (!(timer_loop = ecore_timer_add(0.1, _timer_loop_cb, svr)))
+ if (!(ecore_timer_add(0.1, _timer_loop_cb, NULL)))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed (timer cannot be created for testing)..", __FILE__, __LINE__);
}