summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-04-12 11:06:30 +0100
committerTom Hacohen <tom@stosb.com>2013-04-12 12:02:49 +0100
commit3e11c380c946464360f18b058afca783cde3ddde (patch)
tree8e74678ca7f618c5f5987d43d80192feca090851 /src/tests/eo/suite/eo_test_class_simple.c
parent858b45e3be033db155a566272198345fbe03437f (diff)
Eo: Added eo_event_callback_array_* functions.
These functions let you pass an array of callbacks instead of just one. It's more memory efficient to use this if you just add a bulk of events on the same object. This commits breaks ABI, and breaks API of the EO_EV_CALLBACK_ADD/DEL signals (the event info passed).
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index 224f5b5a54..e21c54f74f 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -9,6 +9,9 @@
9 9
10EAPI Eo_Op SIMPLE_BASE_ID = 0; 10EAPI Eo_Op SIMPLE_BASE_ID = 0;
11 11
12EAPI const Eo_Event_Description _EV_A_CHANGED =
13 EO_EVENT_DESCRIPTION("a,changed", "Called when a has changed.");
14
12static void 15static void
13_a_set(Eo *obj EINA_UNUSED, void *class_data, va_list *list) 16_a_set(Eo *obj EINA_UNUSED, void *class_data, va_list *list)
14{ 17{
@@ -17,6 +20,8 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, va_list *list)
17 a = va_arg(*list, int); 20 a = va_arg(*list, int);
18 printf("%s %d\n", eo_class_name_get(MY_CLASS), a); 21 printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
19 pd->a = a; 22 pd->a = a;
23
24 eo_do(obj, eo_event_callback_call(EV_A_CHANGED, &pd->a, NULL));
20} 25}
21 26
22static void 27static void