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, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback name_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
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, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
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 (string arguments, 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 (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
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 virtual signal void cancelled ();
174 [CCode (cheader_filename = "gio/gio.h")]
175 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
176 [CCode (has_construct_function = false)]
177 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
178 public uint get_num_fallbacks ();
179 public bool get_use_fallback ();
180 public void set_use_fallback (bool use_fallback);
182 public string from_charset { owned get; construct; }
184 public string to_charset { owned get; construct; }
185 public bool use_fallback { get; set construct; }
187 [CCode (cheader_filename = "gio/gio.h")]
188 public class ConverterInputStream : GLib.FilterInputStream {
189 [CCode (type = "GInputStream*", has_construct_function = false)]
190 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
191 public unowned GLib.Converter get_converter ();
192 public GLib.Converter converter { get; construct; }
194 [CCode (cheader_filename = "gio/gio.h")]
195 public class ConverterOutputStream : GLib.FilterOutputStream {
196 [CCode (type = "GOutputStream*", has_construct_function = false)]
197 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
198 public unowned GLib.Converter get_converter ();
199 public GLib.Converter converter { get; construct; }
201 [CCode (cheader_filename = "gio/gio.h")]
202 public class Credentials : GLib.Object {
203 [CCode (has_construct_function = false)]
204 public Credentials ();
205 public void* get_native (GLib.CredentialsType native_type);
206 public uint get_unix_user () throws GLib.Error;
207 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
208 public void set_native (GLib.CredentialsType native_type, void* native);
209 public bool set_unix_user (uint uid) throws GLib.Error;
210 public unowned string to_string ();
213 [CCode (cheader_filename = "gio/gio.h")]
214 public class CredentialsClass {
217 [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")]
218 public class DBusAnnotationInfo {
219 [CCode (array_length = false)]
220 public weak GLib.DBusAnnotationInfo[] annotations;
221 public weak string key;
222 public int ref_count;
223 public weak string value;
224 public unowned string lookup (string name);
227 [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")]
228 public class DBusArgInfo {
229 [CCode (array_length = false)]
230 public weak GLib.DBusAnnotationInfo[] annotations;
231 public weak string name;
232 public int ref_count;
233 public weak string signature;
235 [CCode (cheader_filename = "gio/gio.h")]
236 public class DBusAuthObserver : GLib.Object {
237 [CCode (has_construct_function = false)]
238 public DBusAuthObserver ();
240 public virtual signal bool authorize_authenticated_peer (GLib.IOStream p0, GLib.Credentials p1);
242 [CCode (cheader_filename = "gio/gio.h")]
243 public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
244 [CCode (type = "void", has_construct_function = false)]
245 public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
246 public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
247 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;
248 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;
249 public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
250 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
251 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
252 public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
253 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
254 [CCode (type = "void", has_construct_function = false)]
255 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
256 [CCode (has_construct_function = false)]
257 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
258 public GLib.DBusCapabilityFlags get_capabilities ();
259 public bool get_exit_on_close ();
260 public unowned string get_guid ();
261 public unowned GLib.Credentials get_peer_credentials ();
262 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
263 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
264 public unowned GLib.IOStream get_stream ();
265 public unowned string get_unique_name ();
266 public bool is_closed ();
267 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
268 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
269 public void remove_filter (uint filter_id);
270 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
271 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;
272 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;
273 public void set_exit_on_close (bool exit_on_close);
274 public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
275 public void signal_unsubscribe (uint subscription_id);
276 public void start_message_processing ();
277 [CCode (has_construct_function = false)]
278 public DBusConnection.sync (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
279 public bool unregister_object (uint registration_id);
280 public bool unregister_subtree (uint registration_id);
281 public string address { construct; }
282 public GLib.DBusAuthObserver authentication_observer { construct; }
283 public GLib.DBusCapabilityFlags capabilities { get; }
284 public bool exit_on_close { get; set; }
285 public GLib.DBusConnectionFlags flags { construct; }
286 public string guid { get; construct; }
287 public GLib.IOStream stream { get; construct; }
288 public string unique_name { get; }
289 public virtual signal void closed (bool p0, GLib.Error p1);
292 [CCode (cheader_filename = "gio/gio.h")]
293 public class DBusErrorEntry {
294 public weak string dbus_error_name;
295 public int error_code;
298 [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")]
299 public class DBusInterfaceInfo {
300 [CCode (array_length = false)]
301 public weak GLib.DBusAnnotationInfo[] annotations;
302 [CCode (array_length = false)]
303 public weak GLib.DBusMethodInfo[] methods;
304 public weak string name;
305 [CCode (array_length = false)]
306 public weak GLib.DBusPropertyInfo[] properties;
307 public int ref_count;
308 [CCode (array_length = false)]
309 public weak GLib.DBusSignalInfo[] signals;
310 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
311 public unowned GLib.DBusMethodInfo lookup_method (string name);
312 public unowned GLib.DBusPropertyInfo lookup_property (string name);
313 public unowned GLib.DBusSignalInfo lookup_signal (string name);
316 [CCode (cheader_filename = "gio/gio.h")]
317 public class DBusInterfaceVTable {
318 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
319 public weak GLib.DBusInterfaceMethodCallFunc method_call;
320 public void* padding;
321 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
323 [CCode (cheader_filename = "gio/gio.h")]
324 public class DBusMessage : GLib.Object {
325 [CCode (has_construct_function = false)]
326 public DBusMessage ();
327 public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
328 public unowned GLib.DBusMessage copy () throws GLib.Error;
329 [CCode (has_construct_function = false)]
330 public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
331 public unowned string get_arg0 ();
332 public unowned GLib.Variant get_body ();
333 public GLib.DBusMessageByteOrder get_byte_order ();
334 public unowned string get_destination ();
335 public unowned string get_error_name ();
336 public GLib.DBusMessageFlags get_flags ();
337 public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
338 public unowned uchar[] get_header_fields ();
339 public unowned string get_interface ();
340 public bool get_locked ();
341 public unowned string get_member ();
342 public GLib.DBusMessageType get_message_type ();
343 public uint32 get_num_unix_fds ();
344 public unowned string get_path ();
345 public uint32 get_reply_serial ();
346 public unowned string get_sender ();
347 public uint32 get_serial ();
348 public unowned string get_signature ();
349 public unowned GLib.UnixFDList get_unix_fd_list ();
350 public void @lock ();
351 [CCode (has_construct_function = false)]
352 public DBusMessage.method_call (string name, string path, string interface_, string method);
353 [CCode (has_construct_function = false)]
354 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format);
355 [CCode (has_construct_function = false)]
356 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
357 [CCode (has_construct_function = false)]
358 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, void* var_args);
359 [CCode (has_construct_function = false)]
360 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
361 public unowned string print (uint indent = 0);
362 public void set_body (GLib.Variant body);
363 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
364 public void set_destination (string value);
365 public void set_error_name (string value);
366 public void set_flags (GLib.DBusMessageFlags flags);
367 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant value);
368 public void set_interface (string value);
369 public void set_member (string value);
370 public void set_message_type (GLib.DBusMessageType type);
371 public void set_num_unix_fds (uint32 value);
372 public void set_path (string value);
373 public void set_reply_serial (uint32 value);
374 public void set_sender (string value);
375 public void set_serial (uint32 serial);
376 public void set_signature (string value);
377 public void set_unix_fd_list (GLib.UnixFDList fd_list);
378 [CCode (has_construct_function = false)]
379 public DBusMessage.@signal (string path, string interface_, string @signal);
380 public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
381 public bool to_gerror () throws GLib.Error;
382 public bool locked { get; }
385 [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")]
386 public class DBusMethodInfo {
387 [CCode (array_length = false)]
388 public weak GLib.DBusAnnotationInfo[] annotations;
389 [CCode (array_length = false)]
390 public weak GLib.DBusArgInfo[] in_args;
391 public weak string name;
392 [CCode (array_length = false)]
393 public weak GLib.DBusArgInfo[] out_args;
394 public int ref_count;
396 [CCode (cheader_filename = "gio/gio.h")]
397 public class DBusMethodInvocation : GLib.Object {
398 [CCode (has_construct_function = false)]
399 protected DBusMethodInvocation ();
400 public unowned GLib.DBusConnection get_connection ();
401 public unowned string get_interface_name ();
402 public unowned GLib.DBusMessage get_message ();
403 public unowned GLib.DBusMethodInfo get_method_info ();
404 public unowned string get_method_name ();
405 public unowned string get_object_path ();
406 public unowned GLib.Variant get_parameters ();
407 public unowned string get_sender ();
408 public void* get_user_data ();
409 public void return_dbus_error (string error_name, string error_message);
410 public void return_error (GLib.Quark domain, int code, string format);
411 public void return_error_literal (GLib.Quark domain, int code, string message);
412 public void return_error_valist (GLib.Quark domain, int code, string format, void* var_args);
413 public void return_gerror (GLib.Error error);
414 public void return_value (GLib.Variant parameters);
417 [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")]
418 public class DBusNodeInfo {
419 [CCode (array_length = false)]
420 public weak GLib.DBusAnnotationInfo[] annotations;
421 [CCode (array_length = false)]
422 public weak GLib.DBusInterfaceInfo[] interfaces;
423 [CCode (array_length = false)]
424 public weak GLib.DBusNodeInfo[] nodes;
425 public weak string path;
426 public int ref_count;
427 [CCode (has_construct_function = false)]
428 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
429 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
430 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
433 [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")]
434 public class DBusPropertyInfo {
435 [CCode (array_length = false)]
436 public weak GLib.DBusAnnotationInfo[] annotations;
437 public GLib.DBusPropertyInfoFlags flags;
438 public weak string name;
439 public int ref_count;
440 public weak string signature;
442 [CCode (cheader_filename = "gio/gio.h")]
443 public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
444 [CCode (type = "void", has_construct_function = false)]
445 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;
446 public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
447 public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
448 [CCode (type = "void", has_construct_function = false)]
449 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;
450 [CCode (has_construct_function = false)]
451 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;
452 public unowned GLib.Variant get_cached_property (string property_name);
453 public unowned string get_cached_property_names ();
454 public unowned GLib.DBusConnection get_connection ();
455 public int get_default_timeout ();
456 public GLib.DBusProxyFlags get_flags ();
457 public unowned GLib.DBusInterfaceInfo get_interface_info ();
458 public unowned string get_interface_name ();
459 public unowned string get_name ();
460 public unowned string get_name_owner ();
461 public unowned string get_object_path ();
462 public void set_cached_property (string property_name, GLib.Variant value);
463 public void set_default_timeout (int timeout_msec);
464 public void set_interface_info (GLib.DBusInterfaceInfo info);
465 [CCode (has_construct_function = false)]
466 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;
467 public GLib.BusType g_bus_type { construct; }
469 public GLib.DBusConnection g_connection { owned get; construct; }
471 public int g_default_timeout { get; set construct; }
473 public GLib.DBusProxyFlags g_flags { get; construct; }
475 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
477 public string g_interface_name { owned get; construct; }
479 public string g_name { owned get; construct; }
481 public string g_name_owner { owned get; }
483 public string g_object_path { owned get; construct; }
484 public virtual signal void g_properties_changed (GLib.Variant changed_properties, string[] invalidated_properties);
485 public virtual signal void g_signal (string sender_name, string signal_name, GLib.Variant parameters);
487 [CCode (cheader_filename = "gio/gio.h")]
488 public class DBusServer : GLib.Object, GLib.Initable {
489 [CCode (has_construct_function = false)]
490 protected DBusServer ();
491 public unowned string get_client_address ();
492 public GLib.DBusServerFlags get_flags ();
493 public unowned string get_guid ();
494 public bool is_active ();
495 public void start ();
497 [CCode (has_construct_function = false)]
498 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
500 public bool active { get; }
502 public string address { owned get; construct; }
504 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
505 public string client_address { get; }
506 public GLib.DBusServerFlags flags { get; construct; }
507 public string guid { get; construct; }
508 public virtual signal bool new_connection (GLib.DBusConnection p0);
511 [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")]
512 public class DBusSignalInfo {
513 [CCode (array_length = false)]
514 public weak GLib.DBusAnnotationInfo[] annotations;
515 [CCode (array_length = false)]
516 public weak GLib.DBusArgInfo[] args;
517 public weak string name;
518 public int ref_count;
521 [CCode (cheader_filename = "gio/gio.h")]
522 public class DBusSubtreeVTable {
523 public weak GLib.DBusSubtreeDispatchFunc dispatch;
524 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
525 public weak GLib.DBusSubtreeIntrospectFunc introspect;
526 public void* padding;
528 [CCode (cheader_filename = "gio/gio.h")]
529 public class DataInputStream : GLib.BufferedInputStream {
530 [CCode (has_construct_function = false)]
531 public DataInputStream (GLib.InputStream base_stream);
532 public GLib.DataStreamByteOrder get_byte_order ();
533 public GLib.DataStreamNewlineType get_newline_type ();
534 public uchar read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
535 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
536 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
537 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
538 public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
539 public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
540 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
541 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
542 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
543 public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
544 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;
545 public string? read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
546 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;
547 public void set_byte_order (GLib.DataStreamByteOrder order);
548 public void set_newline_type (GLib.DataStreamNewlineType type);
549 public GLib.DataStreamByteOrder byte_order { get; set; }
550 public GLib.DataStreamNewlineType newline_type { get; set; }
552 [CCode (cheader_filename = "gio/gio.h")]
553 public class DataOutputStream : GLib.FilterOutputStream {
554 [CCode (has_construct_function = false)]
555 public DataOutputStream (GLib.OutputStream base_stream);
556 public GLib.DataStreamByteOrder get_byte_order ();
557 public bool put_byte (uchar data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
558 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
559 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
560 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
561 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
562 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
563 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
564 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
565 public void set_byte_order (GLib.DataStreamByteOrder order);
566 public GLib.DataStreamByteOrder byte_order { get; set; }
568 [CCode (cheader_filename = "gio/gio.h")]
569 public class Emblem : GLib.Object, GLib.Icon {
570 [CCode (has_construct_function = false)]
571 public Emblem (GLib.Icon icon);
572 public unowned GLib.Icon get_icon ();
573 public GLib.EmblemOrigin get_origin ();
574 [CCode (has_construct_function = false)]
575 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
576 public GLib.Object icon { get; construct; }
577 public GLib.EmblemOrigin origin { get; construct; }
580 [CCode (cheader_filename = "gio/gio.h")]
581 public class EmblemClass {
583 [CCode (cheader_filename = "gio/gio.h")]
584 public class EmblemedIcon : GLib.Object, GLib.Icon {
585 [CCode (type = "GIcon*", has_construct_function = false)]
586 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
587 public void add_emblem (GLib.Emblem emblem);
588 public unowned GLib.List<GLib.Emblem> get_emblems ();
589 public unowned GLib.Icon get_icon ();
592 [CCode (cheader_filename = "gio/gio.h")]
593 public class EmblemedIconClass {
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;
862 public bool closed { get; set; }
863 public GLib.InputStream input_stream { get; }
864 public GLib.OutputStream output_stream { get; }
866 [CCode (cheader_filename = "gio/gio.h")]
867 public class InetAddress : GLib.Object {
868 [CCode (has_construct_function = false)]
869 protected InetAddress ();
870 [CCode (has_construct_function = false)]
871 public InetAddress.any (GLib.SocketFamily family);
872 [CCode (has_construct_function = false)]
873 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
874 [CCode (has_construct_function = false)]
875 public InetAddress.from_string (string str);
876 public GLib.SocketFamily get_family ();
877 public bool get_is_any ();
878 public bool get_is_link_local ();
879 public bool get_is_loopback ();
880 public bool get_is_mc_global ();
881 public bool get_is_mc_link_local ();
882 public bool get_is_mc_node_local ();
883 public bool get_is_mc_org_local ();
884 public bool get_is_mc_site_local ();
885 public bool get_is_multicast ();
886 public bool get_is_site_local ();
887 public size_t get_native_size ();
888 [CCode (has_construct_function = false)]
889 public InetAddress.loopback (GLib.SocketFamily family);
890 [CCode (array_length = false)]
891 public virtual unowned uint8[] to_bytes ();
892 public virtual string to_string ();
894 public void* bytes { get; construct; }
895 public GLib.SocketFamily family { get; construct; }
896 public bool is_any { get; }
897 public bool is_link_local { get; }
898 public bool is_loopback { get; }
899 public bool is_mc_global { get; }
900 public bool is_mc_link_local { get; }
901 public bool is_mc_node_local { get; }
902 public bool is_mc_org_local { get; }
903 public bool is_mc_site_local { get; }
904 public bool is_multicast { get; }
905 public bool is_site_local { get; }
907 [CCode (cheader_filename = "gio/gio.h")]
908 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
909 [CCode (type = "GSocketAddress*", has_construct_function = false)]
910 public InetSocketAddress (GLib.InetAddress address, uint16 port);
911 public unowned GLib.InetAddress get_address ();
912 public uint16 get_port ();
913 public GLib.InetAddress address { get; construct; }
914 public uint port { get; construct; }
916 [CCode (cheader_filename = "gio/gio.h")]
917 public class InputStream : GLib.Object {
918 [CCode (has_construct_function = false)]
919 protected InputStream ();
920 public void clear_pending ();
921 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
922 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
924 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
925 public bool has_pending ();
926 public bool is_closed ();
927 [CCode (vfunc_name = "read_fn")]
928 public virtual ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
929 public bool read_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
930 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;
931 public bool set_pending () throws GLib.Error;
932 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
933 public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
936 [CCode (cheader_filename = "gio/gio.h")]
937 public class InputVector {
938 [CCode (array_length_cname = "size", array_length_type = "gsize")]
939 public uint8[] buffer;
941 [CCode (cheader_filename = "gio/gio.h")]
942 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
943 [CCode (type = "GInputStream*", has_construct_function = false)]
944 public MemoryInputStream ();
945 public void add_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
946 [CCode (type = "GInputStream*", has_construct_function = false)]
947 public MemoryInputStream.from_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
949 [CCode (cheader_filename = "gio/gio.h")]
950 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
951 [CCode (type = "GOutputStream*", has_construct_function = false)]
952 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function, GLib.DestroyNotify? destroy_function);
953 [CCode (array_length = false)]
954 public unowned uint8[] get_data ();
955 public size_t get_data_size ();
956 public size_t get_size ();
957 [CCode (array_length = false)]
958 public uint8[] steal_data ();
959 public void* data { get; construct; }
960 public ulong data_size { get; }
962 public void* destroy_function { get; construct; }
964 public void* realloc_function { get; construct; }
965 public ulong size { get; construct; }
967 [CCode (cheader_filename = "gio/gio.h")]
968 public class MountOperation : GLib.Object {
969 [CCode (has_construct_function = false)]
970 public MountOperation ();
971 public bool get_anonymous ();
972 public int get_choice ();
973 public unowned string get_domain ();
974 public unowned string get_password ();
975 public GLib.PasswordSave get_password_save ();
976 public unowned string get_username ();
977 public void set_anonymous (bool anonymous);
978 public void set_choice (int choice);
979 public void set_domain (string domain);
980 public void set_password (string password);
981 public void set_password_save (GLib.PasswordSave save);
982 public void set_username (string username);
983 public bool anonymous { get; set; }
984 public int choice { get; set; }
985 public string domain { get; set; }
986 public string password { get; set; }
987 public GLib.PasswordSave password_save { get; set; }
988 public string username { get; set; }
989 public virtual signal void aborted ();
990 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
991 public virtual signal void ask_question (string message, string[] choices);
993 public virtual signal void reply (GLib.MountOperationResult result);
994 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
996 [CCode (cheader_filename = "gio/gio.h")]
997 public class NativeVolumeMonitor : GLib.VolumeMonitor {
998 [CCode (has_construct_function = false)]
999 protected NativeVolumeMonitor ();
1001 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
1003 [CCode (cheader_filename = "gio/gio.h")]
1004 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
1005 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1006 public NetworkAddress (string hostname, uint16 port);
1007 public unowned string get_hostname ();
1008 public uint16 get_port ();
1009 public unowned string get_scheme ();
1010 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
1011 public static unowned GLib.SocketConnectable parse_uri (string uri, uint16 default_port) throws GLib.Error;
1012 public string hostname { get; construct; }
1013 public uint port { get; construct; }
1014 public string scheme { get; construct; }
1016 [CCode (cheader_filename = "gio/gio.h")]
1017 public class NetworkService : GLib.Object, GLib.SocketConnectable {
1018 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1019 public NetworkService (string service, string protocol, string domain);
1020 public unowned string get_domain ();
1021 public unowned string get_protocol ();
1022 public unowned string get_scheme ();
1023 public unowned string get_service ();
1024 public void set_scheme (string scheme);
1025 public string domain { get; construct; }
1026 public string protocol { get; construct; }
1027 public string scheme { get; set; }
1028 public string service { get; construct; }
1030 [CCode (cheader_filename = "gio/gio.h")]
1031 public class OutputStream : GLib.Object {
1032 [CCode (has_construct_function = false)]
1033 protected OutputStream ();
1034 public void clear_pending ();
1035 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1036 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1038 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1039 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
1040 public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1041 public bool has_pending ();
1042 public bool is_closed ();
1043 public bool is_closing ();
1044 public bool set_pending () throws GLib.Error;
1045 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1046 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;
1047 [CCode (vfunc_name = "write_fn")]
1048 public virtual ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1049 public bool write_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1050 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;
1053 [CCode (cheader_filename = "gio/gio.h")]
1054 public class OutputVector {
1055 [CCode (array_length_cname = "size", array_length_type = "gsize")]
1056 public uint8[] buffer;
1058 [CCode (cheader_filename = "gio/gio.h")]
1059 public class Periodic : GLib.Object {
1060 [CCode (has_construct_function = false)]
1061 public Periodic (uint hz, int high_priority, int low_priority);
1062 public uint add (owned GLib.PeriodicTickFunc callback);
1063 public void block ();
1064 public void damaged ();
1065 public int get_high_priority ();
1066 public uint get_hz ();
1067 public int get_low_priority ();
1068 public void remove (uint tag);
1069 public void unblock (int64 unblock_time);
1070 public int high_priority { get; construct; }
1071 public uint hz { get; construct; }
1072 public int low_priority { get; construct; }
1073 public virtual signal void repair ();
1074 public virtual signal void tick (int64 timestamp);
1076 [CCode (cheader_filename = "gio/gio.h")]
1077 public class Permission : GLib.Object {
1078 [CCode (has_construct_function = false)]
1079 protected Permission ();
1080 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
1081 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1082 public bool get_allowed ();
1083 public bool get_can_acquire ();
1084 public bool get_can_release ();
1085 public void impl_update (bool allowed, bool can_acquire, bool can_release);
1086 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1087 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1088 public bool allowed { get; }
1089 public bool can_acquire { get; }
1090 public bool can_release { get; }
1092 [CCode (cheader_filename = "gio/gio.h")]
1093 public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
1094 [CCode (type = "GSocketAddress*", has_construct_function = false)]
1095 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string username, string password);
1096 public unowned string get_destination_hostname ();
1097 public uint16 get_destination_port ();
1098 public unowned string get_password ();
1099 public unowned string get_protocol ();
1100 public unowned string get_username ();
1101 public string destination_hostname { get; construct; }
1102 public uint destination_port { get; construct; }
1103 public string password { get; construct; }
1104 public string protocol { get; construct; }
1105 public string username { get; construct; }
1107 [CCode (cheader_filename = "gio/gio.h")]
1108 public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
1109 [CCode (has_construct_function = false)]
1110 protected ProxyAddressEnumerator ();
1112 public GLib.SocketConnectable connectable { owned get; construct; }
1114 public string uri { owned get; construct; }
1116 [CCode (cheader_filename = "gio/gio.h")]
1117 public class Resolver : GLib.Object {
1118 [CCode (has_construct_function = false)]
1119 protected Resolver ();
1120 public static GLib.Quark error_quark ();
1121 public static unowned GLib.Resolver get_default ();
1122 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1123 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1124 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1125 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1126 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1127 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1128 public void set_default ();
1129 public virtual signal void reload ();
1131 [CCode (cheader_filename = "gio/gio.h")]
1132 public class Settings : GLib.Object {
1133 [CCode (has_construct_function = false)]
1134 public Settings (string schema);
1135 public void apply ();
1136 public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags);
1137 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);
1138 public void bind_writable (string key, void* object, string property, bool inverted);
1139 public void delay ();
1140 [CCode (sentinel = "")]
1141 public void @get (string key, string format, ...);
1142 public bool get_boolean (string key);
1143 public unowned GLib.Settings get_child (string name);
1144 public double get_double (string key);
1145 public int get_enum (string key);
1146 public uint get_flags (string key);
1147 public bool get_has_unapplied ();
1148 public int get_int (string key);
1149 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
1150 public unowned GLib.Variant get_range (string key);
1151 public unowned string get_string (string key);
1152 [CCode (array_length = false, array_null_terminated = true)]
1153 public string[] get_strv (string key);
1154 public GLib.Variant get_value (string key);
1155 public bool is_writable (string name);
1156 [CCode (array_length = false, array_null_terminated = true)]
1157 public string[] list_children ();
1158 [CCode (array_length = false, array_null_terminated = true)]
1159 public string[] list_keys ();
1160 public static unowned string list_relocatable_schemas ();
1161 [CCode (array_length = false, array_null_terminated = true)]
1162 public static unowned string[] list_schemas ();
1163 public bool range_check (string key, GLib.Variant value);
1164 public void reset (string key);
1165 public void revert ();
1166 [CCode (sentinel = "")]
1167 public bool @set (string key, string format, ...);
1168 public bool set_boolean (string key, bool value);
1169 public bool set_double (string key, double value);
1170 public bool set_enum (string key, int value);
1171 public bool set_flags (string key, uint value);
1172 public bool set_int (string key, int value);
1173 public bool set_string (string key, string value);
1174 public bool set_strv (string key, [CCode (array_length = false)] string[] value);
1175 public bool set_value (string key, GLib.Variant value);
1176 public static void sync ();
1177 public static void unbind (void* object, string property);
1178 [CCode (has_construct_function = false)]
1179 public Settings.with_backend (string schema, GLib.SettingsBackend backend);
1180 [CCode (has_construct_function = false)]
1181 public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path);
1182 [CCode (has_construct_function = false)]
1183 public Settings.with_path (string schema, string path);
1185 public GLib.SettingsBackend backend { owned get; construct; }
1186 public bool has_unapplied { get; }
1188 public string path { owned get; construct; }
1190 public string schema { owned get; construct; }
1191 public virtual signal bool change_event (void* keys, int n_keys);
1192 public virtual signal void changed (string key);
1193 public virtual signal bool writable_change_event (uint key);
1194 public virtual signal void writable_changed (string key);
1196 [CCode (cheader_filename = "gio/gio.h")]
1197 public class SettingsBackend : GLib.Object {
1199 [CCode (cheader_filename = "gio/gio.h")]
1200 public class SimpleAction : GLib.Object, GLib.Action {
1201 [CCode (has_construct_function = false)]
1202 public SimpleAction (string name, GLib.VariantType parameter_type);
1203 public void set_enabled (bool enabled);
1204 [CCode (has_construct_function = false)]
1205 public SimpleAction.stateful (string name, GLib.VariantType parameter_type, GLib.Variant state);
1207 public bool enabled { get; set construct; }
1209 public string name { owned get; construct; }
1211 public GLib.VariantType parameter_type { owned get; construct; }
1213 public GLib.Variant state { owned get; set construct; }
1215 public GLib.VariantType state_type { owned get; }
1216 public virtual signal void activate (GLib.Variant parameter);
1218 [CCode (cheader_filename = "gio/gio.h")]
1219 public class SimpleActionGroup : GLib.Object, GLib.ActionGroup {
1220 [CCode (has_construct_function = false)]
1221 public SimpleActionGroup ();
1222 public void insert (GLib.Action action);
1223 public unowned GLib.Action lookup (string action_name);
1224 public void remove (string action_name);
1226 [CCode (cheader_filename = "gio/gio.h")]
1227 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
1228 [CCode (has_construct_function = false)]
1229 public SimpleAsyncResult (GLib.Object? source_object, GLib.AsyncReadyCallback callback, void* source_tag);
1230 public void complete ();
1231 public void complete_in_idle ();
1232 [CCode (has_construct_function = false)]
1233 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1234 [CCode (has_construct_function = false)]
1235 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
1236 public bool get_op_res_gboolean ();
1237 public void* get_op_res_gpointer ();
1238 public ssize_t get_op_res_gssize ();
1239 public void* get_source_tag ();
1240 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
1241 public bool propagate_error () throws GLib.Error;
1242 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1243 public void set_error (GLib.Quark domain, int code, string format);
1244 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
1245 public void set_from_error (GLib.Error error);
1246 public void set_handle_cancellation (bool handle_cancellation);
1247 public void set_op_res_gboolean (bool op_res);
1248 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
1249 public void set_op_res_gssize (ssize_t op_res);
1250 public void take_error (GLib.Error error);
1253 [CCode (cheader_filename = "gio/gio.h")]
1254 public class SimpleAsyncResultClass {
1256 [CCode (cheader_filename = "gio/gio.h")]
1257 public class SimplePermission : GLib.Permission {
1258 [CCode (type = "GPermission*", has_construct_function = false)]
1259 public SimplePermission (bool allowed);
1261 [CCode (cheader_filename = "gio/gio.h")]
1262 public class Socket : GLib.Object, GLib.Initable {
1263 [CCode (has_construct_function = false)]
1264 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
1265 public unowned GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
1266 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
1267 public bool check_connect_result () throws GLib.Error;
1268 public bool close () throws GLib.Error;
1269 public GLib.IOCondition condition_check (GLib.IOCondition condition);
1270 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1271 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1272 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
1273 [CCode (has_construct_function = false)]
1274 public Socket.from_fd (int fd) throws GLib.Error;
1275 public bool get_blocking ();
1276 public unowned GLib.Credentials get_credentials () throws GLib.Error;
1277 public GLib.SocketFamily get_family ();
1278 public int get_fd ();
1279 public bool get_keepalive ();
1280 public int get_listen_backlog ();
1281 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1282 public GLib.SocketProtocol get_protocol ();
1283 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1284 public GLib.SocketType get_socket_type ();
1285 public uint get_timeout ();
1286 public bool is_closed ();
1287 public bool is_connected ();
1288 public bool listen () throws GLib.Error;
1289 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1290 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1291 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;
1292 public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1293 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1294 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;
1295 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1296 public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1297 public void set_blocking (bool blocking);
1298 public void set_keepalive (bool keepalive);
1299 public void set_listen_backlog (int backlog);
1300 public void set_timeout (uint timeout);
1301 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
1302 public bool speaks_ipv4 ();
1303 public bool blocking { get; set; }
1304 public GLib.SocketFamily family { get; construct; }
1305 public int fd { get; construct; }
1306 public bool keepalive { get; set; }
1307 public int listen_backlog { get; set; }
1308 public GLib.SocketAddress local_address { get; }
1309 public GLib.SocketProtocol protocol { get; construct; }
1310 public GLib.SocketAddress remote_address { get; }
1311 public uint timeout { get; set; }
1313 public GLib.SocketType type { get; construct; }
1315 [CCode (cheader_filename = "gio/gio.h")]
1316 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
1317 [CCode (has_construct_function = false)]
1318 protected SocketAddress ();
1319 [CCode (has_construct_function = false)]
1320 public SocketAddress.from_native (void* native, size_t len);
1321 public virtual GLib.SocketFamily get_family ();
1322 public virtual ssize_t get_native_size ();
1323 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
1324 public GLib.SocketFamily family { get; }
1326 [CCode (cheader_filename = "gio/gio.h")]
1327 public class SocketAddressEnumerator : GLib.Object {
1328 [CCode (has_construct_function = false)]
1329 protected SocketAddressEnumerator ();
1330 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
1331 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1333 [CCode (cheader_filename = "gio/gio.h")]
1334 public class SocketClient : GLib.Object {
1335 [CCode (has_construct_function = false)]
1336 public SocketClient ();
1337 public void add_application_proxy (string protocol);
1338 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1339 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1340 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1341 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1342 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1343 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1344 public unowned GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1345 public async unowned GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1346 public bool get_enable_proxy ();
1347 public GLib.SocketFamily get_family ();
1348 public unowned GLib.SocketAddress get_local_address ();
1349 public GLib.SocketProtocol get_protocol ();
1350 public GLib.SocketType get_socket_type ();
1351 public uint get_timeout ();
1352 public void set_enable_proxy (bool enable);
1353 public void set_family (GLib.SocketFamily family);
1354 public void set_local_address (GLib.SocketAddress address);
1355 public void set_protocol (GLib.SocketProtocol protocol);
1356 public void set_socket_type (GLib.SocketType type);
1357 public void set_timeout (uint timeout);
1358 public bool enable_proxy { get; set construct; }
1359 public GLib.SocketFamily family { get; set construct; }
1360 public GLib.SocketAddress local_address { get; set construct; }
1361 public GLib.SocketProtocol protocol { get; set construct; }
1362 public uint timeout { get; set construct; }
1364 public GLib.SocketType type { get; set construct; }
1366 [CCode (cheader_filename = "gio/gio.h")]
1367 public class SocketConnection : GLib.IOStream {
1368 [CCode (has_construct_function = false)]
1369 protected SocketConnection ();
1370 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
1371 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
1372 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
1373 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1374 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1375 public unowned GLib.Socket get_socket ();
1376 public GLib.Socket socket { get; construct; }
1378 [CCode (cheader_filename = "gio/gio.h")]
1379 public class SocketControlMessage : GLib.Object {
1380 [CCode (has_construct_function = false)]
1381 protected SocketControlMessage ();
1382 public virtual GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] data);
1383 public virtual int get_level ();
1384 public int get_msg_type ();
1385 public virtual size_t get_size ();
1387 public virtual int get_type ();
1388 public virtual void serialize ([CCode (array_length = false)] uint8[] data);
1390 [CCode (cheader_filename = "gio/gio.h")]
1391 public class SocketListener : GLib.Object {
1392 [CCode (has_construct_function = false)]
1393 public SocketListener ();
1394 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1395 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1396 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1397 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1398 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;
1399 public uint16 add_any_inet_port (GLib.Object source_object) throws GLib.Error;
1400 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
1401 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
1403 public virtual void changed ();
1404 public void close ();
1405 public void set_backlog (int listen_backlog);
1407 public int listen_backlog { get; set construct; }
1409 [CCode (cheader_filename = "gio/gio.h")]
1410 public class SocketService : GLib.SocketListener {
1411 [CCode (has_construct_function = false)]
1412 public SocketService ();
1413 public bool is_active ();
1414 public void start ();
1415 public void stop ();
1416 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
1419 [CCode (cname = "GSource", cheader_filename = "gio/gio.h")]
1420 public class SocketSource : GLib.Source {
1421 [CCode (cname = "g_source_set_callback")]
1422 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
1425 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
1426 public class SrvTarget {
1427 [CCode (has_construct_function = false)]
1428 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
1429 public GLib.SrvTarget copy ();
1430 public unowned string get_hostname ();
1431 public uint16 get_port ();
1432 public uint16 get_priority ();
1433 public uint16 get_weight ();
1434 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
1436 [CCode (cheader_filename = "gio/gio.h")]
1437 public class TcpConnection : GLib.SocketConnection {
1438 [CCode (has_construct_function = false)]
1439 protected TcpConnection ();
1440 public bool get_graceful_disconnect ();
1441 public void set_graceful_disconnect (bool graceful_disconnect);
1442 public bool graceful_disconnect { get; set; }
1444 [CCode (cheader_filename = "gio/gio.h")]
1445 public class ThemedIcon : GLib.Object, GLib.Icon {
1446 [CCode (type = "GIcon*", has_construct_function = false)]
1447 public ThemedIcon (string iconname);
1448 public void append_name (string iconname);
1449 [CCode (type = "GIcon*", has_construct_function = false)]
1450 public ThemedIcon.from_names (string[] iconnames);
1451 [CCode (array_length = false, array_null_terminated = true)]
1452 public unowned string[] get_names ();
1453 public void prepend_name (string iconname);
1454 [CCode (type = "GIcon*", has_construct_function = false)]
1455 public ThemedIcon.with_default_fallbacks (string iconname);
1456 public string name { construct; }
1457 [CCode (array_length = false, array_null_terminated = true)]
1458 public string[] names { get; construct; }
1460 public bool use_default_fallbacks { get; construct; }
1463 [CCode (cheader_filename = "gio/gio.h")]
1464 public class ThemedIconClass {
1466 [CCode (cheader_filename = "gio/gio.h")]
1467 public class ThreadedSocketService : GLib.SocketService {
1468 [CCode (type = "GSocketService*", has_construct_function = false)]
1469 public ThreadedSocketService (int max_threads);
1471 public int max_threads { get; construct; }
1472 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
1475 [CCode (cheader_filename = "gio/gio.h")]
1476 public class UnixCredentialsMessage {
1479 [CCode (cheader_filename = "gio/gio.h")]
1480 public class UnixFDList {
1482 [CCode (cheader_filename = "gio/gio.h")]
1483 public class Vfs : GLib.Object {
1484 [CCode (has_construct_function = false)]
1487 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
1488 public static unowned GLib.Vfs get_default ();
1489 public virtual GLib.File get_file_for_path (string path);
1490 public virtual GLib.File get_file_for_uri (string uri);
1491 public static unowned GLib.Vfs get_local ();
1492 public virtual unowned string[] get_supported_uri_schemes ();
1493 public virtual bool is_active ();
1495 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);
1497 public virtual void local_file_moved (string source, string dest);
1499 public virtual void local_file_removed (string filename);
1501 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1502 public virtual unowned GLib.File parse_name (string parse_name);
1504 [CCode (cheader_filename = "gio/gio.h")]
1505 public class VolumeMonitor : GLib.Object {
1506 [CCode (has_construct_function = false)]
1507 protected VolumeMonitor ();
1508 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
1509 public static GLib.VolumeMonitor @get ();
1510 public virtual GLib.List<GLib.Drive> get_connected_drives ();
1511 public virtual GLib.Mount get_mount_for_uuid (string uuid);
1512 public virtual GLib.List<GLib.Mount> get_mounts ();
1513 public virtual GLib.Volume get_volume_for_uuid (string uuid);
1514 public virtual GLib.List<GLib.Volume> get_volumes ();
1516 public virtual bool is_supported ();
1517 public virtual signal void drive_changed (GLib.Drive drive);
1518 public virtual signal void drive_connected (GLib.Drive drive);
1519 public virtual signal void drive_disconnected (GLib.Drive drive);
1520 public virtual signal void drive_eject_button (GLib.Drive drive);
1521 public virtual signal void drive_stop_button (GLib.Drive drive);
1522 public virtual signal void mount_added (GLib.Mount mount);
1523 public virtual signal void mount_changed (GLib.Mount mount);
1524 public virtual signal void mount_pre_unmount (GLib.Mount mount);
1525 public virtual signal void mount_removed (GLib.Mount mount);
1526 public virtual signal void volume_added (GLib.Volume volume);
1527 public virtual signal void volume_changed (GLib.Volume volume);
1528 public virtual signal void volume_removed (GLib.Volume volume);
1530 [CCode (cheader_filename = "gio/gio.h")]
1531 public class ZlibCompressor : GLib.Object, GLib.Converter {
1532 [CCode (has_construct_function = false)]
1533 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1534 public unowned GLib.FileInfo get_file_info ();
1535 public void set_file_info (GLib.FileInfo file_info);
1536 public GLib.FileInfo file_info { get; set; }
1538 public GLib.ZlibCompressorFormat format { get; construct; }
1540 public int level { get; construct; }
1542 [CCode (cheader_filename = "gio/gio.h")]
1543 public class ZlibDecompressor : GLib.Object, GLib.Converter {
1544 [CCode (has_construct_function = false)]
1545 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1546 public unowned GLib.FileInfo get_file_info ();
1547 public GLib.FileInfo file_info { get; }
1549 public GLib.ZlibCompressorFormat format { get; construct; }
1551 [CCode (cheader_filename = "gio/gio.h")]
1552 public interface Action : GLib.Object {
1553 public abstract void activate (GLib.Variant parameter);
1554 public abstract bool get_enabled ();
1555 public abstract unowned string get_name ();
1556 public abstract unowned GLib.VariantType get_parameter_type ();
1557 public abstract unowned GLib.Variant get_state ();
1558 public abstract unowned GLib.Variant get_state_hint ();
1559 public abstract unowned GLib.VariantType get_state_type ();
1560 public abstract void set_state (GLib.Variant value);
1561 public bool enabled { get; }
1562 public string name { get; }
1563 public GLib.VariantType parameter_type { get; }
1564 public GLib.Variant state { get; set construct; }
1565 public GLib.VariantType state_type { get; }
1567 [CCode (cheader_filename = "gio/gio.h")]
1568 public interface ActionGroup : GLib.Object {
1569 public abstract void activate_action (string action_name, GLib.Variant parameter);
1570 public abstract void change_action_state (string action_name, GLib.Variant value);
1571 public abstract bool get_action_enabled (string action_name);
1572 public abstract unowned GLib.VariantType get_action_parameter_type (string action_name);
1573 public abstract unowned GLib.Variant get_action_state (string action_name);
1574 public abstract unowned GLib.Variant get_action_state_hint (string action_name);
1575 public abstract unowned GLib.VariantType get_action_state_type (string action_name);
1576 public abstract bool has_action (string action_name);
1577 public abstract unowned string list_actions ();
1579 public signal void action_added (string action_name);
1581 public signal void action_enabled_changed (string action_name, bool enabled);
1583 public signal void action_removed (string action_name);
1585 public signal void action_state_changed (string action_name, GLib.Variant value);
1587 [CCode (cheader_filename = "gio/gio.h")]
1588 public interface AppInfo : GLib.Object {
1589 public abstract bool add_supports_type (string content_type) throws GLib.Error;
1590 public abstract bool can_delete ();
1591 public abstract bool can_remove_supports_type ();
1592 public static unowned GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
1593 public bool @delete ();
1595 public abstract bool do_delete ();
1596 public abstract unowned GLib.AppInfo dup ();
1597 public abstract bool equal (GLib.AppInfo appinfo2);
1598 public static GLib.List<GLib.AppInfo> get_all ();
1599 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
1600 public abstract unowned string get_commandline ();
1601 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
1602 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
1603 public abstract unowned string get_description ();
1604 public abstract unowned string get_display_name ();
1605 public abstract unowned string get_executable ();
1606 public abstract unowned GLib.Icon get_icon ();
1607 public abstract unowned string get_id ();
1608 public abstract unowned string get_name ();
1609 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1610 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1611 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
1612 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
1613 public static void reset_type_associations (string content_type);
1614 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
1615 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
1616 public abstract bool should_show ();
1617 public abstract bool supports_files ();
1618 public abstract bool supports_uris ();
1620 [CCode (cheader_filename = "gio/gio.h")]
1621 public interface AsyncInitable : GLib.Object {
1622 public abstract async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1623 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1624 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);
1625 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);
1627 [CCode (cheader_filename = "gio/gio.h")]
1628 public interface AsyncResult : GLib.Object {
1629 public abstract unowned GLib.Object get_source_object ();
1630 public abstract void* get_user_data ();
1632 [CCode (cheader_filename = "gio/gio.h")]
1633 public interface Converter : GLib.Object {
1634 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;
1635 public abstract void reset ();
1637 [CCode (cheader_filename = "gio/gio.h")]
1638 public interface Drive : GLib.Object {
1639 public abstract bool can_eject ();
1640 public abstract bool can_poll_for_media ();
1641 public abstract bool can_start ();
1642 public abstract bool can_start_degraded ();
1643 public abstract bool can_stop ();
1644 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1645 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1646 public abstract unowned string enumerate_identifiers ();
1647 public abstract unowned GLib.Icon get_icon ();
1648 public abstract unowned string get_identifier (string kind);
1649 public abstract unowned string get_name ();
1650 public abstract GLib.DriveStartStopType get_start_stop_type ();
1651 public abstract GLib.List<GLib.Volume> get_volumes ();
1652 public abstract bool has_media ();
1653 public abstract bool has_volumes ();
1654 public abstract bool is_media_check_automatic ();
1655 public abstract bool is_media_removable ();
1656 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
1657 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1658 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1659 public signal void changed ();
1660 public signal void disconnected ();
1661 public signal void eject_button ();
1662 public signal void stop_button ();
1664 [CCode (cheader_filename = "gio/gio.h")]
1665 public interface File : GLib.Object {
1666 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1667 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1668 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1669 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;
1670 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1671 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1672 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1673 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1674 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;
1675 public bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
1677 public abstract bool delete_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1678 public abstract unowned GLib.File dup ();
1679 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1680 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1681 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1682 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;
1683 public abstract bool equal (GLib.File file2);
1684 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
1685 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1686 public abstract string? get_basename ();
1687 public GLib.File get_child (string name);
1688 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1689 public abstract GLib.File? get_parent ();
1690 public abstract string get_parse_name ();
1691 public abstract string? get_path ();
1692 public abstract string? get_relative_path (GLib.File descendant);
1693 public abstract string get_uri ();
1694 public abstract string get_uri_scheme ();
1695 public bool has_parent (GLib.File? parent);
1696 public bool has_prefix (GLib.File prefix);
1697 public abstract bool has_uri_scheme (string uri_scheme);
1698 public abstract uint hash ();
1699 public abstract bool is_native ();
1700 public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1701 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;
1702 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;
1703 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
1704 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
1705 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
1706 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1707 [CCode (vfunc_name = "monitor_dir")]
1708 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1709 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1710 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1711 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1712 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1713 public static GLib.File new_for_commandline_arg (string arg);
1714 public static GLib.File new_for_path (string path);
1715 public static GLib.File new_for_uri (string uri);
1716 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
1717 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1718 public static unowned GLib.File parse_name (string parse_name);
1719 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
1721 public abstract bool prefix_matches (GLib.File file);
1722 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
1723 public bool query_exists (GLib.Cancellable? cancellable = null);
1724 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
1725 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1726 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;
1727 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1728 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;
1729 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
1730 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
1731 public GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
1732 public abstract async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1734 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1735 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1736 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;
1737 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;
1738 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;
1739 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1740 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;
1741 public abstract GLib.File resolve_relative_path (string relative_path);
1742 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1743 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1744 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1745 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1746 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1747 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1748 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1749 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;
1750 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1751 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
1752 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;
1753 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1754 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1755 public bool supports_thread_contexts ();
1756 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
1757 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1758 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1760 [CCode (cheader_filename = "gio/gio.h")]
1761 public interface Icon : GLib.Object {
1762 public abstract bool equal (GLib.Icon icon2);
1764 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1765 public abstract uint hash (void* icon);
1766 public static GLib.Icon? new_for_string (string str) throws GLib.Error;
1767 public string to_string ();
1769 public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
1771 [CCode (cheader_filename = "gio/gio.h")]
1772 public interface Initable : GLib.Object {
1773 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
1774 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1775 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;
1776 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
1778 [CCode (cheader_filename = "gio/gio.h")]
1779 public interface LoadableIcon : GLib.Icon, GLib.Object {
1780 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1781 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1783 [CCode (cheader_filename = "gio/gio.h")]
1784 public interface Mount : GLib.Object {
1785 public abstract bool can_eject ();
1786 public abstract bool can_unmount ();
1787 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1788 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1789 public abstract unowned GLib.File get_default_location ();
1790 public abstract unowned GLib.Drive get_drive ();
1791 public abstract unowned GLib.Icon get_icon ();
1792 public abstract unowned string get_name ();
1793 public abstract unowned GLib.File get_root ();
1794 public abstract unowned string get_uuid ();
1795 public abstract unowned GLib.Volume get_volume ();
1796 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1797 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1798 public bool is_shadowed ();
1799 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1800 public void shadow ();
1801 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1802 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1803 public void unshadow ();
1804 public signal void changed ();
1805 public signal void pre_unmount ();
1806 public signal void unmounted ();
1808 [CCode (cheader_filename = "gio/gio.h")]
1809 public interface Proxy : GLib.Object {
1810 public abstract unowned GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1811 public abstract async unowned GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1812 public static unowned GLib.Proxy get_default_for_protocol (string protocol);
1813 public abstract bool supports_hostname ();
1815 [CCode (cheader_filename = "gio/gio.h")]
1816 public interface ProxyResolver : GLib.Object {
1817 public static unowned GLib.ProxyResolver get_default ();
1818 public abstract bool is_supported ();
1819 public abstract unowned string lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1820 public abstract async unowned string lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1822 [CCode (cheader_filename = "gio/gio.h")]
1823 public interface Seekable : GLib.Object {
1824 public abstract bool can_seek ();
1825 public abstract bool can_truncate ();
1826 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1827 public abstract int64 tell ();
1828 [CCode (vfunc_name = "truncate_fn")]
1829 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
1831 [CCode (cheader_filename = "gio/gio.h")]
1832 public interface SocketConnectable : GLib.Object {
1833 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1834 public abstract unowned GLib.SocketAddressEnumerator proxy_enumerate ();
1836 [CCode (cheader_filename = "gio/gio.h")]
1837 public interface Volume : GLib.Object {
1838 public abstract bool can_eject ();
1839 public abstract bool can_mount ();
1840 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1841 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1842 public abstract unowned string enumerate_identifiers ();
1843 public abstract unowned GLib.File get_activation_root ();
1844 public abstract unowned GLib.Drive get_drive ();
1845 public abstract unowned GLib.Icon get_icon ();
1846 public abstract unowned string get_identifier (string kind);
1847 public abstract unowned GLib.Mount get_mount ();
1848 public abstract unowned string get_name ();
1849 public abstract unowned string get_uuid ();
1850 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1852 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1853 public abstract bool should_automount ();
1854 public signal void changed ();
1855 public signal void removed ();
1857 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1859 public enum AppInfoCreateFlags {
1863 SUPPORTS_STARTUP_NOTIFICATION
1865 [CCode (cprefix = "G_APPLICATION_", cheader_filename = "gio/gio.h")]
1867 public enum ApplicationFlags {
1872 HANDLES_COMMAND_LINE,
1875 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1877 public enum AskPasswordFlags {
1884 [CCode (cprefix = "G_BUS_NAME_OWNER_FLAGS_", cheader_filename = "gio/gio.h")]
1886 public enum BusNameOwnerFlags {
1891 [CCode (cprefix = "G_BUS_NAME_WATCHER_FLAGS_", cheader_filename = "gio/gio.h")]
1893 public enum BusNameWatcherFlags {
1897 [CCode (cprefix = "G_BUS_TYPE_", cheader_filename = "gio/gio.h")]
1898 public enum BusType {
1904 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1906 public enum ConverterFlags {
1911 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1912 public enum ConverterResult {
1918 [CCode (cprefix = "G_CREDENTIALS_TYPE_", cheader_filename = "gio/gio.h")]
1919 public enum CredentialsType {
1924 [CCode (cprefix = "G_DBUS_CALL_FLAGS_", cheader_filename = "gio/gio.h")]
1926 public enum DBusCallFlags {
1930 [CCode (cprefix = "G_DBUS_CAPABILITY_FLAGS_", cheader_filename = "gio/gio.h")]
1932 public enum DBusCapabilityFlags {
1936 [CCode (cprefix = "G_DBUS_CONNECTION_FLAGS_", cheader_filename = "gio/gio.h")]
1938 public enum DBusConnectionFlags {
1940 AUTHENTICATION_CLIENT,
1941 AUTHENTICATION_SERVER,
1942 AUTHENTICATION_ALLOW_ANONYMOUS,
1943 MESSAGE_BUS_CONNECTION,
1944 DELAY_MESSAGE_PROCESSING
1946 [CCode (cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1947 public enum DBusMessageByteOrder {
1951 [CCode (cprefix = "G_DBUS_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1953 public enum DBusMessageFlags {
1958 [CCode (cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", cheader_filename = "gio/gio.h")]
1959 public enum DBusMessageHeaderField {
1971 [CCode (cprefix = "G_DBUS_MESSAGE_TYPE_", cheader_filename = "gio/gio.h")]
1972 public enum DBusMessageType {
1979 [CCode (cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", cheader_filename = "gio/gio.h")]
1981 public enum DBusPropertyInfoFlags {
1986 [CCode (cprefix = "G_DBUS_PROXY_FLAGS_", cheader_filename = "gio/gio.h")]
1988 public enum DBusProxyFlags {
1990 DO_NOT_LOAD_PROPERTIES,
1991 DO_NOT_CONNECT_SIGNALS,
1994 [CCode (cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1996 public enum DBusSendMessageFlags {
2000 [CCode (cprefix = "G_DBUS_SERVER_FLAGS_", cheader_filename = "gio/gio.h")]
2002 public enum DBusServerFlags {
2005 AUTHENTICATION_ALLOW_ANONYMOUS
2007 [CCode (cprefix = "G_DBUS_SIGNAL_FLAGS_", cheader_filename = "gio/gio.h")]
2009 public enum DBusSignalFlags {
2013 [CCode (cprefix = "G_DBUS_SUBTREE_FLAGS_", cheader_filename = "gio/gio.h")]
2015 public enum DBusSubtreeFlags {
2017 DISPATCH_TO_UNENUMERATED_NODES
2019 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
2020 public enum DataStreamByteOrder {
2025 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
2026 public enum DataStreamNewlineType {
2032 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
2033 public enum DriveStartFlags {
2036 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
2037 public enum DriveStartStopType {
2044 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
2045 public enum EmblemOrigin {
2051 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
2053 public enum FileAttributeInfoFlags {
2058 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
2059 public enum FileAttributeStatus {
2064 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
2065 public enum FileAttributeType {
2077 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
2079 public enum FileCopyFlags {
2085 NO_FALLBACK_FOR_MOVE,
2086 TARGET_DEFAULT_PERMS
2088 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
2090 public enum FileCreateFlags {
2095 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
2096 public enum FileMonitorEvent {
2106 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
2108 public enum FileMonitorFlags {
2113 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
2115 public enum FileQueryInfoFlags {
2119 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
2120 public enum FileType {
2129 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
2130 public enum FilesystemPreviewType {
2135 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
2136 public enum MountMountFlags {
2139 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
2140 public enum MountOperationResult {
2145 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
2147 public enum MountUnmountFlags {
2151 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
2153 public enum OutputStreamSpliceFlags {
2158 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
2159 public enum PasswordSave {
2164 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
2165 public enum ResolverError {
2170 [CCode (cprefix = "G_SETTINGS_BIND_", cheader_filename = "gio/gio.h")]
2172 public enum SettingsBindFlags {
2180 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
2181 public enum SocketFamily {
2187 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
2188 public enum SocketMsgFlags {
2194 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
2195 public enum SocketProtocol {
2202 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
2203 public enum SocketType {
2209 [CCode (cprefix = "G_UNIX_SOCKET_ADDRESS_", cheader_filename = "gio/gio.h")]
2210 public enum UnixSocketAddressType {
2217 [CCode (cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", cheader_filename = "gio/gio.h")]
2218 public enum ZlibCompressorFormat {
2223 [CCode (cprefix = "G_DBUS_ERROR_", cheader_filename = "gio/gio.h")]
2224 public errordomain DBusError {
2246 MATCH_RULE_NOT_FOUND,
2251 SPAWN_CHILD_SIGNALED,
2254 SPAWN_CONFIG_INVALID,
2255 SPAWN_SERVICE_INVALID,
2256 SPAWN_SERVICE_NOT_FOUND,
2257 SPAWN_PERMISSIONS_INVALID,
2260 UNIX_PROCESS_ID_UNKNOWN,
2262 INVALID_FILE_CONTENT,
2263 SELINUX_SECURITY_CONTEXT_UNKNOWN,
2264 ADT_AUDIT_DATA_UNKNOWN,
2267 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
2268 public errordomain IOError {
2300 TOO_MANY_OPEN_FILES,
2307 NETWORK_UNREACHABLE,
2314 [CCode (cheader_filename = "gio/gio.h")]
2315 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
2316 [CCode (cheader_filename = "gio/gio.h")]
2317 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
2318 [CCode (cheader_filename = "gio/gio.h")]
2319 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
2320 [CCode (cheader_filename = "gio/gio.h")]
2321 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
2322 [CCode (cheader_filename = "gio/gio.h")]
2323 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
2324 [CCode (cheader_filename = "gio/gio.h")]
2325 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
2326 [CCode (cheader_filename = "gio/gio.h")]
2327 public delegate unowned GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Error error);
2328 [CCode (cheader_filename = "gio/gio.h")]
2329 public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
2330 [CCode (cheader_filename = "gio/gio.h")]
2331 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value, GLib.Error error);
2332 [CCode (cheader_filename = "gio/gio.h")]
2333 public delegate unowned GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2334 [CCode (cheader_filename = "gio/gio.h")]
2335 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
2336 [CCode (cheader_filename = "gio/gio.h")]
2337 public delegate unowned GLib.DBusInterfaceVTable DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
2338 [CCode (cheader_filename = "gio/gio.h")]
2339 public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
2340 [CCode (cheader_filename = "gio/gio.h")]
2341 public delegate unowned GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2342 [CCode (cheader_filename = "gio/gio.h")]
2343 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2344 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2345 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
2346 [CCode (cheader_filename = "gio/gio.h")]
2347 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
2348 [CCode (cheader_filename = "gio/gio.h")]
2349 public delegate void PeriodicTickFunc (GLib.Periodic periodic, int64 timestamp);
2350 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2351 public delegate void* ReallocFunc (void* data, size_t size);
2352 [CCode (cheader_filename = "gio/gio.h")]
2353 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
2354 [CCode (cheader_filename = "gio/gio.h")]
2355 public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
2356 [CCode (cheader_filename = "gio/gio.h")]
2357 public delegate bool SettingsGetMapping (GLib.Variant value, void* result);
2358 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2359 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
2360 [CCode (cheader_filename = "gio/gio.h")]
2361 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
2362 [CCode (cheader_filename = "gio/gio.h")]
2363 public static GLib.EqualFunc file_equal;
2364 [CCode (cheader_filename = "gio/gio.h")]
2365 public static GLib.HashFunc file_hash;
2366 [CCode (cheader_filename = "gio/gio.h")]
2367 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
2368 [CCode (cheader_filename = "gio/gio.h")]
2369 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
2370 [CCode (cheader_filename = "gio/gio.h")]
2371 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
2372 [CCode (cheader_filename = "gio/gio.h")]
2373 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
2374 [CCode (cheader_filename = "gio/gio.h")]
2375 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
2376 [CCode (cheader_filename = "gio/gio.h")]
2377 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
2378 [CCode (cheader_filename = "gio/gio.h")]
2379 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
2380 [CCode (cheader_filename = "gio/gio.h")]
2381 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
2382 [CCode (cheader_filename = "gio/gio.h")]
2383 public const string FILE_ATTRIBUTE_ETAG_VALUE;
2384 [CCode (cheader_filename = "gio/gio.h")]
2385 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
2386 [CCode (cheader_filename = "gio/gio.h")]
2387 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
2388 [CCode (cheader_filename = "gio/gio.h")]
2389 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
2390 [CCode (cheader_filename = "gio/gio.h")]
2391 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
2392 [CCode (cheader_filename = "gio/gio.h")]
2393 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
2394 [CCode (cheader_filename = "gio/gio.h")]
2395 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
2396 [CCode (cheader_filename = "gio/gio.h")]
2397 public const string FILE_ATTRIBUTE_ID_FILE;
2398 [CCode (cheader_filename = "gio/gio.h")]
2399 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
2400 [CCode (cheader_filename = "gio/gio.h")]
2401 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
2402 [CCode (cheader_filename = "gio/gio.h")]
2403 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
2404 [CCode (cheader_filename = "gio/gio.h")]
2405 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
2406 [CCode (cheader_filename = "gio/gio.h")]
2407 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
2408 [CCode (cheader_filename = "gio/gio.h")]
2409 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
2410 [CCode (cheader_filename = "gio/gio.h")]
2411 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
2412 [CCode (cheader_filename = "gio/gio.h")]
2413 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
2414 [CCode (cheader_filename = "gio/gio.h")]
2415 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
2416 [CCode (cheader_filename = "gio/gio.h")]
2417 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
2418 [CCode (cheader_filename = "gio/gio.h")]
2419 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
2420 [CCode (cheader_filename = "gio/gio.h")]
2421 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
2422 [CCode (cheader_filename = "gio/gio.h")]
2423 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
2424 [CCode (cheader_filename = "gio/gio.h")]
2425 public const string FILE_ATTRIBUTE_OWNER_GROUP;
2426 [CCode (cheader_filename = "gio/gio.h")]
2427 public const string FILE_ATTRIBUTE_OWNER_USER;
2428 [CCode (cheader_filename = "gio/gio.h")]
2429 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
2430 [CCode (cheader_filename = "gio/gio.h")]
2431 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
2432 [CCode (cheader_filename = "gio/gio.h")]
2433 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
2434 [CCode (cheader_filename = "gio/gio.h")]
2435 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
2436 [CCode (cheader_filename = "gio/gio.h")]
2437 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
2438 [CCode (cheader_filename = "gio/gio.h")]
2439 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
2440 [CCode (cheader_filename = "gio/gio.h")]
2441 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
2442 [CCode (cheader_filename = "gio/gio.h")]
2443 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
2444 [CCode (cheader_filename = "gio/gio.h")]
2445 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
2446 [CCode (cheader_filename = "gio/gio.h")]
2447 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
2448 [CCode (cheader_filename = "gio/gio.h")]
2449 public const string FILE_ATTRIBUTE_STANDARD_ICON;
2450 [CCode (cheader_filename = "gio/gio.h")]
2451 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
2452 [CCode (cheader_filename = "gio/gio.h")]
2453 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
2454 [CCode (cheader_filename = "gio/gio.h")]
2455 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
2456 [CCode (cheader_filename = "gio/gio.h")]
2457 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
2458 [CCode (cheader_filename = "gio/gio.h")]
2459 public const string FILE_ATTRIBUTE_STANDARD_NAME;
2460 [CCode (cheader_filename = "gio/gio.h")]
2461 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
2462 [CCode (cheader_filename = "gio/gio.h")]
2463 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
2464 [CCode (cheader_filename = "gio/gio.h")]
2465 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
2466 [CCode (cheader_filename = "gio/gio.h")]
2467 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
2468 [CCode (cheader_filename = "gio/gio.h")]
2469 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
2470 [CCode (cheader_filename = "gio/gio.h")]
2471 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
2472 [CCode (cheader_filename = "gio/gio.h")]
2473 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
2474 [CCode (cheader_filename = "gio/gio.h")]
2475 public const string FILE_ATTRIBUTE_TIME_ACCESS;
2476 [CCode (cheader_filename = "gio/gio.h")]
2477 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
2478 [CCode (cheader_filename = "gio/gio.h")]
2479 public const string FILE_ATTRIBUTE_TIME_CHANGED;
2480 [CCode (cheader_filename = "gio/gio.h")]
2481 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
2482 [CCode (cheader_filename = "gio/gio.h")]
2483 public const string FILE_ATTRIBUTE_TIME_CREATED;
2484 [CCode (cheader_filename = "gio/gio.h")]
2485 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
2486 [CCode (cheader_filename = "gio/gio.h")]
2487 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
2488 [CCode (cheader_filename = "gio/gio.h")]
2489 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
2490 [CCode (cheader_filename = "gio/gio.h")]
2491 public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
2492 [CCode (cheader_filename = "gio/gio.h")]
2493 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
2494 [CCode (cheader_filename = "gio/gio.h")]
2495 public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
2496 [CCode (cheader_filename = "gio/gio.h")]
2497 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
2498 [CCode (cheader_filename = "gio/gio.h")]
2499 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
2500 [CCode (cheader_filename = "gio/gio.h")]
2501 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
2502 [CCode (cheader_filename = "gio/gio.h")]
2503 public const string FILE_ATTRIBUTE_UNIX_GID;
2504 [CCode (cheader_filename = "gio/gio.h")]
2505 public const string FILE_ATTRIBUTE_UNIX_INODE;
2506 [CCode (cheader_filename = "gio/gio.h")]
2507 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
2508 [CCode (cheader_filename = "gio/gio.h")]
2509 public const string FILE_ATTRIBUTE_UNIX_MODE;
2510 [CCode (cheader_filename = "gio/gio.h")]
2511 public const string FILE_ATTRIBUTE_UNIX_NLINK;
2512 [CCode (cheader_filename = "gio/gio.h")]
2513 public const string FILE_ATTRIBUTE_UNIX_RDEV;
2514 [CCode (cheader_filename = "gio/gio.h")]
2515 public const string FILE_ATTRIBUTE_UNIX_UID;
2516 [CCode (cheader_filename = "gio/gio.h")]
2517 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2518 [CCode (cheader_filename = "gio/gio.h")]
2519 public const string PROXY_EXTENSION_POINT_NAME;
2520 [CCode (cheader_filename = "gio/gio.h")]
2521 public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
2522 [CCode (cheader_filename = "gio/gio.h")]
2523 public const string VFS_EXTENSION_POINT_NAME;
2524 [CCode (cheader_filename = "gio/gio.h")]
2525 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
2526 [CCode (cheader_filename = "gio/gio.h")]
2527 public const string VOLUME_IDENTIFIER_KIND_LABEL;
2528 [CCode (cheader_filename = "gio/gio.h")]
2529 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
2530 [CCode (cheader_filename = "gio/gio.h")]
2531 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
2532 [CCode (cheader_filename = "gio/gio.h")]
2533 public const string VOLUME_IDENTIFIER_KIND_UUID;
2534 [CCode (cheader_filename = "gio/gio.h")]
2535 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
2536 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
2537 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
2538 public static bool g_content_type_can_be_executable (string type);
2539 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.equals")]
2540 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
2541 public static bool g_content_type_equals (string type1, string type2);
2542 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
2543 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
2544 public static string g_content_type_from_mime_type (string mime_type);
2545 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
2546 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
2547 public static string g_content_type_get_description (string type);
2548 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
2549 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
2550 public static GLib.Icon g_content_type_get_icon (string type);
2551 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
2552 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
2553 public static string g_content_type_get_mime_type (string type);
2554 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess")]
2555 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
2556 public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
2557 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
2558 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
2559 public static string g_content_type_guess_for_tree (GLib.File root);
2560 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
2561 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
2562 public static bool g_content_type_is_a (string type, string supertype);
2563 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
2564 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
2565 public static bool g_content_type_is_unknown (string type);
2566 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
2567 public static GLib.List<string> g_content_types_get_registered ();
2568 [CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
2569 public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2570 [CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
2571 public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
2572 [CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
2573 public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
2574 [CCode (cname = "g_dbus_address_get_stream_sync", cheader_filename = "gio/gio.h")]
2575 public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
2576 [CCode (cname = "g_dbus_error_encode_gerror", cheader_filename = "gio/gio.h")]
2577 public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
2578 [CCode (cname = "g_dbus_error_get_remote_error", cheader_filename = "gio/gio.h")]
2579 public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
2580 [CCode (cname = "g_dbus_error_is_remote_error", cheader_filename = "gio/gio.h")]
2581 public static bool g_dbus_error_is_remote_error (GLib.Error error);
2582 [CCode (cname = "g_dbus_error_new_for_dbus_error", cheader_filename = "gio/gio.h")]
2583 public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
2584 [CCode (cname = "g_dbus_error_quark", cheader_filename = "gio/gio.h")]
2585 public static GLib.Quark g_dbus_error_quark ();
2586 [CCode (cname = "g_dbus_error_register_error", cheader_filename = "gio/gio.h")]
2587 public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2588 [CCode (cname = "g_dbus_error_register_error_domain", cheader_filename = "gio/gio.h")]
2589 public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
2590 [CCode (cname = "g_dbus_error_set_dbus_error", cheader_filename = "gio/gio.h")]
2591 public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
2592 [CCode (cname = "g_dbus_error_set_dbus_error_valist", cheader_filename = "gio/gio.h")]
2593 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;
2594 [CCode (cname = "g_dbus_error_strip_remote_error", cheader_filename = "gio/gio.h")]
2595 public static bool g_dbus_error_strip_remote_error (GLib.Error error);
2596 [CCode (cname = "g_dbus_error_unregister_error", cheader_filename = "gio/gio.h")]
2597 public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2598 [CCode (cname = "g_dbus_generate_guid", cheader_filename = "gio/gio.h")]
2599 public static unowned string g_dbus_generate_guid ();
2600 [CCode (cname = "g_dbus_is_address", cheader_filename = "gio/gio.h")]
2601 public static bool g_dbus_is_address (string str);
2602 [CCode (cname = "g_dbus_is_guid", cheader_filename = "gio/gio.h")]
2603 public static bool g_dbus_is_guid (string str);
2604 [CCode (cname = "g_dbus_is_interface_name", cheader_filename = "gio/gio.h")]
2605 public static bool g_dbus_is_interface_name (string str);
2606 [CCode (cname = "g_dbus_is_member_name", cheader_filename = "gio/gio.h")]
2607 public static bool g_dbus_is_member_name (string str);
2608 [CCode (cname = "g_dbus_is_name", cheader_filename = "gio/gio.h")]
2609 public static bool g_dbus_is_name (string str);
2610 [CCode (cname = "g_dbus_is_supported_address", cheader_filename = "gio/gio.h")]
2611 public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
2612 [CCode (cname = "g_dbus_is_unique_name", cheader_filename = "gio/gio.h")]
2613 public static bool g_dbus_is_unique_name (string str);
2614 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
2615 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
2616 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
2617 public static GLib.Quark g_io_error_quark ();
2618 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
2619 public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
2620 [CCode (cname = "g_io_modules_scan_all_in_directory", cheader_filename = "gio/gio.h")]
2621 public static void g_io_modules_scan_all_in_directory (string dirname);
2622 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
2623 public static void g_io_scheduler_cancel_all_jobs ();
2624 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
2625 public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
2626 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
2627 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
2628 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
2629 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
2630 [CCode (cname = "g_simple_async_report_take_gerror_in_idle", cheader_filename = "gio/gio.h")]
2631 public static void g_simple_async_report_take_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);