diff options
author | M. Mohan Kumar <mohan@in.ibm.com> | 2011-10-25 12:10:39 +0530 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2011-10-31 12:34:16 +0530 |
commit | f02b77c9bfc5c3ac93a89026f8c1d320f61f02c9 (patch) | |
tree | 9a065027258646cf162f553d7d1c127ca28ba074 /qemu-option.h | |
parent | 15329e8338d5bb2b69e177d5ab4e01b8c1e488ff (diff) |
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.h | 3 |
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); |