qemu-patch-raspberry4/include/qapi/qmp
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
..
dispatch.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-lexer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-parser.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
json-streamer.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qbool.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qdict.h Add qdict_clone_shallow() 2013-03-15 16:07:49 +01:00
qerror.h qerror: drop QERR_OPEN_FILE_FAILED macro 2013-06-17 11:01:14 -04:00
qfloat.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qint.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00
qjson.h misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
qlist.h remove some double-includes 2013-05-18 16:35:12 +04:00
qobject.h qapi: Anonymous unions 2013-07-26 21:10:11 +02:00
qstring.h qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00
types.h qapi: move include files to include/qobject/ 2012-12-19 08:31:31 +01:00