[glib] gio: Add autoptr declarations for GUnixMountEntry and GUnixMountPoint



commit 767296db9ca18d9112be9e0bcba115cf77fd1a3f
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Oct 25 15:20:47 2017 +0100

    gio: Add autoptr declarations for GUnixMountEntry and GUnixMountPoint
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788927

 gio/gunixmounts.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gunixmounts.h b/gio/gunixmounts.h
index b56b00c..04d6b07 100644
--- a/gio/gunixmounts.h
+++ b/gio/gunixmounts.h
@@ -96,6 +96,8 @@ GIcon *        g_unix_mount_guess_icon              (GUnixMountEntry    *mount_e
 GLIB_AVAILABLE_IN_ALL
 GIcon *        g_unix_mount_guess_symbolic_icon     (GUnixMountEntry    *mount_entry);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixMountEntry, g_unix_mount_free)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUnixMountPoint, g_unix_mount_point_free)
 
 GLIB_AVAILABLE_IN_ALL
 gint           g_unix_mount_point_compare           (GUnixMountPoint    *mount1,


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