]> Git Repo - qemu.git/commit
qapi: Have each QAPI schema declare its returns white-list
authorMarkus Armbruster <[email protected]>
Wed, 15 Mar 2017 12:56:54 +0000 (13:56 +0100)
committerMarkus Armbruster <[email protected]>
Thu, 16 Mar 2017 06:13:02 +0000 (07:13 +0100)
commit1554a8fae984cad4704fb94a8cef3c9b42ef6185
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 <[email protected]>
Message-Id: <1489582656[email protected]>
Reviewed-by: Eric Blake <[email protected]>
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
This page took 0.0272 seconds and 4 git commands to generate.