mirror of
https://github.com/qemu/qemu.git
synced 2024-12-05 09:43:44 +08:00
4e99f4b12c
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>
8 lines
435 B
JSON
8 lines
435 B
JSON
# Potential C member name collision
|
|
# We reject use of 'u' as a member name, to allow it for internal use in
|
|
# putting union branch members in a separate namespace from QMP members.
|
|
# This is true even for non-unions, because it is possible to convert a
|
|
# struct to union while remaining backwards compatible in QMP.
|
|
# TODO - we could munge the member name to 'q_u' to avoid the collision
|
|
{ 'struct': 'Oops', 'data': { '*u': 'str' } }
|