Currently, qdict_array_split() splits a QDict like
{ "0.a": 42, "1": 23, "2.b": 84 }
into the QList
[ { "a": 42 } ]
with the QDict still being
{ "1": 23, "2.b": 84 }
However, it makes more sense to create the QList
[ { "a": 42 }, 23, { "b": 84 } ]
and having emptied the QDict.
This is implemented by this series.
Max Reitz (3):
qemu-config: Sections must consist of keys
qdict: Extract non-QDicts in qdict_array_split()
check-qdict: Adjust test for qdict_array_split()
qobject/qdict.c | 60 ++++++++++++++++++++++++++++++++++++++++-------------
tests/check-qdict.c | 22 ++++++++++++++------
util/qemu-config.c | 6 ++++++
3 files changed, 68 insertions(+), 20 deletions(-)
--
1.9.0