diff options
author | Eric Blake <eblake@redhat.com> | 2016-03-03 09:16:45 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:49:12 -0600 |
commit | 541e8481b11651c194a29c9bb6380476f1902e1b (patch) | |
tree | f78040b86b7121108bbc50985262d4ec17dc8b1e /pc-bios/Makefile | |
parent | 45eca41509ebcc9b4c4cfdf256e41e352e1fc8f8 (diff) | |
download | hqemu-541e8481b11651c194a29c9bb6380476f1902e1b.zip hqemu-541e8481b11651c194a29c9bb6380476f1902e1b.tar.gz |
qapi-visit: Expose visit_type_FOO_members()
Dan Berrange reported a case where he needs to work with a
QCryptoBlockOptions union type using the OptsVisitor, but only
visit one of the branches of that type (the discriminator is not
visited directly, but learned externally). When things were
boxed, it was easy: just visit the variant directly, which took
care of both allocating the variant and visiting its members, then
store that pointer in the union type. But now that things are
unboxed, we need a way to visit the members without allocation,
done by exposing visit_type_FOO_members() to the user.
Before the patch, we had quite a bit of code associated with
object_members_seen to make sure that a declaration of the helper
was in scope before any use of the function. But now that the
helper is public and declared in the header, the .c file no
longer needs to worry about topological sorting (the helper is
always in scope), which leads to some nice cleanups.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1457021813-10704-4-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'pc-bios/Makefile')
0 files changed, 0 insertions, 0 deletions