Re: [Qemu-devel] [RFC PATCH 08/11] qapi: Anonymous unions

2013-07-12 Thread Eric Blake
On 07/12/2013 02:55 AM, Kevin Wolf wrote: > Am 11.07.2013 um 21:47 hat Eric Blake geschrieben: >> On 07/09/2013 03:53 AM, Kevin Wolf wrote: >>> The discriminator for anonymous unions is the data type. This allows to >>> have a union type that allows both of these: >>> >>> { 'file': 'my_existing

Re: [Qemu-devel] [RFC PATCH 08/11] qapi: Anonymous unions

2013-07-12 Thread Kevin Wolf
Am 11.07.2013 um 21:47 hat Eric Blake geschrieben: > On 07/09/2013 03:53 AM, Kevin Wolf wrote: > > The discriminator for anonymous unions is the data type. This allows to > > have a union type that allows both of these: > > > > { 'file': 'my_existing_block_device_id' } > > { 'file': { 'fil

Re: [Qemu-devel] [RFC PATCH 08/11] qapi: Anonymous unions

2013-07-11 Thread Eric Blake
On 07/09/2013 03:53 AM, Kevin Wolf wrote: > The discriminator for anonymous unions is the data type. This allows to > have a union type that allows both of these: > > { 'file': 'my_existing_block_device_id' } > { 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } } > > Unions