History | View | Annotate | Download (16.9 kB)
qdict: Extract non-QDicts in qdict_array_split()
Currently, qdict_array_split() only splits off entries with a key prefixof "%u.", packing them into a new QDict. This patch makes it supportentries with the plain key "%u" as well, directly putting them into the...
qdict: Add qdict_array_split()
This function splits a QDict consisting of entries prefixed byincrementally enumerated indices into a QList of QDicts.
Signed-off-by: Max Reitz <mreitz@redhat.com>Reviewed-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>...
qapi: extend qdict_flatten() for QLists
Reversing qdict_array_split(), qdict_flatten() should flatten QLists aswell by interpreting them as QDicts where every entry's key is itsindex.
This allows bringing QDicts with QLists from QMP commands to the same...
qdict: Fix memory leak in qdict_do_flatten()
Reported-by: Laszlo Ersek <lersek@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qdict: Optimise qdict_do_flatten()
Nested QDicts used to be both entered recursively in order to move theirentries to the target QDict and also be moved themselves to the targetQDict like all other objects. This is harmless because for the toplevel, qdict_do_flatten() will encounter the (now empty) QDict for a...
qdict: Extract qdict_extract_subqdict
Signed-off-by: Benoit Canet <benoit@irqsave.net>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Implement qdict_flatten()
qdict_flatten(): For each nested QDict with key x, all fields with key yare moved to this QDict and their key is renamed to "x.y". This operationis applied recursively for nested QDicts.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>...
Add qdict_clone_shallow()
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Reviewed-by: Eric Blake <eblake@redhat.com>Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
build: move qobject files to qobject/ and libqemuutil.a
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>