Re: [Qemu-devel] [PATCH 12/17] qapi: Don't special-case simple union wrappers

2016-02-22 Thread Daniel P. Berrange
On Fri, Feb 19, 2016 at 05:19:42PM -0700, Eric Blake wrote: > Simple unions were carrying a special case that hid their 'data' > QMP member from the resulting C struct, via the hack method > QAPISchemaObjectTypeVariant.simple_union_type(). But using the > work we started by unboxing flat union

[Qemu-devel] [PATCH 12/17] qapi: Don't special-case simple union wrappers

2016-02-19 Thread Eric Blake
Simple unions were carrying a special case that hid their 'data' QMP member from the resulting C struct, via the hack method QAPISchemaObjectTypeVariant.simple_union_type(). But using the work we started by unboxing flat union and alternate branches, we expose the simple union's implicit type in