eo: Add API to allow deletion by unref
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 07:38:00 +0000 (16:38 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 28 Sep 2017 07:42:04 +0000 (16:42 +0900)
commitd3436af616319f1fdbbd4a0aa71a7835a14699ac
tree7564fedec2164fb3c5e4d6c7b1691a0124740167
parent662a172139cd181abf3b95c1d9d9d48abd898947
eo: Add API to allow deletion by unref

This allows deleting an object by simply calling efl_unref() on it, even
if there is a parent. Normally the parent is in charge, and you can
request deletion by calling efl_del() or efl_parent_set(NULL).

But in some rare cases, you want to give ownership of an object (@owned)
and still give a parent to that object. efl_unref() should be used (and
would be used by bindings when going out of scope or on garbage
collection), which would then print an error message. This API allows
the specific behaviour.

@feature
src/lib/eo/efl_object.eo
src/lib/eo/eo_base_class.c