summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-11-08 00:09:47 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:18 +0100
commit78973fba6ce863da19a840b22adf230be7b3d942 (patch)
treeaee1ee73953be16f64a63c9b987007578ed55e98 /src/tests/eo/function_overrides
parent23e2c29298bc0ae27d748b4388ca718d0c678a61 (diff)
eo2: fix tests, do not use _CLASS_FUNC_, see previous commit
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_simple.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_simple.c b/src/tests/eo/function_overrides/function_overrides_simple.c
index 67c36a0c31..0819544491 100644
--- a/src/tests/eo/function_overrides/function_overrides_simple.c
+++ b/src/tests/eo/function_overrides/function_overrides_simple.c
@@ -29,7 +29,7 @@ _a_print(Eo *obj EINA_UNUSED, void *class_data)
29} 29}
30 30
31static void 31static void
32_class_print(Eo_Class *klass) 32_class_print(Eo_Class *klass, void *class_data EINA_UNUSED)
33{ 33{
34 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS)); 34 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS));
35 class_print_called = EINA_FALSE; 35 class_print_called = EINA_FALSE;
@@ -44,7 +44,7 @@ _class_print(Eo_Class *klass)
44} 44}
45 45
46static void 46static void
47_class_print2(Eo_Class *klass) 47_class_print2(Eo_Class *klass, void *class_data EINA_UNUSED)
48{ 48{
49 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS)); 49 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS));
50 class_print2_called = EINA_TRUE; 50 class_print2_called = EINA_TRUE;
@@ -52,14 +52,14 @@ _class_print2(Eo_Class *klass)
52 52
53EAPI EO2_VOID_FUNC_BODYV(simple_a_set, EO2_FUNC_CALL(a), int a); 53EAPI EO2_VOID_FUNC_BODYV(simple_a_set, EO2_FUNC_CALL(a), int a);
54EAPI EO2_VOID_FUNC_BODY(simple_a_print); 54EAPI EO2_VOID_FUNC_BODY(simple_a_print);
55EAPI EO2_VOID_CLASS_FUNC_BODY(simple_class_print); 55EAPI EO2_VOID_FUNC_BODY(simple_class_print);
56EAPI EO2_VOID_CLASS_FUNC_BODY(simple_class_print2); 56EAPI EO2_VOID_FUNC_BODY(simple_class_print2);
57 57
58static Eo2_Op_Description op_descs[] = { 58static Eo2_Op_Description op_descs[] = {
59 EO2_OP_FUNC(_a_set, simple_a_set, "Set property A"), 59 EO2_OP_FUNC(_a_set, simple_a_set, "Set property A"),
60 EO2_OP_FUNC(_a_print, simple_a_print, "Print property A"), 60 EO2_OP_FUNC(_a_print, simple_a_print, "Print property A"),
61 EO2_OP_CLASS_FUNC(_class_print, simple_class_print, "Print class name."), 61 EO2_OP_FUNC(_class_print, simple_class_print, "Print class name."),
62 EO2_OP_CLASS_FUNC(_class_print2, simple_class_print2, "Print2 class name."), 62 EO2_OP_FUNC(_class_print2, simple_class_print2, "Print2 class name."),
63 EO2_OP_SENTINEL 63 EO2_OP_SENTINEL
64}; 64};
65 65