aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/efl_mono/libefl_mono_native_test.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-18 23:43:09 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2018-05-23 18:59:26 -0300
commit54f1e56b34e5b8b67161b70b582e54be1fbf5c74 (patch)
treee2873270d4ef751bb5bd07932fcb6f898ef4c121 /src/tests/efl_mono/libefl_mono_native_test.c
parentefl_mono: Initial support for Accessors. (diff)
downloadefl-54f1e56b34e5b8b67161b70b582e54be1fbf5c74.tar.gz
efl_mono: Generate support for accessors in .eos
Summary: Depends on https://phab.enlightenment.org/D6190 Reviewers: felipealmeida, vitor.sousa Reviewed By: vitor.sousa Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6191
Diffstat (limited to 'src/tests/efl_mono/libefl_mono_native_test.c')
-rw-r--r--src/tests/efl_mono/libefl_mono_native_test.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tests/efl_mono/libefl_mono_native_test.c b/src/tests/efl_mono/libefl_mono_native_test.c
index 085188bcde..346ef2cb2c 100644
--- a/src/tests/efl_mono/libefl_mono_native_test.c
+++ b/src/tests/efl_mono/libefl_mono_native_test.c
@@ -52,6 +52,7 @@ typedef struct Test_Testing_Data
Eo *part1;
Eo *part2;
Eina_Promise *promise;
+ Eina_List *list_for_accessor;
} Test_Testing_Data;
typedef struct Test_Numberwrapper_Data
@@ -3841,6 +3842,20 @@ void _test_testing_reject_promise(Eo *obj, Test_Testing_Data *pd, Eina_Error err
eina_promise_reject(pd->promise, err);
}
+Eina_Accessor *_test_testing_clone_accessor(Eo *obj, Test_Testing_Data *pd, Eina_Accessor *acc)
+{
+ if (pd->list_for_accessor)
+ eina_list_free(pd->list_for_accessor);
+
+ unsigned int i;
+ int *data;
+ EINA_ACCESSOR_FOREACH(acc, i, data)
+ {
+ pd->list_for_accessor = eina_list_append(pd->list_for_accessor, data);
+ }
+
+ return eina_list_accessor_new(pd->list_for_accessor);
+}
#include "test_testing.eo.c"
#include "test_numberwrapper.eo.c"