From 94ac726842d37b50c7742ecb643bebe2e5d72cd2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 27 May 2010 21:06:04 +0200 Subject: error: New qemu_opts_loc_restore() Needed for decent error locations when complaining about options outside of qemu_opts_foreach(). That one sets the location already. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- qemu-option.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qemu-option.c') diff --git a/qemu-option.c b/qemu-option.c index 30327d480..1f8f41ae7 100644 --- a/qemu-option.c +++ b/qemu-option.c @@ -728,6 +728,11 @@ void qemu_opts_reset(QemuOptsList *list) } } +void qemu_opts_loc_restore(QemuOpts *opts) +{ + loc_restore(&opts->loc); +} + int qemu_opts_set(QemuOptsList *list, const char *id, const char *name, const char *value) { -- cgit v1.2.3