]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: add 'if' to alternate members
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 13 Dec 2018 12:37:18 +0000 (16:37 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 13 Dec 2018 18:20:11 +0000 (19:20 +0100)
commit3e270dcacc08cca45e694ca48159915f81303cfa
treed0c26d3370153727fa0a8554c83204b497ae8fca
parenta2724280fbed914e517403890b4b1568261f0cf9
qapi: add 'if' to alternate members

Add 'if' key to alternate members:

{ 'alternate': 'TestIfAlternate', 'data':
  { 'alt': { 'type': 'TestStruct', 'if': 'COND' } } }

Generated code is not changed by this patch but with "qapi: add #if
conditions to generated code".

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20181213123724.4866-17-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/devel/qapi-code-gen.txt
scripts/qapi/common.py
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out