tests/elm: add util callback for incrementing an int data

this is a common functionality

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D10509
This commit is contained in:
Mike Blumenkrantz 2019-10-21 10:30:45 -04:00
parent 26d6b90ccb
commit e34b094a01
2 changed files with 9 additions and 0 deletions

View File

@ -514,6 +514,14 @@ event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, vo
*called = 1;
}
void
event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
int *called = data;
*called += 1;
}
void
event_callback_that_quits_the_main_loop_when_called()
{

View File

@ -19,4 +19,5 @@ void wheel_part(Eo *obj, const char *part, Eina_Bool horiz, Eina_Bool down);
void wheel_object_at(Eo *obj, int x, int y, Eina_Bool horiz, Eina_Bool down);
void event_callback_single_call_int_data(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED);
void event_callback_that_quits_the_main_loop_when_called();
void event_callback_that_increments_an_int_when_called(void *data, Evas_Object *obj, void *event_info);
#endif