aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-option.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-10 20:15:29 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:34 +0100
commit01e7f18869c9ee4c84793f4a39ec1f5f4128a0aa (patch)
treec9b3e6dc97bfa8981cd7d088b4af1c220857c358 /qemu-option.h
parent0204276bc9108d6a927f4267b87338950a538671 (diff)
qemu-option: Functions to convert to/from QDict
The functions are somewhat restricted. Good enough for the job at hand. We'll extend them when we need more.
Diffstat (limited to 'qemu-option.h')
-rw-r--r--qemu-option.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-option.h b/qemu-option.h
index f3f1de755..d73538698 100644
--- a/qemu-option.h
+++ b/qemu-option.h
@@ -28,6 +28,7 @@
#include <stdint.h>
#include "qemu-queue.h"
+#include "qdict.h"
enum QEMUOptionParType {
OPT_FLAG,
@@ -118,6 +119,8 @@ void qemu_opts_del(QemuOpts *opts);
int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc);
int qemu_opts_do_parse(QemuOpts *opts, const char *params, const char *firstname);
QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, const char *firstname);
+QemuOpts *qemu_opts_from_qdict(QemuOptsList *list, const QDict *qdict);
+QDict *qemu_opts_to_qdict(QemuOpts *opts, QDict *qdict);
typedef int (*qemu_opts_loopfunc)(QemuOpts *opts, void *opaque);
int qemu_opts_print(QemuOpts *opts, void *dummy);