aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-10 15:23:04 +0100
committerTom Hacohen <tom@stosb.com>2016-08-11 17:04:43 +0100
commitc662934be8bcbaba60d1688e77533acbea5d09b9 (patch)
tree8e12b5ffd083024f09b7ec7fa9f979113056fb9d /src/benchmarks
parentEo: Rename most of Eo to the Efl prefix. (diff)
downloadefl-c662934be8bcbaba60d1688e77533acbea5d09b9.tar.gz
Change the EFL to follow the new Eo rename.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eo/class_simple.c8
-rw-r--r--src/benchmarks/eo/class_simple.h6
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c6
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c6
4 files changed, 13 insertions, 13 deletions
diff --git a/src/benchmarks/eo/class_simple.c b/src/benchmarks/eo/class_simple.c
index a4482726c3..e825291270 100644
--- a/src/benchmarks/eo/class_simple.c
+++ b/src/benchmarks/eo/class_simple.c
@@ -7,8 +7,8 @@
#define MY_CLASS SIMPLE_CLASS
-EOAPI const Eo_Event_Description _SIMPLE_FOO = EO_EVENT_DESCRIPTION("foo");
-EOAPI const Eo_Event_Description _SIMPLE_BAR = EO_EVENT_DESCRIPTION("bar");
+EOAPI const Efl_Event_Description _SIMPLE_FOO = EFL_EVENT_DESCRIPTION("foo");
+EOAPI const Efl_Event_Description _SIMPLE_BAR = EFL_EVENT_DESCRIPTION("bar");
static void
_other_call(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED, Eo *other, int times)
@@ -30,12 +30,12 @@ _a_set(Eo *obj EINA_UNUSED, void *class_data, int a)
EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);
-static Eo_Op_Description op_desc[] = {
+static Efl_Op_Description op_desc[] = {
EO_OP_FUNC(simple_a_set, _a_set),
EO_OP_FUNC(simple_other_call, _other_call),
};
-static const Eo_Class_Description class_desc = {
+static const Efl_Class_Description class_desc = {
EO_VERSION,
"Simple",
EO_CLASS_TYPE_REGULAR,
diff --git a/src/benchmarks/eo/class_simple.h b/src/benchmarks/eo/class_simple.h
index ecfbfa7f99..8445116963 100644
--- a/src/benchmarks/eo/class_simple.h
+++ b/src/benchmarks/eo/class_simple.h
@@ -12,10 +12,10 @@ EAPI void simple_a_set(Eo *self, int a);
EAPI void simple_other_call(Eo*self, Eo *other, int times);
#define SIMPLE_CLASS simple_class_get()
-const Eo_Class *simple_class_get(void);
+const Efl_Class *simple_class_get(void);
-EOAPI extern const Eo_Event_Description _SIMPLE_FOO;
-EOAPI extern const Eo_Event_Description _SIMPLE_BAR;
+EOAPI extern const Efl_Event_Description _SIMPLE_FOO;
+EOAPI extern const Efl_Event_Description _SIMPLE_BAR;
#define SIMPLE_FOO (&(_SIMPLE_FOO))
#define SIMPLE_BAR (&(_SIMPLE_BAR))
diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c
index 69ea71e4e3..ed76228c3d 100644
--- a/src/benchmarks/eo/eo_bench_callbacks.c
+++ b/src/benchmarks/eo/eo_bench_callbacks.c
@@ -20,7 +20,7 @@ bench_eo_callbacks_add(int request)
for (i = 0 ; i < request ; i++)
{
- eo_event_callback_priority_add(obj, SIMPLE_FOO, (short) i, _cb, NULL);
+ efl_event_callback_priority_add(obj, SIMPLE_FOO, (short) i, _cb, NULL);
}
eo_unref(obj);
@@ -56,7 +56,7 @@ bench_eo_callbacks_call(int request)
for (j = 0 ; j < i ; j++)
{
- eo_event_callback_priority_add(obj[i], SIMPLE_FOO, (short) j, _cb, NULL);
+ efl_event_callback_priority_add(obj[i], SIMPLE_FOO, (short) j, _cb, NULL);
}
}
@@ -65,7 +65,7 @@ bench_eo_callbacks_call(int request)
for (j = 0 ; j < (int) (distribution[i] * request) ; j++)
{
/* Miss finding the callbacks on purpose, so we measure worst case scenario. */
- eo_event_callback_call(obj[i], SIMPLE_BAR, NULL);
+ efl_event_callback_call(obj[i], SIMPLE_BAR, NULL);
}
}
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 9f84535254..485f29725f 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -50,7 +50,7 @@ bench_eo_do_two_objs_growing_stack(int request)
eo_unref(obj2);
}
-static const Eo_Class *cur_klass;
+static const Efl_Class *cur_klass;
static void
_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
@@ -58,14 +58,14 @@ _a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
simple_a_set(eo_super(obj, cur_klass), a);
}
-static Eo_Op_Description op_desc[] = {
+static Efl_Op_Description op_desc[] = {
EO_OP_FUNC_OVERRIDE(simple_a_set, _a_set),
};
static void
bench_eo_do_super(int request)
{
- static Eo_Class_Description class_desc = {
+ static Efl_Class_Description class_desc = {
EO_VERSION,
"Simple2",
EO_CLASS_TYPE_REGULAR,