]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: make 'if' condition strings simple identifiers
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 4 Aug 2021 08:31:05 +0000 (12:31 +0400)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 26 Aug 2021 11:53:56 +0000 (13:53 +0200)
commit8a9f1e1d9cc55f5eb0946cbf8fd1ef9a0e7d3dac
tree11ccd49b95bbad5e049e02d0283266dfb9f883dd
parent2b7d2145369f2ca55ded9045393bb860ee3f6745
qapi: make 'if' condition strings simple identifiers

Change the 'if' condition strings to be C-agnostic. It will accept
'[A-Z][A-Z0-9_]*' identifiers. This allows to express configuration
conditions in other languages (Rust or Python for ex) or other more
suitable forms.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Tested-by: John Snow <jsnow@redhat.com>
Message-Id: <20210804083105.97531-11-marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Rebased with semantic conflict in redefined-event.json]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
25 files changed:
qapi/block-core.json
qapi/block-export.json
qapi/char.json
qapi/machine-target.json
qapi/migration.json
qapi/misc-target.json
qapi/qom.json
qapi/sockets.json
qapi/tpm.json
qapi/ui.json
qga/qapi-schema.json
scripts/qapi/common.py
scripts/qapi/expr.py
tests/qapi-schema/alternate-branch-if-invalid.err
tests/qapi-schema/bad-if-empty.err
tests/qapi-schema/bad-if-list.err
tests/qapi-schema/bad-if.json
tests/qapi-schema/doc-good.json
tests/qapi-schema/doc-good.out
tests/qapi-schema/doc-good.txt
tests/qapi-schema/features-missing-name.json
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/redefined-event.json
tests/qapi-schema/union-branch-if-invalid.err