summaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2013-12-20 19:28:04 +0100
committerKevin Wolf <kwolf@redhat.com>2014-01-22 12:07:17 +0100
commit9f23fc0c23ab16e9c16b41ed300786924f7a7768 (patch)
treed59cb201a0c83697da305b5fc08db4237813246f /include/qemu
parent05a8c2227157eda2540404999c4615d3bf343c18 (diff)
downloadqemu-9f23fc0c23ab16e9c16b41ed300786924f7a7768.tar.gz
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 form as they would be given as command-line options, thereby allowing them to be parsed the same way. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/qemu')
0 files changed, 0 insertions, 0 deletions