diff options
Diffstat (limited to 'qemu-option.c')
-rw-r--r-- | qemu-option.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu-option.c b/qemu-option.c index 7f70d0f5fb..30327d4804 100644 --- a/qemu-option.c +++ b/qemu-option.c @@ -719,6 +719,15 @@ QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id, int fail_if_exist return opts; } +void qemu_opts_reset(QemuOptsList *list) +{ + QemuOpts *opts, *next_opts; + + QTAILQ_FOREACH_SAFE(opts, &list->head, next, next_opts) { + qemu_opts_del(opts); + } +} + int qemu_opts_set(QemuOptsList *list, const char *id, const char *name, const char *value) { |