summaryrefslogtreecommitdiff
path: root/src/tests/eo/access
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-01 18:06:28 +0000
committerTom Hacohen <tom@stosb.com>2016-03-03 09:58:08 +0000
commitf21ade6123b9053fca8d1632644c48525a99d6e0 (patch)
treec5eb0445f471d21365a7a5a7b0ec7d279c11b398 /src/tests/eo/access
parent3faf3f3fc68a839f06b311c35ba020cb25e7c9c4 (diff)
Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
Diffstat (limited to 'src/tests/eo/access')
-rw-r--r--src/tests/eo/access/access_main.c3
-rw-r--r--src/tests/eo/access/access_simple.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/eo/access/access_main.c b/src/tests/eo/access/access_main.c
index 61cd381..d8d825b 100644
--- a/src/tests/eo/access/access_main.c
+++ b/src/tests/eo/access/access_main.c
@@ -15,7 +15,8 @@ main(int argc, char *argv[])
15 15
16 Eo *obj = eo_add(INHERIT_CLASS, NULL); 16 Eo *obj = eo_add(INHERIT_CLASS, NULL);
17 17
18 eo_do(obj, simple_a_set(1), inherit_prot_print()); 18 simple_a_set(obj, 1);
19 inherit_prot_print(obj);
19 20
20 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS); 21 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS);
21 printf("Pub: %d\n", pd->public_x2); 22 printf("Pub: %d\n", pd->public_x2);
diff --git a/src/tests/eo/access/access_simple.c b/src/tests/eo/access/access_simple.c
index 55e55e0..b4f8766 100644
--- a/src/tests/eo/access/access_simple.c
+++ b/src/tests/eo/access/access_simple.c
@@ -27,7 +27,7 @@ _a_set(Eo *obj, void *class_data, int a)
27 pd->protected.protected_x1 = a + 1; 27 pd->protected.protected_x1 = a + 1;
28 pd->protected.public.public_x2 = a + 2; 28 pd->protected.public.public_x2 = a + 2;
29 29
30 eo_do(obj, eo_event_callback_call(EV_A_CHANGED, &pd->a)); 30 eo_event_callback_call(obj, EV_A_CHANGED, &pd->a);
31} 31}
32 32
33EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a); 33EAPI EO_VOID_FUNC_BODYV(simple_a_set, EO_FUNC_CALL(a), int a);