1 /* gio-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "G", lower_case_cprefix = "g_", gir_namespace = "Gio", gir_version = "2.0")]
5 [CCode (cprefix = "GBus", lower_case_cprefix = "g_bus_")]
7 [CCode (cheader_filename = "gio/gio.h")]
8 public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
9 [CCode (cheader_filename = "gio/gio.h")]
10 public static async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
11 [CCode (cheader_filename = "gio/gio.h")]
12 public static T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
13 [CCode (cheader_filename = "gio/gio.h")]
14 public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
15 [CCode (cname = "g_bus_own_name_with_closures", cheader_filename = "gio/gio.h")]
16 public static uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback? bus_acquired_handler = null, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_handler = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_handler = null);
17 [CCode (cname = "g_bus_own_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
18 public static uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_handler = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_handler = null);
19 [CCode (cheader_filename = "gio/gio.h")]
20 public static void unown_name (uint owner_id);
21 [CCode (cheader_filename = "gio/gio.h")]
22 public static void unwatch_name (uint watcher_id);
23 [CCode (cname = "g_bus_watch_name_with_closures", cheader_filename = "gio/gio.h")]
24 public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
25 [CCode (cname = "g_bus_watch_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
26 public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
28 [CCode (cprefix = "GContentType", lower_case_cprefix = "g_content_type_")]
29 namespace ContentType {
30 [CCode (cheader_filename = "gio/gio.h")]
31 public static bool can_be_executable (string type);
32 [CCode (cheader_filename = "gio/gio.h")]
33 public static bool equals (string type1, string type2);
34 [CCode (cheader_filename = "gio/gio.h")]
35 public static string from_mime_type (string mime_type);
36 [CCode (cheader_filename = "gio/gio.h")]
37 public static string get_description (string type);
38 [CCode (cheader_filename = "gio/gio.h")]
39 public static GLib.Icon get_icon (string type);
40 [CCode (cheader_filename = "gio/gio.h")]
41 public static string get_mime_type (string type);
42 [CCode (cheader_filename = "gio/gio.h")]
43 public static string guess (string? filename, uchar[] data, out bool result_uncertain);
44 [CCode (cheader_filename = "gio/gio.h")]
45 public static string guess_for_tree (GLib.File root);
46 [CCode (cheader_filename = "gio/gio.h")]
47 public static bool is_a (string type, string supertype);
48 [CCode (cheader_filename = "gio/gio.h")]
49 public static bool is_unknown (string type);
51 [CCode (cheader_filename = "gio/gio.h")]
52 public class AppLaunchContext : GLib.Object {
53 [CCode (has_construct_function = false)]
54 public AppLaunchContext ();
55 public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
56 public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
57 public virtual void launch_failed (string startup_notify_id);
59 [CCode (cheader_filename = "gio/gio.h")]
60 public class Application : GLib.Object, GLib.ActionGroup {
61 [CCode (has_construct_function = false)]
62 public Application (string application_id, GLib.ApplicationFlags flags);
64 public virtual void add_platform_data (GLib.VariantBuilder builder);
66 public virtual void after_emit (GLib.Variant platform_data);
68 public virtual void before_emit (GLib.Variant platform_data);
69 public unowned string get_application_id ();
70 public GLib.ApplicationFlags get_flags ();
71 public uint get_inactivity_timeout ();
72 public bool get_is_registered ();
73 public bool get_is_remote ();
75 public static bool id_is_valid (string application_id);
77 public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
78 [CCode (cname = "g_application_quit_with_data")]
79 public bool quit (GLib.Variant? platform_data = null);
81 public virtual void quit_mainloop ();
82 public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
83 public void release ();
84 public int run ([CCode (array_length_pos = 0.9)] string[]? argv = null);
86 public virtual void run_mainloop ();
87 public void set_action_group (GLib.ActionGroup action_group);
88 public void set_application_id (string application_id);
89 public void set_flags (GLib.ApplicationFlags flags);
90 public void set_inactivity_timeout (uint inactivity_timeout);
91 public GLib.ActionGroup action_group { set; }
92 public string application_id { get; set construct; }
93 public GLib.ApplicationFlags flags { get; set; }
94 public uint inactivity_timeout { get; set; }
95 public bool is_registered { get; }
96 public bool is_remote { get; }
98 public virtual signal void activate ();
99 public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
101 public virtual signal void open (GLib.File[] files, string hint);
102 public virtual signal void startup ();
104 [CCode (cheader_filename = "gio/gio.h")]
105 public class ApplicationCommandLine : GLib.Object {
106 [CCode (has_construct_function = false)]
107 protected ApplicationCommandLine ();
108 public string[] get_arguments ();
109 public unowned string get_cwd ();
110 public unowned string get_environ ();
111 public int get_exit_status ();
112 public bool get_is_remote ();
113 public GLib.Variant? get_platform_data ();
114 public unowned string getenv (string name);
115 public void print (string format);
117 public virtual void print_literal (string message);
118 public void printerr (string format);
120 public virtual void printerr_literal (string message);
121 public void set_exit_status (int exit_status);
122 public GLib.Variant arguments { construct; }
123 public bool is_remote { get; }
124 public GLib.Variant platform_data { construct; }
126 [CCode (cheader_filename = "gio/gio.h")]
127 public class BufferedInputStream : GLib.FilterInputStream {
128 [CCode (type = "GInputStream*", has_construct_function = false)]
129 public BufferedInputStream (GLib.InputStream base_stream);
130 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
131 public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
132 public size_t get_available ();
133 public size_t get_buffer_size ();
134 public size_t peek ([CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] buffer, size_t offset = 0);
135 [CCode (array_length_type = "gsize")]
136 public unowned uint8[] peek_buffer ();
137 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
138 public void set_buffer_size (size_t size);
139 [CCode (type = "GInputStream*", has_construct_function = false)]
140 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
141 public uint buffer_size { get; set construct; }
143 [CCode (cheader_filename = "gio/gio.h")]
144 public class BufferedOutputStream : GLib.FilterOutputStream {
145 [CCode (type = "GOutputStream*", has_construct_function = false)]
146 public BufferedOutputStream (GLib.OutputStream base_stream);
147 public bool get_auto_grow ();
148 public size_t get_buffer_size ();
149 public void set_auto_grow (bool auto_grow);
150 public void set_buffer_size (size_t size);
151 [CCode (type = "GOutputStream*", has_construct_function = false)]
152 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
153 public bool auto_grow { get; set; }
154 public uint buffer_size { get; set construct; }
156 [CCode (cheader_filename = "gio/gio.h")]
157 public class Cancellable : GLib.Object {
158 [CCode (has_construct_function = false)]
159 public Cancellable ();
160 public void cancel ();
161 public ulong connect ([CCode (type = "GCallback*")] owned GLib.Func<GLib.Cancellable> callback);
162 public void disconnect (ulong handler_id);
163 public static unowned GLib.Cancellable get_current ();
164 public int get_fd ();
165 public bool is_cancelled ();
166 public bool make_pollfd (GLib.PollFD pollfd);
167 public void pop_current ();
168 public void push_current ();
169 public void release_fd ();
170 public void reset ();
171 public bool set_error_if_cancelled () throws GLib.IOError;
172 public unowned GLib.TimeoutSource source_new ();
173 public virtual signal void cancelled ();
175 [CCode (cheader_filename = "gio/gio.h")]
176 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
177 [CCode (has_construct_function = false)]
178 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
179 public uint get_num_fallbacks ();
180 public bool get_use_fallback ();
181 public void set_use_fallback (bool use_fallback);
183 public string from_charset { owned get; construct; }
185 public string to_charset { owned get; construct; }
186 public bool use_fallback { get; set construct; }
188 [CCode (cheader_filename = "gio/gio.h")]
189 public class ConverterInputStream : GLib.FilterInputStream {
190 [CCode (type = "GInputStream*", has_construct_function = false)]
191 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
192 public unowned GLib.Converter get_converter ();
193 public GLib.Converter converter { get; construct; }
195 [CCode (cheader_filename = "gio/gio.h")]
196 public class ConverterOutputStream : GLib.FilterOutputStream {
197 [CCode (type = "GOutputStream*", has_construct_function = false)]
198 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
199 public unowned GLib.Converter get_converter ();
200 public GLib.Converter converter { get; construct; }
202 [CCode (cheader_filename = "gio/gio.h")]
203 public class Credentials : GLib.Object {
204 [CCode (has_construct_function = false)]
205 public Credentials ();
206 public void* get_native (GLib.CredentialsType native_type);
207 public uint get_unix_user () throws GLib.Error;
208 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
209 public void set_native (GLib.CredentialsType native_type, void* native);
210 public bool set_unix_user (uint uid) throws GLib.Error;
211 public unowned string to_string ();
214 [CCode (cheader_filename = "gio/gio.h")]
215 public class CredentialsClass {
218 [CCode (ref_function = "g_dbus_annotation_info_ref", unref_function = "g_dbus_annotation_info_unref", type_id = "G_TYPE_DBUS_ANNOTATION_INFO", cheader_filename = "gio/gio.h")]
219 public class DBusAnnotationInfo {
220 [CCode (array_length = false, array_null_terminated = true)]
221 public weak GLib.DBusAnnotationInfo[] annotations;
222 public weak string key;
223 public int ref_count;
224 public weak string value;
225 public unowned string lookup (string name);
228 [CCode (ref_function = "g_dbus_arg_info_ref", unref_function = "g_dbus_arg_info_unref", type_id = "G_TYPE_DBUS_ARG_INFO", cheader_filename = "gio/gio.h")]
229 public class DBusArgInfo {
230 [CCode (array_length = false, array_null_terminated = true)]
231 public weak GLib.DBusAnnotationInfo[] annotations;
232 public weak string name;
233 public int ref_count;
234 public weak string signature;
236 [CCode (cheader_filename = "gio/gio.h")]
237 public class DBusAuthObserver : GLib.Object {
238 [CCode (has_construct_function = false)]
239 public DBusAuthObserver ();
241 public virtual signal bool authorize_authenticated_peer (GLib.IOStream p0, GLib.Credentials p1);
243 [CCode (cheader_filename = "gio/gio.h")]
244 public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
245 [CCode (type = "void", has_construct_function = false)]
246 public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
247 public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
248 public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
249 public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
250 public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
251 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
252 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
253 public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
254 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
255 [CCode (type = "void", has_construct_function = false)]
256 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
257 [CCode (has_construct_function = false)]
258 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
259 public GLib.DBusCapabilityFlags get_capabilities ();
260 public bool get_exit_on_close ();
261 public unowned string get_guid ();
262 public unowned GLib.Credentials get_peer_credentials ();
263 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
264 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
265 public unowned GLib.IOStream get_stream ();
266 public unowned string get_unique_name ();
267 public bool is_closed ();
268 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
269 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
270 public void remove_filter (uint filter_id);
271 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
272 public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
273 public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
274 public void set_exit_on_close (bool exit_on_close);
275 public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
276 public void signal_unsubscribe (uint subscription_id);
277 public void start_message_processing ();
278 [CCode (has_construct_function = false)]
279 public DBusConnection.sync (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
280 public bool unregister_object (uint registration_id);
281 public bool unregister_subtree (uint registration_id);
282 public string address { construct; }
283 public GLib.DBusAuthObserver authentication_observer { construct; }
284 public GLib.DBusCapabilityFlags capabilities { get; }
285 public bool exit_on_close { get; set; }
286 public GLib.DBusConnectionFlags flags { construct; }
287 public string guid { get; construct; }
288 public GLib.IOStream stream { get; construct; }
289 public string unique_name { get; }
290 public virtual signal void closed (bool p0, GLib.Error p1);
293 [CCode (cheader_filename = "gio/gio.h")]
294 public class DBusErrorEntry {
295 public weak string dbus_error_name;
296 public int error_code;
299 [CCode (ref_function = "g_dbus_interface_info_ref", unref_function = "g_dbus_interface_info_unref", type_id = "G_TYPE_DBUS_INTERFACE_INFO", cheader_filename = "gio/gio.h")]
300 public class DBusInterfaceInfo {
301 [CCode (array_length = false, array_null_terminated = true)]
302 public weak GLib.DBusAnnotationInfo[] annotations;
303 [CCode (array_length = false, array_null_terminated = true)]
304 public weak GLib.DBusMethodInfo[] methods;
305 public weak string name;
306 [CCode (array_length = false, array_null_terminated = true)]
307 public weak GLib.DBusPropertyInfo[] properties;
308 public int ref_count;
309 [CCode (array_length = false, array_null_terminated = true)]
310 public weak GLib.DBusSignalInfo[] signals;
311 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
312 public unowned GLib.DBusMethodInfo lookup_method (string name);
313 public unowned GLib.DBusPropertyInfo lookup_property (string name);
314 public unowned GLib.DBusSignalInfo lookup_signal (string name);
317 [CCode (cheader_filename = "gio/gio.h")]
318 public class DBusInterfaceVTable {
319 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
320 public weak GLib.DBusInterfaceMethodCallFunc method_call;
321 public void* padding;
322 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
324 [CCode (cheader_filename = "gio/gio.h")]
325 public class DBusMessage : GLib.Object {
326 [CCode (has_construct_function = false)]
327 public DBusMessage ();
328 public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
329 public unowned GLib.DBusMessage copy () throws GLib.Error;
330 [CCode (has_construct_function = false)]
331 public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
332 public unowned string get_arg0 ();
333 public unowned GLib.Variant get_body ();
334 public GLib.DBusMessageByteOrder get_byte_order ();
335 public unowned string get_destination ();
336 public unowned string get_error_name ();
337 public GLib.DBusMessageFlags get_flags ();
338 public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
339 public unowned uchar[] get_header_fields ();
340 public unowned string get_interface ();
341 public bool get_locked ();
342 public unowned string get_member ();
343 public GLib.DBusMessageType get_message_type ();
344 public uint32 get_num_unix_fds ();
345 public unowned string get_path ();
346 public uint32 get_reply_serial ();
347 public unowned string get_sender ();
348 public uint32 get_serial ();
349 public unowned string get_signature ();
350 public unowned GLib.UnixFDList get_unix_fd_list ();
351 public void @lock ();
352 [CCode (has_construct_function = false)]
353 public DBusMessage.method_call (string name, string path, string interface_, string method);
354 [CCode (has_construct_function = false)]
355 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format);
356 [CCode (has_construct_function = false)]
357 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
358 [CCode (has_construct_function = false)]
359 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, void* var_args);
360 [CCode (has_construct_function = false)]
361 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
362 public unowned string print (uint indent = 0);
363 public void set_body (GLib.Variant body);
364 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
365 public void set_destination (string value);
366 public void set_error_name (string value);
367 public void set_flags (GLib.DBusMessageFlags flags);
368 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant value);
369 public void set_interface (string value);
370 public void set_member (string value);
371 public void set_message_type (GLib.DBusMessageType type);
372 public void set_num_unix_fds (uint32 value);
373 public void set_path (string value);
374 public void set_reply_serial (uint32 value);
375 public void set_sender (string value);
376 public void set_serial (uint32 serial);
377 public void set_signature (string value);
378 public void set_unix_fd_list (GLib.UnixFDList fd_list);
379 [CCode (has_construct_function = false)]
380 public DBusMessage.@signal (string path, string interface_, string @signal);
381 public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
382 public bool to_gerror () throws GLib.Error;
383 public bool locked { get; }
386 [CCode (ref_function = "g_dbus_method_info_ref", unref_function = "g_dbus_method_info_unref", type_id = "G_TYPE_DBUS_METHOD_INFO", cheader_filename = "gio/gio.h")]
387 public class DBusMethodInfo {
388 [CCode (array_length = false, array_null_terminated = true)]
389 public weak GLib.DBusAnnotationInfo[] annotations;
390 [CCode (array_length = false, array_null_terminated = true)]
391 public weak GLib.DBusArgInfo[] in_args;
392 public weak string name;
393 [CCode (array_length = false, array_null_terminated = true)]
394 public weak GLib.DBusArgInfo[] out_args;
395 public int ref_count;
397 [CCode (cheader_filename = "gio/gio.h")]
398 public class DBusMethodInvocation : GLib.Object {
399 [CCode (has_construct_function = false)]
400 protected DBusMethodInvocation ();
401 public unowned GLib.DBusConnection get_connection ();
402 public unowned string get_interface_name ();
403 public unowned GLib.DBusMessage get_message ();
404 public unowned GLib.DBusMethodInfo get_method_info ();
405 public unowned string get_method_name ();
406 public unowned string get_object_path ();
407 public unowned GLib.Variant get_parameters ();
408 public unowned string get_sender ();
409 public void* get_user_data ();
410 public void return_dbus_error (string error_name, string error_message);
411 public void return_error (GLib.Quark domain, int code, string format);
412 public void return_error_literal (GLib.Quark domain, int code, string message);
413 public void return_error_valist (GLib.Quark domain, int code, string format, void* var_args);
414 public void return_gerror (GLib.Error error);
415 public void return_value (GLib.Variant parameters);
418 [CCode (ref_function = "g_dbus_node_info_ref", unref_function = "g_dbus_node_info_unref", type_id = "G_TYPE_DBUS_NODE_INFO", cheader_filename = "gio/gio.h")]
419 public class DBusNodeInfo {
420 [CCode (array_length = false, array_null_terminated = true)]
421 public weak GLib.DBusAnnotationInfo[] annotations;
422 [CCode (array_length = false, array_null_terminated = true)]
423 public weak GLib.DBusInterfaceInfo[] interfaces;
424 [CCode (array_length = false, array_null_terminated = true)]
425 public weak GLib.DBusNodeInfo[] nodes;
426 public weak string path;
427 public int ref_count;
428 [CCode (has_construct_function = false)]
429 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
430 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
431 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
434 [CCode (ref_function = "g_dbus_property_info_ref", unref_function = "g_dbus_property_info_unref", type_id = "G_TYPE_DBUS_PROPERTY_INFO", cheader_filename = "gio/gio.h")]
435 public class DBusPropertyInfo {
436 [CCode (array_length = false, array_null_terminated = true)]
437 public weak GLib.DBusAnnotationInfo[] annotations;
438 public GLib.DBusPropertyInfoFlags flags;
439 public weak string name;
440 public int ref_count;
441 public weak string signature;
443 [CCode (cheader_filename = "gio/gio.h")]
444 public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
445 [CCode (type = "void", has_construct_function = false)]
446 public async DBusProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
447 public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
448 public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
449 [CCode (type = "void", has_construct_function = false)]
450 public async DBusProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
451 [CCode (has_construct_function = false)]
452 public DBusProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
453 public unowned GLib.Variant get_cached_property (string property_name);
454 public unowned string get_cached_property_names ();
455 public unowned GLib.DBusConnection get_connection ();
456 public int get_default_timeout ();
457 public GLib.DBusProxyFlags get_flags ();
458 public unowned GLib.DBusInterfaceInfo get_interface_info ();
459 public unowned string get_interface_name ();
460 public unowned string get_name ();
461 public unowned string get_name_owner ();
462 public unowned string get_object_path ();
463 public void set_cached_property (string property_name, GLib.Variant value);
464 public void set_default_timeout (int timeout_msec);
465 public void set_interface_info (GLib.DBusInterfaceInfo info);
466 [CCode (has_construct_function = false)]
467 public DBusProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
468 public GLib.BusType g_bus_type { construct; }
470 public GLib.DBusConnection g_connection { owned get; construct; }
472 public int g_default_timeout { get; set construct; }
474 public GLib.DBusProxyFlags g_flags { get; construct; }
476 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
478 public string g_interface_name { owned get; construct; }
480 public string g_name { owned get; construct; }
482 public string g_name_owner { owned get; }
484 public string g_object_path { owned get; construct; }
485 public virtual signal void g_properties_changed (GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
486 public virtual signal void g_signal (string sender_name, string signal_name, GLib.Variant parameters);
488 [CCode (cheader_filename = "gio/gio.h")]
489 public class DBusServer : GLib.Object, GLib.Initable {
490 [CCode (has_construct_function = false)]
491 protected DBusServer ();
492 public unowned string get_client_address ();
493 public GLib.DBusServerFlags get_flags ();
494 public unowned string get_guid ();
495 public bool is_active ();
496 public void start ();
498 [CCode (has_construct_function = false)]
499 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
501 public bool active { get; }
503 public string address { owned get; construct; }
505 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
506 public string client_address { get; }
507 public GLib.DBusServerFlags flags { get; construct; }
508 public string guid { get; construct; }
509 public virtual signal bool new_connection (GLib.DBusConnection p0);
512 [CCode (ref_function = "g_dbus_signal_info_ref", unref_function = "g_dbus_signal_info_unref", type_id = "G_TYPE_DBUS_SIGNAL_INFO", cheader_filename = "gio/gio.h")]
513 public class DBusSignalInfo {
514 [CCode (array_length = false, array_null_terminated = true)]
515 public weak GLib.DBusAnnotationInfo[] annotations;
516 [CCode (array_length = false, array_null_terminated = true)]
517 public weak GLib.DBusArgInfo[] args;
518 public weak string name;
519 public int ref_count;
522 [CCode (cheader_filename = "gio/gio.h")]
523 public class DBusSubtreeVTable {
524 public weak GLib.DBusSubtreeDispatchFunc dispatch;
525 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
526 public weak GLib.DBusSubtreeIntrospectFunc introspect;
527 public void* padding;
529 [CCode (cheader_filename = "gio/gio.h")]
530 public class DataInputStream : GLib.BufferedInputStream {
531 [CCode (has_construct_function = false)]
532 public DataInputStream (GLib.InputStream base_stream);
533 public GLib.DataStreamByteOrder get_byte_order ();
534 public GLib.DataStreamNewlineType get_newline_type ();
535 public uchar read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
536 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
537 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
538 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
539 public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
540 public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError;
541 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
542 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
543 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
544 public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
545 public async string? read_until_async (string stop_chars, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
546 public string? read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
547 public async string? read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
548 public void set_byte_order (GLib.DataStreamByteOrder order);
549 public void set_newline_type (GLib.DataStreamNewlineType type);
550 public GLib.DataStreamByteOrder byte_order { get; set; }
551 public GLib.DataStreamNewlineType newline_type { get; set; }
553 [CCode (cheader_filename = "gio/gio.h")]
554 public class DataOutputStream : GLib.FilterOutputStream {
555 [CCode (has_construct_function = false)]
556 public DataOutputStream (GLib.OutputStream base_stream);
557 public GLib.DataStreamByteOrder get_byte_order ();
558 public bool put_byte (uchar data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
559 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
560 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
561 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
562 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
563 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
564 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
565 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
566 public void set_byte_order (GLib.DataStreamByteOrder order);
567 public GLib.DataStreamByteOrder byte_order { get; set; }
569 [CCode (cheader_filename = "gio/gio.h")]
570 public class Emblem : GLib.Object, GLib.Icon {
571 [CCode (has_construct_function = false)]
572 public Emblem (GLib.Icon icon);
573 public unowned GLib.Icon get_icon ();
574 public GLib.EmblemOrigin get_origin ();
575 [CCode (has_construct_function = false)]
576 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
577 public GLib.Object icon { get; construct; }
578 public GLib.EmblemOrigin origin { get; construct; }
581 [CCode (cheader_filename = "gio/gio.h")]
582 public class EmblemClass {
584 [CCode (cheader_filename = "gio/gio.h")]
585 public class EmblemedIcon : GLib.Object, GLib.Icon {
586 [CCode (type = "GIcon*", has_construct_function = false)]
587 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
588 public void add_emblem (GLib.Emblem emblem);
589 public void clear_emblems ();
590 public unowned GLib.List<GLib.Emblem> get_emblems ();
591 public unowned GLib.Icon get_icon ();
593 public GLib.Icon gicon { owned get; construct; }
596 [CCode (cheader_filename = "gio/gio.h")]
597 public class FileAttributeInfo {
598 public GLib.FileAttributeInfoFlags flags;
599 public weak string name;
600 public GLib.FileAttributeType type;
603 [CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", type_id = "G_TYPE_FILE_ATTRIBUTE_INFO_LIST", cheader_filename = "gio/gio.h")]
604 public class FileAttributeInfoList {
605 public weak GLib.FileAttributeInfo infos;
607 [CCode (has_construct_function = false)]
608 public FileAttributeInfoList ();
609 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
610 public unowned GLib.FileAttributeInfoList dup ();
611 public unowned GLib.FileAttributeInfo lookup (string name);
614 [CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", type_id = "G_TYPE_FILE_ATTRIBUTE_MATCHER", cheader_filename = "gio/gio.h")]
615 public class FileAttributeMatcher {
616 [CCode (has_construct_function = false)]
617 public FileAttributeMatcher (string attributes);
618 public bool enumerate_namespace (string ns);
619 public unowned string enumerate_next ();
620 public bool matches (string attribute);
621 public bool matches_only (string attribute);
623 [CCode (cheader_filename = "gio/gio.h")]
624 public class FileEnumerator : GLib.Object {
625 [CCode (has_construct_function = false)]
626 protected FileEnumerator ();
627 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
628 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
630 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
631 public unowned GLib.File get_container ();
632 public bool has_pending ();
633 public bool is_closed ();
634 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
635 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
636 public void set_pending (bool pending);
637 public GLib.File container { construct; }
639 [CCode (cheader_filename = "gio/gio.h")]
640 public class FileIOStream : GLib.IOStream, GLib.Seekable {
641 [CCode (has_construct_function = false)]
642 protected FileIOStream ();
644 public virtual bool can_seek ();
646 public virtual bool can_truncate ();
647 public virtual unowned string get_etag ();
648 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
649 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
651 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
653 public virtual int64 tell ();
655 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
657 [CCode (cheader_filename = "gio/gio.h")]
658 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
659 [CCode (type = "GIcon*", has_construct_function = false)]
660 public FileIcon (GLib.File file);
661 public unowned GLib.File get_file ();
662 public GLib.File file { get; construct; }
665 [CCode (cheader_filename = "gio/gio.h")]
666 public class FileIconClass {
668 [CCode (cheader_filename = "gio/gio.h")]
669 public class FileInfo : GLib.Object {
670 [CCode (has_construct_function = false)]
672 public void clear_status ();
673 public void copy_into (GLib.FileInfo dest_info);
674 public unowned GLib.FileInfo dup ();
675 public unowned string get_attribute_as_string (string attribute);
676 public bool get_attribute_boolean (string attribute);
677 public unowned string get_attribute_byte_string (string attribute);
678 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
679 public int32 get_attribute_int32 (string attribute);
680 public int64 get_attribute_int64 (string attribute);
681 public unowned GLib.Object get_attribute_object (string attribute);
682 public GLib.FileAttributeStatus get_attribute_status (string attribute);
683 public unowned string get_attribute_string (string attribute);
684 public unowned string get_attribute_stringv (string attribute);
685 public GLib.FileAttributeType get_attribute_type (string attribute);
686 public uint32 get_attribute_uint32 (string attribute);
687 public uint64 get_attribute_uint64 (string attribute);
688 public unowned string get_content_type ();
689 public unowned string get_display_name ();
690 public unowned string get_edit_name ();
691 public unowned string get_etag ();
692 public GLib.FileType get_file_type ();
693 public unowned GLib.Icon get_icon ();
694 public bool get_is_backup ();
695 public bool get_is_hidden ();
696 public bool get_is_symlink ();
697 public void get_modification_time (out GLib.TimeVal _result);
698 public unowned string get_name ();
699 public int64 get_size ();
700 public int32 get_sort_order ();
701 public unowned string get_symlink_target ();
702 public bool has_attribute (string attribute);
703 public bool has_namespace (string name_space);
704 public unowned string list_attributes (string name_space);
705 public void remove_attribute (string attribute);
706 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
707 public void set_attribute_boolean (string attribute, bool attr_value);
708 public void set_attribute_byte_string (string attribute, string attr_value);
709 public void set_attribute_int32 (string attribute, int32 attr_value);
710 public void set_attribute_int64 (string attribute, int64 attr_value);
711 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
712 public void set_attribute_object (string attribute, GLib.Object attr_value);
713 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
714 public void set_attribute_string (string attribute, string attr_value);
715 public void set_attribute_stringv (string attribute, out unowned string attr_value);
716 public void set_attribute_uint32 (string attribute, uint32 attr_value);
717 public void set_attribute_uint64 (string attribute, uint64 attr_value);
718 public void set_content_type (string content_type);
719 public void set_display_name (string display_name);
720 public void set_edit_name (string edit_name);
721 public void set_file_type (GLib.FileType type);
722 public void set_icon (GLib.Icon icon);
723 public void set_is_hidden (bool is_hidden);
724 public void set_is_symlink (bool is_symlink);
725 public void set_modification_time (GLib.TimeVal mtime);
726 public void set_name (string name);
727 public void set_size (int64 size);
728 public void set_sort_order (int32 sort_order);
729 public void set_symlink_target (string symlink_target);
730 public void unset_attribute_mask ();
733 [CCode (cheader_filename = "gio/gio.h")]
734 public class FileInfoClass {
736 [CCode (cheader_filename = "gio/gio.h")]
737 public class FileInputStream : GLib.InputStream, GLib.Seekable {
738 [CCode (has_construct_function = false)]
739 protected FileInputStream ();
741 public virtual bool can_seek ();
742 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
743 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
745 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
747 public virtual int64 tell ();
749 [CCode (cheader_filename = "gio/gio.h")]
750 public class FileMonitor : GLib.Object {
751 [CCode (has_construct_function = false)]
752 protected FileMonitor ();
753 public virtual bool cancel ();
754 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
755 public bool is_cancelled ();
756 public void set_rate_limit (int limit_msecs);
758 public bool cancelled { get; }
760 public int rate_limit { get; set; }
761 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
763 [CCode (cheader_filename = "gio/gio.h")]
764 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
765 [CCode (has_construct_function = false)]
766 protected FileOutputStream ();
768 public virtual bool can_seek ();
770 public virtual bool can_truncate ();
771 public virtual unowned string get_etag ();
772 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
773 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
775 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
777 public virtual int64 tell ();
779 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
781 [CCode (cheader_filename = "gio/gio.h")]
782 public class FilenameCompleter : GLib.Object {
783 [CCode (has_construct_function = false)]
784 public FilenameCompleter ();
785 public unowned string get_completion_suffix (string initial_text);
786 public unowned string get_completions (string initial_text);
787 public void set_dirs_only (bool dirs_only);
788 public virtual signal void got_completion_data ();
790 [CCode (cheader_filename = "gio/gio.h")]
791 public class FilterInputStream : GLib.InputStream {
792 [CCode (has_construct_function = false)]
793 protected FilterInputStream ();
794 public unowned GLib.InputStream get_base_stream ();
795 public bool get_close_base_stream ();
796 public void set_close_base_stream (bool close_base);
797 public GLib.InputStream base_stream { get; construct; }
798 public bool close_base_stream { get; construct; }
800 [CCode (cheader_filename = "gio/gio.h")]
801 public class FilterOutputStream : GLib.OutputStream {
802 [CCode (has_construct_function = false)]
803 protected FilterOutputStream ();
804 public unowned GLib.OutputStream get_base_stream ();
805 public bool get_close_base_stream ();
806 public void set_close_base_stream (bool close_base);
807 public GLib.OutputStream base_stream { get; construct; }
808 public bool close_base_stream { get; construct; }
811 [CCode (cheader_filename = "gio/gio.h")]
812 public class IOExtension {
813 public unowned string get_name ();
814 public int get_priority ();
815 public GLib.Type get_type ();
816 public unowned GLib.TypeClass ref_class ();
819 [CCode (cheader_filename = "gio/gio.h")]
820 public class IOExtensionPoint {
821 public unowned GLib.IOExtension get_extension_by_name (string name);
822 public unowned GLib.List<GLib.IOExtension> get_extensions ();
823 public GLib.Type get_required_type ();
824 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
825 public static unowned GLib.IOExtensionPoint lookup (string name);
826 public static unowned GLib.IOExtensionPoint register (string name);
827 public void set_required_type (GLib.Type type);
829 [CCode (cheader_filename = "gio/gio.h")]
830 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
831 [CCode (has_construct_function = false)]
832 public IOModule (string filename);
834 public static unowned string query ();
835 public void unload ();
838 [CCode (cheader_filename = "gio/gio.h")]
839 public class IOModuleClass {
842 [CCode (cheader_filename = "gio/gio.h")]
843 public class IOSchedulerJob {
844 public bool send_to_mainloop (owned GLib.SourceFunc func);
845 public void send_to_mainloop_async (owned GLib.SourceFunc func);
847 [CCode (cheader_filename = "gio/gio.h")]
848 public class IOStream : GLib.Object {
849 [CCode (has_construct_function = false)]
850 protected IOStream ();
851 public void clear_pending ();
852 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
853 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
855 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
856 public virtual unowned GLib.InputStream get_input_stream ();
857 public virtual unowned GLib.OutputStream get_output_stream ();
858 public bool has_pending ();
859 public bool is_closed ();
860 public bool set_pending () throws GLib.Error;
861 public async bool splice_async (GLib.IOStream stream2, GLib.IOStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
863 public bool closed { get; set; }
864 public GLib.InputStream input_stream { get; }
865 public GLib.OutputStream output_stream { get; }
868 [CCode (cheader_filename = "gio/gio.h")]
869 public class IOStreamAdapter {
871 [CCode (cheader_filename = "gio/gio.h")]
872 public class InetAddress : GLib.Object {
873 [CCode (has_construct_function = false)]
874 protected InetAddress ();
875 [CCode (has_construct_function = false)]
876 public InetAddress.any (GLib.SocketFamily family);
877 [CCode (has_construct_function = false)]
878 public InetAddress.from_bytes ([CCode (array_length = false)] uint8[] bytes, GLib.SocketFamily family);
879 [CCode (has_construct_function = false)]
880 public InetAddress.from_string (string str);
881 public GLib.SocketFamily get_family ();
882 public bool get_is_any ();
883 public bool get_is_link_local ();
884 public bool get_is_loopback ();
885 public bool get_is_mc_global ();
886 public bool get_is_mc_link_local ();
887 public bool get_is_mc_node_local ();
888 public bool get_is_mc_org_local ();
889 public bool get_is_mc_site_local ();
890 public bool get_is_multicast ();
891 public bool get_is_site_local ();
892 public size_t get_native_size ();
893 [CCode (has_construct_function = false)]
894 public InetAddress.loopback (GLib.SocketFamily family);
895 [CCode (array_length = false)]
896 public virtual unowned uint8[] to_bytes ();
897 public virtual string to_string ();
899 public void* bytes { get; construct; }
900 public GLib.SocketFamily family { get; construct; }
901 public bool is_any { get; }
902 public bool is_link_local { get; }
903 public bool is_loopback { get; }
904 public bool is_mc_global { get; }
905 public bool is_mc_link_local { get; }
906 public bool is_mc_node_local { get; }
907 public bool is_mc_org_local { get; }
908 public bool is_mc_site_local { get; }
909 public bool is_multicast { get; }
910 public bool is_site_local { get; }
912 [CCode (cheader_filename = "gio/gio.h")]
913 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
914 [CCode (type = "GSocketAddress*", has_construct_function = false)]
915 public InetSocketAddress (GLib.InetAddress address, uint16 port);
916 public unowned GLib.InetAddress get_address ();
917 public uint16 get_port ();
918 public GLib.InetAddress address { get; construct; }
919 public uint port { get; construct; }
921 [CCode (cheader_filename = "gio/gio.h")]
922 public class InputStream : GLib.Object {
923 [CCode (has_construct_function = false)]
924 protected InputStream ();
925 public void clear_pending ();
926 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
927 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
929 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
930 public bool has_pending ();
931 public bool is_closed ();
932 [CCode (vfunc_name = "read_fn")]
933 public virtual ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
934 public bool read_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
935 public virtual async ssize_t read_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
936 public bool set_pending () throws GLib.Error;
937 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
938 public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
941 [CCode (cheader_filename = "gio/gio.h")]
942 public class InputVector {
943 [CCode (array_length_cname = "size", array_length_type = "gsize")]
944 public uint8[] buffer;
946 [CCode (cheader_filename = "gio/gio.h")]
947 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
948 [CCode (type = "GInputStream*", has_construct_function = false)]
949 public MemoryInputStream ();
950 public void add_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
951 [CCode (type = "GInputStream*", has_construct_function = false)]
952 public MemoryInputStream.from_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
954 [CCode (cheader_filename = "gio/gio.h")]
955 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
956 [CCode (type = "GOutputStream*", has_construct_function = false)]
957 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function, GLib.DestroyNotify? destroy_function);
958 [CCode (array_length = false)]
959 public unowned uint8[] get_data ();
960 public size_t get_data_size ();
961 public size_t get_size ();
962 [CCode (array_length = false)]
963 public uint8[] steal_data ();
964 public void* data { get; construct; }
965 public ulong data_size { get; }
967 public void* destroy_function { get; construct; }
969 public void* realloc_function { get; construct; }
970 public ulong size { get; construct; }
972 [CCode (cheader_filename = "gio/gio.h")]
973 public class MountOperation : GLib.Object {
974 [CCode (has_construct_function = false)]
975 public MountOperation ();
976 public bool get_anonymous ();
977 public int get_choice ();
978 public unowned string get_domain ();
979 public unowned string get_password ();
980 public GLib.PasswordSave get_password_save ();
981 public unowned string get_username ();
982 public void set_anonymous (bool anonymous);
983 public void set_choice (int choice);
984 public void set_domain (string domain);
985 public void set_password (string password);
986 public void set_password_save (GLib.PasswordSave save);
987 public void set_username (string username);
988 public bool anonymous { get; set; }
989 public int choice { get; set; }
990 public string domain { get; set; }
991 public string password { get; set; }
992 public GLib.PasswordSave password_save { get; set; }
993 public string username { get; set; }
994 public virtual signal void aborted ();
995 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
996 public virtual signal void ask_question (string message, string[] choices);
998 public virtual signal void reply (GLib.MountOperationResult result);
999 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
1001 [CCode (cheader_filename = "gio/gio.h")]
1002 public class NativeVolumeMonitor : GLib.VolumeMonitor {
1003 [CCode (has_construct_function = false)]
1004 protected NativeVolumeMonitor ();
1006 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
1008 [CCode (cheader_filename = "gio/gio.h")]
1009 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
1010 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1011 public NetworkAddress (string hostname, uint16 port);
1012 public unowned string get_hostname ();
1013 public uint16 get_port ();
1014 public unowned string get_scheme ();
1015 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
1016 public static unowned GLib.SocketConnectable parse_uri (string uri, uint16 default_port) throws GLib.Error;
1017 public string hostname { get; construct; }
1018 public uint port { get; construct; }
1019 public string scheme { get; construct; }
1021 [CCode (cheader_filename = "gio/gio.h")]
1022 public class NetworkService : GLib.Object, GLib.SocketConnectable {
1023 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1024 public NetworkService (string service, string protocol, string domain);
1025 public unowned string get_domain ();
1026 public unowned string get_protocol ();
1027 public unowned string get_scheme ();
1028 public unowned string get_service ();
1029 public void set_scheme (string scheme);
1030 public string domain { get; construct; }
1031 public string protocol { get; construct; }
1032 public string scheme { get; set; }
1033 public string service { get; construct; }
1035 [CCode (cheader_filename = "gio/gio.h")]
1036 public class OutputStream : GLib.Object {
1037 [CCode (has_construct_function = false)]
1038 protected OutputStream ();
1039 public void clear_pending ();
1040 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1041 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1043 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1044 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
1045 public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1046 public bool has_pending ();
1047 public bool is_closed ();
1048 public bool is_closing ();
1049 public bool set_pending () throws GLib.Error;
1050 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1051 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1052 [CCode (vfunc_name = "write_fn")]
1053 public virtual ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1054 public bool write_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1055 public virtual async ssize_t write_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1058 [CCode (cheader_filename = "gio/gio.h")]
1059 public class OutputVector {
1060 [CCode (array_length_cname = "size", array_length_type = "gsize")]
1061 public uint8[] buffer;
1063 [CCode (cheader_filename = "gio/gio.h")]
1064 public class Permission : GLib.Object {
1065 [CCode (has_construct_function = false)]
1066 protected Permission ();
1067 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
1068 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1069 public bool get_allowed ();
1070 public bool get_can_acquire ();
1071 public bool get_can_release ();
1072 public void impl_update (bool allowed, bool can_acquire, bool can_release);
1073 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1074 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1075 public bool allowed { get; }
1076 public bool can_acquire { get; }
1077 public bool can_release { get; }
1079 [CCode (cheader_filename = "gio/gio.h")]
1080 public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
1081 [CCode (type = "GSocketAddress*", has_construct_function = false)]
1082 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string username, string password);
1083 public unowned string get_destination_hostname ();
1084 public uint16 get_destination_port ();
1085 public unowned string get_password ();
1086 public unowned string get_protocol ();
1087 public unowned string get_username ();
1088 public string destination_hostname { get; construct; }
1089 public uint destination_port { get; construct; }
1090 public string password { get; construct; }
1091 public string protocol { get; construct; }
1092 public string username { get; construct; }
1094 [CCode (cheader_filename = "gio/gio.h")]
1095 public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
1096 [CCode (has_construct_function = false)]
1097 protected ProxyAddressEnumerator ();
1099 public GLib.SocketConnectable connectable { owned get; construct; }
1101 public string uri { owned get; construct; }
1103 [CCode (cheader_filename = "gio/gio.h")]
1104 public class Resolver : GLib.Object {
1105 [CCode (has_construct_function = false)]
1106 protected Resolver ();
1107 public static GLib.Quark error_quark ();
1108 public static unowned GLib.Resolver get_default ();
1109 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1110 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1111 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1112 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1113 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1114 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1115 public void set_default ();
1116 public virtual signal void reload ();
1118 [CCode (cheader_filename = "gio/gio.h")]
1119 public class Settings : GLib.Object {
1120 [CCode (has_construct_function = false)]
1121 public Settings (string schema);
1122 public void apply ();
1123 public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags);
1124 public void bind_with_mapping (string key, void* object, string property, GLib.SettingsBindFlags flags, GLib.SettingsBindGetMapping get_mapping, GLib.SettingsBindSetMapping set_mapping, GLib.DestroyNotify destroy);
1125 public void bind_writable (string key, void* object, string property, bool inverted);
1126 public void delay ();
1127 [CCode (sentinel = "")]
1128 public void @get (string key, string format, ...);
1129 public bool get_boolean (string key);
1130 public unowned GLib.Settings get_child (string name);
1131 public double get_double (string key);
1132 public int get_enum (string key);
1133 public uint get_flags (string key);
1134 public bool get_has_unapplied ();
1135 public int get_int (string key);
1136 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
1137 public unowned GLib.Variant get_range (string key);
1138 public string get_string (string key);
1139 [CCode (array_length = false, array_null_terminated = true)]
1140 public string[] get_strv (string key);
1141 public GLib.Variant get_value (string key);
1142 public bool is_writable (string name);
1143 [CCode (array_length = false, array_null_terminated = true)]
1144 public string[] list_children ();
1145 [CCode (array_length = false, array_null_terminated = true)]
1146 public string[] list_keys ();
1147 public static unowned string list_relocatable_schemas ();
1148 [CCode (array_length = false, array_null_terminated = true)]
1149 public static unowned string[] list_schemas ();
1150 public bool range_check (string key, GLib.Variant value);
1151 public void reset (string key);
1152 public void revert ();
1153 [CCode (sentinel = "")]
1154 public bool @set (string key, string format, ...);
1155 public bool set_boolean (string key, bool value);
1156 public bool set_double (string key, double value);
1157 public bool set_enum (string key, int value);
1158 public bool set_flags (string key, uint value);
1159 public bool set_int (string key, int value);
1160 public bool set_string (string key, string value);
1161 public bool set_strv (string key, [CCode (array_length = false)] string[] value);
1162 public bool set_value (string key, GLib.Variant value);
1163 public static void sync ();
1164 public static void unbind (void* object, string property);
1165 [CCode (has_construct_function = false)]
1166 public Settings.with_backend (string schema, GLib.SettingsBackend backend);
1167 [CCode (has_construct_function = false)]
1168 public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path);
1169 [CCode (has_construct_function = false)]
1170 public Settings.with_path (string schema, string path);
1172 public GLib.SettingsBackend backend { owned get; construct; }
1174 public bool delay_apply { get; }
1175 public bool has_unapplied { get; }
1177 public string path { owned get; construct; }
1179 public string schema { owned get; construct; }
1180 public virtual signal bool change_event (void* keys, int n_keys);
1181 public virtual signal void changed (string key);
1182 public virtual signal bool writable_change_event (uint key);
1183 public virtual signal void writable_changed (string key);
1185 [CCode (cheader_filename = "gio/gio.h")]
1186 public class SettingsBackend : GLib.Object {
1188 [CCode (cheader_filename = "gio/gio.h")]
1189 public class SimpleAction : GLib.Object, GLib.Action {
1190 [CCode (has_construct_function = false)]
1191 public SimpleAction (string name, GLib.VariantType parameter_type);
1192 public void set_enabled (bool enabled);
1193 [CCode (has_construct_function = false)]
1194 public SimpleAction.stateful (string name, GLib.VariantType parameter_type, GLib.Variant state);
1196 public bool enabled { get; set construct; }
1198 public string name { owned get; construct; }
1200 public GLib.VariantType parameter_type { owned get; construct; }
1202 public GLib.Variant state { owned get; set construct; }
1204 public GLib.VariantType state_type { owned get; }
1205 public virtual signal void activate (GLib.Variant parameter);
1207 [CCode (cheader_filename = "gio/gio.h")]
1208 public class SimpleActionGroup : GLib.Object, GLib.ActionGroup {
1209 [CCode (has_construct_function = false)]
1210 public SimpleActionGroup ();
1211 public void insert (GLib.Action action);
1212 public unowned GLib.Action lookup (string action_name);
1213 public void remove (string action_name);
1215 [CCode (cheader_filename = "gio/gio.h")]
1216 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
1217 [CCode (has_construct_function = false)]
1218 public SimpleAsyncResult (GLib.Object? source_object, GLib.AsyncReadyCallback callback, void* source_tag);
1219 public void complete ();
1220 public void complete_in_idle ();
1221 [CCode (has_construct_function = false)]
1222 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1223 [CCode (has_construct_function = false)]
1224 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
1225 public bool get_op_res_gboolean ();
1226 public void* get_op_res_gpointer ();
1227 public ssize_t get_op_res_gssize ();
1228 public void* get_source_tag ();
1229 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
1230 public bool propagate_error () throws GLib.Error;
1231 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1232 public void set_error (GLib.Quark domain, int code, string format);
1233 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
1234 public void set_from_error (GLib.Error error);
1235 public void set_handle_cancellation (bool handle_cancellation);
1236 public void set_op_res_gboolean (bool op_res);
1237 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
1238 public void set_op_res_gssize (ssize_t op_res);
1239 public void take_error (GLib.Error error);
1242 [CCode (cheader_filename = "gio/gio.h")]
1243 public class SimpleAsyncResultClass {
1245 [CCode (cheader_filename = "gio/gio.h")]
1246 public class SimplePermission : GLib.Permission {
1247 [CCode (type = "GPermission*", has_construct_function = false)]
1248 public SimplePermission (bool allowed);
1250 [CCode (cheader_filename = "gio/gio.h")]
1251 public class Socket : GLib.Object, GLib.Initable {
1252 [CCode (has_construct_function = false)]
1253 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
1254 public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
1255 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
1256 public bool check_connect_result () throws GLib.Error;
1257 public bool close () throws GLib.Error;
1258 public GLib.IOCondition condition_check (GLib.IOCondition condition);
1259 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1260 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1261 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
1262 [CCode (has_construct_function = false)]
1263 public Socket.from_fd (int fd) throws GLib.Error;
1264 public bool get_blocking ();
1265 public unowned GLib.Credentials get_credentials () throws GLib.Error;
1266 public GLib.SocketFamily get_family ();
1267 public int get_fd ();
1268 public bool get_keepalive ();
1269 public int get_listen_backlog ();
1270 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1271 public GLib.SocketProtocol get_protocol ();
1272 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1273 public GLib.SocketType get_socket_type ();
1274 public uint get_timeout ();
1275 public bool is_closed ();
1276 public bool is_connected ();
1277 public bool listen () throws GLib.Error;
1278 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1279 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1280 public ssize_t receive_message (out unowned GLib.SocketAddress address, GLib.InputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1281 public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1282 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1283 public ssize_t send_message (GLib.SocketAddress address, GLib.OutputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1284 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1285 public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1286 public void set_blocking (bool blocking);
1287 public void set_keepalive (bool keepalive);
1288 public void set_listen_backlog (int backlog);
1289 public void set_timeout (uint timeout);
1290 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
1291 public bool speaks_ipv4 ();
1292 public bool blocking { get; set; }
1293 public GLib.SocketFamily family { get; construct; }
1294 public int fd { get; construct; }
1295 public bool keepalive { get; set; }
1296 public int listen_backlog { get; set; }
1297 public GLib.SocketAddress local_address { get; }
1298 public GLib.SocketProtocol protocol { get; construct; }
1299 public GLib.SocketAddress remote_address { get; }
1300 public uint timeout { get; set; }
1302 public GLib.SocketType type { get; construct; }
1304 [CCode (cheader_filename = "gio/gio.h")]
1305 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
1306 [CCode (has_construct_function = false)]
1307 protected SocketAddress ();
1308 [CCode (has_construct_function = false)]
1309 public SocketAddress.from_native (void* native, size_t len);
1310 public virtual GLib.SocketFamily get_family ();
1311 public virtual ssize_t get_native_size ();
1312 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
1313 public GLib.SocketFamily family { get; }
1315 [CCode (cheader_filename = "gio/gio.h")]
1316 public class SocketAddressEnumerator : GLib.Object {
1317 [CCode (has_construct_function = false)]
1318 protected SocketAddressEnumerator ();
1319 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
1320 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1322 [CCode (cheader_filename = "gio/gio.h")]
1323 public class SocketClient : GLib.Object {
1324 [CCode (has_construct_function = false)]
1325 public SocketClient ();
1326 public void add_application_proxy (string protocol);
1327 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1328 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1329 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1330 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1331 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1332 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1333 public unowned GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1334 public async unowned GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1335 public bool get_enable_proxy ();
1336 public GLib.SocketFamily get_family ();
1337 public unowned GLib.SocketAddress get_local_address ();
1338 public GLib.SocketProtocol get_protocol ();
1339 public GLib.SocketType get_socket_type ();
1340 public uint get_timeout ();
1341 public bool get_tls ();
1342 public GLib.TlsCertificateFlags get_tls_validation_flags ();
1343 public void set_enable_proxy (bool enable);
1344 public void set_family (GLib.SocketFamily family);
1345 public void set_local_address (GLib.SocketAddress address);
1346 public void set_protocol (GLib.SocketProtocol protocol);
1347 public void set_socket_type (GLib.SocketType type);
1348 public void set_timeout (uint timeout);
1349 public void set_tls (bool tls);
1350 public void set_tls_validation_flags (GLib.TlsCertificateFlags flags);
1351 public bool enable_proxy { get; set construct; }
1352 public GLib.SocketFamily family { get; set construct; }
1353 public GLib.SocketAddress local_address { get; set construct; }
1354 public GLib.SocketProtocol protocol { get; set construct; }
1355 public uint timeout { get; set construct; }
1356 public bool tls { get; set construct; }
1357 public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; }
1359 public GLib.SocketType type { get; set construct; }
1361 [CCode (cheader_filename = "gio/gio.h")]
1362 public class SocketConnection : GLib.IOStream {
1363 [CCode (has_construct_function = false)]
1364 protected SocketConnection ();
1365 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
1366 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
1367 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
1368 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1369 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1370 public unowned GLib.Socket get_socket ();
1371 public GLib.Socket socket { get; construct; }
1373 [CCode (cheader_filename = "gio/gio.h")]
1374 public class SocketControlMessage : GLib.Object {
1375 [CCode (has_construct_function = false)]
1376 protected SocketControlMessage ();
1377 public virtual GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] data);
1378 public virtual int get_level ();
1379 public int get_msg_type ();
1380 public virtual size_t get_size ();
1382 public virtual int get_type ();
1383 public virtual void serialize ([CCode (array_length = false)] uint8[] data);
1385 [CCode (cheader_filename = "gio/gio.h")]
1386 public class SocketListener : GLib.Object {
1387 [CCode (has_construct_function = false)]
1388 public SocketListener ();
1389 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1390 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1391 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1392 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1393 public bool add_address (GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object? source_object, out unowned GLib.SocketAddress effective_address) throws GLib.Error;
1394 public uint16 add_any_inet_port (GLib.Object source_object) throws GLib.Error;
1395 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
1396 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
1398 public virtual void changed ();
1399 public void close ();
1400 public void set_backlog (int listen_backlog);
1402 public int listen_backlog { get; set construct; }
1404 [CCode (cheader_filename = "gio/gio.h")]
1405 public class SocketService : GLib.SocketListener {
1406 [CCode (has_construct_function = false)]
1407 public SocketService ();
1408 public bool is_active ();
1409 public void start ();
1410 public void stop ();
1411 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
1414 [CCode (cname = "GSource", cheader_filename = "gio/gio.h")]
1415 public class SocketSource : GLib.Source {
1416 [CCode (cname = "g_source_set_callback")]
1417 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
1420 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
1421 public class SrvTarget {
1422 [CCode (has_construct_function = false)]
1423 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
1424 public GLib.SrvTarget copy ();
1425 public unowned string get_hostname ();
1426 public uint16 get_port ();
1427 public uint16 get_priority ();
1428 public uint16 get_weight ();
1429 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
1431 [CCode (cheader_filename = "gio/gio.h")]
1432 public class TcpConnection : GLib.SocketConnection {
1433 [CCode (has_construct_function = false)]
1434 protected TcpConnection ();
1435 public bool get_graceful_disconnect ();
1436 public void set_graceful_disconnect (bool graceful_disconnect);
1437 public bool graceful_disconnect { get; set; }
1439 [CCode (cheader_filename = "gio/gio.h")]
1440 public class TcpWrapperConnection : GLib.TcpConnection {
1441 [CCode (type = "GSocketConnection*", has_construct_function = false)]
1442 public TcpWrapperConnection (GLib.IOStream base_io_stream, GLib.Socket socket);
1443 public unowned GLib.IOStream get_base_io_stream ();
1444 public GLib.IOStream base_io_stream { get; construct; }
1446 [CCode (cheader_filename = "gio/gio.h")]
1447 public class ThemedIcon : GLib.Object, GLib.Icon {
1448 [CCode (type = "GIcon*", has_construct_function = false)]
1449 public ThemedIcon (string iconname);
1450 public void append_name (string iconname);
1451 [CCode (type = "GIcon*", has_construct_function = false)]
1452 public ThemedIcon.from_names (string[] iconnames);
1453 [CCode (array_length = false, array_null_terminated = true)]
1454 public unowned string[] get_names ();
1455 public void prepend_name (string iconname);
1456 [CCode (type = "GIcon*", has_construct_function = false)]
1457 public ThemedIcon.with_default_fallbacks (string iconname);
1458 public string name { construct; }
1459 [CCode (array_length = false, array_null_terminated = true)]
1460 public string[] names { get; construct; }
1462 public bool use_default_fallbacks { get; construct; }
1465 [CCode (cheader_filename = "gio/gio.h")]
1466 public class ThemedIconClass {
1468 [CCode (cheader_filename = "gio/gio.h")]
1469 public class ThreadedSocketService : GLib.SocketService {
1470 [CCode (type = "GSocketService*", has_construct_function = false)]
1471 public ThreadedSocketService (int max_threads);
1473 public int max_threads { get; construct; }
1474 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
1476 [CCode (cheader_filename = "gio/gio.h")]
1477 public class TlsCertificate : GLib.Object {
1478 [CCode (has_construct_function = false)]
1479 protected TlsCertificate ();
1480 [CCode (has_construct_function = false)]
1481 public TlsCertificate.from_file (string file) throws GLib.Error;
1482 [CCode (has_construct_function = false)]
1483 public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
1484 [CCode (has_construct_function = false)]
1485 public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
1486 public unowned GLib.TlsCertificate get_issuer ();
1487 public static unowned GLib.List list_new_from_file (string file) throws GLib.Error;
1488 public virtual GLib.TlsCertificateFlags verify (GLib.SocketConnectable identity, GLib.TlsCertificate trusted_ca);
1490 public GLib.ByteArray certificate { owned get; construct; }
1492 public string certificate_pem { owned get; construct; }
1493 public GLib.TlsCertificate issuer { get; construct; }
1494 public GLib.ByteArray private_key { construct; }
1495 public string private_key_pem { construct; }
1498 [CCode (cheader_filename = "gio/gio.h")]
1499 public class TlsClientContext {
1501 [CCode (cheader_filename = "gio/gio.h")]
1502 public class TlsConnection : GLib.IOStream {
1503 [CCode (has_construct_function = false)]
1504 protected TlsConnection ();
1505 public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
1506 public unowned GLib.TlsCertificate get_certificate ();
1507 public unowned GLib.TlsCertificate get_peer_certificate ();
1508 public GLib.TlsCertificateFlags get_peer_certificate_errors ();
1509 public GLib.TlsRehandshakeMode get_rehandshake_mode ();
1510 public bool get_require_close_notify ();
1511 public bool get_use_system_certdb ();
1512 public virtual bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
1513 public virtual async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1514 public void set_certificate (GLib.TlsCertificate certificate);
1515 public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
1516 public void set_require_close_notify (bool require_close_notify);
1517 public void set_use_system_certdb (bool use_system_certdb);
1519 public GLib.IOStream base_io_stream { owned get; construct; }
1520 public GLib.TlsCertificate certificate { get; set; }
1521 public GLib.TlsCertificate peer_certificate { get; }
1522 public GLib.TlsCertificateFlags peer_certificate_errors { get; }
1523 public GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
1524 public bool require_close_notify { get; set construct; }
1525 public bool use_system_certdb { get; set construct; }
1526 public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
1529 [CCode (cheader_filename = "gio/gio.h")]
1530 public class TlsContext {
1533 [CCode (cheader_filename = "gio/gio.h")]
1534 public class TlsServerContext {
1537 [CCode (cheader_filename = "gio/gio.h")]
1538 public class UnixCredentialsMessage {
1541 [CCode (cheader_filename = "gio/gio.h")]
1542 public class UnixFDList {
1544 [CCode (cheader_filename = "gio/gio.h")]
1545 public class Vfs : GLib.Object {
1546 [CCode (has_construct_function = false)]
1549 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
1550 public static unowned GLib.Vfs get_default ();
1551 public virtual GLib.File get_file_for_path (string path);
1552 public virtual GLib.File get_file_for_uri (string uri);
1553 public static unowned GLib.Vfs get_local ();
1554 public virtual unowned string[] get_supported_uri_schemes ();
1555 public virtual bool is_active ();
1557 public virtual void local_file_add_info (string filename, uint64 device, GLib.FileAttributeMatcher attribute_matcher, GLib.FileInfo info, GLib.Cancellable? cancellable = null, void* extra_data = null, GLib.DestroyNotify? free_extra_data = null);
1559 public virtual void local_file_moved (string source, string dest);
1561 public virtual void local_file_removed (string filename);
1563 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1564 public virtual unowned GLib.File parse_name (string parse_name);
1566 [CCode (cheader_filename = "gio/gio.h")]
1567 public class VolumeMonitor : GLib.Object {
1568 [CCode (has_construct_function = false)]
1569 protected VolumeMonitor ();
1570 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
1571 public static GLib.VolumeMonitor @get ();
1572 public virtual GLib.List<GLib.Drive> get_connected_drives ();
1573 public virtual GLib.Mount get_mount_for_uuid (string uuid);
1574 public virtual GLib.List<GLib.Mount> get_mounts ();
1575 public virtual GLib.Volume get_volume_for_uuid (string uuid);
1576 public virtual GLib.List<GLib.Volume> get_volumes ();
1578 public virtual bool is_supported ();
1579 public virtual signal void drive_changed (GLib.Drive drive);
1580 public virtual signal void drive_connected (GLib.Drive drive);
1581 public virtual signal void drive_disconnected (GLib.Drive drive);
1582 public virtual signal void drive_eject_button (GLib.Drive drive);
1583 public virtual signal void drive_stop_button (GLib.Drive drive);
1584 public virtual signal void mount_added (GLib.Mount mount);
1585 public virtual signal void mount_changed (GLib.Mount mount);
1586 public virtual signal void mount_pre_unmount (GLib.Mount mount);
1587 public virtual signal void mount_removed (GLib.Mount mount);
1588 public virtual signal void volume_added (GLib.Volume volume);
1589 public virtual signal void volume_changed (GLib.Volume volume);
1590 public virtual signal void volume_removed (GLib.Volume volume);
1592 [CCode (cheader_filename = "gio/gio.h")]
1593 public class ZlibCompressor : GLib.Object, GLib.Converter {
1594 [CCode (has_construct_function = false)]
1595 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1596 public unowned GLib.FileInfo get_file_info ();
1597 public void set_file_info (GLib.FileInfo file_info);
1598 public GLib.FileInfo file_info { get; set; }
1600 public GLib.ZlibCompressorFormat format { get; construct; }
1602 public int level { get; construct; }
1604 [CCode (cheader_filename = "gio/gio.h")]
1605 public class ZlibDecompressor : GLib.Object, GLib.Converter {
1606 [CCode (has_construct_function = false)]
1607 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1608 public unowned GLib.FileInfo get_file_info ();
1609 public GLib.FileInfo file_info { get; }
1611 public GLib.ZlibCompressorFormat format { get; construct; }
1613 [CCode (cheader_filename = "gio/gio.h")]
1614 public interface Action : GLib.Object {
1615 public abstract void activate (GLib.Variant parameter);
1616 public abstract bool get_enabled ();
1617 public abstract unowned string get_name ();
1618 public abstract unowned GLib.VariantType get_parameter_type ();
1619 public abstract unowned GLib.Variant get_state ();
1620 public abstract unowned GLib.Variant get_state_hint ();
1621 public abstract unowned GLib.VariantType get_state_type ();
1622 public abstract void set_state (GLib.Variant value);
1623 public bool enabled { get; set construct; }
1624 public string name { get; construct; }
1625 public GLib.VariantType parameter_type { get; construct; }
1626 public GLib.Variant state { get; set construct; }
1627 public GLib.VariantType state_type { get; }
1629 [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionGroupInterface")]
1630 public interface ActionGroup : GLib.Object {
1631 public abstract void activate_action (string action_name, GLib.Variant? parameter);
1632 public abstract void change_action_state (string action_name, GLib.Variant value);
1633 public abstract bool get_action_enabled (string action_name);
1634 public abstract unowned GLib.VariantType? get_action_parameter_type (string action_name);
1635 public abstract GLib.Variant? get_action_state (string action_name);
1636 public abstract GLib.Variant? get_action_state_hint (string action_name);
1637 public abstract unowned GLib.VariantType? get_action_state_type (string action_name);
1638 public abstract bool has_action (string action_name);
1639 [CCode (array_length = false, array_null_terminated = true)]
1640 public abstract string[] list_actions ();
1642 public signal void action_added (string action_name);
1644 public signal void action_enabled_changed (string action_name, bool enabled);
1646 public signal void action_removed (string action_name);
1648 public signal void action_state_changed (string action_name, GLib.Variant value);
1650 [CCode (cheader_filename = "gio/gio.h")]
1651 public interface AppInfo : GLib.Object {
1652 public abstract bool add_supports_type (string content_type) throws GLib.Error;
1653 public abstract bool can_delete ();
1654 public abstract bool can_remove_supports_type ();
1655 public static unowned GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
1656 public bool @delete ();
1658 public abstract bool do_delete ();
1659 public abstract unowned GLib.AppInfo dup ();
1660 public abstract bool equal (GLib.AppInfo appinfo2);
1661 public static GLib.List<GLib.AppInfo> get_all ();
1662 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
1663 public abstract unowned string get_commandline ();
1664 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
1665 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
1666 public abstract unowned string get_description ();
1667 public abstract unowned string get_display_name ();
1668 public abstract unowned string get_executable ();
1669 public static unowned GLib.List get_fallback_for_type (string content_type);
1670 public abstract unowned GLib.Icon get_icon ();
1671 public abstract unowned string get_id ();
1672 public abstract unowned string get_name ();
1673 public static unowned GLib.List get_recommended_for_type (string content_type);
1674 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1675 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1676 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
1677 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
1678 public static void reset_type_associations (string content_type);
1679 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
1680 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
1681 public abstract bool set_as_last_used_for_type (string content_type) throws GLib.Error;
1682 public abstract bool should_show ();
1683 public abstract bool supports_files ();
1684 public abstract bool supports_uris ();
1686 [CCode (cheader_filename = "gio/gio.h")]
1687 public interface AsyncInitable : GLib.Object {
1688 public abstract async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1689 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1690 public static async void new_valist_async (GLib.Type object_type, string first_property_name, void* var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1691 public static async void newv_async (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1693 [CCode (cheader_filename = "gio/gio.h")]
1694 public interface AsyncResult : GLib.Object {
1695 public abstract unowned GLib.Object get_source_object ();
1696 public abstract void* get_user_data ();
1698 [CCode (cheader_filename = "gio/gio.h")]
1699 public interface Converter : GLib.Object {
1700 public abstract GLib.ConverterResult convert ([CCode (array_length_type = "gsize")] uint8[] inbuf, [CCode (array_length_type = "gsize")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
1701 public abstract void reset ();
1703 [CCode (cheader_filename = "gio/gio.h")]
1704 public interface Drive : GLib.Object {
1705 public abstract bool can_eject ();
1706 public abstract bool can_poll_for_media ();
1707 public abstract bool can_start ();
1708 public abstract bool can_start_degraded ();
1709 public abstract bool can_stop ();
1710 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1711 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1712 public abstract unowned string enumerate_identifiers ();
1713 public abstract unowned GLib.Icon get_icon ();
1714 public abstract unowned string get_identifier (string kind);
1715 public abstract unowned string get_name ();
1716 public abstract GLib.DriveStartStopType get_start_stop_type ();
1717 public abstract GLib.List<GLib.Volume> get_volumes ();
1718 public abstract bool has_media ();
1719 public abstract bool has_volumes ();
1720 public abstract bool is_media_check_automatic ();
1721 public abstract bool is_media_removable ();
1722 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
1723 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1724 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1725 public signal void changed ();
1726 public signal void disconnected ();
1727 public signal void eject_button ();
1728 public signal void stop_button ();
1730 [CCode (cheader_filename = "gio/gio.h")]
1731 public interface File : GLib.Object {
1732 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1733 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1734 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1735 public abstract async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1736 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1737 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1738 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1739 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1740 public abstract async unowned GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1741 public bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
1743 public abstract bool delete_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1744 public abstract unowned GLib.File dup ();
1745 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1746 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1747 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1748 public abstract async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1749 public abstract bool equal (GLib.File file2);
1750 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
1751 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1752 public abstract string? get_basename ();
1753 public GLib.File get_child (string name);
1754 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1755 public abstract GLib.File? get_parent ();
1756 public abstract string get_parse_name ();
1757 public abstract string? get_path ();
1758 public abstract string? get_relative_path (GLib.File descendant);
1759 public abstract string get_uri ();
1760 public abstract string get_uri_scheme ();
1761 public bool has_parent (GLib.File? parent);
1762 public bool has_prefix (GLib.File prefix);
1763 public abstract bool has_uri_scheme (string uri_scheme);
1764 public abstract uint hash ();
1765 public abstract bool is_native ();
1766 public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1767 public async bool load_contents_async (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1768 public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1769 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
1770 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
1771 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
1772 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1773 [CCode (vfunc_name = "monitor_dir")]
1774 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1775 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1776 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1777 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1778 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1779 public static GLib.File new_for_commandline_arg (string arg);
1780 public static GLib.File new_for_path (string path);
1781 public static GLib.File new_for_uri (string uri);
1782 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
1783 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1784 public static unowned GLib.File parse_name (string parse_name);
1785 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
1787 public abstract bool prefix_matches (GLib.File file);
1788 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
1789 public bool query_exists (GLib.Cancellable? cancellable = null);
1790 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
1791 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1792 public abstract async unowned GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1793 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1794 public abstract async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1795 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
1796 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
1797 public GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
1798 public abstract async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1800 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1801 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1802 public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1803 public bool replace_contents (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string? new_etag, GLib.Cancellable? cancellable = null) throws GLib.Error;
1804 public async bool replace_contents_async (string contents, size_t length, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string? new_etag = null) throws GLib.Error;
1805 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1806 public abstract async unowned GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1807 public abstract GLib.File resolve_relative_path (string relative_path);
1808 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1809 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1810 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1811 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1812 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1813 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1814 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1815 public abstract async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, out unowned GLib.FileInfo info_out) throws GLib.Error;
1816 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1817 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
1818 public abstract async unowned GLib.File set_display_name_async (string display_name, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1819 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1820 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1821 public bool supports_thread_contexts ();
1822 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
1823 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1824 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1826 [CCode (cheader_filename = "gio/gio.h")]
1827 public interface Icon : GLib.Object {
1828 public abstract bool equal (GLib.Icon icon2);
1830 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1831 public abstract uint hash (void* icon);
1832 public static GLib.Icon? new_for_string (string str) throws GLib.Error;
1833 public string to_string ();
1835 public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
1837 [CCode (cheader_filename = "gio/gio.h")]
1838 public interface Initable : GLib.Object {
1839 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
1840 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1841 public static unowned GLib.Object new_valist (GLib.Type object_type, string first_property_name, void* var_args, GLib.Cancellable? cancellable = null) throws GLib.Error;
1842 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
1844 [CCode (cheader_filename = "gio/gio.h")]
1845 public interface LoadableIcon : GLib.Icon, GLib.Object {
1846 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1847 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1849 [CCode (cheader_filename = "gio/gio.h")]
1850 public interface Mount : GLib.Object {
1851 public abstract bool can_eject ();
1852 public abstract bool can_unmount ();
1853 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1854 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1855 public abstract unowned GLib.File get_default_location ();
1856 public abstract unowned GLib.Drive get_drive ();
1857 public abstract unowned GLib.Icon get_icon ();
1858 public abstract unowned string get_name ();
1859 public abstract unowned GLib.File get_root ();
1860 public abstract unowned string get_uuid ();
1861 public abstract unowned GLib.Volume get_volume ();
1862 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1863 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1864 public bool is_shadowed ();
1865 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1866 public void shadow ();
1867 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1868 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1869 public void unshadow ();
1870 public signal void changed ();
1871 public signal void pre_unmount ();
1872 public signal void unmounted ();
1874 [CCode (cheader_filename = "gio/gio.h")]
1875 public interface PollableInputStream : GLib.InputStream {
1876 public abstract bool can_poll ();
1877 public abstract unowned GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
1878 public abstract bool is_readable ();
1879 public abstract ssize_t read_nonblocking (void* buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1881 [CCode (cheader_filename = "gio/gio.h")]
1882 public interface PollableOutputStream : GLib.OutputStream {
1883 public abstract bool can_poll ();
1884 public abstract unowned GLib.TimeoutSource create_source (GLib.Cancellable? cancellable = null);
1885 public abstract bool is_writable ();
1886 public abstract ssize_t write_nonblocking (void* buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1888 [CCode (cheader_filename = "gio/gio.h")]
1889 public interface Proxy : GLib.Object {
1890 public abstract unowned GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1891 public abstract async unowned GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1892 public static unowned GLib.Proxy get_default_for_protocol (string protocol);
1893 public abstract bool supports_hostname ();
1895 [CCode (cheader_filename = "gio/gio.h")]
1896 public interface ProxyResolver : GLib.Object {
1897 public static unowned GLib.ProxyResolver get_default ();
1898 public abstract bool is_supported ();
1899 public abstract unowned string lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1900 public abstract async unowned string lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1902 [CCode (cheader_filename = "gio/gio.h")]
1903 public interface Seekable : GLib.Object {
1904 public abstract bool can_seek ();
1905 public abstract bool can_truncate ();
1906 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1907 public abstract int64 tell ();
1908 [CCode (vfunc_name = "truncate_fn")]
1909 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
1911 [CCode (cheader_filename = "gio/gio.h")]
1912 public interface SocketConnectable : GLib.Object {
1913 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1914 public abstract unowned GLib.SocketAddressEnumerator proxy_enumerate ();
1916 [CCode (cheader_filename = "gio/gio.h")]
1917 public interface TlsBackend : GLib.Object {
1918 public abstract GLib.Type get_certificate_type ();
1919 public abstract GLib.Type get_client_connection_type ();
1920 public static unowned GLib.TlsBackend get_default ();
1921 public abstract GLib.Type get_server_connection_type ();
1922 public abstract bool supports_tls ();
1924 [CCode (cheader_filename = "gio/gio.h")]
1925 public interface TlsClientConnection : GLib.TlsConnection {
1926 public unowned GLib.List get_accepted_cas ();
1927 public unowned GLib.SocketConnectable get_server_identity ();
1928 public bool get_use_ssl3 ();
1929 public GLib.TlsCertificateFlags get_validation_flags ();
1930 public static unowned GLib.IOStream @new (GLib.IOStream base_io_stream, GLib.SocketConnectable server_identity) throws GLib.Error;
1931 public void set_server_identity (GLib.SocketConnectable identity);
1932 public void set_use_ssl3 (bool use_ssl3);
1933 public void set_validation_flags (GLib.TlsCertificateFlags flags);
1934 public void* accepted_cas { get; }
1935 public GLib.SocketConnectable server_identity { get; set construct; }
1936 public bool use_ssl3 { get; set construct; }
1937 public GLib.TlsCertificateFlags validation_flags { get; set construct; }
1939 [CCode (cheader_filename = "gio/gio.h")]
1940 public interface TlsServerConnection : GLib.TlsConnection {
1941 public static unowned GLib.IOStream @new (GLib.IOStream base_io_stream, GLib.TlsCertificate certificate) throws GLib.Error;
1942 public GLib.TlsAuthenticationMode authentication_mode { get; set; }
1944 [CCode (cheader_filename = "gio/gio.h")]
1945 public interface Volume : GLib.Object {
1946 public abstract bool can_eject ();
1947 public abstract bool can_mount ();
1948 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1949 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1950 public abstract unowned string enumerate_identifiers ();
1951 public abstract unowned GLib.File get_activation_root ();
1952 public abstract unowned GLib.Drive get_drive ();
1953 public abstract unowned GLib.Icon get_icon ();
1954 public abstract unowned string get_identifier (string kind);
1955 public abstract unowned GLib.Mount get_mount ();
1956 public abstract unowned string get_name ();
1957 public abstract unowned string get_uuid ();
1958 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1960 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1961 public abstract bool should_automount ();
1962 public signal void changed ();
1963 public signal void removed ();
1965 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1967 public enum AppInfoCreateFlags {
1971 SUPPORTS_STARTUP_NOTIFICATION
1973 [CCode (cprefix = "G_APPLICATION_", cheader_filename = "gio/gio.h")]
1975 public enum ApplicationFlags {
1980 HANDLES_COMMAND_LINE,
1983 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1985 public enum AskPasswordFlags {
1992 [CCode (cprefix = "G_BUS_NAME_OWNER_FLAGS_", cheader_filename = "gio/gio.h")]
1994 public enum BusNameOwnerFlags {
1999 [CCode (cprefix = "G_BUS_NAME_WATCHER_FLAGS_", cheader_filename = "gio/gio.h")]
2001 public enum BusNameWatcherFlags {
2005 [CCode (cprefix = "G_BUS_TYPE_", cheader_filename = "gio/gio.h")]
2006 public enum BusType {
2012 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
2014 public enum ConverterFlags {
2019 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
2020 public enum ConverterResult {
2026 [CCode (cprefix = "G_CREDENTIALS_TYPE_", cheader_filename = "gio/gio.h")]
2027 public enum CredentialsType {
2032 [CCode (cprefix = "G_DBUS_CALL_FLAGS_", cheader_filename = "gio/gio.h")]
2034 public enum DBusCallFlags {
2038 [CCode (cprefix = "G_DBUS_CAPABILITY_FLAGS_", cheader_filename = "gio/gio.h")]
2040 public enum DBusCapabilityFlags {
2044 [CCode (cprefix = "G_DBUS_CONNECTION_FLAGS_", cheader_filename = "gio/gio.h")]
2046 public enum DBusConnectionFlags {
2048 AUTHENTICATION_CLIENT,
2049 AUTHENTICATION_SERVER,
2050 AUTHENTICATION_ALLOW_ANONYMOUS,
2051 MESSAGE_BUS_CONNECTION,
2052 DELAY_MESSAGE_PROCESSING
2054 [CCode (cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
2055 public enum DBusMessageByteOrder {
2059 [CCode (cprefix = "G_DBUS_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
2061 public enum DBusMessageFlags {
2066 [CCode (cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", cheader_filename = "gio/gio.h")]
2067 public enum DBusMessageHeaderField {
2079 [CCode (cprefix = "G_DBUS_MESSAGE_TYPE_", cheader_filename = "gio/gio.h")]
2080 public enum DBusMessageType {
2087 [CCode (cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", cheader_filename = "gio/gio.h")]
2089 public enum DBusPropertyInfoFlags {
2094 [CCode (cprefix = "G_DBUS_PROXY_FLAGS_", cheader_filename = "gio/gio.h")]
2096 public enum DBusProxyFlags {
2098 DO_NOT_LOAD_PROPERTIES,
2099 DO_NOT_CONNECT_SIGNALS,
2102 [CCode (cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
2104 public enum DBusSendMessageFlags {
2108 [CCode (cprefix = "G_DBUS_SERVER_FLAGS_", cheader_filename = "gio/gio.h")]
2110 public enum DBusServerFlags {
2113 AUTHENTICATION_ALLOW_ANONYMOUS
2115 [CCode (cprefix = "G_DBUS_SIGNAL_FLAGS_", cheader_filename = "gio/gio.h")]
2117 public enum DBusSignalFlags {
2121 [CCode (cprefix = "G_DBUS_SUBTREE_FLAGS_", cheader_filename = "gio/gio.h")]
2123 public enum DBusSubtreeFlags {
2125 DISPATCH_TO_UNENUMERATED_NODES
2127 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
2128 public enum DataStreamByteOrder {
2133 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
2134 public enum DataStreamNewlineType {
2140 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
2141 public enum DriveStartFlags {
2144 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
2145 public enum DriveStartStopType {
2152 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
2153 public enum EmblemOrigin {
2159 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
2161 public enum FileAttributeInfoFlags {
2166 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
2167 public enum FileAttributeStatus {
2172 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
2173 public enum FileAttributeType {
2185 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
2187 public enum FileCopyFlags {
2193 NO_FALLBACK_FOR_MOVE,
2194 TARGET_DEFAULT_PERMS
2196 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
2198 public enum FileCreateFlags {
2203 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
2204 public enum FileMonitorEvent {
2214 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
2216 public enum FileMonitorFlags {
2221 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
2223 public enum FileQueryInfoFlags {
2227 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
2228 public enum FileType {
2237 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
2238 public enum FilesystemPreviewType {
2243 [CCode (cprefix = "G_IO_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
2245 public enum IOStreamSpliceFlags {
2251 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
2252 public enum MountMountFlags {
2255 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
2256 public enum MountOperationResult {
2261 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
2263 public enum MountUnmountFlags {
2267 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
2269 public enum OutputStreamSpliceFlags {
2274 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
2275 public enum PasswordSave {
2280 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
2281 public enum ResolverError {
2286 [CCode (cprefix = "G_SETTINGS_BIND_", cheader_filename = "gio/gio.h")]
2288 public enum SettingsBindFlags {
2296 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
2297 public enum SocketFamily {
2303 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
2304 public enum SocketMsgFlags {
2310 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
2311 public enum SocketProtocol {
2318 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
2319 public enum SocketType {
2325 [CCode (cprefix = "G_TLS_AUTHENTICATION_", cheader_filename = "gio/gio.h")]
2326 public enum TlsAuthenticationMode {
2331 [CCode (cprefix = "G_TLS_CERTIFICATE_", cheader_filename = "gio/gio.h")]
2333 public enum TlsCertificateFlags {
2343 [CCode (cprefix = "G_TLS_ERROR_", cheader_filename = "gio/gio.h")]
2344 public enum TlsError {
2350 CERTIFICATE_REQUIRED,
2353 [CCode (cprefix = "G_TLS_REHANDSHAKE_", cheader_filename = "gio/gio.h")]
2354 public enum TlsRehandshakeMode {
2359 [CCode (cprefix = "G_UNIX_SOCKET_ADDRESS_", cheader_filename = "gio/gio.h")]
2360 public enum UnixSocketAddressType {
2367 [CCode (cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", cheader_filename = "gio/gio.h")]
2368 public enum ZlibCompressorFormat {
2373 [CCode (cprefix = "G_DBUS_ERROR_", cheader_filename = "gio/gio.h")]
2374 public errordomain DBusError {
2396 MATCH_RULE_NOT_FOUND,
2401 SPAWN_CHILD_SIGNALED,
2404 SPAWN_CONFIG_INVALID,
2405 SPAWN_SERVICE_INVALID,
2406 SPAWN_SERVICE_NOT_FOUND,
2407 SPAWN_PERMISSIONS_INVALID,
2410 UNIX_PROCESS_ID_UNKNOWN,
2412 INVALID_FILE_CONTENT,
2413 SELINUX_SECURITY_CONTEXT_UNKNOWN,
2414 ADT_AUDIT_DATA_UNKNOWN,
2417 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
2418 public errordomain IOError {
2450 TOO_MANY_OPEN_FILES,
2457 NETWORK_UNREACHABLE,
2464 [CCode (cheader_filename = "gio/gio.h")]
2465 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
2466 [CCode (cheader_filename = "gio/gio.h")]
2467 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
2468 [CCode (cheader_filename = "gio/gio.h")]
2469 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
2470 [CCode (cheader_filename = "gio/gio.h")]
2471 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
2472 [CCode (cheader_filename = "gio/gio.h")]
2473 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
2474 [CCode (cheader_filename = "gio/gio.h")]
2475 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
2476 [CCode (cheader_filename = "gio/gio.h")]
2477 public delegate bool CancellableSourceFunc (GLib.Cancellable cancellable);
2478 [CCode (cheader_filename = "gio/gio.h")]
2479 public delegate unowned GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error;
2480 [CCode (cheader_filename = "gio/gio.h")]
2481 public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
2482 [CCode (cheader_filename = "gio/gio.h")]
2483 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
2484 [CCode (cheader_filename = "gio/gio.h")]
2485 public delegate unowned GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2486 [CCode (cheader_filename = "gio/gio.h")]
2487 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
2488 [CCode (cheader_filename = "gio/gio.h")]
2489 public delegate unowned GLib.DBusInterfaceVTable DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
2490 [CCode (cheader_filename = "gio/gio.h")]
2491 public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
2492 [CCode (cheader_filename = "gio/gio.h")]
2493 public delegate unowned GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2494 [CCode (cheader_filename = "gio/gio.h")]
2495 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2496 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2497 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
2498 [CCode (cheader_filename = "gio/gio.h")]
2499 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
2500 [CCode (cheader_filename = "gio/gio.h")]
2501 public delegate bool PollableSourceFunc (GLib.Object pollable_stream);
2502 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2503 public delegate void* ReallocFunc (void* data, size_t size);
2504 [CCode (cheader_filename = "gio/gio.h")]
2505 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
2506 [CCode (cheader_filename = "gio/gio.h")]
2507 public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
2508 [CCode (cheader_filename = "gio/gio.h")]
2509 public delegate bool SettingsGetMapping (GLib.Variant value, void* result);
2510 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2511 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
2512 [CCode (cheader_filename = "gio/gio.h")]
2513 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
2514 [CCode (cheader_filename = "gio/gio.h")]
2515 public static GLib.EqualFunc file_equal;
2516 [CCode (cheader_filename = "gio/gio.h")]
2517 public static GLib.HashFunc file_hash;
2518 [CCode (cheader_filename = "gio/gio.h")]
2519 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
2520 [CCode (cheader_filename = "gio/gio.h")]
2521 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
2522 [CCode (cheader_filename = "gio/gio.h")]
2523 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
2524 [CCode (cheader_filename = "gio/gio.h")]
2525 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
2526 [CCode (cheader_filename = "gio/gio.h")]
2527 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
2528 [CCode (cheader_filename = "gio/gio.h")]
2529 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
2530 [CCode (cheader_filename = "gio/gio.h")]
2531 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
2532 [CCode (cheader_filename = "gio/gio.h")]
2533 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
2534 [CCode (cheader_filename = "gio/gio.h")]
2535 public const string FILE_ATTRIBUTE_ETAG_VALUE;
2536 [CCode (cheader_filename = "gio/gio.h")]
2537 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
2538 [CCode (cheader_filename = "gio/gio.h")]
2539 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
2540 [CCode (cheader_filename = "gio/gio.h")]
2541 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
2542 [CCode (cheader_filename = "gio/gio.h")]
2543 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
2544 [CCode (cheader_filename = "gio/gio.h")]
2545 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
2546 [CCode (cheader_filename = "gio/gio.h")]
2547 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
2548 [CCode (cheader_filename = "gio/gio.h")]
2549 public const string FILE_ATTRIBUTE_ID_FILE;
2550 [CCode (cheader_filename = "gio/gio.h")]
2551 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
2552 [CCode (cheader_filename = "gio/gio.h")]
2553 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
2554 [CCode (cheader_filename = "gio/gio.h")]
2555 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
2556 [CCode (cheader_filename = "gio/gio.h")]
2557 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
2558 [CCode (cheader_filename = "gio/gio.h")]
2559 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
2560 [CCode (cheader_filename = "gio/gio.h")]
2561 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
2562 [CCode (cheader_filename = "gio/gio.h")]
2563 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
2564 [CCode (cheader_filename = "gio/gio.h")]
2565 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
2566 [CCode (cheader_filename = "gio/gio.h")]
2567 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
2568 [CCode (cheader_filename = "gio/gio.h")]
2569 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
2570 [CCode (cheader_filename = "gio/gio.h")]
2571 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
2572 [CCode (cheader_filename = "gio/gio.h")]
2573 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
2574 [CCode (cheader_filename = "gio/gio.h")]
2575 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
2576 [CCode (cheader_filename = "gio/gio.h")]
2577 public const string FILE_ATTRIBUTE_OWNER_GROUP;
2578 [CCode (cheader_filename = "gio/gio.h")]
2579 public const string FILE_ATTRIBUTE_OWNER_USER;
2580 [CCode (cheader_filename = "gio/gio.h")]
2581 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
2582 [CCode (cheader_filename = "gio/gio.h")]
2583 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
2584 [CCode (cheader_filename = "gio/gio.h")]
2585 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
2586 [CCode (cheader_filename = "gio/gio.h")]
2587 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
2588 [CCode (cheader_filename = "gio/gio.h")]
2589 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
2590 [CCode (cheader_filename = "gio/gio.h")]
2591 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
2592 [CCode (cheader_filename = "gio/gio.h")]
2593 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
2594 [CCode (cheader_filename = "gio/gio.h")]
2595 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
2596 [CCode (cheader_filename = "gio/gio.h")]
2597 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
2598 [CCode (cheader_filename = "gio/gio.h")]
2599 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
2600 [CCode (cheader_filename = "gio/gio.h")]
2601 public const string FILE_ATTRIBUTE_STANDARD_ICON;
2602 [CCode (cheader_filename = "gio/gio.h")]
2603 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
2604 [CCode (cheader_filename = "gio/gio.h")]
2605 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
2606 [CCode (cheader_filename = "gio/gio.h")]
2607 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
2608 [CCode (cheader_filename = "gio/gio.h")]
2609 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
2610 [CCode (cheader_filename = "gio/gio.h")]
2611 public const string FILE_ATTRIBUTE_STANDARD_NAME;
2612 [CCode (cheader_filename = "gio/gio.h")]
2613 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
2614 [CCode (cheader_filename = "gio/gio.h")]
2615 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
2616 [CCode (cheader_filename = "gio/gio.h")]
2617 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
2618 [CCode (cheader_filename = "gio/gio.h")]
2619 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
2620 [CCode (cheader_filename = "gio/gio.h")]
2621 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
2622 [CCode (cheader_filename = "gio/gio.h")]
2623 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
2624 [CCode (cheader_filename = "gio/gio.h")]
2625 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
2626 [CCode (cheader_filename = "gio/gio.h")]
2627 public const string FILE_ATTRIBUTE_TIME_ACCESS;
2628 [CCode (cheader_filename = "gio/gio.h")]
2629 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
2630 [CCode (cheader_filename = "gio/gio.h")]
2631 public const string FILE_ATTRIBUTE_TIME_CHANGED;
2632 [CCode (cheader_filename = "gio/gio.h")]
2633 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
2634 [CCode (cheader_filename = "gio/gio.h")]
2635 public const string FILE_ATTRIBUTE_TIME_CREATED;
2636 [CCode (cheader_filename = "gio/gio.h")]
2637 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
2638 [CCode (cheader_filename = "gio/gio.h")]
2639 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
2640 [CCode (cheader_filename = "gio/gio.h")]
2641 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
2642 [CCode (cheader_filename = "gio/gio.h")]
2643 public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
2644 [CCode (cheader_filename = "gio/gio.h")]
2645 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
2646 [CCode (cheader_filename = "gio/gio.h")]
2647 public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
2648 [CCode (cheader_filename = "gio/gio.h")]
2649 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
2650 [CCode (cheader_filename = "gio/gio.h")]
2651 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
2652 [CCode (cheader_filename = "gio/gio.h")]
2653 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
2654 [CCode (cheader_filename = "gio/gio.h")]
2655 public const string FILE_ATTRIBUTE_UNIX_GID;
2656 [CCode (cheader_filename = "gio/gio.h")]
2657 public const string FILE_ATTRIBUTE_UNIX_INODE;
2658 [CCode (cheader_filename = "gio/gio.h")]
2659 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
2660 [CCode (cheader_filename = "gio/gio.h")]
2661 public const string FILE_ATTRIBUTE_UNIX_MODE;
2662 [CCode (cheader_filename = "gio/gio.h")]
2663 public const string FILE_ATTRIBUTE_UNIX_NLINK;
2664 [CCode (cheader_filename = "gio/gio.h")]
2665 public const string FILE_ATTRIBUTE_UNIX_RDEV;
2666 [CCode (cheader_filename = "gio/gio.h")]
2667 public const string FILE_ATTRIBUTE_UNIX_UID;
2668 [CCode (cheader_filename = "gio/gio.h")]
2669 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2670 [CCode (cheader_filename = "gio/gio.h")]
2671 public const string PROXY_EXTENSION_POINT_NAME;
2672 [CCode (cheader_filename = "gio/gio.h")]
2673 public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
2674 [CCode (cheader_filename = "gio/gio.h")]
2675 public const string TLS_BACKEND_EXTENSION_POINT_NAME;
2676 [CCode (cheader_filename = "gio/gio.h")]
2677 public const string VFS_EXTENSION_POINT_NAME;
2678 [CCode (cheader_filename = "gio/gio.h")]
2679 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
2680 [CCode (cheader_filename = "gio/gio.h")]
2681 public const string VOLUME_IDENTIFIER_KIND_LABEL;
2682 [CCode (cheader_filename = "gio/gio.h")]
2683 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
2684 [CCode (cheader_filename = "gio/gio.h")]
2685 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
2686 [CCode (cheader_filename = "gio/gio.h")]
2687 public const string VOLUME_IDENTIFIER_KIND_UUID;
2688 [CCode (cheader_filename = "gio/gio.h")]
2689 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
2690 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
2691 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
2692 public static bool g_content_type_can_be_executable (string type);
2693 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.equals")]
2694 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
2695 public static bool g_content_type_equals (string type1, string type2);
2696 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
2697 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
2698 public static string g_content_type_from_mime_type (string mime_type);
2699 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
2700 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
2701 public static string g_content_type_get_description (string type);
2702 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
2703 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
2704 public static GLib.Icon g_content_type_get_icon (string type);
2705 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
2706 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
2707 public static string g_content_type_get_mime_type (string type);
2708 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess")]
2709 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
2710 public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
2711 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
2712 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
2713 public static string g_content_type_guess_for_tree (GLib.File root);
2714 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
2715 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
2716 public static bool g_content_type_is_a (string type, string supertype);
2717 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
2718 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
2719 public static bool g_content_type_is_unknown (string type);
2720 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
2721 public static GLib.List<string> g_content_types_get_registered ();
2722 [CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
2723 public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2724 [CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
2725 public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
2726 [CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
2727 public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
2728 [CCode (cname = "g_dbus_address_get_stream_sync", cheader_filename = "gio/gio.h")]
2729 public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
2730 [CCode (cname = "g_dbus_error_encode_gerror", cheader_filename = "gio/gio.h")]
2731 public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
2732 [CCode (cname = "g_dbus_error_get_remote_error", cheader_filename = "gio/gio.h")]
2733 public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
2734 [CCode (cname = "g_dbus_error_is_remote_error", cheader_filename = "gio/gio.h")]
2735 public static bool g_dbus_error_is_remote_error (GLib.Error error);
2736 [CCode (cname = "g_dbus_error_new_for_dbus_error", cheader_filename = "gio/gio.h")]
2737 public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
2738 [CCode (cname = "g_dbus_error_quark", cheader_filename = "gio/gio.h")]
2739 public static GLib.Quark g_dbus_error_quark ();
2740 [CCode (cname = "g_dbus_error_register_error", cheader_filename = "gio/gio.h")]
2741 public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2742 [CCode (cname = "g_dbus_error_register_error_domain", cheader_filename = "gio/gio.h")]
2743 public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
2744 [CCode (cname = "g_dbus_error_set_dbus_error", cheader_filename = "gio/gio.h")]
2745 public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
2746 [CCode (cname = "g_dbus_error_set_dbus_error_valist", cheader_filename = "gio/gio.h")]
2747 public static void g_dbus_error_set_dbus_error_valist (string dbus_error_name, string dbus_error_message, string format, void* var_args) throws GLib.Error;
2748 [CCode (cname = "g_dbus_error_strip_remote_error", cheader_filename = "gio/gio.h")]
2749 public static bool g_dbus_error_strip_remote_error (GLib.Error error);
2750 [CCode (cname = "g_dbus_error_unregister_error", cheader_filename = "gio/gio.h")]
2751 public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2752 [CCode (cname = "g_dbus_generate_guid", cheader_filename = "gio/gio.h")]
2753 public static unowned string g_dbus_generate_guid ();
2754 [CCode (cname = "g_dbus_is_address", cheader_filename = "gio/gio.h")]
2755 public static bool g_dbus_is_address (string str);
2756 [CCode (cname = "g_dbus_is_guid", cheader_filename = "gio/gio.h")]
2757 public static bool g_dbus_is_guid (string str);
2758 [CCode (cname = "g_dbus_is_interface_name", cheader_filename = "gio/gio.h")]
2759 public static bool g_dbus_is_interface_name (string str);
2760 [CCode (cname = "g_dbus_is_member_name", cheader_filename = "gio/gio.h")]
2761 public static bool g_dbus_is_member_name (string str);
2762 [CCode (cname = "g_dbus_is_name", cheader_filename = "gio/gio.h")]
2763 public static bool g_dbus_is_name (string str);
2764 [CCode (cname = "g_dbus_is_supported_address", cheader_filename = "gio/gio.h")]
2765 public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
2766 [CCode (cname = "g_dbus_is_unique_name", cheader_filename = "gio/gio.h")]
2767 public static bool g_dbus_is_unique_name (string str);
2768 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
2769 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
2770 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
2771 public static GLib.Quark g_io_error_quark ();
2772 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
2773 public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
2774 [CCode (cname = "g_io_modules_scan_all_in_directory", cheader_filename = "gio/gio.h")]
2775 public static void g_io_modules_scan_all_in_directory (string dirname);
2776 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
2777 public static void g_io_scheduler_cancel_all_jobs ();
2778 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
2779 public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
2780 [CCode (cname = "g_pollable_source_new", cheader_filename = "gio/gio.h")]
2781 public static unowned GLib.TimeoutSource g_pollable_source_new (GLib.Object pollable_stream);
2782 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
2783 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
2784 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
2785 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
2786 [CCode (cname = "g_simple_async_report_take_gerror_in_idle", cheader_filename = "gio/gio.h")]
2787 public static void g_simple_async_report_take_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
2788 [CCode (cname = "g_tls_error_quark", cheader_filename = "gio/gio.h")]
2789 public static GLib.Quark g_tls_error_quark ();