qapi: Have each QAPI schema declare its returns white-list
commit1554a8fae984cad4704fb94a8cef3c9b42ef6185
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:56:54 +0000 (15 13:56 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:02 +0000 (16 07:13 +0100)
tree78d963a98ad801e050bfbd0c6943bd4e9fc30c0c
parent700dc9f503c61cdd1180e9bf84a225105b22b227
qapi: Have each QAPI schema declare its returns white-list

qapi.py has a hardcoded white-list of command names that may violate
the rules on permitted return types.  Add a new pragma directive
'returns-whitelist', and use it to replace the hard-coded white-list.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1489582656-31133-6-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
12 files changed:
docs/qapi-code-gen.txt
qapi-schema.json
qga/qapi-schema.json
scripts/qapi.py
tests/Makefile.include
tests/qapi-schema/pragma-returns-whitelist-crap.err [new file with mode: 0644]
tests/qapi-schema/pragma-returns-whitelist-crap.exit [new file with mode: 0644]
tests/qapi-schema/pragma-returns-whitelist-crap.json [new file with mode: 0644]
tests/qapi-schema/pragma-returns-whitelist-crap.out [new file with mode: 0644]
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/returns-whitelist.err
tests/qapi-schema/returns-whitelist.json