summaryrefslogtreecommitdiff
path: root/vapi/gio-unix-2.0.vapi
diff options
context:
space:
mode:
authorJaap A. Haitsma <jaap@haitsma.org>2009-07-11 22:51:22 +0200
committerJaap A. Haitsma <jaap@haitsma.org>2009-07-11 22:51:22 +0200
commit42691177a8cac60e02f2f1a7058c6def3dea48c9 (patch)
tree53447e9ab5466b0486011894248a154d19d10b6e /vapi/gio-unix-2.0.vapi
parent47117ec63872296743d20766012e268e5b23f655 (diff)
downloadvala-42691177a8cac60e02f2f1a7058c6def3dea48c9.tar.gz
gio-unix-2.0: Various improvements to UnixMountEntry
Fixes bug 586017 Patch by Evan Nemerson <evan@polussystems.com>
Diffstat (limited to 'vapi/gio-unix-2.0.vapi')
-rw-r--r--vapi/gio-unix-2.0.vapi60
1 files changed, 28 insertions, 32 deletions
diff --git a/vapi/gio-unix-2.0.vapi b/vapi/gio-unix-2.0.vapi
index 77ecd9594..55f616da5 100644
--- a/vapi/gio-unix-2.0.vapi
+++ b/vapi/gio-unix-2.0.vapi
@@ -24,8 +24,32 @@ namespace GLib {
public int fd { get; construct; }
}
[Compact]
- [CCode (cheader_filename = "gio/gunixmounts.h")]
+ [CCode (free_function = "g_unix_mount_free", cheader_filename = "gio/gunixmounts.h")]
public class UnixMountEntry {
+ [CCode (cname = "g_unix_mount_compare")]
+ public int compare (GLib.UnixMountEntry mount);
+ [CCode (cname = "g_unix_mounts_get")]
+ public static GLib.List<GLib.UnixMountEntry> get (ref uint64? time_read = null);
+ [CCode (cname = "g_unix_mount_get_device_path")]
+ public unowned string get_device_path ();
+ [CCode (cname = "g_unix_mount_get_fs_type")]
+ public unowned string get_fs_type ();
+ [CCode (cname = "g_unix_mount_get_mount_path")]
+ public unowned string get_mount_path ();
+ [CCode (cname = "g_unix_mount_guess_can_eject")]
+ public bool guess_can_eject ();
+ [CCode (cname = "g_unix_mount_guess_icon")]
+ public unowned GLib.Icon guess_icon ();
+ [CCode (cname = "g_unix_mount_guess_name")]
+ public unowned string guess_name ();
+ [CCode (cname = "g_unix_mount_guess_should_display")]
+ public bool guess_should_display ();
+ [CCode (cname = "g_unix_mount_is_readonly")]
+ public bool is_readonly ();
+ [CCode (cname = "g_unix_mount_is_system_internal")]
+ public bool is_system_internal ();
+ [CCode (cname = "g_unix_mount_at")]
+ public UnixMountEntry (string mount_path, uint64 time_read);
}
[CCode (cheader_filename = "gio/gunixmounts.h")]
public class UnixMountMonitor : GLib.Object {
@@ -77,37 +101,9 @@ namespace GLib {
[CCode (cheader_filename = "gio/gunixmounts.h")]
public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
[CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_is_mount_path_system_internal (string mount_path);
- [CCode (cname = "g_unix_mount_at", cheader_filename = "gio/gunixmounts.h")]
- public static unowned GLib.UnixMountEntry g_unix_mount_at (string mount_path, uint64 time_read);
- [CCode (cname = "g_unix_mount_compare", cheader_filename = "gio/gunixmounts.h")]
- public static int g_unix_mount_compare (GLib.UnixMountEntry mount1, GLib.UnixMountEntry mount2);
- [CCode (cname = "g_unix_mount_free", cheader_filename = "gio/gunixmounts.h")]
- public static void g_unix_mount_free (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_get_device_path", cheader_filename = "gio/gunixmounts.h")]
- public static unowned string g_unix_mount_get_device_path (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_get_fs_type", cheader_filename = "gio/gunixmounts.h")]
- public static unowned string g_unix_mount_get_fs_type (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_get_mount_path", cheader_filename = "gio/gunixmounts.h")]
- public static unowned string g_unix_mount_get_mount_path (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_guess_can_eject", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mount_guess_can_eject (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_guess_icon", cheader_filename = "gio/gunixmounts.h")]
- public static unowned GLib.Icon g_unix_mount_guess_icon (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_guess_name", cheader_filename = "gio/gunixmounts.h")]
- public static unowned string g_unix_mount_guess_name (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_guess_should_display", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mount_guess_should_display (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_is_readonly", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mount_is_readonly (GLib.UnixMountEntry mount_entry);
- [CCode (cname = "g_unix_mount_is_system_internal", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mount_is_system_internal (GLib.UnixMountEntry mount_entry);
+ public static bool is_mount_path_system_internal (string mount_path);
[CCode (cname = "g_unix_mount_points_changed_since", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mount_points_changed_since (uint64 time);
- [CCode (cname = "g_unix_mount_points_get", cheader_filename = "gio/gunixmounts.h")]
- public static unowned GLib.List g_unix_mount_points_get (uint64 time_read);
+ public static bool mount_points_changed_since (uint64 time);
[CCode (cname = "g_unix_mounts_changed_since", cheader_filename = "gio/gunixmounts.h")]
- public static bool g_unix_mounts_changed_since (uint64 time);
- [CCode (cname = "g_unix_mounts_get", cheader_filename = "gio/gunixmounts.h")]
- public static unowned GLib.List g_unix_mounts_get (uint64 time_read);
+ public static bool mounts_changed_since (uint64 time);
}