option: add g_auto for QemuOpts
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Jul 2021 06:32:37 +0000 (10:32 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Dec 2021 06:50:22 +0000 (10:50 +0400)
Used in the next commit.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
include/qemu/option.h

index 306bf0757509c5a8332f0e3923307edd7bda5443..bbd86e1c4eab7f898413f727d42e790bb03ca6c0 100644 (file)
@@ -150,4 +150,6 @@ QDict *keyval_parse(const char *params, const char *implied_key,
                     bool *help, Error **errp);
 void keyval_merge(QDict *old, const QDict *new, Error **errp);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QemuOpts, qemu_opts_del)
+
 #endif