static void _custom_engine_layout_do(Eo *obj, void *pd, Efl_Pack *pack, const void *data);
/* Common Efl Class boilerplate. */
-static const Efl_Op_Description custom_engine_op_desc[] = {
- EFL_OBJECT_OP_CLASS_FUNC_OVERRIDE(efl_pack_layout_do, _custom_engine_layout_do),
-};
+static Eina_Bool
+_custom_engine_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_CLASS_FUNC_OVERRIDE(efl_pack_layout_do, _custom_engine_layout_do),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description custom_engine_class_desc = {
EO_VERSION, "Custom Layout Engine", EFL_CLASS_TYPE_INTERFACE,
- EFL_CLASS_DESCRIPTION_OPS(custom_engine_op_desc), 0, NULL, NULL
+ 0, _custom_engine_class_initializer, NULL, NULL
};
EFL_DEFINE_CLASS(_test_ui_grid_custom_engine_class_get, &custom_engine_class_desc, EFL_PACK_LAYOUT_INTERFACE, NULL)
static const Efl_Class_Description custom_table_class_desc = {
EO_VERSION, "Efl.Ui.Grid.Internal", EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(custom_table_op_desc),
- sizeof(Custom_Table_Data), NULL, NULL
+ sizeof(Custom_Table_Data), _custom_table_initializer, NULL, NULL
};
EFL_DEFINE_CLASS(_efl_ui_grid_custom_table_class_get, &custom_table_class_desc,
EO_VERSION,
"Inherit",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Private_Data),
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
return obj;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_get, _a_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_get, _a_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Comp",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EAPI EFL_VOID_FUNC_BODYV(simple_a_get31, EFL_FUNC_CALL(a), int a);
EAPI EFL_VOID_FUNC_BODYV(simple_a_get32, EFL_FUNC_CALL(a), int a);
-/* XXX: This is fragile, and emulates many IDs in order to go to the next
- * op id chain (assuming chain size is as it is at the moment, 32).
- * This is needed in order to properly test some edge cases (see commit message
- * for more info). */
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(simple_a_set1, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set2, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set3, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set4, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set5, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set6, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set7, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set8, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set9, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set10, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set11, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set12, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set13, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set14, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set15, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set16, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set17, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set18, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set19, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set20, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set21, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set22, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set23, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set24, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set25, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set26, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set27, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set28, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set29, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set30, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set31, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_set32, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get1, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get2, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get3, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get4, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get5, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get6, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get7, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get8, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get9, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get10, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get11, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get12, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get13, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get14, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get15, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get16, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get17, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get18, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get19, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get20, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get21, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get22, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get23, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get24, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get25, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get26, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get27, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get28, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get29, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get30, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get31, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_get32, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
-};
+
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ /* XXX: This is fragile, and emulates many IDs in order to go to the next
+ * op id chain (assuming chain size is as it is at the moment, 32).
+ * This is needed in order to properly test some edge cases (see commit message
+ * for more info). */
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(simple_a_set1, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set2, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set3, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set4, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set5, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set6, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set7, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set8, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set9, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set10, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set11, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set12, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set13, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set14, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set15, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set16, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set17, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set18, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set19, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set20, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set21, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set22, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set23, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set24, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set25, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set26, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set27, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set28, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set29, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set30, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set31, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_set32, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get1, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get2, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get3, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get4, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get5, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get6, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get7, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get8, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get9, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get10, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get11, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get12, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get13, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get14, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get15, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get16, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get17, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get18, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get19, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get20, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get21, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get22, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get23, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get24, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get25, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get26, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get27, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get28, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get29, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get30, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get31, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_get32, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Simple_Public_Data),
+ _class_initializer,
NULL,
NULL
};
EAPI EFL_VOID_FUNC_BODYV(mixin_add_and_print, EFL_FUNC_CALL(x), int x);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(mixin_add_and_print, _add_and_print_set),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(mixin_add_and_print, _add_and_print_set),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Mixin",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EFL_VOID_FUNC_BODYV(simple_constructor, EFL_FUNC_CALL(a), int a);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_finalize, _finalize),
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
- EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_finalize, _finalize),
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
EFL_OBJECT_OP_FUNC(simple_b_get, _b_get),
-};
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Private_Data),
+ _class_initializer,
_class_constructor,
_class_destructor
};
return NULL;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
return obj;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple3",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple4",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
(void) obj;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple5",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
efl_destructor(efl_super(obj, MY_CLASS));
}
-static Efl_Op_Description op_descs [] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple6",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
return efl_constructor(efl_super(obj, MY_CLASS));
}
-static Efl_Op_Description op_descs [] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple7",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Inherit",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EAPI EFL_FUNC_BODY(inherit2_print, Eina_Bool, EINA_FALSE);
EAPI EFL_FUNC_BODY(inherit2_print2, Eina_Bool, EINA_FALSE);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(inherit2_print, _print),
- EFL_OBJECT_OP_FUNC(inherit2_print2, _print2),
- EFL_OBJECT_OP_CLASS_FUNC_OVERRIDE(simple_class_print, _class_print),
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(inherit2_print, _print),
+ EFL_OBJECT_OP_FUNC(inherit2_print2, _print2),
+ EFL_OBJECT_OP_CLASS_FUNC_OVERRIDE(simple_class_print, _class_print),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Inherit2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
simple_a_set(efl_super(obj, MY_CLASS), a + 1);
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Inherit3",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EAPI EFL_FUNC_BODY_CONST(simple_class_print, Eina_Bool, EINA_FALSE);
EAPI EFL_FUNC_BODY_CONST(simple_class_print2, Eina_Bool, EINA_FALSE);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_print, _a_print),
- EFL_OBJECT_OP_FUNC(simple_class_print, _class_print),
- EFL_OBJECT_OP_FUNC(simple_class_print2, _class_print2),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_print, _a_print),
+ EFL_OBJECT_OP_FUNC(simple_class_print, _class_print),
+ EFL_OBJECT_OP_FUNC(simple_class_print2, _class_print2),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Simple_Public_Data),
+ _class_initializer,
NULL,
NULL
};
EFL_FUNC_BODY(interface_ab_sum_get, int, 0);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(interface_ab_sum_get, NULL),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(interface_ab_sum_get, NULL),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Interface",
EFL_CLASS_TYPE_INTERFACE,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EFL_FUNC_BODY(interface2_ab_sum_get2, int, 0);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(interface2_ab_sum_get2, NULL),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(interface2_ab_sum_get2, NULL),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Interface2",
EFL_CLASS_TYPE_INTERFACE,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
return a + b + 1;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
- EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
- EFL_OBJECT_OP_FUNC(simple_b_get, _b_get),
- EFL_OBJECT_OP_FUNC_OVERRIDE(interface_ab_sum_get, _ab_sum_get),
- EFL_OBJECT_OP_FUNC_OVERRIDE(interface2_ab_sum_get2, _ab_sum_get2),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
+ EFL_OBJECT_OP_FUNC(simple_b_get, _b_get),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(interface_ab_sum_get, _ab_sum_get),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(interface2_ab_sum_get2, _ab_sum_get2),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Private_Data),
+ _class_initializer,
NULL,
NULL
};
return ret;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_get, _a_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_get, _a_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Inherit",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EAPI EFL_FUNC_BODY(mixin_ab_sum_get, int, 0);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
- EFL_OBJECT_OP_FUNC(mixin_ab_sum_get, _ab_sum_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ EFL_OBJECT_OP_FUNC(mixin_ab_sum_get, _ab_sum_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Mixin",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
efl_destructor(efl_super(obj, MY_CLASS));
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(mixin_ab_sum_get, _ab_sum_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(mixin_ab_sum_get, _ab_sum_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Mixin2",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Mixin2_Public_Data),
+ _class_initializer,
NULL,
NULL
};
efl_destructor(efl_super(obj, MY_CLASS));
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
- EFL_OBJECT_OP_FUNC_OVERRIDE(mixin_ab_sum_get, _ab_sum_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(mixin_ab_sum_get, _ab_sum_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Mixin3",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Mixin3_Public_Data),
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Mixin4",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
_GET_SET_FUNC(a)
_GET_SET_FUNC(b)
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
- EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
- EFL_OBJECT_OP_FUNC(simple_b_get, _b_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_b_set, _b_set),
+ EFL_OBJECT_OP_FUNC(simple_b_get, _b_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Private_Data),
+ _class_initializer,
NULL,
NULL
};
EAPI EFL_VOID_FUNC_BODYV(simple_a_set, EFL_FUNC_CALL(a), int a);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Private_Data),
+ _class_initializer,
NULL,
NULL
};
efl_unref(obj);
}
+static Eina_Bool
+_destructor_unref_class_initializer(Efl_Class *klass2)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor_unref),
+ );
+
+ return efl_class_functions_set(klass2, &ops);
+}
+
START_TEST(efl_destructor_unref)
{
efl_object_init();
eina_log_print_cb_set(eo_test_print_cb, &ctx);
- static Efl_Op_Description op_descs [] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _destructor_unref),
- };
-
static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _destructor_unref_class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Mixin",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"General",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Mixin",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Mixin2",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Mixin3",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Interface",
EFL_CLASS_TYPE_INTERFACE,
- EFL_CLASS_DESCRIPTION_NOOPS(),
10,
NULL,
+ NULL,
NULL
};
static void _null_fct(Eo *eo_obj EINA_UNUSED, void *d EINA_UNUSED) { }
void null_fct (void) {}
+static Eina_Bool
+_null_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(NULL, _null_fct),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
+
START_TEST(eo_null_api)
{
efl_object_init();
const Efl_Class *klass;
- static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(NULL, _null_fct),
- };
static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _null_class_initializer,
NULL,
NULL
};
}
END_TEST
+static Eina_Bool
+_wrong_override_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(null_fct, _null_fct),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
+
START_TEST(eo_wrong_override)
{
efl_object_init();
const Efl_Class *klass;
- static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(null_fct, _null_fct),
- };
static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _wrong_override_class_initializer,
NULL,
NULL
};
}
END_TEST
+static Eina_Bool
+_redefined_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(null_fct, _null_fct),
+ EFL_OBJECT_OP_FUNC(null_fct, NULL),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
+
START_TEST(eo_api_redefined)
{
efl_object_init();
const Efl_Class *klass;
- static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(null_fct, _null_fct),
- EFL_OBJECT_OP_FUNC(null_fct, NULL),
- };
static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _redefined_class_initializer,
NULL,
NULL
};
}
END_TEST
+static Eina_Bool
+_dich_func_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _null_fct),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, NULL),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
+
START_TEST(eo_dich_func_override)
{
efl_object_init();
const Efl_Class *klass;
- static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _null_fct),
- EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, NULL),
- };
static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _dich_func_class_initializer,
NULL,
NULL
};
EFL_VOID_FUNC_BODY(simple_pure_virtual);
EFL_VOID_FUNC_BODY(simple_no_implementation);
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
- EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
- EFL_OBJECT_OP_FUNC(simple_a_print, _a_print),
- EFL_OBJECT_OP_CLASS_FUNC(simple_class_hi_print, _class_hi_print),
- EFL_OBJECT_OP_FUNC(simple_recursive, _recursive),
- EFL_OBJECT_OP_FUNC(simple_part_get, _part_get),
- EFL_OBJECT_OP_FUNC(simple_pure_virtual, NULL),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_dbg_info_get, _dbg_info_get),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
+ EFL_OBJECT_OP_FUNC(simple_a_get, _a_get),
+ EFL_OBJECT_OP_FUNC(simple_a_print, _a_print),
+ EFL_OBJECT_OP_CLASS_FUNC(simple_class_hi_print, _class_hi_print),
+ EFL_OBJECT_OP_FUNC(simple_recursive, _recursive),
+ EFL_OBJECT_OP_FUNC(simple_part_get, _part_get),
+ EFL_OBJECT_OP_FUNC(simple_pure_virtual, NULL),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_dbg_info_get, _dbg_info_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Simple_Public_Data),
+ _class_initializer,
NULL,
NULL
};
EFL_FUNC_BODY_CONST(simple2_class_beef_get, int, 0);
-static Efl_Op_Description op_descs2[] = {
- EFL_OBJECT_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get),
-};
+static Eina_Bool
+_class_initializer2(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_CLASS_FUNC(simple2_class_beef_get, _beef_get),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc2 = {
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs2),
0,
+ _class_initializer2,
NULL,
NULL
};
return efl_provider_find(efl_super(obj, SEARCHABLE_CLASS), klass);
}
-static Efl_Op_Description op_descs_searchable[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_provider_find, _interface_get)
-};
+static Eina_Bool
+_searchable_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_provider_find, _interface_get)
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc_searchable = {
EO_VERSION,
"Searchable",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs_searchable),
0,
+ _searchable_class_initializer,
NULL,
NULL
};
return singleton_obj;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _singleton_efl_constructor),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _singleton_efl_constructor),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Singleton",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
0,
+ _class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
10,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Iface",
EFL_CLASS_TYPE_INTERFACE,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Mixin",
EFL_CLASS_TYPE_MIXIN,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
10,
NULL,
+ NULL,
NULL
};
efl_manual_free_set(obj, EINA_FALSE);
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _man_con),
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _man_des),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_constructor, _man_con),
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_destructor, _man_des),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
START_TEST(eo_man_free)
{
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
10,
+ _class_initializer,
NULL,
NULL
};
EFL_FUNC_BODY(multi_a_print, Eina_Bool, EINA_FALSE);
EFL_FUNC_BODY_CONST(multi_class_hi_print, Eina_Bool, EINA_FALSE);
-static Efl_Op_Description _multi_do_op_descs[] = {
- EFL_OBJECT_OP_FUNC(multi_a_print, _a_print),
- EFL_OBJECT_OP_FUNC(multi_class_hi_print, _class_hi_print),
-};
+static Eina_Bool
+_multi_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(multi_a_print, _a_print),
+ EFL_OBJECT_OP_FUNC(multi_class_hi_print, _class_hi_print),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
START_TEST(eo_multiple_do)
{
EO_VERSION,
"Inherit",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(_multi_do_op_descs),
0,
+ _multi_class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
return NULL;
}
-static Efl_Op_Description _efl_add_failures_op_descs[] = {
- EFL_OBJECT_OP_FUNC_OVERRIDE(efl_finalize, _efl_add_failures_finalize),
-};
+static Eina_Bool
+_add_failures_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC_OVERRIDE(efl_finalize, _efl_add_failures_finalize),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
START_TEST(efl_add_failures)
{
EO_VERSION,
"Simple2",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(_efl_add_failures_op_descs),
0,
+ _add_failures_class_initializer,
NULL,
NULL
};
EO_VERSION,
"Simple",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_NOOPS(),
0,
NULL,
+ NULL,
NULL
};
return obj;
}
-static Efl_Op_Description op_descs[] = {
- EFL_OBJECT_OP_FUNC(thread_test_constructor, _constructor),
- EFL_OBJECT_OP_FUNC(thread_test_v_get, _v_get),
- EFL_OBJECT_OP_FUNC(thread_test_try_swap_stack, _try_swap_stack),
-};
+static Eina_Bool
+_class_initializer(Efl_Class *klass)
+{
+ EFL_OPS_DEFINE(ops,
+ EFL_OBJECT_OP_FUNC(thread_test_constructor, _constructor),
+ EFL_OBJECT_OP_FUNC(thread_test_v_get, _v_get),
+ EFL_OBJECT_OP_FUNC(thread_test_try_swap_stack, _try_swap_stack),
+ );
+
+ return efl_class_functions_set(klass, &ops);
+}
static const Efl_Class_Description class_desc = {
EO_VERSION,
"Thread Test",
EFL_CLASS_TYPE_REGULAR,
- EFL_CLASS_DESCRIPTION_OPS(op_descs),
sizeof(Thread_Test_Public_Data),
+ _class_initializer,
NULL,
NULL
};