[sheepdog] [PATCH 01/13] uri: add g_auto macros for URI & QueryParams
Marc-André Lureau
marcandre.lureau at redhat.com
Thu Jul 9 21:42:22 CEST 2020
Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
include/qemu/uri.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/qemu/uri.h b/include/qemu/uri.h
index d201c61260d..b246a59449b 100644
--- a/include/qemu/uri.h
+++ b/include/qemu/uri.h
@@ -105,6 +105,9 @@ struct QueryParams *query_params_new (int init_alloc);
extern QueryParams *query_params_parse (const char *query);
extern void query_params_free (QueryParams *ps);
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(URI, uri_free)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(QueryParams, query_params_free)
+
#ifdef __cplusplus
}
#endif
--
2.27.0.221.ga08a83db2b
More information about the sheepdog
mailing list