unicorn/qemu/qobject
Marc-André Lureau 0087625b7e
qobject: Modify qobject_ref() to return obj
For convenience and clarity, make it possible to call qobject_ref() at
the time when the reference is associated with a variable, or
argument, by making qobject_ref() return the same pointer as given.
Use that to simplify the callers.

Backports commit f5a74a5a50387c6f980b2e2f94f062487a1826da from qemu
2018-05-04 10:24:10 -04:00
..
Makefile.objs qlit: move qlit from check-qjson to qobject/ 2018-03-07 17:08:17 -05:00
qbool.c qapi: Remove qobject_to_X() functions 2018-03-20 10:58:44 -04:00
qdict.c qobject: Modify qobject_ref() to return obj 2018-05-04 10:24:10 -04:00
qlist.c qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF 2018-05-04 10:16:07 -04:00
qlit.c qapi: Replace qobject_to_X(o) by qobject_to(X, o) 2018-03-20 10:55:57 -04:00
qnull.c qapi: Add qobject_is_equal() 2018-03-08 08:41:43 -05:00
qnum.c qapi: Remove qobject_to_X() functions 2018-03-20 10:58:44 -04:00
qobject.c qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00
qstring.c qobject: introduce qobject_get_try_str() 2018-03-20 11:10:03 -04:00