aboutsummaryrefslogtreecommitdiff
path: root/qemu-option.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-03-21 16:17:21 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-06-04 13:49:34 -0300
commit384f2139ff681cd3c26de365417cff46c186b5f0 (patch)
treeac96be1c8207bdba05bda073dcbc71b0ae93c89d /qemu-option.h
parent584d4064c6de5c9f2f555d7afebbbde59c741b8f (diff)
downloadqemu-384f2139ff681cd3c26de365417cff46c186b5f0.zip
qemu-384f2139ff681cd3c26de365417cff46c186b5f0.tar.gz
qemu-384f2139ff681cd3c26de365417cff46c186b5f0.tar.bz2
qemu-option: introduce qemu_opt_set_err()
This is like qemu_opt_set(), except that it takes an Error argument. This new function allows for a incremental conversion of code using qemu_opt_set(). Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'qemu-option.h')
-rw-r--r--qemu-option.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-option.h b/qemu-option.h
index e9fbbb5..c0e022b 100644
--- a/qemu-option.h
+++ b/qemu-option.h
@@ -111,6 +111,8 @@ 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);
+void qemu_opt_set_err(QemuOpts *opts, const char *name, const char *value,
+ Error **errp);
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,