forked from enlightenment/efl
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:
parent
555f456b39
commit
5ab30b1e01
|
@ -523,6 +523,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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue