qobject: Add helper macros for common scalar insertions
commita92c21591b5bb9543996538f14854ca6b528318b
authorEric Blake <eblake@redhat.com>
Thu, 27 Apr 2017 21:58:16 +0000 (27 16:58 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 May 2017 18:32:14 +0000 (8 20:32 +0200)
tree5d005d08f0fa3daff8767dcf8a2ba77a4edcee1d
parentde6e7951fe66053dfeaac1a237f7aceb9e079619
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>
include/qapi/qmp/qdict.h
include/qapi/qmp/qlist.h
scripts/coccinelle/qobject.cocci