1 /* gio-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "G", lower_case_cprefix = "g_", gir_namespace = "Gio", gir_version = "2.0")]
5 [CCode (cprefix = "GBus", lower_case_cprefix = "g_bus_")]
7 [CCode (cheader_filename = "gio/gio.h")]
8 public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
9 [CCode (cheader_filename = "gio/gio.h")]
10 public static async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
11 [CCode (cheader_filename = "gio/gio.h")]
12 public static T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
13 [CCode (cheader_filename = "gio/gio.h")]
14 public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
15 [CCode (cname = "g_bus_own_name_with_closures", cheader_filename = "gio/gio.h")]
16 public static uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback bus_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback name_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
17 [CCode (cname = "g_bus_own_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
18 public static uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback name_acquired_handler, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback name_lost_handler);
19 [CCode (cheader_filename = "gio/gio.h")]
20 public static void unown_name (uint owner_id);
21 [CCode (cheader_filename = "gio/gio.h")]
22 public static void unwatch_name (uint watcher_id);
23 [CCode (cname = "g_bus_watch_name_with_closures", cheader_filename = "gio/gio.h")]
24 public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
25 [CCode (cname = "g_bus_watch_name_on_connection_with_closures", cheader_filename = "gio/gio.h")]
26 public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback name_appeared_handler, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback name_vanished_handler);
28 [CCode (cprefix = "GContentType", lower_case_cprefix = "g_content_type_")]
29 namespace ContentType {
30 [CCode (cheader_filename = "gio/gio.h")]
31 public static bool can_be_executable (string type);
32 [CCode (cheader_filename = "gio/gio.h")]
33 public static bool equals (string type1, string type2);
34 [CCode (cheader_filename = "gio/gio.h")]
35 public static string from_mime_type (string mime_type);
36 [CCode (cheader_filename = "gio/gio.h")]
37 public static string get_description (string type);
38 [CCode (cheader_filename = "gio/gio.h")]
39 public static GLib.Icon get_icon (string type);
40 [CCode (cheader_filename = "gio/gio.h")]
41 public static string get_mime_type (string type);
42 [CCode (cheader_filename = "gio/gio.h")]
43 public static string guess (string filename, uchar[] data, out bool result_uncertain);
44 [CCode (cheader_filename = "gio/gio.h")]
45 public static string guess_for_tree (GLib.File root);
46 [CCode (cheader_filename = "gio/gio.h")]
47 public static bool is_a (string type, string supertype);
48 [CCode (cheader_filename = "gio/gio.h")]
49 public static bool is_unknown (string type);
51 [CCode (cheader_filename = "gio/gio.h")]
52 public class AppLaunchContext : GLib.Object {
53 [CCode (has_construct_function = false)]
54 public AppLaunchContext ();
55 public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
56 public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
57 public virtual void launch_failed (string startup_notify_id);
59 [CCode (cheader_filename = "gio/gio.h")]
60 public class Application : GLib.Object, GLib.ActionGroup {
61 [CCode (has_construct_function = false)]
62 public Application (string application_id, GLib.ApplicationFlags flags);
64 public virtual void add_platform_data (GLib.VariantBuilder builder);
66 public virtual void after_emit (GLib.Variant platform_data);
68 public virtual void before_emit (GLib.Variant platform_data);
69 public unowned string get_application_id ();
70 public GLib.ApplicationFlags get_flags ();
71 public uint get_inactivity_timeout ();
72 public bool get_is_registered ();
73 public bool get_is_remote ();
75 public static bool id_is_valid (string application_id);
77 public virtual bool local_command_line (string arguments, int exit_status);
78 [CCode (cname = "g_application_quit_with_data")]
79 public bool quit (GLib.Variant? platform_data = null);
81 public virtual void quit_mainloop ();
82 public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
83 public void release ();
84 public int run ([CCode (array_length_pos = 1.9)] string[]? argv = null);
86 public virtual void run_mainloop ();
87 public void set_action_group (GLib.ActionGroup action_group);
88 public void set_application_id (string application_id);
89 public void set_flags (GLib.ApplicationFlags flags);
90 public void set_inactivity_timeout (uint inactivity_timeout);
91 public GLib.ActionGroup action_group { set; }
92 public string application_id { get; set construct; }
93 public GLib.ApplicationFlags flags { get; set; }
94 public uint inactivity_timeout { get; set; }
95 public bool is_registered { get; }
96 public bool is_remote { get; }
98 public virtual signal void activate ();
99 public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
101 public virtual signal void open (GLib.File[] files, string hint);
102 public virtual signal void startup ();
104 [CCode (cheader_filename = "gio/gio.h")]
105 public class ApplicationCommandLine : GLib.Object {
106 [CCode (has_construct_function = false)]
107 protected ApplicationCommandLine ();
108 public string[] get_arguments ();
109 public unowned string get_cwd ();
110 public unowned string get_environ ();
111 public int get_exit_status ();
112 public bool get_is_remote ();
113 public GLib.Variant? get_platform_data ();
114 public unowned string getenv (string name);
115 public void print (string format);
117 public virtual void print_literal (string message);
118 public void printerr (string format);
120 public virtual void printerr_literal (string message);
121 public void set_exit_status (int exit_status);
122 public GLib.Variant arguments { construct; }
123 public bool is_remote { get; }
124 public GLib.Variant platform_data { construct; }
126 [CCode (cheader_filename = "gio/gio.h")]
127 public class BufferedInputStream : GLib.FilterInputStream {
128 [CCode (type = "GInputStream*", has_construct_function = false)]
129 public BufferedInputStream (GLib.InputStream base_stream);
130 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
131 public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
132 public size_t get_available ();
133 public size_t get_buffer_size ();
134 public size_t peek ([CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] buffer, size_t offset = 0);
135 [CCode (array_length_type = "gsize")]
136 public unowned uint8[] peek_buffer ();
137 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
138 public void set_buffer_size (size_t size);
139 [CCode (type = "GInputStream*", has_construct_function = false)]
140 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
141 public uint buffer_size { get; set construct; }
143 [CCode (cheader_filename = "gio/gio.h")]
144 public class BufferedOutputStream : GLib.FilterOutputStream {
145 [CCode (type = "GOutputStream*", has_construct_function = false)]
146 public BufferedOutputStream (GLib.OutputStream base_stream);
147 public bool get_auto_grow ();
148 public size_t get_buffer_size ();
149 public void set_auto_grow (bool auto_grow);
150 public void set_buffer_size (size_t size);
151 [CCode (type = "GOutputStream*", has_construct_function = false)]
152 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
153 public bool auto_grow { get; set; }
154 public uint buffer_size { get; set construct; }
156 [CCode (cheader_filename = "gio/gio.h")]
157 public class Cancellable : GLib.Object {
158 [CCode (has_construct_function = false)]
159 public Cancellable ();
160 public void cancel ();
161 public ulong connect (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
162 public void disconnect (ulong handler_id);
163 public static unowned GLib.Cancellable get_current ();
164 public int get_fd ();
165 public bool is_cancelled ();
166 public bool make_pollfd (GLib.PollFD pollfd);
167 public void pop_current ();
168 public void push_current ();
169 public void release_fd ();
170 public void reset ();
171 public bool set_error_if_cancelled () throws GLib.Error;
172 public virtual signal void cancelled ();
174 [CCode (cheader_filename = "gio/gio.h")]
175 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
176 [CCode (has_construct_function = false)]
177 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
178 public uint get_num_fallbacks ();
179 public bool get_use_fallback ();
180 public void set_use_fallback (bool use_fallback);
182 public string from_charset { owned get; construct; }
184 public string to_charset { owned get; construct; }
185 public bool use_fallback { get; set construct; }
187 [CCode (cheader_filename = "gio/gio.h")]
188 public class ConverterInputStream : GLib.FilterInputStream {
189 [CCode (type = "GInputStream*", has_construct_function = false)]
190 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
191 public unowned GLib.Converter get_converter ();
192 public GLib.Converter converter { get; construct; }
194 [CCode (cheader_filename = "gio/gio.h")]
195 public class ConverterOutputStream : GLib.FilterOutputStream {
196 [CCode (type = "GOutputStream*", has_construct_function = false)]
197 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
198 public unowned GLib.Converter get_converter ();
199 public GLib.Converter converter { get; construct; }
201 [CCode (cheader_filename = "gio/gio.h")]
202 public class Credentials : GLib.Object {
203 [CCode (has_construct_function = false)]
204 public Credentials ();
205 public void* get_native (GLib.CredentialsType native_type);
206 public uint get_unix_user () throws GLib.Error;
207 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
208 public void set_native (GLib.CredentialsType native_type, void* native);
209 public bool set_unix_user (uint uid) throws GLib.Error;
210 public unowned string to_string ();
213 [CCode (cheader_filename = "gio/gio.h")]
214 public class CredentialsClass {
217 [CCode (ref_function = "g_dbus_annotation_info_ref", unref_function = "g_dbus_annotation_info_unref", type_id = "G_TYPE_DBUS_ANNOTATION_INFO", cheader_filename = "gio/gio.h")]
218 public class DBusAnnotationInfo {
219 [CCode (array_length = false)]
220 public weak GLib.DBusAnnotationInfo[] annotations;
221 public weak string key;
222 public int ref_count;
223 public weak string value;
224 public unowned string lookup (string name);
227 [CCode (ref_function = "g_dbus_arg_info_ref", unref_function = "g_dbus_arg_info_unref", type_id = "G_TYPE_DBUS_ARG_INFO", cheader_filename = "gio/gio.h")]
228 public class DBusArgInfo {
229 [CCode (array_length = false)]
230 public weak GLib.DBusAnnotationInfo[] annotations;
231 public weak string name;
232 public int ref_count;
233 public weak string signature;
235 [CCode (cheader_filename = "gio/gio.h")]
236 public class DBusAuthObserver : GLib.Object {
237 [CCode (has_construct_function = false)]
238 public DBusAuthObserver ();
240 public virtual signal bool authorize_authenticated_peer (GLib.IOStream p0, GLib.Credentials p1);
242 [CCode (cheader_filename = "gio/gio.h")]
243 public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
244 [CCode (type = "void", has_construct_function = false)]
245 public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
246 public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
247 public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
248 public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
249 public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
250 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
251 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
252 public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
253 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
254 [CCode (type = "void", has_construct_function = false)]
255 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
256 [CCode (has_construct_function = false)]
257 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
258 public GLib.DBusCapabilityFlags get_capabilities ();
259 public bool get_exit_on_close ();
260 public unowned string get_guid ();
261 public unowned GLib.Credentials get_peer_credentials ();
262 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
263 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
264 public unowned GLib.IOStream get_stream ();
265 public unowned string get_unique_name ();
266 public bool is_closed ();
267 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
268 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
269 public void remove_filter (uint filter_id);
270 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
271 public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
272 public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
273 public void set_exit_on_close (bool exit_on_close);
274 public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
275 public void signal_unsubscribe (uint subscription_id);
276 public void start_message_processing ();
277 [CCode (has_construct_function = false)]
278 public DBusConnection.sync (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
279 public bool unregister_object (uint registration_id);
280 public bool unregister_subtree (uint registration_id);
281 public string address { construct; }
282 public GLib.DBusAuthObserver authentication_observer { construct; }
283 public GLib.DBusCapabilityFlags capabilities { get; }
284 public bool exit_on_close { get; set; }
285 public GLib.DBusConnectionFlags flags { construct; }
286 public string guid { get; construct; }
287 public GLib.IOStream stream { get; construct; }
288 public string unique_name { get; }
289 public virtual signal void closed (bool p0, GLib.Error p1);
292 [CCode (cheader_filename = "gio/gio.h")]
293 public class DBusErrorEntry {
294 public weak string dbus_error_name;
295 public int error_code;
298 [CCode (ref_function = "g_dbus_interface_info_ref", unref_function = "g_dbus_interface_info_unref", type_id = "G_TYPE_DBUS_INTERFACE_INFO", cheader_filename = "gio/gio.h")]
299 public class DBusInterfaceInfo {
300 [CCode (array_length = false)]
301 public weak GLib.DBusAnnotationInfo[] annotations;
302 [CCode (array_length = false)]
303 public weak GLib.DBusMethodInfo[] methods;
304 public weak string name;
305 [CCode (array_length = false)]
306 public weak GLib.DBusPropertyInfo[] properties;
307 public int ref_count;
308 [CCode (array_length = false)]
309 public weak GLib.DBusSignalInfo[] signals;
310 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
311 public unowned GLib.DBusMethodInfo lookup_method (string name);
312 public unowned GLib.DBusPropertyInfo lookup_property (string name);
313 public unowned GLib.DBusSignalInfo lookup_signal (string name);
316 [CCode (cheader_filename = "gio/gio.h")]
317 public class DBusInterfaceVTable {
318 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
319 public weak GLib.DBusInterfaceMethodCallFunc method_call;
320 public void* padding;
321 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
323 [CCode (cheader_filename = "gio/gio.h")]
324 public class DBusMessage : GLib.Object {
325 [CCode (has_construct_function = false)]
326 public DBusMessage ();
327 public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
328 public unowned GLib.DBusMessage copy () throws GLib.Error;
329 [CCode (has_construct_function = false)]
330 public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
331 public unowned string get_arg0 ();
332 public unowned GLib.Variant get_body ();
333 public GLib.DBusMessageByteOrder get_byte_order ();
334 public unowned string get_destination ();
335 public unowned string get_error_name ();
336 public GLib.DBusMessageFlags get_flags ();
337 public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
338 public unowned uchar[] get_header_fields ();
339 public unowned string get_interface ();
340 public bool get_locked ();
341 public unowned string get_member ();
342 public GLib.DBusMessageType get_message_type ();
343 public uint32 get_num_unix_fds ();
344 public unowned string get_path ();
345 public uint32 get_reply_serial ();
346 public unowned string get_sender ();
347 public uint32 get_serial ();
348 public unowned string get_signature ();
349 public unowned GLib.UnixFDList get_unix_fd_list ();
350 public void @lock ();
351 [CCode (has_construct_function = false)]
352 public DBusMessage.method_call (string name, string path, string interface_, string method);
353 [CCode (has_construct_function = false)]
354 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format);
355 [CCode (has_construct_function = false)]
356 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
357 [CCode (has_construct_function = false)]
358 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, void* var_args);
359 [CCode (has_construct_function = false)]
360 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
361 public unowned string print (uint indent = 0);
362 public void set_body (GLib.Variant body);
363 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
364 public void set_destination (string value);
365 public void set_error_name (string value);
366 public void set_flags (GLib.DBusMessageFlags flags);
367 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant value);
368 public void set_interface (string value);
369 public void set_member (string value);
370 public void set_message_type (GLib.DBusMessageType type);
371 public void set_num_unix_fds (uint32 value);
372 public void set_path (string value);
373 public void set_reply_serial (uint32 value);
374 public void set_sender (string value);
375 public void set_serial (uint32 serial);
376 public void set_signature (string value);
377 public void set_unix_fd_list (GLib.UnixFDList fd_list);
378 [CCode (has_construct_function = false)]
379 public DBusMessage.@signal (string path, string interface_, string @signal);
380 public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
381 public bool to_gerror () throws GLib.Error;
382 public bool locked { get; }
385 [CCode (ref_function = "g_dbus_method_info_ref", unref_function = "g_dbus_method_info_unref", type_id = "G_TYPE_DBUS_METHOD_INFO", cheader_filename = "gio/gio.h")]
386 public class DBusMethodInfo {
387 [CCode (array_length = false)]
388 public weak GLib.DBusAnnotationInfo[] annotations;
389 [CCode (array_length = false)]
390 public weak GLib.DBusArgInfo[] in_args;
391 public weak string name;
392 [CCode (array_length = false)]
393 public weak GLib.DBusArgInfo[] out_args;
394 public int ref_count;
396 [CCode (cheader_filename = "gio/gio.h")]
397 public class DBusMethodInvocation : GLib.Object {
398 [CCode (has_construct_function = false)]
399 protected DBusMethodInvocation ();
400 public unowned GLib.DBusConnection get_connection ();
401 public unowned string get_interface_name ();
402 public unowned GLib.DBusMessage get_message ();
403 public unowned GLib.DBusMethodInfo get_method_info ();
404 public unowned string get_method_name ();
405 public unowned string get_object_path ();
406 public unowned GLib.Variant get_parameters ();
407 public unowned string get_sender ();
408 public void* get_user_data ();
409 public void return_dbus_error (string error_name, string error_message);
410 public void return_error (GLib.Quark domain, int code, string format);
411 public void return_error_literal (GLib.Quark domain, int code, string message);
412 public void return_error_valist (GLib.Quark domain, int code, string format, void* var_args);
413 public void return_gerror (GLib.Error error);
414 public void return_value (GLib.Variant parameters);
417 [CCode (ref_function = "g_dbus_node_info_ref", unref_function = "g_dbus_node_info_unref", type_id = "G_TYPE_DBUS_NODE_INFO", cheader_filename = "gio/gio.h")]
418 public class DBusNodeInfo {
419 [CCode (array_length = false)]
420 public weak GLib.DBusAnnotationInfo[] annotations;
421 [CCode (array_length = false)]
422 public weak GLib.DBusInterfaceInfo[] interfaces;
423 [CCode (array_length = false)]
424 public weak GLib.DBusNodeInfo[] nodes;
425 public weak string path;
426 public int ref_count;
427 [CCode (has_construct_function = false)]
428 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
429 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
430 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
433 [CCode (ref_function = "g_dbus_property_info_ref", unref_function = "g_dbus_property_info_unref", type_id = "G_TYPE_DBUS_PROPERTY_INFO", cheader_filename = "gio/gio.h")]
434 public class DBusPropertyInfo {
435 [CCode (array_length = false)]
436 public weak GLib.DBusAnnotationInfo[] annotations;
437 public GLib.DBusPropertyInfoFlags flags;
438 public weak string name;
439 public int ref_count;
440 public weak string signature;
442 [CCode (cheader_filename = "gio/gio.h")]
443 public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
444 [CCode (type = "void", has_construct_function = false)]
445 public async DBusProxy (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
446 public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
447 public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
448 [CCode (type = "void", has_construct_function = false)]
449 public async DBusProxy.for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
450 [CCode (has_construct_function = false)]
451 public DBusProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
452 public unowned GLib.Variant get_cached_property (string property_name);
453 public unowned string get_cached_property_names ();
454 public unowned GLib.DBusConnection get_connection ();
455 public int get_default_timeout ();
456 public GLib.DBusProxyFlags get_flags ();
457 public unowned GLib.DBusInterfaceInfo get_interface_info ();
458 public unowned string get_interface_name ();
459 public unowned string get_name ();
460 public unowned string get_name_owner ();
461 public unowned string get_object_path ();
462 public void set_cached_property (string property_name, GLib.Variant value);
463 public void set_default_timeout (int timeout_msec);
464 public void set_interface_info (GLib.DBusInterfaceInfo info);
465 [CCode (has_construct_function = false)]
466 public DBusProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
467 public GLib.BusType g_bus_type { construct; }
469 public GLib.DBusConnection g_connection { owned get; construct; }
471 public int g_default_timeout { get; set construct; }
473 public GLib.DBusProxyFlags g_flags { get; construct; }
475 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
477 public string g_interface_name { owned get; construct; }
479 public string g_name { owned get; construct; }
481 public string g_name_owner { owned get; }
483 public string g_object_path { owned get; construct; }
484 public virtual signal void g_properties_changed (GLib.Variant changed_properties, string[] invalidated_properties);
485 public virtual signal void g_signal (string sender_name, string signal_name, GLib.Variant parameters);
487 [CCode (cheader_filename = "gio/gio.h")]
488 public class DBusServer : GLib.Object, GLib.Initable {
489 [CCode (has_construct_function = false)]
490 protected DBusServer ();
491 public unowned string get_client_address ();
492 public GLib.DBusServerFlags get_flags ();
493 public unowned string get_guid ();
494 public bool is_active ();
495 public void start ();
497 [CCode (has_construct_function = false)]
498 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
500 public bool active { get; }
502 public string address { owned get; construct; }
504 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
505 public string client_address { get; }
506 public GLib.DBusServerFlags flags { get; construct; }
507 public string guid { get; construct; }
508 public virtual signal bool new_connection (GLib.DBusConnection p0);
511 [CCode (ref_function = "g_dbus_signal_info_ref", unref_function = "g_dbus_signal_info_unref", type_id = "G_TYPE_DBUS_SIGNAL_INFO", cheader_filename = "gio/gio.h")]
512 public class DBusSignalInfo {
513 [CCode (array_length = false)]
514 public weak GLib.DBusAnnotationInfo[] annotations;
515 [CCode (array_length = false)]
516 public weak GLib.DBusArgInfo[] args;
517 public weak string name;
518 public int ref_count;
521 [CCode (cheader_filename = "gio/gio.h")]
522 public class DBusSubtreeVTable {
523 public weak GLib.DBusSubtreeDispatchFunc dispatch;
524 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
525 public weak GLib.DBusSubtreeIntrospectFunc introspect;
526 public void* padding;
528 [CCode (cheader_filename = "gio/gio.h")]
529 public class DataInputStream : GLib.BufferedInputStream {
530 [CCode (has_construct_function = false)]
531 public DataInputStream (GLib.InputStream base_stream);
532 public GLib.DataStreamByteOrder get_byte_order ();
533 public GLib.DataStreamNewlineType get_newline_type ();
534 public uchar read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
535 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
536 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
537 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
538 public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
539 public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
540 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
541 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
542 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
543 public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
544 public async string? read_until_async (string stop_chars, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
545 public string? read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
546 public async string? read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.IOError;
547 public void set_byte_order (GLib.DataStreamByteOrder order);
548 public void set_newline_type (GLib.DataStreamNewlineType type);
549 public GLib.DataStreamByteOrder byte_order { get; set; }
550 public GLib.DataStreamNewlineType newline_type { get; set; }
552 [CCode (cheader_filename = "gio/gio.h")]
553 public class DataOutputStream : GLib.FilterOutputStream {
554 [CCode (has_construct_function = false)]
555 public DataOutputStream (GLib.OutputStream base_stream);
556 public GLib.DataStreamByteOrder get_byte_order ();
557 public bool put_byte (uchar data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
558 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
559 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
560 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
561 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
562 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
563 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
564 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
565 public void set_byte_order (GLib.DataStreamByteOrder order);
566 public GLib.DataStreamByteOrder byte_order { get; set; }
568 [CCode (cheader_filename = "gio/gio.h")]
569 public class Emblem : GLib.Object, GLib.Icon {
570 [CCode (has_construct_function = false)]
571 public Emblem (GLib.Icon icon);
572 public unowned GLib.Icon get_icon ();
573 public GLib.EmblemOrigin get_origin ();
574 [CCode (has_construct_function = false)]
575 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
576 public GLib.Object icon { get; construct; }
577 public GLib.EmblemOrigin origin { get; construct; }
580 [CCode (cheader_filename = "gio/gio.h")]
581 public class EmblemClass {
583 [CCode (cheader_filename = "gio/gio.h")]
584 public class EmblemedIcon : GLib.Object, GLib.Icon {
585 [CCode (type = "GIcon*", has_construct_function = false)]
586 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
587 public void add_emblem (GLib.Emblem emblem);
588 public unowned GLib.List<GLib.Emblem> get_emblems ();
589 public unowned GLib.Icon get_icon ();
592 [CCode (cheader_filename = "gio/gio.h")]
593 public class EmblemedIconClass {
596 [CCode (cheader_filename = "gio/gio.h")]
597 public class FileAttributeInfo {
598 public GLib.FileAttributeInfoFlags flags;
599 public weak string name;
600 public GLib.FileAttributeType type;
603 [CCode (ref_function = "g_file_attribute_info_list_ref", unref_function = "g_file_attribute_info_list_unref", type_id = "G_TYPE_FILE_ATTRIBUTE_INFO_LIST", cheader_filename = "gio/gio.h")]
604 public class FileAttributeInfoList {
605 public weak GLib.FileAttributeInfo infos;
607 [CCode (has_construct_function = false)]
608 public FileAttributeInfoList ();
609 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
610 public unowned GLib.FileAttributeInfoList dup ();
611 public unowned GLib.FileAttributeInfo lookup (string name);
614 [CCode (ref_function = "g_file_attribute_matcher_ref", unref_function = "g_file_attribute_matcher_unref", type_id = "G_TYPE_FILE_ATTRIBUTE_MATCHER", cheader_filename = "gio/gio.h")]
615 public class FileAttributeMatcher {
616 [CCode (has_construct_function = false)]
617 public FileAttributeMatcher (string attributes);
618 public bool enumerate_namespace (string ns);
619 public unowned string enumerate_next ();
620 public bool matches (string attribute);
621 public bool matches_only (string attribute);
623 [CCode (cheader_filename = "gio/gio.h")]
624 public class FileEnumerator : GLib.Object {
625 [CCode (has_construct_function = false)]
626 protected FileEnumerator ();
627 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
628 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
630 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
631 public unowned GLib.File get_container ();
632 public bool has_pending ();
633 public bool is_closed ();
634 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
635 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
636 public void set_pending (bool pending);
637 public GLib.File container { construct; }
639 [CCode (cheader_filename = "gio/gio.h")]
640 public class FileIOStream : GLib.IOStream, GLib.Seekable {
641 [CCode (has_construct_function = false)]
642 protected FileIOStream ();
644 public virtual bool can_seek ();
646 public virtual bool can_truncate ();
647 public virtual unowned string get_etag ();
648 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
649 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
651 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
653 public virtual int64 tell ();
655 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
657 [CCode (cheader_filename = "gio/gio.h")]
658 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
659 [CCode (type = "GIcon*", has_construct_function = false)]
660 public FileIcon (GLib.File file);
661 public unowned GLib.File get_file ();
662 public GLib.File file { get; construct; }
665 [CCode (cheader_filename = "gio/gio.h")]
666 public class FileIconClass {
668 [CCode (cheader_filename = "gio/gio.h")]
669 public class FileInfo : GLib.Object {
670 [CCode (has_construct_function = false)]
672 public void clear_status ();
673 public void copy_into (GLib.FileInfo dest_info);
674 public unowned GLib.FileInfo dup ();
675 public unowned string get_attribute_as_string (string attribute);
676 public bool get_attribute_boolean (string attribute);
677 public unowned string get_attribute_byte_string (string attribute);
678 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
679 public int32 get_attribute_int32 (string attribute);
680 public int64 get_attribute_int64 (string attribute);
681 public unowned GLib.Object get_attribute_object (string attribute);
682 public GLib.FileAttributeStatus get_attribute_status (string attribute);
683 public unowned string get_attribute_string (string attribute);
684 public unowned string get_attribute_stringv (string attribute);
685 public GLib.FileAttributeType get_attribute_type (string attribute);
686 public uint32 get_attribute_uint32 (string attribute);
687 public uint64 get_attribute_uint64 (string attribute);
688 public unowned string get_content_type ();
689 public unowned string get_display_name ();
690 public unowned string get_edit_name ();
691 public unowned string get_etag ();
692 public GLib.FileType get_file_type ();
693 public unowned GLib.Icon get_icon ();
694 public bool get_is_backup ();
695 public bool get_is_hidden ();
696 public bool get_is_symlink ();
697 public void get_modification_time (out GLib.TimeVal _result);
698 public unowned string get_name ();
699 public int64 get_size ();
700 public int32 get_sort_order ();
701 public unowned string get_symlink_target ();
702 public bool has_attribute (string attribute);
703 public bool has_namespace (string name_space);
704 public unowned string list_attributes (string name_space);
705 public void remove_attribute (string attribute);
706 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
707 public void set_attribute_boolean (string attribute, bool attr_value);
708 public void set_attribute_byte_string (string attribute, string attr_value);
709 public void set_attribute_int32 (string attribute, int32 attr_value);
710 public void set_attribute_int64 (string attribute, int64 attr_value);
711 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
712 public void set_attribute_object (string attribute, GLib.Object attr_value);
713 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
714 public void set_attribute_string (string attribute, string attr_value);
715 public void set_attribute_stringv (string attribute, out unowned string attr_value);
716 public void set_attribute_uint32 (string attribute, uint32 attr_value);
717 public void set_attribute_uint64 (string attribute, uint64 attr_value);
718 public void set_content_type (string content_type);
719 public void set_display_name (string display_name);
720 public void set_edit_name (string edit_name);
721 public void set_file_type (GLib.FileType type);
722 public void set_icon (GLib.Icon icon);
723 public void set_is_hidden (bool is_hidden);
724 public void set_is_symlink (bool is_symlink);
725 public void set_modification_time (GLib.TimeVal mtime);
726 public void set_name (string name);
727 public void set_size (int64 size);
728 public void set_sort_order (int32 sort_order);
729 public void set_symlink_target (string symlink_target);
730 public void unset_attribute_mask ();
733 [CCode (cheader_filename = "gio/gio.h")]
734 public class FileInfoClass {
736 [CCode (cheader_filename = "gio/gio.h")]
737 public class FileInputStream : GLib.InputStream, GLib.Seekable {
738 [CCode (has_construct_function = false)]
739 protected FileInputStream ();
741 public virtual bool can_seek ();
742 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
743 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
745 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
747 public virtual int64 tell ();
749 [CCode (cheader_filename = "gio/gio.h")]
750 public class FileMonitor : GLib.Object {
751 [CCode (has_construct_function = false)]
752 protected FileMonitor ();
753 public virtual bool cancel ();
754 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
755 public bool is_cancelled ();
756 public void set_rate_limit (int limit_msecs);
758 public bool cancelled { get; }
760 public int rate_limit { get; set; }
761 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
763 [CCode (cheader_filename = "gio/gio.h")]
764 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
765 [CCode (has_construct_function = false)]
766 protected FileOutputStream ();
768 public virtual bool can_seek ();
770 public virtual bool can_truncate ();
771 public virtual unowned string get_etag ();
772 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
773 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
775 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
777 public virtual int64 tell ();
779 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
781 [CCode (cheader_filename = "gio/gio.h")]
782 public class FilenameCompleter : GLib.Object {
783 [CCode (has_construct_function = false)]
784 public FilenameCompleter ();
785 public unowned string get_completion_suffix (string initial_text);
786 public unowned string get_completions (string initial_text);
787 public void set_dirs_only (bool dirs_only);
788 public virtual signal void got_completion_data ();
790 [CCode (cheader_filename = "gio/gio.h")]
791 public class FilterInputStream : GLib.InputStream {
792 [CCode (has_construct_function = false)]
793 protected FilterInputStream ();
794 public unowned GLib.InputStream get_base_stream ();
795 public bool get_close_base_stream ();
796 public void set_close_base_stream (bool close_base);
797 public GLib.InputStream base_stream { get; construct; }
798 public bool close_base_stream { get; construct; }
800 [CCode (cheader_filename = "gio/gio.h")]
801 public class FilterOutputStream : GLib.OutputStream {
802 [CCode (has_construct_function = false)]
803 protected FilterOutputStream ();
804 public unowned GLib.OutputStream get_base_stream ();
805 public bool get_close_base_stream ();
806 public void set_close_base_stream (bool close_base);
807 public GLib.OutputStream base_stream { get; construct; }
808 public bool close_base_stream { get; construct; }
811 [CCode (cheader_filename = "gio/gio.h")]
812 public class IOExtension {
813 public unowned string get_name ();
814 public int get_priority ();
815 public GLib.Type get_type ();
816 public unowned GLib.TypeClass ref_class ();
819 [CCode (cheader_filename = "gio/gio.h")]
820 public class IOExtensionPoint {
821 public unowned GLib.IOExtension get_extension_by_name (string name);
822 public unowned GLib.List<GLib.IOExtension> get_extensions ();
823 public GLib.Type get_required_type ();
824 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
825 public static unowned GLib.IOExtensionPoint lookup (string name);
826 public static unowned GLib.IOExtensionPoint register (string name);
827 public void set_required_type (GLib.Type type);
829 [CCode (cheader_filename = "gio/gio.h")]
830 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
831 [CCode (has_construct_function = false)]
832 public IOModule (string filename);
834 public static unowned string query ();
835 public void unload ();
838 [CCode (cheader_filename = "gio/gio.h")]
839 public class IOModuleClass {
842 [CCode (cheader_filename = "gio/gio.h")]
843 public class IOSchedulerJob {
844 public bool send_to_mainloop (owned GLib.SourceFunc func);
845 public void send_to_mainloop_async (owned GLib.SourceFunc func);
847 [CCode (cheader_filename = "gio/gio.h")]
848 public class IOStream : GLib.Object {
849 [CCode (has_construct_function = false)]
850 protected IOStream ();
851 public void clear_pending ();
852 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
853 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
855 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
856 public virtual unowned GLib.InputStream get_input_stream ();
857 public virtual unowned GLib.OutputStream get_output_stream ();
858 public bool has_pending ();
859 public bool is_closed ();
860 public bool set_pending () throws GLib.Error;
862 public bool closed { get; set; }
863 public GLib.InputStream input_stream { get; }
864 public GLib.OutputStream output_stream { get; }
866 [CCode (cheader_filename = "gio/gio.h")]
867 public class InetAddress : GLib.Object {
868 [CCode (has_construct_function = false)]
869 protected InetAddress ();
870 [CCode (has_construct_function = false)]
871 public InetAddress.any (GLib.SocketFamily family);
872 [CCode (has_construct_function = false)]
873 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
874 [CCode (has_construct_function = false)]
875 public InetAddress.from_string (string str);
876 public GLib.SocketFamily get_family ();
877 public bool get_is_any ();
878 public bool get_is_link_local ();
879 public bool get_is_loopback ();
880 public bool get_is_mc_global ();
881 public bool get_is_mc_link_local ();
882 public bool get_is_mc_node_local ();
883 public bool get_is_mc_org_local ();
884 public bool get_is_mc_site_local ();
885 public bool get_is_multicast ();
886 public bool get_is_site_local ();
887 public size_t get_native_size ();
888 [CCode (has_construct_function = false)]
889 public InetAddress.loopback (GLib.SocketFamily family);
890 [CCode (array_length = false)]
891 public virtual unowned uint8[] to_bytes ();
892 public virtual string to_string ();
894 public void* bytes { get; construct; }
895 public GLib.SocketFamily family { get; construct; }
896 public bool is_any { get; }
897 public bool is_link_local { get; }
898 public bool is_loopback { get; }
899 public bool is_mc_global { get; }
900 public bool is_mc_link_local { get; }
901 public bool is_mc_node_local { get; }
902 public bool is_mc_org_local { get; }
903 public bool is_mc_site_local { get; }
904 public bool is_multicast { get; }
905 public bool is_site_local { get; }
907 [CCode (cheader_filename = "gio/gio.h")]
908 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
909 [CCode (type = "GSocketAddress*", has_construct_function = false)]
910 public InetSocketAddress (GLib.InetAddress address, uint16 port);
911 public unowned GLib.InetAddress get_address ();
912 public uint16 get_port ();
913 public GLib.InetAddress address { get; construct; }
914 public uint port { get; construct; }
916 [CCode (cheader_filename = "gio/gio.h")]
917 public class InputStream : GLib.Object {
918 [CCode (has_construct_function = false)]
919 protected InputStream ();
920 public void clear_pending ();
921 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
922 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
924 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
925 public bool has_pending ();
926 public bool is_closed ();
927 [CCode (vfunc_name = "read_fn")]
928 public virtual ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
929 public bool read_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
930 public virtual async ssize_t read_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
931 public bool set_pending () throws GLib.Error;
932 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
933 public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
936 [CCode (cheader_filename = "gio/gio.h")]
937 public class InputVector {
938 [CCode (array_length_cname = "size", array_length_type = "gsize")]
939 public uint8[] buffer;
941 [CCode (cheader_filename = "gio/gio.h")]
942 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
943 [CCode (type = "GInputStream*", has_construct_function = false)]
944 public MemoryInputStream ();
945 public void add_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
946 [CCode (type = "GInputStream*", has_construct_function = false)]
947 public MemoryInputStream.from_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
949 [CCode (cheader_filename = "gio/gio.h")]
950 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
951 [CCode (type = "GOutputStream*", has_construct_function = false)]
952 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function, GLib.DestroyNotify? destroy_function);
953 [CCode (array_length = false)]
954 public unowned uint8[] get_data ();
955 public size_t get_data_size ();
956 public size_t get_size ();
957 [CCode (array_length = false)]
958 public uint8[] steal_data ();
959 public void* data { get; construct; }
960 public ulong data_size { get; }
962 public void* destroy_function { get; construct; }
964 public void* realloc_function { get; construct; }
965 public ulong size { get; construct; }
967 [CCode (cheader_filename = "gio/gio.h")]
968 public class MountOperation : GLib.Object {
969 [CCode (has_construct_function = false)]
970 public MountOperation ();
971 public bool get_anonymous ();
972 public int get_choice ();
973 public unowned string get_domain ();
974 public unowned string get_password ();
975 public GLib.PasswordSave get_password_save ();
976 public unowned string get_username ();
977 public void set_anonymous (bool anonymous);
978 public void set_choice (int choice);
979 public void set_domain (string domain);
980 public void set_password (string password);
981 public void set_password_save (GLib.PasswordSave save);
982 public void set_username (string username);
983 public bool anonymous { get; set; }
984 public int choice { get; set; }
985 public string domain { get; set; }
986 public string password { get; set; }
987 public GLib.PasswordSave password_save { get; set; }
988 public string username { get; set; }
989 public virtual signal void aborted ();
990 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
991 public virtual signal void ask_question (string message, string[] choices);
993 public virtual signal void reply (GLib.MountOperationResult result);
994 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
996 [CCode (cheader_filename = "gio/gio.h")]
997 public class NativeVolumeMonitor : GLib.VolumeMonitor {
998 [CCode (has_construct_function = false)]
999 protected NativeVolumeMonitor ();
1001 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
1003 [CCode (cheader_filename = "gio/gio.h")]
1004 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
1005 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1006 public NetworkAddress (string hostname, uint16 port);
1007 public unowned string get_hostname ();
1008 public uint16 get_port ();
1009 public unowned string get_scheme ();
1010 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
1011 public static unowned GLib.SocketConnectable parse_uri (string uri, uint16 default_port) throws GLib.Error;
1012 public string hostname { get; construct; }
1013 public uint port { get; construct; }
1014 public string scheme { get; construct; }
1016 [CCode (cheader_filename = "gio/gio.h")]
1017 public class NetworkService : GLib.Object, GLib.SocketConnectable {
1018 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
1019 public NetworkService (string service, string protocol, string domain);
1020 public unowned string get_domain ();
1021 public unowned string get_protocol ();
1022 public unowned string get_scheme ();
1023 public unowned string get_service ();
1024 public void set_scheme (string scheme);
1025 public string domain { get; construct; }
1026 public string protocol { get; construct; }
1027 public string scheme { get; set; }
1028 public string service { get; construct; }
1030 [CCode (cheader_filename = "gio/gio.h")]
1031 public class OutputStream : GLib.Object {
1032 [CCode (has_construct_function = false)]
1033 protected OutputStream ();
1034 public void clear_pending ();
1035 public bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1036 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1038 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1039 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
1040 public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1041 public bool has_pending ();
1042 public bool is_closed ();
1043 public bool is_closing ();
1044 public bool set_pending () throws GLib.Error;
1045 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1046 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1047 [CCode (vfunc_name = "write_fn")]
1048 public virtual ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1049 public bool write_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1050 public virtual async ssize_t write_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1053 [CCode (cheader_filename = "gio/gio.h")]
1054 public class OutputVector {
1055 [CCode (array_length_cname = "size", array_length_type = "gsize")]
1056 public uint8[] buffer;
1058 [CCode (cheader_filename = "gio/gio.h")]
1059 public class Periodic : GLib.Object {
1060 [CCode (has_construct_function = false)]
1061 public Periodic (uint hz, int priority);
1062 public uint add (owned GLib.PeriodicTickFunc callback);
1063 public void block ();
1064 public void damaged (owned GLib.PeriodicRepairFunc callback);
1065 public uint get_hz ();
1066 public int get_priority ();
1067 public void remove (uint tag);
1068 public void unblock (GLib.TimeSpec unblock_time);
1069 public uint hz { get; construct; }
1070 public int priority { get; construct; }
1071 public virtual signal void repair ();
1072 public virtual signal void tick (uint64 p0);
1074 [CCode (cheader_filename = "gio/gio.h")]
1075 public class Permission : GLib.Object {
1076 [CCode (has_construct_function = false)]
1077 protected Permission ();
1078 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
1079 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1080 public bool get_allowed ();
1081 public bool get_can_acquire ();
1082 public bool get_can_release ();
1083 public void impl_update (bool allowed, bool can_acquire, bool can_release);
1084 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1085 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1086 public bool allowed { get; }
1087 public bool can_acquire { get; }
1088 public bool can_release { get; }
1090 [CCode (cheader_filename = "gio/gio.h")]
1091 public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
1092 [CCode (type = "GSocketAddress*", has_construct_function = false)]
1093 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string username, string password);
1094 public unowned string get_destination_hostname ();
1095 public uint16 get_destination_port ();
1096 public unowned string get_password ();
1097 public unowned string get_protocol ();
1098 public unowned string get_username ();
1099 public string destination_hostname { get; construct; }
1100 public uint destination_port { get; construct; }
1101 public string password { get; construct; }
1102 public string protocol { get; construct; }
1103 public string username { get; construct; }
1105 [CCode (cheader_filename = "gio/gio.h")]
1106 public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
1107 [CCode (has_construct_function = false)]
1108 protected ProxyAddressEnumerator ();
1110 public GLib.SocketConnectable connectable { owned get; construct; }
1112 public string uri { owned get; construct; }
1114 [CCode (cheader_filename = "gio/gio.h")]
1115 public class Resolver : GLib.Object {
1116 [CCode (has_construct_function = false)]
1117 protected Resolver ();
1118 public static GLib.Quark error_quark ();
1119 public static unowned GLib.Resolver get_default ();
1120 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1121 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1122 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1123 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1124 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1125 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1126 public void set_default ();
1127 public virtual signal void reload ();
1129 [CCode (cheader_filename = "gio/gio.h")]
1130 public class Settings : GLib.Object {
1131 [CCode (has_construct_function = false)]
1132 public Settings (string schema);
1133 public void apply ();
1134 public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags);
1135 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);
1136 public void bind_writable (string key, void* object, string property, bool inverted);
1137 public void delay ();
1138 [CCode (sentinel = "")]
1139 public void @get (string key, string format, ...);
1140 public bool get_boolean (string key);
1141 public unowned GLib.Settings get_child (string name);
1142 public double get_double (string key);
1143 public int get_enum (string key);
1144 public uint get_flags (string key);
1145 public bool get_has_unapplied ();
1146 public int get_int (string key);
1147 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
1148 public unowned GLib.Variant get_range (string key);
1149 public unowned string get_string (string key);
1150 [CCode (array_length = false, array_null_terminated = true)]
1151 public string[] get_strv (string key);
1152 public GLib.Variant get_value (string key);
1153 public bool is_writable (string name);
1154 [CCode (array_length = false, array_null_terminated = true)]
1155 public string[] list_children ();
1156 [CCode (array_length = false, array_null_terminated = true)]
1157 public string[] list_keys ();
1158 public static unowned string list_relocatable_schemas ();
1159 [CCode (array_length = false, array_null_terminated = true)]
1160 public static unowned string[] list_schemas ();
1161 public bool range_check (string key, GLib.Variant value);
1162 public void reset (string key);
1163 public void revert ();
1164 [CCode (sentinel = "")]
1165 public bool @set (string key, string format, ...);
1166 public bool set_boolean (string key, bool value);
1167 public bool set_double (string key, double value);
1168 public bool set_enum (string key, int value);
1169 public bool set_flags (string key, uint value);
1170 public bool set_int (string key, int value);
1171 public bool set_string (string key, string value);
1172 public bool set_strv (string key, [CCode (array_length = false)] string[] value);
1173 public bool set_value (string key, GLib.Variant value);
1174 public static void sync ();
1175 public static void unbind (void* object, string property);
1176 [CCode (has_construct_function = false)]
1177 public Settings.with_backend (string schema, GLib.SettingsBackend backend);
1178 [CCode (has_construct_function = false)]
1179 public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path);
1180 [CCode (has_construct_function = false)]
1181 public Settings.with_path (string schema, string path);
1183 public GLib.SettingsBackend backend { owned get; construct; }
1184 public bool has_unapplied { get; }
1186 public string path { owned get; construct; }
1188 public string schema { owned get; construct; }
1189 public virtual signal bool change_event (void* keys, int n_keys);
1190 public virtual signal void changed (string key);
1191 public virtual signal bool writable_change_event (uint key);
1192 public virtual signal void writable_changed (string key);
1194 [CCode (cheader_filename = "gio/gio.h")]
1195 public class SettingsBackend : GLib.Object {
1197 [CCode (cheader_filename = "gio/gio.h")]
1198 public class SimpleAction : GLib.Object, GLib.Action {
1199 [CCode (has_construct_function = false)]
1200 public SimpleAction (string name, GLib.VariantType parameter_type);
1201 public void set_enabled (bool enabled);
1202 [CCode (has_construct_function = false)]
1203 public SimpleAction.stateful (string name, GLib.VariantType parameter_type, GLib.Variant state);
1205 public bool enabled { get; set construct; }
1207 public string name { owned get; construct; }
1209 public GLib.VariantType parameter_type { owned get; construct; }
1211 public GLib.Variant state { owned get; set construct; }
1213 public GLib.VariantType state_type { owned get; }
1214 public virtual signal void activate (GLib.Variant parameter);
1216 [CCode (cheader_filename = "gio/gio.h")]
1217 public class SimpleActionGroup : GLib.Object, GLib.ActionGroup {
1218 [CCode (has_construct_function = false)]
1219 public SimpleActionGroup ();
1220 public void insert (GLib.Action action);
1221 public unowned GLib.Action lookup (string action_name);
1222 public void remove (string action_name);
1224 [CCode (cheader_filename = "gio/gio.h")]
1225 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
1226 [CCode (has_construct_function = false)]
1227 public SimpleAsyncResult (GLib.Object? source_object, GLib.AsyncReadyCallback callback, void* source_tag);
1228 public void complete ();
1229 public void complete_in_idle ();
1230 [CCode (has_construct_function = false)]
1231 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1232 [CCode (has_construct_function = false)]
1233 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
1234 public bool get_op_res_gboolean ();
1235 public void* get_op_res_gpointer ();
1236 public ssize_t get_op_res_gssize ();
1237 public void* get_source_tag ();
1238 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
1239 public bool propagate_error () throws GLib.Error;
1240 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1241 public void set_error (GLib.Quark domain, int code, string format);
1242 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
1243 public void set_from_error (GLib.Error error);
1244 public void set_handle_cancellation (bool handle_cancellation);
1245 public void set_op_res_gboolean (bool op_res);
1246 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
1247 public void set_op_res_gssize (ssize_t op_res);
1248 public void take_error (GLib.Error error);
1251 [CCode (cheader_filename = "gio/gio.h")]
1252 public class SimpleAsyncResultClass {
1254 [CCode (cheader_filename = "gio/gio.h")]
1255 public class SimplePermission : GLib.Permission {
1256 [CCode (type = "GPermission*", has_construct_function = false)]
1257 public SimplePermission (bool allowed);
1259 [CCode (cheader_filename = "gio/gio.h")]
1260 public class Socket : GLib.Object, GLib.Initable {
1261 [CCode (has_construct_function = false)]
1262 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
1263 public unowned GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
1264 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
1265 public bool check_connect_result () throws GLib.Error;
1266 public bool close () throws GLib.Error;
1267 public GLib.IOCondition condition_check (GLib.IOCondition condition);
1268 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.Error;
1269 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1270 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
1271 [CCode (has_construct_function = false)]
1272 public Socket.from_fd (int fd) throws GLib.Error;
1273 public bool get_blocking ();
1274 public unowned GLib.Credentials get_credentials () throws GLib.Error;
1275 public GLib.SocketFamily get_family ();
1276 public int get_fd ();
1277 public bool get_keepalive ();
1278 public int get_listen_backlog ();
1279 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1280 public GLib.SocketProtocol get_protocol ();
1281 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1282 public GLib.SocketType get_socket_type ();
1283 public uint get_timeout ();
1284 public bool is_closed ();
1285 public bool is_connected ();
1286 public bool listen () throws GLib.Error;
1287 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1288 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1289 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;
1290 public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1291 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1292 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;
1293 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1294 public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1295 public void set_blocking (bool blocking);
1296 public void set_keepalive (bool keepalive);
1297 public void set_listen_backlog (int backlog);
1298 public void set_timeout (uint timeout);
1299 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
1300 public bool speaks_ipv4 ();
1301 public bool blocking { get; set; }
1302 public GLib.SocketFamily family { get; construct; }
1303 public int fd { get; construct; }
1304 public bool keepalive { get; set; }
1305 public int listen_backlog { get; set; }
1306 public GLib.SocketAddress local_address { get; }
1307 public GLib.SocketProtocol protocol { get; construct; }
1308 public GLib.SocketAddress remote_address { get; }
1309 public uint timeout { get; set; }
1311 public GLib.SocketType type { get; construct; }
1313 [CCode (cheader_filename = "gio/gio.h")]
1314 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
1315 [CCode (has_construct_function = false)]
1316 protected SocketAddress ();
1317 [CCode (has_construct_function = false)]
1318 public SocketAddress.from_native (void* native, size_t len);
1319 public virtual GLib.SocketFamily get_family ();
1320 public virtual ssize_t get_native_size ();
1321 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
1322 public GLib.SocketFamily family { get; }
1324 [CCode (cheader_filename = "gio/gio.h")]
1325 public class SocketAddressEnumerator : GLib.Object {
1326 [CCode (has_construct_function = false)]
1327 protected SocketAddressEnumerator ();
1328 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
1329 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1331 [CCode (cheader_filename = "gio/gio.h")]
1332 public class SocketClient : GLib.Object {
1333 [CCode (has_construct_function = false)]
1334 public SocketClient ();
1335 public void add_application_proxy (string protocol);
1336 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1337 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1338 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1339 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1340 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1341 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1342 public unowned GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1343 public async unowned GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1344 public bool get_enable_proxy ();
1345 public GLib.SocketFamily get_family ();
1346 public unowned GLib.SocketAddress get_local_address ();
1347 public GLib.SocketProtocol get_protocol ();
1348 public GLib.SocketType get_socket_type ();
1349 public uint get_timeout ();
1350 public void set_enable_proxy (bool enable);
1351 public void set_family (GLib.SocketFamily family);
1352 public void set_local_address (GLib.SocketAddress address);
1353 public void set_protocol (GLib.SocketProtocol protocol);
1354 public void set_socket_type (GLib.SocketType type);
1355 public void set_timeout (uint timeout);
1356 public bool enable_proxy { get; set construct; }
1357 public GLib.SocketFamily family { get; set construct; }
1358 public GLib.SocketAddress local_address { get; set construct; }
1359 public GLib.SocketProtocol protocol { get; set construct; }
1360 public uint timeout { get; set construct; }
1362 public GLib.SocketType type { get; set construct; }
1364 [CCode (cheader_filename = "gio/gio.h")]
1365 public class SocketConnection : GLib.IOStream {
1366 [CCode (has_construct_function = false)]
1367 protected SocketConnection ();
1368 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
1369 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
1370 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
1371 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1372 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1373 public unowned GLib.Socket get_socket ();
1374 public GLib.Socket socket { get; construct; }
1376 [CCode (cheader_filename = "gio/gio.h")]
1377 public class SocketControlMessage : GLib.Object {
1378 [CCode (has_construct_function = false)]
1379 protected SocketControlMessage ();
1380 public virtual GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] data);
1381 public virtual int get_level ();
1382 public int get_msg_type ();
1383 public virtual size_t get_size ();
1385 public virtual int get_type ();
1386 public virtual void serialize ([CCode (array_length = false)] uint8[] data);
1388 [CCode (cheader_filename = "gio/gio.h")]
1389 public class SocketListener : GLib.Object {
1390 [CCode (has_construct_function = false)]
1391 public SocketListener ();
1392 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1393 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1394 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1395 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1396 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;
1397 public uint16 add_any_inet_port (GLib.Object source_object) throws GLib.Error;
1398 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
1399 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
1401 public virtual void changed ();
1402 public void close ();
1403 public void set_backlog (int listen_backlog);
1405 public int listen_backlog { get; set construct; }
1407 [CCode (cheader_filename = "gio/gio.h")]
1408 public class SocketService : GLib.SocketListener {
1409 [CCode (has_construct_function = false)]
1410 public SocketService ();
1411 public bool is_active ();
1412 public void start ();
1413 public void stop ();
1414 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
1417 [CCode (cname = "GSource", cheader_filename = "gio/gio.h")]
1418 public class SocketSource : GLib.Source {
1419 [CCode (cname = "g_source_set_callback")]
1420 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
1423 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
1424 public class SrvTarget {
1425 [CCode (has_construct_function = false)]
1426 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
1427 public GLib.SrvTarget copy ();
1428 public unowned string get_hostname ();
1429 public uint16 get_port ();
1430 public uint16 get_priority ();
1431 public uint16 get_weight ();
1432 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
1434 [CCode (cheader_filename = "gio/gio.h")]
1435 public class TcpConnection : GLib.SocketConnection {
1436 [CCode (has_construct_function = false)]
1437 protected TcpConnection ();
1438 public bool get_graceful_disconnect ();
1439 public void set_graceful_disconnect (bool graceful_disconnect);
1440 public bool graceful_disconnect { get; set; }
1442 [CCode (cheader_filename = "gio/gio.h")]
1443 public class ThemedIcon : GLib.Object, GLib.Icon {
1444 [CCode (type = "GIcon*", has_construct_function = false)]
1445 public ThemedIcon (string iconname);
1446 public void append_name (string iconname);
1447 [CCode (type = "GIcon*", has_construct_function = false)]
1448 public ThemedIcon.from_names (string[] iconnames);
1449 [CCode (array_length = false, array_null_terminated = true)]
1450 public unowned string[] get_names ();
1451 public void prepend_name (string iconname);
1452 [CCode (type = "GIcon*", has_construct_function = false)]
1453 public ThemedIcon.with_default_fallbacks (string iconname);
1454 public string name { construct; }
1455 [CCode (array_length = false, array_null_terminated = true)]
1456 public string[] names { get; construct; }
1458 public bool use_default_fallbacks { get; construct; }
1461 [CCode (cheader_filename = "gio/gio.h")]
1462 public class ThemedIconClass {
1464 [CCode (cheader_filename = "gio/gio.h")]
1465 public class ThreadedSocketService : GLib.SocketService {
1466 [CCode (type = "GSocketService*", has_construct_function = false)]
1467 public ThreadedSocketService (int max_threads);
1469 public int max_threads { get; construct; }
1470 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
1473 [CCode (cheader_filename = "gio/gio.h")]
1474 public class UnixCredentialsMessage {
1477 [CCode (cheader_filename = "gio/gio.h")]
1478 public class UnixFDList {
1480 [CCode (cheader_filename = "gio/gio.h")]
1481 public class Vfs : GLib.Object {
1482 [CCode (has_construct_function = false)]
1485 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
1486 public static unowned GLib.Vfs get_default ();
1487 public virtual GLib.File get_file_for_path (string path);
1488 public virtual GLib.File get_file_for_uri (string uri);
1489 public static unowned GLib.Vfs get_local ();
1490 public virtual unowned string[] get_supported_uri_schemes ();
1491 public virtual bool is_active ();
1493 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);
1495 public virtual void local_file_moved (string source, string dest);
1497 public virtual void local_file_removed (string filename);
1499 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1500 public virtual unowned GLib.File parse_name (string parse_name);
1502 [CCode (cheader_filename = "gio/gio.h")]
1503 public class VolumeMonitor : GLib.Object {
1504 [CCode (has_construct_function = false)]
1505 protected VolumeMonitor ();
1506 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
1507 public static GLib.VolumeMonitor @get ();
1508 public virtual GLib.List<GLib.Drive> get_connected_drives ();
1509 public virtual GLib.Mount get_mount_for_uuid (string uuid);
1510 public virtual GLib.List<GLib.Mount> get_mounts ();
1511 public virtual GLib.Volume get_volume_for_uuid (string uuid);
1512 public virtual GLib.List<GLib.Volume> get_volumes ();
1514 public virtual bool is_supported ();
1515 public virtual signal void drive_changed (GLib.Drive drive);
1516 public virtual signal void drive_connected (GLib.Drive drive);
1517 public virtual signal void drive_disconnected (GLib.Drive drive);
1518 public virtual signal void drive_eject_button (GLib.Drive drive);
1519 public virtual signal void drive_stop_button (GLib.Drive drive);
1520 public virtual signal void mount_added (GLib.Mount mount);
1521 public virtual signal void mount_changed (GLib.Mount mount);
1522 public virtual signal void mount_pre_unmount (GLib.Mount mount);
1523 public virtual signal void mount_removed (GLib.Mount mount);
1524 public virtual signal void volume_added (GLib.Volume volume);
1525 public virtual signal void volume_changed (GLib.Volume volume);
1526 public virtual signal void volume_removed (GLib.Volume volume);
1528 [CCode (cheader_filename = "gio/gio.h")]
1529 public class ZlibCompressor : GLib.Object, GLib.Converter {
1530 [CCode (has_construct_function = false)]
1531 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1532 public unowned GLib.FileInfo get_file_info ();
1533 public void set_file_info (GLib.FileInfo file_info);
1534 public GLib.FileInfo file_info { get; set; }
1536 public GLib.ZlibCompressorFormat format { get; construct; }
1538 public int level { get; construct; }
1540 [CCode (cheader_filename = "gio/gio.h")]
1541 public class ZlibDecompressor : GLib.Object, GLib.Converter {
1542 [CCode (has_construct_function = false)]
1543 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1544 public unowned GLib.FileInfo get_file_info ();
1545 public GLib.FileInfo file_info { get; }
1547 public GLib.ZlibCompressorFormat format { get; construct; }
1549 [CCode (cheader_filename = "gio/gio.h")]
1550 public interface Action : GLib.Object {
1551 public abstract void activate (GLib.Variant parameter);
1552 public abstract bool get_enabled ();
1553 public abstract unowned string get_name ();
1554 public abstract unowned GLib.VariantType get_parameter_type ();
1555 public abstract unowned GLib.Variant get_state ();
1556 public abstract unowned GLib.Variant get_state_hint ();
1557 public abstract unowned GLib.VariantType get_state_type ();
1558 public abstract void set_state (GLib.Variant value);
1559 public bool enabled { get; }
1560 public string name { get; }
1561 public GLib.VariantType parameter_type { get; }
1562 public GLib.Variant state { get; set construct; }
1563 public GLib.VariantType state_type { get; }
1565 [CCode (cheader_filename = "gio/gio.h")]
1566 public interface ActionGroup : GLib.Object {
1567 public abstract void activate_action (string action_name, GLib.Variant parameter);
1568 public abstract void change_action_state (string action_name, GLib.Variant value);
1569 public abstract bool get_action_enabled (string action_name);
1570 public abstract unowned GLib.VariantType get_action_parameter_type (string action_name);
1571 public abstract unowned GLib.Variant get_action_state (string action_name);
1572 public abstract unowned GLib.Variant get_action_state_hint (string action_name);
1573 public abstract unowned GLib.VariantType get_action_state_type (string action_name);
1574 public abstract bool has_action (string action_name);
1575 public abstract unowned string list_actions ();
1577 public signal void action_added (string action_name);
1579 public signal void action_enabled_changed (string action_name, bool enabled);
1581 public signal void action_removed (string action_name);
1583 public signal void action_state_changed (string action_name, GLib.Variant value);
1585 [CCode (cheader_filename = "gio/gio.h")]
1586 public interface AppInfo : GLib.Object {
1587 public abstract bool add_supports_type (string content_type) throws GLib.Error;
1588 public abstract bool can_delete ();
1589 public abstract bool can_remove_supports_type ();
1590 public static unowned GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
1591 public bool @delete ();
1593 public abstract bool do_delete ();
1594 public abstract unowned GLib.AppInfo dup ();
1595 public abstract bool equal (GLib.AppInfo appinfo2);
1596 public static GLib.List<GLib.AppInfo> get_all ();
1597 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
1598 public abstract unowned string get_commandline ();
1599 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
1600 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
1601 public abstract unowned string get_description ();
1602 public abstract unowned string get_display_name ();
1603 public abstract unowned string get_executable ();
1604 public abstract unowned GLib.Icon get_icon ();
1605 public abstract unowned string get_id ();
1606 public abstract unowned string get_name ();
1607 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1608 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1609 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
1610 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
1611 public static void reset_type_associations (string content_type);
1612 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
1613 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
1614 public abstract bool should_show ();
1615 public abstract bool supports_files ();
1616 public abstract bool supports_uris ();
1618 [CCode (cheader_filename = "gio/gio.h")]
1619 public interface AsyncInitable : GLib.Object {
1620 public abstract async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1621 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1622 public static async void new_valist_async (GLib.Type object_type, string first_property_name, void* var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1623 public static async void newv_async (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1625 [CCode (cheader_filename = "gio/gio.h")]
1626 public interface AsyncResult : GLib.Object {
1627 public abstract unowned GLib.Object get_source_object ();
1628 public abstract void* get_user_data ();
1630 [CCode (cheader_filename = "gio/gio.h")]
1631 public interface Converter : GLib.Object {
1632 public abstract GLib.ConverterResult convert ([CCode (array_length_type = "gsize")] uint8[] inbuf, [CCode (array_length_type = "gsize")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
1633 public abstract void reset ();
1635 [CCode (cheader_filename = "gio/gio.h")]
1636 public interface Drive : GLib.Object {
1637 public abstract bool can_eject ();
1638 public abstract bool can_poll_for_media ();
1639 public abstract bool can_start ();
1640 public abstract bool can_start_degraded ();
1641 public abstract bool can_stop ();
1642 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1643 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1644 public abstract unowned string enumerate_identifiers ();
1645 public abstract unowned GLib.Icon get_icon ();
1646 public abstract unowned string get_identifier (string kind);
1647 public abstract unowned string get_name ();
1648 public abstract GLib.DriveStartStopType get_start_stop_type ();
1649 public abstract GLib.List<GLib.Volume> get_volumes ();
1650 public abstract bool has_media ();
1651 public abstract bool has_volumes ();
1652 public abstract bool is_media_check_automatic ();
1653 public abstract bool is_media_removable ();
1654 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
1655 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1656 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1657 public signal void changed ();
1658 public signal void disconnected ();
1659 public signal void eject_button ();
1660 public signal void stop_button ();
1662 [CCode (cheader_filename = "gio/gio.h")]
1663 public interface File : GLib.Object {
1664 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1665 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1666 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1667 public abstract async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1668 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1669 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1670 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1671 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1672 public abstract async unowned GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1673 public bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
1675 public abstract bool delete_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1676 public abstract unowned GLib.File dup ();
1677 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1678 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1679 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1680 public abstract async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1681 public abstract bool equal (GLib.File file2);
1682 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
1683 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1684 public abstract string? get_basename ();
1685 public GLib.File get_child (string name);
1686 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1687 public abstract GLib.File? get_parent ();
1688 public abstract string get_parse_name ();
1689 public abstract string? get_path ();
1690 public abstract string? get_relative_path (GLib.File descendant);
1691 public abstract string get_uri ();
1692 public abstract string get_uri_scheme ();
1693 public bool has_parent (GLib.File? parent);
1694 public bool has_prefix (GLib.File prefix);
1695 public abstract bool has_uri_scheme (string uri_scheme);
1696 public abstract uint hash ();
1697 public abstract bool is_native ();
1698 public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1699 public async bool load_contents_async (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1700 public async bool load_partial_contents_async (GLib.Cancellable? cancellable, GLib.FileReadMoreCallback read_more_callback, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1701 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
1702 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
1703 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
1704 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1705 [CCode (vfunc_name = "monitor_dir")]
1706 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1707 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1708 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1709 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1710 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1711 public static GLib.File new_for_commandline_arg (string arg);
1712 public static GLib.File new_for_path (string path);
1713 public static GLib.File new_for_uri (string uri);
1714 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
1715 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1716 public static unowned GLib.File parse_name (string parse_name);
1717 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
1719 public abstract bool prefix_matches (GLib.File file);
1720 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
1721 public bool query_exists (GLib.Cancellable? cancellable = null);
1722 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
1723 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1724 public abstract async unowned GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1725 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1726 public abstract async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1727 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
1728 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
1729 public GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
1730 public abstract async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1732 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1733 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1734 public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1735 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;
1736 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;
1737 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1738 public abstract async unowned GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1739 public abstract GLib.File resolve_relative_path (string relative_path);
1740 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1741 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1742 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1743 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1744 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1745 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1746 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1747 public abstract async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, out unowned GLib.FileInfo info_out) throws GLib.Error;
1748 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1749 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
1750 public abstract async unowned GLib.File set_display_name_async (string display_name, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1751 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1752 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1753 public bool supports_thread_contexts ();
1754 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
1755 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1756 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1758 [CCode (cheader_filename = "gio/gio.h")]
1759 public interface Icon : GLib.Object {
1760 public abstract bool equal (GLib.Icon icon2);
1762 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1763 public abstract uint hash (void* icon);
1764 public static GLib.Icon? new_for_string (string str) throws GLib.Error;
1765 public string to_string ();
1767 public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
1769 [CCode (cheader_filename = "gio/gio.h")]
1770 public interface Initable : GLib.Object {
1771 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
1772 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1773 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;
1774 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
1776 [CCode (cheader_filename = "gio/gio.h")]
1777 public interface LoadableIcon : GLib.Icon, GLib.Object {
1778 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1779 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1781 [CCode (cheader_filename = "gio/gio.h")]
1782 public interface Mount : GLib.Object {
1783 public abstract bool can_eject ();
1784 public abstract bool can_unmount ();
1785 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1786 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1787 public abstract unowned GLib.File get_default_location ();
1788 public abstract unowned GLib.Drive get_drive ();
1789 public abstract unowned GLib.Icon get_icon ();
1790 public abstract unowned string get_name ();
1791 public abstract unowned GLib.File get_root ();
1792 public abstract unowned string get_uuid ();
1793 public abstract unowned GLib.Volume get_volume ();
1794 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1795 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1796 public bool is_shadowed ();
1797 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1798 public void shadow ();
1799 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1800 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1801 public void unshadow ();
1802 public signal void changed ();
1803 public signal void pre_unmount ();
1804 public signal void unmounted ();
1806 [CCode (cheader_filename = "gio/gio.h")]
1807 public interface Proxy : GLib.Object {
1808 public abstract unowned GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1809 public abstract async unowned GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1810 public static unowned GLib.Proxy get_default_for_protocol (string protocol);
1811 public abstract bool supports_hostname ();
1813 [CCode (cheader_filename = "gio/gio.h")]
1814 public interface ProxyResolver : GLib.Object {
1815 public static unowned GLib.ProxyResolver get_default ();
1816 public abstract bool is_supported ();
1817 public abstract unowned string lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1818 public abstract async unowned string lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1820 [CCode (cheader_filename = "gio/gio.h")]
1821 public interface Seekable : GLib.Object {
1822 public abstract bool can_seek ();
1823 public abstract bool can_truncate ();
1824 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1825 public abstract int64 tell ();
1826 [CCode (vfunc_name = "truncate_fn")]
1827 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
1829 [CCode (cheader_filename = "gio/gio.h")]
1830 public interface SocketConnectable : GLib.Object {
1831 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1832 public abstract unowned GLib.SocketAddressEnumerator proxy_enumerate ();
1834 [CCode (cheader_filename = "gio/gio.h")]
1835 public interface Volume : GLib.Object {
1836 public abstract bool can_eject ();
1837 public abstract bool can_mount ();
1838 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1839 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1840 public abstract unowned string enumerate_identifiers ();
1841 public abstract unowned GLib.File get_activation_root ();
1842 public abstract unowned GLib.Drive get_drive ();
1843 public abstract unowned GLib.Icon get_icon ();
1844 public abstract unowned string get_identifier (string kind);
1845 public abstract unowned GLib.Mount get_mount ();
1846 public abstract unowned string get_name ();
1847 public abstract unowned string get_uuid ();
1848 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1850 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1851 public abstract bool should_automount ();
1852 public signal void changed ();
1853 public signal void removed ();
1855 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1857 public enum AppInfoCreateFlags {
1861 SUPPORTS_STARTUP_NOTIFICATION
1863 [CCode (cprefix = "G_APPLICATION_", cheader_filename = "gio/gio.h")]
1865 public enum ApplicationFlags {
1870 HANDLES_COMMAND_LINE,
1873 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1875 public enum AskPasswordFlags {
1882 [CCode (cprefix = "G_BUS_NAME_OWNER_FLAGS_", cheader_filename = "gio/gio.h")]
1884 public enum BusNameOwnerFlags {
1889 [CCode (cprefix = "G_BUS_NAME_WATCHER_FLAGS_", cheader_filename = "gio/gio.h")]
1891 public enum BusNameWatcherFlags {
1895 [CCode (cprefix = "G_BUS_TYPE_", cheader_filename = "gio/gio.h")]
1896 public enum BusType {
1902 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1904 public enum ConverterFlags {
1909 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1910 public enum ConverterResult {
1916 [CCode (cprefix = "G_CREDENTIALS_TYPE_", cheader_filename = "gio/gio.h")]
1917 public enum CredentialsType {
1922 [CCode (cprefix = "G_DBUS_CALL_FLAGS_", cheader_filename = "gio/gio.h")]
1924 public enum DBusCallFlags {
1928 [CCode (cprefix = "G_DBUS_CAPABILITY_FLAGS_", cheader_filename = "gio/gio.h")]
1930 public enum DBusCapabilityFlags {
1934 [CCode (cprefix = "G_DBUS_CONNECTION_FLAGS_", cheader_filename = "gio/gio.h")]
1936 public enum DBusConnectionFlags {
1938 AUTHENTICATION_CLIENT,
1939 AUTHENTICATION_SERVER,
1940 AUTHENTICATION_ALLOW_ANONYMOUS,
1941 MESSAGE_BUS_CONNECTION,
1942 DELAY_MESSAGE_PROCESSING
1944 [CCode (cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1945 public enum DBusMessageByteOrder {
1949 [CCode (cprefix = "G_DBUS_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1951 public enum DBusMessageFlags {
1956 [CCode (cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", cheader_filename = "gio/gio.h")]
1957 public enum DBusMessageHeaderField {
1969 [CCode (cprefix = "G_DBUS_MESSAGE_TYPE_", cheader_filename = "gio/gio.h")]
1970 public enum DBusMessageType {
1977 [CCode (cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", cheader_filename = "gio/gio.h")]
1979 public enum DBusPropertyInfoFlags {
1984 [CCode (cprefix = "G_DBUS_PROXY_FLAGS_", cheader_filename = "gio/gio.h")]
1986 public enum DBusProxyFlags {
1988 DO_NOT_LOAD_PROPERTIES,
1989 DO_NOT_CONNECT_SIGNALS,
1992 [CCode (cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1994 public enum DBusSendMessageFlags {
1998 [CCode (cprefix = "G_DBUS_SERVER_FLAGS_", cheader_filename = "gio/gio.h")]
2000 public enum DBusServerFlags {
2003 AUTHENTICATION_ALLOW_ANONYMOUS
2005 [CCode (cprefix = "G_DBUS_SIGNAL_FLAGS_", cheader_filename = "gio/gio.h")]
2007 public enum DBusSignalFlags {
2010 [CCode (cprefix = "G_DBUS_SUBTREE_FLAGS_", cheader_filename = "gio/gio.h")]
2012 public enum DBusSubtreeFlags {
2014 DISPATCH_TO_UNENUMERATED_NODES
2016 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
2017 public enum DataStreamByteOrder {
2022 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
2023 public enum DataStreamNewlineType {
2029 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
2030 public enum DriveStartFlags {
2033 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
2034 public enum DriveStartStopType {
2041 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
2042 public enum EmblemOrigin {
2048 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
2050 public enum FileAttributeInfoFlags {
2055 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
2056 public enum FileAttributeStatus {
2061 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
2062 public enum FileAttributeType {
2074 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
2076 public enum FileCopyFlags {
2082 NO_FALLBACK_FOR_MOVE,
2083 TARGET_DEFAULT_PERMS
2085 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
2087 public enum FileCreateFlags {
2092 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
2093 public enum FileMonitorEvent {
2103 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
2105 public enum FileMonitorFlags {
2110 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
2112 public enum FileQueryInfoFlags {
2116 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
2117 public enum FileType {
2126 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
2127 public enum FilesystemPreviewType {
2132 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
2133 public enum MountMountFlags {
2136 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
2137 public enum MountOperationResult {
2142 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
2144 public enum MountUnmountFlags {
2148 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
2150 public enum OutputStreamSpliceFlags {
2155 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
2156 public enum PasswordSave {
2161 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
2162 public enum ResolverError {
2167 [CCode (cprefix = "G_SETTINGS_BIND_", cheader_filename = "gio/gio.h")]
2169 public enum SettingsBindFlags {
2177 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
2178 public enum SocketFamily {
2184 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
2185 public enum SocketMsgFlags {
2191 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
2192 public enum SocketProtocol {
2199 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
2200 public enum SocketType {
2206 [CCode (cprefix = "G_UNIX_SOCKET_ADDRESS_", cheader_filename = "gio/gio.h")]
2207 public enum UnixSocketAddressType {
2214 [CCode (cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", cheader_filename = "gio/gio.h")]
2215 public enum ZlibCompressorFormat {
2220 [CCode (cprefix = "G_DBUS_ERROR_", cheader_filename = "gio/gio.h")]
2221 public errordomain DBusError {
2243 MATCH_RULE_NOT_FOUND,
2248 SPAWN_CHILD_SIGNALED,
2251 SPAWN_CONFIG_INVALID,
2252 SPAWN_SERVICE_INVALID,
2253 SPAWN_SERVICE_NOT_FOUND,
2254 SPAWN_PERMISSIONS_INVALID,
2257 UNIX_PROCESS_ID_UNKNOWN,
2259 INVALID_FILE_CONTENT,
2260 SELINUX_SECURITY_CONTEXT_UNKNOWN,
2261 ADT_AUDIT_DATA_UNKNOWN,
2264 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
2265 public errordomain IOError {
2297 TOO_MANY_OPEN_FILES,
2304 NETWORK_UNREACHABLE,
2311 [CCode (cheader_filename = "gio/gio.h")]
2312 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
2313 [CCode (cheader_filename = "gio/gio.h")]
2314 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
2315 [CCode (cheader_filename = "gio/gio.h")]
2316 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
2317 [CCode (cheader_filename = "gio/gio.h")]
2318 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
2319 [CCode (cheader_filename = "gio/gio.h")]
2320 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
2321 [CCode (cheader_filename = "gio/gio.h")]
2322 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
2323 [CCode (cheader_filename = "gio/gio.h")]
2324 public delegate unowned GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Error error);
2325 [CCode (cheader_filename = "gio/gio.h")]
2326 public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
2327 [CCode (cheader_filename = "gio/gio.h")]
2328 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value, GLib.Error error);
2329 [CCode (cheader_filename = "gio/gio.h")]
2330 public delegate unowned GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2331 [CCode (cheader_filename = "gio/gio.h")]
2332 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
2333 [CCode (cheader_filename = "gio/gio.h")]
2334 public delegate unowned GLib.DBusInterfaceVTable DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
2335 [CCode (cheader_filename = "gio/gio.h")]
2336 public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
2337 [CCode (cheader_filename = "gio/gio.h")]
2338 public delegate unowned GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2339 [CCode (cheader_filename = "gio/gio.h")]
2340 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2341 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2342 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
2343 [CCode (cheader_filename = "gio/gio.h")]
2344 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
2345 [CCode (cheader_filename = "gio/gio.h")]
2346 public delegate void PeriodicRepairFunc (GLib.Periodic periodic);
2347 [CCode (cheader_filename = "gio/gio.h")]
2348 public delegate void PeriodicTickFunc (GLib.Periodic periodic, uint64 timestamp);
2349 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2350 public delegate void* ReallocFunc (void* data, size_t size);
2351 [CCode (cheader_filename = "gio/gio.h")]
2352 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
2353 [CCode (cheader_filename = "gio/gio.h")]
2354 public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
2355 [CCode (cheader_filename = "gio/gio.h")]
2356 public delegate bool SettingsGetMapping (GLib.Variant value, void* result);
2357 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2358 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
2359 [CCode (cheader_filename = "gio/gio.h")]
2360 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
2361 [CCode (cheader_filename = "gio/gio.h")]
2362 public static GLib.EqualFunc file_equal;
2363 [CCode (cheader_filename = "gio/gio.h")]
2364 public static GLib.HashFunc file_hash;
2365 [CCode (cheader_filename = "gio/gio.h")]
2366 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
2367 [CCode (cheader_filename = "gio/gio.h")]
2368 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
2369 [CCode (cheader_filename = "gio/gio.h")]
2370 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
2371 [CCode (cheader_filename = "gio/gio.h")]
2372 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
2373 [CCode (cheader_filename = "gio/gio.h")]
2374 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
2375 [CCode (cheader_filename = "gio/gio.h")]
2376 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
2377 [CCode (cheader_filename = "gio/gio.h")]
2378 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
2379 [CCode (cheader_filename = "gio/gio.h")]
2380 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
2381 [CCode (cheader_filename = "gio/gio.h")]
2382 public const string FILE_ATTRIBUTE_ETAG_VALUE;
2383 [CCode (cheader_filename = "gio/gio.h")]
2384 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
2385 [CCode (cheader_filename = "gio/gio.h")]
2386 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
2387 [CCode (cheader_filename = "gio/gio.h")]
2388 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
2389 [CCode (cheader_filename = "gio/gio.h")]
2390 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
2391 [CCode (cheader_filename = "gio/gio.h")]
2392 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
2393 [CCode (cheader_filename = "gio/gio.h")]
2394 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
2395 [CCode (cheader_filename = "gio/gio.h")]
2396 public const string FILE_ATTRIBUTE_ID_FILE;
2397 [CCode (cheader_filename = "gio/gio.h")]
2398 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
2399 [CCode (cheader_filename = "gio/gio.h")]
2400 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
2401 [CCode (cheader_filename = "gio/gio.h")]
2402 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
2403 [CCode (cheader_filename = "gio/gio.h")]
2404 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
2405 [CCode (cheader_filename = "gio/gio.h")]
2406 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
2407 [CCode (cheader_filename = "gio/gio.h")]
2408 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
2409 [CCode (cheader_filename = "gio/gio.h")]
2410 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
2411 [CCode (cheader_filename = "gio/gio.h")]
2412 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
2413 [CCode (cheader_filename = "gio/gio.h")]
2414 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
2415 [CCode (cheader_filename = "gio/gio.h")]
2416 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
2417 [CCode (cheader_filename = "gio/gio.h")]
2418 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
2419 [CCode (cheader_filename = "gio/gio.h")]
2420 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
2421 [CCode (cheader_filename = "gio/gio.h")]
2422 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
2423 [CCode (cheader_filename = "gio/gio.h")]
2424 public const string FILE_ATTRIBUTE_OWNER_GROUP;
2425 [CCode (cheader_filename = "gio/gio.h")]
2426 public const string FILE_ATTRIBUTE_OWNER_USER;
2427 [CCode (cheader_filename = "gio/gio.h")]
2428 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
2429 [CCode (cheader_filename = "gio/gio.h")]
2430 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
2431 [CCode (cheader_filename = "gio/gio.h")]
2432 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
2433 [CCode (cheader_filename = "gio/gio.h")]
2434 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
2435 [CCode (cheader_filename = "gio/gio.h")]
2436 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
2437 [CCode (cheader_filename = "gio/gio.h")]
2438 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
2439 [CCode (cheader_filename = "gio/gio.h")]
2440 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
2441 [CCode (cheader_filename = "gio/gio.h")]
2442 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
2443 [CCode (cheader_filename = "gio/gio.h")]
2444 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
2445 [CCode (cheader_filename = "gio/gio.h")]
2446 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
2447 [CCode (cheader_filename = "gio/gio.h")]
2448 public const string FILE_ATTRIBUTE_STANDARD_ICON;
2449 [CCode (cheader_filename = "gio/gio.h")]
2450 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
2451 [CCode (cheader_filename = "gio/gio.h")]
2452 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
2453 [CCode (cheader_filename = "gio/gio.h")]
2454 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
2455 [CCode (cheader_filename = "gio/gio.h")]
2456 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
2457 [CCode (cheader_filename = "gio/gio.h")]
2458 public const string FILE_ATTRIBUTE_STANDARD_NAME;
2459 [CCode (cheader_filename = "gio/gio.h")]
2460 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
2461 [CCode (cheader_filename = "gio/gio.h")]
2462 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
2463 [CCode (cheader_filename = "gio/gio.h")]
2464 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
2465 [CCode (cheader_filename = "gio/gio.h")]
2466 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
2467 [CCode (cheader_filename = "gio/gio.h")]
2468 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
2469 [CCode (cheader_filename = "gio/gio.h")]
2470 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
2471 [CCode (cheader_filename = "gio/gio.h")]
2472 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
2473 [CCode (cheader_filename = "gio/gio.h")]
2474 public const string FILE_ATTRIBUTE_TIME_ACCESS;
2475 [CCode (cheader_filename = "gio/gio.h")]
2476 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
2477 [CCode (cheader_filename = "gio/gio.h")]
2478 public const string FILE_ATTRIBUTE_TIME_CHANGED;
2479 [CCode (cheader_filename = "gio/gio.h")]
2480 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
2481 [CCode (cheader_filename = "gio/gio.h")]
2482 public const string FILE_ATTRIBUTE_TIME_CREATED;
2483 [CCode (cheader_filename = "gio/gio.h")]
2484 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
2485 [CCode (cheader_filename = "gio/gio.h")]
2486 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
2487 [CCode (cheader_filename = "gio/gio.h")]
2488 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
2489 [CCode (cheader_filename = "gio/gio.h")]
2490 public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
2491 [CCode (cheader_filename = "gio/gio.h")]
2492 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
2493 [CCode (cheader_filename = "gio/gio.h")]
2494 public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
2495 [CCode (cheader_filename = "gio/gio.h")]
2496 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
2497 [CCode (cheader_filename = "gio/gio.h")]
2498 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
2499 [CCode (cheader_filename = "gio/gio.h")]
2500 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
2501 [CCode (cheader_filename = "gio/gio.h")]
2502 public const string FILE_ATTRIBUTE_UNIX_GID;
2503 [CCode (cheader_filename = "gio/gio.h")]
2504 public const string FILE_ATTRIBUTE_UNIX_INODE;
2505 [CCode (cheader_filename = "gio/gio.h")]
2506 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
2507 [CCode (cheader_filename = "gio/gio.h")]
2508 public const string FILE_ATTRIBUTE_UNIX_MODE;
2509 [CCode (cheader_filename = "gio/gio.h")]
2510 public const string FILE_ATTRIBUTE_UNIX_NLINK;
2511 [CCode (cheader_filename = "gio/gio.h")]
2512 public const string FILE_ATTRIBUTE_UNIX_RDEV;
2513 [CCode (cheader_filename = "gio/gio.h")]
2514 public const string FILE_ATTRIBUTE_UNIX_UID;
2515 [CCode (cheader_filename = "gio/gio.h")]
2516 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2517 [CCode (cheader_filename = "gio/gio.h")]
2518 public const string PROXY_EXTENSION_POINT_NAME;
2519 [CCode (cheader_filename = "gio/gio.h")]
2520 public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
2521 [CCode (cheader_filename = "gio/gio.h")]
2522 public const string VFS_EXTENSION_POINT_NAME;
2523 [CCode (cheader_filename = "gio/gio.h")]
2524 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
2525 [CCode (cheader_filename = "gio/gio.h")]
2526 public const string VOLUME_IDENTIFIER_KIND_LABEL;
2527 [CCode (cheader_filename = "gio/gio.h")]
2528 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
2529 [CCode (cheader_filename = "gio/gio.h")]
2530 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
2531 [CCode (cheader_filename = "gio/gio.h")]
2532 public const string VOLUME_IDENTIFIER_KIND_UUID;
2533 [CCode (cheader_filename = "gio/gio.h")]
2534 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
2535 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
2536 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
2537 public static bool g_content_type_can_be_executable (string type);
2538 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.equals")]
2539 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
2540 public static bool g_content_type_equals (string type1, string type2);
2541 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
2542 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
2543 public static string g_content_type_from_mime_type (string mime_type);
2544 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
2545 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
2546 public static string g_content_type_get_description (string type);
2547 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
2548 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
2549 public static GLib.Icon g_content_type_get_icon (string type);
2550 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
2551 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
2552 public static string g_content_type_get_mime_type (string type);
2553 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess")]
2554 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
2555 public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
2556 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
2557 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
2558 public static string g_content_type_guess_for_tree (GLib.File root);
2559 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
2560 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
2561 public static bool g_content_type_is_a (string type, string supertype);
2562 [Deprecated (since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
2563 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
2564 public static bool g_content_type_is_unknown (string type);
2565 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
2566 public static GLib.List<string> g_content_types_get_registered ();
2567 [CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
2568 public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2569 [CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
2570 public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
2571 [CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
2572 public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
2573 [CCode (cname = "g_dbus_address_get_stream_sync", cheader_filename = "gio/gio.h")]
2574 public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
2575 [CCode (cname = "g_dbus_error_encode_gerror", cheader_filename = "gio/gio.h")]
2576 public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
2577 [CCode (cname = "g_dbus_error_get_remote_error", cheader_filename = "gio/gio.h")]
2578 public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
2579 [CCode (cname = "g_dbus_error_is_remote_error", cheader_filename = "gio/gio.h")]
2580 public static bool g_dbus_error_is_remote_error (GLib.Error error);
2581 [CCode (cname = "g_dbus_error_new_for_dbus_error", cheader_filename = "gio/gio.h")]
2582 public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
2583 [CCode (cname = "g_dbus_error_quark", cheader_filename = "gio/gio.h")]
2584 public static GLib.Quark g_dbus_error_quark ();
2585 [CCode (cname = "g_dbus_error_register_error", cheader_filename = "gio/gio.h")]
2586 public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2587 [CCode (cname = "g_dbus_error_register_error_domain", cheader_filename = "gio/gio.h")]
2588 public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
2589 [CCode (cname = "g_dbus_error_set_dbus_error", cheader_filename = "gio/gio.h")]
2590 public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
2591 [CCode (cname = "g_dbus_error_set_dbus_error_valist", cheader_filename = "gio/gio.h")]
2592 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;
2593 [CCode (cname = "g_dbus_error_strip_remote_error", cheader_filename = "gio/gio.h")]
2594 public static bool g_dbus_error_strip_remote_error (GLib.Error error);
2595 [CCode (cname = "g_dbus_error_unregister_error", cheader_filename = "gio/gio.h")]
2596 public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2597 [CCode (cname = "g_dbus_generate_guid", cheader_filename = "gio/gio.h")]
2598 public static unowned string g_dbus_generate_guid ();
2599 [CCode (cname = "g_dbus_is_address", cheader_filename = "gio/gio.h")]
2600 public static bool g_dbus_is_address (string str);
2601 [CCode (cname = "g_dbus_is_guid", cheader_filename = "gio/gio.h")]
2602 public static bool g_dbus_is_guid (string str);
2603 [CCode (cname = "g_dbus_is_interface_name", cheader_filename = "gio/gio.h")]
2604 public static bool g_dbus_is_interface_name (string str);
2605 [CCode (cname = "g_dbus_is_member_name", cheader_filename = "gio/gio.h")]
2606 public static bool g_dbus_is_member_name (string str);
2607 [CCode (cname = "g_dbus_is_name", cheader_filename = "gio/gio.h")]
2608 public static bool g_dbus_is_name (string str);
2609 [CCode (cname = "g_dbus_is_supported_address", cheader_filename = "gio/gio.h")]
2610 public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
2611 [CCode (cname = "g_dbus_is_unique_name", cheader_filename = "gio/gio.h")]
2612 public static bool g_dbus_is_unique_name (string str);
2613 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
2614 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
2615 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
2616 public static GLib.Quark g_io_error_quark ();
2617 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
2618 public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
2619 [CCode (cname = "g_io_modules_scan_all_in_directory", cheader_filename = "gio/gio.h")]
2620 public static void g_io_modules_scan_all_in_directory (string dirname);
2621 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
2622 public static void g_io_scheduler_cancel_all_jobs ();
2623 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
2624 public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
2625 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
2626 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
2627 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
2628 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);