eina_model: add xref/xunref, xrefs_get and models_usage_dump!
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Feb 2012 10:48:39 +0000 (10:48 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 10 Feb 2012 10:48:39 +0000 (10:48 +0000)
commit7232f3ee2dd0414857d21c7b7e1acaec1f316294
tree03187072d9904d769f3d952147d9ef09862105ac
parent060e35c5bd4c63a2f3869b8762337a08f504fd78
eina_model: add xref/xunref, xrefs_get and models_usage_dump!

Let's try to help debug by allowing extended reference management that
takes in account an identifier. This identifier is accounted on xref
and xunref and must match.

xrefs_get will return the list of such references, for debugging purposes.

eina_models_list_get() was added to return all live models, just
tracked when EINA_MODEL_DEBUG is enabled.

eina_models_usage_dump() was added and use the same infrastructure as
eina_models_list_get() and eina_model_xrefs_get() to aid debugging :-)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@67821 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/include/eina_model.h
src/lib/eina_model.c