From dd39244978627e41a66b98d20eceddb1d7d25def Mon Sep 17 00:00:00 2001 From: Dong Xu Wang Date: Thu, 6 Dec 2012 14:47:21 +0800 Subject: introduce qemu_opts_create_nofail function While id is NULL, qemu_opts_create can not fail, so ignore errors is fine. Signed-off-by: Dong Xu Wang Signed-off-by: Kevin Wolf --- qemu-option.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qemu-option.h') diff --git a/qemu-option.h b/qemu-option.h index ca729862d5..b0f8d1ecd6 100644 --- a/qemu-option.h +++ b/qemu-option.h @@ -133,6 +133,7 @@ int qemu_opt_foreach(QemuOpts *opts, qemu_opt_loopfunc func, void *opaque, QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id); QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, int fail_if_exists, Error **errp); +QemuOpts *qemu_opts_create_nofail(QemuOptsList *list); void qemu_opts_reset(QemuOptsList *list); void qemu_opts_loc_restore(QemuOpts *opts); int qemu_opts_set(QemuOptsList *list, const char *id, -- cgit v1.2.3