qapi: Support downstream flat unions
commit857af5f06c3fb097d1bb6bc8a23b9992aac99e75
authorEric Blake <eblake@redhat.com>
Thu, 14 May 2015 12:50:59 +0000 (14 06:50 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 14 May 2015 16:21:21 +0000 (14 18:21 +0200)
tree7007532f36bdb0ab5194e4fbe2f47764b0f74b17
parentbb33729043ceda56b4068db13bdc17786ebd0ed0
qapi: Support downstream flat unions

Enhance the testsuite to cover downstream flat unions, including
the base type, discriminator name and type, and branch name and
type.  Update the generator to mangle the union names in the
appropriate places.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-types.py
scripts/qapi-visit.py
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out