[vala] gio-unix-2.0: Add "g_unix_mounts_for" binding



commit 8b5e415527e2992453fcc257d999f2550dd50927
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 18 23:19:54 2016 +0200

    gio-unix-2.0: Add "g_unix_mounts_for" binding

 vapi/gio-unix-2.0.vapi                             |    3 +++
 .../packages/gio-unix-2.0/gio-unix-2.0-custom.vala |    3 +++
 vapi/packages/gio-unix-2.0/gio-unix-2.0.gi         |    7 +++++++
 vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata   |    1 +
 4 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index d24683a..5a3a6fe 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -80,6 +80,9 @@ namespace GLib {
                [CCode (cname = "g_unix_mount_at")]
                public UnixMountEntry (string mount_path, out uint64 time_read = null);
                public int compare (GLib.UnixMountEntry mount);
+               [CCode (cname = "g_unix_mounts_for")]
+               [Version (since = "2.52")]
+               public static GLib.List<GLib.UnixMountEntry> @for (string file_path, out uint64 time_read = 
null);
                [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
                public unowned string get_device_path ();
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 4b930b0..9a2300f 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
@@ -39,6 +39,9 @@ namespace GLib {
                public bool is_readonly ();
                public bool is_system_internal ();
 
+               [CCode (cname = "g_unix_mounts_for")]
+               [Version (since = "2.52")]
+               public static GLib.List<UnixMountEntry> @for (string file_path, out uint64 time_read = null);
                [CCode (cname = "g_unix_mounts_get")]
                public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
        }
diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
index c413a5b..08923f8 100644
--- a/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
+++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.gi
@@ -21,6 +21,13 @@
                                <parameter name="mount2" type="GUnixMountEntry*"/>
                        </parameters>
                </function>
+               <function name="g_unix_mount_for" symbol="g_unix_mount_for">
+                       <return-type type="GUnixMountEntry*"/>
+                       <parameters>
+                               <parameter name="file_path" type="char*"/>
+                               <parameter name="time_read" type="guint64*"/>
+                       </parameters>
+               </function>
                <function name="g_unix_mount_free" symbol="g_unix_mount_free">
                        <return-type type="void"/>
                        <parameters>
diff --git a/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata 
b/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata
index 3acff57..1af9292 100644
--- a/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata
+++ b/vapi/packages/gio-unix-2.0/gio-unix-2.0.metadata
@@ -25,6 +25,7 @@ g_unix_mounts_changed_since name="mounts_changed_since"
 g_unix_mounts_get hidden="1"
 g_unix_mount_at hidden="1"
 g_unix_mount_compare hidden="1"
+g_unix_mount_for hidden="1"
 g_unix_mount_free hidden="1"
 g_unix_mount_get_device_path hidden="1"
 g_unix_mount_get_fs_type hidden="1"


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