eolian-cxx: Added properties_get() wrapper.

Returns the list of all properties in a class.
This commit is contained in:
Savio Sena 2014-09-12 16:48:58 -03:00
parent c61bc0dec0
commit fa01f747a8
1 changed files with 9 additions and 0 deletions

View File

@ -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<const Eolian_Function>
properties_get(Eolian_Class const& cls)
{
Eina_Iterator *itr = ::eolian_class_functions_get(&cls, EOLIAN_PROPERTY); // XXX
return itr
? efl::eina::iterator<const Eolian_Function>(itr)
: efl::eina::iterator<const Eolian_Function>();
}
inline bool
property_is_getter(Eolian_Function_Type func_type)
{