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 unowned string get_filename ();
14 public bool get_is_hidden ();
15 public static void set_desktop_env (string desktop_env);
17 [CCode (cheader_filename = "gio/gunixconnection.h")]
18 public class UnixConnection : GLib.SocketConnection {
19 public unowned GLib.Credentials receive_credentials (GLib.Cancellable cancellable) throws GLib.Error;
20 public int receive_fd (GLib.Cancellable cancellable) throws GLib.Error;
21 public bool send_credentials (GLib.Cancellable cancellable) throws GLib.Error;
22 public bool send_fd (int fd, GLib.Cancellable cancellable) throws GLib.Error;
24 [CCode (cheader_filename = "gio/gunixfdmessage.h")]
25 public class UnixFDMessage : GLib.SocketControlMessage {
26 [CCode (type = "GSocketControlMessage*", has_construct_function = false)]
27 public UnixFDMessage ();
28 public bool append_fd (int fd) throws GLib.Error;
29 public unowned GLib.UnixFDList get_fd_list ();
30 public int steal_fds (int length);
31 [CCode (type = "GSocketControlMessage*", has_construct_function = false)]
32 public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list);
33 public GLib.UnixFDList fd_list { get; construct; }
35 [CCode (cheader_filename = "gio/gunixinputstream.h")]
36 public class UnixInputStream : GLib.InputStream {
37 [CCode (type = "GInputStream*", has_construct_function = false)]
38 public UnixInputStream (int fd, bool close_fd);
39 public bool get_close_fd ();
41 public void set_close_fd (bool close_fd);
42 public bool close_fd { get; set; }
43 public int fd { get; construct; }
46 [CCode (free_function = "g_unix_mount_free", cheader_filename = "gio/gunixmounts.h")]
47 public class UnixMountEntry {
48 [CCode (cname = "g_unix_mount_at")]
49 public UnixMountEntry (string mount_path, uint64 time_read);
50 [CCode (cname = "g_unix_mount_compare")]
51 public int compare (GLib.UnixMountEntry mount);
52 [CCode (cname = "g_unix_mounts_get")]
53 public static GLib.List<GLib.UnixMountEntry> @get (ref uint64? time_read = null);
54 [CCode (cname = "g_unix_mount_get_device_path")]
55 public unowned string get_device_path ();
56 [CCode (cname = "g_unix_mount_get_fs_type")]
57 public unowned string get_fs_type ();
58 [CCode (cname = "g_unix_mount_get_mount_path")]
59 public unowned string get_mount_path ();
60 [CCode (cname = "g_unix_mount_guess_can_eject")]
61 public bool guess_can_eject ();
62 [CCode (cname = "g_unix_mount_guess_icon")]
63 public unowned GLib.Icon guess_icon ();
64 [CCode (cname = "g_unix_mount_guess_name")]
65 public unowned string guess_name ();
66 [CCode (cname = "g_unix_mount_guess_should_display")]
67 public bool guess_should_display ();
68 [CCode (cname = "g_unix_mount_is_readonly")]
69 public bool is_readonly ();
70 [CCode (cname = "g_unix_mount_is_system_internal")]
71 public bool is_system_internal ();
73 [CCode (cheader_filename = "gio/gunixmounts.h")]
74 public class UnixMountMonitor : GLib.Object {
75 [CCode (has_construct_function = false)]
76 public UnixMountMonitor ();
77 public void set_rate_limit (int limit_msec);
78 public virtual signal void mountpoints_changed ();
79 public virtual signal void mounts_changed ();
82 [CCode (cheader_filename = "gio/gunixmounts.h")]
83 public class UnixMountMonitorClass {
86 [CCode (cheader_filename = "gio/gunixmounts.h")]
87 public class UnixMountPoint {
88 public int compare (GLib.UnixMountPoint mount2);
89 public unowned string get_device_path ();
90 public unowned string get_fs_type ();
91 public unowned string get_mount_path ();
92 public bool guess_can_eject ();
93 public unowned GLib.Icon guess_icon ();
94 public unowned string guess_name ();
95 public bool is_loopback ();
96 public bool is_readonly ();
97 public bool is_user_mountable ();
99 [CCode (cheader_filename = "gio/gunixoutputstream.h")]
100 public class UnixOutputStream : GLib.OutputStream {
101 [CCode (type = "GOutputStream*", has_construct_function = false)]
102 public UnixOutputStream (int fd, bool close_fd);
103 public bool get_close_fd ();
104 public int get_fd ();
105 public void set_close_fd (bool close_fd);
106 public bool close_fd { get; set; }
107 public int fd { get; construct; }
109 [CCode (cheader_filename = "gio/gunixsocketaddress.h")]
110 public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
111 [CCode (type = "GSocketAddress*", has_construct_function = false)]
112 public UnixSocketAddress (string path);
113 public static bool abstract_names_supported ();
114 [CCode (cname = "g_unix_socket_address_new_abstract", type = "GSocketAddress*", has_construct_function = false)]
115 public UnixSocketAddress.as_abstract (string path, int path_len);
116 public GLib.UnixSocketAddressType get_address_type ();
117 public bool get_is_abstract ();
118 public unowned string get_path ();
119 public size_t get_path_len ();
120 [CCode (type = "GSocketAddress*", has_construct_function = false)]
121 public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type);
123 public bool @abstract { get; construct; }
124 public GLib.UnixSocketAddressType address_type { get; construct; }
125 public string path { get; construct; }
127 public GLib.ByteArray path_as_array { owned get; construct; }
129 [CCode (cheader_filename = "gio/gunixmounts.h")]
130 public interface DesktopAppInfoLookup : GLib.Object {
131 public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
133 [CCode (cheader_filename = "gio/gunixmounts.h")]
134 public interface FileDescriptorBased : GLib.Object {
135 public abstract int get_fd ();
137 [CCode (cheader_filename = "gio/gunixmounts.h")]
138 public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
139 [CCode (cname = "g_unix_is_mount_path_system_internal", cheader_filename = "gio/gunixmounts.h")]
140 public static bool is_mount_path_system_internal (string mount_path);
141 [CCode (cname = "g_unix_mount_points_changed_since", cheader_filename = "gio/gunixmounts.h")]
142 public static bool mount_points_changed_since (uint64 time);
143 [CCode (cname = "g_unix_mounts_changed_since", cheader_filename = "gio/gunixmounts.h")]
144 public static bool mounts_changed_since (uint64 time);