aboutsummaryrefslogtreecommitdiffstats
path: root/qemu-option.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-09-10 10:58:33 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 10:19:47 -0500
commit96729cbd293f47ca06fcb8ff3570a4c9a8328469 (patch)
treee597f7cb50a931056c9c5d7e0d3c9bb1d8651eac /qemu-option.h
parentd03f09ccdee789168b5a26d2f4c5187717ec5605 (diff)
QemuOpts: split option parser into two functions.
looking for id= and creating a new QemuOpts instance is splitted from the actual option parser code now, so the parser can be called from other contexts too. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-option.h')
-rw-r--r--qemu-option.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-option.h b/qemu-option.h
index 56c7eac07..9e52625cc 100644
--- a/qemu-option.h
+++ b/qemu-option.h
@@ -114,6 +114,7 @@ int qemu_opts_set(QemuOptsList *list, const char *id,
const char *name, const char *value);
const char *qemu_opts_id(QemuOpts *opts);
void qemu_opts_del(QemuOpts *opts);
+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);
typedef int (*qemu_opts_loopfunc)(QemuOpts *opts, void *opaque);