]> git.proxmox.com Git - qemu.git/blobdiff - qemu-option.c
vnc: rename vnc-encoding-* vnc-enc-*
[qemu.git] / qemu-option.c
index 7f70d0f5fb6d7c9375ee3a74fd659cd9f5877fee..1f8f41ae7d0742ec7819e5fe9fd1f5868e21287b 100644 (file)
@@ -719,6 +719,20 @@ 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);
+    }
+}
+
+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)
 {