]> git.proxmox.com Git - mirror_qemu.git/commit
qobject: Add helper macros for common scalar insertions
authorEric Blake <eblake@redhat.com>
Thu, 27 Apr 2017 21:58:16 +0000 (16:58 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 31 Jul 2017 22:07:14 +0000 (17:07 -0500)
commit396474a18c63ef2d198955beab1bacb476b2d4d7
treed9fc9c4e0e128ecde94880163f6a55a010e84f68
parent3f308bf3acc724d50ffa3f280f75f4c7b5bb6003
qobject: Add helper macros for common scalar insertions

Rather than making lots of callers wrap a scalar in a QInt, QString,
or QBool, provide helper macros that do the wrapping automatically.

Update the Coccinelle script to make mass conversions easy, although
the conversion itself will be done as a separate patches to ease
review and backport efforts.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170427215821.19397-6-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
(cherry picked from commit a92c21591b5bb9543996538f14854ca6b528318b)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/qapi/qmp/qdict.h
include/qapi/qmp/qlist.h
scripts/coccinelle/qobject.cocci