Eobj: Added eobj_ref_get.

SVN revision: 70008
This commit is contained in:
Tom Hacohen 2012-04-11 07:05:37 +00:00
parent aaf11f7274
commit a41960d689
2 changed files with 7 additions and 0 deletions

View 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);

View 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)
{