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 T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.Cancellable? cancellable = null) throws GLib.IOError;
11 [CCode (cheader_filename = "gio/gio.h")]
12 public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
13 [CCode (cname = "g_bus_own_name_with_closures", cheader_filename = "gio/gio.h")]
14 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);
15 [CCode (cname = "g_bus_own_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
16 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);
17 [CCode (cheader_filename = "gio/gio.h")]
18 public static void unown_name (uint owner_id);
19 [CCode (cheader_filename = "gio/gio.h")]
20 public static void unwatch_name (uint watcher_id);
21 [CCode (cname = "g_bus_watch_name_with_closures", cheader_filename = "gio/gio.h")]
22 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);
23 [CCode (cname = "g_bus_watch_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
24 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);
26 [CCode (cheader_filename = "gio/gio.h")]
27 public class AppLaunchContext : GLib.Object {
28 [CCode (has_construct_function = false)]
29 public AppLaunchContext ();
30 public virtual unowned string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
31 public virtual unowned string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
32 public virtual void launch_failed (string startup_notify_id);
34 [CCode (cheader_filename = "gio/gio.h")]
35 public class Application : GLib.Object, GLib.Initable {
36 [CCode (has_construct_function = false)]
37 public Application (string appid, [CCode (array_length_pos = 1.9)] ref unowned string[]? argv = null);
38 public void add_action (string name, string description);
39 public unowned string get_action_description (string name);
40 public bool get_action_enabled (string name);
41 public unowned string get_id ();
42 public static unowned GLib.Application get_instance ();
43 public void invoke_action (string name, GLib.Variant platform_data);
44 public unowned string list_actions ();
45 [CCode (cname = "g_application_quit_with_data")]
46 public bool quit (GLib.Variant? platform_data = null);
47 public bool register ();
48 public void remove_action (string name);
49 public virtual void run ();
50 public void set_action_enabled (string name, bool enabled);
51 public static unowned GLib.Application try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
52 public static unowned GLib.Application unregistered_try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
54 public string application_id { owned get; construct; }
56 public GLib.Variant argv { owned get; construct; }
58 public bool default_quit { get; construct; }
60 public bool is_remote { get; }
62 public GLib.Variant platform_data { owned get; construct; }
63 public virtual signal void action_with_data (string action_name, GLib.Variant platform_data);
64 public virtual signal void prepare_activation (GLib.Variant arguments, GLib.Variant platform_data);
66 public virtual signal bool quit_with_data (GLib.Variant platform_data);
68 [CCode (cheader_filename = "gio/gio.h")]
69 public class BufferedInputStream : GLib.FilterInputStream {
70 [CCode (type = "GInputStream*", has_construct_function = false)]
71 public BufferedInputStream (GLib.InputStream base_stream);
72 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
73 public virtual async ssize_t fill_async (ssize_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
74 public size_t get_available ();
75 public size_t get_buffer_size ();
76 public size_t peek (void* buffer, size_t offset, size_t count);
77 public void* peek_buffer (out size_t count);
78 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
79 public void set_buffer_size (size_t size);
80 [CCode (type = "GInputStream*", has_construct_function = false)]
81 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
82 public uint buffer_size { get; set construct; }
84 [CCode (cheader_filename = "gio/gio.h")]
85 public class BufferedOutputStream : GLib.FilterOutputStream {
86 [CCode (type = "GOutputStream*", has_construct_function = false)]
87 public BufferedOutputStream (GLib.OutputStream base_stream);
88 public bool get_auto_grow ();
89 public size_t get_buffer_size ();
90 public void set_auto_grow (bool auto_grow);
91 public void set_buffer_size (size_t size);
92 [CCode (type = "GOutputStream*", has_construct_function = false)]
93 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
94 public bool auto_grow { get; set; }
95 public uint buffer_size { get; set construct; }
97 [CCode (cheader_filename = "gio/gio.h")]
98 public class Cancellable : GLib.Object {
99 [CCode (has_construct_function = false)]
100 public Cancellable ();
101 public void cancel ();
102 public ulong connect (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
103 public void disconnect (ulong handler_id);
104 public static unowned GLib.Cancellable get_current ();
105 public int get_fd ();
106 public bool is_cancelled ();
107 public bool make_pollfd (GLib.PollFD pollfd);
108 public void pop_current ();
109 public void push_current ();
110 public void release_fd ();
111 public void reset ();
112 public bool set_error_if_cancelled () throws GLib.Error;
113 public virtual signal void cancelled ();
115 [CCode (cheader_filename = "gio/gio.h")]
116 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
117 [CCode (has_construct_function = false)]
118 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
119 public uint get_num_fallbacks ();
120 public bool get_use_fallback ();
121 public void set_use_fallback (bool use_fallback);
123 public string from_charset { owned get; construct; }
125 public string to_charset { owned get; construct; }
126 public bool use_fallback { get; set construct; }
128 [CCode (cheader_filename = "gio/gio.h")]
129 public class ConverterInputStream : GLib.FilterInputStream {
130 [CCode (type = "GInputStream*", has_construct_function = false)]
131 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
132 public unowned GLib.Converter get_converter ();
133 public GLib.Converter converter { get; construct; }
135 [CCode (cheader_filename = "gio/gio.h")]
136 public class ConverterOutputStream : GLib.FilterOutputStream {
137 [CCode (type = "GOutputStream*", has_construct_function = false)]
138 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
139 public unowned GLib.Converter get_converter ();
140 public GLib.Converter converter { get; construct; }
142 [CCode (cheader_filename = "gio/gio.h")]
143 public class Credentials : GLib.Object {
144 [CCode (has_construct_function = false)]
145 public Credentials ();
146 public void* get_native ();
147 public uint get_unix_user () throws GLib.Error;
148 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
149 public void set_native (void* native);
150 public bool set_unix_user (uint uid) throws GLib.Error;
151 public unowned string to_string ();
154 [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")]
155 public class DBusAnnotationInfo {
156 public weak GLib.DBusAnnotationInfo annotations;
157 public weak string key;
158 public int ref_count;
159 public weak string value;
160 public unowned string lookup (string name);
163 [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")]
164 public class DBusArgInfo {
165 public weak GLib.DBusAnnotationInfo annotations;
166 public weak string name;
167 public int ref_count;
168 public weak string signature;
170 [CCode (cheader_filename = "gio/gio.h")]
171 public class DBusAuthObserver : GLib.Object {
172 [CCode (has_construct_function = false)]
173 public DBusAuthObserver ();
175 public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials credentials);
177 [CCode (cheader_filename = "gio/gio.h")]
178 public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
179 [CCode (type = "void", has_construct_function = false)]
180 public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
181 public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
182 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;
183 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;
184 public void close ();
185 public bool emit_signal (string destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
186 [CCode (type = "void", has_construct_function = false)]
187 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
188 [CCode (has_construct_function = false)]
189 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
190 public GLib.DBusCapabilityFlags get_capabilities ();
191 public bool get_exit_on_close ();
192 public unowned string get_guid ();
193 public unowned GLib.Credentials get_peer_credentials ();
194 public unowned GLib.IOStream get_stream ();
195 public unowned string get_unique_name ();
196 public bool is_closed ();
197 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
198 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
199 public void remove_filter (uint filter_id);
200 public bool send_message (GLib.DBusMessage message, uint32 out_serial) throws GLib.Error;
201 public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
202 public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
203 public void set_exit_on_close (bool exit_on_close);
204 public uint signal_subscribe (string sender, string interface_name, string member, string object_path, string arg0, GLib.DBusSignalCallback callback, GLib.DestroyNotify user_data_free_func);
205 public void signal_unsubscribe (uint subscription_id);
206 [CCode (has_construct_function = false)]
207 public DBusConnection.sync (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
208 public bool unregister_object (uint registration_id);
209 public bool unregister_subtree (uint registration_id);
210 public string address { construct; }
211 public GLib.DBusAuthObserver authentication_observer { construct; }
212 public GLib.DBusCapabilityFlags capabilities { get; }
213 public bool exit_on_close { get; set; }
214 public GLib.DBusConnectionFlags flags { construct; }
215 public string guid { get; construct; }
216 public GLib.IOStream stream { get; construct; }
217 public string unique_name { get; }
218 public virtual signal void closed (bool remote_peer_vanished, GLib.Error error);
221 [CCode (cheader_filename = "gio/gio.h")]
222 public class DBusErrorEntry {
223 public weak string dbus_error_name;
224 public int error_code;
227 [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")]
228 public class DBusInterfaceInfo {
229 public weak GLib.DBusAnnotationInfo annotations;
230 public weak GLib.DBusMethodInfo methods;
231 public weak string name;
232 public weak GLib.DBusPropertyInfo properties;
233 public int ref_count;
234 public weak GLib.DBusSignalInfo signals;
235 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
236 public unowned GLib.DBusMethodInfo lookup_method (string name);
237 public unowned GLib.DBusPropertyInfo lookup_property (string name);
238 public unowned GLib.DBusSignalInfo lookup_signal (string name);
241 [CCode (cheader_filename = "gio/gio.h")]
242 public class DBusInterfaceVTable {
243 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
244 public weak GLib.DBusInterfaceMethodCallFunc method_call;
245 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
247 [CCode (cheader_filename = "gio/gio.h")]
248 public class DBusMessage : GLib.Object {
249 [CCode (has_construct_function = false)]
250 public DBusMessage ();
251 public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
252 [CCode (has_construct_function = false)]
253 public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
254 public unowned string get_arg0 ();
255 public unowned GLib.Variant get_body ();
256 public unowned string get_destination ();
257 public unowned string get_error_name ();
258 public GLib.DBusMessageFlags get_flags ();
259 public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
260 public unowned uchar[] get_header_fields ();
261 public unowned string get_interface ();
262 public unowned string get_member ();
263 public GLib.DBusMessageType get_message_type ();
264 public uint32 get_num_unix_fds ();
265 public unowned string get_path ();
266 public uint32 get_reply_serial ();
267 public unowned string get_sender ();
268 public uint32 get_serial ();
269 public unowned string get_signature ();
270 public unowned GLib.UnixFDList get_unix_fd_list ();
271 [CCode (has_construct_function = false)]
272 public DBusMessage.method_call (string name, string path, string interface_, string method);
273 [CCode (has_construct_function = false)]
274 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format);
275 [CCode (has_construct_function = false)]
276 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
277 [CCode (has_construct_function = false)]
278 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, void* var_args);
279 [CCode (has_construct_function = false)]
280 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
281 public unowned string print (uint indent);
282 public void set_body (GLib.Variant body);
283 public void set_destination (string value);
284 public void set_error_name (string value);
285 public void set_flags (GLib.DBusMessageFlags flags);
286 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant value);
287 public void set_interface (string value);
288 public void set_member (string value);
289 public void set_message_type (GLib.DBusMessageType type);
290 public void set_num_unix_fds (uint32 value);
291 public void set_path (string value);
292 public void set_reply_serial (uint32 value);
293 public void set_sender (string value);
294 public void set_serial (uint32 serial);
295 public void set_signature (string value);
296 public void set_unix_fd_list (GLib.UnixFDList fd_list);
297 [CCode (has_construct_function = false)]
298 public DBusMessage.@signal (string path, string interface_, string @signal);
299 public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
300 public bool to_gerror () throws GLib.Error;
303 [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")]
304 public class DBusMethodInfo {
305 public weak GLib.DBusAnnotationInfo annotations;
306 public weak GLib.DBusArgInfo in_args;
307 public weak string name;
308 public weak GLib.DBusArgInfo out_args;
309 public int ref_count;
311 [CCode (cheader_filename = "gio/gio.h")]
312 public class DBusMethodInvocation : GLib.Object {
313 [CCode (has_construct_function = false)]
314 public DBusMethodInvocation (string sender, string object_path, string interface_name, string method_name, GLib.DBusMethodInfo method_info, GLib.DBusConnection connection, GLib.DBusMessage message, GLib.Variant parameters);
315 public unowned GLib.DBusConnection get_connection ();
316 public unowned string get_interface_name ();
317 public unowned GLib.DBusMessage get_message ();
318 public unowned GLib.DBusMethodInfo get_method_info ();
319 public unowned string get_method_name ();
320 public unowned string get_object_path ();
321 public unowned GLib.Variant get_parameters ();
322 public unowned string get_sender ();
323 public void* get_user_data ();
324 public void return_dbus_error (string error_name, string error_message);
325 public void return_error (GLib.Quark domain, int code, string format);
326 public void return_error_literal (GLib.Quark domain, int code, string message);
327 public void return_error_valist (GLib.Quark domain, int code, string format, void* var_args);
328 public void return_gerror (GLib.Error error);
329 public void return_value (GLib.Variant parameters);
332 [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")]
333 public class DBusNodeInfo {
334 public weak GLib.DBusAnnotationInfo annotations;
335 public weak GLib.DBusInterfaceInfo interfaces;
336 public weak GLib.DBusNodeInfo nodes;
337 public weak string path;
338 public int ref_count;
339 [CCode (has_construct_function = false)]
340 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
341 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
342 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
345 [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")]
346 public class DBusPropertyInfo {
347 public weak GLib.DBusAnnotationInfo annotations;
348 public GLib.DBusPropertyInfoFlags flags;
349 public weak string name;
350 public int ref_count;
351 public weak string signature;
353 [CCode (cheader_filename = "gio/gio.h")]
354 public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
355 [CCode (type = "void", has_construct_function = false)]
356 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;
357 public async GLib.Variant call (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
358 public GLib.Variant call_sync (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
359 [CCode (type = "void", has_construct_function = false)]
360 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;
361 [CCode (has_construct_function = false)]
362 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;
363 public unowned GLib.Variant get_cached_property (string property_name);
364 public unowned string get_cached_property_names ();
365 public unowned GLib.DBusConnection get_connection ();
366 public int get_default_timeout ();
367 public GLib.DBusProxyFlags get_flags ();
368 public unowned GLib.DBusInterfaceInfo get_interface_info ();
369 public unowned string get_interface_name ();
370 public unowned string get_name ();
371 public unowned string get_name_owner ();
372 public unowned string get_object_path ();
373 public void set_cached_property (string property_name, GLib.Variant value);
374 public void set_default_timeout (int timeout_msec);
375 public void set_interface_info (GLib.DBusInterfaceInfo info);
376 [CCode (has_construct_function = false)]
377 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;
378 public GLib.BusType g_bus_type { construct; }
380 public GLib.DBusConnection g_connection { owned get; construct; }
382 public int g_default_timeout { get; set construct; }
384 public GLib.DBusProxyFlags g_flags { get; construct; }
386 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
388 public string g_interface_name { owned get; construct; }
390 public string g_name { owned get; construct; }
392 public string g_name_owner { owned get; }
394 public string g_object_path { owned get; construct; }
395 public virtual signal void g_properties_changed (GLib.Variant changed_properties, string[] invalidated_properties);
396 public virtual signal void g_signal (string sender_name, string signal_name, GLib.Variant parameters);
398 [CCode (cheader_filename = "gio/gio.h")]
399 public class DBusServer : GLib.Object, GLib.Initable {
400 public unowned string get_client_address ();
401 public GLib.DBusServerFlags get_flags ();
402 public unowned string get_guid ();
403 public bool is_active ();
404 public void start ();
406 [CCode (has_construct_function = false)]
407 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
409 public string active { owned get; }
411 public string address { owned get; construct; }
413 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
414 public string client_address { get; }
415 public GLib.DBusServerFlags flags { get; construct; }
416 public string guid { get; construct; }
417 public virtual signal void new_connection (GLib.DBusConnection connection);
420 [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")]
421 public class DBusSignalInfo {
422 public weak GLib.DBusAnnotationInfo annotations;
423 public weak GLib.DBusArgInfo args;
424 public weak string name;
425 public int ref_count;
428 [CCode (cheader_filename = "gio/gio.h")]
429 public class DBusSubtreeVTable {
430 public weak GLib.DBusSubtreeDispatchFunc dispatch;
431 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
432 public weak GLib.DBusSubtreeIntrospectFunc introspect;
434 [CCode (cheader_filename = "gio/gio.h")]
435 public class DataInputStream : GLib.BufferedInputStream {
436 [CCode (has_construct_function = false)]
437 public DataInputStream (GLib.InputStream base_stream);
438 public GLib.DataStreamByteOrder get_byte_order ();
439 public GLib.DataStreamNewlineType get_newline_type ();
440 public uchar read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
441 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.Error;
442 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.Error;
443 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.Error;
444 public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
445 public async string? read_line_async (int io_priority, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.Error;
446 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.Error;
447 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.Error;
448 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.Error;
449 public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
450 public async string? read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.Error;
451 public void set_byte_order (GLib.DataStreamByteOrder order);
452 public void set_newline_type (GLib.DataStreamNewlineType type);
453 public GLib.DataStreamByteOrder byte_order { get; set; }
454 public GLib.DataStreamNewlineType newline_type { get; set; }
456 [CCode (cheader_filename = "gio/gio.h")]
457 public class DataOutputStream : GLib.FilterOutputStream {
458 [CCode (has_construct_function = false)]
459 public DataOutputStream (GLib.OutputStream base_stream);
460 public GLib.DataStreamByteOrder get_byte_order ();
461 public bool put_byte (uchar data, GLib.Cancellable? cancellable = null) throws GLib.Error;
462 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
463 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
464 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
465 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.Error;
466 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
467 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
468 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
469 public void set_byte_order (GLib.DataStreamByteOrder order);
470 public GLib.DataStreamByteOrder byte_order { get; set; }
472 [CCode (cheader_filename = "gio/gio.h")]
473 public class Emblem : GLib.Object, GLib.Icon {
474 [CCode (has_construct_function = false)]
475 public Emblem (GLib.Icon icon);
476 public unowned GLib.Icon get_icon ();
477 public GLib.EmblemOrigin get_origin ();
478 [CCode (has_construct_function = false)]
479 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
480 public GLib.Object icon { get; construct; }
481 public GLib.EmblemOrigin origin { get; construct; }
484 [CCode (cheader_filename = "gio/gio.h")]
485 public class EmblemClass {
487 [CCode (cheader_filename = "gio/gio.h")]
488 public class EmblemedIcon : GLib.Object, GLib.Icon {
489 [CCode (type = "GIcon*", has_construct_function = false)]
490 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
491 public void add_emblem (GLib.Emblem emblem);
492 public unowned GLib.List<GLib.Emblem> get_emblems ();
493 public unowned GLib.Icon get_icon ();
496 [CCode (cheader_filename = "gio/gio.h")]
497 public class EmblemedIconClass {
500 [CCode (cheader_filename = "gio/gio.h")]
501 public class FileAttributeInfo {
502 public GLib.FileAttributeInfoFlags flags;
503 public weak string name;
504 public GLib.FileAttributeType type;
507 [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")]
508 public class FileAttributeInfoList {
509 public weak GLib.FileAttributeInfo infos;
511 [CCode (has_construct_function = false)]
512 public FileAttributeInfoList ();
513 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
514 public unowned GLib.FileAttributeInfoList dup ();
515 public unowned GLib.FileAttributeInfo lookup (string name);
518 [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")]
519 public class FileAttributeMatcher {
520 [CCode (has_construct_function = false)]
521 public FileAttributeMatcher (string attributes);
522 public bool enumerate_namespace (string ns);
523 public unowned string enumerate_next ();
524 public bool matches (string attribute);
525 public bool matches_only (string attribute);
527 [CCode (cheader_filename = "gio/gio.h")]
528 public class FileEnumerator : GLib.Object {
529 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
530 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
532 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
533 public unowned GLib.File get_container ();
534 public bool has_pending ();
535 public bool is_closed ();
536 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
537 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
538 public void set_pending (bool pending);
539 public GLib.File container { construct; }
541 [CCode (cheader_filename = "gio/gio.h")]
542 public class FileIOStream : GLib.IOStream, GLib.Seekable {
544 public virtual bool can_seek ();
546 public virtual bool can_truncate ();
547 public virtual unowned string get_etag ();
548 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
549 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
551 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
553 public virtual int64 tell ();
555 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
557 [CCode (cheader_filename = "gio/gio.h")]
558 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
559 [CCode (type = "GIcon*", has_construct_function = false)]
560 public FileIcon (GLib.File file);
561 public unowned GLib.File get_file ();
562 public GLib.File file { get; construct; }
565 [CCode (cheader_filename = "gio/gio.h")]
566 public class FileIconClass {
568 [CCode (cheader_filename = "gio/gio.h")]
569 public class FileInfo : GLib.Object {
570 [CCode (has_construct_function = false)]
572 public void clear_status ();
573 public void copy_into (GLib.FileInfo dest_info);
574 public unowned GLib.FileInfo dup ();
575 public unowned string get_attribute_as_string (string attribute);
576 public bool get_attribute_boolean (string attribute);
577 public unowned string get_attribute_byte_string (string attribute);
578 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
579 public int32 get_attribute_int32 (string attribute);
580 public int64 get_attribute_int64 (string attribute);
581 public unowned GLib.Object get_attribute_object (string attribute);
582 public GLib.FileAttributeStatus get_attribute_status (string attribute);
583 public unowned string get_attribute_string (string attribute);
584 public unowned string get_attribute_stringv (string attribute);
585 public GLib.FileAttributeType get_attribute_type (string attribute);
586 public uint32 get_attribute_uint32 (string attribute);
587 public uint64 get_attribute_uint64 (string attribute);
588 public unowned string get_content_type ();
589 public unowned string get_display_name ();
590 public unowned string get_edit_name ();
591 public unowned string get_etag ();
592 public GLib.FileType get_file_type ();
593 public unowned GLib.Icon get_icon ();
594 public bool get_is_backup ();
595 public bool get_is_hidden ();
596 public bool get_is_symlink ();
597 public void get_modification_time (out GLib.TimeVal _result);
598 public unowned string get_name ();
599 public int64 get_size ();
600 public int32 get_sort_order ();
601 public unowned string get_symlink_target ();
602 public bool has_attribute (string attribute);
603 public bool has_namespace (string name_space);
604 public unowned string list_attributes (string name_space);
605 public void remove_attribute (string attribute);
606 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
607 public void set_attribute_boolean (string attribute, bool attr_value);
608 public void set_attribute_byte_string (string attribute, string attr_value);
609 public void set_attribute_int32 (string attribute, int32 attr_value);
610 public void set_attribute_int64 (string attribute, int64 attr_value);
611 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
612 public void set_attribute_object (string attribute, GLib.Object attr_value);
613 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
614 public void set_attribute_string (string attribute, string attr_value);
615 public void set_attribute_stringv (string attribute, out unowned string attr_value);
616 public void set_attribute_uint32 (string attribute, uint32 attr_value);
617 public void set_attribute_uint64 (string attribute, uint64 attr_value);
618 public void set_content_type (string content_type);
619 public void set_display_name (string display_name);
620 public void set_edit_name (string edit_name);
621 public void set_file_type (GLib.FileType type);
622 public void set_icon (GLib.Icon icon);
623 public void set_is_hidden (bool is_hidden);
624 public void set_is_symlink (bool is_symlink);
625 public void set_modification_time (GLib.TimeVal mtime);
626 public void set_name (string name);
627 public void set_size (int64 size);
628 public void set_sort_order (int32 sort_order);
629 public void set_symlink_target (string symlink_target);
630 public void unset_attribute_mask ();
633 [CCode (cheader_filename = "gio/gio.h")]
634 public class FileInfoClass {
636 [CCode (cheader_filename = "gio/gio.h")]
637 public class FileInputStream : GLib.InputStream, GLib.Seekable {
639 public virtual bool can_seek ();
640 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
641 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
643 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
645 public virtual int64 tell ();
647 [CCode (cheader_filename = "gio/gio.h")]
648 public class FileMonitor : GLib.Object {
649 public virtual bool cancel ();
650 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
651 public bool is_cancelled ();
652 public void set_rate_limit (int limit_msecs);
654 public bool cancelled { get; }
656 public int rate_limit { get; set; }
657 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
659 [CCode (cheader_filename = "gio/gio.h")]
660 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
662 public virtual bool can_seek ();
664 public virtual bool can_truncate ();
665 public virtual unowned string get_etag ();
666 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
667 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
669 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
671 public virtual int64 tell ();
673 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
675 [CCode (cheader_filename = "gio/gio.h")]
676 public class FilenameCompleter : GLib.Object {
677 [CCode (has_construct_function = false)]
678 public FilenameCompleter ();
679 public unowned string get_completion_suffix (string initial_text);
680 public unowned string get_completions (string initial_text);
681 public void set_dirs_only (bool dirs_only);
682 public virtual signal void got_completion_data ();
684 [CCode (cheader_filename = "gio/gio.h")]
685 public class FilterInputStream : GLib.InputStream {
686 public unowned GLib.InputStream get_base_stream ();
687 public bool get_close_base_stream ();
688 public void set_close_base_stream (bool close_base);
689 public GLib.InputStream base_stream { get; construct; }
690 public bool close_base_stream { get; construct; }
692 [CCode (cheader_filename = "gio/gio.h")]
693 public class FilterOutputStream : GLib.OutputStream {
694 public unowned GLib.OutputStream get_base_stream ();
695 public bool get_close_base_stream ();
696 public void set_close_base_stream (bool close_base);
697 public GLib.OutputStream base_stream { get; construct; }
698 public bool close_base_stream { get; construct; }
701 [CCode (cheader_filename = "gio/gio.h")]
702 public class IOExtension {
703 public unowned string get_name ();
704 public int get_priority ();
705 public GLib.Type get_type ();
706 public unowned GLib.TypeClass ref_class ();
709 [CCode (cheader_filename = "gio/gio.h")]
710 public class IOExtensionPoint {
711 public unowned GLib.IOExtension get_extension_by_name (string name);
712 public unowned GLib.List<GLib.IOExtension> get_extensions ();
713 public GLib.Type get_required_type ();
714 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
715 public static unowned GLib.IOExtensionPoint lookup (string name);
716 public static unowned GLib.IOExtensionPoint register (string name);
717 public void set_required_type (GLib.Type type);
719 [CCode (cheader_filename = "gio/gio.h")]
720 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
721 [CCode (has_construct_function = false)]
722 public IOModule (string filename);
724 public static unowned string query ();
725 public void unload ();
728 [CCode (cheader_filename = "gio/gio.h")]
729 public class IOModuleClass {
732 [CCode (cheader_filename = "gio/gio.h")]
733 public class IOSchedulerJob {
734 public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
735 public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
737 [CCode (cheader_filename = "gio/gio.h")]
738 public class IOStream : GLib.Object {
739 public void clear_pending ();
740 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
741 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
743 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
744 public virtual unowned GLib.InputStream get_input_stream ();
745 public virtual unowned GLib.OutputStream get_output_stream ();
746 public bool has_pending ();
747 public bool is_closed ();
748 public bool set_pending () throws GLib.Error;
750 public bool closed { get; set; }
751 public GLib.InputStream input_stream { get; }
752 public GLib.OutputStream output_stream { get; }
754 [CCode (cheader_filename = "gio/gio.h")]
755 public class InetAddress : GLib.Object {
756 [CCode (has_construct_function = false)]
757 public InetAddress.any (GLib.SocketFamily family);
758 [CCode (has_construct_function = false)]
759 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
760 [CCode (has_construct_function = false)]
761 public InetAddress.from_string (string str);
762 public GLib.SocketFamily get_family ();
763 public bool get_is_any ();
764 public bool get_is_link_local ();
765 public bool get_is_loopback ();
766 public bool get_is_mc_global ();
767 public bool get_is_mc_link_local ();
768 public bool get_is_mc_node_local ();
769 public bool get_is_mc_org_local ();
770 public bool get_is_mc_site_local ();
771 public bool get_is_multicast ();
772 public bool get_is_site_local ();
773 public size_t get_native_size ();
774 [CCode (has_construct_function = false)]
775 public InetAddress.loopback (GLib.SocketFamily family);
776 [CCode (array_length = false)]
777 public virtual unowned uint8[] to_bytes ();
778 public virtual string to_string ();
780 public void* bytes { get; construct; }
781 public GLib.SocketFamily family { get; construct; }
782 public bool is_any { get; }
783 public bool is_link_local { get; }
784 public bool is_loopback { get; }
785 public bool is_mc_global { get; }
786 public bool is_mc_link_local { get; }
787 public bool is_mc_node_local { get; }
788 public bool is_mc_org_local { get; }
789 public bool is_mc_site_local { get; }
790 public bool is_multicast { get; }
791 public bool is_site_local { get; }
793 [CCode (cheader_filename = "gio/gio.h")]
794 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
795 [CCode (type = "GSocketAddress*", has_construct_function = false)]
796 public InetSocketAddress (GLib.InetAddress address, uint16 port);
797 public unowned GLib.InetAddress get_address ();
798 public uint16 get_port ();
799 public GLib.InetAddress address { get; construct; }
800 public uint port { get; construct; }
802 [CCode (cheader_filename = "gio/gio.h")]
803 public class InputStream : GLib.Object {
804 public void clear_pending ();
805 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
806 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
808 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
809 public bool has_pending ();
810 public bool is_closed ();
811 public ssize_t read (void* buffer, size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
812 public bool read_all (void* buffer, size_t count, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.Error;
813 public virtual async ssize_t read_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
815 public virtual ssize_t read_fn (void* buffer, size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
816 public bool set_pending () throws GLib.Error;
817 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
818 public virtual async ssize_t skip_async (size_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
821 [CCode (cheader_filename = "gio/gio.h")]
822 public class InputVector {
826 [CCode (cheader_filename = "gio/gio.h")]
827 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
828 [CCode (type = "GInputStream*", has_construct_function = false)]
829 public MemoryInputStream ();
830 public void add_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
831 [CCode (type = "GInputStream*", has_construct_function = false)]
832 public MemoryInputStream.from_data (void* data, ssize_t len, GLib.DestroyNotify? destroy);
834 [CCode (cheader_filename = "gio/gio.h")]
835 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
836 [CCode (type = "GOutputStream*", has_construct_function = false)]
837 public MemoryOutputStream (void* data, size_t size, GLib.ReallocFunc realloc_function, GLib.DestroyNotify? destroy_function);
838 public void* get_data ();
839 public size_t get_data_size ();
840 public size_t get_size ();
841 public void* data { get; construct; }
842 public ulong data_size { get; }
844 public void* destroy_function { get; construct; }
846 public void* realloc_function { get; construct; }
847 public ulong size { get; construct; }
849 [CCode (cheader_filename = "gio/gio.h")]
850 public class MountOperation : GLib.Object {
851 [CCode (has_construct_function = false)]
852 public MountOperation ();
853 public bool get_anonymous ();
854 public int get_choice ();
855 public unowned string get_domain ();
856 public unowned string get_password ();
857 public GLib.PasswordSave get_password_save ();
858 public unowned string get_username ();
859 public void set_anonymous (bool anonymous);
860 public void set_choice (int choice);
861 public void set_domain (string domain);
862 public void set_password (string password);
863 public void set_password_save (GLib.PasswordSave save);
864 public void set_username (string username);
865 public bool anonymous { get; set; }
866 public int choice { get; set; }
867 public string domain { get; set; }
868 public string password { get; set; }
869 public GLib.PasswordSave password_save { get; set; }
870 public string username { get; set; }
871 public virtual signal void aborted ();
872 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
873 public virtual signal void ask_question (string message, string[] choices);
875 public virtual signal void reply (GLib.MountOperationResult result);
876 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
878 [CCode (cheader_filename = "gio/gio.h")]
879 public class NativeVolumeMonitor : GLib.VolumeMonitor {
881 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
883 [CCode (cheader_filename = "gio/gio.h")]
884 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
885 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
886 public NetworkAddress (string hostname, uint16 port);
887 public unowned string get_hostname ();
888 public uint16 get_port ();
889 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
890 public string hostname { get; construct; }
891 public uint port { get; construct; }
893 [CCode (cheader_filename = "gio/gio.h")]
894 public class NetworkService : GLib.Object, GLib.SocketConnectable {
895 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
896 public NetworkService (string service, string protocol, string domain);
897 public unowned string get_domain ();
898 public unowned string get_protocol ();
899 public unowned string get_service ();
900 public string domain { get; construct; }
901 public string protocol { get; construct; }
902 public string service { get; construct; }
904 [CCode (cheader_filename = "gio/gio.h")]
905 public class OutputStream : GLib.Object {
906 public void clear_pending ();
907 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
908 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
910 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
911 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
912 public virtual async bool flush_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
913 public bool has_pending ();
914 public bool is_closed ();
915 public bool is_closing ();
916 public bool set_pending () throws GLib.Error;
917 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
918 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
919 public ssize_t write (void* buffer, size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
920 public bool write_all (void* buffer, size_t count, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
921 public virtual async ssize_t write_async (void* buffer, size_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
923 public virtual ssize_t write_fn (void* buffer, size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
926 [CCode (cheader_filename = "gio/gio.h")]
927 public class OutputVector {
931 [CCode (cheader_filename = "gio/gio.h")]
932 public class Permission : GLib.Object {
933 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
934 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
935 public bool get_allowed ();
936 public bool get_can_acquire ();
937 public bool get_can_release ();
938 public void impl_update (bool allowed, bool can_acquire, bool can_release);
939 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
940 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
941 public bool allowed { get; }
942 public bool can_acquire { get; }
943 public bool can_release { get; }
945 [CCode (cheader_filename = "gio/gio.h")]
946 public class Resolver : GLib.Object {
947 public static GLib.Quark error_quark ();
948 public static unowned GLib.Resolver get_default ();
949 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
950 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
951 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
952 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
953 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
954 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
955 public void set_default ();
956 public virtual signal void reload ();
958 [CCode (cheader_filename = "gio/gio.h")]
959 public class Settings : GLib.Object {
960 [CCode (has_construct_function = false)]
961 public Settings (string schema);
962 public void apply ();
963 public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags);
964 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);
965 public void bind_writable (string key, void* object, string property, bool inverted);
966 public void delay ();
967 public void @get (string key, string format);
968 public bool get_boolean (string key);
969 public unowned GLib.Settings get_child (string name);
970 public double get_double (string key);
971 public int get_enum (string key);
972 public bool get_has_unapplied ();
973 public int get_int (string key);
974 public unowned string get_string (string key);
975 public unowned string get_strv (string key);
976 public GLib.Variant get_value (string key);
977 public bool is_writable (string name);
978 public void revert ();
979 public bool @set (string key, string format);
980 public bool set_boolean (string key, bool value);
981 public bool set_double (string key, double value);
982 public bool set_enum (string key, int value);
983 public bool set_int (string key, int value);
984 public bool set_string (string key, string value);
985 public bool set_strv (string key, string value);
986 public bool set_value (string key, GLib.Variant value);
987 public static void sync ();
988 public static void unbind (void* object, string property);
989 [CCode (has_construct_function = false)]
990 public Settings.with_backend (string schema, GLib.SettingsBackend backend);
991 [CCode (has_construct_function = false)]
992 public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path);
993 [CCode (has_construct_function = false)]
994 public Settings.with_path (string schema, string path);
996 public GLib.SettingsBackend backend { owned get; construct; }
997 public bool has_unapplied { get; }
999 public string path { owned get; construct; }
1001 public string schema { owned get; construct; }
1002 public virtual signal bool change_event (void* keys, int n_keys);
1003 public virtual signal void changed (string key);
1004 public virtual signal bool writable_change_event (uint key);
1005 public virtual signal void writable_changed (string key);
1007 [CCode (cheader_filename = "gio/gio.h")]
1008 public class SettingsBackend : GLib.Object {
1010 [CCode (cheader_filename = "gio/gio.h")]
1011 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
1012 [CCode (has_construct_function = false)]
1013 public SimpleAsyncResult (GLib.Object? source_object, GLib.AsyncReadyCallback callback, void* source_tag);
1014 public void complete ();
1015 public void complete_in_idle ();
1016 [CCode (has_construct_function = false)]
1017 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1018 [CCode (has_construct_function = false)]
1019 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
1020 public bool get_op_res_gboolean ();
1021 public void* get_op_res_gpointer ();
1022 public ssize_t get_op_res_gssize ();
1023 public void* get_source_tag ();
1024 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
1025 public bool propagate_error () throws GLib.Error;
1026 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable? cancellable = null);
1027 public void set_error (GLib.Quark domain, int code, string format);
1028 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
1029 public void set_from_error (GLib.Error error);
1030 public void set_handle_cancellation (bool handle_cancellation);
1031 public void set_op_res_gboolean (bool op_res);
1032 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
1033 public void set_op_res_gssize (ssize_t op_res);
1036 [CCode (cheader_filename = "gio/gio.h")]
1037 public class SimpleAsyncResultClass {
1039 [CCode (cheader_filename = "gio/gio.h")]
1040 public class SimplePermission : GLib.Permission {
1041 [CCode (type = "GPermission*", has_construct_function = false)]
1042 public SimplePermission (bool allowed);
1044 [CCode (cheader_filename = "gio/gio.h")]
1045 public class Socket : GLib.Object, GLib.Initable {
1046 [CCode (has_construct_function = false)]
1047 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
1048 public unowned GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
1049 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
1050 public bool check_connect_result () throws GLib.Error;
1051 public bool close () throws GLib.Error;
1052 public GLib.IOCondition condition_check (GLib.IOCondition condition);
1053 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.Error;
1054 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1055 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
1056 [CCode (has_construct_function = false)]
1057 public Socket.from_fd (int fd) throws GLib.Error;
1058 public bool get_blocking ();
1059 public GLib.SocketFamily get_family ();
1060 public int get_fd ();
1061 public bool get_keepalive ();
1062 public int get_listen_backlog ();
1063 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1064 public GLib.SocketProtocol get_protocol ();
1065 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1066 public GLib.SocketType get_socket_type ();
1067 public uint get_timeout ();
1068 public bool is_closed ();
1069 public bool is_connected ();
1070 public bool listen () throws GLib.Error;
1071 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1072 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1073 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;
1074 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1075 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;
1076 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1077 public void set_blocking (bool blocking);
1078 public void set_keepalive (bool keepalive);
1079 public void set_listen_backlog (int backlog);
1080 public void set_timeout (uint timeout);
1081 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
1082 public bool speaks_ipv4 ();
1083 public bool blocking { get; set; }
1084 public GLib.SocketFamily family { get; construct; }
1085 public int fd { get; construct; }
1086 public bool keepalive { get; set; }
1087 public int listen_backlog { get; set; }
1088 public GLib.SocketAddress local_address { get; }
1089 public GLib.SocketProtocol protocol { get; construct; }
1090 public GLib.SocketAddress remote_address { get; }
1091 public uint timeout { get; set; }
1093 public GLib.SocketType type { get; construct; }
1095 [CCode (cheader_filename = "gio/gio.h")]
1096 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
1097 [CCode (has_construct_function = false)]
1098 public SocketAddress.from_native (void* native, size_t len);
1099 public virtual GLib.SocketFamily get_family ();
1100 public virtual ssize_t get_native_size ();
1101 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
1102 public GLib.SocketFamily family { get; }
1104 [CCode (cheader_filename = "gio/gio.h")]
1105 public class SocketAddressEnumerator : GLib.Object {
1106 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
1107 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1109 [CCode (cheader_filename = "gio/gio.h")]
1110 public class SocketClient : GLib.Object {
1111 [CCode (has_construct_function = false)]
1112 public SocketClient ();
1113 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1114 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1115 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1116 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1117 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1118 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1119 public GLib.SocketFamily get_family ();
1120 public unowned GLib.SocketAddress get_local_address ();
1121 public GLib.SocketProtocol get_protocol ();
1122 public GLib.SocketType get_socket_type ();
1123 public void set_family (GLib.SocketFamily family);
1124 public void set_local_address (GLib.SocketAddress address);
1125 public void set_protocol (GLib.SocketProtocol protocol);
1126 public void set_socket_type (GLib.SocketType type);
1127 public GLib.SocketFamily family { get; set construct; }
1128 public GLib.SocketAddress local_address { get; set construct; }
1129 public GLib.SocketProtocol protocol { get; set construct; }
1131 public GLib.SocketType type { get; set construct; }
1133 [CCode (cheader_filename = "gio/gio.h")]
1134 public class SocketConnection : GLib.IOStream {
1135 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
1136 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
1137 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
1138 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1139 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1140 public unowned GLib.Socket get_socket ();
1141 public GLib.Socket socket { get; construct; }
1143 [CCode (cheader_filename = "gio/gio.h")]
1144 public class SocketControlMessage : GLib.Object {
1145 public virtual unowned GLib.SocketControlMessage deserialize (int level, int type, size_t size, void* data);
1146 public virtual int get_level ();
1147 public int get_msg_type ();
1148 public virtual size_t get_size ();
1150 public virtual int get_type ();
1151 public virtual void serialize (void* data);
1153 [CCode (cheader_filename = "gio/gio.h")]
1154 public class SocketListener : GLib.Object {
1155 [CCode (has_construct_function = false)]
1156 public SocketListener ();
1157 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1158 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1159 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1160 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1161 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;
1162 public uint16 add_any_inet_port (GLib.Object source_object) throws GLib.Error;
1163 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
1164 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
1166 public virtual void changed ();
1167 public void close ();
1168 public void set_backlog (int listen_backlog);
1170 public int listen_backlog { get; set construct; }
1172 [CCode (cheader_filename = "gio/gio.h")]
1173 public class SocketService : GLib.SocketListener {
1174 [CCode (has_construct_function = false)]
1175 public SocketService ();
1176 public bool is_active ();
1177 public void start ();
1178 public void stop ();
1179 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
1182 [CCode (cname = "GSource", cheader_filename = "gio/gio.h")]
1183 public class SocketSource : GLib.Source {
1184 [CCode (cname = "g_source_set_callback")]
1185 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
1188 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
1189 public class SrvTarget {
1190 [CCode (has_construct_function = false)]
1191 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
1192 public GLib.SrvTarget copy ();
1193 public unowned string get_hostname ();
1194 public uint16 get_port ();
1195 public uint16 get_priority ();
1196 public uint16 get_weight ();
1197 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
1199 [CCode (cheader_filename = "gio/gio.h")]
1200 public class TcpConnection : GLib.SocketConnection {
1201 public bool get_graceful_disconnect ();
1202 public void set_graceful_disconnect (bool graceful_disconnect);
1203 public bool graceful_disconnect { get; set; }
1205 [CCode (cheader_filename = "gio/gio.h")]
1206 public class ThemedIcon : GLib.Object, GLib.Icon {
1207 [CCode (type = "GIcon*", has_construct_function = false)]
1208 public ThemedIcon (string iconname);
1209 public void append_name (string iconname);
1210 [CCode (type = "GIcon*", has_construct_function = false)]
1211 public ThemedIcon.from_names (string[] iconnames);
1212 [CCode (array_length = false)]
1213 public unowned string[] get_names ();
1214 public void prepend_name (string iconname);
1215 [CCode (type = "GIcon*", has_construct_function = false)]
1216 public ThemedIcon.with_default_fallbacks (string iconname);
1217 public string name { construct; }
1218 [CCode (array_length = false, array_null_terminated = true)]
1219 public string[] names { get; construct; }
1221 public bool use_default_fallbacks { get; construct; }
1224 [CCode (cheader_filename = "gio/gio.h")]
1225 public class ThemedIconClass {
1227 [CCode (cheader_filename = "gio/gio.h")]
1228 public class ThreadedSocketService : GLib.SocketService {
1229 [CCode (type = "GSocketService*", has_construct_function = false)]
1230 public ThreadedSocketService (int max_threads);
1232 public int max_threads { get; construct; }
1233 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
1236 [CCode (cheader_filename = "gio/gio.h")]
1237 public class UnixCredentialsMessage {
1240 [CCode (cheader_filename = "gio/gio.h")]
1241 public class UnixFDList {
1243 [CCode (cheader_filename = "gio/gio.h")]
1244 public class Vfs : GLib.Object {
1246 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
1247 public static unowned GLib.Vfs get_default ();
1248 public virtual GLib.File get_file_for_path (string path);
1249 public virtual GLib.File get_file_for_uri (string uri);
1250 public static unowned GLib.Vfs get_local ();
1251 public virtual unowned string[] get_supported_uri_schemes ();
1252 public virtual bool is_active ();
1254 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);
1256 public virtual void local_file_moved (string source, string dest);
1258 public virtual void local_file_removed (string filename);
1260 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1261 public virtual unowned GLib.File parse_name (string parse_name);
1263 [CCode (cheader_filename = "gio/gio.h")]
1264 public class VolumeMonitor : GLib.Object {
1265 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
1266 public static GLib.VolumeMonitor @get ();
1267 public virtual GLib.List<GLib.Drive> get_connected_drives ();
1268 public virtual GLib.Mount get_mount_for_uuid (string uuid);
1269 public virtual GLib.List<GLib.Mount> get_mounts ();
1270 public virtual GLib.Volume get_volume_for_uuid (string uuid);
1271 public virtual GLib.List<GLib.Volume> get_volumes ();
1273 public virtual bool is_supported ();
1274 public virtual signal void drive_changed (GLib.Drive drive);
1275 public virtual signal void drive_connected (GLib.Drive drive);
1276 public virtual signal void drive_disconnected (GLib.Drive drive);
1277 public virtual signal void drive_eject_button (GLib.Drive drive);
1278 public virtual signal void drive_stop_button (GLib.Drive drive);
1279 public virtual signal void mount_added (GLib.Mount mount);
1280 public virtual signal void mount_changed (GLib.Mount mount);
1281 public virtual signal void mount_pre_unmount (GLib.Mount mount);
1282 public virtual signal void mount_removed (GLib.Mount mount);
1283 public virtual signal void volume_added (GLib.Volume volume);
1284 public virtual signal void volume_changed (GLib.Volume volume);
1285 public virtual signal void volume_removed (GLib.Volume volume);
1287 [CCode (cheader_filename = "gio/gio.h")]
1288 public class ZlibCompressor : GLib.Object, GLib.Converter {
1289 [CCode (has_construct_function = false)]
1290 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1292 public GLib.ZlibCompressorFormat format { get; construct; }
1294 public int level { get; construct; }
1296 [CCode (cheader_filename = "gio/gio.h")]
1297 public class ZlibDecompressor : GLib.Object, GLib.Converter {
1298 [CCode (has_construct_function = false)]
1299 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1301 public GLib.ZlibCompressorFormat format { get; construct; }
1303 [CCode (cheader_filename = "gio/gio.h")]
1304 public interface AppInfo : GLib.Object {
1305 public abstract bool add_supports_type (string content_type) throws GLib.Error;
1306 public abstract bool can_delete ();
1307 public abstract bool can_remove_supports_type ();
1308 public static unowned GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
1309 public bool @delete ();
1311 public abstract bool do_delete ();
1312 public abstract unowned GLib.AppInfo dup ();
1313 public abstract bool equal (GLib.AppInfo appinfo2);
1314 public static GLib.List<GLib.AppInfo> get_all ();
1315 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
1316 public abstract unowned string get_commandline ();
1317 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
1318 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
1319 public abstract unowned string get_description ();
1320 public abstract unowned string get_display_name ();
1321 public abstract unowned string get_executable ();
1322 public abstract unowned GLib.Icon get_icon ();
1323 public abstract unowned string get_id ();
1324 public abstract unowned string get_name ();
1325 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1326 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1327 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
1328 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
1329 public static void reset_type_associations (string content_type);
1330 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
1331 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
1332 public abstract bool should_show ();
1333 public abstract bool supports_files ();
1334 public abstract bool supports_uris ();
1336 [CCode (cheader_filename = "gio/gio.h")]
1337 public interface AsyncInitable : GLib.Object {
1338 public abstract async bool init_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1339 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1340 public static async void new_valist_async (GLib.Type object_type, string first_property_name, void* var_args, int io_priority, GLib.Cancellable? cancellable = null);
1341 public static async void newv_async (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, int io_priority, GLib.Cancellable? cancellable = null);
1343 [CCode (cheader_filename = "gio/gio.h")]
1344 public interface AsyncResult : GLib.Object {
1345 public abstract unowned GLib.Object get_source_object ();
1346 public abstract void* get_user_data ();
1348 [CCode (cheader_filename = "gio/gio.h")]
1349 public interface Converter : GLib.Object {
1350 public abstract GLib.ConverterResult convert (void* inbuf, size_t inbuf_size, void* outbuf, size_t outbuf_size, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
1351 public abstract void reset ();
1353 [CCode (cheader_filename = "gio/gio.h")]
1354 public interface Drive : GLib.Object {
1355 public abstract bool can_eject ();
1356 public abstract bool can_poll_for_media ();
1357 public abstract bool can_start ();
1358 public abstract bool can_start_degraded ();
1359 public abstract bool can_stop ();
1360 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1361 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1362 public abstract unowned string enumerate_identifiers ();
1363 public abstract unowned GLib.Icon get_icon ();
1364 public abstract unowned string get_identifier (string kind);
1365 public abstract unowned string get_name ();
1366 public abstract GLib.DriveStartStopType get_start_stop_type ();
1367 public abstract GLib.List<GLib.Volume> get_volumes ();
1368 public abstract bool has_media ();
1369 public abstract bool has_volumes ();
1370 public abstract bool is_media_check_automatic ();
1371 public abstract bool is_media_removable ();
1372 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
1373 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1374 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1375 public signal void changed ();
1376 public signal void disconnected ();
1377 public signal void eject_button ();
1378 public signal void stop_button ();
1380 [CCode (cheader_filename = "gio/gio.h")]
1381 public interface File : GLib.Object {
1382 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1383 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1384 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1385 public abstract async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1386 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1387 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1388 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1389 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1390 public abstract async unowned GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1391 public bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
1393 public abstract bool delete_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1394 public abstract unowned GLib.File dup ();
1395 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1396 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1397 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1398 public abstract async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1399 public abstract bool equal (GLib.File file2);
1400 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
1401 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1402 public abstract string? get_basename ();
1403 public GLib.File get_child (string name);
1404 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1405 public abstract GLib.File? get_parent ();
1406 public abstract string get_parse_name ();
1407 public abstract string? get_path ();
1408 public abstract string? get_relative_path (GLib.File descendant);
1409 public abstract string get_uri ();
1410 public abstract string get_uri_scheme ();
1411 public bool has_parent (GLib.File? parent);
1412 public bool has_prefix (GLib.File prefix);
1413 public abstract bool has_uri_scheme (string uri_scheme);
1414 public abstract uint hash ();
1415 public abstract bool is_native ();
1416 public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out unowned size_t? length = null, out string? etag_out = null) throws GLib.Error;
1417 public async bool load_contents_async (GLib.Cancellable? cancellable = null, out string contents, out unowned size_t? length = null, out string? etag_out = null) throws GLib.Error;
1418 public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out string contents, out unowned size_t? length = null, out string? etag_out = null) throws GLib.Error;
1419 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
1420 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
1421 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
1422 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1423 [CCode (vfunc_name = "monitor_dir")]
1424 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1425 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1426 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1427 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1428 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1429 public static GLib.File new_for_commandline_arg (string arg);
1430 public static GLib.File new_for_path (string path);
1431 public static GLib.File new_for_uri (string uri);
1432 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
1433 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1434 public static unowned GLib.File parse_name (string parse_name);
1435 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
1437 public abstract bool prefix_matches (GLib.File file);
1438 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
1439 public bool query_exists (GLib.Cancellable? cancellable = null);
1440 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
1441 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1442 public abstract async unowned GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1443 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1444 public abstract async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1445 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
1446 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
1447 public GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
1448 public abstract async GLib.FileInputStream read_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1450 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1451 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1452 public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1453 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;
1454 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;
1455 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1456 public abstract async unowned GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1457 public abstract GLib.File resolve_relative_path (string relative_path);
1458 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1459 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1460 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1461 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1462 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1463 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1464 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1465 public abstract async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, out unowned GLib.FileInfo info_out) throws GLib.Error;
1466 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1467 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
1468 public abstract async unowned GLib.File set_display_name_async (string display_name, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1469 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1470 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1471 public bool supports_thread_contexts ();
1472 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
1473 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1474 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1476 [CCode (cheader_filename = "gio/gio.h")]
1477 public interface Icon : GLib.Object {
1478 public abstract bool equal (GLib.Icon icon2);
1480 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1481 public abstract uint hash (void* icon);
1482 public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
1483 public unowned string to_string ();
1485 public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
1487 [CCode (cheader_filename = "gio/gio.h")]
1488 public interface Initable : GLib.Object {
1489 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
1490 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1491 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;
1492 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
1494 [CCode (cheader_filename = "gio/gio.h")]
1495 public interface LoadableIcon : GLib.Icon, GLib.Object {
1496 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1497 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1499 [CCode (cheader_filename = "gio/gio.h")]
1500 public interface Mount : GLib.Object {
1501 public abstract bool can_eject ();
1502 public abstract bool can_unmount ();
1503 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1504 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1505 public abstract unowned GLib.File get_default_location ();
1506 public abstract unowned GLib.Drive get_drive ();
1507 public abstract unowned GLib.Icon get_icon ();
1508 public abstract unowned string get_name ();
1509 public abstract unowned GLib.File get_root ();
1510 public abstract unowned string get_uuid ();
1511 public abstract unowned GLib.Volume get_volume ();
1512 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1513 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1514 public bool is_shadowed ();
1515 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1516 public void shadow ();
1517 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1518 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1519 public void unshadow ();
1520 public signal void changed ();
1521 public signal void pre_unmount ();
1522 public signal void unmounted ();
1524 [CCode (cheader_filename = "gio/gio.h")]
1525 public interface Seekable : GLib.Object {
1526 public abstract bool can_seek ();
1527 public abstract bool can_truncate ();
1528 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1529 public abstract int64 tell ();
1530 [CCode (vfunc_name = "truncate_fn")]
1531 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
1533 [CCode (cheader_filename = "gio/gio.h")]
1534 public interface SocketConnectable : GLib.Object {
1535 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1537 [CCode (cheader_filename = "gio/gio.h")]
1538 public interface Volume : GLib.Object {
1539 public abstract bool can_eject ();
1540 public abstract bool can_mount ();
1541 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1542 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1543 public abstract unowned string enumerate_identifiers ();
1544 public abstract unowned GLib.File get_activation_root ();
1545 public abstract unowned GLib.Drive get_drive ();
1546 public abstract unowned GLib.Icon get_icon ();
1547 public abstract unowned string get_identifier (string kind);
1548 public abstract unowned GLib.Mount get_mount ();
1549 public abstract unowned string get_name ();
1550 public abstract unowned string get_uuid ();
1551 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1553 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1554 public abstract bool should_automount ();
1555 public signal void changed ();
1556 public signal void removed ();
1558 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1560 public enum AppInfoCreateFlags {
1565 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1567 public enum AskPasswordFlags {
1574 [CCode (cprefix = "G_BUS_NAME_OWNER_FLAGS_", cheader_filename = "gio/gio.h")]
1576 public enum BusNameOwnerFlags {
1581 [CCode (cprefix = "G_BUS_NAME_WATCHER_FLAGS_", cheader_filename = "gio/gio.h")]
1583 public enum BusNameWatcherFlags {
1587 [CCode (cprefix = "G_BUS_TYPE_", cheader_filename = "gio/gio.h")]
1588 public enum BusType {
1594 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1596 public enum ConverterFlags {
1601 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1602 public enum ConverterResult {
1608 [CCode (cprefix = "G_DBUS_CALL_FLAGS_", cheader_filename = "gio/gio.h")]
1610 public enum DBusCallFlags {
1614 [CCode (cprefix = "G_DBUS_CAPABILITY_FLAGS_", cheader_filename = "gio/gio.h")]
1616 public enum DBusCapabilityFlags {
1620 [CCode (cprefix = "G_DBUS_CONNECTION_FLAGS_", cheader_filename = "gio/gio.h")]
1622 public enum DBusConnectionFlags {
1624 AUTHENTICATION_CLIENT,
1625 AUTHENTICATION_SERVER,
1626 AUTHENTICATION_ALLOW_ANONYMOUS,
1627 MESSAGE_BUS_CONNECTION
1629 [CCode (cprefix = "G_DBUS_ERROR_", cheader_filename = "gio/gio.h")]
1630 public enum DBusError {
1652 MATCH_RULE_NOT_FOUND,
1657 SPAWN_CHILD_SIGNALED,
1660 SPAWN_CONFIG_INVALID,
1661 SPAWN_SERVICE_INVALID,
1662 SPAWN_SERVICE_NOT_FOUND,
1663 SPAWN_PERMISSIONS_INVALID,
1666 UNIX_PROCESS_ID_UNKNOWN,
1668 INVALID_FILE_CONTENT,
1669 SELINUX_SECURITY_CONTEXT_UNKNOWN,
1670 ADT_AUDIT_DATA_UNKNOWN,
1673 [CCode (cprefix = "G_DBUS_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1675 public enum DBusMessageFlags {
1680 [CCode (cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", cheader_filename = "gio/gio.h")]
1681 public enum DBusMessageHeaderField {
1693 [CCode (cprefix = "G_DBUS_MESSAGE_TYPE_", cheader_filename = "gio/gio.h")]
1694 public enum DBusMessageType {
1701 [CCode (cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", cheader_filename = "gio/gio.h")]
1703 public enum DBusPropertyInfoFlags {
1708 [CCode (cprefix = "G_DBUS_PROXY_FLAGS_", cheader_filename = "gio/gio.h")]
1710 public enum DBusProxyFlags {
1712 DO_NOT_LOAD_PROPERTIES,
1713 DO_NOT_CONNECT_SIGNALS,
1716 [CCode (cprefix = "G_DBUS_SERVER_FLAGS_", cheader_filename = "gio/gio.h")]
1718 public enum DBusServerFlags {
1721 AUTHENTICATION_ALLOW_ANONYMOUS
1723 [CCode (cprefix = "G_DBUS_SUBTREE_FLAGS_", cheader_filename = "gio/gio.h")]
1725 public enum DBusSubtreeFlags {
1727 DISPATCH_TO_UNENUMERATED_NODES
1729 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1730 public enum DataStreamByteOrder {
1735 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
1736 public enum DataStreamNewlineType {
1742 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
1743 public enum DriveStartFlags {
1746 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
1747 public enum DriveStartStopType {
1754 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
1755 public enum EmblemOrigin {
1761 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
1763 public enum FileAttributeInfoFlags {
1768 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
1769 public enum FileAttributeStatus {
1774 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
1775 public enum FileAttributeType {
1787 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
1789 public enum FileCopyFlags {
1795 NO_FALLBACK_FOR_MOVE,
1796 TARGET_DEFAULT_PERMS
1798 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
1800 public enum FileCreateFlags {
1805 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
1806 public enum FileMonitorEvent {
1816 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
1818 public enum FileMonitorFlags {
1823 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
1825 public enum FileQueryInfoFlags {
1829 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
1830 public enum FileType {
1839 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
1840 public enum FilesystemPreviewType {
1845 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
1846 public enum MountMountFlags {
1849 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
1850 public enum MountOperationResult {
1855 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
1857 public enum MountUnmountFlags {
1861 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
1863 public enum OutputStreamSpliceFlags {
1868 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
1869 public enum PasswordSave {
1874 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
1875 public enum ResolverError {
1880 [CCode (cprefix = "G_SETTINGS_BIND_", cheader_filename = "gio/gio.h")]
1882 public enum SettingsBindFlags {
1889 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
1890 public enum SocketFamily {
1896 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
1897 public enum SocketMsgFlags {
1903 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
1904 public enum SocketProtocol {
1911 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
1912 public enum SocketType {
1918 [CCode (cprefix = "G_UNIX_SOCKET_ADDRESS_", cheader_filename = "gio/gio.h")]
1919 public enum UnixSocketAddressType {
1926 [CCode (cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", cheader_filename = "gio/gio.h")]
1927 public enum ZlibCompressorFormat {
1932 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
1933 public errordomain IOError {
1965 TOO_MANY_OPEN_FILES,
1972 [CCode (cheader_filename = "gio/gio.h")]
1973 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
1974 [CCode (cheader_filename = "gio/gio.h")]
1975 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
1976 [CCode (cheader_filename = "gio/gio.h")]
1977 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
1978 [CCode (cheader_filename = "gio/gio.h")]
1979 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
1980 [CCode (cheader_filename = "gio/gio.h")]
1981 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
1982 [CCode (cheader_filename = "gio/gio.h")]
1983 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
1984 [CCode (cheader_filename = "gio/gio.h")]
1985 public delegate unowned GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Error error);
1986 [CCode (cheader_filename = "gio/gio.h")]
1987 public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
1988 [CCode (cheader_filename = "gio/gio.h")]
1989 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value, GLib.Error error);
1990 [CCode (cheader_filename = "gio/gio.h")]
1991 public delegate bool DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message);
1992 [CCode (cheader_filename = "gio/gio.h")]
1993 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
1994 [CCode (cheader_filename = "gio/gio.h")]
1995 public delegate unowned GLib.DBusInterfaceVTable DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
1996 [CCode (cheader_filename = "gio/gio.h")]
1997 public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
1998 [CCode (cheader_filename = "gio/gio.h")]
1999 public delegate unowned GLib.GenericArray DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2000 [CCode (cheader_filename = "gio/gio.h")]
2001 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2002 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2003 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
2004 [CCode (cheader_filename = "gio/gio.h")]
2005 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
2006 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2007 public delegate void* ReallocFunc (void* data, size_t size);
2008 [CCode (cheader_filename = "gio/gio.h")]
2009 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
2010 [CCode (cheader_filename = "gio/gio.h")]
2011 public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
2012 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2013 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
2014 [CCode (cheader_filename = "gio/gio.h")]
2015 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
2016 [CCode (cheader_filename = "gio/gio.h")]
2017 public static GLib.EqualFunc file_equal;
2018 [CCode (cheader_filename = "gio/gio.h")]
2019 public static GLib.HashFunc file_hash;
2020 [CCode (cheader_filename = "gio/gio.h")]
2021 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
2022 [CCode (cheader_filename = "gio/gio.h")]
2023 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
2024 [CCode (cheader_filename = "gio/gio.h")]
2025 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
2026 [CCode (cheader_filename = "gio/gio.h")]
2027 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
2028 [CCode (cheader_filename = "gio/gio.h")]
2029 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
2030 [CCode (cheader_filename = "gio/gio.h")]
2031 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
2032 [CCode (cheader_filename = "gio/gio.h")]
2033 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
2034 [CCode (cheader_filename = "gio/gio.h")]
2035 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
2036 [CCode (cheader_filename = "gio/gio.h")]
2037 public const string FILE_ATTRIBUTE_ETAG_VALUE;
2038 [CCode (cheader_filename = "gio/gio.h")]
2039 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
2040 [CCode (cheader_filename = "gio/gio.h")]
2041 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
2042 [CCode (cheader_filename = "gio/gio.h")]
2043 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
2044 [CCode (cheader_filename = "gio/gio.h")]
2045 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
2046 [CCode (cheader_filename = "gio/gio.h")]
2047 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
2048 [CCode (cheader_filename = "gio/gio.h")]
2049 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
2050 [CCode (cheader_filename = "gio/gio.h")]
2051 public const string FILE_ATTRIBUTE_ID_FILE;
2052 [CCode (cheader_filename = "gio/gio.h")]
2053 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
2054 [CCode (cheader_filename = "gio/gio.h")]
2055 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
2056 [CCode (cheader_filename = "gio/gio.h")]
2057 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
2058 [CCode (cheader_filename = "gio/gio.h")]
2059 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
2060 [CCode (cheader_filename = "gio/gio.h")]
2061 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
2062 [CCode (cheader_filename = "gio/gio.h")]
2063 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
2064 [CCode (cheader_filename = "gio/gio.h")]
2065 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
2066 [CCode (cheader_filename = "gio/gio.h")]
2067 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
2068 [CCode (cheader_filename = "gio/gio.h")]
2069 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
2070 [CCode (cheader_filename = "gio/gio.h")]
2071 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
2072 [CCode (cheader_filename = "gio/gio.h")]
2073 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
2074 [CCode (cheader_filename = "gio/gio.h")]
2075 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
2076 [CCode (cheader_filename = "gio/gio.h")]
2077 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
2078 [CCode (cheader_filename = "gio/gio.h")]
2079 public const string FILE_ATTRIBUTE_OWNER_GROUP;
2080 [CCode (cheader_filename = "gio/gio.h")]
2081 public const string FILE_ATTRIBUTE_OWNER_USER;
2082 [CCode (cheader_filename = "gio/gio.h")]
2083 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
2084 [CCode (cheader_filename = "gio/gio.h")]
2085 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
2086 [CCode (cheader_filename = "gio/gio.h")]
2087 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
2088 [CCode (cheader_filename = "gio/gio.h")]
2089 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
2090 [CCode (cheader_filename = "gio/gio.h")]
2091 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
2092 [CCode (cheader_filename = "gio/gio.h")]
2093 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
2094 [CCode (cheader_filename = "gio/gio.h")]
2095 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
2096 [CCode (cheader_filename = "gio/gio.h")]
2097 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
2098 [CCode (cheader_filename = "gio/gio.h")]
2099 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
2100 [CCode (cheader_filename = "gio/gio.h")]
2101 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
2102 [CCode (cheader_filename = "gio/gio.h")]
2103 public const string FILE_ATTRIBUTE_STANDARD_ICON;
2104 [CCode (cheader_filename = "gio/gio.h")]
2105 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
2106 [CCode (cheader_filename = "gio/gio.h")]
2107 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
2108 [CCode (cheader_filename = "gio/gio.h")]
2109 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
2110 [CCode (cheader_filename = "gio/gio.h")]
2111 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
2112 [CCode (cheader_filename = "gio/gio.h")]
2113 public const string FILE_ATTRIBUTE_STANDARD_NAME;
2114 [CCode (cheader_filename = "gio/gio.h")]
2115 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
2116 [CCode (cheader_filename = "gio/gio.h")]
2117 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
2118 [CCode (cheader_filename = "gio/gio.h")]
2119 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
2120 [CCode (cheader_filename = "gio/gio.h")]
2121 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
2122 [CCode (cheader_filename = "gio/gio.h")]
2123 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
2124 [CCode (cheader_filename = "gio/gio.h")]
2125 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
2126 [CCode (cheader_filename = "gio/gio.h")]
2127 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
2128 [CCode (cheader_filename = "gio/gio.h")]
2129 public const string FILE_ATTRIBUTE_TIME_ACCESS;
2130 [CCode (cheader_filename = "gio/gio.h")]
2131 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
2132 [CCode (cheader_filename = "gio/gio.h")]
2133 public const string FILE_ATTRIBUTE_TIME_CHANGED;
2134 [CCode (cheader_filename = "gio/gio.h")]
2135 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
2136 [CCode (cheader_filename = "gio/gio.h")]
2137 public const string FILE_ATTRIBUTE_TIME_CREATED;
2138 [CCode (cheader_filename = "gio/gio.h")]
2139 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
2140 [CCode (cheader_filename = "gio/gio.h")]
2141 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
2142 [CCode (cheader_filename = "gio/gio.h")]
2143 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
2144 [CCode (cheader_filename = "gio/gio.h")]
2145 public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
2146 [CCode (cheader_filename = "gio/gio.h")]
2147 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
2148 [CCode (cheader_filename = "gio/gio.h")]
2149 public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
2150 [CCode (cheader_filename = "gio/gio.h")]
2151 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
2152 [CCode (cheader_filename = "gio/gio.h")]
2153 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
2154 [CCode (cheader_filename = "gio/gio.h")]
2155 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
2156 [CCode (cheader_filename = "gio/gio.h")]
2157 public const string FILE_ATTRIBUTE_UNIX_GID;
2158 [CCode (cheader_filename = "gio/gio.h")]
2159 public const string FILE_ATTRIBUTE_UNIX_INODE;
2160 [CCode (cheader_filename = "gio/gio.h")]
2161 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
2162 [CCode (cheader_filename = "gio/gio.h")]
2163 public const string FILE_ATTRIBUTE_UNIX_MODE;
2164 [CCode (cheader_filename = "gio/gio.h")]
2165 public const string FILE_ATTRIBUTE_UNIX_NLINK;
2166 [CCode (cheader_filename = "gio/gio.h")]
2167 public const string FILE_ATTRIBUTE_UNIX_RDEV;
2168 [CCode (cheader_filename = "gio/gio.h")]
2169 public const string FILE_ATTRIBUTE_UNIX_UID;
2170 [CCode (cheader_filename = "gio/gio.h")]
2171 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2172 [CCode (cheader_filename = "gio/gio.h")]
2173 public const string VFS_EXTENSION_POINT_NAME;
2174 [CCode (cheader_filename = "gio/gio.h")]
2175 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
2176 [CCode (cheader_filename = "gio/gio.h")]
2177 public const string VOLUME_IDENTIFIER_KIND_LABEL;
2178 [CCode (cheader_filename = "gio/gio.h")]
2179 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
2180 [CCode (cheader_filename = "gio/gio.h")]
2181 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
2182 [CCode (cheader_filename = "gio/gio.h")]
2183 public const string VOLUME_IDENTIFIER_KIND_UUID;
2184 [CCode (cheader_filename = "gio/gio.h")]
2185 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
2186 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
2187 public static bool g_content_type_can_be_executable (string type);
2188 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
2189 public static bool g_content_type_equals (string type1, string type2);
2190 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
2191 public static unowned string g_content_type_from_mime_type (string mime_type);
2192 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
2193 public static unowned string g_content_type_get_description (string type);
2194 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
2195 public static unowned GLib.Icon g_content_type_get_icon (string type);
2196 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
2197 public static unowned string g_content_type_get_mime_type (string type);
2198 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
2199 public static unowned string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
2200 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
2201 public static unowned string g_content_type_guess_for_tree (GLib.File root);
2202 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
2203 public static bool g_content_type_is_a (string type, string supertype);
2204 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
2205 public static bool g_content_type_is_unknown (string type);
2206 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
2207 public static GLib.List<string> g_content_types_get_registered ();
2208 [CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
2209 public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2210 [CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
2211 public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
2212 [CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
2213 public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
2214 [CCode (cname = "g_dbus_address_get_stream_sync", cheader_filename = "gio/gio.h")]
2215 public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
2216 [CCode (cname = "g_dbus_error_encode_gerror", cheader_filename = "gio/gio.h")]
2217 public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
2218 [CCode (cname = "g_dbus_error_get_remote_error", cheader_filename = "gio/gio.h")]
2219 public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
2220 [CCode (cname = "g_dbus_error_is_remote_error", cheader_filename = "gio/gio.h")]
2221 public static bool g_dbus_error_is_remote_error (GLib.Error error);
2222 [CCode (cname = "g_dbus_error_new_for_dbus_error", cheader_filename = "gio/gio.h")]
2223 public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
2224 [CCode (cname = "g_dbus_error_quark", cheader_filename = "gio/gio.h")]
2225 public static GLib.Quark g_dbus_error_quark ();
2226 [CCode (cname = "g_dbus_error_register_error", cheader_filename = "gio/gio.h")]
2227 public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2228 [CCode (cname = "g_dbus_error_register_error_domain", cheader_filename = "gio/gio.h")]
2229 public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
2230 [CCode (cname = "g_dbus_error_set_dbus_error", cheader_filename = "gio/gio.h")]
2231 public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
2232 [CCode (cname = "g_dbus_error_set_dbus_error_valist", cheader_filename = "gio/gio.h")]
2233 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;
2234 [CCode (cname = "g_dbus_error_strip_remote_error", cheader_filename = "gio/gio.h")]
2235 public static bool g_dbus_error_strip_remote_error (GLib.Error error);
2236 [CCode (cname = "g_dbus_error_unregister_error", cheader_filename = "gio/gio.h")]
2237 public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2238 [CCode (cname = "g_dbus_generate_guid", cheader_filename = "gio/gio.h")]
2239 public static unowned string g_dbus_generate_guid ();
2240 [CCode (cname = "g_dbus_is_address", cheader_filename = "gio/gio.h")]
2241 public static bool g_dbus_is_address (string str);
2242 [CCode (cname = "g_dbus_is_guid", cheader_filename = "gio/gio.h")]
2243 public static bool g_dbus_is_guid (string str);
2244 [CCode (cname = "g_dbus_is_interface_name", cheader_filename = "gio/gio.h")]
2245 public static bool g_dbus_is_interface_name (string str);
2246 [CCode (cname = "g_dbus_is_member_name", cheader_filename = "gio/gio.h")]
2247 public static bool g_dbus_is_member_name (string str);
2248 [CCode (cname = "g_dbus_is_name", cheader_filename = "gio/gio.h")]
2249 public static bool g_dbus_is_name (string str);
2250 [CCode (cname = "g_dbus_is_supported_address", cheader_filename = "gio/gio.h")]
2251 public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
2252 [CCode (cname = "g_dbus_is_unique_name", cheader_filename = "gio/gio.h")]
2253 public static bool g_dbus_is_unique_name (string str);
2254 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
2255 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
2256 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
2257 public static GLib.Quark g_io_error_quark ();
2258 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
2259 public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
2260 [CCode (cname = "g_io_modules_scan_all_in_directory", cheader_filename = "gio/gio.h")]
2261 public static void g_io_modules_scan_all_in_directory (string dirname);
2262 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
2263 public static void g_io_scheduler_cancel_all_jobs ();
2264 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
2265 public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable = null);
2266 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
2267 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
2268 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
2269 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);