gmacros: Add g_autoqueue to automatically free queues

This works as g_auto(s)list already does, and allows to create queues that are
fully auto free'd on destruction.
This commit is contained in:
Marco Trevisan (Treviño)
2018-11-14 20:22:48 -06:00
parent 76966e6b28
commit 1d96e94070
5 changed files with 100 additions and 0 deletions

View File

@@ -419,6 +419,7 @@ g_autoptr
g_autofree
g_autolist
g_autoslist
g_autoqueue
G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC
G_DEFINE_AUTO_CLEANUP_FREE_FUNC