Statistics
| Branch: | Revision:

root / qobject @ feature-archipelago

# Date Author Comment
bae3f92a 02/21/2014 11:11 pm Max Reitz

qdict: Extract non-QDicts in qdict_array_split()

Currently, qdict_array_split() only splits off entries with a key prefix
of "%u.", packing them into a new QDict. This patch makes it support
entries with the plain key "%u" as well, directly putting them into the...

05a8c222 01/22/2014 01:07 pm Max Reitz

qdict: Add qdict_array_split()

This function splits a QDict consisting of entries prefixed by
incrementally enumerated indices into a QList of QDicts.

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

9f23fc0c 01/22/2014 01:07 pm Max Reitz

qapi: extend qdict_flatten() for QLists

Reversing qdict_array_split(), qdict_flatten() should flatten QLists as
well by interpreting them as QDicts where every entry's key is its
index.

This allows bringing QDicts with QLists from QMP commands to the same...

59427871 01/06/2014 10:02 pm Peter Crosthwaite

qerror: Remove assert_no_error()

This is no longer needed, and is obsoleted by error_abort. Remove.

Signed-off-by: Peter Crosthwaite <>
Reviewed-by: Markus Armbruster <>
Signed-off-by: Luiz Capitulino <>

0a0ee0b9 12/06/2013 10:59 pm Anthony Liguori

Merge remote-tracking branch 'kwolf/tags/for-anthony' into staging

Block patches for 2.0 (flushing block-next)

  1. gpg: Signature made Fri 29 Nov 2013 08:43:18 AM PST using RSA key ID C88F2FD6
  2. gpg: Can't check signature: public key not found
  1. By Peter Lieven (17) and others...
47908a0f 12/02/2013 07:02 pm Stefan Weil

qobject: Fix compiler warning (missing gnu_printf format attribute)

gcc 4.8.2 reports this warning when extra warnings are enabled (-Wextra):

CC    qobject/qerror.o
qobject/qerror.c: In function ‘qerror_from_info’:
qobject/qerror.c:53:5: error:
function might be possible candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]...
6273d113 11/29/2013 02:40 pm Kevin Wolf

qdict: Fix memory leak in qdict_do_flatten()

Reported-by: Laszlo Ersek <>
Signed-off-by: Kevin Wolf <>
Signed-off-by: Stefan Hajnoczi <>

4d5977ea 11/29/2013 02:40 pm Kevin Wolf

qdict: Optimise qdict_do_flatten()

Nested QDicts used to be both entered recursively in order to move their
entries to the target QDict and also be moved themselves to the target
QDict like all other objects. This is harmless because for the top
level, qdict_do_flatten() will encounter the (now empty) QDict for a...

5726d872 09/25/2013 05:21 pm Benoît Canet

qdict: Extract qdict_extract_subqdict

Signed-off-by: Benoit Canet <>
Signed-off-by: Kevin Wolf <>

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 } }...
3d5b3ec6 05/23/2013 04:44 pm Michael Roth

json-parser: fix handling of large whole number values

Currently our JSON parser assumes that numbers lacking a fractional
value are integers and attempts to store them as QInt/int64 values. This
breaks in the case where the number overflows/underflows int64 values (which...

e2ec3f97 04/13/2013 10:40 pm Markus Armbruster

qjson: to_json() case QTYPE_QSTRING is buggy, rewrite

Known bugs in to_json():

  • A start byte for a three-byte sequence followed by less than two
    continuation bytes is split into one-byte sequences.
  • Start bytes for sequences longer than three bytes get misinterpreted...
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 <>

b382bc9a 03/15/2013 05:07 pm Kevin Wolf

Add qdict_clone_shallow()

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

a372823a 01/12/2013 07:42 pm Paolo Bonzini

build: move qobject files to qobject/ and libqemuutil.a

Signed-off-by: Paolo Bonzini <>