From: Enlightenment S. <no-...@en...> - 2012-04-11 07:05:43
|
Log: Eobj: Added eobj_ref_get. Author: tasn Date: 2012-04-11 00:05:37 -0700 (Wed, 11 Apr 2012) New Revision: 70008 Trac: http://trac.enlightenment.org/e/changeset/70008 Modified: trunk/PROTO/eobj/lib/Eobj.h trunk/PROTO/eobj/lib/eobj.c Modified: trunk/PROTO/eobj/lib/Eobj.h =================================================================== --- trunk/PROTO/eobj/lib/Eobj.h 2012-04-11 07:05:33 UTC (rev 70007) +++ trunk/PROTO/eobj/lib/Eobj.h 2012-04-11 07:05:37 UTC (rev 70008) @@ -110,6 +110,7 @@ EAPI void *eobj_data_get(Eobj *obj, const Eobj_Class *klass); EAPI Eobj *eobj_ref(Eobj *obj); EAPI void eobj_unref(Eobj *obj); +EAPI int eobj_ref_get(const Eobj *obj); EAPI void eobj_del(Eobj *obj); EAPI void *eobj_generic_data_set(Eobj *obj, const char *key, const void *data); EAPI void *eobj_generic_data_get(const Eobj *obj, const char *key); Modified: trunk/PROTO/eobj/lib/eobj.c =================================================================== --- trunk/PROTO/eobj/lib/eobj.c 2012-04-11 07:05:33 UTC (rev 70007) +++ trunk/PROTO/eobj/lib/eobj.c 2012-04-11 07:05:37 UTC (rev 70008) @@ -761,6 +761,12 @@ } } +EAPI int +eobj_ref_get(const Eobj *obj) +{ + return obj->refcount; +} + EAPI void eobj_del(Eobj *obj) { |