summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/eo_bench_eo_do.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/benchmarks/eo/eo_bench_eo_do.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/benchmarks/eo/eo_bench_eo_do.c')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 485f29725f..d9279901e1 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -10,44 +10,44 @@ static void
10bench_eo_do_simple(int request) 10bench_eo_do_simple(int request)
11{ 11{
12 int i; 12 int i;
13 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 13 Eo *obj = efl_add(SIMPLE_CLASS, NULL);
14 for (i = 0 ; i < request ; i++) 14 for (i = 0 ; i < request ; i++)
15 { 15 {
16 simple_a_set(obj, i); 16 simple_a_set(obj, i);
17 } 17 }
18 18
19 eo_unref(obj); 19 efl_unref(obj);
20} 20}
21 21
22static void 22static void
23bench_eo_do_two_objs(int request) 23bench_eo_do_two_objs(int request)
24{ 24{
25 int i; 25 int i;
26 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 26 Eo *obj = efl_add(SIMPLE_CLASS, NULL);
27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 27 Eo *obj2 = efl_add(SIMPLE_CLASS, NULL);
28 for (i = 0 ; i < request ; i++) 28 for (i = 0 ; i < request ; i++)
29 { 29 {
30 simple_a_set(obj, i); 30 simple_a_set(obj, i);
31 simple_a_set(obj2, i); 31 simple_a_set(obj2, i);
32 } 32 }
33 33
34 eo_unref(obj); 34 efl_unref(obj);
35 eo_unref(obj2); 35 efl_unref(obj2);
36} 36}
37 37
38static void 38static void
39bench_eo_do_two_objs_growing_stack(int request) 39bench_eo_do_two_objs_growing_stack(int request)
40{ 40{
41 int i; 41 int i;
42 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 42 Eo *obj = efl_add(SIMPLE_CLASS, NULL);
43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 43 Eo *obj2 = efl_add(SIMPLE_CLASS, NULL);
44 for (i = 0 ; i < request ; i++) 44 for (i = 0 ; i < request ; i++)
45 { 45 {
46 simple_other_call(obj, obj2, 20); 46 simple_other_call(obj, obj2, 20);
47 } 47 }
48 48
49 eo_unref(obj); 49 efl_unref(obj);
50 eo_unref(obj2); 50 efl_unref(obj2);
51} 51}
52 52
53static const Efl_Class *cur_klass; 53static const Efl_Class *cur_klass;
@@ -55,11 +55,11 @@ static const Efl_Class *cur_klass;
55static void 55static void
56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a) 56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
57{ 57{
58 simple_a_set(eo_super(obj, cur_klass), a); 58 simple_a_set(efl_super(obj, cur_klass), a);
59} 59}
60 60
61static Efl_Op_Description op_desc[] = { 61static Efl_Op_Description op_desc[] = {
62 EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set), 62 EFL_OBJECT_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
63}; 63};
64 64
65static void 65static void
@@ -68,23 +68,23 @@ bench_eo_do_super(int request)
68 static Efl_Class_Description class_desc = { 68 static Efl_Class_Description class_desc = {
69 EO_VERSION, 69 EO_VERSION,
70 "Simple2", 70 "Simple2",
71 EO_CLASS_TYPE_REGULAR, 71 EFL_CLASS_TYPE_REGULAR,
72 EO_CLASS_DESCRIPTION_OPS(op_desc), 72 EFL_CLASS_DESCRIPTION_OPS(op_desc),
73 NULL, 73 NULL,
74 0, 74 0,
75 NULL, 75 NULL,
76 NULL 76 NULL
77 }; 77 };
78 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 78 cur_klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL);
79 79
80 int i; 80 int i;
81 Eo *obj = eo_add(cur_klass, NULL); 81 Eo *obj = efl_add(cur_klass, NULL);
82 for (i = 0 ; i < request ; i++) 82 for (i = 0 ; i < request ; i++)
83 { 83 {
84 simple_a_set(obj, i); 84 simple_a_set(obj, i);
85 } 85 }
86 86
87 eo_unref(obj); 87 efl_unref(obj);
88} 88}
89 89
90void eo_bench_eo_do(Eina_Benchmark *bench) 90void eo_bench_eo_do(Eina_Benchmark *bench)