[vala/staging] gio-unix-2.0: Add g_unix_mount_point_at and g_unix_mount_points_get
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] gio-unix-2.0: Add g_unix_mount_point_at and g_unix_mount_points_get
- Date: Sun, 23 Aug 2020 10:58:55 +0000 (UTC)
commit aa8e0098fee37c3bc90c43d0129a0de906239355
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Aug 23 09:09:15 2020 +0200
gio-unix-2.0: Add g_unix_mount_point_at and g_unix_mount_points_get
vapi/gio-unix-2.0.vapi | 7 ++++++-
vapi/packages/gio-unix-2.0/gio-unix-2.0-custom.vala | 11 +++++++++++
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, 25 insertions(+), 1 deletion(-)
---
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index 64d446142..8e468650c 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -119,10 +119,15 @@ namespace GLib {
[Compact]
public class UnixMountMonitorClass {
}
- [CCode (cheader_filename = "gio/gunixmounts.h")]
+ [CCode (cheader_filename = "gio/gunixmounts.h", cname = "GUnixMountPoint", free_function =
"g_unix_mount_point_free", lower_case_cprefix = "g_unix_mount_point_")]
[Compact]
public class UnixMountPoint {
+ [CCode (cname = "g_unix_mount_point_at")]
+ [Version (since = "2.66")]
+ public UnixMountPoint (string mount_path, out uint64 time_read = null);
public int compare (GLib.UnixMountPoint mount2);
+ [CCode (cname = "g_unix_mount_points_get")]
+ public static GLib.List<GLib.UnixMountPoint> @get (out uint64 time_read = null);
public unowned string get_device_path ();
public unowned string get_fs_type ();
public unowned string get_mount_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 7bc438054..0ade8fd61 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
@@ -49,4 +49,15 @@ namespace GLib {
[CCode (cname = "g_unix_mounts_get")]
public static GLib.List<UnixMountEntry> @get (out uint64 time_read = null);
}
+
+ [Compact]
+ [CCode (cname = "GUnixMountPoint", cheader_filename = "gio/gunixmounts.h", lower_case_cprefix =
"g_unix_mount_point_", free_function = "g_unix_mount_point_free")]
+ public class UnixMountPoint {
+ [CCode (cname = "g_unix_mount_point_at")]
+ [Version (since = "2.66")]
+ public UnixMountPoint (string mount_path, out uint64 time_read = null);
+
+ [CCode (cname = "g_unix_mount_points_get")]
+ public static GLib.List<UnixMountPoint> @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 2d94f5d7a..95e9d9834 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
@@ -155,6 +155,13 @@
<struct name="GUnixMountMonitorClass">
</struct>
<struct name="GUnixMountPoint">
+ <method name="at" symbol="g_unix_mount_point_at">
+ <return-type type="GUnixMountPoint*"/>
+ <parameters>
+ <parameter name="mount_path" type="char*"/>
+ <parameter name="time_read" type="guint64*"/>
+ </parameters>
+ </method>
<method name="compare" symbol="g_unix_mount_point_compare">
<return-type type="gint"/>
<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 95bde44e9..efd59b535 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
@@ -62,6 +62,7 @@ g_unix_mount_is_readonly hidden="1"
g_unix_mount_is_system_internal hidden="1"
g_unix_mount_monitor_new deprecated_since="2.44" replacement="UnixMountMonitor.get"
g_unix_mount_monitor_get transfer_ownership="1"
+g_unix_mount_point_at hidden="1"
g_unix_mount_point_guess_icon transfer_ownership="1"
g_unix_mount_point_guess_name transfer_ownership="1"
g_unix_mount_point_guess_symbolic_icon transfer_ownership="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]