From fa01f747a8638eae2467396ee903444973246556 Mon Sep 17 00:00:00 2001 From: Savio Sena Date: Fri, 12 Sep 2014 16:48:58 -0300 Subject: [PATCH] eolian-cxx: Added properties_get() wrapper. Returns the list of all properties in a class. --- src/bin/eolian_cxx/eolian_wrappers.hh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh index 970274cb1e..891771695f 100644 --- a/src/bin/eolian_cxx/eolian_wrappers.hh +++ b/src/bin/eolian_cxx/eolian_wrappers.hh @@ -272,6 +272,15 @@ function_return_is_explicit_void(Eolian_Function const& func, getter_t func_type return !!type && type->type == EOLIAN_TYPE_VOID; } +inline efl::eina::iterator +properties_get(Eolian_Class const& cls) +{ + Eina_Iterator *itr = ::eolian_class_functions_get(&cls, EOLIAN_PROPERTY); // XXX + return itr + ? efl::eina::iterator(itr) + : efl::eina::iterator(); +} + inline bool property_is_getter(Eolian_Function_Type func_type) {