summaryrefslogtreecommitdiffstats
path: root/include/qapi
diff options
context:
space:
mode:
authorPaolo Bonzini2021-05-24 12:57:51 +0200
committerPaolo Bonzini2021-06-04 13:50:04 +0200
commitc0d4aa82f895af67cbf7772324e05605e22b4162 (patch)
tree2478fc93bd350a58e49dfcad8000411d8f87efa7 /include/qapi
parentqemu-config: parse configuration files to a QDict (diff)
downloadqemu-c0d4aa82f895af67cbf7772324e05605e22b4162.tar.gz
qemu-c0d4aa82f895af67cbf7772324e05605e22b4162.tar.xz
qemu-c0d4aa82f895af67cbf7772324e05605e22b4162.zip
vl: plumb keyval-based options into -readconfig
Let -readconfig support parsing command line options into QDict or QemuOpts. This will be used to add back support for objects in -readconfig. Cc: Markus Armbruster <armbru@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210524105752.3318299-3-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qapi')
-rw-r--r--include/qapi/qmp/qdict.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qapi/qmp/qdict.h b/include/qapi/qmp/qdict.h
index 9934539c1b..d5b5430e21 100644
--- a/include/qapi/qmp/qdict.h
+++ b/include/qapi/qmp/qdict.h
@@ -64,4 +64,7 @@ const char *qdict_get_try_str(const QDict *qdict, const char *key);
QDict *qdict_clone_shallow(const QDict *src);
+QObject *qdict_crumple(const QDict *src, Error **errp);
+void qdict_flatten(QDict *qdict);
+
#endif /* QDICT_H */