From: Jérémy Zurcher Date: Thu, 26 Sep 2013 21:33:19 +0000 (+0200) Subject: eo: add union _Eo to unify objects and classes internal pointers X-Git-Tag: submit/devel/efl/20131029.075644~189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c24775c58d646bd65b31f0632ad8165c6b65db68;p=platform%2Fupstream%2Fefl.git eo: add union _Eo to unify objects and classes internal pointers --- diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h index fa61526..1d54756 100644 --- a/src/lib/eo/eo_private.h +++ b/src/lib/eo/eo_private.h @@ -58,6 +58,10 @@ typedef uintptr_t Eo_Id; typedef struct _Eo_Class _Eo_Class; typedef struct _Eo_Object _Eo_Object; typedef struct _Eo_Handle _Eo_Handle; +typedef union _Eo { + _Eo_Object *obj; + _Eo_Class *klass; +} _Eo; /* Retrieves the pointer to the object from the id */ static inline _Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id);