summaryrefslogtreecommitdiff
path: root/qemu-config.h
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2012-03-28 14:16:37 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2012-06-04 13:49:35 -0300
commit60d5666f7d4eec6df4a3d066769009f0c1a685bf (patch)
treeee3daa91760009707492e08c10394d149a100e1d /qemu-config.h
parent2ac20613384c1c66bc27302e1e38698fa238bb2f (diff)
downloadqemu-60d5666f7d4eec6df4a3d066769009f0c1a685bf.tar.gz
qemu-60d5666f7d4eec6df4a3d066769009f0c1a685bf.tar.bz2
qemu-60d5666f7d4eec6df4a3d066769009f0c1a685bf.zip
qemu-config: introduce qemu_find_opts_err()
This is like qemu_find_opts(), except that it takes an Error argument. This new function allows for a incremental conversion of code using qemu_find_opts(). Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'qemu-config.h')
-rw-r--r--qemu-config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-config.h b/qemu-config.h
index 6d7365d35b..e9f2ef4c7b 100644
--- a/qemu-config.h
+++ b/qemu-config.h
@@ -1,11 +1,14 @@
#ifndef QEMU_CONFIG_H
#define QEMU_CONFIG_H
+#include "error.h"
+
extern QemuOptsList qemu_fsdev_opts;
extern QemuOptsList qemu_virtfs_opts;
extern QemuOptsList qemu_spice_opts;
QemuOptsList *qemu_find_opts(const char *group);
+QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
void qemu_add_opts(QemuOptsList *list);
int qemu_set_option(const char *str);
int qemu_global_option(const char *str);