summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:48:58 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:48:58 -0300
commitfa01f747a8638eae2467396ee903444973246556 (patch)
tree176a87bb3499437e536706771f29a1604e70d830 /src/bin/eolian_cxx
parentc61bc0dec0cedbf8913e08e9bb115cebf5345780 (diff)
eolian-cxx: Added properties_get() wrapper.
Returns the list of all properties in a class.
Diffstat (limited to 'src/bin/eolian_cxx')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh9
1 files changed, 9 insertions, 0 deletions
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
272 return !!type && type->type == EOLIAN_TYPE_VOID; 272 return !!type && type->type == EOLIAN_TYPE_VOID;
273} 273}
274 274
275inline efl::eina::iterator<const Eolian_Function>
276properties_get(Eolian_Class const& cls)
277{
278 Eina_Iterator *itr = ::eolian_class_functions_get(&cls, EOLIAN_PROPERTY); // XXX
279 return itr
280 ? efl::eina::iterator<const Eolian_Function>(itr)
281 : efl::eina::iterator<const Eolian_Function>();
282}
283
275inline bool 284inline bool
276property_is_getter(Eolian_Function_Type func_type) 285property_is_getter(Eolian_Function_Type func_type)
277{ 286{