]> git.proxmox.com Git - mirror_qemu.git/commit - tests/test-qobject-input-visitor.c
qapi: generate a literal qobject for introspection
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 5 Mar 2018 17:29:51 +0000 (18:29 +0100)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 15:00:14 +0000 (10:00 -0500)
commit7d0f982bfbb92fbfc1bf6c9bcaffe745996a763c
treeb8567c1cb092b8a03a501f9142801eaafe41401e
parent3cf42b8b3af1bd61e736a9ca0f94806c7931ae56
qapi: generate a literal qobject for introspection

Replace the generated json string with a literal qobject. The later is
easier to deal with, at run time as well as compile time: adding #if
conditionals will be easier than in a json string.

The output of query-qmp-schema is not changed.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180305172951.2150-5-marcandre.lureau@redhat.com>
[eblake: fix python 3 failure]
Signed-off-by: Eric Blake <eblake@redhat.com>
docs/devel/qapi-code-gen.txt
monitor.c
scripts/qapi/introspect.py
tests/test-qobject-input-visitor.c