History | View | Annotate | Download (14.9 kB)
qapi: fix documentation example
The QMP wire format uses "", not '', around strings.
Signed-off-by: Eric Blake <eblake@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qapi-types/visit.py: Inheritance for structs
This introduces a new 'base' key for struct definitions that refers toanother struct type. On the JSON level, the fields of the base type areincluded directly into the same namespace as the fields of the defined...
qapi: Anonymous unions
The discriminator for anonymous unions is the data type. This allows tohave a union type that allows both of these:
{ 'file': 'my_existing_block_device_id' } { 'file': { 'filename': '/tmp/mydisk.qcow2', 'read-only': true } }...
qapi: Flat unions with arbitrary discriminator
Instead of the rather verbose syntax that distinguishes base andsubclass fields...
{ "type": "file", "read-only": true, "data": { "filename": "test" } }
...we can now have both in the same namespace, allowing a more direct...
docs: Document QAPI union types
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>
qapi: fix error propagation
Don't overwrite / leak previously set errors.Make traversal cope with missing mandatory sub-structs.Don't try to end a container that could not be started.
v1->v2:- unchanged
v2->v3:- instead of examining, assert that we never overwrite errors with...
qapi: untangle next_list
Right now, the semantics of next_list are complicated. The caller must:
Fix some spelling bugs in documentation and comments
These errors were detected by codespell:
remaing -> remainingsoley -> solelyvirutal -> virtualseperate -> separate
libcacard.txt still needs some more patches.
Signed-off-by: Stefan Weil <sw@weilnetz.de>...
qapi: fix typos in documentation JSON examples
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fix spelling in comments and debug messages (recieve -> receive)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Reviewed-by: Andreas Färber <andreas.faerber@web.de>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
qapi: add QAPI code generation documentation
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>Signed-off-by: Luiz Capitulino <lcapitulino@gmail.com>