unicorn/msvc/unicorn
Lioncash 8728fea067
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.

Backports commit 4d91e9115cc6700113e772b19d1f39bbcf345977 from qemu
2018-02-21 22:26:38 -05:00
..
aarch64-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
aarch64eb-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
arm-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
armeb-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
m68k-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
mips-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
mips64-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
mips64el-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
mipsel-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
sparc-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
sparc64-softmmu Update MSVC projects 2018-02-17 15:23:57 -05:00
unicorn qobject: Simplify QObject 2018-02-19 21:37:48 -05:00
unicorn_static qobject: Simplify QObject 2018-02-19 21:37:48 -05:00
x86_64-softmmu target-i386: Enable control registers for MPX 2018-02-20 13:27:46 -05:00
config-host.h Added armbe support to MSVC branch. (#801) 2017-04-21 15:26:21 +08:00
prebuild_script.bat Added MSVC support for arm64eb. 2017-04-25 14:23:58 +10:00
qapi-types.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2018-02-19 23:14:37 -05:00
qapi-types.h qapi: Convert QType into QAPI built-in enum type 2018-02-19 21:47:05 -05:00
qapi-visit.c qapi-visit: Expose visit_type_FOO_members() 2018-02-21 22:26:38 -05:00
qapi-visit.h qapi-visit: Expose visit_type_FOO_members() 2018-02-21 22:26:38 -05:00