summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/eo_bench_eo_do.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-23 11:23:39 +0300
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-23 11:23:39 +0300
commit3c61dc1dba323e23acba623be778dae29ee7e505 (patch)
treee8baa1046eedbc7d067016de335b4c4f381ef5c1 /src/benchmarks/eo/eo_bench_eo_do.c
parent026d7210c6764fd1bca6169484f24cbbea511712 (diff)
Eo: adapt benchmarks to Eo2.
Diffstat (limited to '')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 601290e191..7210d01a8e 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -22,36 +22,22 @@ bench_eo_do_general(int request)
22static const Eo_Class *cur_klass; 22static const Eo_Class *cur_klass;
23 23
24static void 24static void
25_a_set(Eo *obj, void *class_data EINA_UNUSED, va_list *list) 25_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
26{ 26{
27 int a;
28 a = va_arg(*list, int);
29
30 eo_do_super(obj, cur_klass, simple_a_set(a)); 27 eo_do_super(obj, cur_klass, simple_a_set(a));
31} 28}
32 29
33static void 30static void
34_class_constructor(Eo_Class *klass)
35{
36 const Eo_Op_Func_Description func_desc[] = {
37 EO_OP_FUNC(SIMPLE_ID(SIMPLE_SUB_ID_A_SET), _a_set),
38 EO_OP_FUNC_SENTINEL
39 };
40
41 eo_class_funcs_set(klass, func_desc);
42}
43
44static void
45bench_eo_do_super(int request) 31bench_eo_do_super(int request)
46{ 32{
47 static Eo_Class_Description class_desc = { 33 static Eo_Class_Description class_desc = {
48 EO_VERSION, 34 EO_VERSION,
49 "Simple2", 35 "Simple2",
50 EO_CLASS_TYPE_REGULAR, 36 EO_CLASS_TYPE_REGULAR,
51 EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0), 37 EO_CLASS_DESCRIPTION_NOOPS(),
52 NULL, 38 NULL,
53 0, 39 0,
54 _class_constructor, 40 NULL,
55 NULL 41 NULL
56 }; 42 };
57 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 43 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);