]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Drop support for inline nested types
authorEric Blake <eblake@redhat.com>
Mon, 4 May 2015 15:05:33 +0000 (09:05 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2015 16:39:02 +0000 (18:39 +0200)
commit6b5abc7df7ef9aadb3ff0eba6ccf4f1f0181e2e1
tree1ad314b4514e5bd9951783b600ec3742d6ef0b70
parent9fa02cd194a131aca75ab646ece975b6835400e1
qapi: Drop support for inline nested types

A future patch will be using a 'name':{dictionary} entry in the
QAPI schema to specify a default value for an optional argument
(see previous commit messages for more details why); but existing
use of inline nested structs conflicts with that goal. Now that
all commands have been changed to avoid inline nested structs,
nuke support for them, and turn it into a hard error. Update the
testsuite to reflect tighter parsing rules.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
14 files changed:
scripts/qapi-commands.py
scripts/qapi-event.py
scripts/qapi-types.py
scripts/qapi-visit.py
scripts/qapi.py
tests/qapi-schema/event-nest-struct.err
tests/qapi-schema/nested-struct-data.err
tests/qapi-schema/nested-struct-data.exit
tests/qapi-schema/nested-struct-data.json
tests/qapi-schema/nested-struct-data.out
tests/qapi-schema/nested-struct-returns.err
tests/qapi-schema/nested-struct-returns.exit
tests/qapi-schema/nested-struct-returns.json
tests/qapi-schema/nested-struct-returns.out