aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/qmp/qdict.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2013-07-08 17:11:58 +0200
committerKevin Wolf <kwolf@redhat.com>2013-07-26 22:01:31 +0200
commitf660dc6a2e97756596b2e79ce6127a3034f2308b (patch)
tree2fce1bb3445ea9a74b60715ccf00e213bdbd0f0d /include/qapi/qmp/qdict.h
parent29c4e2b50d95f4a15c3dd62b39f3402f05a34907 (diff)
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>
Diffstat (limited to 'include/qapi/qmp/qdict.h')
-rw-r--r--include/qapi/qmp/qdict.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qapi/qmp/qdict.h b/include/qapi/qmp/qdict.h
index 685b2e3fcb..d6855d112e 100644
--- a/include/qapi/qmp/qdict.h
+++ b/include/qapi/qmp/qdict.h
@@ -65,5 +65,6 @@ int qdict_get_try_bool(const QDict *qdict, const char *key, int def_value);
const char *qdict_get_try_str(const QDict *qdict, const char *key);
QDict *qdict_clone_shallow(const QDict *src);
+void qdict_flatten(QDict *qdict);
#endif /* QDICT_H */