unicorn/qemu/include/qapi/qmp
Marc-André Lureau ab4528c1e4
qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF
Now that we can safely call QOBJECT() on QObject * as well as its
subtypes, we can have macros qobject_ref() / qobject_unref() that work
everywhere instead of having to use QINCREF() / QDECREF() for QObject
and qobject_incref() / qobject_decref() for its subtypes.

The replacement is mechanical, except I broke a long line, and added a
cast in monitor_qmp_cleanup_req_queue_locked(). Unlike
qobject_decref(), qobject_unref() doesn't accept void *.

Note that the new macros evaluate their argument exactly once, thus no
need to shout them.

Backports commit cb3e7f08aeaab0ab13e629ce8496dca150a449ba from qemu
2018-05-04 10:16:07 -04:00
..
qbool.h qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00
qdict.h qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00
qerror.h qmp: Eliminate silly QERR_QMP_* macros 2018-03-02 11:28:17 -05:00
qjson.h import 2015-08-21 15:04:50 +08:00
qlist.h qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00
qlit.h qlit: add qobject_from_qlit() 2018-03-20 10:30:41 -04:00
qnull.h qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF 2018-05-04 10:16:07 -04:00
qnum.h qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00
qobject.h qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF 2018-05-04 10:16:07 -04:00
qstring.h qobject: use a QObjectBase_ struct 2018-05-04 10:11:24 -04:00