diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-10 10:58:33 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-11 10:19:47 -0500 |
commit | 96729cbd293f47ca06fcb8ff3570a4c9a8328469 (patch) | |
tree | e597f7cb50a931056c9c5d7e0d3c9bb1d8651eac /qemu-option.h | |
parent | d03f09ccdee789168b5a26d2f4c5187717ec5605 (diff) | |
download | qemu-96729cbd293f47ca06fcb8ff3570a4c9a8328469.zip |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-option.h b/qemu-option.h index 56c7eac07d..9e52625cc0 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); |