[vala/0.34] gio-unix-2.0: Fix "g_unix_mount_at" binding



commit 9e93ec4cdaa89732ce4ff8fa836446b6878be38b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 18 23:15:40 2016 +0200

    gio-unix-2.0: Fix "g_unix_mount_at" binding

 vapi/gio-unix-2.0.vapi                             |    5 +++--
 .../packages/gio-unix-2.0/gio-unix-2.0-custom.vala |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index b41b4ed..d24683a 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -78,9 +78,9 @@ namespace GLib {
        [Compact]
        public class UnixMountEntry {
                [CCode (cname = "g_unix_mount_at")]
-               public UnixMountEntry (string mount_path, uint64 time_read);
+               public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
-               [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mounts_get")]
+               [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
                public unowned string get_device_path ();
                public unowned string get_fs_type ();
@@ -89,6 +89,7 @@ namespace GLib {
                public GLib.Icon guess_icon ();
                public string guess_name ();
                public bool guess_should_display ();
+               [Version (since = "2.34")]
                public GLib.Icon guess_symbolic_icon ();
                public bool is_readonly ();
                public bool is_system_internal ();
diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala 
b/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
index 424e2ec..4b930b0 100644
--- a/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
+++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala
@@ -25,7 +25,7 @@ namespace GLib {
        [CCode (cname = "GUnixMountEntry", cheader_filename = "gio/gunixmounts.h", lower_case_cprefix = 
"g_unix_mount_", free_function = "g_unix_mount_free")]
        public class UnixMountEntry {
                [CCode (cname = "g_unix_mount_at")]
-               public UnixMountEntry (string mount_path, uint64 time_read);
+               public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
                public unowned string get_device_path ();
                public unowned string get_fs_type ();
@@ -34,11 +34,12 @@ namespace GLib {
                public GLib.Icon guess_icon ();
                public string guess_name ();
                public bool guess_should_display ();
+               [Version (since = "2.34")]
                public GLib.Icon guess_symbolic_icon ();
                public bool is_readonly ();
                public bool is_system_internal ();
 
-               [CCode (cname = "g_unix_mounts_get", cheader_filename = "gio/gunixmounts.h")]
+               [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
        }
 }


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