Eobj: Added eobj_ref_get.
authortasn <tasn>
Wed, 11 Apr 2012 07:05:37 +0000 (07:05 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 11 Apr 2012 07:05:37 +0000 (07:05 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@70008 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

lib/Eobj.h
lib/eobj.c

index baa10e7..ccfc4ee 100644 (file)
@@ -110,6 +110,7 @@ EAPI Eobj *eobj_parent_get(Eobj *obj);
 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);
index a07b943..ea77377 100644 (file)
@@ -761,6 +761,12 @@ eobj_unref(Eobj *obj)
      }
 }
 
+EAPI int
+eobj_ref_get(const Eobj *obj)
+{
+   return obj->refcount;
+}
+
 EAPI void
 eobj_del(Eobj *obj)
 {