[libdazzle] ring: add cleanup function for autoptr



commit 38fb83bf7447d26bed182cc60b6165bf6b162218
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jun 9 19:20:34 2017 -0700

    ring: add cleanup function for autoptr

 src/util/dzl-ring.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/util/dzl-ring.h b/src/util/dzl-ring.h
index 2212075..a34e0c9 100644
--- a/src/util/dzl-ring.h
+++ b/src/util/dzl-ring.h
@@ -75,6 +75,8 @@ void     dzl_ring_foreach     (DzlRing         *ring,
 DzlRing *dzl_ring_ref         (DzlRing         *ring);
 void     dzl_ring_unref       (DzlRing         *ring);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (DzlRing, dzl_ring_unref)
+
 G_END_DECLS
 
 #endif /* __DZL_RING_H__ */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]