summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_internal.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-12-20 14:19:56 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-04-30 14:21:12 -0700
commit9e2493760b3908228c3c3971ae3a0309befccab7 (patch)
treee94dd43a331591efb871dc5aa25d0cb0898c8b4a /src/lib/ecore/ecore_internal.h
parent3edb4ca6975946b7cfd3b261f5c1c7a46d681710 (diff)
ecore: move efl_model_list_value_get to be an internal function.
Diffstat (limited to 'src/lib/ecore/ecore_internal.h')
-rw-r--r--src/lib/ecore/ecore_internal.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_internal.h b/src/lib/ecore/ecore_internal.h
index 5f34adee23..5bb5754f1c 100644
--- a/src/lib/ecore/ecore_internal.h
+++ b/src/lib/ecore/ecore_internal.h
@@ -31,6 +31,34 @@
31EAPI void ecore_loop_arguments_send(int argc, const char **argv); 31EAPI void ecore_loop_arguments_send(int argc, const char **argv);
32EAPI Eina_Bool efl_loop_message_process(Eo *obj); 32EAPI Eina_Bool efl_loop_message_process(Eo *obj);
33 33
34static inline Eina_Value
35efl_model_list_value_get(Eina_List *childrens,
36 unsigned int start,
37 unsigned int count)
38{
39 Eina_Value v = EINA_VALUE_EMPTY;
40 Eina_List *l;
41 Eo *child;
42
43 eina_value_array_setup(&v, EINA_VALUE_TYPE_OBJECT, eina_list_count(childrens));
44
45 EINA_LIST_FOREACH(childrens, l, child)
46 {
47 if (start != 0)
48 {
49 start--;
50 continue;
51 }
52 if (count == 0)
53 continue;
54 count--;
55
56 eina_value_array_append(&v, child);
57 }
58
59 return v;
60}
61
34#undef EAPI 62#undef EAPI
35#define EAPI 63#define EAPI
36 64