summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-04-02 09:46:34 +0100
committerTom Hacohen <tom@stosb.com>2014-04-10 04:20:21 +0100
commitc32bb4fe958cca857f7f74171bc1be6b53c4fe99 (patch)
treea139f4ac8b0147bcb944afd08609e58e298d7377 /src/tests/eo/suite/eo_test_class_simple.c
parent80faa56ed3399fb10dafa0a88831f52e6769a7d4 (diff)
Eo2: Updated naming Eo2->Eo.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index 89cd14e073..5b8c2e06ac 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -17,7 +17,7 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
17 printf("%s %d\n", eo_class_name_get(MY_CLASS), a); 17 printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
18 pd->a = a; 18 pd->a = a;
19 19
20 eo2_do(obj, eo2_event_callback_call(EV_A_CHANGED, &pd->a)); 20 eo_do(obj, eo_event_callback_call(EV_A_CHANGED, &pd->a));
21} 21}
22 22
23static int 23static int
@@ -45,7 +45,7 @@ _class_hi_print(Eo_Class *klass, void *data EINA_UNUSED)
45 return EINA_TRUE; 45 return EINA_TRUE;
46} 46}
47 47
48EO2_VOID_FUNC_BODYV(simple_recursive, EO2_FUNC_CALL(n), int n); 48EO_VOID_FUNC_BODYV(simple_recursive, EO_FUNC_CALL(n), int n);
49 49
50static void 50static void
51_recursive(Eo *obj, void *class_data EINA_UNUSED, int n) 51_recursive(Eo *obj, void *class_data EINA_UNUSED, int n)
@@ -55,7 +55,7 @@ _recursive(Eo *obj, void *class_data EINA_UNUSED, int n)
55 if (count < n) 55 if (count < n)
56 { 56 {
57 count++; 57 count++;
58 eo2_do(obj, simple_recursive(n)); 58 eo_do(obj, simple_recursive(n));
59 } 59 }
60 else 60 else
61 count = 0; 61 count = 0;
@@ -64,39 +64,39 @@ _recursive(Eo *obj, void *class_data EINA_UNUSED, int n)
64static void 64static void
65_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, Eo_Dbg_Info *root) 65_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, Eo_Dbg_Info *root)
66{ 66{
67 eo2_do_super(eo_obj, MY_CLASS, eo2_dbg_info_get(root)); 67 eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
68 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, "Test list"); 68 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, "Test list");
69 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8); 69 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8);
70} 70}
71 71
72EO2_VOID_FUNC_BODYV(simple_a_set, EO2_FUNC_CALL(a), int a); 72EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);
73EO2_FUNC_BODY(simple_a_get, int, 0); 73EO_FUNC_BODY(simple_a_get, int, 0);
74EO2_FUNC_BODY(simple_a_print, Eina_Bool, EINA_FALSE); 74EO_FUNC_BODY(simple_a_print, Eina_Bool, EINA_FALSE);
75EO2_FUNC_BODY(simple_class_hi_print, Eina_Bool, EINA_FALSE); 75EO_FUNC_BODY(simple_class_hi_print, Eina_Bool, EINA_FALSE);
76EO2_VOID_FUNC_BODY(simple_pure_virtual); 76EO_VOID_FUNC_BODY(simple_pure_virtual);
77EO2_VOID_FUNC_BODY(simple_no_implementation); 77EO_VOID_FUNC_BODY(simple_no_implementation);
78 78
79static Eo2_Op_Description op_descs[] = { 79static Eo_Op_Description op_descs[] = {
80 EO2_OP_FUNC_OVERRIDE(eo2_dbg_info_get, _dbg_info_get), 80 EO_OP_FUNC_OVERRIDE(eo_dbg_info_get, _dbg_info_get),
81 EO2_OP_FUNC(simple_a_set, _a_set, "Set property a"), 81 EO_OP_FUNC(simple_a_set, _a_set, "Set property a"),
82 EO2_OP_FUNC(simple_a_get, _a_get, "Get property a"), 82 EO_OP_FUNC(simple_a_get, _a_get, "Get property a"),
83 EO2_OP_FUNC(simple_a_print, _a_print, "Print property a"), 83 EO_OP_FUNC(simple_a_print, _a_print, "Print property a"),
84 EO2_OP_CLASS_FUNC(simple_class_hi_print, _class_hi_print, "Print property a"), 84 EO_OP_CLASS_FUNC(simple_class_hi_print, _class_hi_print, "Print property a"),
85 EO2_OP_FUNC(simple_recursive, _recursive, "Recursive function"), 85 EO_OP_FUNC(simple_recursive, _recursive, "Recursive function"),
86 EO2_OP_FUNC(simple_pure_virtual, NULL, "Pure Virtual function"), 86 EO_OP_FUNC(simple_pure_virtual, NULL, "Pure Virtual function"),
87 EO2_OP_SENTINEL 87 EO_OP_SENTINEL
88}; 88};
89 89
90static const Eo_Class_Description class_desc = { 90static const Eo_Class_Description class_desc = {
91 EO2_VERSION, 91 EO_VERSION,
92 "Simple", 92 "Simple",
93 EO_CLASS_TYPE_REGULAR, 93 EO_CLASS_TYPE_REGULAR,
94 EO2_CLASS_DESCRIPTION_OPS(op_descs), 94 EO_CLASS_DESCRIPTION_OPS(op_descs),
95 NULL, 95 NULL,
96 sizeof(Simple_Public_Data), 96 sizeof(Simple_Public_Data),
97 NULL, 97 NULL,
98 NULL 98 NULL
99}; 99};
100 100
101EO_DEFINE_CLASS(simple_class_get, &class_desc, EO2_BASE_CLASS, NULL) 101EO_DEFINE_CLASS(simple_class_get, &class_desc, EO_BASE_CLASS, NULL)
102 102