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)
commit81f48fea734de23c29c266300f16ea7917744aa6
tree03187072d9904d769f3d952147d9ef09862105ac
parent6372329d686636fa12a57943b236031ac206ae12
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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@67821 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
configure.ac
src/include/eina_model.h
src/lib/eina_model.c