Re: [Qemu-devel] [PATCH v4 08/10] qapi: Allow anonymous base for flat union

2016-03-08 Thread Markus Armbruster
Eric Blake writes: > On 03/08/2016 09:23 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Rather than requiring all flat unions to explicitly create >>> a separate base struct, we can allow the qapi schema to specify >>> the common members via an inline dictionary. This is similar to >

Re: [Qemu-devel] [PATCH v4 08/10] qapi: Allow anonymous base for flat union

2016-03-08 Thread Eric Blake
On 03/08/2016 09:23 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Rather than requiring all flat unions to explicitly create >> a separate base struct, we can allow the qapi schema to specify >> the common members via an inline dictionary. This is similar to >> how commands can specify a

Re: [Qemu-devel] [PATCH v4 08/10] qapi: Allow anonymous base for flat union

2016-03-08 Thread Markus Armbruster
Eric Blake writes: > Rather than requiring all flat unions to explicitly create > a separate base struct, we can allow the qapi schema to specify > the common members via an inline dictionary. This is similar to > how commands can specify an inline anonymous type for its 'data'. > We already have

[Qemu-devel] [PATCH v4 08/10] qapi: Allow anonymous base for flat union

2016-03-05 Thread Eric Blake
Rather than requiring all flat unions to explicitly create a separate base struct, we can allow the qapi schema to specify the common members via an inline dictionary. This is similar to how commands can specify an inline anonymous type for its 'data'. We already have several struct types that only