1 /* gio-unix-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "G", lower_case_cprefix = "g_")]
5 [CCode (cheader_filename = "gio/gdesktopappinfo.h")]
6 public class DesktopAppInfo : GLib.Object, GLib.AppInfo {
7 [CCode (has_construct_function = false)]
8 public DesktopAppInfo (string desktop_id);
9 [CCode (has_construct_function = false)]
10 public DesktopAppInfo.from_filename (string filename);
11 [CCode (has_construct_function = false)]
12 public DesktopAppInfo.from_keyfile (GLib.KeyFile key_file);
13 public bool get_is_hidden ();
14 public static void set_desktop_env (string desktop_env);
16 [CCode (cheader_filename = "gio/gunixinputstream.h")]
17 public class UnixInputStream : GLib.InputStream {
18 [CCode (type = "GInputStream*", has_construct_function = false)]
19 public UnixInputStream (int fd, bool close_fd);
20 public bool get_close_fd ();
22 public void set_close_fd (bool close_fd);
23 public bool close_fd { get; set; }
24 public int fd { get; construct; }
27 [CCode (free_function = "g_unix_mount_free", cheader_filename = "gio/gunixmounts.h")]
28 public class UnixMountEntry {
29 [CCode (cname = "g_unix_mount_at")]
30 public UnixMountEntry (string mount_path, uint64 time_read);
31 [CCode (cname = "g_unix_mount_compare")]
32 public int compare (GLib.UnixMountEntry mount);
33 [CCode (cname = "g_unix_mounts_get")]
34 public static GLib.List<GLib.UnixMountEntry> @get (ref uint64? time_read = null);
35 [CCode (cname = "g_unix_mount_get_device_path")]
36 public unowned string get_device_path ();
37 [CCode (cname = "g_unix_mount_get_fs_type")]
38 public unowned string get_fs_type ();
39 [CCode (cname = "g_unix_mount_get_mount_path")]
40 public unowned string get_mount_path ();
41 [CCode (cname = "g_unix_mount_guess_can_eject")]
42 public bool guess_can_eject ();
43 [CCode (cname = "g_unix_mount_guess_icon")]
44 public unowned GLib.Icon guess_icon ();
45 [CCode (cname = "g_unix_mount_guess_name")]
46 public unowned string guess_name ();
47 [CCode (cname = "g_unix_mount_guess_should_display")]
48 public bool guess_should_display ();
49 [CCode (cname = "g_unix_mount_is_readonly")]
50 public bool is_readonly ();
51 [CCode (cname = "g_unix_mount_is_system_internal")]
52 public bool is_system_internal ();
54 [CCode (cheader_filename = "gio/gunixmounts.h")]
55 public class UnixMountMonitor : GLib.Object {
56 [CCode (has_construct_function = false)]
57 public UnixMountMonitor ();
58 public void set_rate_limit (int limit_msec);
59 public virtual signal void mountpoints_changed ();
60 public virtual signal void mounts_changed ();
63 [CCode (cheader_filename = "gio/gunixmounts.h")]
64 public class UnixMountMonitorClass {
67 [CCode (cheader_filename = "gio/gunixmounts.h")]
68 public class UnixMountPoint {
69 public int compare (GLib.UnixMountPoint mount2);
70 public unowned string get_device_path ();
71 public unowned string get_fs_type ();
72 public unowned string get_mount_path ();
73 public bool guess_can_eject ();
74 public unowned GLib.Icon guess_icon ();
75 public unowned string guess_name ();
76 public bool is_loopback ();
77 public bool is_readonly ();
78 public bool is_user_mountable ();
80 [CCode (cheader_filename = "gio/gunixoutputstream.h")]
81 public class UnixOutputStream : GLib.OutputStream {
82 [CCode (type = "GOutputStream*", has_construct_function = false)]
83 public UnixOutputStream (int fd, bool close_fd);
84 public bool get_close_fd ();
86 public void set_close_fd (bool close_fd);
87 public bool close_fd { get; set; }
88 public int fd { get; construct; }
90 [CCode (cheader_filename = "gio/gunixmounts.h")]
91 public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
92 [CCode (type = "GSocketAddress*", has_construct_function = false)]
93 public UnixSocketAddress (string path);
95 public string path { owned get; construct; }
97 [CCode (cheader_filename = "gio/gunixmounts.h")]
98 public interface DesktopAppInfoLookup : GLib.Object {
99 public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
101 [CCode (cheader_filename = "gio/gunixmounts.h")]
102 public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
103 [CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
104 public static bool is_mount_path_system_internal (string mount_path);
105 [CCode (cname = "g_unix_mount_points_changed_since", cheader_filename = "gio/gunixmounts.h")]
106 public static bool mount_points_changed_since (uint64 time);
107 [CCode (cname = "g_unix_mounts_changed_since", cheader_filename = "gio/gunixmounts.h")]
108 public static bool mounts_changed_since (uint64 time);