summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChunyan Liu2014-06-05 11:20:58 +0200
committerStefan Hajnoczi2014-06-16 11:23:21 +0200
commit74c3c19765c1abf202561af20dfc8f52d9cff808 (patch)
tree07656154d78ca14879c94cff5383976583e90d9e /include
parentqcow.c: replace QEMUOptionParameter with QemuOpts (diff)
downloadqemu-74c3c19765c1abf202561af20dfc8f52d9cff808.tar.gz
qemu-74c3c19765c1abf202561af20dfc8f52d9cff808.tar.xz
qemu-74c3c19765c1abf202561af20dfc8f52d9cff808.zip
QemuOpts: export qemu_opt_find
Export qemu_opt_find for qcow2 driver using it. After replacing QEMUOptionParameter with QemuOpts, qcow2 driver will use qemu_opt_find to judge if an option is explicitly set, to replace the usage of .assigned in QEMUOptionParameter. Signed-off-by: Chunyan Liu <cyliu@suse.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/option.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/option.h b/include/qemu/option.h
index 44d9961c88..34552678c3 100644
--- a/include/qemu/option.h
+++ b/include/qemu/option.h
@@ -130,6 +130,7 @@ char *qemu_opt_get_del(QemuOpts *opts, const char *name);
* Returns: true if @opts includes 'help' or equivalent.
*/
bool qemu_opt_has_help_opt(QemuOpts *opts);
+QemuOpt *qemu_opt_find(QemuOpts *opts, const char *name);
bool qemu_opt_get_bool(QemuOpts *opts, const char *name, bool defval);
uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval);
uint64_t qemu_opt_get_size(QemuOpts *opts, const char *name, uint64_t defval);