summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_model.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2018-11-23 16:25:19 +0000
committerCedric BAIL <cedric@osg.samsung.com>2018-11-23 10:13:58 -0800
commitd4d44d76f3efef4d61edb4cce7152284915a12d2 (patch)
tree502779c9047c6a8e02c8466f81ddc8616887fa50 /src/lib/eio/eio_model.c
parentaac7d099a17d69f5989481f8999a43d4173005bd (diff)
efl: make Efl.Model.properties_get return an Iterator<string>.
Reviewed-by: Vitor Sousa da Silva <vitorsousa@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D7289
Diffstat (limited to 'src/lib/eio/eio_model.c')
-rw-r--r--src/lib/eio/eio_model.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib/eio/eio_model.c b/src/lib/eio/eio_model.c
index 62e52f4..ee8296a 100644
--- a/src/lib/eio/eio_model.c
+++ b/src/lib/eio/eio_model.c
@@ -631,18 +631,11 @@ static struct {
631/** 631/**
632 * Interfaces impl. 632 * Interfaces impl.
633 */ 633 */
634static Eina_Array * 634static Eina_Iterator *
635_eio_model_efl_model_properties_get(const Eo *obj EINA_UNUSED, 635_eio_model_efl_model_properties_get(const Eo *obj EINA_UNUSED,
636 Eio_Model_Data *pd EINA_UNUSED) 636 Eio_Model_Data *pd EINA_UNUSED)
637{ 637{
638 Eina_Array *r; 638 return EINA_C_ARRAY_ITERATOR_NEW(properties);
639 unsigned int i;
640
641 r = eina_array_new(4);
642 for (i = 0; i < EINA_C_ARRAY_LENGTH(properties); ++i)
643 eina_array_push(r, properties[i].name);
644
645 return r;
646} 639}
647 640
648static Eina_Value * 641static Eina_Value *