]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qapi-schema: Prepare for simple union UserDefListUnion removal
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Sep 2021 14:31:22 +0000 (16:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (08:23 +0200)
commitdffd8ff9e6ab7efff941966ecc5d0b9a65f61e51
treef4627d82141cdf3165f1128d4b8b417091807f7f
parent277b51fc018eea4432870fca1bac7f6468c4314c
tests/qapi-schema: Prepare for simple union UserDefListUnion removal

Simple unions predate flat unions.  Having both complicates the QAPI
schema language and the QAPI generator.  We haven't been using simple
unions in new code for a long time, because they are less flexible and
somewhat awkward on the wire.

To prepare for their removal, simple union UserDefListUnion has to go.
It is used to cover arrays.  The next few commits will eliminate its
uses, and then it gets deleted.  As a first step, provide struct
ArrayStruct for the tests to be rewritten.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-12-armbru@redhat.com>
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out