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 string get_action_name (string action_name);
14 public bool get_boolean (string key);
15 public unowned string get_categories ();
16 public unowned string get_filename ();
17 public unowned string get_generic_name ();
18 public static GLib.List<GLib.DesktopAppInfo> get_implementations (string @interface);
19 public bool get_is_hidden ();
20 [CCode (array_length = false, array_null_terminated = true)]
21 public unowned string[] get_keywords ();
22 public string? get_locale_string (string key);
23 public bool get_nodisplay ();
24 public bool get_show_in (string desktop_env);
25 public unowned string get_startup_wm_class ();
26 public unowned string get_string (string key);
27 public bool has_key (string key);
28 public void launch_action (string action_name, GLib.AppLaunchContext launch_context);
29 public bool launch_uris_as_manager (GLib.List<string> uris, GLib.AppLaunchContext? launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? user_setup = null, GLib.DesktopAppLaunchCallback? pid_callback = null) throws GLib.Error;
30 public bool launch_uris_as_manager_with_fds (GLib.List<string> uris, GLib.AppLaunchContext? launch_context, GLib.SpawnFlags spawn_flags, GLib.SpawnChildSetupFunc? user_setup = null, GLib.DesktopAppLaunchCallback? pid_callback = null, int stdin_fd = -1, int stdout_fd = -1, int stderr_fd = -1) throws GLib.Error;
31 [CCode (array_length = false, array_null_terminated = true)]
32 public unowned string[] list_actions ();
33 [CCode (array_length = false, array_null_terminated = true)]
34 public static string**[] search (string search_string);
35 public static void set_desktop_env (string desktop_env);
36 public string filename { get; construct; }
38 [CCode (cheader_filename = "gio/gunixconnection.h")]
39 public class UnixConnection : GLib.SocketConnection {
40 [CCode (has_construct_function = false)]
41 protected UnixConnection ();
42 public GLib.Credentials receive_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
43 public async GLib.Credentials receive_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
44 public int receive_fd (GLib.Cancellable? cancellable = null) throws GLib.Error;
45 public bool send_credentials (GLib.Cancellable? cancellable = null) throws GLib.Error;
46 public async bool send_credentials_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
47 public bool send_fd (int fd, GLib.Cancellable? cancellable = null) throws GLib.Error;
49 [CCode (cheader_filename = "gio/gunixcredentialsmessage.h")]
50 public class UnixCredentialsMessage : GLib.SocketControlMessage {
51 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
52 public UnixCredentialsMessage ();
53 public unowned GLib.Credentials get_credentials ();
54 public static bool is_supported ();
55 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
56 public UnixCredentialsMessage.with_credentials (GLib.Credentials credentials);
57 public GLib.Credentials credentials { get; construct; }
59 [CCode (cheader_filename = "gio/gunixfdmessage.h")]
60 public class UnixFDMessage : GLib.SocketControlMessage {
61 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
62 public UnixFDMessage ();
63 public bool append_fd (int fd) throws GLib.Error;
64 public unowned GLib.UnixFDList get_fd_list ();
65 public int steal_fds (int length);
66 [CCode (has_construct_function = false, type = "GSocketControlMessage*")]
67 public UnixFDMessage.with_fd_list (GLib.UnixFDList fd_list);
68 public GLib.UnixFDList fd_list { get; construct; }
70 [CCode (cheader_filename = "gio/gunixinputstream.h")]
71 public class UnixInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.FileDescriptorBased {
72 [CCode (has_construct_function = false, type = "GInputStream*")]
73 public UnixInputStream (int fd, bool close_fd);
74 public bool get_close_fd ();
75 public void set_close_fd (bool close_fd);
76 public bool close_fd { get; set; }
77 public int fd { get; construct; }
79 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "GUnixMountEntry", free_function = "g_unix_mount_free", lower_case_cprefix = "g_unix_mount_")]
81 public class UnixMountEntry {
82 [CCode (cname = "g_unix_mount_at")]
83 public UnixMountEntry (string mount_path, out uint64 time_read = null);
84 public int compare (GLib.UnixMountEntry mount);
85 [CCode (cname = "g_unix_mounts_for")]
86 [Version (since = "2.52")]
87 public static GLib.List<GLib.UnixMountEntry> @for (string file_path, out uint64 time_read = null);
88 [CCode (cname = "g_unix_mounts_get")]
89 public static GLib.List<GLib.UnixMountEntry> @get (out uint64 time_read = null);
90 public unowned string get_device_path ();
91 public unowned string get_fs_type ();
92 public unowned string get_mount_path ();
93 [Version (since = "2.58")]
94 public unowned string get_options ();
95 public bool guess_can_eject ();
96 public GLib.Icon guess_icon ();
97 public string guess_name ();
98 public bool guess_should_display ();
99 [Version (since = "2.34")]
100 public GLib.Icon guess_symbolic_icon ();
101 public bool is_readonly ();
102 public bool is_system_internal ();
104 [CCode (cheader_filename = "gio/gunixmounts.h")]
105 public class UnixMountMonitor : GLib.Object {
106 [CCode (has_construct_function = false)]
107 [Version (deprecated_since = "2.44", replacement = "UnixMountMonitor.get")]
108 public UnixMountMonitor ();
109 public static GLib.UnixMountMonitor @get ();
110 public void set_rate_limit (int limit_msec);
111 public virtual signal void mountpoints_changed ();
112 public virtual signal void mounts_changed ();
114 [CCode (cheader_filename = "gio/gunixmounts.h")]
116 public class UnixMountMonitorClass {
118 [CCode (cheader_filename = "gio/gunixmounts.h")]
120 public class UnixMountPoint {
121 public int compare (GLib.UnixMountPoint mount2);
122 public unowned string get_device_path ();
123 public unowned string get_fs_type ();
124 public unowned string get_mount_path ();
125 public unowned string get_options ();
126 public bool guess_can_eject ();
127 public GLib.Icon guess_icon ();
128 public string guess_name ();
129 public GLib.Icon guess_symbolic_icon ();
130 public bool is_loopback ();
131 public bool is_readonly ();
132 public bool is_user_mountable ();
134 [CCode (cheader_filename = "gio/gunixoutputstream.h")]
135 public class UnixOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.FileDescriptorBased {
136 [CCode (has_construct_function = false, type = "GOutputStream*")]
137 public UnixOutputStream (int fd, bool close_fd);
138 public bool get_close_fd ();
139 public void set_close_fd (bool close_fd);
140 public bool close_fd { get; set; }
141 public int fd { get; construct; }
143 [CCode (cheader_filename = "gio/gunixsocketaddress.h")]
144 public class UnixSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
145 [CCode (has_construct_function = false, type = "GSocketAddress*")]
146 public UnixSocketAddress (string path);
147 public static bool abstract_names_supported ();
148 [CCode (cname = "g_unix_socket_address_new_abstract", has_construct_function = false, type = "GSocketAddress*")]
149 public UnixSocketAddress.as_abstract (string path, int path_len);
150 public GLib.UnixSocketAddressType get_address_type ();
151 public bool get_is_abstract ();
152 public unowned string get_path ();
153 public size_t get_path_len ();
154 [CCode (has_construct_function = false, type = "GSocketAddress*")]
155 public UnixSocketAddress.with_type (string path, int path_len, GLib.UnixSocketAddressType type);
157 public bool @abstract { get; construct; }
158 public GLib.UnixSocketAddressType address_type { get; construct; }
159 public string path { get; construct; }
161 public GLib.ByteArray path_as_array { owned get; construct; }
163 [CCode (cheader_filename = "gio/gunixmounts.h")]
164 public interface DesktopAppInfoLookup : GLib.Object {
165 public abstract unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
167 [CCode (cheader_filename = "gio/gfiledescriptorbased.h")]
168 public interface FileDescriptorBased : GLib.Object {
169 public abstract int get_fd ();
171 [CCode (cheader_filename = "gio/gunixmounts.h")]
172 public delegate void DesktopAppLaunchCallback (GLib.DesktopAppInfo appinfo, GLib.Pid pid);
173 [CCode (cheader_filename = "gio/gunixmounts.h")]
174 public const string DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME;
175 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_mount_path_system_internal")]
176 public static bool is_mount_path_system_internal (string mount_path);
177 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_system_device_path")]
178 public static bool is_system_device_path (string device_path);
179 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_is_system_fs_type")]
180 public static bool is_system_fs_type (string fs_type);
181 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mount_points_changed_since")]
182 public static bool mount_points_changed_since (uint64 time);
183 [CCode (cheader_filename = "gio/gunixmounts.h", cname = "g_unix_mounts_changed_since")]
184 public static bool mounts_changed_since (uint64 time);