Statistics
| Branch: | Revision:

root / docs / qapi-code-gen.txt @ 795ca114

History | View | Annotate | Download (14.9 kB)

# Date Author Comment
63922c64 10/26/2013 12:01 pm Eric Blake

qapi: fix documentation example

The QMP wire format uses "", not '', around strings.

  • docs/qapi-code-gen.txt: Fix typo.

Signed-off-by: Eric Blake <>
Signed-off-by: Michael Tokarev <>

622f557f 10/11/2013 05:50 pm Kevin Wolf

qapi-types/visit.py: Inheritance for structs

This introduces a new 'base' key for struct definitions that refers to
another struct type. On the JSON level, the fields of the base type are
included directly into the same namespace as the fields of the defined...

69dd62df 07/26/2013 10:10 pm Kevin Wolf

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 } }...
50f2bdc7 07/26/2013 10:09 pm Kevin Wolf

qapi: Flat unions with arbitrary discriminator

Instead of the rather verbose syntax that distinguishes base and
subclass fields...

{ "type": "file",
"read-only": true,
"data": {
"filename": "test"
} }

...we can now have both in the same namespace, allowing a more direct...

51631493 07/26/2013 09:17 pm Kevin Wolf

docs: Document QAPI union types

Signed-off-by: Kevin Wolf <>
Reviewed-by: Eric Blake <>

d195325b 07/23/2012 01:55 pm Paolo Bonzini

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...

3a86a0fa 03/27/2012 03:14 pm Paolo Bonzini

qapi: untangle next_list

Right now, the semantics of next_list are complicated. The caller must:

  • call start_list
  • call next_list for each element including the first
  • on the first call to next_list, the second argument should point to
    NULL and the result is the head of the list. On subsequent calls,...
4238e264 11/17/2011 02:57 pm Stefan Weil

Fix some spelling bugs in documentation and comments

These errors were detected by codespell:

remaing -> remaining
soley -> solely
virutal -> virtual
seperate -> separate

libcacard.txt still needs some more patches.

Signed-off-by: Stefan Weil <>...

acf8394e 11/01/2011 08:23 am Stefan Hajnoczi

qapi: fix typos in documentation JSON examples

Signed-off-by: Stefan Hajnoczi <>

2542bfd5 08/29/2011 01:47 pm Stefan Weil

Fix spelling in comments and debug messages (recieve -> receive)

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

b84da831 07/21/2011 10:48 pm Michael Roth

qapi: add QAPI code generation documentation

Signed-off-by: Michael Roth <>
Signed-off-by: Luiz Capitulino <>