summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite/eo_test_class_simple.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-09-09 10:53:58 +0100
committerTom Hacohen <tom@stosb.com>2016-09-09 11:14:35 +0100
commit7ebf9d879d41169beda06b0195e4a3b3c60818e1 (patch)
treed95a4bf61adb806446376b3c5e84b7deb2dfba3c /src/tests/eo/suite/eo_test_class_simple.c
parent12dbab33f9281e3052b66126c8e9a182372f30b6 (diff)
Eo: Change the way functions are registered to classes
This change lets us remove a field from the structure that leads to around 20KiB more of saving in private dirty pages in elementary. This also looks a bit better and feels a bit cleaner. Breaks API and ABI.
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_simple.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_simple.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tests/eo/suite/eo_test_class_simple.c b/src/tests/eo/suite/eo_test_class_simple.c
index a740e433f2..56620c68a2 100644
--- a/src/tests/eo/suite/eo_test_class_simple.c
+++ b/src/tests/eo/suite/eo_test_class_simple.c
@@ -95,14 +95,16 @@ _class_initializer(Efl_Class *klass)
95 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set), 95 EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
96 EFL_OBJECT_OP_FUNC(simple_a_get, _a_get), 96 EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
97 EFL_OBJECT_OP_FUNC(simple_a_print, _a_print), 97 EFL_OBJECT_OP_FUNC(simple_a_print, _a_print),
98 EFL_OBJECT_OP_CLASS_FUNC(simple_class_hi_print, _class_hi_print),
99 EFL_OBJECT_OP_FUNC(simple_recursive, _recursive), 98 EFL_OBJECT_OP_FUNC(simple_recursive, _recursive),
100 EFL_OBJECT_OP_FUNC(simple_part_get, _part_get), 99 EFL_OBJECT_OP_FUNC(simple_part_get, _part_get),
101 EFL_OBJECT_OP_FUNC(simple_pure_virtual, NULL), 100 EFL_OBJECT_OP_FUNC(simple_pure_virtual, NULL),
102 EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _dbg_info_get), 101 EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _dbg_info_get),
103 ); 102 );
103 EFL_OPS_DEFINE(cops,
104 EFL_OBJECT_OP_FUNC(simple_class_hi_print, _class_hi_print),
105 );
104 106
105 return efl_class_functions_set(klass, &ops); 107 return efl_class_functions_set(klass, &ops, &cops);
106} 108}
107 109
108static const Efl_Class_Description class_desc = { 110static const Efl_Class_Description class_desc = {
@@ -129,11 +131,11 @@ EFL_FUNC_BODY_CONST(simple2_class_beef_get, int, 0);
129static Eina_Bool 131static Eina_Bool
130_class_initializer2(Efl_Class *klass) 132_class_initializer2(Efl_Class *klass)
131{ 133{
132 EFL_OPS_DEFINE(ops, 134 EFL_OPS_DEFINE(cops,
133 EFL_OBJECT_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get), 135 EFL_OBJECT_OP_FUNC(simple2_class_beef_get, _beef_get),
134 ); 136 );
135 137
136 return efl_class_functions_set(klass, &ops); 138 return efl_class_functions_set(klass, NULL, &cops);
137} 139}
138 140
139static const Efl_Class_Description class_desc2 = { 141static const Efl_Class_Description class_desc2 = {
@@ -163,7 +165,7 @@ _searchable_class_initializer(Efl_Class *klass)
163 EFL_OBJECT_OP_FUNC(efl_provider_find, _interface_get) 165 EFL_OBJECT_OP_FUNC(efl_provider_find, _interface_get)
164 ); 166 );
165 167
166 return efl_class_functions_set(klass, &ops); 168 return efl_class_functions_set(klass, &ops, NULL);
167} 169}
168 170
169static const Efl_Class_Description class_desc_searchable = { 171static const Efl_Class_Description class_desc_searchable = {