From 60d5666f7d4eec6df4a3d066769009f0c1a685bf Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 28 Mar 2012 14:16:37 -0300 Subject: 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 Reviewed-By: Laszlo Ersek --- qemu-config.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index bdb381da4..bb3bff426 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -661,6 +661,11 @@ QemuOptsList *qemu_find_opts(const char *group) return ret; } +QemuOptsList *qemu_find_opts_err(const char *group, Error **errp) +{ + return find_list(vm_config_groups, group, errp); +} + void qemu_add_opts(QemuOptsList *list) { int entries, i; -- cgit v1.2.3