QAPI file renames
Subsystems (2)
cover QAPI file renames
This has been mentioned on list before as a possible improvement, so I went ahead and did some renames to figure out how it would look. Patch 1 is something I hit on the way while debugging patch 2 and 3; patch 2 is rather non-controversial, and patch 3 may or may not be worth doing (but if we do it, it is going to cause a lot of rebase churn to anyone editing files in the meantime, although git rename detection will probably get things right more often than not).
Eric Blake (3):
qapi: Pass '-u' when doing non-silent diff
qapi: Rename QMP and QGA schema files
qapi: Rename .json to .qapi
docs/devel/blkdebug.txt | 2 +-
docs/devel/qapi-code-gen.txt | 16 +-
docs/devel/testing.rst | 4 +-
docs/devel/writing-qmp-commands.txt | 13 +-
docs/interop/live-block-operations.rst | 4 +-
docs/interop/qmp-intro.txt | 3 +-
Makefile | 36 +--
Makefile.objs | 2 +-
qapi/{block-core.json => block-core.qapi} | 6 +-
qapi/{block.json => block.qapi} | 2 +-
qapi/{char.json => char.qapi} | 2 +-
qapi/{common.json => common.qapi} | 0
qapi/{crypto.json => crypto.qapi} | 0
qapi/{introspect.json => introspect.qapi} | 0
qapi/{migration.json => migration.qapi} | 2 +-
qapi/{net.json => net.qapi} | 2 +-
qga/qapi-schema.json => qapi/qga-schema.qapi | 0
qapi-schema.json => qapi/qmp-schema.qapi | 34 +-
qapi/{rocker.json => rocker.qapi} | 0
qapi/{run-state.json => run-state.qapi} | 0
qapi/{sockets.json => sockets.qapi} | 2 +-
qapi/{tpm.json => tpm.qapi} | 0
qapi/{trace.json => trace.qapi} | 0
qapi/{transaction.json => transaction.qapi} | 2 +-
qapi/{ui.json => ui.qapi} | 2 +-
include/crypto/block.h | 2 +-
include/crypto/cipher.h | 2 +-
include/crypto/hash.h | 2 +-
include/crypto/ivgen.h | 2 +-
tpm.c | 2 +-
MAINTAINERS | 26 +-
scripts/git.orderfile | 2 +-
tests/Makefile.include | 350 ++++++++++-----------
tests/qapi-schema/alternate-any.err | 2 +-
.../{alternate-any.json => alternate-any.qapi} | 0
tests/qapi-schema/alternate-array.err | 2 +-
.../{alternate-array.json => alternate-array.qapi} | 0
tests/qapi-schema/alternate-base.err | 2 +-
.../{alternate-base.json => alternate-base.qapi} | 0
tests/qapi-schema/alternate-clash.err | 2 +-
.../{alternate-clash.json => alternate-clash.qapi} | 0
.../qapi-schema/alternate-conflict-bool-string.err | 2 +-
...ng.json => alternate-conflict-bool-string.qapi} | 0
tests/qapi-schema/alternate-conflict-dict.err | 2 +-
...lict-dict.json => alternate-conflict-dict.qapi} | 0
tests/qapi-schema/alternate-conflict-enum-bool.err | 2 +-
...bool.json => alternate-conflict-enum-bool.qapi} | 0
tests/qapi-schema/alternate-conflict-enum-int.err | 2 +-
...m-int.json => alternate-conflict-enum-int.qapi} | 0
.../qapi-schema/alternate-conflict-num-string.err | 2 +-
...ing.json => alternate-conflict-num-string.qapi} | 0
tests/qapi-schema/alternate-conflict-string.err | 2 +-
...-string.json => alternate-conflict-string.qapi} | 0
tests/qapi-schema/alternate-empty.err | 2 +-
.../{alternate-empty.json => alternate-empty.qapi} | 0
tests/qapi-schema/alternate-nested.err | 2 +-
...alternate-nested.json => alternate-nested.qapi} | 0
tests/qapi-schema/alternate-unknown.err | 2 +-
...ternate-unknown.json => alternate-unknown.qapi} | 0
tests/qapi-schema/args-alternate.err | 2 +-
.../{args-alternate.json => args-alternate.qapi} | 0
tests/qapi-schema/args-any.err | 2 +-
tests/qapi-schema/{args-any.json => args-any.qapi} | 0
tests/qapi-schema/args-array-empty.err | 2 +-
...args-array-empty.json => args-array-empty.qapi} | 0
tests/qapi-schema/args-array-unknown.err | 2 +-
...-array-unknown.json => args-array-unknown.qapi} | 0
tests/qapi-schema/args-bad-boxed.err | 2 +-
.../{args-bad-boxed.json => args-bad-boxed.qapi} | 0
tests/qapi-schema/args-boxed-anon.err | 2 +-
.../{args-boxed-anon.json => args-boxed-anon.qapi} | 0
tests/qapi-schema/args-boxed-empty.err | 2 +-
...args-boxed-empty.json => args-boxed-empty.qapi} | 0
tests/qapi-schema/args-boxed-string.err | 2 +-
...gs-boxed-string.json => args-boxed-string.qapi} | 0
tests/qapi-schema/args-int.err | 2 +-
tests/qapi-schema/{args-int.json => args-int.qapi} | 0
tests/qapi-schema/args-invalid.err | 2 +-
.../{args-invalid.json => args-invalid.qapi} | 0
tests/qapi-schema/args-member-array-bad.err | 2 +-
...r-array-bad.json => args-member-array-bad.qapi} | 0
tests/qapi-schema/args-member-case.err | 2 +-
...args-member-case.json => args-member-case.qapi} | 0
tests/qapi-schema/args-member-unknown.err | 2 +-
...ember-unknown.json => args-member-unknown.qapi} | 0
tests/qapi-schema/args-name-clash.err | 2 +-
.../{args-name-clash.json => args-name-clash.qapi} | 0
tests/qapi-schema/args-union.err | 2 +-
.../{args-union.json => args-union.qapi} | 0
tests/qapi-schema/args-unknown.err | 2 +-
.../{args-unknown.json => args-unknown.qapi} | 0
tests/qapi-schema/bad-base.err | 2 +-
tests/qapi-schema/{bad-base.json => bad-base.qapi} | 0
tests/qapi-schema/bad-data.err | 2 +-
tests/qapi-schema/{bad-data.json => bad-data.qapi} | 0
tests/qapi-schema/bad-ident.err | 2 +-
.../qapi-schema/{bad-ident.json => bad-ident.qapi} | 0
tests/qapi-schema/bad-type-bool.err | 2 +-
.../{bad-type-bool.json => bad-type-bool.qapi} | 0
tests/qapi-schema/bad-type-dict.err | 2 +-
.../{bad-type-dict.json => bad-type-dict.qapi} | 0
tests/qapi-schema/bad-type-int.err | 2 +-
.../{bad-type-int.json => bad-type-int.qapi} | 0
tests/qapi-schema/base-cycle-direct.err | 2 +-
...se-cycle-direct.json => base-cycle-direct.qapi} | 0
tests/qapi-schema/base-cycle-indirect.err | 2 +-
...ycle-indirect.json => base-cycle-indirect.qapi} | 0
tests/qapi-schema/command-int.err | 2 +-
.../{command-int.json => command-int.qapi} | 0
tests/qapi-schema/{comments.json => comments.qapi} | 0
tests/qapi-schema/doc-bad-alternate-member.err | 2 +-
...e-member.json => doc-bad-alternate-member.qapi} | 0
tests/qapi-schema/doc-bad-command-arg.err | 2 +-
...d-command-arg.json => doc-bad-command-arg.qapi} | 0
.../{doc-bad-section.json => doc-bad-section.qapi} | 0
tests/qapi-schema/doc-bad-symbol.err | 2 +-
.../{doc-bad-symbol.json => doc-bad-symbol.qapi} | 0
tests/qapi-schema/doc-bad-union-member.err | 2 +-
...union-member.json => doc-bad-union-member.qapi} | 0
tests/qapi-schema/doc-before-include.err | 2 +-
...before-include.json => doc-before-include.qapi} | 2 +-
tests/qapi-schema/doc-before-pragma.err | 2 +-
...c-before-pragma.json => doc-before-pragma.qapi} | 0
tests/qapi-schema/doc-duplicated-arg.err | 2 +-
...duplicated-arg.json => doc-duplicated-arg.qapi} | 0
tests/qapi-schema/doc-duplicated-return.err | 2 +-
...ated-return.json => doc-duplicated-return.qapi} | 0
tests/qapi-schema/doc-duplicated-since.err | 2 +-
...icated-since.json => doc-duplicated-since.qapi} | 0
tests/qapi-schema/doc-empty-arg.err | 2 +-
.../{doc-empty-arg.json => doc-empty-arg.qapi} | 0
tests/qapi-schema/doc-empty-section.err | 2 +-
...c-empty-section.json => doc-empty-section.qapi} | 0
tests/qapi-schema/doc-empty-symbol.err | 2 +-
...doc-empty-symbol.json => doc-empty-symbol.qapi} | 0
tests/qapi-schema/{doc-good.json => doc-good.qapi} | 0
tests/qapi-schema/doc-interleaved-section.err | 2 +-
...d-section.json => doc-interleaved-section.qapi} | 0
tests/qapi-schema/doc-invalid-end.err | 2 +-
.../{doc-invalid-end.json => doc-invalid-end.qapi} | 0
tests/qapi-schema/doc-invalid-end2.err | 2 +-
...doc-invalid-end2.json => doc-invalid-end2.qapi} | 0
tests/qapi-schema/doc-invalid-return.err | 2 +-
...invalid-return.json => doc-invalid-return.qapi} | 0
tests/qapi-schema/doc-invalid-section.err | 2 +-
...valid-section.json => doc-invalid-section.qapi} | 0
tests/qapi-schema/doc-invalid-start.err | 2 +-
...c-invalid-start.json => doc-invalid-start.qapi} | 0
tests/qapi-schema/doc-missing-colon.err | 2 +-
...c-missing-colon.json => doc-missing-colon.qapi} | 0
tests/qapi-schema/doc-missing-expr.err | 2 +-
...doc-missing-expr.json => doc-missing-expr.qapi} | 0
tests/qapi-schema/doc-missing-space.err | 2 +-
...c-missing-space.json => doc-missing-space.qapi} | 0
tests/qapi-schema/doc-missing.err | 2 +-
.../{doc-missing.json => doc-missing.qapi} | 0
tests/qapi-schema/doc-no-symbol.err | 2 +-
.../{doc-no-symbol.json => doc-no-symbol.qapi} | 0
tests/qapi-schema/double-data.err | 2 +-
.../{double-data.json => double-data.qapi} | 0
tests/qapi-schema/double-type.err | 2 +-
.../{double-type.json => double-type.qapi} | 0
tests/qapi-schema/duplicate-key.err | 2 +-
.../{duplicate-key.json => duplicate-key.qapi} | 0
tests/qapi-schema/{empty.json => empty.qapi} | 0
tests/qapi-schema/enum-bad-name.err | 2 +-
.../{enum-bad-name.json => enum-bad-name.qapi} | 0
tests/qapi-schema/enum-bad-prefix.err | 2 +-
.../{enum-bad-prefix.json => enum-bad-prefix.qapi} | 0
tests/qapi-schema/enum-clash-member.err | 2 +-
...um-clash-member.json => enum-clash-member.qapi} | 0
tests/qapi-schema/enum-dict-member.err | 2 +-
...enum-dict-member.json => enum-dict-member.qapi} | 0
tests/qapi-schema/enum-int-member.err | 2 +-
.../{enum-int-member.json => enum-int-member.qapi} | 0
tests/qapi-schema/enum-member-case.err | 2 +-
...enum-member-case.json => enum-member-case.qapi} | 0
tests/qapi-schema/enum-missing-data.err | 2 +-
...um-missing-data.json => enum-missing-data.qapi} | 0
tests/qapi-schema/enum-wrong-data.err | 2 +-
.../{enum-wrong-data.json => enum-wrong-data.qapi} | 0
tests/qapi-schema/escape-outside-string.err | 2 +-
...side-string.json => escape-outside-string.qapi} | 0
tests/qapi-schema/escape-too-big.err | 2 +-
.../{escape-too-big.json => escape-too-big.qapi} | 0
tests/qapi-schema/escape-too-short.err | 2 +-
...escape-too-short.json => escape-too-short.qapi} | 0
tests/qapi-schema/event-boxed-empty.err | 2 +-
...ent-boxed-empty.json => event-boxed-empty.qapi} | 0
.../{event-case.json => event-case.qapi} | 0
tests/qapi-schema/event-nest-struct.err | 2 +-
...ent-nest-struct.json => event-nest-struct.qapi} | 0
tests/qapi-schema/flat-union-array-branch.err | 2 +-
...ay-branch.json => flat-union-array-branch.qapi} | 0
tests/qapi-schema/flat-union-bad-base.err | 2 +-
...nion-bad-base.json => flat-union-bad-base.qapi} | 0
tests/qapi-schema/flat-union-bad-discriminator.err | 2 +-
...ator.json => flat-union-bad-discriminator.qapi} | 0
tests/qapi-schema/flat-union-base-any.err | 2 +-
...nion-base-any.json => flat-union-base-any.qapi} | 0
tests/qapi-schema/flat-union-base-union.err | 2 +-
...-base-union.json => flat-union-base-union.qapi} | 0
tests/qapi-schema/flat-union-clash-member.err | 2 +-
...sh-member.json => flat-union-clash-member.qapi} | 0
tests/qapi-schema/flat-union-empty.err | 2 +-
...flat-union-empty.json => flat-union-empty.qapi} | 0
tests/qapi-schema/flat-union-incomplete-branch.err | 2 +-
...anch.json => flat-union-incomplete-branch.qapi} | 0
tests/qapi-schema/flat-union-inline.err | 2 +-
...at-union-inline.json => flat-union-inline.qapi} | 0
tests/qapi-schema/flat-union-int-branch.err | 2 +-
...-int-branch.json => flat-union-int-branch.qapi} | 0
.../qapi-schema/flat-union-invalid-branch-key.err | 2 +-
...key.json => flat-union-invalid-branch-key.qapi} | 0
.../flat-union-invalid-discriminator.err | 2 +-
....json => flat-union-invalid-discriminator.qapi} | 0
tests/qapi-schema/flat-union-no-base.err | 2 +-
...-union-no-base.json => flat-union-no-base.qapi} | 0
.../flat-union-optional-discriminator.err | 2 +-
...json => flat-union-optional-discriminator.qapi} | 0
.../flat-union-string-discriminator.err | 2 +-
...r.json => flat-union-string-discriminator.qapi} | 0
tests/qapi-schema/funny-char.err | 2 +-
.../{funny-char.json => funny-char.qapi} | 0
...ent-with-escape.json => ident-with-escape.qapi} | 0
tests/qapi-schema/include-before-err.err | 2 +-
tests/qapi-schema/include-before-err.json | 2 -
tests/qapi-schema/include-before-err.qapi | 2 +
tests/qapi-schema/include-cycle-b.json | 1 -
tests/qapi-schema/include-cycle-b.qapi | 1 +
tests/qapi-schema/include-cycle-c.json | 1 -
tests/qapi-schema/include-cycle-c.qapi | 1 +
tests/qapi-schema/include-cycle.err | 6 +-
tests/qapi-schema/include-cycle.json | 1 -
tests/qapi-schema/include-cycle.qapi | 1 +
tests/qapi-schema/include-extra-junk.err | 2 +-
tests/qapi-schema/include-extra-junk.json | 3 -
tests/qapi-schema/include-extra-junk.qapi | 3 +
tests/qapi-schema/include-format-err.err | 2 +-
tests/qapi-schema/include-format-err.json | 2 -
tests/qapi-schema/include-format-err.qapi | 2 +
tests/qapi-schema/include-nested-err.err | 4 +-
tests/qapi-schema/include-nested-err.json | 1 -
tests/qapi-schema/include-nested-err.qapi | 1 +
tests/qapi-schema/include-no-file.err | 2 +-
tests/qapi-schema/include-no-file.json | 1 -
tests/qapi-schema/include-no-file.qapi | 1 +
tests/qapi-schema/include-non-file.err | 2 +-
...include-non-file.json => include-non-file.qapi} | 0
...e-relpath-sub.json => include-relpath-sub.qapi} | 0
tests/qapi-schema/include-relpath.json | 1 -
tests/qapi-schema/include-relpath.qapi | 1 +
tests/qapi-schema/include-repetition-sub.json | 2 -
tests/qapi-schema/include-repetition-sub.qapi | 2 +
tests/qapi-schema/include-repetition.json | 3 -
tests/qapi-schema/include-repetition.qapi | 3 +
tests/qapi-schema/include-self-cycle.err | 2 +-
tests/qapi-schema/include-self-cycle.json | 1 -
tests/qapi-schema/include-self-cycle.qapi | 1 +
...ude-simple-sub.json => include-simple-sub.qapi} | 0
tests/qapi-schema/include-simple.json | 1 -
tests/qapi-schema/include-simple.qapi | 1 +
tests/qapi-schema/include/relpath.json | 1 -
tests/qapi-schema/include/relpath.qapi | 1 +
.../{indented-expr.json => indented-expr.qapi} | 0
tests/qapi-schema/leading-comma-list.err | 2 +-
...ing-comma-list.json => leading-comma-list.qapi} | 0
tests/qapi-schema/leading-comma-object.err | 2 +-
...comma-object.json => leading-comma-object.qapi} | 0
tests/qapi-schema/missing-colon.err | 2 +-
.../{missing-colon.json => missing-colon.qapi} | 0
tests/qapi-schema/missing-comma-list.err | 2 +-
...ing-comma-list.json => missing-comma-list.qapi} | 0
tests/qapi-schema/missing-comma-object.err | 2 +-
...comma-object.json => missing-comma-object.qapi} | 0
tests/qapi-schema/missing-type.err | 2 +-
.../{missing-type.json => missing-type.qapi} | 0
tests/qapi-schema/nested-struct-data.err | 2 +-
...ed-struct-data.json => nested-struct-data.qapi} | 0
tests/qapi-schema/non-objects.err | 2 +-
.../{non-objects.json => non-objects.qapi} | 0
tests/qapi-schema/pragma-doc-required-crap.err | 2 +-
...red-crap.json => pragma-doc-required-crap.qapi} | 0
tests/qapi-schema/pragma-extra-junk.err | 2 +-
...agma-extra-junk.json => pragma-extra-junk.qapi} | 0
.../pragma-name-case-whitelist-crap.err | 2 +-
...p.json => pragma-name-case-whitelist-crap.qapi} | 0
tests/qapi-schema/pragma-non-dict.err | 2 +-
.../{pragma-non-dict.json => pragma-non-dict.qapi} | 0
.../qapi-schema/pragma-returns-whitelist-crap.err | 2 +-
...rap.json => pragma-returns-whitelist-crap.qapi} | 0
...qapi-schema-test.json => qapi-schema-test.qapi} | 0
tests/qapi-schema/quoted-structural-chars.err | 2 +-
...ral-chars.json => quoted-structural-chars.qapi} | 0
tests/qapi-schema/redefined-builtin.err | 2 +-
...defined-builtin.json => redefined-builtin.qapi} | 0
tests/qapi-schema/redefined-command.err | 2 +-
...defined-command.json => redefined-command.qapi} | 0
tests/qapi-schema/redefined-event.err | 2 +-
.../{redefined-event.json => redefined-event.qapi} | 0
tests/qapi-schema/redefined-type.err | 2 +-
.../{redefined-type.json => redefined-type.qapi} | 0
tests/qapi-schema/reserved-command-q.err | 2 +-
...rved-command-q.json => reserved-command-q.qapi} | 0
tests/qapi-schema/reserved-enum-q.err | 2 +-
.../{reserved-enum-q.json => reserved-enum-q.qapi} | 0
tests/qapi-schema/reserved-member-has.err | 2 +-
...ed-member-has.json => reserved-member-has.qapi} | 0
tests/qapi-schema/reserved-member-q.err | 2 +-
...served-member-q.json => reserved-member-q.qapi} | 0
tests/qapi-schema/reserved-member-u.err | 2 +-
...served-member-u.json => reserved-member-u.qapi} | 0
tests/qapi-schema/reserved-member-underscore.err | 2 +-
...rscore.json => reserved-member-underscore.qapi} | 0
tests/qapi-schema/reserved-type-kind.err | 2 +-
...rved-type-kind.json => reserved-type-kind.qapi} | 0
tests/qapi-schema/reserved-type-list.err | 2 +-
...rved-type-list.json => reserved-type-list.qapi} | 0
tests/qapi-schema/returns-alternate.err | 2 +-
...turns-alternate.json => returns-alternate.qapi} | 0
tests/qapi-schema/returns-array-bad.err | 2 +-
...turns-array-bad.json => returns-array-bad.qapi} | 0
tests/qapi-schema/returns-dict.err | 2 +-
.../{returns-dict.json => returns-dict.qapi} | 0
tests/qapi-schema/returns-unknown.err | 2 +-
.../{returns-unknown.json => returns-unknown.qapi} | 0
tests/qapi-schema/returns-whitelist.err | 2 +-
...turns-whitelist.json => returns-whitelist.qapi} | 0
tests/qapi-schema/struct-base-clash-deep.err | 2 +-
...clash-deep.json => struct-base-clash-deep.qapi} | 0
tests/qapi-schema/struct-base-clash.err | 2 +-
...ruct-base-clash.json => struct-base-clash.qapi} | 0
tests/qapi-schema/struct-data-invalid.err | 2 +-
...-data-invalid.json => struct-data-invalid.qapi} | 0
tests/qapi-schema/struct-member-invalid.err | 2 +-
...ber-invalid.json => struct-member-invalid.qapi} | 0
tests/qapi-schema/trailing-comma-list.err | 2 +-
...ng-comma-list.json => trailing-comma-list.qapi} | 0
tests/qapi-schema/trailing-comma-object.err | 2 +-
...omma-object.json => trailing-comma-object.qapi} | 0
tests/qapi-schema/type-bypass-bad-gen.err | 2 +-
...ypass-bad-gen.json => type-bypass-bad-gen.qapi} | 0
tests/qapi-schema/unclosed-list.err | 2 +-
.../{unclosed-list.json => unclosed-list.qapi} | 0
tests/qapi-schema/unclosed-object.err | 2 +-
.../{unclosed-object.json => unclosed-object.qapi} | 0
tests/qapi-schema/unclosed-string.err | 2 +-
.../{unclosed-string.json => unclosed-string.qapi} | 0
tests/qapi-schema/unicode-str.err | 2 +-
.../{unicode-str.json => unicode-str.qapi} | 0
tests/qapi-schema/union-base-empty.err | 2 +-
...union-base-empty.json => union-base-empty.qapi} | 0
tests/qapi-schema/union-base-no-discriminator.err | 2 +-
...nator.json => union-base-no-discriminator.qapi} | 0
tests/qapi-schema/union-branch-case.err | 2 +-
...ion-branch-case.json => union-branch-case.qapi} | 0
tests/qapi-schema/union-clash-branches.err | 2 +-
...ash-branches.json => union-clash-branches.qapi} | 0
tests/qapi-schema/union-empty.err | 2 +-
.../{union-empty.json => union-empty.qapi} | 0
tests/qapi-schema/union-invalid-base.err | 2 +-
...n-invalid-base.json => union-invalid-base.qapi} | 0
tests/qapi-schema/union-optional-branch.err | 2 +-
...onal-branch.json => union-optional-branch.qapi} | 0
tests/qapi-schema/union-unknown.err | 2 +-
.../{union-unknown.json => union-unknown.qapi} | 0
tests/qapi-schema/unknown-escape.err | 2 +-
.../{unknown-escape.json => unknown-escape.qapi} | 0
tests/qapi-schema/unknown-expr-key.err | 2 +-
...unknown-expr-key.json => unknown-expr-key.qapi} | 0
370 files changed, 440 insertions(+), 438 deletions(-)
rename qapi/{block-core.json => block-core.qapi} (99%)
rename qapi/{block.json => block.qapi} (99%)
rename qapi/{char.json => char.qapi} (99%)
rename qapi/{common.json => common.qapi} (100%)
rename qapi/{crypto.json => crypto.qapi} (100%)
rename qapi/{introspect.json => introspect.qapi} (100%)
rename qapi/{migration.json => migration.qapi} (99%)
rename qapi/{net.json => net.qapi} (99%)
rename qga/qapi-schema.json => qapi/qga-schema.qapi (100%)
rename qapi-schema.json => qapi/qmp-schema.qapi (99%)
rename qapi/{rocker.json => rocker.qapi} (100%)
rename qapi/{run-state.json => run-state.qapi} (100%)
rename qapi/{sockets.json => sockets.qapi} (99%)
rename qapi/{tpm.json => tpm.qapi} (100%)
rename qapi/{trace.json => trace.qapi} (100%)
rename qapi/{transaction.json => transaction.qapi} (99%)
rename qapi/{ui.json => ui.qapi} (99%)
rename tests/qapi-schema/{alternate-any.json => alternate-any.qapi} (100%)
rename tests/qapi-schema/{alternate-array.json => alternate-array.qapi} (100%)
rename tests/qapi-schema/{alternate-base.json => alternate-base.qapi} (100%)
rename tests/qapi-schema/{alternate-clash.json => alternate-clash.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-bool-string.json => alternate-conflict-bool-string.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-dict.json => alternate-conflict-dict.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-enum-bool.json => alternate-conflict-enum-bool.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-enum-int.json => alternate-conflict-enum-int.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-num-string.json => alternate-conflict-num-string.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-string.json => alternate-conflict-string.qapi} (100%)
rename tests/qapi-schema/{alternate-empty.json => alternate-empty.qapi} (100%)
rename tests/qapi-schema/{alternate-nested.json => alternate-nested.qapi} (100%)
rename tests/qapi-schema/{alternate-unknown.json => alternate-unknown.qapi} (100%)
rename tests/qapi-schema/{args-alternate.json => args-alternate.qapi} (100%)
rename tests/qapi-schema/{args-any.json => args-any.qapi} (100%)
rename tests/qapi-schema/{args-array-empty.json => args-array-empty.qapi} (100%)
rename tests/qapi-schema/{args-array-unknown.json => args-array-unknown.qapi} (100%)
rename tests/qapi-schema/{args-bad-boxed.json => args-bad-boxed.qapi} (100%)
rename tests/qapi-schema/{args-boxed-anon.json => args-boxed-anon.qapi} (100%)
rename tests/qapi-schema/{args-boxed-empty.json => args-boxed-empty.qapi} (100%)
rename tests/qapi-schema/{args-boxed-string.json => args-boxed-string.qapi} (100%)
rename tests/qapi-schema/{args-int.json => args-int.qapi} (100%)
rename tests/qapi-schema/{args-invalid.json => args-invalid.qapi} (100%)
rename tests/qapi-schema/{args-member-array-bad.json => args-member-array-bad.qapi} (100%)
rename tests/qapi-schema/{args-member-case.json => args-member-case.qapi} (100%)
rename tests/qapi-schema/{args-member-unknown.json => args-member-unknown.qapi} (100%)
rename tests/qapi-schema/{args-name-clash.json => args-name-clash.qapi} (100%)
rename tests/qapi-schema/{args-union.json => args-union.qapi} (100%)
rename tests/qapi-schema/{args-unknown.json => args-unknown.qapi} (100%)
rename tests/qapi-schema/{bad-base.json => bad-base.qapi} (100%)
rename tests/qapi-schema/{bad-data.json => bad-data.qapi} (100%)
rename tests/qapi-schema/{bad-ident.json => bad-ident.qapi} (100%)
rename tests/qapi-schema/{bad-type-bool.json => bad-type-bool.qapi} (100%)
rename tests/qapi-schema/{bad-type-dict.json => bad-type-dict.qapi} (100%)
rename tests/qapi-schema/{bad-type-int.json => bad-type-int.qapi} (100%)
rename tests/qapi-schema/{base-cycle-direct.json => base-cycle-direct.qapi} (100%)
rename tests/qapi-schema/{base-cycle-indirect.json => base-cycle-indirect.qapi} (100%)
rename tests/qapi-schema/{command-int.json => command-int.qapi} (100%)
rename tests/qapi-schema/{comments.json => comments.qapi} (100%)
rename tests/qapi-schema/{doc-bad-alternate-member.json => doc-bad-alternate-member.qapi} (100%)
rename tests/qapi-schema/{doc-bad-command-arg.json => doc-bad-command-arg.qapi} (100%)
rename tests/qapi-schema/{doc-bad-section.json => doc-bad-section.qapi} (100%)
rename tests/qapi-schema/{doc-bad-symbol.json => doc-bad-symbol.qapi} (100%)
rename tests/qapi-schema/{doc-bad-union-member.json => doc-bad-union-member.qapi} (100%)
rename tests/qapi-schema/{doc-before-include.json => doc-before-include.qapi} (81%)
rename tests/qapi-schema/{doc-before-pragma.json => doc-before-pragma.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-arg.json => doc-duplicated-arg.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-return.json => doc-duplicated-return.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-since.json => doc-duplicated-since.qapi} (100%)
rename tests/qapi-schema/{doc-empty-arg.json => doc-empty-arg.qapi} (100%)
rename tests/qapi-schema/{doc-empty-section.json => doc-empty-section.qapi} (100%)
rename tests/qapi-schema/{doc-empty-symbol.json => doc-empty-symbol.qapi} (100%)
rename tests/qapi-schema/{doc-good.json => doc-good.qapi} (100%)
rename tests/qapi-schema/{doc-interleaved-section.json => doc-interleaved-section.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-end.json => doc-invalid-end.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-end2.json => doc-invalid-end2.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-return.json => doc-invalid-return.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-section.json => doc-invalid-section.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-start.json => doc-invalid-start.qapi} (100%)
rename tests/qapi-schema/{doc-missing-colon.json => doc-missing-colon.qapi} (100%)
rename tests/qapi-schema/{doc-missing-expr.json => doc-missing-expr.qapi} (100%)
rename tests/qapi-schema/{doc-missing-space.json => doc-missing-space.qapi} (100%)
rename tests/qapi-schema/{doc-missing.json => doc-missing.qapi} (100%)
rename tests/qapi-schema/{doc-no-symbol.json => doc-no-symbol.qapi} (100%)
rename tests/qapi-schema/{double-data.json => double-data.qapi} (100%)
rename tests/qapi-schema/{double-type.json => double-type.qapi} (100%)
rename tests/qapi-schema/{duplicate-key.json => duplicate-key.qapi} (100%)
rename tests/qapi-schema/{empty.json => empty.qapi} (100%)
rename tests/qapi-schema/{enum-bad-name.json => enum-bad-name.qapi} (100%)
rename tests/qapi-schema/{enum-bad-prefix.json => enum-bad-prefix.qapi} (100%)
rename tests/qapi-schema/{enum-clash-member.json => enum-clash-member.qapi} (100%)
rename tests/qapi-schema/{enum-dict-member.json => enum-dict-member.qapi} (100%)
rename tests/qapi-schema/{enum-int-member.json => enum-int-member.qapi} (100%)
rename tests/qapi-schema/{enum-member-case.json => enum-member-case.qapi} (100%)
rename tests/qapi-schema/{enum-missing-data.json => enum-missing-data.qapi} (100%)
rename tests/qapi-schema/{enum-wrong-data.json => enum-wrong-data.qapi} (100%)
rename tests/qapi-schema/{escape-outside-string.json => escape-outside-string.qapi} (100%)
rename tests/qapi-schema/{escape-too-big.json => escape-too-big.qapi} (100%)
rename tests/qapi-schema/{escape-too-short.json => escape-too-short.qapi} (100%)
rename tests/qapi-schema/{event-boxed-empty.json => event-boxed-empty.qapi} (100%)
rename tests/qapi-schema/{event-case.json => event-case.qapi} (100%)
rename tests/qapi-schema/{event-nest-struct.json => event-nest-struct.qapi} (100%)
rename tests/qapi-schema/{flat-union-array-branch.json => flat-union-array-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-bad-base.json => flat-union-bad-base.qapi} (100%)
rename tests/qapi-schema/{flat-union-bad-discriminator.json => flat-union-bad-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-base-any.json => flat-union-base-any.qapi} (100%)
rename tests/qapi-schema/{flat-union-base-union.json => flat-union-base-union.qapi} (100%)
rename tests/qapi-schema/{flat-union-clash-member.json => flat-union-clash-member.qapi} (100%)
rename tests/qapi-schema/{flat-union-empty.json => flat-union-empty.qapi} (100%)
rename tests/qapi-schema/{flat-union-incomplete-branch.json => flat-union-incomplete-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-inline.json => flat-union-inline.qapi} (100%)
rename tests/qapi-schema/{flat-union-int-branch.json => flat-union-int-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-invalid-branch-key.json => flat-union-invalid-branch-key.qapi} (100%)
rename tests/qapi-schema/{flat-union-invalid-discriminator.json => flat-union-invalid-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-no-base.json => flat-union-no-base.qapi} (100%)
rename tests/qapi-schema/{flat-union-optional-discriminator.json => flat-union-optional-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-string-discriminator.json => flat-union-string-discriminator.qapi} (100%)
rename tests/qapi-schema/{funny-char.json => funny-char.qapi} (100%)
rename tests/qapi-schema/{ident-with-escape.json => ident-with-escape.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-before-err.json
create mode 100644 tests/qapi-schema/include-before-err.qapi
delete mode 100644 tests/qapi-schema/include-cycle-b.json
create mode 100644 tests/qapi-schema/include-cycle-b.qapi
delete mode 100644 tests/qapi-schema/include-cycle-c.json
create mode 100644 tests/qapi-schema/include-cycle-c.qapi
delete mode 100644 tests/qapi-schema/include-cycle.json
create mode 100644 tests/qapi-schema/include-cycle.qapi
delete mode 100644 tests/qapi-schema/include-extra-junk.json
create mode 100644 tests/qapi-schema/include-extra-junk.qapi
delete mode 100644 tests/qapi-schema/include-format-err.json
create mode 100644 tests/qapi-schema/include-format-err.qapi
delete mode 100644 tests/qapi-schema/include-nested-err.json
create mode 100644 tests/qapi-schema/include-nested-err.qapi
delete mode 100644 tests/qapi-schema/include-no-file.json
create mode 100644 tests/qapi-schema/include-no-file.qapi
rename tests/qapi-schema/{include-non-file.json => include-non-file.qapi} (100%)
rename tests/qapi-schema/{include-relpath-sub.json => include-relpath-sub.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-relpath.json
create mode 100644 tests/qapi-schema/include-relpath.qapi
delete mode 100644 tests/qapi-schema/include-repetition-sub.json
create mode 100644 tests/qapi-schema/include-repetition-sub.qapi
delete mode 100644 tests/qapi-schema/include-repetition.json
create mode 100644 tests/qapi-schema/include-repetition.qapi
delete mode 100644 tests/qapi-schema/include-self-cycle.json
create mode 100644 tests/qapi-schema/include-self-cycle.qapi
rename tests/qapi-schema/{include-simple-sub.json => include-simple-sub.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-simple.json
create mode 100644 tests/qapi-schema/include-simple.qapi
delete mode 100644 tests/qapi-schema/include/relpath.json
create mode 100644 tests/qapi-schema/include/relpath.qapi
rename tests/qapi-schema/{indented-expr.json => indented-expr.qapi} (100%)
rename tests/qapi-schema/{leading-comma-list.json => leading-comma-list.qapi} (100%)
rename tests/qapi-schema/{leading-comma-object.json => leading-comma-object.qapi} (100%)
rename tests/qapi-schema/{missing-colon.json => missing-colon.qapi} (100%)
rename tests/qapi-schema/{missing-comma-list.json => missing-comma-list.qapi} (100%)
rename tests/qapi-schema/{missing-comma-object.json => missing-comma-object.qapi} (100%)
rename tests/qapi-schema/{missing-type.json => missing-type.qapi} (100%)
rename tests/qapi-schema/{nested-struct-data.json => nested-struct-data.qapi} (100%)
rename tests/qapi-schema/{non-objects.json => non-objects.qapi} (100%)
rename tests/qapi-schema/{pragma-doc-required-crap.json => pragma-doc-required-crap.qapi} (100%)
rename tests/qapi-schema/{pragma-extra-junk.json => pragma-extra-junk.qapi} (100%)
rename tests/qapi-schema/{pragma-name-case-whitelist-crap.json => pragma-name-case-whitelist-crap.qapi} (100%)
rename tests/qapi-schema/{pragma-non-dict.json => pragma-non-dict.qapi} (100%)
rename tests/qapi-schema/{pragma-returns-whitelist-crap.json => pragma-returns-whitelist-crap.qapi} (100%)
rename tests/qapi-schema/{qapi-schema-test.json => qapi-schema-test.qapi} (100%)
rename tests/qapi-schema/{quoted-structural-chars.json => quoted-structural-chars.qapi} (100%)
rename tests/qapi-schema/{redefined-builtin.json => redefined-builtin.qapi} (100%)
rename tests/qapi-schema/{redefined-command.json => redefined-command.qapi} (100%)
rename tests/qapi-schema/{redefined-event.json => redefined-event.qapi} (100%)
rename tests/qapi-schema/{redefined-type.json => redefined-type.qapi} (100%)
rename tests/qapi-schema/{reserved-command-q.json => reserved-command-q.qapi} (100%)
rename tests/qapi-schema/{reserved-enum-q.json => reserved-enum-q.qapi} (100%)
rename tests/qapi-schema/{reserved-member-has.json => reserved-member-has.qapi} (100%)
rename tests/qapi-schema/{reserved-member-q.json => reserved-member-q.qapi} (100%)
rename tests/qapi-schema/{reserved-member-u.json => reserved-member-u.qapi} (100%)
rename tests/qapi-schema/{reserved-member-underscore.json => reserved-member-underscore.qapi} (100%)
rename tests/qapi-schema/{reserved-type-kind.json => reserved-type-kind.qapi} (100%)
rename tests/qapi-schema/{reserved-type-list.json => reserved-type-list.qapi} (100%)
rename tests/qapi-schema/{returns-alternate.json => returns-alternate.qapi} (100%)
rename tests/qapi-schema/{returns-array-bad.json => returns-array-bad.qapi} (100%)
rename tests/qapi-schema/{returns-dict.json => returns-dict.qapi} (100%)
rename tests/qapi-schema/{returns-unknown.json => returns-unknown.qapi} (100%)
rename tests/qapi-schema/{returns-whitelist.json => returns-whitelist.qapi} (100%)
rename tests/qapi-schema/{struct-base-clash-deep.json => struct-base-clash-deep.qapi} (100%)
rename tests/qapi-schema/{struct-base-clash.json => struct-base-clash.qapi} (100%)
rename tests/qapi-schema/{struct-data-invalid.json => struct-data-invalid.qapi} (100%)
rename tests/qapi-schema/{struct-member-invalid.json => struct-member-invalid.qapi} (100%)
rename tests/qapi-schema/{trailing-comma-list.json => trailing-comma-list.qapi} (100%)
rename tests/qapi-schema/{trailing-comma-object.json => trailing-comma-object.qapi} (100%)
rename tests/qapi-schema/{type-bypass-bad-gen.json => type-bypass-bad-gen.qapi} (100%)
rename tests/qapi-schema/{unclosed-list.json => unclosed-list.qapi} (100%)
rename tests/qapi-schema/{unclosed-object.json => unclosed-object.qapi} (100%)
rename tests/qapi-schema/{unclosed-string.json => unclosed-string.qapi} (100%)
rename tests/qapi-schema/{unicode-str.json => unicode-str.qapi} (100%)
rename tests/qapi-schema/{union-base-empty.json => union-base-empty.qapi} (100%)
rename tests/qapi-schema/{union-base-no-discriminator.json => union-base-no-discriminator.qapi} (100%)
rename tests/qapi-schema/{union-branch-case.json => union-branch-case.qapi} (100%)
rename tests/qapi-schema/{union-clash-branches.json => union-clash-branches.qapi} (100%)
rename tests/qapi-schema/{union-empty.json => union-empty.qapi} (100%)
rename tests/qapi-schema/{union-invalid-base.json => union-invalid-base.qapi} (100%)
rename tests/qapi-schema/{union-optional-branch.json => union-optional-branch.qapi} (100%)
rename tests/qapi-schema/{union-unknown.json => union-unknown.qapi} (100%)
rename tests/qapi-schema/{unknown-escape.json => unknown-escape.qapi} (100%)
rename tests/qapi-schema/{unknown-expr-key.json => unknown-expr-key.qapi} (100%)Signature · 1 line
2.14.3
PATCH 1/3 qapi: Pass '-u' when doing non-silent diff
Ed-script diffs are awful compared to context diffs. Fix another 'diff -q' while in the area (if the files are different, being noisy makes it easier to diagnose why).
--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
tests/Makefile.include +4 -4
@@ -919,14 +919,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json $^ >$*.test.out 2>$*.test.err; \ echo $$? >$*.test.exit, \ "TEST","$*.out") - @diff $(SRC_PATH)/$*.out $*.test.out + @diff -u $(SRC_PATH)/$*.out $*.test.out @# Sanitize error messages (make them independent of build directory) - @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff $(SRC_PATH)/$*.err - - @diff $(SRC_PATH)/$*.exit $*.test.exit + @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -u $(SRC_PATH)/$*.err - + @diff -u $(SRC_PATH)/$*.exit $*.test.exit .PHONY: check-tests/qapi-schema/doc-good.texi check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi - @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< + @diff -u $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< # Consolidated targets
Signature · 1 line
2.14.3
Re: [Qemu-devel] [PATCH 1/3] qapi: Pass '-u' when doing non-silent diff
Quoted 6 lines · Eric Blake
Ed-script diffs are awful compared to context diffs. Fix another 'diff -q' while in the area (if the files are different, being noisy makes it easier to diagnose why).
Fixes 46ec4fceSigned-off-by Eric Blake <[email protected]>
Quoted 31 lines
--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)tests/Makefile.include +4
-5@@ -919,14 +919,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json $^ >$*.test.out 2>$*.test.err; \ echo $$? >$*.test.exit, \ "TEST","$*.out") - @diff $(SRC_PATH)/$*.out $*.test.out + @diff -u $(SRC_PATH)/$*.out $*.test.out @# Sanitize error messages (make them independent of build directory) - @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff $(SRC_PATH)/$*.err - - @diff $(SRC_PATH)/$*.exit $*.test.exit + @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -u $(SRC_PATH)/$*.err - + @diff -u $(SRC_PATH)/$*.exit $*.test.exit .PHONY: check-tests/qapi-schema/doc-good.texi check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi - @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< + @diff -u $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< # Consolidated targets --2.14.3
Re: [Qemu-devel] [PATCH 1/3] qapi: Pass '-u' when doing non-silent diff
In reply to Eric BlakeQuoted 15 lines · Eric Blake
Ed-script diffs are awful compared to context diffs. Fix another 'diff -q' while in the area (if the files are different, being noisy makes it easier to diagnose why).
Fixes 46ec4fceSigned-off-by Eric Blake <[email protected]>--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)tests/Makefile.include +0
-0
tests/Makefile.include $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json · line 925
Quoted 10 lines
tests/Makefile.include +3
-3@@ -919,14 +919,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json $^ >$*.test.out 2>$*.test.err; \ echo $$? >$*.test.exit, \ "TEST","$*.out") - @diff $(SRC_PATH)/$*.out $*.test.out + @diff -u $(SRC_PATH)/$*.out $*.test.out @# Sanitize error messages (make them independent of build directory) - @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff $(SRC_PATH)/$*.err - - @diff $(SRC_PATH)/$*.exit $*.test.exit + @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -u $(SRC_PATH)/$*.err - + @diff -u $(SRC_PATH)/$*.exit $*.test.exit
Let's diff .err before .out, because when .err differs, .out is usually useless.
Quoted 7 lines
tests/Makefile.include +1
-1.PHONY: check-tests/qapi-schema/doc-good.texi check-tests/qapi-schema/doc-good.texi: tests/qapi-schema/doc-good.test.texi - @diff -q $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< + @diff -u $(SRC_PATH)/tests/qapi-schema/doc-good.texi $< # Consolidated targets
Re: [Qemu-devel] [PATCH 1/3] qapi: Pass '-u' when doing non-silent diff
Quoted 22 lines · Markus Armbruster
Quoted 20 lines · Eric Blake
Ed-script diffs are awful compared to context diffs. Fix another 'diff -q' while in the area (if the files are different, being noisy makes it easier to diagnose why).
Fixes 46ec4fceSigned-off-by Eric Blake <[email protected]>--- tests/Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)tests/Makefile.include +1
-1@@ -919,14 +919,14 @@ $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json $^ >$*.test.out 2>$*.test.err; \ echo $$? >$*.test.exit, \ "TEST","$*.out") - @diff $(SRC_PATH)/$*.out $*.test.out + @diff -u $(SRC_PATH)/$*.out $*.test.out
Quoted 8 lines
tests/Makefile.include $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json · line 925
Quoted 5 lines
tests/Makefile.include +2
-2@# Sanitize error messages (make them independent of build directory) - @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff $(SRC_PATH)/$*.err - - @diff $(SRC_PATH)/$*.exit $*.test.exit + @perl -p -e 's|\Q$(SRC_PATH)\E/||g' $*.test.err | diff -u $(SRC_PATH)/$*.err - + @diff -u $(SRC_PATH)/$*.exit $*.test.exitLet's diff .err before .out, because when .err differs, .out is usually useless.
Sure, will improve on v2.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
PATCH 2/3 qapi: Rename QMP and QGA schema files
In reply to Eric BlakeHaving two files in the tree both named qapi-schema.json just adds confusion. Rename these files, and relocate them into the common qapi/ subdirectory. Update all build rules that refer to the file names, and adjust other documentation and comment references to either track the new name or be rewritten so as to not mention the file name.
Maintainer-wise, this means that qapi/qga-schema.json continues to belong to Michael as QGA maintainer, but now also notifies Markus and Eric as QAPI maintainers, alongside all the other QMP QAPI files, matching how other .json QAPI modules belong to multiple maintainer blurbs.
--- docs/devel/writing-qmp-commands.txt | 13 ++++++----- docs/interop/qmp-intro.txt | 3 ++- Makefile | 10 ++++---- qga/qapi-schema.json => qapi/qga-schema.json | 0 qapi-schema.json => qapi/qmp-schema.json | 34 ++++++++++++++-------------- tpm.c | 2 +- MAINTAINERS | 2 +- 7 files changed, 33 insertions(+), 31 deletions(-) rename qga/qapi-schema.json => qapi/qga-schema.json (100%) rename qapi-schema.json => qapi/qmp-schema.json (99%)
docs/devel/writing-qmp-commands.txt +7 -6
@@ -13,10 +13,11 @@ start with docs/interop/qmp-intro.txt. == Overview == Generally speaking, the following steps should be taken in order to write a -new QMP command. +new QMP command (similar steps for QGA). -1. Write the command's and type(s) specification in the QAPI schema file - (qapi-schema.json in the root source directory) +1. Write the command's and type(s) specification in the appropriate + QAPI schema file (qapi/qmp-schema.json, or one of the module .json + files it includes) 2. Write the QMP command itself, which is a regular C function. Preferably, the command should be exported by some QEMU subsystem. But it can also be
@@ -89,7 +90,7 @@ Our command will be called "hello-world". It takes no arguments, nor does it return any data. The first step is to add the following line to the bottom of the -qapi-schema.json file: +qapi/qmp-schema.json file: { 'command': 'hello-world' }
@@ -234,7 +235,7 @@ this rule: If the failure you want to report falls into one of the two cases above, use error_set() with a second argument of an ErrorClass value. - * All existing ErrorClass values are defined in the qapi-schema.json file + * All existing ErrorClass values are defined in the qapi/qmp-schema.json file === Command Documentation ===
@@ -245,7 +246,7 @@ This is very important. No QMP command will be accepted in QEMU without proper documentation. There are many examples of such documentation in the schema file already, but -here goes "hello-world"'s new entry for the qapi-schema.json file: +here goes "hello-world"'s new entry for the qapi/qmp-schema.json file: ## # @hello-world
docs/interop/qmp-intro.txt +2 -1
@@ -78,7 +78,8 @@ Escape character is '^]'. } } -Please, refer to the qapi-schema.json file for a complete command reference. +Please, refer to the qapi/qmp-schema.json file for a complete command +reference. QMP wiki page -------------
Makefile +5 -5
@@ -488,22 +488,22 @@ gen-out-type = $(subst .,-,$(suffix $@)) qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h :\ -$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-types.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qapi-visit.c qga/qapi-generated/qga-qapi-visit.h :\ -$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-visit.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qmp-commands.h qga/qapi-generated/qga-qmp-marshal.c :\ -$(SRC_PATH)/qga/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-commands.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") -qapi-modules = $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.json \ +qapi-modules = $(SRC_PATH)/qapi/qmp-schema.json $(SRC_PATH)/qapi/common.json \ $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.json \ $(SRC_PATH)/qapi/char.json \ $(SRC_PATH)/qapi/crypto.json \
@@ -815,7 +815,7 @@ docs/interop/qemu-qmp-qapi.texi docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/scri docs/interop/qemu-qmp-qapi.texi: $(qapi-modules) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") -docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qga/qapi-schema.json +docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qapi/qga-schema.json $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi
qapi/qga-schema.json renamed from qga/qapi-schema.json +0 -0
qapi/qmp-schema.json renamed from qapi-schema.json +17 -17
@@ -76,22 +76,22 @@ # included sub-schemas inserted at the first include directive # (subsequent include directives have no effect). To get a sane and # stable order, it's best to include each sub-schema just once, or -# include it first in qapi-schema.json. +# include it first in qapi/qmp-schema.json. -{ 'include': 'qapi/common.json' } -{ 'include': 'qapi/sockets.json' } -{ 'include': 'qapi/run-state.json' } -{ 'include': 'qapi/crypto.json' } -{ 'include': 'qapi/block.json' } -{ 'include': 'qapi/char.json' } -{ 'include': 'qapi/net.json' } -{ 'include': 'qapi/rocker.json' } -{ 'include': 'qapi/tpm.json' } -{ 'include': 'qapi/ui.json' } -{ 'include': 'qapi/migration.json' } -{ 'include': 'qapi/transaction.json' } -{ 'include': 'qapi/trace.json' } -{ 'include': 'qapi/introspect.json' } +{ 'include': 'common.json' } +{ 'include': 'sockets.json' } +{ 'include': 'run-state.json' } +{ 'include': 'crypto.json' } +{ 'include': 'block.json' } +{ 'include': 'char.json' } +{ 'include': 'net.json' } +{ 'include': 'rocker.json' } +{ 'include': 'tpm.json' } +{ 'include': 'ui.json' } +{ 'include': 'migration.json' } +{ 'include': 'transaction.json' } +{ 'include': 'trace.json' } +{ 'include': 'introspect.json' } ## # = Miscellanea
@@ -1710,7 +1710,7 @@ # # Emitted when background dump has completed # -# @result: DumpQueryResult type described in qapi-schema.json. +# @result: DumpQueryResult type. # # @error: human-readable error string that provides # hint on why dump failed. Only presents on failure. The
@@ -2925,7 +2925,7 @@ # # Emitted when guest executes ACPI _OST method. # -# @info: ACPIOSTInfo type as described in qapi-schema.json +# @info: ACPIOSTInfo type. # # Since: 2.1 #
tpm.c +1 -1
@@ -182,7 +182,7 @@ int tpm_config_parse(QemuOptsList *opts_list, const char *optarg)/* * Walk the list of active TPM backends and collect information about them -* following the schema description in qapi-schema.json. +* following the QAPI schema description. */ TPMInfoList *qmp_query_tpm (Error **errp) {
MAINTAINERS +1 -1
@@ -1543,7 +1543,6 @@ QAPI Schema M: Eric Blake <[email protected]> M: Markus Armbruster <[email protected]> S: Supported -F: qapi-schema.json F: qapi/*.json T: git git://repo.or.cz/qemu/armbru.git qapi-next
@@ -1565,6 +1564,7 @@ QEMU Guest Agent M: Michael Roth <[email protected]> S: Maintained F: qga/ +F: qapi/qga-schema.json F: qemu-ga.texi F: scripts/qemu-guest-agent/ F: tests/test-qga.c
Signature · 1 line
2.14.3
Re: [Qemu-devel] [PATCH 2/3] qapi: Rename QMP and QGA schema files
Quoted 13 lines · Eric Blake
Having two files in the tree both named qapi-schema.json just adds confusion. Rename these files, and relocate them into the common qapi/ subdirectory. Update all build rules that refer to the file names, and adjust other documentation and comment references to either track the new name or be rewritten so as to not mention the file name.
Maintainer-wise, this means that
qapi/qga-schema.jsoncontinues to belong to Michael as QGA maintainer, but now also notifies Markus and Eric as QAPI maintainers, alongside all the other QMP QAPI files, matching how other .json QAPI modules belong to multiple maintainer blurbs.
Quoted 6 lines
Signed-off-by Eric Blake <[email protected]>--- docs/devel/writing-qmp-commands.txt | 13 ++++++----- docs/interop/qmp-intro.txt | 3 ++- Makefile | 10 ++++---- qga/qapi-schema.json => qapi/qga-schema.json | 0
This move is up to the QGA maintainer. My usual argument for keeping the schema in one place is weak for the QGA schema: it's maintained separately, and ususuall grepped separately, too.
Quoted 1 line
qapi-schema.json => qapi/qmp-schema.json | 34 ++++++++++++++--------------
While it was certainly created for QMP, it's now used for non-QMP stuff, too. Do we mind?
Quoted 5 lines
tpm.c | 2 +- MAINTAINERS | 2 +- 7 files changed, 33 insertions(+), 31 deletions(-) rename qga/qapi-schema.json => qapi/qga-schema.json (100%) rename qapi-schema.json => qapi/qmp-schema.json (99%)
Re: [Qemu-devel] [PATCH 2/3] qapi: Rename QMP and QGA schema files
Quoted 22 lines · Markus Armbruster
Quoted 13 lines · Eric Blake
Having two files in the tree both named qapi-schema.json just adds confusion. Rename these files, and relocate them into the common qapi/ subdirectory. Update all build rules that refer to the file names, and adjust other documentation and comment references to either track the new name or be rewritten so as to not mention the file name.
Maintainer-wise, this means that
qapi/qga-schema.jsoncontinues to belong to Michael as QGA maintainer, but now also notifies Markus and Eric as QAPI maintainers, alongside all the other QMP QAPI files, matching how other .json QAPI modules belong to multiple maintainer blurbs.Quoted 6 lines
Signed-off-by Eric Blake <[email protected]>--- docs/devel/writing-qmp-commands.txt | 13 ++++++----- docs/interop/qmp-intro.txt | 3 ++- Makefile | 10 ++++---- qga/qapi-schema.json => qapi/qga-schema.json | 0
Quoted 3 lines
This move is up to the QGA maintainer. My usual argument for keeping the schema in one place is weak for the QGA schema: it's maintained separately, and ususuall grepped separately, too.
Michael, your thoughts?
Quoted 6 lines
Quoted 2 lines
qapi-schema.json => qapi/qmp-schema.json | 34 ++++++++++++++--------------While it was certainly created for QMP, it's now used for non-QMP stuff, too. Do we mind?
Well, patch 3 renames it further; having qapi/qapi-schema.qapi sounds redundant, and the fact that the file DOES drive our QMP decisions (even if it has some other types for internal use only) seems reasonable enough. If anyone has a better name, I'm all ears.
Quoted 6 lines
Quoted 5 lines
tpm.c | 2 +- MAINTAINERS | 2 +- 7 files changed, 33 insertions(+), 31 deletions(-)rename
qga/qapi-schema.json=>qapi/qga-schema.json(100%) rename qapi-schema.json =>qapi/qmp-schema.json(99%)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [Qemu-devel] [PATCH 2/3] qapi: Rename QMP and QGA schema files
Quoting Eric Blake (2018-02-12 10:12:11)
Quoted 23 lines · Markus Armbruster
Quoted 22 lines
Quoted 19 lines · Eric Blake
Having two files in the tree both named qapi-schema.json just adds confusion. Rename these files, and relocate them into the common qapi/ subdirectory. Update all build rules that refer to the file names, and adjust other documentation and comment references to either track the new name or be rewritten so as to not mention the file name.
Maintainer-wise, this means that
qapi/qga-schema.jsoncontinues to belong to Michael as QGA maintainer, but now also notifies Markus and Eric as QAPI maintainers, alongside all the other QMP QAPI files, matching how other .json QAPI modules belong to multiple maintainer blurbs.Signed-off-by Eric Blake <[email protected]>--- docs/devel/writing-qmp-commands.txt | 13 ++++++----- docs/interop/qmp-intro.txt | 3 ++- Makefile | 10 ++++---- qga/qapi-schema.json => qapi/qga-schema.json | 0
Quoted 5 lines
Quoted 3 lines
This move is up to the QGA maintainer. My usual argument for keeping the schema in one place is weak for the QGA schema: it's maintained separately, and ususuall grepped separately, too.
Michael, your thoughts?
No strong feelings either way, but I can see some utility to giving it proximity to the other schema files. Some values in qapi/common.json might be applicable to the qga schema in the future for instance, so it might be a good idea to manage them in a central location as opposed to having qga-schema hanging out by itself, so I'd be okay with the patch as is.
Quoted 25 lines
Quoted 7 lines
Quoted 3 lines
qapi-schema.json => qapi/qmp-schema.json | 34 ++++++++++++++--------------While it was certainly created for QMP, it's now used for non-QMP stuff, too. Do we mind?
Well, patch 3 renames it further; having qapi/qapi-schema.qapi sounds redundant, and the fact that the file DOES drive our QMP decisions (even if it has some other types for internal use only) seems reasonable enough. If anyone has a better name, I'm all ears.
Quoted 6 lines
Quoted 5 lines
tpm.c | 2 +- MAINTAINERS | 2 +- 7 files changed, 33 insertions(+), 31 deletions(-)rename
qga/qapi-schema.json=>qapi/qga-schema.json(100%) rename qapi-schema.json =>qapi/qmp-schema.json(99%)Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
PATCH 3/3 qapi: Rename .json to .qapi
In reply to Eric BlakeOur QAPI input files aren't quite true JSON (comments being the obvious difference); naming things .json doesn't make that obvious. Use a new suffix .qapi that makes it easy to identify our files.
This change is mostly mechanical, but it is not just a global search-and-replace as some instances of '.json' really do refer to JSON files, or to a URL that can't change, and so on.
---
I'd also like help figuring out how to make .dir-locals.el give an automatic sane mode to all .qapi files
docs/devel/blkdebug.txt | 2 +-
docs/devel/qapi-code-gen.txt | 16 +-
docs/devel/testing.rst | 4 +-
docs/devel/writing-qmp-commands.txt | 8 +-
docs/interop/live-block-operations.rst | 4 +-
docs/interop/qmp-intro.txt | 2 +-
Makefile | 36 +--
Makefile.objs | 2 +-
qapi/{block-core.json => block-core.qapi} | 6 +-
qapi/{block.json => block.qapi} | 2 +-
qapi/{char.json => char.qapi} | 2 +-
qapi/{common.json => common.qapi} | 0
qapi/{crypto.json => crypto.qapi} | 0
qapi/{introspect.json => introspect.qapi} | 0
qapi/{migration.json => migration.qapi} | 2 +-
qapi/{net.json => net.qapi} | 2 +-
qapi/{qga-schema.json => qga-schema.qapi} | 0
qapi/{qmp-schema.json => qmp-schema.qapi} | 30 +-
qapi/{rocker.json => rocker.qapi} | 0
qapi/{run-state.json => run-state.qapi} | 0
qapi/{sockets.json => sockets.qapi} | 2 +-
qapi/{tpm.json => tpm.qapi} | 0
qapi/{trace.json => trace.qapi} | 0
qapi/{transaction.json => transaction.qapi} | 2 +-
qapi/{ui.json => ui.qapi} | 2 +-
include/crypto/block.h | 2 +-
include/crypto/cipher.h | 2 +-
include/crypto/hash.h | 2 +-
include/crypto/ivgen.h | 2 +-
MAINTAINERS | 26 +-
scripts/git.orderfile | 2 +-
tests/Makefile.include | 342 ++++++++++-----------
tests/qapi-schema/alternate-any.err | 2 +-
.../{alternate-any.json => alternate-any.qapi} | 0
tests/qapi-schema/alternate-array.err | 2 +-
.../{alternate-array.json => alternate-array.qapi} | 0
tests/qapi-schema/alternate-base.err | 2 +-
.../{alternate-base.json => alternate-base.qapi} | 0
tests/qapi-schema/alternate-clash.err | 2 +-
.../{alternate-clash.json => alternate-clash.qapi} | 0
.../qapi-schema/alternate-conflict-bool-string.err | 2 +-
...ng.json => alternate-conflict-bool-string.qapi} | 0
tests/qapi-schema/alternate-conflict-dict.err | 2 +-
...lict-dict.json => alternate-conflict-dict.qapi} | 0
tests/qapi-schema/alternate-conflict-enum-bool.err | 2 +-
...bool.json => alternate-conflict-enum-bool.qapi} | 0
tests/qapi-schema/alternate-conflict-enum-int.err | 2 +-
...m-int.json => alternate-conflict-enum-int.qapi} | 0
.../qapi-schema/alternate-conflict-num-string.err | 2 +-
...ing.json => alternate-conflict-num-string.qapi} | 0
tests/qapi-schema/alternate-conflict-string.err | 2 +-
...-string.json => alternate-conflict-string.qapi} | 0
tests/qapi-schema/alternate-empty.err | 2 +-
.../{alternate-empty.json => alternate-empty.qapi} | 0
tests/qapi-schema/alternate-nested.err | 2 +-
...alternate-nested.json => alternate-nested.qapi} | 0
tests/qapi-schema/alternate-unknown.err | 2 +-
...ternate-unknown.json => alternate-unknown.qapi} | 0
tests/qapi-schema/args-alternate.err | 2 +-
.../{args-alternate.json => args-alternate.qapi} | 0
tests/qapi-schema/args-any.err | 2 +-
tests/qapi-schema/{args-any.json => args-any.qapi} | 0
tests/qapi-schema/args-array-empty.err | 2 +-
...args-array-empty.json => args-array-empty.qapi} | 0
tests/qapi-schema/args-array-unknown.err | 2 +-
...-array-unknown.json => args-array-unknown.qapi} | 0
tests/qapi-schema/args-bad-boxed.err | 2 +-
.../{args-bad-boxed.json => args-bad-boxed.qapi} | 0
tests/qapi-schema/args-boxed-anon.err | 2 +-
.../{args-boxed-anon.json => args-boxed-anon.qapi} | 0
tests/qapi-schema/args-boxed-empty.err | 2 +-
...args-boxed-empty.json => args-boxed-empty.qapi} | 0
tests/qapi-schema/args-boxed-string.err | 2 +-
...gs-boxed-string.json => args-boxed-string.qapi} | 0
tests/qapi-schema/args-int.err | 2 +-
tests/qapi-schema/{args-int.json => args-int.qapi} | 0
tests/qapi-schema/args-invalid.err | 2 +-
.../{args-invalid.json => args-invalid.qapi} | 0
tests/qapi-schema/args-member-array-bad.err | 2 +-
...r-array-bad.json => args-member-array-bad.qapi} | 0
tests/qapi-schema/args-member-case.err | 2 +-
...args-member-case.json => args-member-case.qapi} | 0
tests/qapi-schema/args-member-unknown.err | 2 +-
...ember-unknown.json => args-member-unknown.qapi} | 0
tests/qapi-schema/args-name-clash.err | 2 +-
.../{args-name-clash.json => args-name-clash.qapi} | 0
tests/qapi-schema/args-union.err | 2 +-
.../{args-union.json => args-union.qapi} | 0
tests/qapi-schema/args-unknown.err | 2 +-
.../{args-unknown.json => args-unknown.qapi} | 0
tests/qapi-schema/bad-base.err | 2 +-
tests/qapi-schema/{bad-base.json => bad-base.qapi} | 0
tests/qapi-schema/bad-data.err | 2 +-
tests/qapi-schema/{bad-data.json => bad-data.qapi} | 0
tests/qapi-schema/bad-ident.err | 2 +-
.../qapi-schema/{bad-ident.json => bad-ident.qapi} | 0
tests/qapi-schema/bad-type-bool.err | 2 +-
.../{bad-type-bool.json => bad-type-bool.qapi} | 0
tests/qapi-schema/bad-type-dict.err | 2 +-
.../{bad-type-dict.json => bad-type-dict.qapi} | 0
tests/qapi-schema/bad-type-int.err | 2 +-
.../{bad-type-int.json => bad-type-int.qapi} | 0
tests/qapi-schema/base-cycle-direct.err | 2 +-
...se-cycle-direct.json => base-cycle-direct.qapi} | 0
tests/qapi-schema/base-cycle-indirect.err | 2 +-
...ycle-indirect.json => base-cycle-indirect.qapi} | 0
tests/qapi-schema/command-int.err | 2 +-
.../{command-int.json => command-int.qapi} | 0
tests/qapi-schema/{comments.json => comments.qapi} | 0
tests/qapi-schema/doc-bad-alternate-member.err | 2 +-
...e-member.json => doc-bad-alternate-member.qapi} | 0
tests/qapi-schema/doc-bad-command-arg.err | 2 +-
...d-command-arg.json => doc-bad-command-arg.qapi} | 0
.../{doc-bad-section.json => doc-bad-section.qapi} | 0
tests/qapi-schema/doc-bad-symbol.err | 2 +-
.../{doc-bad-symbol.json => doc-bad-symbol.qapi} | 0
tests/qapi-schema/doc-bad-union-member.err | 2 +-
...union-member.json => doc-bad-union-member.qapi} | 0
tests/qapi-schema/doc-before-include.err | 2 +-
...before-include.json => doc-before-include.qapi} | 2 +-
tests/qapi-schema/doc-before-pragma.err | 2 +-
...c-before-pragma.json => doc-before-pragma.qapi} | 0
tests/qapi-schema/doc-duplicated-arg.err | 2 +-
...duplicated-arg.json => doc-duplicated-arg.qapi} | 0
tests/qapi-schema/doc-duplicated-return.err | 2 +-
...ated-return.json => doc-duplicated-return.qapi} | 0
tests/qapi-schema/doc-duplicated-since.err | 2 +-
...icated-since.json => doc-duplicated-since.qapi} | 0
tests/qapi-schema/doc-empty-arg.err | 2 +-
.../{doc-empty-arg.json => doc-empty-arg.qapi} | 0
tests/qapi-schema/doc-empty-section.err | 2 +-
...c-empty-section.json => doc-empty-section.qapi} | 0
tests/qapi-schema/doc-empty-symbol.err | 2 +-
...doc-empty-symbol.json => doc-empty-symbol.qapi} | 0
tests/qapi-schema/{doc-good.json => doc-good.qapi} | 0
tests/qapi-schema/doc-interleaved-section.err | 2 +-
...d-section.json => doc-interleaved-section.qapi} | 0
tests/qapi-schema/doc-invalid-end.err | 2 +-
.../{doc-invalid-end.json => doc-invalid-end.qapi} | 0
tests/qapi-schema/doc-invalid-end2.err | 2 +-
...doc-invalid-end2.json => doc-invalid-end2.qapi} | 0
tests/qapi-schema/doc-invalid-return.err | 2 +-
...invalid-return.json => doc-invalid-return.qapi} | 0
tests/qapi-schema/doc-invalid-section.err | 2 +-
...valid-section.json => doc-invalid-section.qapi} | 0
tests/qapi-schema/doc-invalid-start.err | 2 +-
...c-invalid-start.json => doc-invalid-start.qapi} | 0
tests/qapi-schema/doc-missing-colon.err | 2 +-
...c-missing-colon.json => doc-missing-colon.qapi} | 0
tests/qapi-schema/doc-missing-expr.err | 2 +-
...doc-missing-expr.json => doc-missing-expr.qapi} | 0
tests/qapi-schema/doc-missing-space.err | 2 +-
...c-missing-space.json => doc-missing-space.qapi} | 0
tests/qapi-schema/doc-missing.err | 2 +-
.../{doc-missing.json => doc-missing.qapi} | 0
tests/qapi-schema/doc-no-symbol.err | 2 +-
.../{doc-no-symbol.json => doc-no-symbol.qapi} | 0
tests/qapi-schema/double-data.err | 2 +-
.../{double-data.json => double-data.qapi} | 0
tests/qapi-schema/double-type.err | 2 +-
.../{double-type.json => double-type.qapi} | 0
tests/qapi-schema/duplicate-key.err | 2 +-
.../{duplicate-key.json => duplicate-key.qapi} | 0
tests/qapi-schema/{empty.json => empty.qapi} | 0
tests/qapi-schema/enum-bad-name.err | 2 +-
.../{enum-bad-name.json => enum-bad-name.qapi} | 0
tests/qapi-schema/enum-bad-prefix.err | 2 +-
.../{enum-bad-prefix.json => enum-bad-prefix.qapi} | 0
tests/qapi-schema/enum-clash-member.err | 2 +-
...um-clash-member.json => enum-clash-member.qapi} | 0
tests/qapi-schema/enum-dict-member.err | 2 +-
...enum-dict-member.json => enum-dict-member.qapi} | 0
tests/qapi-schema/enum-int-member.err | 2 +-
.../{enum-int-member.json => enum-int-member.qapi} | 0
tests/qapi-schema/enum-member-case.err | 2 +-
...enum-member-case.json => enum-member-case.qapi} | 0
tests/qapi-schema/enum-missing-data.err | 2 +-
...um-missing-data.json => enum-missing-data.qapi} | 0
tests/qapi-schema/enum-wrong-data.err | 2 +-
.../{enum-wrong-data.json => enum-wrong-data.qapi} | 0
tests/qapi-schema/escape-outside-string.err | 2 +-
...side-string.json => escape-outside-string.qapi} | 0
tests/qapi-schema/escape-too-big.err | 2 +-
.../{escape-too-big.json => escape-too-big.qapi} | 0
tests/qapi-schema/escape-too-short.err | 2 +-
...escape-too-short.json => escape-too-short.qapi} | 0
tests/qapi-schema/event-boxed-empty.err | 2 +-
...ent-boxed-empty.json => event-boxed-empty.qapi} | 0
.../{event-case.json => event-case.qapi} | 0
tests/qapi-schema/event-nest-struct.err | 2 +-
...ent-nest-struct.json => event-nest-struct.qapi} | 0
tests/qapi-schema/flat-union-array-branch.err | 2 +-
...ay-branch.json => flat-union-array-branch.qapi} | 0
tests/qapi-schema/flat-union-bad-base.err | 2 +-
...nion-bad-base.json => flat-union-bad-base.qapi} | 0
tests/qapi-schema/flat-union-bad-discriminator.err | 2 +-
...ator.json => flat-union-bad-discriminator.qapi} | 0
tests/qapi-schema/flat-union-base-any.err | 2 +-
...nion-base-any.json => flat-union-base-any.qapi} | 0
tests/qapi-schema/flat-union-base-union.err | 2 +-
...-base-union.json => flat-union-base-union.qapi} | 0
tests/qapi-schema/flat-union-clash-member.err | 2 +-
...sh-member.json => flat-union-clash-member.qapi} | 0
tests/qapi-schema/flat-union-empty.err | 2 +-
...flat-union-empty.json => flat-union-empty.qapi} | 0
tests/qapi-schema/flat-union-incomplete-branch.err | 2 +-
...anch.json => flat-union-incomplete-branch.qapi} | 0
tests/qapi-schema/flat-union-inline.err | 2 +-
...at-union-inline.json => flat-union-inline.qapi} | 0
tests/qapi-schema/flat-union-int-branch.err | 2 +-
...-int-branch.json => flat-union-int-branch.qapi} | 0
.../qapi-schema/flat-union-invalid-branch-key.err | 2 +-
...key.json => flat-union-invalid-branch-key.qapi} | 0
.../flat-union-invalid-discriminator.err | 2 +-
....json => flat-union-invalid-discriminator.qapi} | 0
tests/qapi-schema/flat-union-no-base.err | 2 +-
...-union-no-base.json => flat-union-no-base.qapi} | 0
.../flat-union-optional-discriminator.err | 2 +-
...json => flat-union-optional-discriminator.qapi} | 0
.../flat-union-string-discriminator.err | 2 +-
...r.json => flat-union-string-discriminator.qapi} | 0
tests/qapi-schema/funny-char.err | 2 +-
.../{funny-char.json => funny-char.qapi} | 0
...ent-with-escape.json => ident-with-escape.qapi} | 0
tests/qapi-schema/include-before-err.err | 2 +-
tests/qapi-schema/include-before-err.json | 2 -
tests/qapi-schema/include-before-err.qapi | 2 +
tests/qapi-schema/include-cycle-b.json | 1 -
tests/qapi-schema/include-cycle-b.qapi | 1 +
tests/qapi-schema/include-cycle-c.json | 1 -
tests/qapi-schema/include-cycle-c.qapi | 1 +
tests/qapi-schema/include-cycle.err | 6 +-
tests/qapi-schema/include-cycle.json | 1 -
tests/qapi-schema/include-cycle.qapi | 1 +
tests/qapi-schema/include-extra-junk.err | 2 +-
tests/qapi-schema/include-extra-junk.json | 3 -
tests/qapi-schema/include-extra-junk.qapi | 3 +
tests/qapi-schema/include-format-err.err | 2 +-
tests/qapi-schema/include-format-err.json | 2 -
tests/qapi-schema/include-format-err.qapi | 2 +
tests/qapi-schema/include-nested-err.err | 4 +-
tests/qapi-schema/include-nested-err.json | 1 -
tests/qapi-schema/include-nested-err.qapi | 1 +
tests/qapi-schema/include-no-file.err | 2 +-
tests/qapi-schema/include-no-file.json | 1 -
tests/qapi-schema/include-no-file.qapi | 1 +
tests/qapi-schema/include-non-file.err | 2 +-
...include-non-file.json => include-non-file.qapi} | 0
...e-relpath-sub.json => include-relpath-sub.qapi} | 0
tests/qapi-schema/include-relpath.json | 1 -
tests/qapi-schema/include-relpath.qapi | 1 +
tests/qapi-schema/include-repetition-sub.json | 2 -
tests/qapi-schema/include-repetition-sub.qapi | 2 +
tests/qapi-schema/include-repetition.json | 3 -
tests/qapi-schema/include-repetition.qapi | 3 +
tests/qapi-schema/include-self-cycle.err | 2 +-
tests/qapi-schema/include-self-cycle.json | 1 -
tests/qapi-schema/include-self-cycle.qapi | 1 +
...ude-simple-sub.json => include-simple-sub.qapi} | 0
tests/qapi-schema/include-simple.json | 1 -
tests/qapi-schema/include-simple.qapi | 1 +
tests/qapi-schema/include/relpath.json | 1 -
tests/qapi-schema/include/relpath.qapi | 1 +
.../{indented-expr.json => indented-expr.qapi} | 0
tests/qapi-schema/leading-comma-list.err | 2 +-
...ing-comma-list.json => leading-comma-list.qapi} | 0
tests/qapi-schema/leading-comma-object.err | 2 +-
...comma-object.json => leading-comma-object.qapi} | 0
tests/qapi-schema/missing-colon.err | 2 +-
.../{missing-colon.json => missing-colon.qapi} | 0
tests/qapi-schema/missing-comma-list.err | 2 +-
...ing-comma-list.json => missing-comma-list.qapi} | 0
tests/qapi-schema/missing-comma-object.err | 2 +-
...comma-object.json => missing-comma-object.qapi} | 0
tests/qapi-schema/missing-type.err | 2 +-
.../{missing-type.json => missing-type.qapi} | 0
tests/qapi-schema/nested-struct-data.err | 2 +-
...ed-struct-data.json => nested-struct-data.qapi} | 0
tests/qapi-schema/non-objects.err | 2 +-
.../{non-objects.json => non-objects.qapi} | 0
tests/qapi-schema/pragma-doc-required-crap.err | 2 +-
...red-crap.json => pragma-doc-required-crap.qapi} | 0
tests/qapi-schema/pragma-extra-junk.err | 2 +-
...agma-extra-junk.json => pragma-extra-junk.qapi} | 0
.../pragma-name-case-whitelist-crap.err | 2 +-
...p.json => pragma-name-case-whitelist-crap.qapi} | 0
tests/qapi-schema/pragma-non-dict.err | 2 +-
.../{pragma-non-dict.json => pragma-non-dict.qapi} | 0
.../qapi-schema/pragma-returns-whitelist-crap.err | 2 +-
...rap.json => pragma-returns-whitelist-crap.qapi} | 0
...qapi-schema-test.json => qapi-schema-test.qapi} | 0
tests/qapi-schema/quoted-structural-chars.err | 2 +-
...ral-chars.json => quoted-structural-chars.qapi} | 0
tests/qapi-schema/redefined-builtin.err | 2 +-
...defined-builtin.json => redefined-builtin.qapi} | 0
tests/qapi-schema/redefined-command.err | 2 +-
...defined-command.json => redefined-command.qapi} | 0
tests/qapi-schema/redefined-event.err | 2 +-
.../{redefined-event.json => redefined-event.qapi} | 0
tests/qapi-schema/redefined-type.err | 2 +-
.../{redefined-type.json => redefined-type.qapi} | 0
tests/qapi-schema/reserved-command-q.err | 2 +-
...rved-command-q.json => reserved-command-q.qapi} | 0
tests/qapi-schema/reserved-enum-q.err | 2 +-
.../{reserved-enum-q.json => reserved-enum-q.qapi} | 0
tests/qapi-schema/reserved-member-has.err | 2 +-
...ed-member-has.json => reserved-member-has.qapi} | 0
tests/qapi-schema/reserved-member-q.err | 2 +-
...served-member-q.json => reserved-member-q.qapi} | 0
tests/qapi-schema/reserved-member-u.err | 2 +-
...served-member-u.json => reserved-member-u.qapi} | 0
tests/qapi-schema/reserved-member-underscore.err | 2 +-
...rscore.json => reserved-member-underscore.qapi} | 0
tests/qapi-schema/reserved-type-kind.err | 2 +-
...rved-type-kind.json => reserved-type-kind.qapi} | 0
tests/qapi-schema/reserved-type-list.err | 2 +-
...rved-type-list.json => reserved-type-list.qapi} | 0
tests/qapi-schema/returns-alternate.err | 2 +-
...turns-alternate.json => returns-alternate.qapi} | 0
tests/qapi-schema/returns-array-bad.err | 2 +-
...turns-array-bad.json => returns-array-bad.qapi} | 0
tests/qapi-schema/returns-dict.err | 2 +-
.../{returns-dict.json => returns-dict.qapi} | 0
tests/qapi-schema/returns-unknown.err | 2 +-
.../{returns-unknown.json => returns-unknown.qapi} | 0
tests/qapi-schema/returns-whitelist.err | 2 +-
...turns-whitelist.json => returns-whitelist.qapi} | 0
tests/qapi-schema/struct-base-clash-deep.err | 2 +-
...clash-deep.json => struct-base-clash-deep.qapi} | 0
tests/qapi-schema/struct-base-clash.err | 2 +-
...ruct-base-clash.json => struct-base-clash.qapi} | 0
tests/qapi-schema/struct-data-invalid.err | 2 +-
...-data-invalid.json => struct-data-invalid.qapi} | 0
tests/qapi-schema/struct-member-invalid.err | 2 +-
...ber-invalid.json => struct-member-invalid.qapi} | 0
tests/qapi-schema/trailing-comma-list.err | 2 +-
...ng-comma-list.json => trailing-comma-list.qapi} | 0
tests/qapi-schema/trailing-comma-object.err | 2 +-
...omma-object.json => trailing-comma-object.qapi} | 0
tests/qapi-schema/type-bypass-bad-gen.err | 2 +-
...ypass-bad-gen.json => type-bypass-bad-gen.qapi} | 0
tests/qapi-schema/unclosed-list.err | 2 +-
.../{unclosed-list.json => unclosed-list.qapi} | 0
tests/qapi-schema/unclosed-object.err | 2 +-
.../{unclosed-object.json => unclosed-object.qapi} | 0
tests/qapi-schema/unclosed-string.err | 2 +-
.../{unclosed-string.json => unclosed-string.qapi} | 0
tests/qapi-schema/unicode-str.err | 2 +-
.../{unicode-str.json => unicode-str.qapi} | 0
tests/qapi-schema/union-base-empty.err | 2 +-
...union-base-empty.json => union-base-empty.qapi} | 0
tests/qapi-schema/union-base-no-discriminator.err | 2 +-
...nator.json => union-base-no-discriminator.qapi} | 0
tests/qapi-schema/union-branch-case.err | 2 +-
...ion-branch-case.json => union-branch-case.qapi} | 0
tests/qapi-schema/union-clash-branches.err | 2 +-
...ash-branches.json => union-clash-branches.qapi} | 0
tests/qapi-schema/union-empty.err | 2 +-
.../{union-empty.json => union-empty.qapi} | 0
tests/qapi-schema/union-invalid-base.err | 2 +-
...n-invalid-base.json => union-invalid-base.qapi} | 0
tests/qapi-schema/union-optional-branch.err | 2 +-
...onal-branch.json => union-optional-branch.qapi} | 0
tests/qapi-schema/union-unknown.err | 2 +-
.../{union-unknown.json => union-unknown.qapi} | 0
tests/qapi-schema/unknown-escape.err | 2 +-
.../{unknown-escape.json => unknown-escape.qapi} | 0
tests/qapi-schema/unknown-expr-key.err | 2 +-
...unknown-expr-key.json => unknown-expr-key.qapi} | 0
369 files changed, 429 insertions(+), 429 deletions(-)
rename qapi/{block-core.json => block-core.qapi} (99%)
rename qapi/{block.json => block.qapi} (99%)
rename qapi/{char.json => char.qapi} (99%)
rename qapi/{common.json => common.qapi} (100%)
rename qapi/{crypto.json => crypto.qapi} (100%)
rename qapi/{introspect.json => introspect.qapi} (100%)
rename qapi/{migration.json => migration.qapi} (99%)
rename qapi/{net.json => net.qapi} (99%)
rename qapi/{qga-schema.json => qga-schema.qapi} (100%)
rename qapi/{qmp-schema.json => qmp-schema.qapi} (99%)
rename qapi/{rocker.json => rocker.qapi} (100%)
rename qapi/{run-state.json => run-state.qapi} (100%)
rename qapi/{sockets.json => sockets.qapi} (99%)
rename qapi/{tpm.json => tpm.qapi} (100%)
rename qapi/{trace.json => trace.qapi} (100%)
rename qapi/{transaction.json => transaction.qapi} (99%)
rename qapi/{ui.json => ui.qapi} (99%)
rename tests/qapi-schema/{alternate-any.json => alternate-any.qapi} (100%)
rename tests/qapi-schema/{alternate-array.json => alternate-array.qapi} (100%)
rename tests/qapi-schema/{alternate-base.json => alternate-base.qapi} (100%)
rename tests/qapi-schema/{alternate-clash.json => alternate-clash.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-bool-string.json => alternate-conflict-bool-string.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-dict.json => alternate-conflict-dict.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-enum-bool.json => alternate-conflict-enum-bool.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-enum-int.json => alternate-conflict-enum-int.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-num-string.json => alternate-conflict-num-string.qapi} (100%)
rename tests/qapi-schema/{alternate-conflict-string.json => alternate-conflict-string.qapi} (100%)
rename tests/qapi-schema/{alternate-empty.json => alternate-empty.qapi} (100%)
rename tests/qapi-schema/{alternate-nested.json => alternate-nested.qapi} (100%)
rename tests/qapi-schema/{alternate-unknown.json => alternate-unknown.qapi} (100%)
rename tests/qapi-schema/{args-alternate.json => args-alternate.qapi} (100%)
rename tests/qapi-schema/{args-any.json => args-any.qapi} (100%)
rename tests/qapi-schema/{args-array-empty.json => args-array-empty.qapi} (100%)
rename tests/qapi-schema/{args-array-unknown.json => args-array-unknown.qapi} (100%)
rename tests/qapi-schema/{args-bad-boxed.json => args-bad-boxed.qapi} (100%)
rename tests/qapi-schema/{args-boxed-anon.json => args-boxed-anon.qapi} (100%)
rename tests/qapi-schema/{args-boxed-empty.json => args-boxed-empty.qapi} (100%)
rename tests/qapi-schema/{args-boxed-string.json => args-boxed-string.qapi} (100%)
rename tests/qapi-schema/{args-int.json => args-int.qapi} (100%)
rename tests/qapi-schema/{args-invalid.json => args-invalid.qapi} (100%)
rename tests/qapi-schema/{args-member-array-bad.json => args-member-array-bad.qapi} (100%)
rename tests/qapi-schema/{args-member-case.json => args-member-case.qapi} (100%)
rename tests/qapi-schema/{args-member-unknown.json => args-member-unknown.qapi} (100%)
rename tests/qapi-schema/{args-name-clash.json => args-name-clash.qapi} (100%)
rename tests/qapi-schema/{args-union.json => args-union.qapi} (100%)
rename tests/qapi-schema/{args-unknown.json => args-unknown.qapi} (100%)
rename tests/qapi-schema/{bad-base.json => bad-base.qapi} (100%)
rename tests/qapi-schema/{bad-data.json => bad-data.qapi} (100%)
rename tests/qapi-schema/{bad-ident.json => bad-ident.qapi} (100%)
rename tests/qapi-schema/{bad-type-bool.json => bad-type-bool.qapi} (100%)
rename tests/qapi-schema/{bad-type-dict.json => bad-type-dict.qapi} (100%)
rename tests/qapi-schema/{bad-type-int.json => bad-type-int.qapi} (100%)
rename tests/qapi-schema/{base-cycle-direct.json => base-cycle-direct.qapi} (100%)
rename tests/qapi-schema/{base-cycle-indirect.json => base-cycle-indirect.qapi} (100%)
rename tests/qapi-schema/{command-int.json => command-int.qapi} (100%)
rename tests/qapi-schema/{comments.json => comments.qapi} (100%)
rename tests/qapi-schema/{doc-bad-alternate-member.json => doc-bad-alternate-member.qapi} (100%)
rename tests/qapi-schema/{doc-bad-command-arg.json => doc-bad-command-arg.qapi} (100%)
rename tests/qapi-schema/{doc-bad-section.json => doc-bad-section.qapi} (100%)
rename tests/qapi-schema/{doc-bad-symbol.json => doc-bad-symbol.qapi} (100%)
rename tests/qapi-schema/{doc-bad-union-member.json => doc-bad-union-member.qapi} (100%)
rename tests/qapi-schema/{doc-before-include.json => doc-before-include.qapi} (81%)
rename tests/qapi-schema/{doc-before-pragma.json => doc-before-pragma.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-arg.json => doc-duplicated-arg.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-return.json => doc-duplicated-return.qapi} (100%)
rename tests/qapi-schema/{doc-duplicated-since.json => doc-duplicated-since.qapi} (100%)
rename tests/qapi-schema/{doc-empty-arg.json => doc-empty-arg.qapi} (100%)
rename tests/qapi-schema/{doc-empty-section.json => doc-empty-section.qapi} (100%)
rename tests/qapi-schema/{doc-empty-symbol.json => doc-empty-symbol.qapi} (100%)
rename tests/qapi-schema/{doc-good.json => doc-good.qapi} (100%)
rename tests/qapi-schema/{doc-interleaved-section.json => doc-interleaved-section.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-end.json => doc-invalid-end.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-end2.json => doc-invalid-end2.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-return.json => doc-invalid-return.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-section.json => doc-invalid-section.qapi} (100%)
rename tests/qapi-schema/{doc-invalid-start.json => doc-invalid-start.qapi} (100%)
rename tests/qapi-schema/{doc-missing-colon.json => doc-missing-colon.qapi} (100%)
rename tests/qapi-schema/{doc-missing-expr.json => doc-missing-expr.qapi} (100%)
rename tests/qapi-schema/{doc-missing-space.json => doc-missing-space.qapi} (100%)
rename tests/qapi-schema/{doc-missing.json => doc-missing.qapi} (100%)
rename tests/qapi-schema/{doc-no-symbol.json => doc-no-symbol.qapi} (100%)
rename tests/qapi-schema/{double-data.json => double-data.qapi} (100%)
rename tests/qapi-schema/{double-type.json => double-type.qapi} (100%)
rename tests/qapi-schema/{duplicate-key.json => duplicate-key.qapi} (100%)
rename tests/qapi-schema/{empty.json => empty.qapi} (100%)
rename tests/qapi-schema/{enum-bad-name.json => enum-bad-name.qapi} (100%)
rename tests/qapi-schema/{enum-bad-prefix.json => enum-bad-prefix.qapi} (100%)
rename tests/qapi-schema/{enum-clash-member.json => enum-clash-member.qapi} (100%)
rename tests/qapi-schema/{enum-dict-member.json => enum-dict-member.qapi} (100%)
rename tests/qapi-schema/{enum-int-member.json => enum-int-member.qapi} (100%)
rename tests/qapi-schema/{enum-member-case.json => enum-member-case.qapi} (100%)
rename tests/qapi-schema/{enum-missing-data.json => enum-missing-data.qapi} (100%)
rename tests/qapi-schema/{enum-wrong-data.json => enum-wrong-data.qapi} (100%)
rename tests/qapi-schema/{escape-outside-string.json => escape-outside-string.qapi} (100%)
rename tests/qapi-schema/{escape-too-big.json => escape-too-big.qapi} (100%)
rename tests/qapi-schema/{escape-too-short.json => escape-too-short.qapi} (100%)
rename tests/qapi-schema/{event-boxed-empty.json => event-boxed-empty.qapi} (100%)
rename tests/qapi-schema/{event-case.json => event-case.qapi} (100%)
rename tests/qapi-schema/{event-nest-struct.json => event-nest-struct.qapi} (100%)
rename tests/qapi-schema/{flat-union-array-branch.json => flat-union-array-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-bad-base.json => flat-union-bad-base.qapi} (100%)
rename tests/qapi-schema/{flat-union-bad-discriminator.json => flat-union-bad-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-base-any.json => flat-union-base-any.qapi} (100%)
rename tests/qapi-schema/{flat-union-base-union.json => flat-union-base-union.qapi} (100%)
rename tests/qapi-schema/{flat-union-clash-member.json => flat-union-clash-member.qapi} (100%)
rename tests/qapi-schema/{flat-union-empty.json => flat-union-empty.qapi} (100%)
rename tests/qapi-schema/{flat-union-incomplete-branch.json => flat-union-incomplete-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-inline.json => flat-union-inline.qapi} (100%)
rename tests/qapi-schema/{flat-union-int-branch.json => flat-union-int-branch.qapi} (100%)
rename tests/qapi-schema/{flat-union-invalid-branch-key.json => flat-union-invalid-branch-key.qapi} (100%)
rename tests/qapi-schema/{flat-union-invalid-discriminator.json => flat-union-invalid-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-no-base.json => flat-union-no-base.qapi} (100%)
rename tests/qapi-schema/{flat-union-optional-discriminator.json => flat-union-optional-discriminator.qapi} (100%)
rename tests/qapi-schema/{flat-union-string-discriminator.json => flat-union-string-discriminator.qapi} (100%)
rename tests/qapi-schema/{funny-char.json => funny-char.qapi} (100%)
rename tests/qapi-schema/{ident-with-escape.json => ident-with-escape.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-before-err.json
create mode 100644 tests/qapi-schema/include-before-err.qapi
delete mode 100644 tests/qapi-schema/include-cycle-b.json
create mode 100644 tests/qapi-schema/include-cycle-b.qapi
delete mode 100644 tests/qapi-schema/include-cycle-c.json
create mode 100644 tests/qapi-schema/include-cycle-c.qapi
delete mode 100644 tests/qapi-schema/include-cycle.json
create mode 100644 tests/qapi-schema/include-cycle.qapi
delete mode 100644 tests/qapi-schema/include-extra-junk.json
create mode 100644 tests/qapi-schema/include-extra-junk.qapi
delete mode 100644 tests/qapi-schema/include-format-err.json
create mode 100644 tests/qapi-schema/include-format-err.qapi
delete mode 100644 tests/qapi-schema/include-nested-err.json
create mode 100644 tests/qapi-schema/include-nested-err.qapi
delete mode 100644 tests/qapi-schema/include-no-file.json
create mode 100644 tests/qapi-schema/include-no-file.qapi
rename tests/qapi-schema/{include-non-file.json => include-non-file.qapi} (100%)
rename tests/qapi-schema/{include-relpath-sub.json => include-relpath-sub.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-relpath.json
create mode 100644 tests/qapi-schema/include-relpath.qapi
delete mode 100644 tests/qapi-schema/include-repetition-sub.json
create mode 100644 tests/qapi-schema/include-repetition-sub.qapi
delete mode 100644 tests/qapi-schema/include-repetition.json
create mode 100644 tests/qapi-schema/include-repetition.qapi
delete mode 100644 tests/qapi-schema/include-self-cycle.json
create mode 100644 tests/qapi-schema/include-self-cycle.qapi
rename tests/qapi-schema/{include-simple-sub.json => include-simple-sub.qapi} (100%)
delete mode 100644 tests/qapi-schema/include-simple.json
create mode 100644 tests/qapi-schema/include-simple.qapi
delete mode 100644 tests/qapi-schema/include/relpath.json
create mode 100644 tests/qapi-schema/include/relpath.qapi
rename tests/qapi-schema/{indented-expr.json => indented-expr.qapi} (100%)
rename tests/qapi-schema/{leading-comma-list.json => leading-comma-list.qapi} (100%)
rename tests/qapi-schema/{leading-comma-object.json => leading-comma-object.qapi} (100%)
rename tests/qapi-schema/{missing-colon.json => missing-colon.qapi} (100%)
rename tests/qapi-schema/{missing-comma-list.json => missing-comma-list.qapi} (100%)
rename tests/qapi-schema/{missing-comma-object.json => missing-comma-object.qapi} (100%)
rename tests/qapi-schema/{missing-type.json => missing-type.qapi} (100%)
rename tests/qapi-schema/{nested-struct-data.json => nested-struct-data.qapi} (100%)
rename tests/qapi-schema/{non-objects.json => non-objects.qapi} (100%)
rename tests/qapi-schema/{pragma-doc-required-crap.json => pragma-doc-required-crap.qapi} (100%)
rename tests/qapi-schema/{pragma-extra-junk.json => pragma-extra-junk.qapi} (100%)
rename tests/qapi-schema/{pragma-name-case-whitelist-crap.json => pragma-name-case-whitelist-crap.qapi} (100%)
rename tests/qapi-schema/{pragma-non-dict.json => pragma-non-dict.qapi} (100%)
rename tests/qapi-schema/{pragma-returns-whitelist-crap.json => pragma-returns-whitelist-crap.qapi} (100%)
rename tests/qapi-schema/{qapi-schema-test.json => qapi-schema-test.qapi} (100%)
rename tests/qapi-schema/{quoted-structural-chars.json => quoted-structural-chars.qapi} (100%)
rename tests/qapi-schema/{redefined-builtin.json => redefined-builtin.qapi} (100%)
rename tests/qapi-schema/{redefined-command.json => redefined-command.qapi} (100%)
rename tests/qapi-schema/{redefined-event.json => redefined-event.qapi} (100%)
rename tests/qapi-schema/{redefined-type.json => redefined-type.qapi} (100%)
rename tests/qapi-schema/{reserved-command-q.json => reserved-command-q.qapi} (100%)
rename tests/qapi-schema/{reserved-enum-q.json => reserved-enum-q.qapi} (100%)
rename tests/qapi-schema/{reserved-member-has.json => reserved-member-has.qapi} (100%)
rename tests/qapi-schema/{reserved-member-q.json => reserved-member-q.qapi} (100%)
rename tests/qapi-schema/{reserved-member-u.json => reserved-member-u.qapi} (100%)
rename tests/qapi-schema/{reserved-member-underscore.json => reserved-member-underscore.qapi} (100%)
rename tests/qapi-schema/{reserved-type-kind.json => reserved-type-kind.qapi} (100%)
rename tests/qapi-schema/{reserved-type-list.json => reserved-type-list.qapi} (100%)
rename tests/qapi-schema/{returns-alternate.json => returns-alternate.qapi} (100%)
rename tests/qapi-schema/{returns-array-bad.json => returns-array-bad.qapi} (100%)
rename tests/qapi-schema/{returns-dict.json => returns-dict.qapi} (100%)
rename tests/qapi-schema/{returns-unknown.json => returns-unknown.qapi} (100%)
rename tests/qapi-schema/{returns-whitelist.json => returns-whitelist.qapi} (100%)
rename tests/qapi-schema/{struct-base-clash-deep.json => struct-base-clash-deep.qapi} (100%)
rename tests/qapi-schema/{struct-base-clash.json => struct-base-clash.qapi} (100%)
rename tests/qapi-schema/{struct-data-invalid.json => struct-data-invalid.qapi} (100%)
rename tests/qapi-schema/{struct-member-invalid.json => struct-member-invalid.qapi} (100%)
rename tests/qapi-schema/{trailing-comma-list.json => trailing-comma-list.qapi} (100%)
rename tests/qapi-schema/{trailing-comma-object.json => trailing-comma-object.qapi} (100%)
rename tests/qapi-schema/{type-bypass-bad-gen.json => type-bypass-bad-gen.qapi} (100%)
rename tests/qapi-schema/{unclosed-list.json => unclosed-list.qapi} (100%)
rename tests/qapi-schema/{unclosed-object.json => unclosed-object.qapi} (100%)
rename tests/qapi-schema/{unclosed-string.json => unclosed-string.qapi} (100%)
rename tests/qapi-schema/{unicode-str.json => unicode-str.qapi} (100%)
rename tests/qapi-schema/{union-base-empty.json => union-base-empty.qapi} (100%)
rename tests/qapi-schema/{union-base-no-discriminator.json => union-base-no-discriminator.qapi} (100%)
rename tests/qapi-schema/{union-branch-case.json => union-branch-case.qapi} (100%)
rename tests/qapi-schema/{union-clash-branches.json => union-clash-branches.qapi} (100%)
rename tests/qapi-schema/{union-empty.json => union-empty.qapi} (100%)
rename tests/qapi-schema/{union-invalid-base.json => union-invalid-base.qapi} (100%)
rename tests/qapi-schema/{union-optional-branch.json => union-optional-branch.qapi} (100%)
rename tests/qapi-schema/{union-unknown.json => union-unknown.qapi} (100%)
rename tests/qapi-schema/{unknown-escape.json => unknown-escape.qapi} (100%)
rename tests/qapi-schema/{unknown-expr-key.json => unknown-expr-key.qapi} (100%)docs/devel/blkdebug.txt +1 -1
@@ -92,7 +92,7 @@ The core events are: flush_to_disk - flush the host block device's disk cache -See qapi/block-core.json:BlkdebugEvent for the full list of events. +See qapi/block-core.qapi:BlkdebugEvent for the full list of events. You may need to grep block driver source code to understand the meaning of specific events.
docs/devel/qapi-code-gen.txt +8 -8
@@ -293,7 +293,7 @@ Usage: { 'include': STRING } The QAPI schema definitions can be modularized using the 'include' directive: - { 'include': 'path/to/file.json' } + { 'include': 'path/to/file.qapi' } The directive is evaluated recursively, and include paths are relative to the file using the directive. Multiple includes of the same file are
@@ -912,7 +912,7 @@ list of that type as a parameter, and returns a single element of that type. The user is responsible for writing the implementation of qmp_my_command(); everything else is produced by the generator. - $ cat example-schema.json + $ cat example-schema.qapi { 'struct': 'UserDefOne', 'data': { 'integer': 'int', '*string': 'str' } }
@@ -923,7 +923,7 @@ qmp_my_command(); everything else is produced by the generator. { 'event': 'MY_EVENT' } For a more thorough look at generated code, the testsuite includes -tests/qapi-schema/qapi-schema-tests.json that covers more examples of +tests/qapi-schema/qapi-schema-tests.qapi that covers more examples of what the generator will accept, and compiles the resulting C code as part of 'make check-unit'.
@@ -944,7 +944,7 @@ created code. Example: $ python scripts/qapi-types.py --output-dir="qapi-generated" \ - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-types.h [Uninteresting stuff omitted...]
@@ -1029,7 +1029,7 @@ $(prefix)qapi-visit.h: declarations for previously mentioned visitor Example: $ python scripts/qapi-visit.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-visit.h [Uninteresting stuff omitted...]
@@ -1160,7 +1160,7 @@ $(prefix)qmp-commands.h: Function prototypes for the QMP commands Example: $ python scripts/qapi-commands.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qmp-commands.h [Uninteresting stuff omitted...]
@@ -1255,7 +1255,7 @@ $(prefix)qapi-event.c - Implementation of functions to send an event Example: $ python scripts/qapi-event.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-event.h [Uninteresting stuff omitted...]
@@ -1318,7 +1318,7 @@ $(prefix)qmp-introspect.h - Declares the above string. Example: $ python scripts/qapi-introspect.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qmp-introspect.h [Uninteresting stuff omitted...]
docs/devel/testing.rst +2 -2
@@ -132,7 +132,7 @@ output. The input/output data is managed under the ``tests/qapi-schema`` directory. Each test case includes four files that have a common base name: - * ``${casename}.json`` - the file contains the JSON input for feeding the + * ``${casename}.qapi`` - the file contains the JSON input for feeding the parser * ``${casename}.out`` - the file contains the expected stdout from the parser * ``${casename}.err`` - the file contains the expected stderr from the parser
@@ -147,7 +147,7 @@ parser (either fixing a bug or extending/modifying the syntax). To do this: 2. Add the new test in ``tests/Makefile.include``. For example: - ``qapi-schema += foo.json`` + ``qapi-schema += foo.qapi`` check-block -----------
docs/devel/writing-qmp-commands.txt +4 -4
@@ -16,7 +16,7 @@ Generally speaking, the following steps should be taken in order to write a new QMP command (similar steps for QGA). 1. Write the command's and type(s) specification in the appropriate - QAPI schema file (qapi/qmp-schema.json, or one of the module .json + QAPI schema file (qapi/qmp-schema.qapi, or one of the module .qapi files it includes) 2. Write the QMP command itself, which is a regular C function. Preferably,
@@ -90,7 +90,7 @@ Our command will be called "hello-world". It takes no arguments, nor does it return any data. The first step is to add the following line to the bottom of the -qapi/qmp-schema.json file: +qapi/qmp-schema.qapi file: { 'command': 'hello-world' }
@@ -235,7 +235,7 @@ this rule: If the failure you want to report falls into one of the two cases above, use error_set() with a second argument of an ErrorClass value. - * All existing ErrorClass values are defined in the qapi/qmp-schema.json file + * All existing ErrorClass values are defined in the qapi/qmp-schema.qapi file === Command Documentation ===
@@ -246,7 +246,7 @@ This is very important. No QMP command will be accepted in QEMU without proper documentation. There are many examples of such documentation in the schema file already, but -here goes "hello-world"'s new entry for the qapi/qmp-schema.json file: +here goes "hello-world"'s new entry for the qapi/qmp-schema.qapi file: ## # @hello-world
docs/interop/live-block-operations.rst +2 -2
@@ -20,7 +20,7 @@ primitives, and some (non-exhaustive list of) examples to illustrate their use. .. note:: - The file ``qapi/block-core.json`` in the QEMU source tree has the + The file ``qapi/block-core.qapi`` in the QEMU source tree has the canonical QEMU API (QAPI) schema documentation for the QMP primitives discussed here.
@@ -54,7 +54,7 @@ files in a disk image backing chain: (1) Directional: 'base' and 'top'. Given the simple disk image chain above, image [A] can be referred to as 'base', and image [B] as 'top'. (This terminology can be seen in in QAPI schema file, - block-core.json.) + block-core.qapi.) (2) Relational: 'backing file' and 'overlay'. Again, taking the same simple disk image chain from the above, disk image [A] is referred
docs/interop/qmp-intro.txt +1 -1
@@ -78,7 +78,7 @@ Escape character is '^]'. } } -Please, refer to the qapi/qmp-schema.json file for a complete command +Please, refer to the qapi/qmp-schema.qapi file for a complete command reference. QMP wiki page
Makefile +18 -18
@@ -488,35 +488,35 @@ gen-out-type = $(subst .,-,$(suffix $@)) qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-types.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qapi-visit.c qga/qapi-generated/qga-qapi-visit.h :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-visit.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qmp-commands.h qga/qapi-generated/qga-qmp-marshal.c :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-commands.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") -qapi-modules = $(SRC_PATH)/qapi/qmp-schema.json $(SRC_PATH)/qapi/common.json \ - $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.json \ - $(SRC_PATH)/qapi/char.json \ - $(SRC_PATH)/qapi/crypto.json \ - $(SRC_PATH)/qapi/introspect.json \ - $(SRC_PATH)/qapi/migration.json \ - $(SRC_PATH)/qapi/net.json \ - $(SRC_PATH)/qapi/rocker.json \ - $(SRC_PATH)/qapi/run-state.json \ - $(SRC_PATH)/qapi/sockets.json \ - $(SRC_PATH)/qapi/tpm.json \ - $(SRC_PATH)/qapi/trace.json \ - $(SRC_PATH)/qapi/transaction.json \ - $(SRC_PATH)/qapi/ui.json +qapi-modules = $(SRC_PATH)/qapi/qmp-schema.qapi $(SRC_PATH)/qapi/common.qapi \ + $(SRC_PATH)/qapi/block.qapi $(SRC_PATH)/qapi/block-core.qapi \ + $(SRC_PATH)/qapi/char.qapi \ + $(SRC_PATH)/qapi/crypto.qapi \ + $(SRC_PATH)/qapi/introspect.qapi \ + $(SRC_PATH)/qapi/migration.qapi \ + $(SRC_PATH)/qapi/net.qapi \ + $(SRC_PATH)/qapi/rocker.qapi \ + $(SRC_PATH)/qapi/run-state.qapi \ + $(SRC_PATH)/qapi/sockets.qapi \ + $(SRC_PATH)/qapi/tpm.qapi \ + $(SRC_PATH)/qapi/trace.qapi \ + $(SRC_PATH)/qapi/transaction.qapi \ + $(SRC_PATH)/qapi/ui.qapi qapi-types.c qapi-types.h :\ $(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
@@ -815,7 +815,7 @@ docs/interop/qemu-qmp-qapi.texi docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/scri docs/interop/qemu-qmp-qapi.texi: $(qapi-modules) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") -docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qapi/qga-schema.json +docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qapi/qga-schema.qapi $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texi
Makefile.objs +1 -1
@@ -103,7 +103,7 @@ target-obj-y += trace/ # guest agent # FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed -# by libqemuutil.a. These should be moved to a separate .json schema. +# by libqemuutil.a. These should be moved to a separate .qapi schema. qga-obj-y = qga/ qga-vss-dll-obj-y = qga/
qapi/block-core.qapi renamed from qapi/block-core.json +3 -3
@@ -4,9 +4,9 @@ # == Block core (VM unrelated) ## -{ 'include': 'common.json' } -{ 'include': 'crypto.json' } -{ 'include': 'sockets.json' } +{ 'include': 'common.qapi' } +{ 'include': 'crypto.qapi' } +{ 'include': 'sockets.qapi' } ## # @SnapshotInfo:
qapi/block.qapi renamed from qapi/block.json +1 -1
@@ -4,7 +4,7 @@ # = Block devices ## -{ 'include': 'block-core.json' } +{ 'include': 'block-core.qapi' } ## # == Additional block stuff (VM related)
qapi/char.qapi renamed from qapi/char.json +1 -1
@@ -5,7 +5,7 @@ # = Character devices ## -{ 'include': 'sockets.json' } +{ 'include': 'sockets.qapi' } ## # @ChardevInfo:
qapi/common.qapi renamed from qapi/common.json +0 -0
qapi/crypto.qapi renamed from qapi/crypto.json +0 -0
qapi/introspect.qapi renamed from qapi/introspect.json +0 -0
qapi/migration.qapi renamed from qapi/migration.json +1 -1
@@ -5,7 +5,7 @@ # = Migration ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @MigrationStats:
qapi/net.qapi renamed from qapi/net.json +1 -1
@@ -5,7 +5,7 @@ # = Net devices ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @set_link:
qapi/qga-schema.qapi renamed from qapi/qga-schema.json +0 -0
qapi/qmp-schema.qapi renamed from qapi/qmp-schema.json +15 -15
@@ -76,22 +76,22 @@ # included sub-schemas inserted at the first include directive # (subsequent include directives have no effect). To get a sane and # stable order, it's best to include each sub-schema just once, or -# include it first in qapi/qmp-schema.json. +# include it first in qapi/qmp-schema.qapi. -{ 'include': 'common.json' } -{ 'include': 'sockets.json' } -{ 'include': 'run-state.json' } -{ 'include': 'crypto.json' } -{ 'include': 'block.json' } -{ 'include': 'char.json' } -{ 'include': 'net.json' } -{ 'include': 'rocker.json' } -{ 'include': 'tpm.json' } -{ 'include': 'ui.json' } -{ 'include': 'migration.json' } -{ 'include': 'transaction.json' } -{ 'include': 'trace.json' } -{ 'include': 'introspect.json' } +{ 'include': 'common.qapi' } +{ 'include': 'sockets.qapi' } +{ 'include': 'run-state.qapi' } +{ 'include': 'crypto.qapi' } +{ 'include': 'block.qapi' } +{ 'include': 'char.qapi' } +{ 'include': 'net.qapi' } +{ 'include': 'rocker.qapi' } +{ 'include': 'tpm.qapi' } +{ 'include': 'ui.qapi' } +{ 'include': 'migration.qapi' } +{ 'include': 'transaction.qapi' } +{ 'include': 'trace.qapi' } +{ 'include': 'introspect.qapi' } ## # = Miscellanea
qapi/rocker.qapi renamed from qapi/rocker.json +0 -0
qapi/run-state.qapi renamed from qapi/run-state.json +0 -0
qapi/sockets.qapi renamed from qapi/sockets.json +1 -1
@@ -4,7 +4,7 @@ # = Socket data types ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @NetworkAddressFamily:
qapi/tpm.qapi renamed from qapi/tpm.json +0 -0
qapi/trace.qapi renamed from qapi/trace.json +0 -0
qapi/transaction.qapi renamed from qapi/transaction.json +1 -1
@@ -5,7 +5,7 @@ # = Transactions ## -{ 'include': 'block.json' } +{ 'include': 'block.qapi' } ## # @Abort:
qapi/ui.qapi renamed from qapi/ui.json +1 -1
@@ -5,7 +5,7 @@ # = Remote desktop ## -{ 'include': 'sockets.json' } +{ 'include': 'sockets.qapi' } ## # @set_password:
include/crypto/block.h +1 -1
@@ -27,7 +27,7 @@typedef struct QCryptoBlock QCryptoBlock ;/* See also QCryptoBlockFormat, QCryptoBlockCreateOptions -* and QCryptoBlockOpenOptions in qapi/crypto.json */ +* and QCryptoBlockOpenOptions in qapi/crypto.qapi */ typedef ssize_t (*QCryptoBlockReadFunc)(QCryptoBlock *block, size_t offset,
include/crypto/cipher.h +1 -1
@@ -26,7 +26,7 @@typedef struct QCryptoCipher QCryptoCipher ;/* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode" -* enums defined in qapi/crypto.json */ +* enums defined in qapi/crypto.qapi */ /** * QCryptoCipher:
include/crypto/hash.h +1 -1
@@ -23,7 +23,7 @@#include "qapi-types.h" -/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */ +/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.qapi */ /** * qcrypto_hash_supports:
include/crypto/ivgen.h +1 -1
@@ -97,7 +97,7 @@typedef struct QCryptoIVGen QCryptoIVGen ; -/* See also QCryptoIVGenAlgorithm enum in qapi/crypto.json */ +/* See also QCryptoIVGenAlgorithm enum in qapi/crypto.qapi */ /**
MAINTAINERS +13 -13
@@ -1342,8 +1342,8 @@ M: Markus Armbruster <[email protected]> S: Supported F: blockdev.c F: block/qapi.c -F: qapi/block*.json -F: qapi/transaction.json +F: qapi/block*.qapi +F: qapi/transaction.qapi T: git git://repo.or.cz/qemu/armbru.git block-next Dirty Bitmaps
@@ -1366,7 +1366,7 @@ M: Marc-André Lureau <[email protected]> S: Maintained F: chardev/ F: include/chardev/ -F: qapi/char.json +F: qapi/char.qapi Character Devices (Braille) M: Samuel Thibault <[email protected]>
@@ -1444,14 +1444,14 @@ F: include/ui/spice-display.h F: ui/spice-*.c F: audio/spiceaudio.c F: hw/display/qxl* -F: qapi/ui.json +F: qapi/ui.qapi Graphics M: Gerd Hoffmann <[email protected]> S: Odd Fixes F: ui/ F: include/ui/ -F: qapi/ui.json +F: qapi/ui.qapi Cocoa graphics M: Peter Maydell <[email protected]>
@@ -1465,7 +1465,7 @@ F: cpus.c F: util/main-loop.c F: util/qemu-timer.c F: vl.c -F: qapi/run-state.json +F: qapi/run-state.qapi Human Monitor (HMP) M: Dr. David Alan Gilbert <[email protected]>
@@ -1482,7 +1482,7 @@ S: Maintained F: net/ F: include/net/ T: git git://github.com/jasowang/qemu.git net -F: qapi/net.json +F: qapi/net.qapi Netmap network backend M: Luigi Rizzo <[email protected]>
@@ -1526,7 +1526,7 @@ M: Markus Armbruster <[email protected]> M: Michael Roth <[email protected]> S: Supported F: qapi/ -X: qapi/*.json +X: qapi/*.qapi F: include/qapi/ X: include/qapi/qmp/ F: include/qapi/qmp/dispatch.h
@@ -1543,7 +1543,7 @@ QAPI Schema M: Eric Blake <[email protected]> M: Markus Armbruster <[email protected]> S: Supported -F: qapi/*.json +F: qapi/*.qapi T: git git://repo.or.cz/qemu/armbru.git qapi-next QObject
@@ -1564,7 +1564,7 @@ QEMU Guest Agent M: Michael Roth <[email protected]> S: Maintained F: qga/ -F: qapi/qga-schema.json +F: qapi/qga-schema.qapi F: qemu-ga.texi F: scripts/qemu-guest-agent/ F: tests/test-qga.c
@@ -1631,7 +1631,7 @@ F: stubs/tpm.c F: hw/tpm/* F: include/hw/acpi/tpm.h F: include/sysemu/tpm* -F: qapi/tpm.json +F: qapi/tpm.qapi F: backends/tpm.c T: git git://github.com/stefanberger/qemu-tpm.git tpm-next
@@ -1649,7 +1649,7 @@ F: scripts/vmstate-static-checker.py F: tests/vmstate-static-checker-data/ F: tests/migration-test.c F: docs/devel/migration.txt -F: qapi/migration.json +F: qapi/migration.qapi Seccomp M: Eduardo Otubo <[email protected]>
@@ -1693,7 +1693,7 @@ M: Paolo Bonzini <[email protected]> S: Maintained F: include/qemu/sockets.h F: util/qemu-sockets.c -F: qapi/sockets.json +F: qapi/sockets.qapi Throttling infrastructure M: Alberto Garcia <[email protected]>
scripts/git.orderfile +1 -1
@@ -19,7 +19,7 @@ Makefile* *.mak # qapi schema -*.json +*.qapi # headers *.h
tests/Makefile.include +171 -171
380 lines not on this page · raw message
tests/qapi-schema/alternate-any.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-any.json:2: Alternate 'Alt' member 'one' cannot use type 'any' +tests/qapi-schema/alternate-any.qapi:2: Alternate 'Alt' member 'one' cannot use type 'any'
tests/qapi-schema/alternate-any.qapi renamed from tests/qapi-schema/alternate-any.json +0 -0
tests/qapi-schema/alternate-array.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-array.json:5: Member 'two' of alternate 'Alt' cannot be an array +tests/qapi-schema/alternate-array.qapi:5: Member 'two' of alternate 'Alt' cannot be an array
tests/qapi-schema/alternate-array.qapi renamed from tests/qapi-schema/alternate-array.json +0 -0
tests/qapi-schema/alternate-base.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-base.json:4: Unknown key 'base' in alternate 'Alt' +tests/qapi-schema/alternate-base.qapi:4: Unknown key 'base' in alternate 'Alt'
tests/qapi-schema/alternate-base.qapi renamed from tests/qapi-schema/alternate-base.json +0 -0
tests/qapi-schema/alternate-clash.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-clash.json:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1) +tests/qapi-schema/alternate-clash.qapi:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1)
tests/qapi-schema/alternate-clash.qapi renamed from tests/qapi-schema/alternate-clash.json +0 -0
tests/qapi-schema/alternate-conflict-bool-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-bool-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-bool-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-bool-string.qapi renamed from tests/qapi-schema/alternate-conflict-bool-string.json +0 -0
tests/qapi-schema/alternate-conflict-dict.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-dict.json:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-dict.qapi:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-dict.qapi renamed from tests/qapi-schema/alternate-conflict-dict.json +0 -0
tests/qapi-schema/alternate-conflict-enum-bool.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-enum-bool.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-enum-bool.qapi:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-enum-bool.qapi renamed from tests/qapi-schema/alternate-conflict-enum-bool.json +0 -0
tests/qapi-schema/alternate-conflict-enum-int.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-enum-int.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-enum-int.qapi:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-enum-int.qapi renamed from tests/qapi-schema/alternate-conflict-enum-int.json +0 -0
tests/qapi-schema/alternate-conflict-num-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-num-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-num-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-num-string.qapi renamed from tests/qapi-schema/alternate-conflict-num-string.json +0 -0
tests/qapi-schema/alternate-conflict-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'
tests/qapi-schema/alternate-conflict-string.qapi renamed from tests/qapi-schema/alternate-conflict-string.json +0 -0
tests/qapi-schema/alternate-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-empty.json:2: Alternate 'Alt' should have at least two branches in 'data' +tests/qapi-schema/alternate-empty.qapi:2: Alternate 'Alt' should have at least two branches in 'data'
tests/qapi-schema/alternate-empty.qapi renamed from tests/qapi-schema/alternate-empty.json +0 -0
tests/qapi-schema/alternate-nested.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-nested.json:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1' +tests/qapi-schema/alternate-nested.qapi:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1'
tests/qapi-schema/alternate-nested.qapi renamed from tests/qapi-schema/alternate-nested.json +0 -0
tests/qapi-schema/alternate-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/alternate-unknown.json:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType' +tests/qapi-schema/alternate-unknown.qapi:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType'
tests/qapi-schema/alternate-unknown.qapi renamed from tests/qapi-schema/alternate-unknown.json +0 -0
tests/qapi-schema/args-alternate.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-alternate.json:3: 'data' for command 'oops' cannot use alternate type 'Alt' +tests/qapi-schema/args-alternate.qapi:3: 'data' for command 'oops' cannot use alternate type 'Alt'
tests/qapi-schema/args-alternate.qapi renamed from tests/qapi-schema/args-alternate.json +0 -0
tests/qapi-schema/args-any.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-any.json:2: 'data' for command 'oops' cannot use built-in type 'any' +tests/qapi-schema/args-any.qapi:2: 'data' for command 'oops' cannot use built-in type 'any'
tests/qapi-schema/args-any.qapi renamed from tests/qapi-schema/args-any.json +0 -0
tests/qapi-schema/args-array-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name +tests/qapi-schema/args-array-empty.qapi:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name
tests/qapi-schema/args-array-empty.qapi renamed from tests/qapi-schema/args-array-empty.json +0 -0
tests/qapi-schema/args-array-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-array-unknown.qapi:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-array-unknown.qapi renamed from tests/qapi-schema/args-array-unknown.json +0 -0
tests/qapi-schema/args-bad-boxed.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-bad-boxed.json:2: 'boxed' of command 'foo' should only use true value +tests/qapi-schema/args-bad-boxed.qapi:2: 'boxed' of command 'foo' should only use true value
tests/qapi-schema/args-bad-boxed.qapi renamed from tests/qapi-schema/args-bad-boxed.json +0 -0
tests/qapi-schema/args-boxed-anon.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-boxed-anon.json:2: 'data' for command 'foo' should be a type name +tests/qapi-schema/args-boxed-anon.qapi:2: 'data' for command 'foo' should be a type name
tests/qapi-schema/args-boxed-anon.qapi renamed from tests/qapi-schema/args-boxed-anon.json +0 -0
tests/qapi-schema/args-boxed-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-boxed-empty.json:3: Cannot use 'boxed' with empty type +tests/qapi-schema/args-boxed-empty.qapi:3: Cannot use 'boxed' with empty type
tests/qapi-schema/args-boxed-empty.qapi renamed from tests/qapi-schema/args-boxed-empty.json +0 -0
tests/qapi-schema/args-boxed-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-boxed-string.json:2: 'data' for command 'foo' cannot use built-in type 'str' +tests/qapi-schema/args-boxed-string.qapi:2: 'data' for command 'foo' cannot use built-in type 'str'
tests/qapi-schema/args-boxed-string.qapi renamed from tests/qapi-schema/args-boxed-string.json +0 -0
tests/qapi-schema/args-int.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-int.json:2: 'data' for command 'oops' cannot use built-in type 'int' +tests/qapi-schema/args-int.qapi:2: 'data' for command 'oops' cannot use built-in type 'int'
tests/qapi-schema/args-int.qapi renamed from tests/qapi-schema/args-int.json +0 -0
tests/qapi-schema/args-invalid.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-invalid.json:1: 'data' for command 'foo' should be a dictionary or type name +tests/qapi-schema/args-invalid.qapi:1: 'data' for command 'foo' should be a dictionary or type name
tests/qapi-schema/args-invalid.qapi renamed from tests/qapi-schema/args-invalid.json +0 -0
tests/qapi-schema/args-member-array-bad.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name +tests/qapi-schema/args-member-array-bad.qapi:2: Member 'member' of 'data' for command 'oops': array type must contain single type name
tests/qapi-schema/args-member-array-bad.qapi renamed from tests/qapi-schema/args-member-array-bad.json +0 -0
tests/qapi-schema/args-member-case.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-member-case.json:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercase +tests/qapi-schema/args-member-case.qapi:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercase
tests/qapi-schema/args-member-case.qapi renamed from tests/qapi-schema/args-member-case.json +0 -0
tests/qapi-schema/args-member-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-member-unknown.qapi:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-member-unknown.qapi renamed from tests/qapi-schema/args-member-unknown.json +0 -0
tests/qapi-schema/args-name-clash.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-name-clash.json:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops) +tests/qapi-schema/args-name-clash.qapi:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops)
tests/qapi-schema/args-name-clash.qapi renamed from tests/qapi-schema/args-name-clash.json +0 -0
tests/qapi-schema/args-union.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-union.json:3: 'data' for command 'oops' cannot use union type 'Uni' +tests/qapi-schema/args-union.qapi:3: 'data' for command 'oops' cannot use union type 'Uni'
tests/qapi-schema/args-union.qapi renamed from tests/qapi-schema/args-union.json +0 -0
tests/qapi-schema/args-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/args-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-unknown.qapi:2: 'data' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/args-unknown.qapi renamed from tests/qapi-schema/args-unknown.json +0 -0
tests/qapi-schema/bad-base.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-base.json:3: 'base' for struct 'MyType' cannot use union type 'Union' +tests/qapi-schema/bad-base.qapi:3: 'base' for struct 'MyType' cannot use union type 'Union'
tests/qapi-schema/bad-base.qapi renamed from tests/qapi-schema/bad-base.json +0 -0
tests/qapi-schema/bad-data.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-data.json:2: 'data' for command 'oops' cannot be an array +tests/qapi-schema/bad-data.qapi:2: 'data' for command 'oops' cannot be an array
tests/qapi-schema/bad-data.qapi renamed from tests/qapi-schema/bad-data.json +0 -0
tests/qapi-schema/bad-ident.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-ident.json:2: 'struct' does not allow optional name '*oops' +tests/qapi-schema/bad-ident.qapi:2: 'struct' does not allow optional name '*oops'
tests/qapi-schema/bad-ident.qapi renamed from tests/qapi-schema/bad-ident.json +0 -0
tests/qapi-schema/bad-type-bool.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-type-bool.json:2: 'struct' key must have a string value +tests/qapi-schema/bad-type-bool.qapi:2: 'struct' key must have a string value
tests/qapi-schema/bad-type-bool.qapi renamed from tests/qapi-schema/bad-type-bool.json +0 -0
tests/qapi-schema/bad-type-dict.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-type-dict.json:2: 'command' key must have a string value +tests/qapi-schema/bad-type-dict.qapi:2: 'command' key must have a string value
tests/qapi-schema/bad-type-dict.qapi renamed from tests/qapi-schema/bad-type-dict.json +0 -0
tests/qapi-schema/bad-type-int.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/bad-type-int.json:3:13: Stray "1" +tests/qapi-schema/bad-type-int.qapi:3:13: Stray "1"
tests/qapi-schema/bad-type-int.qapi renamed from tests/qapi-schema/bad-type-int.json +0 -0
tests/qapi-schema/base-cycle-direct.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/base-cycle-direct.json:2: Object Loopy contains itself +tests/qapi-schema/base-cycle-direct.qapi:2: Object Loopy contains itself
tests/qapi-schema/base-cycle-direct.qapi renamed from tests/qapi-schema/base-cycle-direct.json +0 -0
tests/qapi-schema/base-cycle-indirect.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/base-cycle-indirect.json:2: Object Base1 contains itself +tests/qapi-schema/base-cycle-indirect.qapi:2: Object Base1 contains itself
tests/qapi-schema/base-cycle-indirect.qapi renamed from tests/qapi-schema/base-cycle-indirect.json +0 -0
tests/qapi-schema/command-int.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/command-int.json:2: built-in 'int' is already defined +tests/qapi-schema/command-int.qapi:2: built-in 'int' is already defined
tests/qapi-schema/command-int.qapi renamed from tests/qapi-schema/command-int.json +0 -0
tests/qapi-schema/comments.qapi renamed from tests/qapi-schema/comments.json +0 -0
tests/qapi-schema/doc-bad-alternate-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-bad-alternate-member.json:3: The following documented members are not in the declaration: aa, bb +tests/qapi-schema/doc-bad-alternate-member.qapi:3: The following documented members are not in the declaration: aa, bb
tests/qapi-schema/doc-bad-alternate-member.qapi renamed from tests/qapi-schema/doc-bad-alternate-member.json +0 -0
tests/qapi-schema/doc-bad-command-arg.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-bad-command-arg.json:3: The following documented members are not in the declaration: b +tests/qapi-schema/doc-bad-command-arg.qapi:3: The following documented members are not in the declaration: b
tests/qapi-schema/doc-bad-command-arg.qapi renamed from tests/qapi-schema/doc-bad-command-arg.json +0 -0
tests/qapi-schema/doc-bad-section.qapi renamed from tests/qapi-schema/doc-bad-section.json +0 -0
tests/qapi-schema/doc-bad-symbol.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-bad-symbol.json:6: Definition of 'foo' follows documentation for 'food' +tests/qapi-schema/doc-bad-symbol.qapi:6: Definition of 'foo' follows documentation for 'food'
tests/qapi-schema/doc-bad-symbol.qapi renamed from tests/qapi-schema/doc-bad-symbol.json +0 -0
tests/qapi-schema/doc-bad-union-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-bad-union-member.json:3: The following documented members are not in the declaration: a, b +tests/qapi-schema/doc-bad-union-member.qapi:3: The following documented members are not in the declaration: a, b
tests/qapi-schema/doc-bad-union-member.qapi renamed from tests/qapi-schema/doc-bad-union-member.json +0 -0
tests/qapi-schema/doc-before-include.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition +tests/qapi-schema/doc-before-include.qapi:3: Documentation for 'foo' is not followed by the definition
tests/qapi-schema/doc-before-include.qapi renamed from tests/qapi-schema/doc-before-include.json +1 -1
@@ -3,5 +3,5 @@ ## # @foo: ## -{ 'include': 'empty.json' } +{ 'include': 'empty.qapi' } { 'struct': 'foo', 'data': {} }
tests/qapi-schema/doc-before-pragma.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition +tests/qapi-schema/doc-before-pragma.qapi:3: Documentation for 'foo' is not followed by the definition
tests/qapi-schema/doc-before-pragma.qapi renamed from tests/qapi-schema/doc-before-pragma.json +0 -0
tests/qapi-schema/doc-duplicated-arg.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-arg.json:6:1: 'a' parameter name duplicated +tests/qapi-schema/doc-duplicated-arg.qapi:6:1: 'a' parameter name duplicated
tests/qapi-schema/doc-duplicated-arg.qapi renamed from tests/qapi-schema/doc-duplicated-arg.json +0 -0
tests/qapi-schema/doc-duplicated-return.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-return.json:7:1: Duplicated 'Returns' section +tests/qapi-schema/doc-duplicated-return.qapi:7:1: Duplicated 'Returns' section
tests/qapi-schema/doc-duplicated-return.qapi renamed from tests/qapi-schema/doc-duplicated-return.json +0 -0
tests/qapi-schema/doc-duplicated-since.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-since.json:7:1: Duplicated 'Since' section +tests/qapi-schema/doc-duplicated-since.qapi:7:1: Duplicated 'Since' section
tests/qapi-schema/doc-duplicated-since.qapi renamed from tests/qapi-schema/doc-duplicated-since.json +0 -0
tests/qapi-schema/doc-empty-arg.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-empty-arg.json:5:1: Invalid parameter name +tests/qapi-schema/doc-empty-arg.qapi:5:1: Invalid parameter name
tests/qapi-schema/doc-empty-arg.qapi renamed from tests/qapi-schema/doc-empty-arg.json +0 -0
tests/qapi-schema/doc-empty-section.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-empty-section.json:7:1: Empty doc section 'Note' +tests/qapi-schema/doc-empty-section.qapi:7:1: Empty doc section 'Note'
tests/qapi-schema/doc-empty-section.qapi renamed from tests/qapi-schema/doc-empty-section.json +0 -0
tests/qapi-schema/doc-empty-symbol.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-empty-symbol.json:4:1: Invalid name +tests/qapi-schema/doc-empty-symbol.qapi:4:1: Invalid name
tests/qapi-schema/doc-empty-symbol.qapi renamed from tests/qapi-schema/doc-empty-symbol.json +0 -0
tests/qapi-schema/doc-good.qapi renamed from tests/qapi-schema/doc-good.json +0 -0
tests/qapi-schema/doc-interleaved-section.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-interleaved-section.json:15:1: '@foobar:' can't follow 'Note' section +tests/qapi-schema/doc-interleaved-section.qapi:15:1: '@foobar:' can't follow 'Note' section
tests/qapi-schema/doc-interleaved-section.qapi renamed from tests/qapi-schema/doc-interleaved-section.json +0 -0
tests/qapi-schema/doc-invalid-end.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-end.json:5:2: Documentation comment must end with '##' +tests/qapi-schema/doc-invalid-end.qapi:5:2: Documentation comment must end with '##'
tests/qapi-schema/doc-invalid-end.qapi renamed from tests/qapi-schema/doc-invalid-end.json +0 -0
tests/qapi-schema/doc-invalid-end2.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-end2.json:5:1: Junk after '##' at end of documentation comment +tests/qapi-schema/doc-invalid-end2.qapi:5:1: Junk after '##' at end of documentation comment
tests/qapi-schema/doc-invalid-end2.qapi renamed from tests/qapi-schema/doc-invalid-end2.json +0 -0
tests/qapi-schema/doc-invalid-return.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-return.json:3: 'Returns:' is only valid for commands +tests/qapi-schema/doc-invalid-return.qapi:3: 'Returns:' is only valid for commands
tests/qapi-schema/doc-invalid-return.qapi renamed from tests/qapi-schema/doc-invalid-return.json +0 -0
tests/qapi-schema/doc-invalid-section.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-section.json:5:1: '@note:' not allowed in free-form documentation +tests/qapi-schema/doc-invalid-section.qapi:5:1: '@note:' not allowed in free-form documentation
tests/qapi-schema/doc-invalid-section.qapi renamed from tests/qapi-schema/doc-invalid-section.json +0 -0
tests/qapi-schema/doc-invalid-start.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-start.json:3:1: Junk after '##' at start of documentation comment +tests/qapi-schema/doc-invalid-start.qapi:3:1: Junk after '##' at start of documentation comment
tests/qapi-schema/doc-invalid-start.qapi renamed from tests/qapi-schema/doc-invalid-start.json +0 -0
tests/qapi-schema/doc-missing-colon.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-missing-colon.json:4:1: Line should end with : +tests/qapi-schema/doc-missing-colon.qapi:4:1: Line should end with :
tests/qapi-schema/doc-missing-colon.qapi renamed from tests/qapi-schema/doc-missing-colon.json +0 -0
tests/qapi-schema/doc-missing-expr.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-missing-expr.json:3: Documentation for 'bar' is not followed by the definition +tests/qapi-schema/doc-missing-expr.qapi:3: Documentation for 'bar' is not followed by the definition
tests/qapi-schema/doc-missing-expr.qapi renamed from tests/qapi-schema/doc-missing-expr.json +0 -0
tests/qapi-schema/doc-missing-space.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-missing-space.json:5:1: Missing space after # +tests/qapi-schema/doc-missing-space.qapi:5:1: Missing space after #
tests/qapi-schema/doc-missing-space.qapi renamed from tests/qapi-schema/doc-missing-space.json +0 -0
tests/qapi-schema/doc-missing.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-missing.json:5: Expression missing documentation comment +tests/qapi-schema/doc-missing.qapi:5: Expression missing documentation comment
tests/qapi-schema/doc-missing.qapi renamed from tests/qapi-schema/doc-missing.json +0 -0
tests/qapi-schema/doc-no-symbol.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/doc-no-symbol.json:3: Expression documentation required +tests/qapi-schema/doc-no-symbol.qapi:3: Expression documentation required
tests/qapi-schema/doc-no-symbol.qapi renamed from tests/qapi-schema/doc-no-symbol.json +0 -0
tests/qapi-schema/double-data.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/double-data.json:2:41: Duplicate key "data" +tests/qapi-schema/double-data.qapi:2:41: Duplicate key "data"
tests/qapi-schema/double-data.qapi renamed from tests/qapi-schema/double-data.json +0 -0
tests/qapi-schema/double-type.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/double-type.json:2: Unknown key 'command' in struct 'bar' +tests/qapi-schema/double-type.qapi:2: Unknown key 'command' in struct 'bar'
tests/qapi-schema/double-type.qapi renamed from tests/qapi-schema/double-type.json +0 -0
tests/qapi-schema/duplicate-key.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/duplicate-key.json:3:10: Duplicate key "key" +tests/qapi-schema/duplicate-key.qapi:3:10: Duplicate key "key"
tests/qapi-schema/duplicate-key.qapi renamed from tests/qapi-schema/duplicate-key.json +0 -0
tests/qapi-schema/empty.qapi renamed from tests/qapi-schema/empty.json +0 -0
tests/qapi-schema/enum-bad-name.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-bad-name.json:2: Member of enum 'MyEnum' uses invalid name 'not^possible' +tests/qapi-schema/enum-bad-name.qapi:2: Member of enum 'MyEnum' uses invalid name 'not^possible'
tests/qapi-schema/enum-bad-name.qapi renamed from tests/qapi-schema/enum-bad-name.json +0 -0
tests/qapi-schema/enum-bad-prefix.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-bad-prefix.json:2: Enum 'MyEnum' requires a string for 'prefix' +tests/qapi-schema/enum-bad-prefix.qapi:2: Enum 'MyEnum' requires a string for 'prefix'
tests/qapi-schema/enum-bad-prefix.qapi renamed from tests/qapi-schema/enum-bad-prefix.json +0 -0
tests/qapi-schema/enum-clash-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-clash-member.json:2: 'one_two' (member of MyEnum) collides with 'one-two' (member of MyEnum) +tests/qapi-schema/enum-clash-member.qapi:2: 'one_two' (member of MyEnum) collides with 'one-two' (member of MyEnum)
tests/qapi-schema/enum-clash-member.qapi renamed from tests/qapi-schema/enum-clash-member.json +0 -0
tests/qapi-schema/enum-dict-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-dict-member.json:2: Member of enum 'MyEnum' requires a string name +tests/qapi-schema/enum-dict-member.qapi:2: Member of enum 'MyEnum' requires a string name
tests/qapi-schema/enum-dict-member.qapi renamed from tests/qapi-schema/enum-dict-member.json +0 -0
tests/qapi-schema/enum-int-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-int-member.json:3:31: Stray "1" +tests/qapi-schema/enum-int-member.qapi:3:31: Stray "1"
tests/qapi-schema/enum-int-member.qapi renamed from tests/qapi-schema/enum-int-member.json +0 -0
tests/qapi-schema/enum-member-case.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-member-case.json:4: 'Value' (member of NoWayThisWillGetWhitelisted) should not use uppercase +tests/qapi-schema/enum-member-case.qapi:4: 'Value' (member of NoWayThisWillGetWhitelisted) should not use uppercase
tests/qapi-schema/enum-member-case.qapi renamed from tests/qapi-schema/enum-member-case.json +0 -0
tests/qapi-schema/enum-missing-data.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-missing-data.json:2: Key 'data' is missing from enum 'MyEnum' +tests/qapi-schema/enum-missing-data.qapi:2: Key 'data' is missing from enum 'MyEnum'
tests/qapi-schema/enum-missing-data.qapi renamed from tests/qapi-schema/enum-missing-data.json +0 -0
tests/qapi-schema/enum-wrong-data.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/enum-wrong-data.json:2: Enum 'MyEnum' requires an array for 'data' +tests/qapi-schema/enum-wrong-data.qapi:2: Enum 'MyEnum' requires an array for 'data'
tests/qapi-schema/enum-wrong-data.qapi renamed from tests/qapi-schema/enum-wrong-data.json +0 -0
tests/qapi-schema/escape-outside-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/escape-outside-string.json:3:27: Stray "\" +tests/qapi-schema/escape-outside-string.qapi:3:27: Stray "\"
tests/qapi-schema/escape-outside-string.qapi renamed from tests/qapi-schema/escape-outside-string.json +0 -0
tests/qapi-schema/escape-too-big.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/escape-too-big.json:3:14: For now, \u escape only supports non-zero values up to \u007f +tests/qapi-schema/escape-too-big.qapi:3:14: For now, \u escape only supports non-zero values up to \u007f
tests/qapi-schema/escape-too-big.qapi renamed from tests/qapi-schema/escape-too-big.json +0 -0
tests/qapi-schema/escape-too-short.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/escape-too-short.json:3:14: \u escape needs 4 hex digits +tests/qapi-schema/escape-too-short.qapi:3:14: \u escape needs 4 hex digits
tests/qapi-schema/escape-too-short.qapi renamed from tests/qapi-schema/escape-too-short.json +0 -0
tests/qapi-schema/event-boxed-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/event-boxed-empty.json:2: Use of 'boxed' requires 'data' +tests/qapi-schema/event-boxed-empty.qapi:2: Use of 'boxed' requires 'data'
tests/qapi-schema/event-boxed-empty.qapi renamed from tests/qapi-schema/event-boxed-empty.json +0 -0
tests/qapi-schema/event-case.qapi renamed from tests/qapi-schema/event-case.json +0 -0
tests/qapi-schema/event-nest-struct.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/event-nest-struct.json:1: Member 'a' of 'data' for event 'EVENT_A' should be a type name +tests/qapi-schema/event-nest-struct.qapi:1: Member 'a' of 'data' for event 'EVENT_A' should be a type name
tests/qapi-schema/event-nest-struct.qapi renamed from tests/qapi-schema/event-nest-struct.json +0 -0
tests/qapi-schema/flat-union-array-branch.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-array-branch.json:8: Member 'value1' of union 'TestUnion' cannot be an array +tests/qapi-schema/flat-union-array-branch.qapi:8: Member 'value1' of union 'TestUnion' cannot be an array
tests/qapi-schema/flat-union-array-branch.qapi renamed from tests/qapi-schema/flat-union-array-branch.json +0 -0
tests/qapi-schema/flat-union-bad-base.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-bad-base.json:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion) +tests/qapi-schema/flat-union-bad-base.qapi:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion)
tests/qapi-schema/flat-union-bad-base.qapi renamed from tests/qapi-schema/flat-union-bad-base.json +0 -0
tests/qapi-schema/flat-union-bad-discriminator.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-bad-discriminator.json:11: Discriminator of flat union 'TestUnion' requires a string name +tests/qapi-schema/flat-union-bad-discriminator.qapi:11: Discriminator of flat union 'TestUnion' requires a string name
tests/qapi-schema/flat-union-bad-discriminator.qapi renamed from tests/qapi-schema/flat-union-bad-discriminator.json +0 -0
tests/qapi-schema/flat-union-base-any.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-base-any.json:8: 'base' for union 'TestUnion' cannot use built-in type 'any' +tests/qapi-schema/flat-union-base-any.qapi:8: 'base' for union 'TestUnion' cannot use built-in type 'any'
tests/qapi-schema/flat-union-base-any.qapi renamed from tests/qapi-schema/flat-union-base-any.json +0 -0
tests/qapi-schema/flat-union-base-union.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-base-union.json:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase' +tests/qapi-schema/flat-union-base-union.qapi:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase'
tests/qapi-schema/flat-union-base-union.qapi renamed from tests/qapi-schema/flat-union-base-union.json +0 -0
tests/qapi-schema/flat-union-clash-member.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-clash-member.json:11: 'name' (member of Branch1) collides with 'name' (member of Base) +tests/qapi-schema/flat-union-clash-member.qapi:11: 'name' (member of Branch1) collides with 'name' (member of Base)
tests/qapi-schema/flat-union-clash-member.qapi renamed from tests/qapi-schema/flat-union-clash-member.json +0 -0
tests/qapi-schema/flat-union-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-empty.json:4: Union 'Union' cannot have empty 'data' +tests/qapi-schema/flat-union-empty.qapi:4: Union 'Union' cannot have empty 'data'
tests/qapi-schema/flat-union-empty.qapi renamed from tests/qapi-schema/flat-union-empty.json +0 -0
tests/qapi-schema/flat-union-incomplete-branch.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-incomplete-branch.json:6: Union 'TestUnion' data missing 'value2' branch +tests/qapi-schema/flat-union-incomplete-branch.qapi:6: Union 'TestUnion' data missing 'value2' branch
tests/qapi-schema/flat-union-incomplete-branch.qapi renamed from tests/qapi-schema/flat-union-incomplete-branch.json +0 -0
tests/qapi-schema/flat-union-inline.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-inline.json:7: Member 'value1' of union 'TestUnion' should be a type name +tests/qapi-schema/flat-union-inline.qapi:7: Member 'value1' of union 'TestUnion' should be a type name
tests/qapi-schema/flat-union-inline.qapi renamed from tests/qapi-schema/flat-union-inline.json +0 -0
tests/qapi-schema/flat-union-int-branch.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-int-branch.json:8: Member 'value1' of union 'TestUnion' cannot use built-in type 'int' +tests/qapi-schema/flat-union-int-branch.qapi:8: Member 'value1' of union 'TestUnion' cannot use built-in type 'int'
tests/qapi-schema/flat-union-int-branch.qapi renamed from tests/qapi-schema/flat-union-int-branch.json +0 -0
tests/qapi-schema/flat-union-invalid-branch-key.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-invalid-branch-key.json:13: Discriminator value 'value_wrong' is not found in enum 'TestEnum' +tests/qapi-schema/flat-union-invalid-branch-key.qapi:13: Discriminator value 'value_wrong' is not found in enum 'TestEnum'
tests/qapi-schema/flat-union-invalid-branch-key.qapi renamed from tests/qapi-schema/flat-union-invalid-branch-key.json +0 -0
tests/qapi-schema/flat-union-invalid-discriminator.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-invalid-discriminator.json:13: Discriminator 'enum_wrong' is not a member of base struct 'TestBase' +tests/qapi-schema/flat-union-invalid-discriminator.qapi:13: Discriminator 'enum_wrong' is not a member of base struct 'TestBase'
tests/qapi-schema/flat-union-invalid-discriminator.qapi renamed from tests/qapi-schema/flat-union-invalid-discriminator.json +0 -0
tests/qapi-schema/flat-union-no-base.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-no-base.json:9: Flat union 'TestUnion' must have a base +tests/qapi-schema/flat-union-no-base.qapi:9: Flat union 'TestUnion' must have a base
tests/qapi-schema/flat-union-no-base.qapi renamed from tests/qapi-schema/flat-union-no-base.json +0 -0
tests/qapi-schema/flat-union-optional-discriminator.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-optional-discriminator.json:6: Discriminator of flat union 'MyUnion' does not allow optional name '*switch' +tests/qapi-schema/flat-union-optional-discriminator.qapi:6: Discriminator of flat union 'MyUnion' does not allow optional name '*switch'
tests/qapi-schema/flat-union-optional-discriminator.qapi renamed from tests/qapi-schema/flat-union-optional-discriminator.json +0 -0
tests/qapi-schema/flat-union-string-discriminator.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/flat-union-string-discriminator.json:13: Discriminator 'kind' must be of enumeration type +tests/qapi-schema/flat-union-string-discriminator.qapi:13: Discriminator 'kind' must be of enumeration type
tests/qapi-schema/flat-union-string-discriminator.qapi renamed from tests/qapi-schema/flat-union-string-discriminator.json +0 -0
tests/qapi-schema/funny-char.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/funny-char.json:2:36: Stray ";" +tests/qapi-schema/funny-char.qapi:2:36: Stray ";"
tests/qapi-schema/funny-char.qapi renamed from tests/qapi-schema/funny-char.json +0 -0
tests/qapi-schema/ident-with-escape.qapi renamed from tests/qapi-schema/ident-with-escape.json +0 -0
tests/qapi-schema/include-before-err.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-before-err.json:2:13: Expected ":" +tests/qapi-schema/include-before-err.qapi:2:13: Expected ":"
tests/qapi-schema/include-before-err.json deleted +0 -2
@@ -1,2 +0,0 @@ -{ 'include': 'include-simple-sub.json' } -{ 'command' 'missing-colon' }
tests/qapi-schema/include-before-err.qapi new file +2 -0
@@ -0,0 +1,2 @@ +{ 'include': 'include-simple-sub.qapi' } +{ 'command' 'missing-colon' }
tests/qapi-schema/include-cycle-b.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-cycle-c.json' }
tests/qapi-schema/include-cycle-b.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-cycle-c.qapi' }
tests/qapi-schema/include-cycle-c.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-cycle.json' }
tests/qapi-schema/include-cycle-c.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-cycle.qapi' }
tests/qapi-schema/include-cycle.err +3 -3
@@ -1,3 +1,3 @@ -In file included from tests/qapi-schema/include-cycle.json:1: -In file included from tests/qapi-schema/include-cycle-b.json:1: -tests/qapi-schema/include-cycle-c.json:1: Inclusion loop for include-cycle.json +In file included from tests/qapi-schema/include-cycle.qapi:1: +In file included from tests/qapi-schema/include-cycle-b.qapi:1: +tests/qapi-schema/include-cycle-c.qapi:1: Inclusion loop for include-cycle.qapi
tests/qapi-schema/include-cycle.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-cycle-b.json' }
tests/qapi-schema/include-cycle.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-cycle-b.qapi' }
tests/qapi-schema/include-extra-junk.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-extra-junk.json:3: Invalid 'include' directive +tests/qapi-schema/include-extra-junk.qapi:3: Invalid 'include' directive
tests/qapi-schema/include-extra-junk.json deleted +0 -3
@@ -1,3 +0,0 @@ -# 'include' must be the sole member - -{ 'include': 'comments.json', 'junk': true }
tests/qapi-schema/include-extra-junk.qapi new file +3 -0
@@ -0,0 +1,3 @@ +# 'include' must be the sole member + +{ 'include': 'comments.qapi', 'junk': true }
tests/qapi-schema/include-format-err.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-format-err.json:1: Invalid 'include' directive +tests/qapi-schema/include-format-err.qapi:1: Invalid 'include' directive
tests/qapi-schema/include-format-err.json deleted +0 -2
@@ -1,2 +0,0 @@ -{ 'include': 'include-simple-sub.json', - 'foo': 'bar' }
tests/qapi-schema/include-format-err.qapi new file +2 -0
@@ -0,0 +1,2 @@ +{ 'include': 'include-simple-sub.qapi', + 'foo': 'bar' }
tests/qapi-schema/include-nested-err.err +2 -2
@@ -1,2 +1,2 @@ -In file included from tests/qapi-schema/include-nested-err.json:1: -tests/qapi-schema/missing-colon.json:1:10: Expected ":" +In file included from tests/qapi-schema/include-nested-err.qapi:1: +tests/qapi-schema/missing-colon.qapi:1:10: Expected ":"
tests/qapi-schema/include-nested-err.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'missing-colon.json' }
tests/qapi-schema/include-nested-err.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'missing-colon.qapi' }
tests/qapi-schema/include-no-file.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-no-file.json:1: No such file or directory: include-no-file-sub.json +tests/qapi-schema/include-no-file.qapi:1: No such file or directory: include-no-file-sub.qapi
tests/qapi-schema/include-no-file.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-no-file-sub.json' }
tests/qapi-schema/include-no-file.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-no-file-sub.qapi' }
tests/qapi-schema/include-non-file.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-non-file.json:1: Value of 'include' must be a string +tests/qapi-schema/include-non-file.qapi:1: Value of 'include' must be a string
tests/qapi-schema/include-non-file.qapi renamed from tests/qapi-schema/include-non-file.json +0 -0
tests/qapi-schema/include-relpath-sub.qapi renamed from tests/qapi-schema/include-relpath-sub.json +0 -0
tests/qapi-schema/include-relpath.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include/relpath.json' }
tests/qapi-schema/include-relpath.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include/relpath.qapi' }
tests/qapi-schema/include-repetition-sub.json deleted +0 -2
@@ -1,2 +0,0 @@ -{ 'include': 'comments.json' } -{ 'include': 'comments.json' }
tests/qapi-schema/include-repetition-sub.qapi new file +2 -0
@@ -0,0 +1,2 @@ +{ 'include': 'comments.qapi' } +{ 'include': 'comments.qapi' }
tests/qapi-schema/include-repetition.json deleted +0 -3
@@ -1,3 +0,0 @@ -{ 'include': 'comments.json' } -{ 'include': 'include-repetition-sub.json' } -{ 'include': 'comments.json' }
tests/qapi-schema/include-repetition.qapi new file +3 -0
@@ -0,0 +1,3 @@ +{ 'include': 'comments.qapi' } +{ 'include': 'include-repetition-sub.qapi' } +{ 'include': 'comments.qapi' }
tests/qapi-schema/include-self-cycle.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/include-self-cycle.json:1: Inclusion loop for include-self-cycle.json +tests/qapi-schema/include-self-cycle.qapi:1: Inclusion loop for include-self-cycle.qapi
tests/qapi-schema/include-self-cycle.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-self-cycle.json' }
tests/qapi-schema/include-self-cycle.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-self-cycle.qapi' }
tests/qapi-schema/include-simple-sub.qapi renamed from tests/qapi-schema/include-simple-sub.json +0 -0
tests/qapi-schema/include-simple.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': 'include-simple-sub.json' }
tests/qapi-schema/include-simple.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': 'include-simple-sub.qapi' }
tests/qapi-schema/include/relpath.json deleted +0 -1
@@ -1 +0,0 @@ -{ 'include': '../include-relpath-sub.json' }
tests/qapi-schema/include/relpath.qapi new file +1 -0
@@ -0,0 +1 @@ +{ 'include': '../include-relpath-sub.qapi' }
tests/qapi-schema/indented-expr.qapi renamed from tests/qapi-schema/indented-expr.json +0 -0
tests/qapi-schema/leading-comma-list.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/leading-comma-list.json:2:13: Expected "{", "[", "]", string, boolean or "null" +tests/qapi-schema/leading-comma-list.qapi:2:13: Expected "{", "[", "]", string, boolean or "null"
tests/qapi-schema/leading-comma-list.qapi renamed from tests/qapi-schema/leading-comma-list.json +0 -0
tests/qapi-schema/leading-comma-object.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/leading-comma-object.json:1:3: Expected string or "}" +tests/qapi-schema/leading-comma-object.qapi:1:3: Expected string or "}"
tests/qapi-schema/leading-comma-object.qapi renamed from tests/qapi-schema/leading-comma-object.json +0 -0
tests/qapi-schema/missing-colon.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/missing-colon.json:1:10: Expected ":" +tests/qapi-schema/missing-colon.qapi:1:10: Expected ":"
tests/qapi-schema/missing-colon.qapi renamed from tests/qapi-schema/missing-colon.json +0 -0
tests/qapi-schema/missing-comma-list.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/missing-comma-list.json:2:20: Expected "," or "]" +tests/qapi-schema/missing-comma-list.qapi:2:20: Expected "," or "]"
tests/qapi-schema/missing-comma-list.qapi renamed from tests/qapi-schema/missing-comma-list.json +0 -0
tests/qapi-schema/missing-comma-object.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/missing-comma-object.json:2:3: Expected "," or "}" +tests/qapi-schema/missing-comma-object.qapi:2:3: Expected "," or "}"
tests/qapi-schema/missing-comma-object.qapi renamed from tests/qapi-schema/missing-comma-object.json +0 -0
tests/qapi-schema/missing-type.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/missing-type.json:2: Expression is missing metatype +tests/qapi-schema/missing-type.qapi:2: Expression is missing metatype
tests/qapi-schema/missing-type.qapi renamed from tests/qapi-schema/missing-type.json +0 -0
tests/qapi-schema/nested-struct-data.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/nested-struct-data.json:2: Member 'a' of 'data' for command 'foo' should be a type name +tests/qapi-schema/nested-struct-data.qapi:2: Member 'a' of 'data' for command 'foo' should be a type name
tests/qapi-schema/nested-struct-data.qapi renamed from tests/qapi-schema/nested-struct-data.json +0 -0
tests/qapi-schema/non-objects.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/non-objects.json:1:1: Expected "{" +tests/qapi-schema/non-objects.qapi:1:1: Expected "{"
tests/qapi-schema/non-objects.qapi renamed from tests/qapi-schema/non-objects.json +0 -0
tests/qapi-schema/pragma-doc-required-crap.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/pragma-doc-required-crap.json:3: Pragma 'doc-required' must be boolean +tests/qapi-schema/pragma-doc-required-crap.qapi:3: Pragma 'doc-required' must be boolean
tests/qapi-schema/pragma-doc-required-crap.qapi renamed from tests/qapi-schema/pragma-doc-required-crap.json +0 -0
tests/qapi-schema/pragma-extra-junk.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/pragma-extra-junk.json:3: Invalid 'pragma' directive +tests/qapi-schema/pragma-extra-junk.qapi:3: Invalid 'pragma' directive
tests/qapi-schema/pragma-extra-junk.qapi renamed from tests/qapi-schema/pragma-extra-junk.json +0 -0
tests/qapi-schema/pragma-name-case-whitelist-crap.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/pragma-name-case-whitelist-crap.json:3: Pragma name-case-whitelist must be a list of strings +tests/qapi-schema/pragma-name-case-whitelist-crap.qapi:3: Pragma name-case-whitelist must be a list of strings
tests/qapi-schema/pragma-name-case-whitelist-crap.qapi renamed from tests/qapi-schema/pragma-name-case-whitelist-crap.json +0 -0
tests/qapi-schema/pragma-non-dict.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/pragma-non-dict.json:3: Value of 'pragma' must be a dictionary +tests/qapi-schema/pragma-non-dict.qapi:3: Value of 'pragma' must be a dictionary
tests/qapi-schema/pragma-non-dict.qapi renamed from tests/qapi-schema/pragma-non-dict.json +0 -0
tests/qapi-schema/pragma-returns-whitelist-crap.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/pragma-returns-whitelist-crap.json:3: Pragma returns-whitelist must be a list of strings +tests/qapi-schema/pragma-returns-whitelist-crap.qapi:3: Pragma returns-whitelist must be a list of strings
tests/qapi-schema/pragma-returns-whitelist-crap.qapi renamed from tests/qapi-schema/pragma-returns-whitelist-crap.json +0 -0
tests/qapi-schema/qapi-schema-test.qapi renamed from tests/qapi-schema/qapi-schema-test.json +0 -0
tests/qapi-schema/quoted-structural-chars.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/quoted-structural-chars.json:1:1: Expected "{" +tests/qapi-schema/quoted-structural-chars.qapi:1:1: Expected "{"
tests/qapi-schema/quoted-structural-chars.qapi renamed from tests/qapi-schema/quoted-structural-chars.json +0 -0
tests/qapi-schema/redefined-builtin.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/redefined-builtin.json:2: built-in 'size' is already defined +tests/qapi-schema/redefined-builtin.qapi:2: built-in 'size' is already defined
tests/qapi-schema/redefined-builtin.qapi renamed from tests/qapi-schema/redefined-builtin.json +0 -0
tests/qapi-schema/redefined-command.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/redefined-command.json:3: command 'foo' is already defined +tests/qapi-schema/redefined-command.qapi:3: command 'foo' is already defined
tests/qapi-schema/redefined-command.qapi renamed from tests/qapi-schema/redefined-command.json +0 -0
tests/qapi-schema/redefined-event.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/redefined-event.json:3: event 'EVENT_A' is already defined +tests/qapi-schema/redefined-event.qapi:3: event 'EVENT_A' is already defined
tests/qapi-schema/redefined-event.qapi renamed from tests/qapi-schema/redefined-event.json +0 -0
tests/qapi-schema/redefined-type.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/redefined-type.json:3: struct 'foo' is already defined +tests/qapi-schema/redefined-type.qapi:3: struct 'foo' is already defined
tests/qapi-schema/redefined-type.qapi renamed from tests/qapi-schema/redefined-type.json +0 -0
tests/qapi-schema/reserved-command-q.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-command-q.json:5: 'command' uses invalid name 'q-unix' +tests/qapi-schema/reserved-command-q.qapi:5: 'command' uses invalid name 'q-unix'
tests/qapi-schema/reserved-command-q.qapi renamed from tests/qapi-schema/reserved-command-q.json +0 -0
tests/qapi-schema/reserved-enum-q.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-enum-q.json:4: Member of enum 'Foo' uses invalid name 'q-Unix' +tests/qapi-schema/reserved-enum-q.qapi:4: Member of enum 'Foo' uses invalid name 'q-Unix'
tests/qapi-schema/reserved-enum-q.qapi renamed from tests/qapi-schema/reserved-enum-q.json +0 -0
tests/qapi-schema/reserved-member-has.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-member-has.json:5: Member of 'data' for command 'oops' uses reserved name 'has-a' +tests/qapi-schema/reserved-member-has.qapi:5: Member of 'data' for command 'oops' uses reserved name 'has-a'
tests/qapi-schema/reserved-member-has.qapi renamed from tests/qapi-schema/reserved-member-has.json +0 -0
tests/qapi-schema/reserved-member-q.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-member-q.json:4: Member of 'data' for struct 'Foo' uses invalid name 'q-unix' +tests/qapi-schema/reserved-member-q.qapi:4: Member of 'data' for struct 'Foo' uses invalid name 'q-unix'
tests/qapi-schema/reserved-member-q.qapi renamed from tests/qapi-schema/reserved-member-q.json +0 -0
tests/qapi-schema/reserved-member-u.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-member-u.json:7: Member of 'data' for struct 'Oops' uses reserved name 'u' +tests/qapi-schema/reserved-member-u.qapi:7: Member of 'data' for struct 'Oops' uses reserved name 'u'
tests/qapi-schema/reserved-member-u.qapi renamed from tests/qapi-schema/reserved-member-u.json +0 -0
tests/qapi-schema/reserved-member-underscore.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-member-underscore.json:4: Member of 'data' for struct 'Oops' uses invalid name '_oops' +tests/qapi-schema/reserved-member-underscore.qapi:4: Member of 'data' for struct 'Oops' uses invalid name '_oops'
tests/qapi-schema/reserved-member-underscore.qapi renamed from tests/qapi-schema/reserved-member-underscore.json +0 -0
tests/qapi-schema/reserved-type-kind.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-type-kind.json:2: enum 'UnionKind' should not end in 'Kind' +tests/qapi-schema/reserved-type-kind.qapi:2: enum 'UnionKind' should not end in 'Kind'
tests/qapi-schema/reserved-type-kind.qapi renamed from tests/qapi-schema/reserved-type-kind.json +0 -0
tests/qapi-schema/reserved-type-list.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/reserved-type-list.json:5: struct 'FooList' should not end in 'List' +tests/qapi-schema/reserved-type-list.qapi:5: struct 'FooList' should not end in 'List'
tests/qapi-schema/reserved-type-list.qapi renamed from tests/qapi-schema/reserved-type-list.json +0 -0
tests/qapi-schema/returns-alternate.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/returns-alternate.json:3: 'returns' for command 'oops' cannot use alternate type 'Alt' +tests/qapi-schema/returns-alternate.qapi:3: 'returns' for command 'oops' cannot use alternate type 'Alt'
tests/qapi-schema/returns-alternate.qapi renamed from tests/qapi-schema/returns-alternate.json +0 -0
tests/qapi-schema/returns-array-bad.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/returns-array-bad.json:2: 'returns' for command 'oops': array type must contain single type name +tests/qapi-schema/returns-array-bad.qapi:2: 'returns' for command 'oops': array type must contain single type name
tests/qapi-schema/returns-array-bad.qapi renamed from tests/qapi-schema/returns-array-bad.json +0 -0
tests/qapi-schema/returns-dict.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/returns-dict.json:2: 'returns' for command 'oops' should be a type name +tests/qapi-schema/returns-dict.qapi:2: 'returns' for command 'oops' should be a type name
tests/qapi-schema/returns-dict.qapi renamed from tests/qapi-schema/returns-dict.json +0 -0
tests/qapi-schema/returns-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/returns-unknown.json:2: 'returns' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/returns-unknown.qapi:2: 'returns' for command 'oops' uses unknown type 'NoSuchType'
tests/qapi-schema/returns-unknown.qapi renamed from tests/qapi-schema/returns-unknown.json +0 -0
tests/qapi-schema/returns-whitelist.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/returns-whitelist.json:14: 'returns' for command 'no-way-this-will-get-whitelisted' cannot use built-in type 'int' +tests/qapi-schema/returns-whitelist.qapi:14: 'returns' for command 'no-way-this-will-get-whitelisted' cannot use built-in type 'int'
tests/qapi-schema/returns-whitelist.qapi renamed from tests/qapi-schema/returns-whitelist.json +0 -0
tests/qapi-schema/struct-base-clash-deep.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/struct-base-clash-deep.json:10: 'name' (member of Sub) collides with 'name' (member of Base) +tests/qapi-schema/struct-base-clash-deep.qapi:10: 'name' (member of Sub) collides with 'name' (member of Base)
tests/qapi-schema/struct-base-clash-deep.qapi renamed from tests/qapi-schema/struct-base-clash-deep.json +0 -0
tests/qapi-schema/struct-base-clash.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/struct-base-clash.json:5: 'name' (member of Sub) collides with 'name' (member of Base) +tests/qapi-schema/struct-base-clash.qapi:5: 'name' (member of Sub) collides with 'name' (member of Base)
tests/qapi-schema/struct-base-clash.qapi renamed from tests/qapi-schema/struct-base-clash.json +0 -0
tests/qapi-schema/struct-data-invalid.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/struct-data-invalid.json:1: 'data' for struct 'foo' should be a dictionary or type name +tests/qapi-schema/struct-data-invalid.qapi:1: 'data' for struct 'foo' should be a dictionary or type name
tests/qapi-schema/struct-data-invalid.qapi renamed from tests/qapi-schema/struct-data-invalid.json +0 -0
tests/qapi-schema/struct-member-invalid.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/struct-member-invalid.json:1: Member 'a' of 'data' for struct 'foo' should be a type name +tests/qapi-schema/struct-member-invalid.qapi:1: Member 'a' of 'data' for struct 'foo' should be a type name
tests/qapi-schema/struct-member-invalid.qapi renamed from tests/qapi-schema/struct-member-invalid.json +0 -0
tests/qapi-schema/trailing-comma-list.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/trailing-comma-list.json:2:36: Expected "{", "[", string, boolean or "null" +tests/qapi-schema/trailing-comma-list.qapi:2:36: Expected "{", "[", string, boolean or "null"
tests/qapi-schema/trailing-comma-list.qapi renamed from tests/qapi-schema/trailing-comma-list.json +0 -0
tests/qapi-schema/trailing-comma-object.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/trailing-comma-object.json:2:38: Expected string +tests/qapi-schema/trailing-comma-object.qapi:2:38: Expected string
tests/qapi-schema/trailing-comma-object.qapi renamed from tests/qapi-schema/trailing-comma-object.json +0 -0
tests/qapi-schema/type-bypass-bad-gen.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/type-bypass-bad-gen.json:2: 'gen' of command 'foo' should only use false value +tests/qapi-schema/type-bypass-bad-gen.qapi:2: 'gen' of command 'foo' should only use false value
tests/qapi-schema/type-bypass-bad-gen.qapi renamed from tests/qapi-schema/type-bypass-bad-gen.json +0 -0
tests/qapi-schema/unclosed-list.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unclosed-list.json:1:20: Expected "," or "]" +tests/qapi-schema/unclosed-list.qapi:1:20: Expected "," or "]"
tests/qapi-schema/unclosed-list.qapi renamed from tests/qapi-schema/unclosed-list.json +0 -0
tests/qapi-schema/unclosed-object.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unclosed-object.json:1:21: Expected "," or "}" +tests/qapi-schema/unclosed-object.qapi:1:21: Expected "," or "}"
tests/qapi-schema/unclosed-object.qapi renamed from tests/qapi-schema/unclosed-object.json +0 -0
tests/qapi-schema/unclosed-string.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unclosed-string.json:1:11: Missing terminating "'" +tests/qapi-schema/unclosed-string.qapi:1:11: Missing terminating "'"
tests/qapi-schema/unclosed-string.qapi renamed from tests/qapi-schema/unclosed-string.json +0 -0
tests/qapi-schema/unicode-str.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unicode-str.json:2: 'command' uses invalid name 'é' +tests/qapi-schema/unicode-str.qapi:2: 'command' uses invalid name 'é'
tests/qapi-schema/unicode-str.qapi renamed from tests/qapi-schema/unicode-str.json +0 -0
tests/qapi-schema/union-base-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-base-empty.json:5: Discriminator 'type' is not a member of base struct 'Empty' +tests/qapi-schema/union-base-empty.qapi:5: Discriminator 'type' is not a member of base struct 'Empty'
tests/qapi-schema/union-base-empty.qapi renamed from tests/qapi-schema/union-base-empty.json +0 -0
tests/qapi-schema/union-base-no-discriminator.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-base-no-discriminator.json:11: Simple union 'TestUnion' must not have a base +tests/qapi-schema/union-base-no-discriminator.qapi:11: Simple union 'TestUnion' must not have a base
tests/qapi-schema/union-base-no-discriminator.qapi renamed from tests/qapi-schema/union-base-no-discriminator.json +0 -0
tests/qapi-schema/union-branch-case.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-branch-case.json:2: 'Branch' (branch of NoWayThisWillGetWhitelisted) should not use uppercase +tests/qapi-schema/union-branch-case.qapi:2: 'Branch' (branch of NoWayThisWillGetWhitelisted) should not use uppercase
tests/qapi-schema/union-branch-case.qapi renamed from tests/qapi-schema/union-branch-case.json +0 -0
tests/qapi-schema/union-clash-branches.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-clash-branches.json:4: 'a_b' (branch of TestUnion) collides with 'a-b' (branch of TestUnion) +tests/qapi-schema/union-clash-branches.qapi:4: 'a_b' (branch of TestUnion) collides with 'a-b' (branch of TestUnion)
tests/qapi-schema/union-clash-branches.qapi renamed from tests/qapi-schema/union-clash-branches.json +0 -0
tests/qapi-schema/union-empty.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-empty.json:2: Union 'Union' cannot have empty 'data' +tests/qapi-schema/union-empty.qapi:2: Union 'Union' cannot have empty 'data'
tests/qapi-schema/union-empty.qapi renamed from tests/qapi-schema/union-empty.json +0 -0
tests/qapi-schema/union-invalid-base.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-invalid-base.json:8: 'base' for union 'TestUnion' cannot use built-in type 'int' +tests/qapi-schema/union-invalid-base.qapi:8: 'base' for union 'TestUnion' cannot use built-in type 'int'
tests/qapi-schema/union-invalid-base.qapi renamed from tests/qapi-schema/union-invalid-base.json +0 -0
tests/qapi-schema/union-optional-branch.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-optional-branch.json:2: Member of union 'Union' does not allow optional name '*a' +tests/qapi-schema/union-optional-branch.qapi:2: Member of union 'Union' does not allow optional name '*a'
tests/qapi-schema/union-optional-branch.qapi renamed from tests/qapi-schema/union-optional-branch.json +0 -0
tests/qapi-schema/union-unknown.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/union-unknown.json:2: Member 'unknown' of union 'Union' uses unknown type 'MissingType' +tests/qapi-schema/union-unknown.qapi:2: Member 'unknown' of union 'Union' uses unknown type 'MissingType'
tests/qapi-schema/union-unknown.qapi renamed from tests/qapi-schema/union-unknown.json +0 -0
tests/qapi-schema/unknown-escape.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unknown-escape.json:3:21: Unknown escape \x +tests/qapi-schema/unknown-escape.qapi:3:21: Unknown escape \x
tests/qapi-schema/unknown-escape.qapi renamed from tests/qapi-schema/unknown-escape.json +0 -0
tests/qapi-schema/unknown-expr-key.err +1 -1
@@ -1 +1 @@ -tests/qapi-schema/unknown-expr-key.json:2: Unknown key 'bogus' in struct 'bar' +tests/qapi-schema/unknown-expr-key.qapi:2: Unknown key 'bogus' in struct 'bar'
tests/qapi-schema/unknown-expr-key.qapi renamed from tests/qapi-schema/unknown-expr-key.json +0 -0
Signature · 1 line
2.14.3
Re: [Qemu-devel] [PATCH 3/3] qapi: Rename .json to .qapi
Quoted 8 lines · Eric Blake
Our QAPI input files aren't quite true JSON (comments being the obvious difference); naming things .json doesn't make that obvious. Use a new suffix .qapi that makes it easy to identify our files.
This change is mostly mechanical, but it is not just a global search-and-replace as some instances of '.json' really do refer to JSON files, or to a URL that can't change, and so on.
Quoted 5 lines
Signed-off-by Eric Blake <[email protected]>---
I'd also like help figuring out how to make .dir-locals.el give an automatic sane mode to all .qapi files
Stuff I'm reading the suggests the only way to achieve that is to use 'eval' which is considered unsafe for .dir-locals.el. As a result the user will get prompted to allow the "eval" to run when emacs starts which is unpleasant :-(
Alternatively though, just add "-*- json -*-" in a comment in the first line of the file
Quoted 3,536 lines
docs/devel/blkdebug.txt | 2 +- docs/devel/qapi-code-gen.txt | 16 +- docs/devel/testing.rst | 4 +- docs/devel/writing-qmp-commands.txt | 8 +- docs/interop/live-block-operations.rst | 4 +- docs/interop/qmp-intro.txt | 2 +- Makefile | 36 +-- Makefile.objs | 2 +- qapi/{block-core.json => block-core.qapi} | 6 +- qapi/{block.json => block.qapi} | 2 +- qapi/{char.json => char.qapi} | 2 +- qapi/{common.json => common.qapi} | 0 qapi/{crypto.json => crypto.qapi} | 0 qapi/{introspect.json => introspect.qapi} | 0 qapi/{migration.json => migration.qapi} | 2 +- qapi/{net.json => net.qapi} | 2 +- qapi/{qga-schema.json => qga-schema.qapi} | 0 qapi/{qmp-schema.json => qmp-schema.qapi} | 30 +- qapi/{rocker.json => rocker.qapi} | 0 qapi/{run-state.json => run-state.qapi} | 0 qapi/{sockets.json => sockets.qapi} | 2 +- qapi/{tpm.json => tpm.qapi} | 0 qapi/{trace.json => trace.qapi} | 0 qapi/{transaction.json => transaction.qapi} | 2 +- qapi/{ui.json => ui.qapi} | 2 +- include/crypto/block.h | 2 +- include/crypto/cipher.h | 2 +- include/crypto/hash.h | 2 +- include/crypto/ivgen.h | 2 +- MAINTAINERS | 26 +- scripts/git.orderfile | 2 +- tests/Makefile.include | 342 ++++++++++----------- tests/qapi-schema/alternate-any.err | 2 +- .../{alternate-any.json => alternate-any.qapi} | 0 tests/qapi-schema/alternate-array.err | 2 +- .../{alternate-array.json => alternate-array.qapi} | 0 tests/qapi-schema/alternate-base.err | 2 +- .../{alternate-base.json => alternate-base.qapi} | 0 tests/qapi-schema/alternate-clash.err | 2 +- .../{alternate-clash.json => alternate-clash.qapi} | 0 .../qapi-schema/alternate-conflict-bool-string.err | 2 +- ...ng.json => alternate-conflict-bool-string.qapi} | 0 tests/qapi-schema/alternate-conflict-dict.err | 2 +- ...lict-dict.json => alternate-conflict-dict.qapi} | 0 tests/qapi-schema/alternate-conflict-enum-bool.err | 2 +- ...bool.json => alternate-conflict-enum-bool.qapi} | 0 tests/qapi-schema/alternate-conflict-enum-int.err | 2 +- ...m-int.json => alternate-conflict-enum-int.qapi} | 0 .../qapi-schema/alternate-conflict-num-string.err | 2 +- ...ing.json => alternate-conflict-num-string.qapi} | 0 tests/qapi-schema/alternate-conflict-string.err | 2 +- ...-string.json => alternate-conflict-string.qapi} | 0 tests/qapi-schema/alternate-empty.err | 2 +- .../{alternate-empty.json => alternate-empty.qapi} | 0 tests/qapi-schema/alternate-nested.err | 2 +- ...alternate-nested.json => alternate-nested.qapi} | 0 tests/qapi-schema/alternate-unknown.err | 2 +- ...ternate-unknown.json => alternate-unknown.qapi} | 0 tests/qapi-schema/args-alternate.err | 2 +- .../{args-alternate.json => args-alternate.qapi} | 0 tests/qapi-schema/args-any.err | 2 +- tests/qapi-schema/{args-any.json => args-any.qapi} | 0 tests/qapi-schema/args-array-empty.err | 2 +- ...args-array-empty.json => args-array-empty.qapi} | 0 tests/qapi-schema/args-array-unknown.err | 2 +- ...-array-unknown.json => args-array-unknown.qapi} | 0 tests/qapi-schema/args-bad-boxed.err | 2 +- .../{args-bad-boxed.json => args-bad-boxed.qapi} | 0 tests/qapi-schema/args-boxed-anon.err | 2 +- .../{args-boxed-anon.json => args-boxed-anon.qapi} | 0 tests/qapi-schema/args-boxed-empty.err | 2 +- ...args-boxed-empty.json => args-boxed-empty.qapi} | 0 tests/qapi-schema/args-boxed-string.err | 2 +- ...gs-boxed-string.json => args-boxed-string.qapi} | 0 tests/qapi-schema/args-int.err | 2 +- tests/qapi-schema/{args-int.json => args-int.qapi} | 0 tests/qapi-schema/args-invalid.err | 2 +- .../{args-invalid.json => args-invalid.qapi} | 0 tests/qapi-schema/args-member-array-bad.err | 2 +- ...r-array-bad.json => args-member-array-bad.qapi} | 0 tests/qapi-schema/args-member-case.err | 2 +- ...args-member-case.json => args-member-case.qapi} | 0 tests/qapi-schema/args-member-unknown.err | 2 +- ...ember-unknown.json => args-member-unknown.qapi} | 0 tests/qapi-schema/args-name-clash.err | 2 +- .../{args-name-clash.json => args-name-clash.qapi} | 0 tests/qapi-schema/args-union.err | 2 +- .../{args-union.json => args-union.qapi} | 0 tests/qapi-schema/args-unknown.err | 2 +- .../{args-unknown.json => args-unknown.qapi} | 0 tests/qapi-schema/bad-base.err | 2 +- tests/qapi-schema/{bad-base.json => bad-base.qapi} | 0 tests/qapi-schema/bad-data.err | 2 +- tests/qapi-schema/{bad-data.json => bad-data.qapi} | 0 tests/qapi-schema/bad-ident.err | 2 +- .../qapi-schema/{bad-ident.json => bad-ident.qapi} | 0 tests/qapi-schema/bad-type-bool.err | 2 +- .../{bad-type-bool.json => bad-type-bool.qapi} | 0 tests/qapi-schema/bad-type-dict.err | 2 +- .../{bad-type-dict.json => bad-type-dict.qapi} | 0 tests/qapi-schema/bad-type-int.err | 2 +- .../{bad-type-int.json => bad-type-int.qapi} | 0 tests/qapi-schema/base-cycle-direct.err | 2 +- ...se-cycle-direct.json => base-cycle-direct.qapi} | 0 tests/qapi-schema/base-cycle-indirect.err | 2 +- ...ycle-indirect.json => base-cycle-indirect.qapi} | 0 tests/qapi-schema/command-int.err | 2 +- .../{command-int.json => command-int.qapi} | 0 tests/qapi-schema/{comments.json => comments.qapi} | 0 tests/qapi-schema/doc-bad-alternate-member.err | 2 +- ...e-member.json => doc-bad-alternate-member.qapi} | 0 tests/qapi-schema/doc-bad-command-arg.err | 2 +- ...d-command-arg.json => doc-bad-command-arg.qapi} | 0 .../{doc-bad-section.json => doc-bad-section.qapi} | 0 tests/qapi-schema/doc-bad-symbol.err | 2 +- .../{doc-bad-symbol.json => doc-bad-symbol.qapi} | 0 tests/qapi-schema/doc-bad-union-member.err | 2 +- ...union-member.json => doc-bad-union-member.qapi} | 0 tests/qapi-schema/doc-before-include.err | 2 +- ...before-include.json => doc-before-include.qapi} | 2 +- tests/qapi-schema/doc-before-pragma.err | 2 +- ...c-before-pragma.json => doc-before-pragma.qapi} | 0 tests/qapi-schema/doc-duplicated-arg.err | 2 +- ...duplicated-arg.json => doc-duplicated-arg.qapi} | 0 tests/qapi-schema/doc-duplicated-return.err | 2 +- ...ated-return.json => doc-duplicated-return.qapi} | 0 tests/qapi-schema/doc-duplicated-since.err | 2 +- ...icated-since.json => doc-duplicated-since.qapi} | 0 tests/qapi-schema/doc-empty-arg.err | 2 +- .../{doc-empty-arg.json => doc-empty-arg.qapi} | 0 tests/qapi-schema/doc-empty-section.err | 2 +- ...c-empty-section.json => doc-empty-section.qapi} | 0 tests/qapi-schema/doc-empty-symbol.err | 2 +- ...doc-empty-symbol.json => doc-empty-symbol.qapi} | 0 tests/qapi-schema/{doc-good.json => doc-good.qapi} | 0 tests/qapi-schema/doc-interleaved-section.err | 2 +- ...d-section.json => doc-interleaved-section.qapi} | 0 tests/qapi-schema/doc-invalid-end.err | 2 +- .../{doc-invalid-end.json => doc-invalid-end.qapi} | 0 tests/qapi-schema/doc-invalid-end2.err | 2 +- ...doc-invalid-end2.json => doc-invalid-end2.qapi} | 0 tests/qapi-schema/doc-invalid-return.err | 2 +- ...invalid-return.json => doc-invalid-return.qapi} | 0 tests/qapi-schema/doc-invalid-section.err | 2 +- ...valid-section.json => doc-invalid-section.qapi} | 0 tests/qapi-schema/doc-invalid-start.err | 2 +- ...c-invalid-start.json => doc-invalid-start.qapi} | 0 tests/qapi-schema/doc-missing-colon.err | 2 +- ...c-missing-colon.json => doc-missing-colon.qapi} | 0 tests/qapi-schema/doc-missing-expr.err | 2 +- ...doc-missing-expr.json => doc-missing-expr.qapi} | 0 tests/qapi-schema/doc-missing-space.err | 2 +- ...c-missing-space.json => doc-missing-space.qapi} | 0 tests/qapi-schema/doc-missing.err | 2 +- .../{doc-missing.json => doc-missing.qapi} | 0 tests/qapi-schema/doc-no-symbol.err | 2 +- .../{doc-no-symbol.json => doc-no-symbol.qapi} | 0 tests/qapi-schema/double-data.err | 2 +- .../{double-data.json => double-data.qapi} | 0 tests/qapi-schema/double-type.err | 2 +- .../{double-type.json => double-type.qapi} | 0 tests/qapi-schema/duplicate-key.err | 2 +- .../{duplicate-key.json => duplicate-key.qapi} | 0 tests/qapi-schema/{empty.json => empty.qapi} | 0 tests/qapi-schema/enum-bad-name.err | 2 +- .../{enum-bad-name.json => enum-bad-name.qapi} | 0 tests/qapi-schema/enum-bad-prefix.err | 2 +- .../{enum-bad-prefix.json => enum-bad-prefix.qapi} | 0 tests/qapi-schema/enum-clash-member.err | 2 +- ...um-clash-member.json => enum-clash-member.qapi} | 0 tests/qapi-schema/enum-dict-member.err | 2 +- ...enum-dict-member.json => enum-dict-member.qapi} | 0 tests/qapi-schema/enum-int-member.err | 2 +- .../{enum-int-member.json => enum-int-member.qapi} | 0 tests/qapi-schema/enum-member-case.err | 2 +- ...enum-member-case.json => enum-member-case.qapi} | 0 tests/qapi-schema/enum-missing-data.err | 2 +- ...um-missing-data.json => enum-missing-data.qapi} | 0 tests/qapi-schema/enum-wrong-data.err | 2 +- .../{enum-wrong-data.json => enum-wrong-data.qapi} | 0 tests/qapi-schema/escape-outside-string.err | 2 +- ...side-string.json => escape-outside-string.qapi} | 0 tests/qapi-schema/escape-too-big.err | 2 +- .../{escape-too-big.json => escape-too-big.qapi} | 0 tests/qapi-schema/escape-too-short.err | 2 +- ...escape-too-short.json => escape-too-short.qapi} | 0 tests/qapi-schema/event-boxed-empty.err | 2 +- ...ent-boxed-empty.json => event-boxed-empty.qapi} | 0 .../{event-case.json => event-case.qapi} | 0 tests/qapi-schema/event-nest-struct.err | 2 +- ...ent-nest-struct.json => event-nest-struct.qapi} | 0 tests/qapi-schema/flat-union-array-branch.err | 2 +- ...ay-branch.json => flat-union-array-branch.qapi} | 0 tests/qapi-schema/flat-union-bad-base.err | 2 +- ...nion-bad-base.json => flat-union-bad-base.qapi} | 0 tests/qapi-schema/flat-union-bad-discriminator.err | 2 +- ...ator.json => flat-union-bad-discriminator.qapi} | 0 tests/qapi-schema/flat-union-base-any.err | 2 +- ...nion-base-any.json => flat-union-base-any.qapi} | 0 tests/qapi-schema/flat-union-base-union.err | 2 +- ...-base-union.json => flat-union-base-union.qapi} | 0 tests/qapi-schema/flat-union-clash-member.err | 2 +- ...sh-member.json => flat-union-clash-member.qapi} | 0 tests/qapi-schema/flat-union-empty.err | 2 +- ...flat-union-empty.json => flat-union-empty.qapi} | 0 tests/qapi-schema/flat-union-incomplete-branch.err | 2 +- ...anch.json => flat-union-incomplete-branch.qapi} | 0 tests/qapi-schema/flat-union-inline.err | 2 +- ...at-union-inline.json => flat-union-inline.qapi} | 0 tests/qapi-schema/flat-union-int-branch.err | 2 +- ...-int-branch.json => flat-union-int-branch.qapi} | 0 .../qapi-schema/flat-union-invalid-branch-key.err | 2 +- ...key.json => flat-union-invalid-branch-key.qapi} | 0 .../flat-union-invalid-discriminator.err | 2 +- ....json => flat-union-invalid-discriminator.qapi} | 0 tests/qapi-schema/flat-union-no-base.err | 2 +- ...-union-no-base.json => flat-union-no-base.qapi} | 0 .../flat-union-optional-discriminator.err | 2 +- ...json => flat-union-optional-discriminator.qapi} | 0 .../flat-union-string-discriminator.err | 2 +- ...r.json => flat-union-string-discriminator.qapi} | 0 tests/qapi-schema/funny-char.err | 2 +- .../{funny-char.json => funny-char.qapi} | 0 ...ent-with-escape.json => ident-with-escape.qapi} | 0 tests/qapi-schema/include-before-err.err | 2 +- tests/qapi-schema/include-before-err.json | 2 - tests/qapi-schema/include-before-err.qapi | 2 + tests/qapi-schema/include-cycle-b.json | 1 - tests/qapi-schema/include-cycle-b.qapi | 1 + tests/qapi-schema/include-cycle-c.json | 1 - tests/qapi-schema/include-cycle-c.qapi | 1 + tests/qapi-schema/include-cycle.err | 6 +- tests/qapi-schema/include-cycle.json | 1 - tests/qapi-schema/include-cycle.qapi | 1 + tests/qapi-schema/include-extra-junk.err | 2 +- tests/qapi-schema/include-extra-junk.json | 3 - tests/qapi-schema/include-extra-junk.qapi | 3 + tests/qapi-schema/include-format-err.err | 2 +- tests/qapi-schema/include-format-err.json | 2 - tests/qapi-schema/include-format-err.qapi | 2 + tests/qapi-schema/include-nested-err.err | 4 +- tests/qapi-schema/include-nested-err.json | 1 - tests/qapi-schema/include-nested-err.qapi | 1 + tests/qapi-schema/include-no-file.err | 2 +- tests/qapi-schema/include-no-file.json | 1 - tests/qapi-schema/include-no-file.qapi | 1 + tests/qapi-schema/include-non-file.err | 2 +- ...include-non-file.json => include-non-file.qapi} | 0 ...e-relpath-sub.json => include-relpath-sub.qapi} | 0 tests/qapi-schema/include-relpath.json | 1 - tests/qapi-schema/include-relpath.qapi | 1 + tests/qapi-schema/include-repetition-sub.json | 2 - tests/qapi-schema/include-repetition-sub.qapi | 2 + tests/qapi-schema/include-repetition.json | 3 - tests/qapi-schema/include-repetition.qapi | 3 + tests/qapi-schema/include-self-cycle.err | 2 +- tests/qapi-schema/include-self-cycle.json | 1 - tests/qapi-schema/include-self-cycle.qapi | 1 + ...ude-simple-sub.json => include-simple-sub.qapi} | 0 tests/qapi-schema/include-simple.json | 1 - tests/qapi-schema/include-simple.qapi | 1 + tests/qapi-schema/include/relpath.json | 1 - tests/qapi-schema/include/relpath.qapi | 1 + .../{indented-expr.json => indented-expr.qapi} | 0 tests/qapi-schema/leading-comma-list.err | 2 +- ...ing-comma-list.json => leading-comma-list.qapi} | 0 tests/qapi-schema/leading-comma-object.err | 2 +- ...comma-object.json => leading-comma-object.qapi} | 0 tests/qapi-schema/missing-colon.err | 2 +- .../{missing-colon.json => missing-colon.qapi} | 0 tests/qapi-schema/missing-comma-list.err | 2 +- ...ing-comma-list.json => missing-comma-list.qapi} | 0 tests/qapi-schema/missing-comma-object.err | 2 +- ...comma-object.json => missing-comma-object.qapi} | 0 tests/qapi-schema/missing-type.err | 2 +- .../{missing-type.json => missing-type.qapi} | 0 tests/qapi-schema/nested-struct-data.err | 2 +- ...ed-struct-data.json => nested-struct-data.qapi} | 0 tests/qapi-schema/non-objects.err | 2 +- .../{non-objects.json => non-objects.qapi} | 0 tests/qapi-schema/pragma-doc-required-crap.err | 2 +- ...red-crap.json => pragma-doc-required-crap.qapi} | 0 tests/qapi-schema/pragma-extra-junk.err | 2 +- ...agma-extra-junk.json => pragma-extra-junk.qapi} | 0 .../pragma-name-case-whitelist-crap.err | 2 +- ...p.json => pragma-name-case-whitelist-crap.qapi} | 0 tests/qapi-schema/pragma-non-dict.err | 2 +- .../{pragma-non-dict.json => pragma-non-dict.qapi} | 0 .../qapi-schema/pragma-returns-whitelist-crap.err | 2 +- ...rap.json => pragma-returns-whitelist-crap.qapi} | 0 ...qapi-schema-test.json => qapi-schema-test.qapi} | 0 tests/qapi-schema/quoted-structural-chars.err | 2 +- ...ral-chars.json => quoted-structural-chars.qapi} | 0 tests/qapi-schema/redefined-builtin.err | 2 +- ...defined-builtin.json => redefined-builtin.qapi} | 0 tests/qapi-schema/redefined-command.err | 2 +- ...defined-command.json => redefined-command.qapi} | 0 tests/qapi-schema/redefined-event.err | 2 +- .../{redefined-event.json => redefined-event.qapi} | 0 tests/qapi-schema/redefined-type.err | 2 +- .../{redefined-type.json => redefined-type.qapi} | 0 tests/qapi-schema/reserved-command-q.err | 2 +- ...rved-command-q.json => reserved-command-q.qapi} | 0 tests/qapi-schema/reserved-enum-q.err | 2 +- .../{reserved-enum-q.json => reserved-enum-q.qapi} | 0 tests/qapi-schema/reserved-member-has.err | 2 +- ...ed-member-has.json => reserved-member-has.qapi} | 0 tests/qapi-schema/reserved-member-q.err | 2 +- ...served-member-q.json => reserved-member-q.qapi} | 0 tests/qapi-schema/reserved-member-u.err | 2 +- ...served-member-u.json => reserved-member-u.qapi} | 0 tests/qapi-schema/reserved-member-underscore.err | 2 +- ...rscore.json => reserved-member-underscore.qapi} | 0 tests/qapi-schema/reserved-type-kind.err | 2 +- ...rved-type-kind.json => reserved-type-kind.qapi} | 0 tests/qapi-schema/reserved-type-list.err | 2 +- ...rved-type-list.json => reserved-type-list.qapi} | 0 tests/qapi-schema/returns-alternate.err | 2 +- ...turns-alternate.json => returns-alternate.qapi} | 0 tests/qapi-schema/returns-array-bad.err | 2 +- ...turns-array-bad.json => returns-array-bad.qapi} | 0 tests/qapi-schema/returns-dict.err | 2 +- .../{returns-dict.json => returns-dict.qapi} | 0 tests/qapi-schema/returns-unknown.err | 2 +- .../{returns-unknown.json => returns-unknown.qapi} | 0 tests/qapi-schema/returns-whitelist.err | 2 +- ...turns-whitelist.json => returns-whitelist.qapi} | 0 tests/qapi-schema/struct-base-clash-deep.err | 2 +- ...clash-deep.json => struct-base-clash-deep.qapi} | 0 tests/qapi-schema/struct-base-clash.err | 2 +- ...ruct-base-clash.json => struct-base-clash.qapi} | 0 tests/qapi-schema/struct-data-invalid.err | 2 +- ...-data-invalid.json => struct-data-invalid.qapi} | 0 tests/qapi-schema/struct-member-invalid.err | 2 +- ...ber-invalid.json => struct-member-invalid.qapi} | 0 tests/qapi-schema/trailing-comma-list.err | 2 +- ...ng-comma-list.json => trailing-comma-list.qapi} | 0 tests/qapi-schema/trailing-comma-object.err | 2 +- ...omma-object.json => trailing-comma-object.qapi} | 0 tests/qapi-schema/type-bypass-bad-gen.err | 2 +- ...ypass-bad-gen.json => type-bypass-bad-gen.qapi} | 0 tests/qapi-schema/unclosed-list.err | 2 +- .../{unclosed-list.json => unclosed-list.qapi} | 0 tests/qapi-schema/unclosed-object.err | 2 +- .../{unclosed-object.json => unclosed-object.qapi} | 0 tests/qapi-schema/unclosed-string.err | 2 +- .../{unclosed-string.json => unclosed-string.qapi} | 0 tests/qapi-schema/unicode-str.err | 2 +- .../{unicode-str.json => unicode-str.qapi} | 0 tests/qapi-schema/union-base-empty.err | 2 +- ...union-base-empty.json => union-base-empty.qapi} | 0 tests/qapi-schema/union-base-no-discriminator.err | 2 +- ...nator.json => union-base-no-discriminator.qapi} | 0 tests/qapi-schema/union-branch-case.err | 2 +- ...ion-branch-case.json => union-branch-case.qapi} | 0 tests/qapi-schema/union-clash-branches.err | 2 +- ...ash-branches.json => union-clash-branches.qapi} | 0 tests/qapi-schema/union-empty.err | 2 +- .../{union-empty.json => union-empty.qapi} | 0 tests/qapi-schema/union-invalid-base.err | 2 +- ...n-invalid-base.json => union-invalid-base.qapi} | 0 tests/qapi-schema/union-optional-branch.err | 2 +- ...onal-branch.json => union-optional-branch.qapi} | 0 tests/qapi-schema/union-unknown.err | 2 +- .../{union-unknown.json => union-unknown.qapi} | 0 tests/qapi-schema/unknown-escape.err | 2 +- .../{unknown-escape.json => unknown-escape.qapi} | 0 tests/qapi-schema/unknown-expr-key.err | 2 +- ...unknown-expr-key.json => unknown-expr-key.qapi} | 0 369 files changed, 429 insertions(+), 429 deletions(-) rename qapi/{block-core.json => block-core.qapi} (99%) rename qapi/{block.json => block.qapi} (99%) rename qapi/{char.json => char.qapi} (99%) rename qapi/{common.json => common.qapi} (100%) rename qapi/{crypto.json => crypto.qapi} (100%) rename qapi/{introspect.json => introspect.qapi} (100%) rename qapi/{migration.json => migration.qapi} (99%) rename qapi/{net.json => net.qapi} (99%) rename qapi/{qga-schema.json => qga-schema.qapi} (100%) rename qapi/{qmp-schema.json => qmp-schema.qapi} (99%) rename qapi/{rocker.json => rocker.qapi} (100%) rename qapi/{run-state.json => run-state.qapi} (100%) rename qapi/{sockets.json => sockets.qapi} (99%) rename qapi/{tpm.json => tpm.qapi} (100%) rename qapi/{trace.json => trace.qapi} (100%) rename qapi/{transaction.json => transaction.qapi} (99%) rename qapi/{ui.json => ui.qapi} (99%) rename tests/qapi-schema/{alternate-any.json => alternate-any.qapi} (100%) rename tests/qapi-schema/{alternate-array.json => alternate-array.qapi} (100%) rename tests/qapi-schema/{alternate-base.json => alternate-base.qapi} (100%) rename tests/qapi-schema/{alternate-clash.json => alternate-clash.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-bool-string.json => alternate-conflict-bool-string.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-dict.json => alternate-conflict-dict.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-enum-bool.json => alternate-conflict-enum-bool.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-enum-int.json => alternate-conflict-enum-int.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-num-string.json => alternate-conflict-num-string.qapi} (100%) rename tests/qapi-schema/{alternate-conflict-string.json => alternate-conflict-string.qapi} (100%) rename tests/qapi-schema/{alternate-empty.json => alternate-empty.qapi} (100%) rename tests/qapi-schema/{alternate-nested.json => alternate-nested.qapi} (100%) rename tests/qapi-schema/{alternate-unknown.json => alternate-unknown.qapi} (100%) rename tests/qapi-schema/{args-alternate.json => args-alternate.qapi} (100%) rename tests/qapi-schema/{args-any.json => args-any.qapi} (100%) rename tests/qapi-schema/{args-array-empty.json => args-array-empty.qapi} (100%) rename tests/qapi-schema/{args-array-unknown.json => args-array-unknown.qapi} (100%) rename tests/qapi-schema/{args-bad-boxed.json => args-bad-boxed.qapi} (100%) rename tests/qapi-schema/{args-boxed-anon.json => args-boxed-anon.qapi} (100%) rename tests/qapi-schema/{args-boxed-empty.json => args-boxed-empty.qapi} (100%) rename tests/qapi-schema/{args-boxed-string.json => args-boxed-string.qapi} (100%) rename tests/qapi-schema/{args-int.json => args-int.qapi} (100%) rename tests/qapi-schema/{args-invalid.json => args-invalid.qapi} (100%) rename tests/qapi-schema/{args-member-array-bad.json => args-member-array-bad.qapi} (100%) rename tests/qapi-schema/{args-member-case.json => args-member-case.qapi} (100%) rename tests/qapi-schema/{args-member-unknown.json => args-member-unknown.qapi} (100%) rename tests/qapi-schema/{args-name-clash.json => args-name-clash.qapi} (100%) rename tests/qapi-schema/{args-union.json => args-union.qapi} (100%) rename tests/qapi-schema/{args-unknown.json => args-unknown.qapi} (100%) rename tests/qapi-schema/{bad-base.json => bad-base.qapi} (100%) rename tests/qapi-schema/{bad-data.json => bad-data.qapi} (100%) rename tests/qapi-schema/{bad-ident.json => bad-ident.qapi} (100%) rename tests/qapi-schema/{bad-type-bool.json => bad-type-bool.qapi} (100%) rename tests/qapi-schema/{bad-type-dict.json => bad-type-dict.qapi} (100%) rename tests/qapi-schema/{bad-type-int.json => bad-type-int.qapi} (100%) rename tests/qapi-schema/{base-cycle-direct.json => base-cycle-direct.qapi} (100%) rename tests/qapi-schema/{base-cycle-indirect.json => base-cycle-indirect.qapi} (100%) rename tests/qapi-schema/{command-int.json => command-int.qapi} (100%) rename tests/qapi-schema/{comments.json => comments.qapi} (100%) rename tests/qapi-schema/{doc-bad-alternate-member.json => doc-bad-alternate-member.qapi} (100%) rename tests/qapi-schema/{doc-bad-command-arg.json => doc-bad-command-arg.qapi} (100%) rename tests/qapi-schema/{doc-bad-section.json => doc-bad-section.qapi} (100%) rename tests/qapi-schema/{doc-bad-symbol.json => doc-bad-symbol.qapi} (100%) rename tests/qapi-schema/{doc-bad-union-member.json => doc-bad-union-member.qapi} (100%) rename tests/qapi-schema/{doc-before-include.json => doc-before-include.qapi} (81%) rename tests/qapi-schema/{doc-before-pragma.json => doc-before-pragma.qapi} (100%) rename tests/qapi-schema/{doc-duplicated-arg.json => doc-duplicated-arg.qapi} (100%) rename tests/qapi-schema/{doc-duplicated-return.json => doc-duplicated-return.qapi} (100%) rename tests/qapi-schema/{doc-duplicated-since.json => doc-duplicated-since.qapi} (100%) rename tests/qapi-schema/{doc-empty-arg.json => doc-empty-arg.qapi} (100%) rename tests/qapi-schema/{doc-empty-section.json => doc-empty-section.qapi} (100%) rename tests/qapi-schema/{doc-empty-symbol.json => doc-empty-symbol.qapi} (100%) rename tests/qapi-schema/{doc-good.json => doc-good.qapi} (100%) rename tests/qapi-schema/{doc-interleaved-section.json => doc-interleaved-section.qapi} (100%) rename tests/qapi-schema/{doc-invalid-end.json => doc-invalid-end.qapi} (100%) rename tests/qapi-schema/{doc-invalid-end2.json => doc-invalid-end2.qapi} (100%) rename tests/qapi-schema/{doc-invalid-return.json => doc-invalid-return.qapi} (100%) rename tests/qapi-schema/{doc-invalid-section.json => doc-invalid-section.qapi} (100%) rename tests/qapi-schema/{doc-invalid-start.json => doc-invalid-start.qapi} (100%) rename tests/qapi-schema/{doc-missing-colon.json => doc-missing-colon.qapi} (100%) rename tests/qapi-schema/{doc-missing-expr.json => doc-missing-expr.qapi} (100%) rename tests/qapi-schema/{doc-missing-space.json => doc-missing-space.qapi} (100%) rename tests/qapi-schema/{doc-missing.json => doc-missing.qapi} (100%) rename tests/qapi-schema/{doc-no-symbol.json => doc-no-symbol.qapi} (100%) rename tests/qapi-schema/{double-data.json => double-data.qapi} (100%) rename tests/qapi-schema/{double-type.json => double-type.qapi} (100%) rename tests/qapi-schema/{duplicate-key.json => duplicate-key.qapi} (100%) rename tests/qapi-schema/{empty.json => empty.qapi} (100%) rename tests/qapi-schema/{enum-bad-name.json => enum-bad-name.qapi} (100%) rename tests/qapi-schema/{enum-bad-prefix.json => enum-bad-prefix.qapi} (100%) rename tests/qapi-schema/{enum-clash-member.json => enum-clash-member.qapi} (100%) rename tests/qapi-schema/{enum-dict-member.json => enum-dict-member.qapi} (100%) rename tests/qapi-schema/{enum-int-member.json => enum-int-member.qapi} (100%) rename tests/qapi-schema/{enum-member-case.json => enum-member-case.qapi} (100%) rename tests/qapi-schema/{enum-missing-data.json => enum-missing-data.qapi} (100%) rename tests/qapi-schema/{enum-wrong-data.json => enum-wrong-data.qapi} (100%) rename tests/qapi-schema/{escape-outside-string.json => escape-outside-string.qapi} (100%) rename tests/qapi-schema/{escape-too-big.json => escape-too-big.qapi} (100%) rename tests/qapi-schema/{escape-too-short.json => escape-too-short.qapi} (100%) rename tests/qapi-schema/{event-boxed-empty.json => event-boxed-empty.qapi} (100%) rename tests/qapi-schema/{event-case.json => event-case.qapi} (100%) rename tests/qapi-schema/{event-nest-struct.json => event-nest-struct.qapi} (100%) rename tests/qapi-schema/{flat-union-array-branch.json => flat-union-array-branch.qapi} (100%) rename tests/qapi-schema/{flat-union-bad-base.json => flat-union-bad-base.qapi} (100%) rename tests/qapi-schema/{flat-union-bad-discriminator.json => flat-union-bad-discriminator.qapi} (100%) rename tests/qapi-schema/{flat-union-base-any.json => flat-union-base-any.qapi} (100%) rename tests/qapi-schema/{flat-union-base-union.json => flat-union-base-union.qapi} (100%) rename tests/qapi-schema/{flat-union-clash-member.json => flat-union-clash-member.qapi} (100%) rename tests/qapi-schema/{flat-union-empty.json => flat-union-empty.qapi} (100%) rename tests/qapi-schema/{flat-union-incomplete-branch.json => flat-union-incomplete-branch.qapi} (100%) rename tests/qapi-schema/{flat-union-inline.json => flat-union-inline.qapi} (100%) rename tests/qapi-schema/{flat-union-int-branch.json => flat-union-int-branch.qapi} (100%) rename tests/qapi-schema/{flat-union-invalid-branch-key.json => flat-union-invalid-branch-key.qapi} (100%) rename tests/qapi-schema/{flat-union-invalid-discriminator.json => flat-union-invalid-discriminator.qapi} (100%) rename tests/qapi-schema/{flat-union-no-base.json => flat-union-no-base.qapi} (100%) rename tests/qapi-schema/{flat-union-optional-discriminator.json => flat-union-optional-discriminator.qapi} (100%) rename tests/qapi-schema/{flat-union-string-discriminator.json => flat-union-string-discriminator.qapi} (100%) rename tests/qapi-schema/{funny-char.json => funny-char.qapi} (100%) rename tests/qapi-schema/{ident-with-escape.json => ident-with-escape.qapi} (100%) delete mode 100644 tests/qapi-schema/include-before-err.json create mode 100644 tests/qapi-schema/include-before-err.qapi delete mode 100644 tests/qapi-schema/include-cycle-b.json create mode 100644 tests/qapi-schema/include-cycle-b.qapi delete mode 100644 tests/qapi-schema/include-cycle-c.json create mode 100644 tests/qapi-schema/include-cycle-c.qapi delete mode 100644 tests/qapi-schema/include-cycle.json create mode 100644 tests/qapi-schema/include-cycle.qapi delete mode 100644 tests/qapi-schema/include-extra-junk.json create mode 100644 tests/qapi-schema/include-extra-junk.qapi delete mode 100644 tests/qapi-schema/include-format-err.json create mode 100644 tests/qapi-schema/include-format-err.qapi delete mode 100644 tests/qapi-schema/include-nested-err.json create mode 100644 tests/qapi-schema/include-nested-err.qapi delete mode 100644 tests/qapi-schema/include-no-file.json create mode 100644 tests/qapi-schema/include-no-file.qapi rename tests/qapi-schema/{include-non-file.json => include-non-file.qapi} (100%) rename tests/qapi-schema/{include-relpath-sub.json => include-relpath-sub.qapi} (100%) delete mode 100644 tests/qapi-schema/include-relpath.json create mode 100644 tests/qapi-schema/include-relpath.qapi delete mode 100644 tests/qapi-schema/include-repetition-sub.json create mode 100644 tests/qapi-schema/include-repetition-sub.qapi delete mode 100644 tests/qapi-schema/include-repetition.json create mode 100644 tests/qapi-schema/include-repetition.qapi delete mode 100644 tests/qapi-schema/include-self-cycle.json create mode 100644 tests/qapi-schema/include-self-cycle.qapi rename tests/qapi-schema/{include-simple-sub.json => include-simple-sub.qapi} (100%) delete mode 100644 tests/qapi-schema/include-simple.json create mode 100644 tests/qapi-schema/include-simple.qapi delete mode 100644 tests/qapi-schema/include/relpath.json create mode 100644 tests/qapi-schema/include/relpath.qapi rename tests/qapi-schema/{indented-expr.json => indented-expr.qapi} (100%) rename tests/qapi-schema/{leading-comma-list.json => leading-comma-list.qapi} (100%) rename tests/qapi-schema/{leading-comma-object.json => leading-comma-object.qapi} (100%) rename tests/qapi-schema/{missing-colon.json => missing-colon.qapi} (100%) rename tests/qapi-schema/{missing-comma-list.json => missing-comma-list.qapi} (100%) rename tests/qapi-schema/{missing-comma-object.json => missing-comma-object.qapi} (100%) rename tests/qapi-schema/{missing-type.json => missing-type.qapi} (100%) rename tests/qapi-schema/{nested-struct-data.json => nested-struct-data.qapi} (100%) rename tests/qapi-schema/{non-objects.json => non-objects.qapi} (100%) rename tests/qapi-schema/{pragma-doc-required-crap.json => pragma-doc-required-crap.qapi} (100%) rename tests/qapi-schema/{pragma-extra-junk.json => pragma-extra-junk.qapi} (100%) rename tests/qapi-schema/{pragma-name-case-whitelist-crap.json => pragma-name-case-whitelist-crap.qapi} (100%) rename tests/qapi-schema/{pragma-non-dict.json => pragma-non-dict.qapi} (100%) rename tests/qapi-schema/{pragma-returns-whitelist-crap.json => pragma-returns-whitelist-crap.qapi} (100%) rename tests/qapi-schema/{qapi-schema-test.json => qapi-schema-test.qapi} (100%) rename tests/qapi-schema/{quoted-structural-chars.json => quoted-structural-chars.qapi} (100%) rename tests/qapi-schema/{redefined-builtin.json => redefined-builtin.qapi} (100%) rename tests/qapi-schema/{redefined-command.json => redefined-command.qapi} (100%) rename tests/qapi-schema/{redefined-event.json => redefined-event.qapi} (100%) rename tests/qapi-schema/{redefined-type.json => redefined-type.qapi} (100%) rename tests/qapi-schema/{reserved-command-q.json => reserved-command-q.qapi} (100%) rename tests/qapi-schema/{reserved-enum-q.json => reserved-enum-q.qapi} (100%) rename tests/qapi-schema/{reserved-member-has.json => reserved-member-has.qapi} (100%) rename tests/qapi-schema/{reserved-member-q.json => reserved-member-q.qapi} (100%) rename tests/qapi-schema/{reserved-member-u.json => reserved-member-u.qapi} (100%) rename tests/qapi-schema/{reserved-member-underscore.json => reserved-member-underscore.qapi} (100%) rename tests/qapi-schema/{reserved-type-kind.json => reserved-type-kind.qapi} (100%) rename tests/qapi-schema/{reserved-type-list.json => reserved-type-list.qapi} (100%) rename tests/qapi-schema/{returns-alternate.json => returns-alternate.qapi} (100%) rename tests/qapi-schema/{returns-array-bad.json => returns-array-bad.qapi} (100%) rename tests/qapi-schema/{returns-dict.json => returns-dict.qapi} (100%) rename tests/qapi-schema/{returns-unknown.json => returns-unknown.qapi} (100%) rename tests/qapi-schema/{returns-whitelist.json => returns-whitelist.qapi} (100%) rename tests/qapi-schema/{struct-base-clash-deep.json => struct-base-clash-deep.qapi} (100%) rename tests/qapi-schema/{struct-base-clash.json => struct-base-clash.qapi} (100%) rename tests/qapi-schema/{struct-data-invalid.json => struct-data-invalid.qapi} (100%) rename tests/qapi-schema/{struct-member-invalid.json => struct-member-invalid.qapi} (100%) rename tests/qapi-schema/{trailing-comma-list.json => trailing-comma-list.qapi} (100%) rename tests/qapi-schema/{trailing-comma-object.json => trailing-comma-object.qapi} (100%) rename tests/qapi-schema/{type-bypass-bad-gen.json => type-bypass-bad-gen.qapi} (100%) rename tests/qapi-schema/{unclosed-list.json => unclosed-list.qapi} (100%) rename tests/qapi-schema/{unclosed-object.json => unclosed-object.qapi} (100%) rename tests/qapi-schema/{unclosed-string.json => unclosed-string.qapi} (100%) rename tests/qapi-schema/{unicode-str.json => unicode-str.qapi} (100%) rename tests/qapi-schema/{union-base-empty.json => union-base-empty.qapi} (100%) rename tests/qapi-schema/{union-base-no-discriminator.json => union-base-no-discriminator.qapi} (100%) rename tests/qapi-schema/{union-branch-case.json => union-branch-case.qapi} (100%) rename tests/qapi-schema/{union-clash-branches.json => union-clash-branches.qapi} (100%) rename tests/qapi-schema/{union-empty.json => union-empty.qapi} (100%) rename tests/qapi-schema/{union-invalid-base.json => union-invalid-base.qapi} (100%) rename tests/qapi-schema/{union-optional-branch.json => union-optional-branch.qapi} (100%) rename tests/qapi-schema/{union-unknown.json => union-unknown.qapi} (100%) rename tests/qapi-schema/{unknown-escape.json => unknown-escape.qapi} (100%) rename tests/qapi-schema/{unknown-expr-key.json => unknown-expr-key.qapi} (100%)docs/devel/blkdebug.txt +1
-1@@ -92,7 +92,7 @@ The core events are: flush_to_disk - flush the host block device's disk cache -See qapi/block-core.json:BlkdebugEvent for the full list of events. +See qapi/block-core.qapi:BlkdebugEvent for the full list of events. You may need to grep block driver source code to understand the meaning of specific events.docs/devel/qapi-code-gen.txt +8
-8@@ -293,7 +293,7 @@ Usage: { 'include': STRING } The QAPI schema definitions can be modularized using the 'include' directive: - { 'include': 'path/to/file.json' } + { 'include': 'path/to/file.qapi' } The directive is evaluated recursively, and include paths are relative to the file using the directive. Multiple includes of the same file are@@ -912,7 +912,7 @@ list of that type as a parameter, and returns a single element of that type. The user is responsible for writing the implementation of qmp_my_command(); everything else is produced by the generator. - $ cat example-schema.json + $ cat example-schema.qapi { 'struct': 'UserDefOne', 'data': { 'integer': 'int', '*string': 'str' } }@@ -923,7 +923,7 @@ qmp_my_command(); everything else is produced by the generator. { 'event': 'MY_EVENT' } For a more thorough look at generated code, the testsuite includes -tests/qapi-schema/qapi-schema-tests.json that covers more examples of +tests/qapi-schema/qapi-schema-tests.qapi that covers more examples of what the generator will accept, and compiles the resulting C code as part of 'make check-unit'.@@ -944,7 +944,7 @@ created code. Example: $ python scripts/qapi-types.py --output-dir="qapi-generated" \ - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-types.h [Uninteresting stuff omitted...]@@ -1029,7 +1029,7 @@ $(prefix)qapi-visit.h: declarations for previously mentioned visitor Example: $ python scripts/qapi-visit.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-visit.h [Uninteresting stuff omitted...]@@ -1160,7 +1160,7 @@ $(prefix)qmp-commands.h: Function prototypes for the QMP commands Example: $ python scripts/qapi-commands.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qmp-commands.h [Uninteresting stuff omitted...]@@ -1255,7 +1255,7 @@ $(prefix)qapi-event.c - Implementation of functions to send an event Example: $ python scripts/qapi-event.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qapi-event.h [Uninteresting stuff omitted...]@@ -1318,7 +1318,7 @@ $(prefix)qmp-introspect.h - Declares the above string. Example: $ python scripts/qapi-introspect.py --output-dir="qapi-generated" - --prefix="example-" example-schema.json + --prefix="example-" example-schema.qapi $ cat qapi-generated/example-qmp-introspect.h [Uninteresting stuff omitted...]docs/devel/testing.rst +2
-2@@ -132,7 +132,7 @@ output. The input/output data is managed under the ``tests/qapi-schema`` directory. Each test case includes four files that have a common base name: - * ``${casename}.json`` - the file contains the JSON input for feeding the + * ``${casename}.qapi`` - the file contains the JSON input for feeding the parser * ``${casename}.out`` - the file contains the expected stdout from the parser * ``${casename}.err`` - the file contains the expected stderr from the parser@@ -147,7 +147,7 @@ parser (either fixing a bug or extending/modifying the syntax). To do this: 2. Add the new test in ``tests/Makefile.include``. For example: - ``qapi-schema += foo.json`` + ``qapi-schema += foo.qapi`` check-block -----------docs/devel/writing-qmp-commands.txt +4
-4@@ -16,7 +16,7 @@ Generally speaking, the following steps should be taken in order to write a new QMP command (similar steps for QGA). 1. Write the command's and type(s) specification in the appropriate - QAPI schema file (qapi/qmp-schema.json, or one of the module .json + QAPI schema file (qapi/qmp-schema.qapi, or one of the module .qapi files it includes) 2. Write the QMP command itself, which is a regular C function. Preferably,@@ -90,7 +90,7 @@ Our command will be called "hello-world". It takes no arguments, nor does it return any data. The first step is to add the following line to the bottom of the -qapi/qmp-schema.json file: +qapi/qmp-schema.qapi file: { 'command': 'hello-world' }@@ -235,7 +235,7 @@ this rule: If the failure you want to report falls into one of the two cases above, use error_set() with a second argument of an ErrorClass value. - * All existing ErrorClass values are defined in the qapi/qmp-schema.json file + * All existing ErrorClass values are defined in the qapi/qmp-schema.qapi file === Command Documentation ===@@ -246,7 +246,7 @@ This is very important. No QMP command will be accepted in QEMU without proper documentation. There are many examples of such documentation in the schema file already, but -here goes "hello-world"'s new entry for the qapi/qmp-schema.json file: +here goes "hello-world"'s new entry for the qapi/qmp-schema.qapi file: ## # @hello-worlddocs/interop/live-block-operations.rst +2
-2@@ -20,7 +20,7 @@ primitives, and some (non-exhaustive list of) examples to illustrate their use. .. note:: - The file ``qapi/block-core.json`` in the QEMU source tree has the + The file ``qapi/block-core.qapi`` in the QEMU source tree has the canonical QEMU API (QAPI) schema documentation for the QMP primitives discussed here.@@ -54,7 +54,7 @@ files in a disk image backing chain: (1) Directional: 'base' and 'top'. Given the simple disk image chain above, image [A] can be referred to as 'base', and image [B] as 'top'. (This terminology can be seen in in QAPI schema file, - block-core.json.) + block-core.qapi.) (2) Relational: 'backing file' and 'overlay'. Again, taking the same simple disk image chain from the above, disk image [A] is referreddocs/interop/qmp-intro.txt +1
-1@@ -78,7 +78,7 @@ Escape character is '^]'. } } -Please, refer to the qapi/qmp-schema.json file for a complete command +Please, refer to the qapi/qmp-schema.qapi file for a complete command reference. QMP wiki pageMakefile +18
-18@@ -488,35 +488,35 @@ gen-out-type = $(subst .,-,$(suffix $@)) qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py qga/qapi-generated/qga-qapi-types.c qga/qapi-generated/qga-qapi-types.h :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-types.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qapi-visit.c qga/qapi-generated/qga-qapi-visit.h :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-visit.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") qga/qapi-generated/qga-qmp-commands.h qga/qapi-generated/qga-qmp-marshal.c :\ -$(SRC_PATH)/qapi/qga-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) +$(SRC_PATH)/qapi/qga-schema.qapi $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi-commands.py \ $(gen-out-type) -o qga/qapi-generated -p "qga-" $<, \ "GEN","$@") -qapi-modules = $(SRC_PATH)/qapi/qmp-schema.json $(SRC_PATH)/qapi/common.json \ - $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.json \ - $(SRC_PATH)/qapi/char.json \ - $(SRC_PATH)/qapi/crypto.json \ - $(SRC_PATH)/qapi/introspect.json \ - $(SRC_PATH)/qapi/migration.json \ - $(SRC_PATH)/qapi/net.json \ - $(SRC_PATH)/qapi/rocker.json \ - $(SRC_PATH)/qapi/run-state.json \ - $(SRC_PATH)/qapi/sockets.json \ - $(SRC_PATH)/qapi/tpm.json \ - $(SRC_PATH)/qapi/trace.json \ - $(SRC_PATH)/qapi/transaction.json \ - $(SRC_PATH)/qapi/ui.json +qapi-modules = $(SRC_PATH)/qapi/qmp-schema.qapi $(SRC_PATH)/qapi/common.qapi \ + $(SRC_PATH)/qapi/block.qapi $(SRC_PATH)/qapi/block-core.qapi \ + $(SRC_PATH)/qapi/char.qapi \ + $(SRC_PATH)/qapi/crypto.qapi \ + $(SRC_PATH)/qapi/introspect.qapi \ + $(SRC_PATH)/qapi/migration.qapi \ + $(SRC_PATH)/qapi/net.qapi \ + $(SRC_PATH)/qapi/rocker.qapi \ + $(SRC_PATH)/qapi/run-state.qapi \ + $(SRC_PATH)/qapi/sockets.qapi \ + $(SRC_PATH)/qapi/tpm.qapi \ + $(SRC_PATH)/qapi/trace.qapi \ + $(SRC_PATH)/qapi/transaction.qapi \ + $(SRC_PATH)/qapi/ui.qapi qapi-types.c qapi-types.h :\ $(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)@@ -815,7 +815,7 @@ docs/interop/qemu-qmp-qapi.texi docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/scri docs/interop/qemu-qmp-qapi.texi: $(qapi-modules) $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") -docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qapi/qga-schema.json +docs/interop/qemu-ga-qapi.texi: $(SRC_PATH)/qapi/qga-schema.qapi $(call quiet-command,$(PYTHON_UTF8) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-info.texiMakefile.objs +1
-1@@ -103,7 +103,7 @@ target-obj-y += trace/ # guest agent # FIXME: a few definitions from qapi-types.o/qapi-visit.o are needed -# by libqemuutil.a. These should be moved to a separate .json schema. +# by libqemuutil.a. These should be moved to a separate .qapi schema. qga-obj-y = qga/ qga-vss-dll-obj-y = qga/qapi/block-core.qapi renamed from qapi/block-core.json +3
-3@@ -4,9 +4,9 @@ # == Block core (VM unrelated) ## -{ 'include': 'common.json' } -{ 'include': 'crypto.json' } -{ 'include': 'sockets.json' } +{ 'include': 'common.qapi' } +{ 'include': 'crypto.qapi' } +{ 'include': 'sockets.qapi' } ## # @SnapshotInfo:qapi/block.qapi renamed from qapi/block.json +1
-1@@ -4,7 +4,7 @@ # = Block devices ## -{ 'include': 'block-core.json' } +{ 'include': 'block-core.qapi' } ## # == Additional block stuff (VM related)qapi/char.qapi renamed from qapi/char.json +1
-1@@ -5,7 +5,7 @@ # = Character devices ## -{ 'include': 'sockets.json' } +{ 'include': 'sockets.qapi' } ## # @ChardevInfo:qapi/common.qapi renamed from qapi/common.json +0
-0qapi/crypto.qapi renamed from qapi/crypto.json +0
-0qapi/introspect.qapi renamed from qapi/introspect.json +0
-0qapi/migration.qapi renamed from qapi/migration.json +1
-1@@ -5,7 +5,7 @@ # = Migration ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @MigrationStats:qapi/net.qapi renamed from qapi/net.json +1
-1@@ -5,7 +5,7 @@ # = Net devices ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @set_link:qapi/qga-schema.qapi renamed from qapi/qga-schema.json +0
-0qapi/qmp-schema.qapi renamed from qapi/qmp-schema.json +15
-15@@ -76,22 +76,22 @@ # included sub-schemas inserted at the first include directive # (subsequent include directives have no effect). To get a sane and # stable order, it's best to include each sub-schema just once, or -# include it first in qapi/qmp-schema.json. +# include it first in qapi/qmp-schema.qapi. -{ 'include': 'common.json' } -{ 'include': 'sockets.json' } -{ 'include': 'run-state.json' } -{ 'include': 'crypto.json' } -{ 'include': 'block.json' } -{ 'include': 'char.json' } -{ 'include': 'net.json' } -{ 'include': 'rocker.json' } -{ 'include': 'tpm.json' } -{ 'include': 'ui.json' } -{ 'include': 'migration.json' } -{ 'include': 'transaction.json' } -{ 'include': 'trace.json' } -{ 'include': 'introspect.json' } +{ 'include': 'common.qapi' } +{ 'include': 'sockets.qapi' } +{ 'include': 'run-state.qapi' } +{ 'include': 'crypto.qapi' } +{ 'include': 'block.qapi' } +{ 'include': 'char.qapi' } +{ 'include': 'net.qapi' } +{ 'include': 'rocker.qapi' } +{ 'include': 'tpm.qapi' } +{ 'include': 'ui.qapi' } +{ 'include': 'migration.qapi' } +{ 'include': 'transaction.qapi' } +{ 'include': 'trace.qapi' } +{ 'include': 'introspect.qapi' } ## # = Miscellaneaqapi/rocker.qapi renamed from qapi/rocker.json +0
-0qapi/run-state.qapi renamed from qapi/run-state.json +0
-0qapi/sockets.qapi renamed from qapi/sockets.json +1
-1@@ -4,7 +4,7 @@ # = Socket data types ## -{ 'include': 'common.json' } +{ 'include': 'common.qapi' } ## # @NetworkAddressFamily:qapi/tpm.qapi renamed from qapi/tpm.json +0
-0qapi/trace.qapi renamed from qapi/trace.json +0
-0qapi/transaction.qapi renamed from qapi/transaction.json +1
-1@@ -5,7 +5,7 @@ # = Transactions ## -{ 'include': 'block.json' } +{ 'include': 'block.qapi' } ## # @Abort:qapi/ui.qapi renamed from qapi/ui.json +1
-1@@ -5,7 +5,7 @@ # = Remote desktop ## -{ 'include': 'sockets.json' } +{ 'include': 'sockets.qapi' } ## # @set_password:include/crypto/block.h +1
-1@@ -27,7 +27,7 @@typedef struct QCryptoBlock QCryptoBlock ;/* See also QCryptoBlockFormat, QCryptoBlockCreateOptions -* and QCryptoBlockOpenOptions in qapi/crypto.json */ +* and QCryptoBlockOpenOptions in qapi/crypto.qapi */ typedef ssize_t (*QCryptoBlockReadFunc)(QCryptoBlock *block, size_t offset,include/crypto/cipher.h +1
-1@@ -26,7 +26,7 @@typedef struct QCryptoCipher QCryptoCipher ;/* See also "QCryptoCipherAlgorithm" and "QCryptoCipherMode" -* enums defined in qapi/crypto.json */ +* enums defined in qapi/crypto.qapi */ /** * QCryptoCipher: include/crypto/hash.h +1
-1@@ -23,7 +23,7 @@#include "qapi-types.h" -/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.json */ +/* See also "QCryptoHashAlgorithm" defined in qapi/crypto.qapi */ /** * qcrypto_hash_supports: include/crypto/ivgen.h +1
-1@@ -97,7 +97,7 @@typedef struct QCryptoIVGen QCryptoIVGen ; -/* See also QCryptoIVGenAlgorithm enum in qapi/crypto.json */ +/* See also QCryptoIVGenAlgorithm enum in qapi/crypto.qapi */ /** MAINTAINERS +13
-13@@ -1342,8 +1342,8 @@ M: Markus Armbruster <[email protected]> S: Supported F: blockdev.c F: block/qapi.c -F: qapi/block*.json -F: qapi/transaction.json +F: qapi/block*.qapi +F: qapi/transaction.qapi T: git git://repo.or.cz/qemu/armbru.git block-next Dirty Bitmaps@@ -1366,7 +1366,7 @@ M: Marc-André Lureau <[email protected]> S: Maintained F: chardev/ F: include/chardev/ -F: qapi/char.json +F: qapi/char.qapi Character Devices (Braille) M: Samuel Thibault <[email protected]>@@ -1444,14 +1444,14 @@ F: include/ui/spice-display.h F: ui/spice-*.c F: audio/spiceaudio.c F: hw/display/qxl* -F: qapi/ui.json +F: qapi/ui.qapi Graphics M: Gerd Hoffmann <[email protected]> S: Odd Fixes F: ui/ F: include/ui/ -F: qapi/ui.json +F: qapi/ui.qapi Cocoa graphics M: Peter Maydell <[email protected]>@@ -1465,7 +1465,7 @@ F: cpus.c F: util/main-loop.c F: util/qemu-timer.c F: vl.c -F: qapi/run-state.json +F: qapi/run-state.qapi Human Monitor (HMP) M: Dr. David Alan Gilbert <[email protected]>@@ -1482,7 +1482,7 @@ S: Maintained F: net/ F: include/net/ T: git git://github.com/jasowang/qemu.git net -F: qapi/net.json +F: qapi/net.qapi Netmap network backend M: Luigi Rizzo <[email protected]>@@ -1526,7 +1526,7 @@ M: Markus Armbruster <[email protected]> M: Michael Roth <[email protected]> S: Supported F: qapi/ -X: qapi/*.json +X: qapi/*.qapi F: include/qapi/ X: include/qapi/qmp/ F: include/qapi/qmp/dispatch.h@@ -1543,7 +1543,7 @@ QAPI Schema M: Eric Blake <[email protected]> M: Markus Armbruster <[email protected]> S: Supported -F: qapi/*.json +F: qapi/*.qapi T: git git://repo.or.cz/qemu/armbru.git qapi-next QObject@@ -1564,7 +1564,7 @@ QEMU Guest Agent M: Michael Roth <[email protected]> S: Maintained F: qga/ -F: qapi/qga-schema.json +F: qapi/qga-schema.qapi F: qemu-ga.texi F: scripts/qemu-guest-agent/ F: tests/test-qga.c@@ -1631,7 +1631,7 @@ F: stubs/tpm.c F: hw/tpm/* F: include/hw/acpi/tpm.h F: include/sysemu/tpm* -F: qapi/tpm.json +F: qapi/tpm.qapi F: backends/tpm.c T: git git://github.com/stefanberger/qemu-tpm.git tpm-next@@ -1649,7 +1649,7 @@ F: scripts/vmstate-static-checker.py F: tests/vmstate-static-checker-data/ F: tests/migration-test.c F: docs/devel/migration.txt -F: qapi/migration.json +F: qapi/migration.qapi Seccomp M: Eduardo Otubo <[email protected]>@@ -1693,7 +1693,7 @@ M: Paolo Bonzini <[email protected]> S: Maintained F: include/qemu/sockets.h F: util/qemu-sockets.c -F: qapi/sockets.json +F: qapi/sockets.qapi Throttling infrastructure M: Alberto Garcia <[email protected]>scripts/git.orderfile +1
-1@@ -19,7 +19,7 @@ Makefile* *.mak # qapi schema -*.json +*.qapi # headers *.htests/Makefile.include +171
-171@@ -388,170 +388,170 @@ check-qtest-s390x-y += tests/cpu-plug-test$(EXESUF) check-qtest-generic-y += tests/qom-test$(EXESUF) check-qtest-generic-y += tests/test-hmp$(EXESUF) -qapi-schema += alternate-any.json -qapi-schema += alternate-array.json -qapi-schema += alternate-base.json -qapi-schema += alternate-clash.json -qapi-schema += alternate-conflict-dict.json -qapi-schema += alternate-conflict-enum-bool.json -qapi-schema += alternate-conflict-enum-int.json -qapi-schema += alternate-conflict-string.json -qapi-schema += alternate-conflict-bool-string.json -qapi-schema += alternate-conflict-num-string.json -qapi-schema += alternate-empty.json -qapi-schema += alternate-nested.json -qapi-schema += alternate-unknown.json -qapi-schema += args-alternate.json -qapi-schema += args-any.json -qapi-schema += args-array-empty.json -qapi-schema += args-array-unknown.json -qapi-schema += args-bad-boxed.json -qapi-schema += args-boxed-anon.json -qapi-schema += args-boxed-empty.json -qapi-schema += args-boxed-string.json -qapi-schema += args-int.json -qapi-schema += args-invalid.json -qapi-schema += args-member-array-bad.json -qapi-schema += args-member-case.json -qapi-schema += args-member-unknown.json -qapi-schema += args-name-clash.json -qapi-schema += args-union.json -qapi-schema += args-unknown.json -qapi-schema += bad-base.json -qapi-schema += bad-data.json -qapi-schema += bad-ident.json -qapi-schema += bad-type-bool.json -qapi-schema += bad-type-dict.json -qapi-schema += bad-type-int.json -qapi-schema += base-cycle-direct.json -qapi-schema += base-cycle-indirect.json -qapi-schema += command-int.json -qapi-schema += comments.json -qapi-schema += doc-bad-alternate-member.json -qapi-schema += doc-bad-command-arg.json -qapi-schema += doc-bad-section.json -qapi-schema += doc-bad-symbol.json -qapi-schema += doc-bad-union-member.json -qapi-schema += doc-before-include.json -qapi-schema += doc-before-pragma.json -qapi-schema += doc-duplicated-arg.json -qapi-schema += doc-duplicated-return.json -qapi-schema += doc-duplicated-since.json -qapi-schema += doc-empty-arg.json -qapi-schema += doc-empty-section.json -qapi-schema += doc-empty-symbol.json -qapi-schema += doc-good.json -qapi-schema += doc-interleaved-section.json -qapi-schema += doc-invalid-end.json -qapi-schema += doc-invalid-end2.json -qapi-schema += doc-invalid-return.json -qapi-schema += doc-invalid-section.json -qapi-schema += doc-invalid-start.json -qapi-schema += doc-missing-colon.json -qapi-schema += doc-missing-expr.json -qapi-schema += doc-missing-space.json -qapi-schema += doc-missing.json -qapi-schema += doc-no-symbol.json -qapi-schema += double-data.json -qapi-schema += double-type.json -qapi-schema += duplicate-key.json -qapi-schema += empty.json -qapi-schema += enum-bad-name.json -qapi-schema += enum-bad-prefix.json -qapi-schema += enum-clash-member.json -qapi-schema += enum-dict-member.json -qapi-schema += enum-int-member.json -qapi-schema += enum-member-case.json -qapi-schema += enum-missing-data.json -qapi-schema += enum-wrong-data.json -qapi-schema += escape-outside-string.json -qapi-schema += escape-too-big.json -qapi-schema += escape-too-short.json -qapi-schema += event-boxed-empty.json -qapi-schema += event-case.json -qapi-schema += event-nest-struct.json -qapi-schema += flat-union-array-branch.json -qapi-schema += flat-union-bad-base.json -qapi-schema += flat-union-bad-discriminator.json -qapi-schema += flat-union-base-any.json -qapi-schema += flat-union-base-union.json -qapi-schema += flat-union-clash-member.json -qapi-schema += flat-union-empty.json -qapi-schema += flat-union-incomplete-branch.json -qapi-schema += flat-union-inline.json -qapi-schema += flat-union-int-branch.json -qapi-schema += flat-union-invalid-branch-key.json -qapi-schema += flat-union-invalid-discriminator.json -qapi-schema += flat-union-no-base.json -qapi-schema += flat-union-optional-discriminator.json -qapi-schema += flat-union-string-discriminator.json -qapi-schema += funny-char.json -qapi-schema += ident-with-escape.json -qapi-schema += include-before-err.json -qapi-schema += include-cycle.json -qapi-schema += include-extra-junk.json -qapi-schema += include-format-err.json -qapi-schema += include-nested-err.json -qapi-schema += include-no-file.json -qapi-schema += include-non-file.json -qapi-schema += include-relpath.json -qapi-schema += include-repetition.json -qapi-schema += include-self-cycle.json -qapi-schema += include-simple.json -qapi-schema += indented-expr.json -qapi-schema += leading-comma-list.json -qapi-schema += leading-comma-object.json -qapi-schema += missing-colon.json -qapi-schema += missing-comma-list.json -qapi-schema += missing-comma-object.json -qapi-schema += missing-type.json -qapi-schema += nested-struct-data.json -qapi-schema += non-objects.json -qapi-schema += pragma-doc-required-crap.json -qapi-schema += pragma-extra-junk.json -qapi-schema += pragma-name-case-whitelist-crap.json -qapi-schema += pragma-non-dict.json -qapi-schema += pragma-returns-whitelist-crap.json -qapi-schema += qapi-schema-test.json -qapi-schema += quoted-structural-chars.json -qapi-schema += redefined-builtin.json -qapi-schema += redefined-command.json -qapi-schema += redefined-event.json -qapi-schema += redefined-type.json -qapi-schema += reserved-command-q.json -qapi-schema += reserved-enum-q.json -qapi-schema += reserved-member-has.json -qapi-schema += reserved-member-q.json -qapi-schema += reserved-member-u.json -qapi-schema += reserved-member-underscore.json -qapi-schema += reserved-type-kind.json -qapi-schema += reserved-type-list.json -qapi-schema += returns-alternate.json -qapi-schema += returns-array-bad.json -qapi-schema += returns-dict.json -qapi-schema += returns-unknown.json -qapi-schema += returns-whitelist.json -qapi-schema += struct-base-clash-deep.json -qapi-schema += struct-base-clash.json -qapi-schema += struct-data-invalid.json -qapi-schema += struct-member-invalid.json -qapi-schema += trailing-comma-list.json -qapi-schema += trailing-comma-object.json -qapi-schema += type-bypass-bad-gen.json -qapi-schema += unclosed-list.json -qapi-schema += unclosed-object.json -qapi-schema += unclosed-string.json -qapi-schema += unicode-str.json -qapi-schema += union-base-empty.json -qapi-schema += union-base-no-discriminator.json -qapi-schema += union-branch-case.json -qapi-schema += union-clash-branches.json -qapi-schema += union-empty.json -qapi-schema += union-invalid-base.json -qapi-schema += union-optional-branch.json -qapi-schema += union-unknown.json -qapi-schema += unknown-escape.json -qapi-schema += unknown-expr-key.json +qapi-schema += alternate-any.qapi +qapi-schema += alternate-array.qapi +qapi-schema += alternate-base.qapi +qapi-schema += alternate-clash.qapi +qapi-schema += alternate-conflict-dict.qapi +qapi-schema += alternate-conflict-enum-bool.qapi +qapi-schema += alternate-conflict-enum-int.qapi +qapi-schema += alternate-conflict-string.qapi +qapi-schema += alternate-conflict-bool-string.qapi +qapi-schema += alternate-conflict-num-string.qapi +qapi-schema += alternate-empty.qapi +qapi-schema += alternate-nested.qapi +qapi-schema += alternate-unknown.qapi +qapi-schema += args-alternate.qapi +qapi-schema += args-any.qapi +qapi-schema += args-array-empty.qapi +qapi-schema += args-array-unknown.qapi +qapi-schema += args-bad-boxed.qapi +qapi-schema += args-boxed-anon.qapi +qapi-schema += args-boxed-empty.qapi +qapi-schema += args-boxed-string.qapi +qapi-schema += args-int.qapi +qapi-schema += args-invalid.qapi +qapi-schema += args-member-array-bad.qapi +qapi-schema += args-member-case.qapi +qapi-schema += args-member-unknown.qapi +qapi-schema += args-name-clash.qapi +qapi-schema += args-union.qapi +qapi-schema += args-unknown.qapi +qapi-schema += bad-base.qapi +qapi-schema += bad-data.qapi +qapi-schema += bad-ident.qapi +qapi-schema += bad-type-bool.qapi +qapi-schema += bad-type-dict.qapi +qapi-schema += bad-type-int.qapi +qapi-schema += base-cycle-direct.qapi +qapi-schema += base-cycle-indirect.qapi +qapi-schema += command-int.qapi +qapi-schema += comments.qapi +qapi-schema += doc-bad-alternate-member.qapi +qapi-schema += doc-bad-command-arg.qapi +qapi-schema += doc-bad-section.qapi +qapi-schema += doc-bad-symbol.qapi +qapi-schema += doc-bad-union-member.qapi +qapi-schema += doc-before-include.qapi +qapi-schema += doc-before-pragma.qapi +qapi-schema += doc-duplicated-arg.qapi +qapi-schema += doc-duplicated-return.qapi +qapi-schema += doc-duplicated-since.qapi +qapi-schema += doc-empty-arg.qapi +qapi-schema += doc-empty-section.qapi +qapi-schema += doc-empty-symbol.qapi +qapi-schema += doc-good.qapi +qapi-schema += doc-interleaved-section.qapi +qapi-schema += doc-invalid-end.qapi +qapi-schema += doc-invalid-end2.qapi +qapi-schema += doc-invalid-return.qapi +qapi-schema += doc-invalid-section.qapi +qapi-schema += doc-invalid-start.qapi +qapi-schema += doc-missing-colon.qapi +qapi-schema += doc-missing-expr.qapi +qapi-schema += doc-missing-space.qapi +qapi-schema += doc-missing.qapi +qapi-schema += doc-no-symbol.qapi +qapi-schema += double-data.qapi +qapi-schema += double-type.qapi +qapi-schema += duplicate-key.qapi +qapi-schema += empty.qapi +qapi-schema += enum-bad-name.qapi +qapi-schema += enum-bad-prefix.qapi +qapi-schema += enum-clash-member.qapi +qapi-schema += enum-dict-member.qapi +qapi-schema += enum-int-member.qapi +qapi-schema += enum-member-case.qapi +qapi-schema += enum-missing-data.qapi +qapi-schema += enum-wrong-data.qapi +qapi-schema += escape-outside-string.qapi +qapi-schema += escape-too-big.qapi +qapi-schema += escape-too-short.qapi +qapi-schema += event-boxed-empty.qapi +qapi-schema += event-case.qapi +qapi-schema += event-nest-struct.qapi +qapi-schema += flat-union-array-branch.qapi +qapi-schema += flat-union-bad-base.qapi +qapi-schema += flat-union-bad-discriminator.qapi +qapi-schema += flat-union-base-any.qapi +qapi-schema += flat-union-base-union.qapi +qapi-schema += flat-union-clash-member.qapi +qapi-schema += flat-union-empty.qapi +qapi-schema += flat-union-incomplete-branch.qapi +qapi-schema += flat-union-inline.qapi +qapi-schema += flat-union-int-branch.qapi +qapi-schema += flat-union-invalid-branch-key.qapi +qapi-schema += flat-union-invalid-discriminator.qapi +qapi-schema += flat-union-no-base.qapi +qapi-schema += flat-union-optional-discriminator.qapi +qapi-schema += flat-union-string-discriminator.qapi +qapi-schema += funny-char.qapi +qapi-schema += ident-with-escape.qapi +qapi-schema += include-before-err.qapi +qapi-schema += include-cycle.qapi +qapi-schema += include-extra-junk.qapi +qapi-schema += include-format-err.qapi +qapi-schema += include-nested-err.qapi +qapi-schema += include-no-file.qapi +qapi-schema += include-non-file.qapi +qapi-schema += include-relpath.qapi +qapi-schema += include-repetition.qapi +qapi-schema += include-self-cycle.qapi +qapi-schema += include-simple.qapi +qapi-schema += indented-expr.qapi +qapi-schema += leading-comma-list.qapi +qapi-schema += leading-comma-object.qapi +qapi-schema += missing-colon.qapi +qapi-schema += missing-comma-list.qapi +qapi-schema += missing-comma-object.qapi +qapi-schema += missing-type.qapi +qapi-schema += nested-struct-data.qapi +qapi-schema += non-objects.qapi +qapi-schema += pragma-doc-required-crap.qapi +qapi-schema += pragma-extra-junk.qapi +qapi-schema += pragma-name-case-whitelist-crap.qapi +qapi-schema += pragma-non-dict.qapi +qapi-schema += pragma-returns-whitelist-crap.qapi +qapi-schema += qapi-schema-test.qapi +qapi-schema += quoted-structural-chars.qapi +qapi-schema += redefined-builtin.qapi +qapi-schema += redefined-command.qapi +qapi-schema += redefined-event.qapi +qapi-schema += redefined-type.qapi +qapi-schema += reserved-command-q.qapi +qapi-schema += reserved-enum-q.qapi +qapi-schema += reserved-member-has.qapi +qapi-schema += reserved-member-q.qapi +qapi-schema += reserved-member-u.qapi +qapi-schema += reserved-member-underscore.qapi +qapi-schema += reserved-type-kind.qapi +qapi-schema += reserved-type-list.qapi +qapi-schema += returns-alternate.qapi +qapi-schema += returns-array-bad.qapi +qapi-schema += returns-dict.qapi +qapi-schema += returns-unknown.qapi +qapi-schema += returns-whitelist.qapi +qapi-schema += struct-base-clash-deep.qapi +qapi-schema += struct-base-clash.qapi +qapi-schema += struct-data-invalid.qapi +qapi-schema += struct-member-invalid.qapi +qapi-schema += trailing-comma-list.qapi +qapi-schema += trailing-comma-object.qapi +qapi-schema += type-bypass-bad-gen.qapi +qapi-schema += unclosed-list.qapi +qapi-schema += unclosed-object.qapi +qapi-schema += unclosed-string.qapi +qapi-schema += unicode-str.qapi +qapi-schema += union-base-empty.qapi +qapi-schema += union-base-no-discriminator.qapi +qapi-schema += union-branch-case.qapi +qapi-schema += union-clash-branches.qapi +qapi-schema += union-empty.qapi +qapi-schema += union-invalid-base.qapi +qapi-schema += union-optional-branch.qapi +qapi-schema += union-unknown.qapi +qapi-schema += unknown-escape.qapi +qapi-schema += unknown-expr-key.qapi check-qapi-schema-y := $(addprefix tests/qapi-schema/, $(qapi-schema))@@ -646,32 +646,32 @@ tests/test-replication$(EXESUF): tests/test-replication.o $(test-util-obj-y) \ $(test-block-obj-y) tests/test-qapi-types.c tests/test-qapi-types.h :\ -$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) +$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.qapi $(SRC_PATH)/scripts/qapi-types.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \ $(gen-out-type) -o tests -p "test-" $<, \ "GEN","$@") tests/test-qapi-visit.c tests/test-qapi-visit.h :\ -$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) +$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.qapi $(SRC_PATH)/scripts/qapi-visit.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-visit.py \ $(gen-out-type) -o tests -p "test-" $<, \ "GEN","$@") tests/test-qmp-commands.h tests/test-qmp-marshal.c :\ -$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) +$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.qapi $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py \ $(gen-out-type) -o tests -p "test-" $<, \ "GEN","$@") tests/test-qapi-event.c tests/test-qapi-event.h :\ -$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-event.py $(qapi-py) +$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.qapi $(SRC_PATH)/scripts/qapi-event.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-event.py \ $(gen-out-type) -o tests -p "test-" $<, \ "GEN","$@") tests/test-qmp-introspect.c tests/test-qmp-introspect.h :\ -$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.json $(SRC_PATH)/scripts/qapi-introspect.py $(qapi-py) +$(SRC_PATH)/tests/qapi-schema/qapi-schema-test.qapi $(SRC_PATH)/scripts/qapi-introspect.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-introspect.py \ $(gen-out-type) -o tests -p "test-" $<, \ "GEN","$@") -tests/qapi-schema/doc-good.test.texi: $(SRC_PATH)/tests/qapi-schema/doc-good.json $(SRC_PATH)/scripts/qapi2texi.py $(qapi-py) +tests/qapi-schema/doc-good.test.texi: $(SRC_PATH)/tests/qapi-schema/doc-good.qapi $(SRC_PATH)/scripts/qapi2texi.py $(qapi-py) $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi2texi.py $< > $@,"GEN","$@") tests/test-string-output-visitor$(EXESUF): tests/test-string-output-visitor.o $(test-qapi-obj-y)@@ -913,7 +913,7 @@ check-tests/qemu-iotests-quick.sh: tests/qemu-iotests-quick.sh qemu-img$(EXESUF) $< .PHONY: $(patsubst %, check-%, $(check-qapi-schema-y)) -$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json +$(patsubst %, check-%, $(check-qapi-schema-y)): check-%.qapi: $(SRC_PATH)/%.qapi $(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts \ $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py \ $^ >$*.test.out 2>$*.test.err; \tests/qapi-schema/alternate-any.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-any.json:2: Alternate 'Alt' member 'one' cannot use type 'any' +tests/qapi-schema/alternate-any.qapi:2: Alternate 'Alt' member 'one' cannot use type 'any'tests/qapi-schema/alternate-any.qapi renamed from tests/qapi-schema/alternate-any.json +0
-0tests/qapi-schema/alternate-array.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-array.json:5: Member 'two' of alternate 'Alt' cannot be an array +tests/qapi-schema/alternate-array.qapi:5: Member 'two' of alternate 'Alt' cannot be an arraytests/qapi-schema/alternate-array.qapi renamed from tests/qapi-schema/alternate-array.json +0
-0tests/qapi-schema/alternate-base.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-base.json:4: Unknown key 'base' in alternate 'Alt' +tests/qapi-schema/alternate-base.qapi:4: Unknown key 'base' in alternate 'Alt'tests/qapi-schema/alternate-base.qapi renamed from tests/qapi-schema/alternate-base.json +0
-0tests/qapi-schema/alternate-clash.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-clash.json:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1) +tests/qapi-schema/alternate-clash.qapi:7: 'a_b' (branch of Alt1) collides with 'a-b' (branch of Alt1)tests/qapi-schema/alternate-clash.qapi renamed from tests/qapi-schema/alternate-clash.json +0
-0tests/qapi-schema/alternate-conflict-bool-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-bool-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-bool-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-bool-string.qapi renamed from tests/qapi-schema/alternate-conflict-bool-string.json +0
-0tests/qapi-schema/alternate-conflict-dict.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-dict.json:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-dict.qapi:6: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-dict.qapi renamed from tests/qapi-schema/alternate-conflict-dict.json +0
-0tests/qapi-schema/alternate-conflict-enum-bool.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-enum-bool.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-enum-bool.qapi:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-enum-bool.qapi renamed from tests/qapi-schema/alternate-conflict-enum-bool.json +0
-0tests/qapi-schema/alternate-conflict-enum-int.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-enum-int.json:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-enum-int.qapi:4: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-enum-int.qapi renamed from tests/qapi-schema/alternate-conflict-enum-int.json +0
-0tests/qapi-schema/alternate-conflict-num-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-num-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-num-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-num-string.qapi renamed from tests/qapi-schema/alternate-conflict-num-string.json +0
-0tests/qapi-schema/alternate-conflict-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-conflict-string.json:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one' +tests/qapi-schema/alternate-conflict-string.qapi:2: Alternate 'Alt' member 'two' can't be distinguished from member 'one'tests/qapi-schema/alternate-conflict-string.qapi renamed from tests/qapi-schema/alternate-conflict-string.json +0
-0tests/qapi-schema/alternate-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-empty.json:2: Alternate 'Alt' should have at least two branches in 'data' +tests/qapi-schema/alternate-empty.qapi:2: Alternate 'Alt' should have at least two branches in 'data'tests/qapi-schema/alternate-empty.qapi renamed from tests/qapi-schema/alternate-empty.json +0
-0tests/qapi-schema/alternate-nested.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-nested.json:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1' +tests/qapi-schema/alternate-nested.qapi:4: Member 'nested' of alternate 'Alt2' cannot use alternate type 'Alt1'tests/qapi-schema/alternate-nested.qapi renamed from tests/qapi-schema/alternate-nested.json +0
-0tests/qapi-schema/alternate-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/alternate-unknown.json:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType' +tests/qapi-schema/alternate-unknown.qapi:2: Member 'unknown' of alternate 'Alt' uses unknown type 'MissingType'tests/qapi-schema/alternate-unknown.qapi renamed from tests/qapi-schema/alternate-unknown.json +0
-0tests/qapi-schema/args-alternate.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-alternate.json:3: 'data' for command 'oops' cannot use alternate type 'Alt' +tests/qapi-schema/args-alternate.qapi:3: 'data' for command 'oops' cannot use alternate type 'Alt'tests/qapi-schema/args-alternate.qapi renamed from tests/qapi-schema/args-alternate.json +0
-0tests/qapi-schema/args-any.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-any.json:2: 'data' for command 'oops' cannot use built-in type 'any' +tests/qapi-schema/args-any.qapi:2: 'data' for command 'oops' cannot use built-in type 'any'tests/qapi-schema/args-any.qapi renamed from tests/qapi-schema/args-any.json +0
-0tests/qapi-schema/args-array-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-array-empty.json:2: Member 'empty' of 'data' for command 'oops': array type must contain single type name +tests/qapi-schema/args-array-empty.qapi:2: Member 'empty' of 'data' for command 'oops': array type must contain single type nametests/qapi-schema/args-array-empty.qapi renamed from tests/qapi-schema/args-array-empty.json +0
-0tests/qapi-schema/args-array-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-array-unknown.json:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-array-unknown.qapi:2: Member 'array' of 'data' for command 'oops' uses unknown type 'NoSuchType'tests/qapi-schema/args-array-unknown.qapi renamed from tests/qapi-schema/args-array-unknown.json +0
-0tests/qapi-schema/args-bad-boxed.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-bad-boxed.json:2: 'boxed' of command 'foo' should only use true value +tests/qapi-schema/args-bad-boxed.qapi:2: 'boxed' of command 'foo' should only use true valuetests/qapi-schema/args-bad-boxed.qapi renamed from tests/qapi-schema/args-bad-boxed.json +0
-0tests/qapi-schema/args-boxed-anon.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-boxed-anon.json:2: 'data' for command 'foo' should be a type name +tests/qapi-schema/args-boxed-anon.qapi:2: 'data' for command 'foo' should be a type nametests/qapi-schema/args-boxed-anon.qapi renamed from tests/qapi-schema/args-boxed-anon.json +0
-0tests/qapi-schema/args-boxed-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-boxed-empty.json:3: Cannot use 'boxed' with empty type +tests/qapi-schema/args-boxed-empty.qapi:3: Cannot use 'boxed' with empty typetests/qapi-schema/args-boxed-empty.qapi renamed from tests/qapi-schema/args-boxed-empty.json +0
-0tests/qapi-schema/args-boxed-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-boxed-string.json:2: 'data' for command 'foo' cannot use built-in type 'str' +tests/qapi-schema/args-boxed-string.qapi:2: 'data' for command 'foo' cannot use built-in type 'str'tests/qapi-schema/args-boxed-string.qapi renamed from tests/qapi-schema/args-boxed-string.json +0
-0tests/qapi-schema/args-int.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-int.json:2: 'data' for command 'oops' cannot use built-in type 'int' +tests/qapi-schema/args-int.qapi:2: 'data' for command 'oops' cannot use built-in type 'int'tests/qapi-schema/args-int.qapi renamed from tests/qapi-schema/args-int.json +0
-0tests/qapi-schema/args-invalid.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-invalid.json:1: 'data' for command 'foo' should be a dictionary or type name +tests/qapi-schema/args-invalid.qapi:1: 'data' for command 'foo' should be a dictionary or type nametests/qapi-schema/args-invalid.qapi renamed from tests/qapi-schema/args-invalid.json +0
-0tests/qapi-schema/args-member-array-bad.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-member-array-bad.json:2: Member 'member' of 'data' for command 'oops': array type must contain single type name +tests/qapi-schema/args-member-array-bad.qapi:2: Member 'member' of 'data' for command 'oops': array type must contain single type nametests/qapi-schema/args-member-array-bad.qapi renamed from tests/qapi-schema/args-member-array-bad.json +0
-0tests/qapi-schema/args-member-case.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-member-case.json:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercase +tests/qapi-schema/args-member-case.qapi:2: 'Arg' (parameter of no-way-this-will-get-whitelisted) should not use uppercasetests/qapi-schema/args-member-case.qapi renamed from tests/qapi-schema/args-member-case.json +0
-0tests/qapi-schema/args-member-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-member-unknown.json:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-member-unknown.qapi:2: Member 'member' of 'data' for command 'oops' uses unknown type 'NoSuchType'tests/qapi-schema/args-member-unknown.qapi renamed from tests/qapi-schema/args-member-unknown.json +0
-0tests/qapi-schema/args-name-clash.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-name-clash.json:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops) +tests/qapi-schema/args-name-clash.qapi:4: 'a_b' (parameter of oops) collides with 'a-b' (parameter of oops)tests/qapi-schema/args-name-clash.qapi renamed from tests/qapi-schema/args-name-clash.json +0
-0tests/qapi-schema/args-union.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-union.json:3: 'data' for command 'oops' cannot use union type 'Uni' +tests/qapi-schema/args-union.qapi:3: 'data' for command 'oops' cannot use union type 'Uni'tests/qapi-schema/args-union.qapi renamed from tests/qapi-schema/args-union.json +0
-0tests/qapi-schema/args-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/args-unknown.json:2: 'data' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/args-unknown.qapi:2: 'data' for command 'oops' uses unknown type 'NoSuchType'tests/qapi-schema/args-unknown.qapi renamed from tests/qapi-schema/args-unknown.json +0
-0tests/qapi-schema/bad-base.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-base.json:3: 'base' for struct 'MyType' cannot use union type 'Union' +tests/qapi-schema/bad-base.qapi:3: 'base' for struct 'MyType' cannot use union type 'Union'tests/qapi-schema/bad-base.qapi renamed from tests/qapi-schema/bad-base.json +0
-0tests/qapi-schema/bad-data.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-data.json:2: 'data' for command 'oops' cannot be an array +tests/qapi-schema/bad-data.qapi:2: 'data' for command 'oops' cannot be an arraytests/qapi-schema/bad-data.qapi renamed from tests/qapi-schema/bad-data.json +0
-0tests/qapi-schema/bad-ident.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-ident.json:2: 'struct' does not allow optional name '*oops' +tests/qapi-schema/bad-ident.qapi:2: 'struct' does not allow optional name '*oops'tests/qapi-schema/bad-ident.qapi renamed from tests/qapi-schema/bad-ident.json +0
-0tests/qapi-schema/bad-type-bool.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-type-bool.json:2: 'struct' key must have a string value +tests/qapi-schema/bad-type-bool.qapi:2: 'struct' key must have a string valuetests/qapi-schema/bad-type-bool.qapi renamed from tests/qapi-schema/bad-type-bool.json +0
-0tests/qapi-schema/bad-type-dict.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-type-dict.json:2: 'command' key must have a string value +tests/qapi-schema/bad-type-dict.qapi:2: 'command' key must have a string valuetests/qapi-schema/bad-type-dict.qapi renamed from tests/qapi-schema/bad-type-dict.json +0
-0tests/qapi-schema/bad-type-int.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/bad-type-int.json:3:13: Stray "1" +tests/qapi-schema/bad-type-int.qapi:3:13: Stray "1"tests/qapi-schema/bad-type-int.qapi renamed from tests/qapi-schema/bad-type-int.json +0
-0tests/qapi-schema/base-cycle-direct.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/base-cycle-direct.json:2: Object Loopy contains itself +tests/qapi-schema/base-cycle-direct.qapi:2: Object Loopy contains itselftests/qapi-schema/base-cycle-direct.qapi renamed from tests/qapi-schema/base-cycle-direct.json +0
-0tests/qapi-schema/base-cycle-indirect.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/base-cycle-indirect.json:2: Object Base1 contains itself +tests/qapi-schema/base-cycle-indirect.qapi:2: Object Base1 contains itselftests/qapi-schema/base-cycle-indirect.qapi renamed from tests/qapi-schema/base-cycle-indirect.json +0
-0tests/qapi-schema/command-int.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/command-int.json:2: built-in 'int' is already defined +tests/qapi-schema/command-int.qapi:2: built-in 'int' is already definedtests/qapi-schema/command-int.qapi renamed from tests/qapi-schema/command-int.json +0
-0tests/qapi-schema/comments.qapi renamed from tests/qapi-schema/comments.json +0
-0tests/qapi-schema/doc-bad-alternate-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-bad-alternate-member.json:3: The following documented members are not in the declaration: aa, bb +tests/qapi-schema/doc-bad-alternate-member.qapi:3: The following documented members are not in the declaration: aa, bbtests/qapi-schema/doc-bad-alternate-member.qapi renamed from tests/qapi-schema/doc-bad-alternate-member.json +0
-0tests/qapi-schema/doc-bad-command-arg.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-bad-command-arg.json:3: The following documented members are not in the declaration: b +tests/qapi-schema/doc-bad-command-arg.qapi:3: The following documented members are not in the declaration: btests/qapi-schema/doc-bad-command-arg.qapi renamed from tests/qapi-schema/doc-bad-command-arg.json +0
-0tests/qapi-schema/doc-bad-section.qapi renamed from tests/qapi-schema/doc-bad-section.json +0
-0tests/qapi-schema/doc-bad-symbol.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-bad-symbol.json:6: Definition of 'foo' follows documentation for 'food' +tests/qapi-schema/doc-bad-symbol.qapi:6: Definition of 'foo' follows documentation for 'food'tests/qapi-schema/doc-bad-symbol.qapi renamed from tests/qapi-schema/doc-bad-symbol.json +0
-0tests/qapi-schema/doc-bad-union-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-bad-union-member.json:3: The following documented members are not in the declaration: a, b +tests/qapi-schema/doc-bad-union-member.qapi:3: The following documented members are not in the declaration: a, btests/qapi-schema/doc-bad-union-member.qapi renamed from tests/qapi-schema/doc-bad-union-member.json +0
-0tests/qapi-schema/doc-before-include.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-before-include.json:3: Documentation for 'foo' is not followed by the definition +tests/qapi-schema/doc-before-include.qapi:3: Documentation for 'foo' is not followed by the definitiontests/qapi-schema/doc-before-include.qapi renamed from tests/qapi-schema/doc-before-include.json +1
-1@@ -3,5 +3,5 @@ ## # @foo: ## -{ 'include': 'empty.json' } +{ 'include': 'empty.qapi' } { 'struct': 'foo', 'data': {} }tests/qapi-schema/doc-before-pragma.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-before-pragma.json:3: Documentation for 'foo' is not followed by the definition +tests/qapi-schema/doc-before-pragma.qapi:3: Documentation for 'foo' is not followed by the definitiontests/qapi-schema/doc-before-pragma.qapi renamed from tests/qapi-schema/doc-before-pragma.json +0
-0tests/qapi-schema/doc-duplicated-arg.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-arg.json:6:1: 'a' parameter name duplicated +tests/qapi-schema/doc-duplicated-arg.qapi:6:1: 'a' parameter name duplicatedtests/qapi-schema/doc-duplicated-arg.qapi renamed from tests/qapi-schema/doc-duplicated-arg.json +0
-0tests/qapi-schema/doc-duplicated-return.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-return.json:7:1: Duplicated 'Returns' section +tests/qapi-schema/doc-duplicated-return.qapi:7:1: Duplicated 'Returns' sectiontests/qapi-schema/doc-duplicated-return.qapi renamed from tests/qapi-schema/doc-duplicated-return.json +0
-0tests/qapi-schema/doc-duplicated-since.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-duplicated-since.json:7:1: Duplicated 'Since' section +tests/qapi-schema/doc-duplicated-since.qapi:7:1: Duplicated 'Since' sectiontests/qapi-schema/doc-duplicated-since.qapi renamed from tests/qapi-schema/doc-duplicated-since.json +0
-0tests/qapi-schema/doc-empty-arg.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-empty-arg.json:5:1: Invalid parameter name +tests/qapi-schema/doc-empty-arg.qapi:5:1: Invalid parameter nametests/qapi-schema/doc-empty-arg.qapi renamed from tests/qapi-schema/doc-empty-arg.json +0
-0tests/qapi-schema/doc-empty-section.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-empty-section.json:7:1: Empty doc section 'Note' +tests/qapi-schema/doc-empty-section.qapi:7:1: Empty doc section 'Note'tests/qapi-schema/doc-empty-section.qapi renamed from tests/qapi-schema/doc-empty-section.json +0
-0tests/qapi-schema/doc-empty-symbol.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-empty-symbol.json:4:1: Invalid name +tests/qapi-schema/doc-empty-symbol.qapi:4:1: Invalid nametests/qapi-schema/doc-empty-symbol.qapi renamed from tests/qapi-schema/doc-empty-symbol.json +0
-0tests/qapi-schema/doc-good.qapi renamed from tests/qapi-schema/doc-good.json +0
-0tests/qapi-schema/doc-interleaved-section.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-interleaved-section.json:15:1: '@foobar:' can't follow 'Note' section +tests/qapi-schema/doc-interleaved-section.qapi:15:1: '@foobar:' can't follow 'Note' sectiontests/qapi-schema/doc-interleaved-section.qapi renamed from tests/qapi-schema/doc-interleaved-section.json +0
-0tests/qapi-schema/doc-invalid-end.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-end.json:5:2: Documentation comment must end with '##' +tests/qapi-schema/doc-invalid-end.qapi:5:2: Documentation comment must end with '##'tests/qapi-schema/doc-invalid-end.qapi renamed from tests/qapi-schema/doc-invalid-end.json +0
-0tests/qapi-schema/doc-invalid-end2.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-end2.json:5:1: Junk after '##' at end of documentation comment +tests/qapi-schema/doc-invalid-end2.qapi:5:1: Junk after '##' at end of documentation commenttests/qapi-schema/doc-invalid-end2.qapi renamed from tests/qapi-schema/doc-invalid-end2.json +0
-0tests/qapi-schema/doc-invalid-return.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-return.json:3: 'Returns:' is only valid for commands +tests/qapi-schema/doc-invalid-return.qapi:3: 'Returns:' is only valid for commandstests/qapi-schema/doc-invalid-return.qapi renamed from tests/qapi-schema/doc-invalid-return.json +0
-0tests/qapi-schema/doc-invalid-section.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-section.json:5:1: '@note:' not allowed in free-form documentation +tests/qapi-schema/doc-invalid-section.qapi:5:1: '@note:' not allowed in free-form documentationtests/qapi-schema/doc-invalid-section.qapi renamed from tests/qapi-schema/doc-invalid-section.json +0
-0tests/qapi-schema/doc-invalid-start.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-invalid-start.json:3:1: Junk after '##' at start of documentation comment +tests/qapi-schema/doc-invalid-start.qapi:3:1: Junk after '##' at start of documentation commenttests/qapi-schema/doc-invalid-start.qapi renamed from tests/qapi-schema/doc-invalid-start.json +0
-0tests/qapi-schema/doc-missing-colon.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-missing-colon.json:4:1: Line should end with : +tests/qapi-schema/doc-missing-colon.qapi:4:1: Line should end with :tests/qapi-schema/doc-missing-colon.qapi renamed from tests/qapi-schema/doc-missing-colon.json +0
-0tests/qapi-schema/doc-missing-expr.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-missing-expr.json:3: Documentation for 'bar' is not followed by the definition +tests/qapi-schema/doc-missing-expr.qapi:3: Documentation for 'bar' is not followed by the definitiontests/qapi-schema/doc-missing-expr.qapi renamed from tests/qapi-schema/doc-missing-expr.json +0
-0tests/qapi-schema/doc-missing-space.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-missing-space.json:5:1: Missing space after # +tests/qapi-schema/doc-missing-space.qapi:5:1: Missing space after #tests/qapi-schema/doc-missing-space.qapi renamed from tests/qapi-schema/doc-missing-space.json +0
-0tests/qapi-schema/doc-missing.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-missing.json:5: Expression missing documentation comment +tests/qapi-schema/doc-missing.qapi:5: Expression missing documentation commenttests/qapi-schema/doc-missing.qapi renamed from tests/qapi-schema/doc-missing.json +0
-0tests/qapi-schema/doc-no-symbol.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/doc-no-symbol.json:3: Expression documentation required +tests/qapi-schema/doc-no-symbol.qapi:3: Expression documentation requiredtests/qapi-schema/doc-no-symbol.qapi renamed from tests/qapi-schema/doc-no-symbol.json +0
-0tests/qapi-schema/double-data.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/double-data.json:2:41: Duplicate key "data" +tests/qapi-schema/double-data.qapi:2:41: Duplicate key "data"tests/qapi-schema/double-data.qapi renamed from tests/qapi-schema/double-data.json +0
-0tests/qapi-schema/double-type.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/double-type.json:2: Unknown key 'command' in struct 'bar' +tests/qapi-schema/double-type.qapi:2: Unknown key 'command' in struct 'bar'tests/qapi-schema/double-type.qapi renamed from tests/qapi-schema/double-type.json +0
-0tests/qapi-schema/duplicate-key.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/duplicate-key.json:3:10: Duplicate key "key" +tests/qapi-schema/duplicate-key.qapi:3:10: Duplicate key "key"tests/qapi-schema/duplicate-key.qapi renamed from tests/qapi-schema/duplicate-key.json +0
-0tests/qapi-schema/empty.qapi renamed from tests/qapi-schema/empty.json +0
-0tests/qapi-schema/enum-bad-name.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-bad-name.json:2: Member of enum 'MyEnum' uses invalid name 'not^possible' +tests/qapi-schema/enum-bad-name.qapi:2: Member of enum 'MyEnum' uses invalid name 'not^possible'tests/qapi-schema/enum-bad-name.qapi renamed from tests/qapi-schema/enum-bad-name.json +0
-0tests/qapi-schema/enum-bad-prefix.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-bad-prefix.json:2: Enum 'MyEnum' requires a string for 'prefix' +tests/qapi-schema/enum-bad-prefix.qapi:2: Enum 'MyEnum' requires a string for 'prefix'tests/qapi-schema/enum-bad-prefix.qapi renamed from tests/qapi-schema/enum-bad-prefix.json +0
-0tests/qapi-schema/enum-clash-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-clash-member.json:2: 'one_two' (member of MyEnum) collides with 'one-two' (member of MyEnum) +tests/qapi-schema/enum-clash-member.qapi:2: 'one_two' (member of MyEnum) collides with 'one-two' (member of MyEnum)tests/qapi-schema/enum-clash-member.qapi renamed from tests/qapi-schema/enum-clash-member.json +0
-0tests/qapi-schema/enum-dict-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-dict-member.json:2: Member of enum 'MyEnum' requires a string name +tests/qapi-schema/enum-dict-member.qapi:2: Member of enum 'MyEnum' requires a string nametests/qapi-schema/enum-dict-member.qapi renamed from tests/qapi-schema/enum-dict-member.json +0
-0tests/qapi-schema/enum-int-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-int-member.json:3:31: Stray "1" +tests/qapi-schema/enum-int-member.qapi:3:31: Stray "1"tests/qapi-schema/enum-int-member.qapi renamed from tests/qapi-schema/enum-int-member.json +0
-0tests/qapi-schema/enum-member-case.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-member-case.json:4: 'Value' (member of NoWayThisWillGetWhitelisted) should not use uppercase +tests/qapi-schema/enum-member-case.qapi:4: 'Value' (member of NoWayThisWillGetWhitelisted) should not use uppercasetests/qapi-schema/enum-member-case.qapi renamed from tests/qapi-schema/enum-member-case.json +0
-0tests/qapi-schema/enum-missing-data.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-missing-data.json:2: Key 'data' is missing from enum 'MyEnum' +tests/qapi-schema/enum-missing-data.qapi:2: Key 'data' is missing from enum 'MyEnum'tests/qapi-schema/enum-missing-data.qapi renamed from tests/qapi-schema/enum-missing-data.json +0
-0tests/qapi-schema/enum-wrong-data.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/enum-wrong-data.json:2: Enum 'MyEnum' requires an array for 'data' +tests/qapi-schema/enum-wrong-data.qapi:2: Enum 'MyEnum' requires an array for 'data'tests/qapi-schema/enum-wrong-data.qapi renamed from tests/qapi-schema/enum-wrong-data.json +0
-0tests/qapi-schema/escape-outside-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/escape-outside-string.json:3:27: Stray "\" +tests/qapi-schema/escape-outside-string.qapi:3:27: Stray "\"tests/qapi-schema/escape-outside-string.qapi renamed from tests/qapi-schema/escape-outside-string.json +0
-0tests/qapi-schema/escape-too-big.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/escape-too-big.json:3:14: For now, \u escape only supports non-zero values up to \u007f +tests/qapi-schema/escape-too-big.qapi:3:14: For now, \u escape only supports non-zero values up to \u007ftests/qapi-schema/escape-too-big.qapi renamed from tests/qapi-schema/escape-too-big.json +0
-0tests/qapi-schema/escape-too-short.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/escape-too-short.json:3:14: \u escape needs 4 hex digits +tests/qapi-schema/escape-too-short.qapi:3:14: \u escape needs 4 hex digitstests/qapi-schema/escape-too-short.qapi renamed from tests/qapi-schema/escape-too-short.json +0
-0tests/qapi-schema/event-boxed-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/event-boxed-empty.json:2: Use of 'boxed' requires 'data' +tests/qapi-schema/event-boxed-empty.qapi:2: Use of 'boxed' requires 'data'tests/qapi-schema/event-boxed-empty.qapi renamed from tests/qapi-schema/event-boxed-empty.json +0
-0tests/qapi-schema/event-case.qapi renamed from tests/qapi-schema/event-case.json +0
-0tests/qapi-schema/event-nest-struct.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/event-nest-struct.json:1: Member 'a' of 'data' for event 'EVENT_A' should be a type name +tests/qapi-schema/event-nest-struct.qapi:1: Member 'a' of 'data' for event 'EVENT_A' should be a type nametests/qapi-schema/event-nest-struct.qapi renamed from tests/qapi-schema/event-nest-struct.json +0
-0tests/qapi-schema/flat-union-array-branch.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-array-branch.json:8: Member 'value1' of union 'TestUnion' cannot be an array +tests/qapi-schema/flat-union-array-branch.qapi:8: Member 'value1' of union 'TestUnion' cannot be an arraytests/qapi-schema/flat-union-array-branch.qapi renamed from tests/qapi-schema/flat-union-array-branch.json +0
-0tests/qapi-schema/flat-union-bad-base.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-bad-base.json:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion) +tests/qapi-schema/flat-union-bad-base.qapi:8: 'string' (member of TestTypeA) collides with 'string' (base of TestUnion)tests/qapi-schema/flat-union-bad-base.qapi renamed from tests/qapi-schema/flat-union-bad-base.json +0
-0tests/qapi-schema/flat-union-bad-discriminator.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-bad-discriminator.json:11: Discriminator of flat union 'TestUnion' requires a string name +tests/qapi-schema/flat-union-bad-discriminator.qapi:11: Discriminator of flat union 'TestUnion' requires a string nametests/qapi-schema/flat-union-bad-discriminator.qapi renamed from tests/qapi-schema/flat-union-bad-discriminator.json +0
-0tests/qapi-schema/flat-union-base-any.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-base-any.json:8: 'base' for union 'TestUnion' cannot use built-in type 'any' +tests/qapi-schema/flat-union-base-any.qapi:8: 'base' for union 'TestUnion' cannot use built-in type 'any'tests/qapi-schema/flat-union-base-any.qapi renamed from tests/qapi-schema/flat-union-base-any.json +0
-0tests/qapi-schema/flat-union-base-union.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-base-union.json:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase' +tests/qapi-schema/flat-union-base-union.qapi:14: 'base' for union 'TestUnion' cannot use union type 'UnionBase'tests/qapi-schema/flat-union-base-union.qapi renamed from tests/qapi-schema/flat-union-base-union.json +0
-0tests/qapi-schema/flat-union-clash-member.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-clash-member.json:11: 'name' (member of Branch1) collides with 'name' (member of Base) +tests/qapi-schema/flat-union-clash-member.qapi:11: 'name' (member of Branch1) collides with 'name' (member of Base)tests/qapi-schema/flat-union-clash-member.qapi renamed from tests/qapi-schema/flat-union-clash-member.json +0
-0tests/qapi-schema/flat-union-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-empty.json:4: Union 'Union' cannot have empty 'data' +tests/qapi-schema/flat-union-empty.qapi:4: Union 'Union' cannot have empty 'data'tests/qapi-schema/flat-union-empty.qapi renamed from tests/qapi-schema/flat-union-empty.json +0
-0tests/qapi-schema/flat-union-incomplete-branch.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-incomplete-branch.json:6: Union 'TestUnion' data missing 'value2' branch +tests/qapi-schema/flat-union-incomplete-branch.qapi:6: Union 'TestUnion' data missing 'value2' branchtests/qapi-schema/flat-union-incomplete-branch.qapi renamed from tests/qapi-schema/flat-union-incomplete-branch.json +0
-0tests/qapi-schema/flat-union-inline.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-inline.json:7: Member 'value1' of union 'TestUnion' should be a type name +tests/qapi-schema/flat-union-inline.qapi:7: Member 'value1' of union 'TestUnion' should be a type nametests/qapi-schema/flat-union-inline.qapi renamed from tests/qapi-schema/flat-union-inline.json +0
-0tests/qapi-schema/flat-union-int-branch.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-int-branch.json:8: Member 'value1' of union 'TestUnion' cannot use built-in type 'int' +tests/qapi-schema/flat-union-int-branch.qapi:8: Member 'value1' of union 'TestUnion' cannot use built-in type 'int'tests/qapi-schema/flat-union-int-branch.qapi renamed from tests/qapi-schema/flat-union-int-branch.json +0
-0tests/qapi-schema/flat-union-invalid-branch-key.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-invalid-branch-key.json:13: Discriminator value 'value_wrong' is not found in enum 'TestEnum' +tests/qapi-schema/flat-union-invalid-branch-key.qapi:13: Discriminator value 'value_wrong' is not found in enum 'TestEnum'tests/qapi-schema/flat-union-invalid-branch-key.qapi renamed from tests/qapi-schema/flat-union-invalid-branch-key.json +0
-0tests/qapi-schema/flat-union-invalid-discriminator.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-invalid-discriminator.json:13: Discriminator 'enum_wrong' is not a member of base struct 'TestBase' +tests/qapi-schema/flat-union-invalid-discriminator.qapi:13: Discriminator 'enum_wrong' is not a member of base struct 'TestBase'tests/qapi-schema/flat-union-invalid-discriminator.qapi renamed from tests/qapi-schema/flat-union-invalid-discriminator.json +0
-0tests/qapi-schema/flat-union-no-base.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-no-base.json:9: Flat union 'TestUnion' must have a base +tests/qapi-schema/flat-union-no-base.qapi:9: Flat union 'TestUnion' must have a basetests/qapi-schema/flat-union-no-base.qapi renamed from tests/qapi-schema/flat-union-no-base.json +0
-0tests/qapi-schema/flat-union-optional-discriminator.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-optional-discriminator.json:6: Discriminator of flat union 'MyUnion' does not allow optional name '*switch' +tests/qapi-schema/flat-union-optional-discriminator.qapi:6: Discriminator of flat union 'MyUnion' does not allow optional name '*switch'tests/qapi-schema/flat-union-optional-discriminator.qapi renamed from tests/qapi-schema/flat-union-optional-discriminator.json +0
-0tests/qapi-schema/flat-union-string-discriminator.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/flat-union-string-discriminator.json:13: Discriminator 'kind' must be of enumeration type +tests/qapi-schema/flat-union-string-discriminator.qapi:13: Discriminator 'kind' must be of enumeration typetests/qapi-schema/flat-union-string-discriminator.qapi renamed from tests/qapi-schema/flat-union-string-discriminator.json +0
-0tests/qapi-schema/funny-char.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/funny-char.json:2:36: Stray ";" +tests/qapi-schema/funny-char.qapi:2:36: Stray ";"tests/qapi-schema/funny-char.qapi renamed from tests/qapi-schema/funny-char.json +0
-0tests/qapi-schema/ident-with-escape.qapi renamed from tests/qapi-schema/ident-with-escape.json +0
-0tests/qapi-schema/include-before-err.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-before-err.json:2:13: Expected ":" +tests/qapi-schema/include-before-err.qapi:2:13: Expected ":"tests/qapi-schema/include-before-err.json deleted +0
-2@@ -1,2 +0,0 @@ -{ 'include': 'include-simple-sub.json' } -{ 'command' 'missing-colon' }tests/qapi-schema/include-before-err.qapi new file +2
-0@@ -0,0 +1,2 @@ +{ 'include': 'include-simple-sub.qapi' } +{ 'command' 'missing-colon' }tests/qapi-schema/include-cycle-b.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-cycle-c.json' }tests/qapi-schema/include-cycle-b.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-cycle-c.qapi' }tests/qapi-schema/include-cycle-c.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-cycle.json' }tests/qapi-schema/include-cycle-c.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-cycle.qapi' }tests/qapi-schema/include-cycle.err +3
-3@@ -1,3 +1,3 @@ -In file included from tests/qapi-schema/include-cycle.json:1: -In file included from tests/qapi-schema/include-cycle-b.json:1: -tests/qapi-schema/include-cycle-c.json:1: Inclusion loop for include-cycle.json +In file included from tests/qapi-schema/include-cycle.qapi:1: +In file included from tests/qapi-schema/include-cycle-b.qapi:1: +tests/qapi-schema/include-cycle-c.qapi:1: Inclusion loop for include-cycle.qapitests/qapi-schema/include-cycle.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-cycle-b.json' }tests/qapi-schema/include-cycle.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-cycle-b.qapi' }tests/qapi-schema/include-extra-junk.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-extra-junk.json:3: Invalid 'include' directive +tests/qapi-schema/include-extra-junk.qapi:3: Invalid 'include' directivetests/qapi-schema/include-extra-junk.json deleted +0
-3@@ -1,3 +0,0 @@ -# 'include' must be the sole member - -{ 'include': 'comments.json', 'junk': true }tests/qapi-schema/include-extra-junk.qapi new file +3
-0@@ -0,0 +1,3 @@ +# 'include' must be the sole member + +{ 'include': 'comments.qapi', 'junk': true }tests/qapi-schema/include-format-err.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-format-err.json:1: Invalid 'include' directive +tests/qapi-schema/include-format-err.qapi:1: Invalid 'include' directivetests/qapi-schema/include-format-err.json deleted +0
-2@@ -1,2 +0,0 @@ -{ 'include': 'include-simple-sub.json', - 'foo': 'bar' }tests/qapi-schema/include-format-err.qapi new file +2
-0@@ -0,0 +1,2 @@ +{ 'include': 'include-simple-sub.qapi', + 'foo': 'bar' }tests/qapi-schema/include-nested-err.err +2
-2@@ -1,2 +1,2 @@ -In file included from tests/qapi-schema/include-nested-err.json:1: -tests/qapi-schema/missing-colon.json:1:10: Expected ":" +In file included from tests/qapi-schema/include-nested-err.qapi:1: +tests/qapi-schema/missing-colon.qapi:1:10: Expected ":"tests/qapi-schema/include-nested-err.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'missing-colon.json' }tests/qapi-schema/include-nested-err.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'missing-colon.qapi' }tests/qapi-schema/include-no-file.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-no-file.json:1: No such file or directory: include-no-file-sub.json +tests/qapi-schema/include-no-file.qapi:1: No such file or directory: include-no-file-sub.qapitests/qapi-schema/include-no-file.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-no-file-sub.json' }tests/qapi-schema/include-no-file.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-no-file-sub.qapi' }tests/qapi-schema/include-non-file.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-non-file.json:1: Value of 'include' must be a string +tests/qapi-schema/include-non-file.qapi:1: Value of 'include' must be a stringtests/qapi-schema/include-non-file.qapi renamed from tests/qapi-schema/include-non-file.json +0
-0tests/qapi-schema/include-relpath-sub.qapi renamed from tests/qapi-schema/include-relpath-sub.json +0
-0tests/qapi-schema/include-relpath.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include/relpath.json' }tests/qapi-schema/include-relpath.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include/relpath.qapi' }tests/qapi-schema/include-repetition-sub.json deleted +0
-2@@ -1,2 +0,0 @@ -{ 'include': 'comments.json' } -{ 'include': 'comments.json' }tests/qapi-schema/include-repetition-sub.qapi new file +2
-0@@ -0,0 +1,2 @@ +{ 'include': 'comments.qapi' } +{ 'include': 'comments.qapi' }tests/qapi-schema/include-repetition.json deleted +0
-3@@ -1,3 +0,0 @@ -{ 'include': 'comments.json' } -{ 'include': 'include-repetition-sub.json' } -{ 'include': 'comments.json' }tests/qapi-schema/include-repetition.qapi new file +3
-0@@ -0,0 +1,3 @@ +{ 'include': 'comments.qapi' } +{ 'include': 'include-repetition-sub.qapi' } +{ 'include': 'comments.qapi' }tests/qapi-schema/include-self-cycle.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/include-self-cycle.json:1: Inclusion loop for include-self-cycle.json +tests/qapi-schema/include-self-cycle.qapi:1: Inclusion loop for include-self-cycle.qapitests/qapi-schema/include-self-cycle.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-self-cycle.json' }tests/qapi-schema/include-self-cycle.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-self-cycle.qapi' }tests/qapi-schema/include-simple-sub.qapi renamed from tests/qapi-schema/include-simple-sub.json +0
-0tests/qapi-schema/include-simple.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': 'include-simple-sub.json' }tests/qapi-schema/include-simple.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': 'include-simple-sub.qapi' }tests/qapi-schema/include/relpath.json deleted +0
-1@@ -1 +0,0 @@ -{ 'include': '../include-relpath-sub.json' }tests/qapi-schema/include/relpath.qapi new file +1
-0@@ -0,0 +1 @@ +{ 'include': '../include-relpath-sub.qapi' }tests/qapi-schema/indented-expr.qapi renamed from tests/qapi-schema/indented-expr.json +0
-0tests/qapi-schema/leading-comma-list.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/leading-comma-list.json:2:13: Expected "{", "[", "]", string, boolean or "null" +tests/qapi-schema/leading-comma-list.qapi:2:13: Expected "{", "[", "]", string, boolean or "null"tests/qapi-schema/leading-comma-list.qapi renamed from tests/qapi-schema/leading-comma-list.json +0
-0tests/qapi-schema/leading-comma-object.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/leading-comma-object.json:1:3: Expected string or "}" +tests/qapi-schema/leading-comma-object.qapi:1:3: Expected string or "}"tests/qapi-schema/leading-comma-object.qapi renamed from tests/qapi-schema/leading-comma-object.json +0
-0tests/qapi-schema/missing-colon.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/missing-colon.json:1:10: Expected ":" +tests/qapi-schema/missing-colon.qapi:1:10: Expected ":"tests/qapi-schema/missing-colon.qapi renamed from tests/qapi-schema/missing-colon.json +0
-0tests/qapi-schema/missing-comma-list.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/missing-comma-list.json:2:20: Expected "," or "]" +tests/qapi-schema/missing-comma-list.qapi:2:20: Expected "," or "]"tests/qapi-schema/missing-comma-list.qapi renamed from tests/qapi-schema/missing-comma-list.json +0
-0tests/qapi-schema/missing-comma-object.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/missing-comma-object.json:2:3: Expected "," or "}" +tests/qapi-schema/missing-comma-object.qapi:2:3: Expected "," or "}"tests/qapi-schema/missing-comma-object.qapi renamed from tests/qapi-schema/missing-comma-object.json +0
-0tests/qapi-schema/missing-type.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/missing-type.json:2: Expression is missing metatype +tests/qapi-schema/missing-type.qapi:2: Expression is missing metatypetests/qapi-schema/missing-type.qapi renamed from tests/qapi-schema/missing-type.json +0
-0tests/qapi-schema/nested-struct-data.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/nested-struct-data.json:2: Member 'a' of 'data' for command 'foo' should be a type name +tests/qapi-schema/nested-struct-data.qapi:2: Member 'a' of 'data' for command 'foo' should be a type nametests/qapi-schema/nested-struct-data.qapi renamed from tests/qapi-schema/nested-struct-data.json +0
-0tests/qapi-schema/non-objects.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/non-objects.json:1:1: Expected "{" +tests/qapi-schema/non-objects.qapi:1:1: Expected "{"tests/qapi-schema/non-objects.qapi renamed from tests/qapi-schema/non-objects.json +0
-0tests/qapi-schema/pragma-doc-required-crap.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/pragma-doc-required-crap.json:3: Pragma 'doc-required' must be boolean +tests/qapi-schema/pragma-doc-required-crap.qapi:3: Pragma 'doc-required' must be booleantests/qapi-schema/pragma-doc-required-crap.qapi renamed from tests/qapi-schema/pragma-doc-required-crap.json +0
-0tests/qapi-schema/pragma-extra-junk.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/pragma-extra-junk.json:3: Invalid 'pragma' directive +tests/qapi-schema/pragma-extra-junk.qapi:3: Invalid 'pragma' directivetests/qapi-schema/pragma-extra-junk.qapi renamed from tests/qapi-schema/pragma-extra-junk.json +0
-0tests/qapi-schema/pragma-name-case-whitelist-crap.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/pragma-name-case-whitelist-crap.json:3: Pragma name-case-whitelist must be a list of strings +tests/qapi-schema/pragma-name-case-whitelist-crap.qapi:3: Pragma name-case-whitelist must be a list of stringstests/qapi-schema/pragma-name-case-whitelist-crap.qapi renamed from tests/qapi-schema/pragma-name-case-whitelist-crap.json +0
-0tests/qapi-schema/pragma-non-dict.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/pragma-non-dict.json:3: Value of 'pragma' must be a dictionary +tests/qapi-schema/pragma-non-dict.qapi:3: Value of 'pragma' must be a dictionarytests/qapi-schema/pragma-non-dict.qapi renamed from tests/qapi-schema/pragma-non-dict.json +0
-0tests/qapi-schema/pragma-returns-whitelist-crap.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/pragma-returns-whitelist-crap.json:3: Pragma returns-whitelist must be a list of strings +tests/qapi-schema/pragma-returns-whitelist-crap.qapi:3: Pragma returns-whitelist must be a list of stringstests/qapi-schema/pragma-returns-whitelist-crap.qapi renamed from tests/qapi-schema/pragma-returns-whitelist-crap.json +0
-0tests/qapi-schema/qapi-schema-test.qapi renamed from tests/qapi-schema/qapi-schema-test.json +0
-0tests/qapi-schema/quoted-structural-chars.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/quoted-structural-chars.json:1:1: Expected "{" +tests/qapi-schema/quoted-structural-chars.qapi:1:1: Expected "{"tests/qapi-schema/quoted-structural-chars.qapi renamed from tests/qapi-schema/quoted-structural-chars.json +0
-0tests/qapi-schema/redefined-builtin.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/redefined-builtin.json:2: built-in 'size' is already defined +tests/qapi-schema/redefined-builtin.qapi:2: built-in 'size' is already definedtests/qapi-schema/redefined-builtin.qapi renamed from tests/qapi-schema/redefined-builtin.json +0
-0tests/qapi-schema/redefined-command.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/redefined-command.json:3: command 'foo' is already defined +tests/qapi-schema/redefined-command.qapi:3: command 'foo' is already definedtests/qapi-schema/redefined-command.qapi renamed from tests/qapi-schema/redefined-command.json +0
-0tests/qapi-schema/redefined-event.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/redefined-event.json:3: event 'EVENT_A' is already defined +tests/qapi-schema/redefined-event.qapi:3: event 'EVENT_A' is already definedtests/qapi-schema/redefined-event.qapi renamed from tests/qapi-schema/redefined-event.json +0
-0tests/qapi-schema/redefined-type.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/redefined-type.json:3: struct 'foo' is already defined +tests/qapi-schema/redefined-type.qapi:3: struct 'foo' is already definedtests/qapi-schema/redefined-type.qapi renamed from tests/qapi-schema/redefined-type.json +0
-0tests/qapi-schema/reserved-command-q.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-command-q.json:5: 'command' uses invalid name 'q-unix' +tests/qapi-schema/reserved-command-q.qapi:5: 'command' uses invalid name 'q-unix'tests/qapi-schema/reserved-command-q.qapi renamed from tests/qapi-schema/reserved-command-q.json +0
-0tests/qapi-schema/reserved-enum-q.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-enum-q.json:4: Member of enum 'Foo' uses invalid name 'q-Unix' +tests/qapi-schema/reserved-enum-q.qapi:4: Member of enum 'Foo' uses invalid name 'q-Unix'tests/qapi-schema/reserved-enum-q.qapi renamed from tests/qapi-schema/reserved-enum-q.json +0
-0tests/qapi-schema/reserved-member-has.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-member-has.json:5: Member of 'data' for command 'oops' uses reserved name 'has-a' +tests/qapi-schema/reserved-member-has.qapi:5: Member of 'data' for command 'oops' uses reserved name 'has-a'tests/qapi-schema/reserved-member-has.qapi renamed from tests/qapi-schema/reserved-member-has.json +0
-0tests/qapi-schema/reserved-member-q.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-member-q.json:4: Member of 'data' for struct 'Foo' uses invalid name 'q-unix' +tests/qapi-schema/reserved-member-q.qapi:4: Member of 'data' for struct 'Foo' uses invalid name 'q-unix'tests/qapi-schema/reserved-member-q.qapi renamed from tests/qapi-schema/reserved-member-q.json +0
-0tests/qapi-schema/reserved-member-u.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-member-u.json:7: Member of 'data' for struct 'Oops' uses reserved name 'u' +tests/qapi-schema/reserved-member-u.qapi:7: Member of 'data' for struct 'Oops' uses reserved name 'u'tests/qapi-schema/reserved-member-u.qapi renamed from tests/qapi-schema/reserved-member-u.json +0
-0tests/qapi-schema/reserved-member-underscore.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-member-underscore.json:4: Member of 'data' for struct 'Oops' uses invalid name '_oops' +tests/qapi-schema/reserved-member-underscore.qapi:4: Member of 'data' for struct 'Oops' uses invalid name '_oops'tests/qapi-schema/reserved-member-underscore.qapi renamed from tests/qapi-schema/reserved-member-underscore.json +0
-0tests/qapi-schema/reserved-type-kind.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-type-kind.json:2: enum 'UnionKind' should not end in 'Kind' +tests/qapi-schema/reserved-type-kind.qapi:2: enum 'UnionKind' should not end in 'Kind'tests/qapi-schema/reserved-type-kind.qapi renamed from tests/qapi-schema/reserved-type-kind.json +0
-0tests/qapi-schema/reserved-type-list.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/reserved-type-list.json:5: struct 'FooList' should not end in 'List' +tests/qapi-schema/reserved-type-list.qapi:5: struct 'FooList' should not end in 'List'tests/qapi-schema/reserved-type-list.qapi renamed from tests/qapi-schema/reserved-type-list.json +0
-0tests/qapi-schema/returns-alternate.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/returns-alternate.json:3: 'returns' for command 'oops' cannot use alternate type 'Alt' +tests/qapi-schema/returns-alternate.qapi:3: 'returns' for command 'oops' cannot use alternate type 'Alt'tests/qapi-schema/returns-alternate.qapi renamed from tests/qapi-schema/returns-alternate.json +0
-0tests/qapi-schema/returns-array-bad.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/returns-array-bad.json:2: 'returns' for command 'oops': array type must contain single type name +tests/qapi-schema/returns-array-bad.qapi:2: 'returns' for command 'oops': array type must contain single type nametests/qapi-schema/returns-array-bad.qapi renamed from tests/qapi-schema/returns-array-bad.json +0
-0tests/qapi-schema/returns-dict.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/returns-dict.json:2: 'returns' for command 'oops' should be a type name +tests/qapi-schema/returns-dict.qapi:2: 'returns' for command 'oops' should be a type nametests/qapi-schema/returns-dict.qapi renamed from tests/qapi-schema/returns-dict.json +0
-0tests/qapi-schema/returns-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/returns-unknown.json:2: 'returns' for command 'oops' uses unknown type 'NoSuchType' +tests/qapi-schema/returns-unknown.qapi:2: 'returns' for command 'oops' uses unknown type 'NoSuchType'tests/qapi-schema/returns-unknown.qapi renamed from tests/qapi-schema/returns-unknown.json +0
-0tests/qapi-schema/returns-whitelist.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/returns-whitelist.json:14: 'returns' for command 'no-way-this-will-get-whitelisted' cannot use built-in type 'int' +tests/qapi-schema/returns-whitelist.qapi:14: 'returns' for command 'no-way-this-will-get-whitelisted' cannot use built-in type 'int'tests/qapi-schema/returns-whitelist.qapi renamed from tests/qapi-schema/returns-whitelist.json +0
-0tests/qapi-schema/struct-base-clash-deep.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/struct-base-clash-deep.json:10: 'name' (member of Sub) collides with 'name' (member of Base) +tests/qapi-schema/struct-base-clash-deep.qapi:10: 'name' (member of Sub) collides with 'name' (member of Base)tests/qapi-schema/struct-base-clash-deep.qapi renamed from tests/qapi-schema/struct-base-clash-deep.json +0
-0tests/qapi-schema/struct-base-clash.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/struct-base-clash.json:5: 'name' (member of Sub) collides with 'name' (member of Base) +tests/qapi-schema/struct-base-clash.qapi:5: 'name' (member of Sub) collides with 'name' (member of Base)tests/qapi-schema/struct-base-clash.qapi renamed from tests/qapi-schema/struct-base-clash.json +0
-0tests/qapi-schema/struct-data-invalid.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/struct-data-invalid.json:1: 'data' for struct 'foo' should be a dictionary or type name +tests/qapi-schema/struct-data-invalid.qapi:1: 'data' for struct 'foo' should be a dictionary or type nametests/qapi-schema/struct-data-invalid.qapi renamed from tests/qapi-schema/struct-data-invalid.json +0
-0tests/qapi-schema/struct-member-invalid.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/struct-member-invalid.json:1: Member 'a' of 'data' for struct 'foo' should be a type name +tests/qapi-schema/struct-member-invalid.qapi:1: Member 'a' of 'data' for struct 'foo' should be a type nametests/qapi-schema/struct-member-invalid.qapi renamed from tests/qapi-schema/struct-member-invalid.json +0
-0tests/qapi-schema/trailing-comma-list.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/trailing-comma-list.json:2:36: Expected "{", "[", string, boolean or "null" +tests/qapi-schema/trailing-comma-list.qapi:2:36: Expected "{", "[", string, boolean or "null"tests/qapi-schema/trailing-comma-list.qapi renamed from tests/qapi-schema/trailing-comma-list.json +0
-0tests/qapi-schema/trailing-comma-object.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/trailing-comma-object.json:2:38: Expected string +tests/qapi-schema/trailing-comma-object.qapi:2:38: Expected stringtests/qapi-schema/trailing-comma-object.qapi renamed from tests/qapi-schema/trailing-comma-object.json +0
-0tests/qapi-schema/type-bypass-bad-gen.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/type-bypass-bad-gen.json:2: 'gen' of command 'foo' should only use false value +tests/qapi-schema/type-bypass-bad-gen.qapi:2: 'gen' of command 'foo' should only use false valuetests/qapi-schema/type-bypass-bad-gen.qapi renamed from tests/qapi-schema/type-bypass-bad-gen.json +0
-0tests/qapi-schema/unclosed-list.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unclosed-list.json:1:20: Expected "," or "]" +tests/qapi-schema/unclosed-list.qapi:1:20: Expected "," or "]"tests/qapi-schema/unclosed-list.qapi renamed from tests/qapi-schema/unclosed-list.json +0
-0tests/qapi-schema/unclosed-object.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unclosed-object.json:1:21: Expected "," or "}" +tests/qapi-schema/unclosed-object.qapi:1:21: Expected "," or "}"tests/qapi-schema/unclosed-object.qapi renamed from tests/qapi-schema/unclosed-object.json +0
-0tests/qapi-schema/unclosed-string.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unclosed-string.json:1:11: Missing terminating "'" +tests/qapi-schema/unclosed-string.qapi:1:11: Missing terminating "'"tests/qapi-schema/unclosed-string.qapi renamed from tests/qapi-schema/unclosed-string.json +0
-0tests/qapi-schema/unicode-str.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unicode-str.json:2: 'command' uses invalid name 'é' +tests/qapi-schema/unicode-str.qapi:2: 'command' uses invalid name 'é'tests/qapi-schema/unicode-str.qapi renamed from tests/qapi-schema/unicode-str.json +0
-0tests/qapi-schema/union-base-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-base-empty.json:5: Discriminator 'type' is not a member of base struct 'Empty' +tests/qapi-schema/union-base-empty.qapi:5: Discriminator 'type' is not a member of base struct 'Empty'tests/qapi-schema/union-base-empty.qapi renamed from tests/qapi-schema/union-base-empty.json +0
-0tests/qapi-schema/union-base-no-discriminator.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-base-no-discriminator.json:11: Simple union 'TestUnion' must not have a base +tests/qapi-schema/union-base-no-discriminator.qapi:11: Simple union 'TestUnion' must not have a basetests/qapi-schema/union-base-no-discriminator.qapi renamed from tests/qapi-schema/union-base-no-discriminator.json +0
-0tests/qapi-schema/union-branch-case.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-branch-case.json:2: 'Branch' (branch of NoWayThisWillGetWhitelisted) should not use uppercase +tests/qapi-schema/union-branch-case.qapi:2: 'Branch' (branch of NoWayThisWillGetWhitelisted) should not use uppercasetests/qapi-schema/union-branch-case.qapi renamed from tests/qapi-schema/union-branch-case.json +0
-0tests/qapi-schema/union-clash-branches.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-clash-branches.json:4: 'a_b' (branch of TestUnion) collides with 'a-b' (branch of TestUnion) +tests/qapi-schema/union-clash-branches.qapi:4: 'a_b' (branch of TestUnion) collides with 'a-b' (branch of TestUnion)tests/qapi-schema/union-clash-branches.qapi renamed from tests/qapi-schema/union-clash-branches.json +0
-0tests/qapi-schema/union-empty.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-empty.json:2: Union 'Union' cannot have empty 'data' +tests/qapi-schema/union-empty.qapi:2: Union 'Union' cannot have empty 'data'tests/qapi-schema/union-empty.qapi renamed from tests/qapi-schema/union-empty.json +0
-0tests/qapi-schema/union-invalid-base.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-invalid-base.json:8: 'base' for union 'TestUnion' cannot use built-in type 'int' +tests/qapi-schema/union-invalid-base.qapi:8: 'base' for union 'TestUnion' cannot use built-in type 'int'tests/qapi-schema/union-invalid-base.qapi renamed from tests/qapi-schema/union-invalid-base.json +0
-0tests/qapi-schema/union-optional-branch.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-optional-branch.json:2: Member of union 'Union' does not allow optional name '*a' +tests/qapi-schema/union-optional-branch.qapi:2: Member of union 'Union' does not allow optional name '*a'tests/qapi-schema/union-optional-branch.qapi renamed from tests/qapi-schema/union-optional-branch.json +0
-0tests/qapi-schema/union-unknown.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/union-unknown.json:2: Member 'unknown' of union 'Union' uses unknown type 'MissingType' +tests/qapi-schema/union-unknown.qapi:2: Member 'unknown' of union 'Union' uses unknown type 'MissingType'tests/qapi-schema/union-unknown.qapi renamed from tests/qapi-schema/union-unknown.json +0
-0tests/qapi-schema/unknown-escape.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unknown-escape.json:3:21: Unknown escape \x +tests/qapi-schema/unknown-escape.qapi:3:21: Unknown escape \xtests/qapi-schema/unknown-escape.qapi renamed from tests/qapi-schema/unknown-escape.json +0
-0tests/qapi-schema/unknown-expr-key.err +1
-1@@ -1 +1 @@ -tests/qapi-schema/unknown-expr-key.json:2: Unknown key 'bogus' in struct 'bar' +tests/qapi-schema/unknown-expr-key.qapi:2: Unknown key 'bogus' in struct 'bar'tests/qapi-schema/unknown-expr-key.qapi renamed from tests/qapi-schema/unknown-expr-key.json +0
-0Signature · 1 line
2.14.3
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH 3/3] qapi: Rename .json to .qapi
Hi
Quoted 12 lines · Daniel P. Berrangé
Quoted 11 lines · Eric Blake
Our QAPI input files aren't quite true JSON (comments being the obvious difference); naming things .json doesn't make that obvious. Use a new suffix .qapi that makes it easy to identify our files.
This change is mostly mechanical, but it is not just a global search-and-replace as some instances of '.json' really do refer to JSON files, or to a URL that can't change, and so on.
Signed-off-by Eric Blake <[email protected]>---
Quoted 8 lines
Quoted 2 lines
I'd also like help figuring out how to make .dir-locals.el give an automatic sane mode to all .qapi files
Stuff I'm reading the suggests the only way to achieve that is to use 'eval' which is considered unsafe for .dir-locals.el. As a result the user will get prompted to allow the "eval" to run when emacs starts which is unpleasant :-(
I suggested such patch some time ago:
"[PATCH 2/2] .dir-locals.el: add json schema to auto-mode"
I still consider that a one time prompt for this is fairly unintrusive (after all you, run so much code you trust blindly by doing make check from qemu :)
Quoted 3 lines
Alternatively though, just add "-*- json -*-" in a comment in the first line of the file
In each file, that's intrusive. Especially because there are no comments in json in theory :)
Signature · 1 line
Marc-André Lureau
Re: [Qemu-devel] [PATCH 3/3] qapi: Rename .json to .qapi
Quoted 25 lines · Marc-André Lureau
Hi
Quoted 12 lines · Daniel P. Berrangé
Quoted 11 lines · Eric Blake
Our QAPI input files aren't quite true JSON (comments being the obvious difference); naming things .json doesn't make that obvious. Use a new suffix .qapi that makes it easy to identify our files.
This change is mostly mechanical, but it is not just a global search-and-replace as some instances of '.json' really do refer to JSON files, or to a URL that can't change, and so on.
Signed-off-by Eric Blake <[email protected]>---
Quoted 8 lines
Quoted 2 lines
I'd also like help figuring out how to make .dir-locals.el give an automatic sane mode to all .qapi files
Stuff I'm reading the suggests the only way to achieve that is to use 'eval' which is considered unsafe for .dir-locals.el. As a result the user will get prompted to allow the "eval" to run when emacs starts which is unpleasant :-(
Quoted 7 lines
I suggested such patch some time ago:
"[PATCH 2/2] .dir-locals.el: add json schema to auto-mode"
I still consider that a one time prompt for this is fairly unintrusive (after all you, run so much code you trust blindly by doing make check from qemu :)
Quoting myself (Message-ID: <[email protected]>):
Not a nice user experience. [...]
Why can't we simply use the usual file name extension like a normal person?
If that's too much to ask, then I'd recommend adding modelines (like the ones you delete) to the Makefiles that lack one.
Quoted 5 lines
Quoted 2 lines
Alternatively though, just add "-*- json -*-" in a comment in the first line of the file
In each file, that's intrusive.
Interrupting every developer looking at source file with Emacs the first time with a question that has security implications is also intrusive. I've made my preference clear.
We already have modelines in 20 out of 190 .json files. The missing one are all under tests/.
Quoted 2 lines
Especially because there are no
comments in json in theory :)
That's one of the reasons we use "-*- Mode: Python -*-" instead.
Quoted 8 lines · Eric Blake
This has been mentioned on list before as a possible improvement, so I went ahead and did some renames to figure out how it would look. Patch 1 is something I hit on the way while debugging patch 2 and 3; patch 2 is rather non-controversial, and patch 3 may or may not be worth doing (but if we do it, it is going to cause a lot of rebase churn to anyone editing files in the meantime, although git rename detection will probably get things right more often than not).
Conflicts with my "[PATCH v2 00/29] Modularize generated QAPI code". Your series is much smaller. Would you mind rebasing it?
Quoted 11 lines · Markus Armbruster
Quoted 8 lines · Eric Blake
This has been mentioned on list before as a possible improvement, so I went ahead and did some renames to figure out how it would look. Patch 1 is something I hit on the way while debugging patch 2 and 3; patch 2 is rather non-controversial, and patch 3 may or may not be worth doing (but if we do it, it is going to cause a lot of rebase churn to anyone editing files in the meantime, although git rename detection will probably get things right more often than not).
Quoted 2 lines
Conflicts with my "[PATCH v2 00/29] Modularize generated QAPI code". Your series is much smaller. Would you mind rebasing it?
Of course, yours definitely goes in first. And let me know if I need to take care of some pull requests, based on your current situation.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org