Statistics
| Branch: | Revision:

root / include / qapi @ 34b5d2c6

Name Size
  qmp
dealloc-visitor.h 585 Bytes
error.h 2.7 kB
opts-visitor.h 1.1 kB
qmp-input-visitor.h 650 Bytes
qmp-output-visitor.h 645 Bytes
string-input-visitor.h 594 Bytes
string-output-visitor.h 650 Bytes
visitor-impl.h 3 kB
visitor.h 2.7 kB

Latest revisions

# Date Author Comment
20840d4c 09/09/2013 10:17 pm Tomoki Sekiyama

error: Add error_set_win32 and error_setg_win32

These functions help maintaining homogeneous formatting of error messages
with Windows error code and description (generated by
g_win32_error_message()).

Signed-off-by: Tomoki Sekiyama <>...

15a849be 08/20/2013 06:52 pm Laszlo Ersek

OptsVisitor: don't try to flatten overlong integer ranges

Prevent mistyped command line options from incurring high memory and CPU
usage at startup. 64K elements in a range should be enough for everyone
(TM).

The OPTS_VISITOR_RANGE_MAX macro is public so that unit tests can...

f660dc6a 07/26/2013 11:01 pm Kevin Wolf

Implement qdict_flatten()

qdict_flatten(): For each nested QDict with key x, all fields with key y
are moved to this QDict and their key is renamed to "x.y". This operation
is applied recursively for nested QDicts.

Signed-off-by: Kevin Wolf <>...

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 } }...
761d524d 07/26/2013 09:17 pm Kevin Wolf

qapi: Add visitor for implicit structs

These can be used when an embedded struct is parsed and members not
belonging to the struct may be present in the input (e.g. parsing a
flat namespace QMP union, where fields from both the base and one
of the alternative types are mixed in the JSON object)...

54028d75 06/17/2013 06:01 pm Luiz Capitulino

error: add error_setg_file_open() helper

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

dbfbc637 06/17/2013 06:01 pm Luiz Capitulino

qerror: drop QERR_OPEN_FILE_FAILED macro

Not used since the last commit.

Signed-off-by: Luiz Capitulino <>
Acked-by: Kevin Wolf <>

a678e26c 05/30/2013 04:08 pm Michael Roth

qapi: pad GenericList value fields to 64 bits

With the introduction of native list types, we now have types such as
int64List where the 'value' field is not a pointer, but the actual
64-bit value.

On 32-bit architectures, this can lead to situations where 'next' field...

997aba8e 05/18/2013 03:35 pm Michael Tokarev

remove some double-includes

Some source files #include the same header more than
once for no good reason. Remove second #includes in
such cases.

Signed-off-by: Michael Tokarev <>

54d49ac9 04/05/2013 03:42 pm Luiz Capitulino

qstring: add qstring_get_length()

Long overdue.

Signed-off-by: Luiz Capitulino <>
Reviewed-by: Eric Blake <>
Acked-by: Gerd Hoffmann <>

View revisions

Also available in: Atom