qemu/scripts
Eric Blake 811d04fd0c qapi: Segregate anonymous unions into alternates in generator
Special-casing 'discriminator == {}' for handling anonymous unions
is getting awkward; since this particular type is not always a
dictionary on the wire, it is easier to treat it as a completely
different class of type, "alternate", so that if a type is listed
in the union_types array, we know it is not an anonymous union.

This patch just further segregates union handling, to make sure that
anonymous unions are not stored in union_types, and splitting up
check_union() into separate functions.  A future patch will change
the qapi grammar, and having the segregation already in place will
make it easier to deal with the distinct meta-type.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-05-05 18:39:00 +02:00
..
kvm
qemu-guest-agent
qmp
tracetool
acpi_extract.py
acpi_extract_preprocess.py
analyse-9p-simpletrace.py
analyze-migration.py
check-qerror.sh
checkpatch.pl
cleanup-trace-events.pl
coverity-model.c
create_config
disas-objdump.pl
dump-guest-memory.py
extract-vsssdk-headers
feature_to_c.sh
get_maintainer.pl
gtester-cat
hxtool
make-release
make_device_config.sh
ordereddict.py
qapi-commands.py
qapi-event.py
qapi-types.py qapi: Segregate anonymous unions into alternates in generator 2015-05-05 18:39:00 +02:00
qapi-visit.py qapi: Segregate anonymous unions into alternates in generator 2015-05-05 18:39:00 +02:00
qapi.py qapi: Segregate anonymous unions into alternates in generator 2015-05-05 18:39:00 +02:00
qemu-binfmt-conf.sh
qemu-gdb.py
qtest.py
refresh-pxe-roms.sh
shaderinclude.pl
signrom.py
simpletrace.py
switch-timer-api
texi2pod.pl
tracetool.py
update-acpi.sh
update-linux-headers.sh
vmstate-static-checker.py