| Branch: | Revision:

root / qobject @ feature-archipelago

Name Size
Makefile.objs 151 Bytes
json-lexer.c 9.3 kB
json-parser.c 17.3 kB
json-streamer.c 3.2 kB
qbool.c 1.2 kB
qdict.c 16.9 kB
qerror.c 2.9 kB
qfloat.c 1.3 kB
qint.c 1.2 kB
qjson.c 6.9 kB
qlist.c 3.2 kB
qstring.c 3.2 kB

Latest revisions

# 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

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

View revisions

Also available in: Atom