qapi: Hide tag_name data member of variants
commitda9cb19385fc66b2cb2584bbbbcbf50246d057e2
authorEric Blake <eblake@redhat.com>
Thu, 14 Jul 2016 03:50:15 +0000 (13 21:50 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 19 Jul 2016 11:21:08 +0000 (19 13:21 +0200)
treecd58d2df5b69114b3fd82c8d5df05a5534c8addc
parentcd50a2564560986e865ff64fa73b59d2564076f0
qapi: Hide tag_name data member of variants

Clean up the only remaining external use of the tag_name field of
QAPISchemaObjectTypeVariants, by explicitly listing the generated
'type' tag for all variants in the testsuite (you can still tell
simple unions by the -wrapper types).  Then we can mark the
tag_name field as private by adding a leading underscore to prevent
any further use.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1468468228-27827-5-git-send-email-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi.py
tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema/test-qapi.py