qapi: Drop simple unions
commit4e99f4b12c0e47898e8358a5c8fa54267bb16185
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Sep 2021 14:31:32 +0000 (17 16:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (27 08:23 +0200)
treea93792619d67b2345037d7862c1ac1d31535c31b
parent76432d988b67d95006d0aa66dce2aa5999868d29
qapi: Drop simple unions

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.

The previous commits eliminated simple union from the tree.  Now drop
them from the QAPI schema language entirely, and update mentions of
"flat union" to just "union".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-22-armbru@redhat.com>
13 files changed:
docs/devel/qapi-code-gen.rst
scripts/qapi/expr.py
scripts/qapi/schema.py
tests/qapi-schema/flat-union-array-branch.json
tests/qapi-schema/flat-union-empty.json
tests/qapi-schema/flat-union-int-branch.json
tests/qapi-schema/flat-union-no-base.err
tests/qapi-schema/flat-union-no-base.json
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/reserved-member-u.json
tests/qapi-schema/union-base-empty.json
tests/qapi-schema/union-base-no-discriminator.err
tests/qapi-schema/union-base-no-discriminator.json