summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-10 15:23:04 +0100
committerTom Hacohen <tom@stosb.com>2016-08-11 17:04:43 +0100
commitc662934be8bcbaba60d1688e77533acbea5d09b9 (patch)
tree8e12b5ffd083024f09b7ec7fa9f979113056fb9d /src/tests/eo/suite/eo_test_class_simple.c
parente64e120a51972c44fb8cae88a78bb4aa34f502c7 (diff)
Change the EFL to follow the new Eo rename.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index dcc3991553..b4f715d752 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -7,11 +7,11 @@
7 7
8#define MY_CLASS SIMPLE_CLASS 8#define MY_CLASS SIMPLE_CLASS
9 9
10EAPI const Eo_Event_Description _EV_A_CHANGED = 10EAPI const Efl_Event_Description _EV_A_CHANGED =
11 EO_EVENT_DESCRIPTION("a,changed"); 11 EFL_EVENT_DESCRIPTION("a,changed");
12 12
13EAPI const Eo_Event_Description _EV_A_CHANGED2 = 13EAPI const Efl_Event_Description _EV_A_CHANGED2 =
14 EO_EVENT_DESCRIPTION("a,changed"); 14 EFL_EVENT_DESCRIPTION("a,changed");
15 15
16static void 16static void
17_a_set(Eo *obj EINA_UNUSED, void *class_data, int a) 17_a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
@@ -20,7 +20,7 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
20 printf("%s %d\n", eo_class_name_get(MY_CLASS), a); 20 printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
21 pd->a = a; 21 pd->a = a;
22 22
23 eo_event_callback_call(obj, EV_A_CHANGED, &pd->a); 23 efl_event_callback_call(obj, EV_A_CHANGED, &pd->a);
24} 24}
25 25
26static int 26static int
@@ -41,7 +41,7 @@ _a_print(Eo *obj EINA_UNUSED, void *class_data)
41} 41}
42 42
43static Eina_Bool 43static Eina_Bool
44_class_hi_print(Eo_Class *klass, void *data EINA_UNUSED) 44_class_hi_print(Efl_Class *klass, void *data EINA_UNUSED)
45{ 45{
46 printf("Hi Print %s\n", eo_class_name_get(klass)); 46 printf("Hi Print %s\n", eo_class_name_get(klass));
47 47
@@ -74,10 +74,10 @@ _recursive(Eo *obj, void *class_data EINA_UNUSED, int n)
74} 74}
75 75
76static void 76static void
77_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, Eo_Dbg_Info *root) 77_dbg_info_get(Eo *eo_obj, void *_pd EINA_UNUSED, Efl_Dbg_Info *root)
78{ 78{
79 eo_dbg_info_get(eo_super(eo_obj, MY_CLASS), root); 79 efl_dbg_info_get(eo_super(eo_obj, MY_CLASS), root);
80 Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, "Test list"); 80 Efl_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, "Test list");
81 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8); 81 EO_DBG_INFO_APPEND(group, "Test", EINA_VALUE_TYPE_INT, 8);
82} 82}
83 83
@@ -88,7 +88,7 @@ EO_FUNC_BODY_CONST(simple_class_hi_print, Eina_Bool, EINA_FALSE);
88EO_VOID_FUNC_BODY(simple_pure_virtual); 88EO_VOID_FUNC_BODY(simple_pure_virtual);
89EO_VOID_FUNC_BODY(simple_no_implementation); 89EO_VOID_FUNC_BODY(simple_no_implementation);
90 90
91static Eo_Op_Description op_descs[] = { 91static Efl_Op_Description op_descs[] = {
92 EO_OP_FUNC(simple_a_set, _a_set), 92 EO_OP_FUNC(simple_a_set, _a_set),
93 EO_OP_FUNC(simple_a_get, _a_get), 93 EO_OP_FUNC(simple_a_get, _a_get),
94 EO_OP_FUNC(simple_a_print, _a_print), 94 EO_OP_FUNC(simple_a_print, _a_print),
@@ -96,10 +96,10 @@ static Eo_Op_Description op_descs[] = {
96 EO_OP_FUNC(simple_recursive, _recursive), 96 EO_OP_FUNC(simple_recursive, _recursive),
97 EO_OP_FUNC(simple_part_get, _part_get), 97 EO_OP_FUNC(simple_part_get, _part_get),
98 EO_OP_FUNC(simple_pure_virtual, NULL), 98 EO_OP_FUNC(simple_pure_virtual, NULL),
99 EO_OP_FUNC_OVERRIDE(eo_dbg_info_get, _dbg_info_get), 99 EO_OP_FUNC_OVERRIDE(efl_dbg_info_get, _dbg_info_get),
100}; 100};
101 101
102static const Eo_Class_Description class_desc = { 102static const Efl_Class_Description class_desc = {
103 EO_VERSION, 103 EO_VERSION,
104 "Simple", 104 "Simple",
105 EO_CLASS_TYPE_REGULAR, 105 EO_CLASS_TYPE_REGULAR,
@@ -121,11 +121,11 @@ _beef_get(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED)
121 121
122EO_FUNC_BODY_CONST(simple2_class_beef_get, int, 0); 122EO_FUNC_BODY_CONST(simple2_class_beef_get, int, 0);
123 123
124static Eo_Op_Description op_descs2[] = { 124static Efl_Op_Description op_descs2[] = {
125 EO_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get), 125 EO_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get),
126}; 126};
127 127
128static const Eo_Class_Description class_desc2 = { 128static const Efl_Class_Description class_desc2 = {
129 EO_VERSION, 129 EO_VERSION,
130 "Simple2", 130 "Simple2",
131 EO_CLASS_TYPE_REGULAR, 131 EO_CLASS_TYPE_REGULAR,
@@ -138,19 +138,19 @@ static const Eo_Class_Description class_desc2 = {
138 138
139EO_DEFINE_CLASS(simple2_class_get, &class_desc2, EO_CLASS, NULL) 139EO_DEFINE_CLASS(simple2_class_get, &class_desc2, EO_CLASS, NULL)
140 140
141static Eo_Base* 141static Efl_Object*
142_interface_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, const Eo_Base *klass) 142_interface_get(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, const Efl_Object *klass)
143{ 143{
144 if (klass == SEARCHABLE_CLASS) return obj; 144 if (klass == SEARCHABLE_CLASS) return obj;
145 145
146 return eo_provider_find(eo_super(obj, SEARCHABLE_CLASS), klass); 146 return efl_provider_find(eo_super(obj, SEARCHABLE_CLASS), klass);
147} 147}
148 148
149static Eo_Op_Description op_descs_searchable[] = { 149static Efl_Op_Description op_descs_searchable[] = {
150 EO_OP_FUNC_OVERRIDE(eo_provider_find, _interface_get) 150 EO_OP_FUNC_OVERRIDE(efl_provider_find, _interface_get)
151}; 151};
152 152
153static const Eo_Class_Description class_desc_searchable = { 153static const Efl_Class_Description class_desc_searchable = {
154 EO_VERSION, 154 EO_VERSION,
155 "Searchable", 155 "Searchable",
156 EO_CLASS_TYPE_REGULAR, 156 EO_CLASS_TYPE_REGULAR,