summaryrefslogtreecommitdiff
path: root/src/lib/efl
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/efl
parent3edb4ca6975946b7cfd3b261f5c1c7a46d681710 (diff)
ecore: move efl_model_list_value_get to be an internal function.
Diffstat (limited to 'src/lib/efl')
-rw-r--r--src/lib/efl/Efl_Model_Common.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/efl/Efl_Model_Common.h b/src/lib/efl/Efl_Model_Common.h
index b4b5690917..7a064f0dff 100644
--- a/src/lib/efl/Efl_Model_Common.h
+++ b/src/lib/efl/Efl_Model_Common.h
@@ -91,34 +91,4 @@ EAPI Eina_Value_Struct_Desc *efl_model_value_struct_description_new(unsigned int
91 */ 91 */
92EAPI void efl_model_value_struct_description_free(Eina_Value_Struct_Desc *desc); 92EAPI void efl_model_value_struct_description_free(Eina_Value_Struct_Desc *desc);
93 93
94
95static inline Eina_Value
96efl_model_list_value_get(Eina_List *childrens,
97 unsigned int start,
98 unsigned int count)
99{
100 Eina_Value v = EINA_VALUE_EMPTY;
101 Eina_List *l;
102 Eo *child;
103
104 eina_value_array_setup(&v, EINA_VALUE_TYPE_OBJECT, eina_list_count(childrens));
105
106 EINA_LIST_FOREACH(childrens, l, child)
107 {
108 if (start != 0)
109 {
110 start--;
111 continue;
112 }
113 if (count == 0)
114 continue;
115 count--;
116
117 eina_value_array_append(&v, child);
118 }
119
120 return v;
121}
122
123
124#endif 94#endif