Statistics
| Branch: | Revision:

root / qobject / qdict.c @ feature-archipelago

History | View | Annotate | Download (16.9 kB)

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

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

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