Re: [Qemu-block] [Qemu-devel] [PATCH v2 01/10] qapi: Add default-variant for flat unions

2018-06-13 Thread Max Reitz
On 2018-06-12 17:25, Markus Armbruster wrote: > Max Reitz writes: > >> This patch allows specifying a discriminator that is an optional member >> of the base struct. In such a case, a default value must be provided >> that is used when no value is given. > > Hmm. Can you explain why you need

Re: [Qemu-block] [Qemu-devel] [PATCH v2 01/10] qapi: Add default-variant for flat unions

2018-06-12 Thread Markus Armbruster
Max Reitz writes: > This patch allows specifying a discriminator that is an optional member > of the base struct. In such a case, a default value must be provided > that is used when no value is given. Hmm. Can you explain why you need this feature? > Signed-off-by: Max Reitz > --- >