Kevin Wolf 69dd62dfd6 qapi: Anonymous unions
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 like this are specified in the schema with an empty dict as
discriminator. For this example you could take:

    { 'union': 'BlockRef',
      'discriminator': {},
      'data': { 'definition': 'BlockOptions',
                'reference': 'str' } }
    { 'type': 'ExampleObject',
      'data: { 'file': 'BlockRef' } }

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2013-07-26 21:10:11 +02:00
2013-07-19 15:27:37 +08:00
2013-07-26 21:10:11 +02:00
2013-04-18 13:50:53 +02:00
2013-07-09 13:38:56 -05:00
2013-07-26 21:10:11 +02:00
2013-07-24 15:37:43 +02:00
2013-07-26 21:10:11 +02:00
2013-07-26 21:10:11 +02:00
2013-07-24 15:37:43 +02:00
2013-07-26 21:10:11 +02:00
2013-07-09 07:15:25 -07:00
2013-05-03 13:58:09 +02:00
2013-07-22 12:52:34 -05:00
2013-07-10 13:42:09 -04:00
2013-06-11 23:45:43 +04:00
2013-07-18 08:17:42 -07:00
2013-07-23 11:12:00 +02:00
2013-07-19 12:29:22 +08:00
2013-07-23 02:41:31 +02:00
2013-07-15 09:49:00 +02:00
2013-07-23 11:12:00 +02:00
2013-06-14 15:33:10 +01:00
2013-07-23 11:12:00 +02:00
2013-05-03 13:05:49 +02:00
2013-05-18 16:35:12 +04:00
2013-06-06 11:27:05 +02:00
2013-06-06 11:27:05 +02:00
2013-07-19 12:52:03 +04:00
2013-05-01 13:06:07 +02:00
2013-05-03 12:04:40 -05:00
2013-07-23 11:11:59 +02:00
2013-05-20 10:55:18 -05:00
2013-07-10 13:42:09 -04:00
2013-07-04 17:42:45 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
Languages
C 82.6%
C++ 7%
Python 3.3%
Dylan 2.8%
Shell 1.5%
Other 2.5%