qemu-e2k/qga
Marc-André Lureau cb3e7f08ae 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.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180419150145.24795-4-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Rebased, semantic conflict resolved, commit message improved]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-05-04 08:27:53 +02:00
..
installer
vss-win32 qga-win: fix error-handling in getNameByStringSID() 2017-10-26 20:01:32 -05:00
channel-posix.c sockets: remove obsolete code that updated listen address 2017-12-21 09:22:44 +01:00
channel-win32.c
channel.h
commands-posix.c use g_path_get_basename instead of basename 2018-03-06 14:01:29 +01:00
commands-win32.c qapi: Move qapi-schema.json to qapi/, rename generated files 2018-03-02 13:45:57 -06:00
commands.c qapi: Move qapi-schema.json to qapi/, rename generated files 2018-03-02 13:45:57 -06:00
guest-agent-command-state.c
guest-agent-core.h Include qmp-commands.h exactly where needed 2018-02-09 13:52:10 +01:00
main.c qobject: Replace qobject_incref/QINCREF qobject_decref/QDECREF 2018-05-04 08:27:53 +02:00
Makefile.objs qapi: Move qapi-schema.json to qapi/, rename generated files 2018-03-02 13:45:57 -06:00
qapi-schema.json qga: add network stats to guest-network-get-interfaces 2017-10-25 19:54:11 -05:00
service-win32.c
service-win32.h
vss-win32.c Include qapi/error.h exactly where needed 2018-02-09 13:50:17 +01:00
vss-win32.h