OSDN Git Service

Implement qdict_flatten()
authorKevin Wolf <kwolf@redhat.com>
Mon, 8 Jul 2013 15:11:58 +0000 (17:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 26 Jul 2013 20:01:31 +0000 (22:01 +0200)
commitf660dc6a2e97756596b2e79ce6127a3034f2308b
tree2fce1bb3445ea9a74b60715ccf00e213bdbd0f0d
parent29c4e2b50d95f4a15c3dd62b39f3402f05a34907
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 <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qapi/qmp/qdict.h
qobject/qdict.c