Eo benchmarks: Fix according to recent Eo changes.

Thanks to Stefan for the report.
This commit is contained in:
Tom Hacohen 2016-09-06 13:57:55 +01:00
parent 689ba2ff6d
commit 75c981a9d9
2 changed files with 21 additions and 9 deletions

View File

@ -30,17 +30,23 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
EAPI EFL_VOID_FUNC_BODYV(simple_a_set, EFL_FUNC_CALL(a), int a); EAPI EFL_VOID_FUNC_BODYV(simple_a_set, EFL_FUNC_CALL(a), int a);
static Efl_Op_Description op_desc[] = { static Eina_Bool
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set), _class_initializer(Efl_Class *klass)
EFL_OBJECT_OP_FUNC(simple_other_call, _other_call), {
}; EFL_OPS_DEFINE(ops,
EFL_OBJECT_OP_FUNC(simple_a_set, _a_set),
EFL_OBJECT_OP_FUNC(simple_other_call, _other_call),
);
return efl_class_functions_set(klass, &ops);
}
static const Efl_Class_Description class_desc = { static const Efl_Class_Description class_desc = {
EO_VERSION, EO_VERSION,
"Simple", "Simple",
EFL_CLASS_TYPE_REGULAR, EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_desc),
sizeof(Simple_Public_Data), sizeof(Simple_Public_Data),
_class_initializer,
NULL, NULL,
NULL NULL
}; };

View File

@ -58,9 +58,15 @@ _a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
simple_a_set(efl_super(obj, cur_klass), a); simple_a_set(efl_super(obj, cur_klass), a);
} }
static Efl_Op_Description op_desc[] = { static Eina_Bool
EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set), _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 void static void
bench_eo_do_super(int request) bench_eo_do_super(int request)
@ -69,8 +75,8 @@ bench_eo_do_super(int request)
EO_VERSION, EO_VERSION,
"Simple2", "Simple2",
EFL_CLASS_TYPE_REGULAR, EFL_CLASS_TYPE_REGULAR,
EFL_CLASS_DESCRIPTION_OPS(op_desc),
0, 0,
_class_initializer,
NULL, NULL,
NULL NULL
}; };