summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-02-11 18:20:51 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-02-21 11:54:14 -0800
commit11d2b39b445ba7a381ff6661c30365df74647755 (patch)
treef3c8002de7b9180d73a383d050adbcb3da59ceb9 /src/lib/eo/eo.c
parent770750486c84305f3aaf82df48605ee956b1281e (diff)
eo: add efl_property_reflection_exist to be able to know if a property is available on an object.
Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7937
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index a5c72e0..76bebef 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -3674,6 +3674,19 @@ efl_property_reflection_get(Eo *obj_id, const char *property_name)
3674 return r; 3674 return r;
3675} 3675}
3676 3676
3677EAPI Eina_Bool
3678efl_property_reflection_exist(Eo *obj_id, const char *property_name)
3679{
3680 Eina_Bool r = EINA_FALSE;
3681 EO_OBJ_POINTER_GOTO(obj_id, obj, end);
3682 const Efl_Object_Property_Reflection *reflection = _efl_class_reflection_find(obj->klass, property_name);
3683
3684 if (reflection) r = EINA_TRUE;
3685 end:
3686 EO_OBJ_DONE(obj_id);
3687 return r;
3688}
3689
3677EAPI Efl_Class_Type 3690EAPI Efl_Class_Type
3678efl_class_type_get(const Efl_Class *klass_id) 3691efl_class_type_get(const Efl_Class *klass_id)
3679{ 3692{