tests/elm: add helper callback for automatically quitting main loop when triggered

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D9506
This commit is contained in:
Mike Blumenkrantz 2019-08-05 13:57:48 -04:00 committed by Marcel Hollerbach
parent f8dcb7dc2b
commit e9e8078cec
2 changed files with 7 additions and 0 deletions

View File

@ -466,6 +466,12 @@ event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointe
*called = 1;
}
void
event_callback_that_quits_the_main_loop_when_called()
{
ecore_main_loop_quit();
}
void
click_object_at(Eo *obj, int x, int y)
{

View File

@ -15,4 +15,5 @@ void click_object(Eo *obj);
void click_part(Eo *obj, const char *part);
void click_object_at(Eo *obj, int x, int y);
void event_callback_that_is_called_exactly_one_time_and_sets_a_single_int_data_pointer_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
void event_callback_that_quits_the_main_loop_when_called();
#endif