summaryrefslogtreecommitdiff
path: root/qemu-option.h
diff options
context:
space:
mode:
authorM. Mohan Kumar <mohan@in.ibm.com>2011-10-25 12:10:39 +0530
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2011-10-31 12:34:16 +0530
commitf02b77c9bfc5c3ac93a89026f8c1d320f61f02c9 (patch)
tree9a065027258646cf162f553d7d1c127ca28ba074 /qemu-option.h
parent15329e8338d5bb2b69e177d5ab4e01b8c1e488ff (diff)
downloadqemu-f02b77c9bfc5c3ac93a89026f8c1d320f61f02c9.zip
qemu: Add opt_set_bool functionality
Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'qemu-option.h')
-rw-r--r--qemu-option.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-option.h b/qemu-option.h
index b515813891..07958e4e90 100644
--- a/qemu-option.h
+++ b/qemu-option.h
@@ -105,10 +105,11 @@ struct QemuOptsList {
};
const char *qemu_opt_get(QemuOpts *opts, const char *name);
-int qemu_opt_get_bool(QemuOpts *opts, const char *name, int defval);
+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);
int qemu_opt_set(QemuOpts *opts, const char *name, const char *value);
+int qemu_opt_set_bool(QemuOpts *opts, const char *name, bool val);
typedef int (*qemu_opt_loopfunc)(const char *name, const char *value, void *opaque);
int qemu_opt_foreach(QemuOpts *opts, qemu_opt_loopfunc func, void *opaque,
int abort_on_failure);