qapi-visit: Unify struct and union visit
commit59d9e84cc94b8268f13ec184acfb997e8f352593
authorMarkus Armbruster <armbru@redhat.com>
Thu, 18 Feb 2016 06:48:21 +0000 (17 23:48 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 19 Feb 2016 10:08:57 +0000 (19 11:08 +0100)
tree5cbb5106ea0c5de2837aed03338f932a374158ee
parent9a5cd424d5f06fb5293eb264456d89343c557558
qapi-visit: Unify struct and union visit

gen_visit_union() is now just like gen_visit_struct().  Rename
it to gen_visit_object(), use it for structs, and drop
gen_visit_struct().  Output is unchanged.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1453902888-20457-4-git-send-email-armbru@redhat.com>
[split out variant handling, rebase to earlier changes]
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1455778109-6278-8-git-send-email-eblake@redhat.com>
scripts/qapi-visit.py