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 (cheader_filename = "gio/gio.h")]
29 public class AppLaunchContext : GLib.Object {
30 [CCode (has_construct_function = false)]
31 public AppLaunchContext ();
32 public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
33 public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
34 public virtual void launch_failed (string startup_notify_id);
36 [CCode (cheader_filename = "gio/gio.h")]
37 public class Application : GLib.Object, GLib.Initable {
38 [CCode (has_construct_function = false)]
39 public Application (string appid, [CCode (array_length_pos = 1.9)] ref unowned string[]? argv = null);
40 public void add_action (string name, string description);
41 public unowned string get_action_description (string name);
42 public bool get_action_enabled (string name);
43 public unowned string get_id ();
44 public static unowned GLib.Application get_instance ();
45 public void invoke_action (string name, GLib.Variant platform_data);
46 public unowned string list_actions ();
47 [CCode (cname = "g_application_quit_with_data")]
48 public bool quit (GLib.Variant? platform_data = null);
49 public bool register ();
50 public void remove_action (string name);
51 public virtual void run ();
52 public void set_action_enabled (string name, bool enabled);
53 public static unowned GLib.Application try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
54 public static unowned GLib.Application unregistered_try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
56 public string application_id { owned get; construct; }
58 public GLib.Variant argv { owned get; construct; }
60 public bool default_quit { get; construct; }
62 public bool is_remote { get; }
64 public GLib.Variant platform_data { owned get; construct; }
65 public virtual signal void action_with_data (string action_name, GLib.Variant platform_data);
66 public virtual signal void prepare_activation (GLib.Variant arguments, GLib.Variant platform_data);
68 public virtual signal bool quit_with_data (GLib.Variant? platform_data);
70 [CCode (cheader_filename = "gio/gio.h")]
71 public class BufferedInputStream : GLib.FilterInputStream {
72 [CCode (type = "GInputStream*", has_construct_function = false)]
73 public BufferedInputStream (GLib.InputStream base_stream);
74 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
75 public virtual async ssize_t fill_async (ssize_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
76 public size_t get_available ();
77 public size_t get_buffer_size ();
78 public size_t peek ([CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] buffer, size_t offset = 0);
79 [CCode (array_length_type = "gsize")]
80 public unowned uint8[] peek_buffer ();
81 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
82 public void set_buffer_size (size_t size);
83 [CCode (type = "GInputStream*", has_construct_function = false)]
84 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
85 public uint buffer_size { get; set construct; }
87 [CCode (cheader_filename = "gio/gio.h")]
88 public class BufferedOutputStream : GLib.FilterOutputStream {
89 [CCode (type = "GOutputStream*", has_construct_function = false)]
90 public BufferedOutputStream (GLib.OutputStream base_stream);
91 public bool get_auto_grow ();
92 public size_t get_buffer_size ();
93 public void set_auto_grow (bool auto_grow);
94 public void set_buffer_size (size_t size);
95 [CCode (type = "GOutputStream*", has_construct_function = false)]
96 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
97 public bool auto_grow { get; set; }
98 public uint buffer_size { get; set construct; }
100 [CCode (cheader_filename = "gio/gio.h")]
101 public class Cancellable : GLib.Object {
102 [CCode (has_construct_function = false)]
103 public Cancellable ();
104 public void cancel ();
105 public ulong connect (GLib.Callback callback, void* data, GLib.DestroyNotify data_destroy_func);
106 public void disconnect (ulong handler_id);
107 public static unowned GLib.Cancellable get_current ();
108 public int get_fd ();
109 public bool is_cancelled ();
110 public bool make_pollfd (GLib.PollFD pollfd);
111 public void pop_current ();
112 public void push_current ();
113 public void release_fd ();
114 public void reset ();
115 public bool set_error_if_cancelled () throws GLib.Error;
116 public virtual signal void cancelled ();
118 [CCode (cheader_filename = "gio/gio.h")]
119 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
120 [CCode (has_construct_function = false)]
121 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
122 public uint get_num_fallbacks ();
123 public bool get_use_fallback ();
124 public void set_use_fallback (bool use_fallback);
126 public string from_charset { owned get; construct; }
128 public string to_charset { owned get; construct; }
129 public bool use_fallback { get; set construct; }
131 [CCode (cheader_filename = "gio/gio.h")]
132 public class ConverterInputStream : GLib.FilterInputStream {
133 [CCode (type = "GInputStream*", has_construct_function = false)]
134 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
135 public unowned GLib.Converter get_converter ();
136 public GLib.Converter converter { get; construct; }
138 [CCode (cheader_filename = "gio/gio.h")]
139 public class ConverterOutputStream : GLib.FilterOutputStream {
140 [CCode (type = "GOutputStream*", has_construct_function = false)]
141 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
142 public unowned GLib.Converter get_converter ();
143 public GLib.Converter converter { get; construct; }
145 [CCode (cheader_filename = "gio/gio.h")]
146 public class Credentials : GLib.Object {
147 [CCode (has_construct_function = false)]
148 public Credentials ();
149 public void* get_native (GLib.CredentialsType native_type);
150 public uint get_unix_user () throws GLib.Error;
151 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
152 public void set_native (GLib.CredentialsType native_type, void* native);
153 public bool set_unix_user (uint uid) throws GLib.Error;
154 public unowned string to_string ();
157 [CCode (cheader_filename = "gio/gio.h")]
158 public class CredentialsClass {
161 [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")]
162 public class DBusAnnotationInfo {
163 public weak GLib.DBusAnnotationInfo annotations;
164 public weak string key;
165 public int ref_count;
166 public weak string value;
167 public unowned string lookup (string name);
170 [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")]
171 public class DBusArgInfo {
172 public weak GLib.DBusAnnotationInfo annotations;
173 public weak string name;
174 public int ref_count;
175 public weak string signature;
177 [CCode (cheader_filename = "gio/gio.h")]
178 public class DBusAuthObserver : GLib.Object {
179 [CCode (has_construct_function = false)]
180 public DBusAuthObserver ();
182 public virtual signal bool authorize_authenticated_peer (GLib.IOStream p0, GLib.Credentials p1);
184 [CCode (cheader_filename = "gio/gio.h")]
185 public class DBusConnection : GLib.Object, GLib.Initable, GLib.AsyncInitable {
186 [CCode (type = "void", has_construct_function = false)]
187 public async DBusConnection (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
188 public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
189 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;
190 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;
191 public void close (GLib.Cancellable? cancellable = null, GLib.AsyncReadyCallback callback);
192 public bool close_finish (GLib.AsyncResult res) throws GLib.Error;
193 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
194 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
195 public void flush (GLib.Cancellable? cancellable = null, GLib.AsyncReadyCallback callback);
196 public bool flush_finish (GLib.AsyncResult res) throws GLib.Error;
197 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
198 [CCode (type = "void", has_construct_function = false)]
199 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
200 [CCode (has_construct_function = false)]
201 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
202 public GLib.DBusCapabilityFlags get_capabilities ();
203 public bool get_exit_on_close ();
204 public unowned string get_guid ();
205 public unowned GLib.Credentials get_peer_credentials ();
206 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
207 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
208 public unowned GLib.IOStream get_stream ();
209 public unowned string get_unique_name ();
210 public bool is_closed ();
211 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
212 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
213 public void remove_filter (uint filter_id);
214 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, uint32 out_serial) throws GLib.Error;
215 public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
216 public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
217 public void set_exit_on_close (bool exit_on_close);
218 public uint signal_subscribe (string sender, string interface_name, string member, string object_path, string arg0, GLib.DBusSignalFlags flags, GLib.DBusSignalCallback callback, GLib.DestroyNotify user_data_free_func);
219 public void signal_unsubscribe (uint subscription_id);
220 public void start_message_processing ();
221 [CCode (has_construct_function = false)]
222 public DBusConnection.sync (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
223 public bool unregister_object (uint registration_id);
224 public bool unregister_subtree (uint registration_id);
225 public string address { construct; }
226 public GLib.DBusAuthObserver authentication_observer { construct; }
227 public GLib.DBusCapabilityFlags capabilities { get; }
228 public bool exit_on_close { get; set; }
229 public GLib.DBusConnectionFlags flags { construct; }
230 public string guid { get; construct; }
231 public GLib.IOStream stream { get; construct; }
232 public string unique_name { get; }
233 public virtual signal void closed (bool p0, GLib.Error p1);
236 [CCode (cheader_filename = "gio/gio.h")]
237 public class DBusErrorEntry {
238 public weak string dbus_error_name;
239 public int error_code;
242 [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")]
243 public class DBusInterfaceInfo {
244 public weak GLib.DBusAnnotationInfo annotations;
245 public weak GLib.DBusMethodInfo methods;
246 public weak string name;
247 public weak GLib.DBusPropertyInfo properties;
248 public int ref_count;
249 public weak GLib.DBusSignalInfo signals;
250 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
251 public unowned GLib.DBusMethodInfo lookup_method (string name);
252 public unowned GLib.DBusPropertyInfo lookup_property (string name);
253 public unowned GLib.DBusSignalInfo lookup_signal (string name);
256 [CCode (cheader_filename = "gio/gio.h")]
257 public class DBusInterfaceVTable {
258 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
259 public weak GLib.DBusInterfaceMethodCallFunc method_call;
260 public void* padding;
261 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
263 [CCode (cheader_filename = "gio/gio.h")]
264 public class DBusMessage : GLib.Object {
265 [CCode (has_construct_function = false)]
266 public DBusMessage ();
267 public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
268 public unowned GLib.DBusMessage copy () throws GLib.Error;
269 [CCode (has_construct_function = false)]
270 public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
271 public unowned string get_arg0 ();
272 public unowned GLib.Variant get_body ();
273 public GLib.DBusMessageByteOrder get_byte_order ();
274 public unowned string get_destination ();
275 public unowned string get_error_name ();
276 public GLib.DBusMessageFlags get_flags ();
277 public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
278 public unowned uchar[] get_header_fields ();
279 public unowned string get_interface ();
280 public bool get_locked ();
281 public unowned string get_member ();
282 public GLib.DBusMessageType get_message_type ();
283 public uint32 get_num_unix_fds ();
284 public unowned string get_path ();
285 public uint32 get_reply_serial ();
286 public unowned string get_sender ();
287 public uint32 get_serial ();
288 public unowned string get_signature ();
289 public unowned GLib.UnixFDList get_unix_fd_list ();
290 public void @lock ();
291 [CCode (has_construct_function = false)]
292 public DBusMessage.method_call (string name, string path, string interface_, string method);
293 [CCode (has_construct_function = false)]
294 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format);
295 [CCode (has_construct_function = false)]
296 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
297 [CCode (has_construct_function = false)]
298 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, void* var_args);
299 [CCode (has_construct_function = false)]
300 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
301 public unowned string print (uint indent);
302 public void set_body (GLib.Variant body);
303 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
304 public void set_destination (string value);
305 public void set_error_name (string value);
306 public void set_flags (GLib.DBusMessageFlags flags);
307 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant value);
308 public void set_interface (string value);
309 public void set_member (string value);
310 public void set_message_type (GLib.DBusMessageType type);
311 public void set_num_unix_fds (uint32 value);
312 public void set_path (string value);
313 public void set_reply_serial (uint32 value);
314 public void set_sender (string value);
315 public void set_serial (uint32 serial);
316 public void set_signature (string value);
317 public void set_unix_fd_list (GLib.UnixFDList fd_list);
318 [CCode (has_construct_function = false)]
319 public DBusMessage.@signal (string path, string interface_, string @signal);
320 public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
321 public bool to_gerror () throws GLib.Error;
322 public bool locked { get; }
325 [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")]
326 public class DBusMethodInfo {
327 public weak GLib.DBusAnnotationInfo annotations;
328 public weak GLib.DBusArgInfo in_args;
329 public weak string name;
330 public weak GLib.DBusArgInfo out_args;
331 public int ref_count;
333 [CCode (cheader_filename = "gio/gio.h")]
334 public class DBusMethodInvocation : GLib.Object {
335 [CCode (has_construct_function = false)]
336 protected DBusMethodInvocation ();
337 public unowned GLib.DBusConnection get_connection ();
338 public unowned string get_interface_name ();
339 public unowned GLib.DBusMessage get_message ();
340 public unowned GLib.DBusMethodInfo get_method_info ();
341 public unowned string get_method_name ();
342 public unowned string get_object_path ();
343 public unowned GLib.Variant get_parameters ();
344 public unowned string get_sender ();
345 public void* get_user_data ();
346 public void return_dbus_error (string error_name, string error_message);
347 public void return_error (GLib.Quark domain, int code, string format);
348 public void return_error_literal (GLib.Quark domain, int code, string message);
349 public void return_error_valist (GLib.Quark domain, int code, string format, void* var_args);
350 public void return_gerror (GLib.Error error);
351 public void return_value (GLib.Variant parameters);
354 [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")]
355 public class DBusNodeInfo {
356 public weak GLib.DBusAnnotationInfo annotations;
357 public weak GLib.DBusInterfaceInfo interfaces;
358 public weak GLib.DBusNodeInfo nodes;
359 public weak string path;
360 public int ref_count;
361 [CCode (has_construct_function = false)]
362 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
363 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
364 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
367 [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")]
368 public class DBusPropertyInfo {
369 public weak GLib.DBusAnnotationInfo annotations;
370 public GLib.DBusPropertyInfoFlags flags;
371 public weak string name;
372 public int ref_count;
373 public weak string signature;
375 [CCode (cheader_filename = "gio/gio.h")]
376 public class DBusProxy : GLib.Object, GLib.Initable, GLib.AsyncInitable {
377 [CCode (type = "void", has_construct_function = false)]
378 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;
379 public async GLib.Variant call (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
380 public GLib.Variant call_sync (string method_name, GLib.Variant parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
381 [CCode (type = "void", has_construct_function = false)]
382 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;
383 [CCode (has_construct_function = false)]
384 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;
385 public unowned GLib.Variant get_cached_property (string property_name);
386 public unowned string get_cached_property_names ();
387 public unowned GLib.DBusConnection get_connection ();
388 public int get_default_timeout ();
389 public GLib.DBusProxyFlags get_flags ();
390 public unowned GLib.DBusInterfaceInfo get_interface_info ();
391 public unowned string get_interface_name ();
392 public unowned string get_name ();
393 public unowned string get_name_owner ();
394 public unowned string get_object_path ();
395 public void set_cached_property (string property_name, GLib.Variant value);
396 public void set_default_timeout (int timeout_msec);
397 public void set_interface_info (GLib.DBusInterfaceInfo info);
398 [CCode (has_construct_function = false)]
399 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;
400 public GLib.BusType g_bus_type { construct; }
402 public GLib.DBusConnection g_connection { owned get; construct; }
404 public int g_default_timeout { get; set construct; }
406 public GLib.DBusProxyFlags g_flags { get; construct; }
408 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
410 public string g_interface_name { owned get; construct; }
412 public string g_name { owned get; construct; }
414 public string g_name_owner { owned get; }
416 public string g_object_path { owned get; construct; }
417 public virtual signal void g_properties_changed (GLib.Variant changed_properties, string[] invalidated_properties);
418 public virtual signal void g_signal (string sender_name, string signal_name, GLib.Variant parameters);
420 [CCode (cheader_filename = "gio/gio.h")]
421 public class DBusServer : GLib.Object, GLib.Initable {
422 [CCode (has_construct_function = false)]
423 protected DBusServer ();
424 public unowned string get_client_address ();
425 public GLib.DBusServerFlags get_flags ();
426 public unowned string get_guid ();
427 public bool is_active ();
428 public void start ();
430 [CCode (has_construct_function = false)]
431 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
433 public bool active { get; }
435 public string address { owned get; construct; }
437 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
438 public string client_address { get; }
439 public GLib.DBusServerFlags flags { get; construct; }
440 public string guid { get; construct; }
441 public virtual signal bool new_connection (GLib.DBusConnection p0);
444 [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")]
445 public class DBusSignalInfo {
446 public weak GLib.DBusAnnotationInfo annotations;
447 public weak GLib.DBusArgInfo args;
448 public weak string name;
449 public int ref_count;
452 [CCode (cheader_filename = "gio/gio.h")]
453 public class DBusSubtreeVTable {
454 public weak GLib.DBusSubtreeDispatchFunc dispatch;
455 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
456 public weak GLib.DBusSubtreeIntrospectFunc introspect;
457 public void* padding;
459 [CCode (cheader_filename = "gio/gio.h")]
460 public class DataInputStream : GLib.BufferedInputStream {
461 [CCode (has_construct_function = false)]
462 public DataInputStream (GLib.InputStream base_stream);
463 public GLib.DataStreamByteOrder get_byte_order ();
464 public GLib.DataStreamNewlineType get_newline_type ();
465 public uchar read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
466 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.Error;
467 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.Error;
468 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.Error;
469 public string? read_line (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
470 public async string? read_line_async (int io_priority, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.Error;
471 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.Error;
472 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.Error;
473 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.Error;
474 public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
475 public async string? read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.Error;
476 public unowned string read_upto (string stop_chars, ssize_t stop_chars_len, size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
477 public async unowned string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
478 public void set_byte_order (GLib.DataStreamByteOrder order);
479 public void set_newline_type (GLib.DataStreamNewlineType type);
480 public GLib.DataStreamByteOrder byte_order { get; set; }
481 public GLib.DataStreamNewlineType newline_type { get; set; }
483 [CCode (cheader_filename = "gio/gio.h")]
484 public class DataOutputStream : GLib.FilterOutputStream {
485 [CCode (has_construct_function = false)]
486 public DataOutputStream (GLib.OutputStream base_stream);
487 public GLib.DataStreamByteOrder get_byte_order ();
488 public bool put_byte (uchar data, GLib.Cancellable? cancellable = null) throws GLib.Error;
489 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
490 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
491 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
492 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.Error;
493 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
494 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
495 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.Error;
496 public void set_byte_order (GLib.DataStreamByteOrder order);
497 public GLib.DataStreamByteOrder byte_order { get; set; }
499 [CCode (cheader_filename = "gio/gio.h")]
500 public class Emblem : GLib.Object, GLib.Icon {
501 [CCode (has_construct_function = false)]
502 public Emblem (GLib.Icon icon);
503 public unowned GLib.Icon get_icon ();
504 public GLib.EmblemOrigin get_origin ();
505 [CCode (has_construct_function = false)]
506 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
507 public GLib.Object icon { get; construct; }
508 public GLib.EmblemOrigin origin { get; construct; }
511 [CCode (cheader_filename = "gio/gio.h")]
512 public class EmblemClass {
514 [CCode (cheader_filename = "gio/gio.h")]
515 public class EmblemedIcon : GLib.Object, GLib.Icon {
516 [CCode (type = "GIcon*", has_construct_function = false)]
517 public EmblemedIcon (GLib.Icon icon, GLib.Emblem emblem);
518 public void add_emblem (GLib.Emblem emblem);
519 public unowned GLib.List<GLib.Emblem> get_emblems ();
520 public unowned GLib.Icon get_icon ();
523 [CCode (cheader_filename = "gio/gio.h")]
524 public class EmblemedIconClass {
527 [CCode (cheader_filename = "gio/gio.h")]
528 public class FileAttributeInfo {
529 public GLib.FileAttributeInfoFlags flags;
530 public weak string name;
531 public GLib.FileAttributeType type;
534 [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")]
535 public class FileAttributeInfoList {
536 public weak GLib.FileAttributeInfo infos;
538 [CCode (has_construct_function = false)]
539 public FileAttributeInfoList ();
540 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
541 public unowned GLib.FileAttributeInfoList dup ();
542 public unowned GLib.FileAttributeInfo lookup (string name);
545 [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")]
546 public class FileAttributeMatcher {
547 [CCode (has_construct_function = false)]
548 public FileAttributeMatcher (string attributes);
549 public bool enumerate_namespace (string ns);
550 public unowned string enumerate_next ();
551 public bool matches (string attribute);
552 public bool matches_only (string attribute);
554 [CCode (cheader_filename = "gio/gio.h")]
555 public class FileEnumerator : GLib.Object {
556 [CCode (has_construct_function = false)]
557 protected FileEnumerator ();
558 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
559 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
561 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
562 public unowned GLib.File get_container ();
563 public bool has_pending ();
564 public bool is_closed ();
565 public virtual GLib.FileInfo next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
566 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
567 public void set_pending (bool pending);
568 public GLib.File container { construct; }
570 [CCode (cheader_filename = "gio/gio.h")]
571 public class FileIOStream : GLib.IOStream, GLib.Seekable {
572 [CCode (has_construct_function = false)]
573 protected FileIOStream ();
575 public virtual bool can_seek ();
577 public virtual bool can_truncate ();
578 public virtual unowned string get_etag ();
579 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
580 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
582 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
584 public virtual int64 tell ();
586 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
588 [CCode (cheader_filename = "gio/gio.h")]
589 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
590 [CCode (type = "GIcon*", has_construct_function = false)]
591 public FileIcon (GLib.File file);
592 public unowned GLib.File get_file ();
593 public GLib.File file { get; construct; }
596 [CCode (cheader_filename = "gio/gio.h")]
597 public class FileIconClass {
599 [CCode (cheader_filename = "gio/gio.h")]
600 public class FileInfo : GLib.Object {
601 [CCode (has_construct_function = false)]
603 public void clear_status ();
604 public void copy_into (GLib.FileInfo dest_info);
605 public unowned GLib.FileInfo dup ();
606 public unowned string get_attribute_as_string (string attribute);
607 public bool get_attribute_boolean (string attribute);
608 public unowned string get_attribute_byte_string (string attribute);
609 public bool get_attribute_data (string attribute, GLib.FileAttributeType? type, void* value_pp, GLib.FileAttributeStatus? status);
610 public int32 get_attribute_int32 (string attribute);
611 public int64 get_attribute_int64 (string attribute);
612 public unowned GLib.Object get_attribute_object (string attribute);
613 public GLib.FileAttributeStatus get_attribute_status (string attribute);
614 public unowned string get_attribute_string (string attribute);
615 public unowned string get_attribute_stringv (string attribute);
616 public GLib.FileAttributeType get_attribute_type (string attribute);
617 public uint32 get_attribute_uint32 (string attribute);
618 public uint64 get_attribute_uint64 (string attribute);
619 public unowned string get_content_type ();
620 public unowned string get_display_name ();
621 public unowned string get_edit_name ();
622 public unowned string get_etag ();
623 public GLib.FileType get_file_type ();
624 public unowned GLib.Icon get_icon ();
625 public bool get_is_backup ();
626 public bool get_is_hidden ();
627 public bool get_is_symlink ();
628 public void get_modification_time (out GLib.TimeVal _result);
629 public unowned string get_name ();
630 public int64 get_size ();
631 public int32 get_sort_order ();
632 public unowned string get_symlink_target ();
633 public bool has_attribute (string attribute);
634 public bool has_namespace (string name_space);
635 public unowned string list_attributes (string name_space);
636 public void remove_attribute (string attribute);
637 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
638 public void set_attribute_boolean (string attribute, bool attr_value);
639 public void set_attribute_byte_string (string attribute, string attr_value);
640 public void set_attribute_int32 (string attribute, int32 attr_value);
641 public void set_attribute_int64 (string attribute, int64 attr_value);
642 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
643 public void set_attribute_object (string attribute, GLib.Object attr_value);
644 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
645 public void set_attribute_string (string attribute, string attr_value);
646 public void set_attribute_stringv (string attribute, out unowned string attr_value);
647 public void set_attribute_uint32 (string attribute, uint32 attr_value);
648 public void set_attribute_uint64 (string attribute, uint64 attr_value);
649 public void set_content_type (string content_type);
650 public void set_display_name (string display_name);
651 public void set_edit_name (string edit_name);
652 public void set_file_type (GLib.FileType type);
653 public void set_icon (GLib.Icon icon);
654 public void set_is_hidden (bool is_hidden);
655 public void set_is_symlink (bool is_symlink);
656 public void set_modification_time (GLib.TimeVal mtime);
657 public void set_name (string name);
658 public void set_size (int64 size);
659 public void set_sort_order (int32 sort_order);
660 public void set_symlink_target (string symlink_target);
661 public void unset_attribute_mask ();
664 [CCode (cheader_filename = "gio/gio.h")]
665 public class FileInfoClass {
667 [CCode (cheader_filename = "gio/gio.h")]
668 public class FileInputStream : GLib.InputStream, GLib.Seekable {
669 [CCode (has_construct_function = false)]
670 protected FileInputStream ();
672 public virtual bool can_seek ();
673 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
674 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
676 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
678 public virtual int64 tell ();
680 [CCode (cheader_filename = "gio/gio.h")]
681 public class FileMonitor : GLib.Object {
682 [CCode (has_construct_function = false)]
683 protected FileMonitor ();
684 public virtual bool cancel ();
685 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
686 public bool is_cancelled ();
687 public void set_rate_limit (int limit_msecs);
689 public bool cancelled { get; }
691 public int rate_limit { get; set; }
692 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
694 [CCode (cheader_filename = "gio/gio.h")]
695 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
696 [CCode (has_construct_function = false)]
697 protected FileOutputStream ();
699 public virtual bool can_seek ();
701 public virtual bool can_truncate ();
702 public virtual unowned string get_etag ();
703 public virtual unowned GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
704 public virtual async unowned GLib.FileInfo query_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
706 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
708 public virtual int64 tell ();
710 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
712 [CCode (cheader_filename = "gio/gio.h")]
713 public class FilenameCompleter : GLib.Object {
714 [CCode (has_construct_function = false)]
715 public FilenameCompleter ();
716 public unowned string get_completion_suffix (string initial_text);
717 public unowned string get_completions (string initial_text);
718 public void set_dirs_only (bool dirs_only);
719 public virtual signal void got_completion_data ();
721 [CCode (cheader_filename = "gio/gio.h")]
722 public class FilterInputStream : GLib.InputStream {
723 [CCode (has_construct_function = false)]
724 protected FilterInputStream ();
725 public unowned GLib.InputStream get_base_stream ();
726 public bool get_close_base_stream ();
727 public void set_close_base_stream (bool close_base);
728 public GLib.InputStream base_stream { get; construct; }
729 public bool close_base_stream { get; construct; }
731 [CCode (cheader_filename = "gio/gio.h")]
732 public class FilterOutputStream : GLib.OutputStream {
733 [CCode (has_construct_function = false)]
734 protected FilterOutputStream ();
735 public unowned GLib.OutputStream get_base_stream ();
736 public bool get_close_base_stream ();
737 public void set_close_base_stream (bool close_base);
738 public GLib.OutputStream base_stream { get; construct; }
739 public bool close_base_stream { get; construct; }
742 [CCode (cheader_filename = "gio/gio.h")]
743 public class IOExtension {
744 public unowned string get_name ();
745 public int get_priority ();
746 public GLib.Type get_type ();
747 public unowned GLib.TypeClass ref_class ();
750 [CCode (cheader_filename = "gio/gio.h")]
751 public class IOExtensionPoint {
752 public unowned GLib.IOExtension get_extension_by_name (string name);
753 public unowned GLib.List<GLib.IOExtension> get_extensions ();
754 public GLib.Type get_required_type ();
755 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
756 public static unowned GLib.IOExtensionPoint lookup (string name);
757 public static unowned GLib.IOExtensionPoint register (string name);
758 public void set_required_type (GLib.Type type);
760 [CCode (cheader_filename = "gio/gio.h")]
761 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
762 [CCode (has_construct_function = false)]
763 public IOModule (string filename);
765 public static unowned string query ();
766 public void unload ();
769 [CCode (cheader_filename = "gio/gio.h")]
770 public class IOModuleClass {
773 [CCode (cheader_filename = "gio/gio.h")]
774 public class IOSchedulerJob {
775 public bool send_to_mainloop (GLib.SourceFunc func, GLib.DestroyNotify? notify);
776 public void send_to_mainloop_async (GLib.SourceFunc func, GLib.DestroyNotify? notify);
778 [CCode (cheader_filename = "gio/gio.h")]
779 public class IOStream : GLib.Object {
780 [CCode (has_construct_function = false)]
781 protected IOStream ();
782 public void clear_pending ();
783 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
784 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
786 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
787 public virtual unowned GLib.InputStream get_input_stream ();
788 public virtual unowned GLib.OutputStream get_output_stream ();
789 public bool has_pending ();
790 public bool is_closed ();
791 public bool set_pending () throws GLib.Error;
793 public bool closed { get; set; }
794 public GLib.InputStream input_stream { get; }
795 public GLib.OutputStream output_stream { get; }
797 [CCode (cheader_filename = "gio/gio.h")]
798 public class InetAddress : GLib.Object {
799 [CCode (has_construct_function = false)]
800 protected InetAddress ();
801 [CCode (has_construct_function = false)]
802 public InetAddress.any (GLib.SocketFamily family);
803 [CCode (has_construct_function = false)]
804 public InetAddress.from_bytes (uchar bytes, GLib.SocketFamily family);
805 [CCode (has_construct_function = false)]
806 public InetAddress.from_string (string str);
807 public GLib.SocketFamily get_family ();
808 public bool get_is_any ();
809 public bool get_is_link_local ();
810 public bool get_is_loopback ();
811 public bool get_is_mc_global ();
812 public bool get_is_mc_link_local ();
813 public bool get_is_mc_node_local ();
814 public bool get_is_mc_org_local ();
815 public bool get_is_mc_site_local ();
816 public bool get_is_multicast ();
817 public bool get_is_site_local ();
818 public size_t get_native_size ();
819 [CCode (has_construct_function = false)]
820 public InetAddress.loopback (GLib.SocketFamily family);
821 [CCode (array_length = false)]
822 public virtual unowned uint8[] to_bytes ();
823 public virtual string to_string ();
825 public void* bytes { get; construct; }
826 public GLib.SocketFamily family { get; construct; }
827 public bool is_any { get; }
828 public bool is_link_local { get; }
829 public bool is_loopback { get; }
830 public bool is_mc_global { get; }
831 public bool is_mc_link_local { get; }
832 public bool is_mc_node_local { get; }
833 public bool is_mc_org_local { get; }
834 public bool is_mc_site_local { get; }
835 public bool is_multicast { get; }
836 public bool is_site_local { get; }
838 [CCode (cheader_filename = "gio/gio.h")]
839 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
840 [CCode (type = "GSocketAddress*", has_construct_function = false)]
841 public InetSocketAddress (GLib.InetAddress address, uint16 port);
842 public unowned GLib.InetAddress get_address ();
843 public uint16 get_port ();
844 public GLib.InetAddress address { get; construct; }
845 public uint port { get; construct; }
847 [CCode (cheader_filename = "gio/gio.h")]
848 public class InputStream : GLib.Object {
849 [CCode (has_construct_function = false)]
850 protected InputStream ();
851 public void clear_pending ();
852 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
853 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
855 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
856 public bool has_pending ();
857 public bool is_closed ();
858 [CCode (vfunc_name = "read_fn")]
859 public virtual ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
860 public bool read_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.Error;
861 public virtual async ssize_t read_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
862 public bool set_pending () throws GLib.Error;
863 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
864 public virtual async ssize_t skip_async (size_t count, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
867 [CCode (cheader_filename = "gio/gio.h")]
868 public class InputVector {
869 [CCode (array_length_cname = "size", array_length_type = "gsize")]
870 public uint8[] buffer;
872 [CCode (cheader_filename = "gio/gio.h")]
873 public class MemoryInputStream : GLib.InputStream, GLib.Seekable {
874 [CCode (type = "GInputStream*", has_construct_function = false)]
875 public MemoryInputStream ();
876 public void add_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
877 [CCode (type = "GInputStream*", has_construct_function = false)]
878 public MemoryInputStream.from_data ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.DestroyNotify? destroy);
880 [CCode (cheader_filename = "gio/gio.h")]
881 public class MemoryOutputStream : GLib.OutputStream, GLib.Seekable {
882 [CCode (type = "GOutputStream*", has_construct_function = false)]
883 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[] data, GLib.ReallocFunc? realloc_function, GLib.DestroyNotify? destroy_function);
884 [CCode (array_length = false)]
885 public unowned uint8[] get_data ();
886 public size_t get_data_size ();
887 public size_t get_size ();
888 [CCode (array_length = false)]
889 public uint8[] steal_data ();
890 public void* data { get; construct; }
891 public ulong data_size { get; }
893 public void* destroy_function { get; construct; }
895 public void* realloc_function { get; construct; }
896 public ulong size { get; construct; }
898 [CCode (cheader_filename = "gio/gio.h")]
899 public class MountOperation : GLib.Object {
900 [CCode (has_construct_function = false)]
901 public MountOperation ();
902 public bool get_anonymous ();
903 public int get_choice ();
904 public unowned string get_domain ();
905 public unowned string get_password ();
906 public GLib.PasswordSave get_password_save ();
907 public unowned string get_username ();
908 public void set_anonymous (bool anonymous);
909 public void set_choice (int choice);
910 public void set_domain (string domain);
911 public void set_password (string password);
912 public void set_password_save (GLib.PasswordSave save);
913 public void set_username (string username);
914 public bool anonymous { get; set; }
915 public int choice { get; set; }
916 public string domain { get; set; }
917 public string password { get; set; }
918 public GLib.PasswordSave password_save { get; set; }
919 public string username { get; set; }
920 public virtual signal void aborted ();
921 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
922 public virtual signal void ask_question (string message, string[] choices);
924 public virtual signal void reply (GLib.MountOperationResult result);
925 public virtual signal void show_processes (string message, GLib.Array processes, string[] choices);
927 [CCode (cheader_filename = "gio/gio.h")]
928 public class NativeVolumeMonitor : GLib.VolumeMonitor {
929 [CCode (has_construct_function = false)]
930 protected NativeVolumeMonitor ();
932 public virtual unowned GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
934 [CCode (cheader_filename = "gio/gio.h")]
935 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
936 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
937 public NetworkAddress (string hostname, uint16 port);
938 public unowned string get_hostname ();
939 public uint16 get_port ();
940 public unowned string get_scheme ();
941 public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
942 public static unowned GLib.SocketConnectable parse_uri (string uri, uint16 default_port) throws GLib.Error;
943 public string hostname { get; construct; }
944 public uint port { get; construct; }
945 public string scheme { get; construct; }
947 [CCode (cheader_filename = "gio/gio.h")]
948 public class NetworkService : GLib.Object, GLib.SocketConnectable {
949 [CCode (type = "GSocketConnectable*", has_construct_function = false)]
950 public NetworkService (string service, string protocol, string domain);
951 public unowned string get_domain ();
952 public unowned string get_protocol ();
953 public unowned string get_scheme ();
954 public unowned string get_service ();
955 public void set_scheme (string scheme);
956 public string domain { get; construct; }
957 public string protocol { get; construct; }
958 public string scheme { get; set; }
959 public string service { get; construct; }
961 [CCode (cheader_filename = "gio/gio.h")]
962 public class OutputStream : GLib.Object {
963 [CCode (has_construct_function = false)]
964 protected OutputStream ();
965 public void clear_pending ();
966 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
967 public virtual async bool close_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
969 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
970 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
971 public virtual async bool flush_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
972 public bool has_pending ();
973 public bool is_closed ();
974 public bool is_closing ();
975 public bool set_pending () throws GLib.Error;
976 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
977 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
978 [CCode (vfunc_name = "write_fn")]
979 public virtual ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
980 public bool write_all ([CCode (array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
981 public virtual async ssize_t write_async ([CCode (array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
984 [CCode (cheader_filename = "gio/gio.h")]
985 public class OutputVector {
986 [CCode (array_length_cname = "size", array_length_type = "gsize")]
987 public uint8[] buffer;
989 [CCode (cheader_filename = "gio/gio.h")]
990 public class Permission : GLib.Object {
991 [CCode (has_construct_function = false)]
992 protected Permission ();
993 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
994 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
995 public bool get_allowed ();
996 public bool get_can_acquire ();
997 public bool get_can_release ();
998 public void impl_update (bool allowed, bool can_acquire, bool can_release);
999 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1000 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1001 public bool allowed { get; }
1002 public bool can_acquire { get; }
1003 public bool can_release { get; }
1005 [CCode (cheader_filename = "gio/gio.h")]
1006 public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
1007 [CCode (type = "GSocketAddress*", has_construct_function = false)]
1008 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string username, string password);
1009 public unowned string get_destination_hostname ();
1010 public uint16 get_destination_port ();
1011 public unowned string get_password ();
1012 public unowned string get_protocol ();
1013 public unowned string get_username ();
1014 public string destination_hostname { get; construct; }
1015 public uint destination_port { get; construct; }
1016 public string password { get; construct; }
1017 public string protocol { get; construct; }
1018 public string username { get; construct; }
1020 [CCode (cheader_filename = "gio/gio.h")]
1021 public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
1022 [CCode (has_construct_function = false)]
1023 protected ProxyAddressEnumerator ();
1025 public GLib.SocketConnectable connectable { owned get; construct; }
1027 public string uri { owned get; construct; }
1029 [CCode (cheader_filename = "gio/gio.h")]
1030 public class Resolver : GLib.Object {
1031 [CCode (has_construct_function = false)]
1032 protected Resolver ();
1033 public static GLib.Quark error_quark ();
1034 public static unowned GLib.Resolver get_default ();
1035 public virtual unowned string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1036 public virtual async unowned string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1037 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1038 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
1039 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1040 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
1041 public void set_default ();
1042 public virtual signal void reload ();
1044 [CCode (cheader_filename = "gio/gio.h")]
1045 public class Settings : GLib.Object {
1046 [CCode (has_construct_function = false)]
1047 public Settings (string schema);
1048 public void apply ();
1049 public void bind (string key, void* object, string property, GLib.SettingsBindFlags flags);
1050 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);
1051 public void bind_writable (string key, void* object, string property, bool inverted);
1052 public void delay ();
1053 [CCode (sentinel = "")]
1054 public void @get (string key, string format, ...);
1055 public bool get_boolean (string key);
1056 public unowned GLib.Settings get_child (string name);
1057 public double get_double (string key);
1058 public int get_enum (string key);
1059 public uint get_flags (string key);
1060 public bool get_has_unapplied ();
1061 public int get_int (string key);
1062 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
1063 public unowned string get_string (string key);
1064 [CCode (array_length = false, array_null_terminated = true)]
1065 public string[] get_strv (string key);
1066 public GLib.Variant get_value (string key);
1067 public bool is_writable (string name);
1068 [CCode (array_length = false, array_null_terminated = true)]
1069 public string[] list_children ();
1070 [CCode (array_length = false, array_null_terminated = true)]
1071 public string[] list_keys ();
1072 [CCode (array_length = false, array_null_terminated = true)]
1073 public static unowned string[] list_schemas ();
1074 public void reset (string key);
1075 public void revert ();
1076 [CCode (sentinel = "")]
1077 public bool @set (string key, string format, ...);
1078 public bool set_boolean (string key, bool value);
1079 public bool set_double (string key, double value);
1080 public bool set_enum (string key, int value);
1081 public bool set_flags (string key, uint value);
1082 public bool set_int (string key, int value);
1083 public bool set_string (string key, string value);
1084 public bool set_strv (string key, [CCode (array_length = false)] string[] value);
1085 public bool set_value (string key, GLib.Variant value);
1086 public static void sync ();
1087 public static void unbind (void* object, string property);
1088 [CCode (has_construct_function = false)]
1089 public Settings.with_backend (string schema, GLib.SettingsBackend backend);
1090 [CCode (has_construct_function = false)]
1091 public Settings.with_backend_and_path (string schema, GLib.SettingsBackend backend, string path);
1092 [CCode (has_construct_function = false)]
1093 public Settings.with_path (string schema, string path);
1095 public GLib.SettingsBackend backend { owned get; construct; }
1096 public bool has_unapplied { get; }
1098 public string path { owned get; construct; }
1100 public string schema { owned get; construct; }
1101 public virtual signal bool change_event (void* keys, int n_keys);
1102 public virtual signal void changed (string key);
1103 public virtual signal bool writable_change_event (uint key);
1104 public virtual signal void writable_changed (string key);
1106 [CCode (cheader_filename = "gio/gio.h")]
1107 public class SettingsBackend : GLib.Object {
1109 [CCode (cheader_filename = "gio/gio.h")]
1110 public class SimpleAction : GLib.Object, GLib.Action {
1111 [CCode (has_construct_function = false)]
1112 public SimpleAction (string name, GLib.VariantType parameter_type);
1113 public void set_enabled (bool enabled);
1114 [CCode (has_construct_function = false)]
1115 public SimpleAction.stateful (string name, GLib.VariantType parameter_type, GLib.Variant state);
1117 public bool enabled { get; set construct; }
1119 public string name { owned get; construct; }
1121 public GLib.VariantType parameter_type { owned get; construct; }
1123 public GLib.Variant state { owned get; set construct; }
1125 public GLib.VariantType state_type { owned get; }
1126 public virtual signal void activate (GLib.Variant parameter);
1128 [CCode (cheader_filename = "gio/gio.h")]
1129 public class SimpleActionGroup : GLib.Object, GLib.ActionGroup {
1130 [CCode (has_construct_function = false)]
1131 public SimpleActionGroup ();
1132 public void insert (GLib.Action action);
1133 public unowned GLib.Action lookup (string action_name);
1134 public void remove (string action_name);
1136 [CCode (cheader_filename = "gio/gio.h")]
1137 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
1138 [CCode (has_construct_function = false)]
1139 public SimpleAsyncResult (GLib.Object? source_object, GLib.AsyncReadyCallback callback, void* source_tag);
1140 public void complete ();
1141 public void complete_in_idle ();
1142 [CCode (has_construct_function = false)]
1143 public SimpleAsyncResult.error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
1144 [CCode (has_construct_function = false)]
1145 public SimpleAsyncResult.from_error (GLib.Object source_object, GLib.AsyncReadyCallback callback, GLib.Error error);
1146 public bool get_op_res_gboolean ();
1147 public void* get_op_res_gpointer ();
1148 public ssize_t get_op_res_gssize ();
1149 public void* get_source_tag ();
1150 public static bool is_valid (GLib.AsyncResult _result, GLib.Object source, void* source_tag);
1151 public bool propagate_error () throws GLib.Error;
1152 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable? cancellable = null);
1153 public void set_error (GLib.Quark domain, int code, string format);
1154 public void set_error_va (GLib.Quark domain, int code, string format, void* args);
1155 public void set_from_error (GLib.Error error);
1156 public void set_handle_cancellation (bool handle_cancellation);
1157 public void set_op_res_gboolean (bool op_res);
1158 public void set_op_res_gpointer (void* op_res, GLib.DestroyNotify destroy_op_res);
1159 public void set_op_res_gssize (ssize_t op_res);
1162 [CCode (cheader_filename = "gio/gio.h")]
1163 public class SimpleAsyncResultClass {
1165 [CCode (cheader_filename = "gio/gio.h")]
1166 public class SimplePermission : GLib.Permission {
1167 [CCode (type = "GPermission*", has_construct_function = false)]
1168 public SimplePermission (bool allowed);
1170 [CCode (cheader_filename = "gio/gio.h")]
1171 public class Socket : GLib.Object, GLib.Initable {
1172 [CCode (has_construct_function = false)]
1173 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
1174 public unowned GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
1175 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
1176 public bool check_connect_result () throws GLib.Error;
1177 public bool close () throws GLib.Error;
1178 public GLib.IOCondition condition_check (GLib.IOCondition condition);
1179 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.Error;
1180 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1181 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
1182 [CCode (has_construct_function = false)]
1183 public Socket.from_fd (int fd) throws GLib.Error;
1184 public bool get_blocking ();
1185 public unowned GLib.Credentials get_credentials () throws GLib.Error;
1186 public GLib.SocketFamily get_family ();
1187 public int get_fd ();
1188 public bool get_keepalive ();
1189 public int get_listen_backlog ();
1190 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1191 public GLib.SocketProtocol get_protocol ();
1192 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1193 public GLib.SocketType get_socket_type ();
1194 public uint get_timeout ();
1195 public bool is_closed ();
1196 public bool is_connected ();
1197 public bool listen () throws GLib.Error;
1198 public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1199 public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1200 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;
1201 public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1202 public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1203 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;
1204 public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1205 public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1206 public void set_blocking (bool blocking);
1207 public void set_keepalive (bool keepalive);
1208 public void set_listen_backlog (int backlog);
1209 public void set_timeout (uint timeout);
1210 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
1211 public bool speaks_ipv4 ();
1212 public bool blocking { get; set; }
1213 public GLib.SocketFamily family { get; construct; }
1214 public int fd { get; construct; }
1215 public bool keepalive { get; set; }
1216 public int listen_backlog { get; set; }
1217 public GLib.SocketAddress local_address { get; }
1218 public GLib.SocketProtocol protocol { get; construct; }
1219 public GLib.SocketAddress remote_address { get; }
1220 public uint timeout { get; set; }
1222 public GLib.SocketType type { get; construct; }
1224 [CCode (cheader_filename = "gio/gio.h")]
1225 public class SocketAddress : GLib.Object, GLib.SocketConnectable {
1226 [CCode (has_construct_function = false)]
1227 protected SocketAddress ();
1228 [CCode (has_construct_function = false)]
1229 public SocketAddress.from_native (void* native, size_t len);
1230 public virtual GLib.SocketFamily get_family ();
1231 public virtual ssize_t get_native_size ();
1232 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
1233 public GLib.SocketFamily family { get; }
1235 [CCode (cheader_filename = "gio/gio.h")]
1236 public class SocketAddressEnumerator : GLib.Object {
1237 [CCode (has_construct_function = false)]
1238 protected SocketAddressEnumerator ();
1239 public virtual unowned GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
1240 public virtual async unowned GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1242 [CCode (cheader_filename = "gio/gio.h")]
1243 public class SocketClient : GLib.Object {
1244 [CCode (has_construct_function = false)]
1245 public SocketClient ();
1246 public void add_application_proxy (string protocol);
1247 public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1248 public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1249 public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1250 public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1251 public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1252 public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1253 public unowned GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1254 public async unowned GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1255 public bool get_enable_proxy ();
1256 public GLib.SocketFamily get_family ();
1257 public unowned GLib.SocketAddress get_local_address ();
1258 public GLib.SocketProtocol get_protocol ();
1259 public GLib.SocketType get_socket_type ();
1260 public uint get_timeout ();
1261 public void set_enable_proxy (bool enable);
1262 public void set_family (GLib.SocketFamily family);
1263 public void set_local_address (GLib.SocketAddress address);
1264 public void set_protocol (GLib.SocketProtocol protocol);
1265 public void set_socket_type (GLib.SocketType type);
1266 public void set_timeout (uint timeout);
1267 public bool enable_proxy { get; set construct; }
1268 public GLib.SocketFamily family { get; set construct; }
1269 public GLib.SocketAddress local_address { get; set construct; }
1270 public GLib.SocketProtocol protocol { get; set construct; }
1271 public uint timeout { get; set construct; }
1273 public GLib.SocketType type { get; set construct; }
1275 [CCode (cheader_filename = "gio/gio.h")]
1276 public class SocketConnection : GLib.IOStream {
1277 [CCode (has_construct_function = false)]
1278 protected SocketConnection ();
1279 public static unowned GLib.SocketConnection factory_create_connection (GLib.Socket socket);
1280 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
1281 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
1282 public unowned GLib.SocketAddress get_local_address () throws GLib.Error;
1283 public unowned GLib.SocketAddress get_remote_address () throws GLib.Error;
1284 public unowned GLib.Socket get_socket ();
1285 public GLib.Socket socket { get; construct; }
1287 [CCode (cheader_filename = "gio/gio.h")]
1288 public class SocketControlMessage : GLib.Object {
1289 [CCode (has_construct_function = false)]
1290 protected SocketControlMessage ();
1291 public virtual GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_type = "gsize", array_length_pos = 2.9)] uint8[] data);
1292 public virtual int get_level ();
1293 public int get_msg_type ();
1294 public virtual size_t get_size ();
1296 public virtual int get_type ();
1297 public virtual void serialize ([CCode (array_length = false)] uint8[] data);
1299 [CCode (cheader_filename = "gio/gio.h")]
1300 public class SocketListener : GLib.Object {
1301 [CCode (has_construct_function = false)]
1302 public SocketListener ();
1303 public unowned GLib.SocketConnection accept (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1304 public async unowned GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1305 public unowned GLib.Socket accept_socket (out unowned GLib.Object source_object, GLib.Cancellable? cancellable = null) throws GLib.Error;
1306 public async unowned GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out GLib.Object? source_object = null) throws GLib.Error;
1307 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;
1308 public uint16 add_any_inet_port (GLib.Object source_object) throws GLib.Error;
1309 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
1310 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
1312 public virtual void changed ();
1313 public void close ();
1314 public void set_backlog (int listen_backlog);
1316 public int listen_backlog { get; set construct; }
1318 [CCode (cheader_filename = "gio/gio.h")]
1319 public class SocketService : GLib.SocketListener {
1320 [CCode (has_construct_function = false)]
1321 public SocketService ();
1322 public bool is_active ();
1323 public void start ();
1324 public void stop ();
1325 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
1328 [CCode (cname = "GSource", cheader_filename = "gio/gio.h")]
1329 public class SocketSource : GLib.Source {
1330 [CCode (cname = "g_source_set_callback")]
1331 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
1334 [CCode (copy_function = "g_srv_target_copy", type_id = "G_TYPE_SRV_TARGET", cheader_filename = "gio/gio.h")]
1335 public class SrvTarget {
1336 [CCode (has_construct_function = false)]
1337 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
1338 public GLib.SrvTarget copy ();
1339 public unowned string get_hostname ();
1340 public uint16 get_port ();
1341 public uint16 get_priority ();
1342 public uint16 get_weight ();
1343 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
1345 [CCode (cheader_filename = "gio/gio.h")]
1346 public class TcpConnection : GLib.SocketConnection {
1347 [CCode (has_construct_function = false)]
1348 protected TcpConnection ();
1349 public bool get_graceful_disconnect ();
1350 public void set_graceful_disconnect (bool graceful_disconnect);
1351 public bool graceful_disconnect { get; set; }
1353 [CCode (cheader_filename = "gio/gio.h")]
1354 public class ThemedIcon : GLib.Object, GLib.Icon {
1355 [CCode (type = "GIcon*", has_construct_function = false)]
1356 public ThemedIcon (string iconname);
1357 public void append_name (string iconname);
1358 [CCode (type = "GIcon*", has_construct_function = false)]
1359 public ThemedIcon.from_names (string[] iconnames);
1360 [CCode (array_length = false, array_null_terminated = true)]
1361 public unowned string[] get_names ();
1362 public void prepend_name (string iconname);
1363 [CCode (type = "GIcon*", has_construct_function = false)]
1364 public ThemedIcon.with_default_fallbacks (string iconname);
1365 public string name { construct; }
1366 [CCode (array_length = false, array_null_terminated = true)]
1367 public string[] names { get; construct; }
1369 public bool use_default_fallbacks { get; construct; }
1372 [CCode (cheader_filename = "gio/gio.h")]
1373 public class ThemedIconClass {
1375 [CCode (cheader_filename = "gio/gio.h")]
1376 public class ThreadedSocketService : GLib.SocketService {
1377 [CCode (type = "GSocketService*", has_construct_function = false)]
1378 public ThreadedSocketService (int max_threads);
1380 public int max_threads { get; construct; }
1381 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
1384 [CCode (cheader_filename = "gio/gio.h")]
1385 public class UnixCredentialsMessage {
1388 [CCode (cheader_filename = "gio/gio.h")]
1389 public class UnixFDList {
1391 [CCode (cheader_filename = "gio/gio.h")]
1392 public class Vfs : GLib.Object {
1393 [CCode (has_construct_function = false)]
1396 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
1397 public static unowned GLib.Vfs get_default ();
1398 public virtual GLib.File get_file_for_path (string path);
1399 public virtual GLib.File get_file_for_uri (string uri);
1400 public static unowned GLib.Vfs get_local ();
1401 public virtual unowned string[] get_supported_uri_schemes ();
1402 public virtual bool is_active ();
1404 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);
1406 public virtual void local_file_moved (string source, string dest);
1408 public virtual void local_file_removed (string filename);
1410 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1411 public virtual unowned GLib.File parse_name (string parse_name);
1413 [CCode (cheader_filename = "gio/gio.h")]
1414 public class VolumeMonitor : GLib.Object {
1415 [CCode (has_construct_function = false)]
1416 protected VolumeMonitor ();
1417 public virtual unowned GLib.Volume adopt_orphan_mount (GLib.Mount mount);
1418 public static GLib.VolumeMonitor @get ();
1419 public virtual GLib.List<GLib.Drive> get_connected_drives ();
1420 public virtual GLib.Mount get_mount_for_uuid (string uuid);
1421 public virtual GLib.List<GLib.Mount> get_mounts ();
1422 public virtual GLib.Volume get_volume_for_uuid (string uuid);
1423 public virtual GLib.List<GLib.Volume> get_volumes ();
1425 public virtual bool is_supported ();
1426 public virtual signal void drive_changed (GLib.Drive drive);
1427 public virtual signal void drive_connected (GLib.Drive drive);
1428 public virtual signal void drive_disconnected (GLib.Drive drive);
1429 public virtual signal void drive_eject_button (GLib.Drive drive);
1430 public virtual signal void drive_stop_button (GLib.Drive drive);
1431 public virtual signal void mount_added (GLib.Mount mount);
1432 public virtual signal void mount_changed (GLib.Mount mount);
1433 public virtual signal void mount_pre_unmount (GLib.Mount mount);
1434 public virtual signal void mount_removed (GLib.Mount mount);
1435 public virtual signal void volume_added (GLib.Volume volume);
1436 public virtual signal void volume_changed (GLib.Volume volume);
1437 public virtual signal void volume_removed (GLib.Volume volume);
1439 [CCode (cheader_filename = "gio/gio.h")]
1440 public class ZlibCompressor : GLib.Object, GLib.Converter {
1441 [CCode (has_construct_function = false)]
1442 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1443 public unowned GLib.FileInfo get_file_info ();
1444 public void set_file_info (GLib.FileInfo file_info);
1445 public GLib.FileInfo file_info { get; set; }
1447 public GLib.ZlibCompressorFormat format { get; construct; }
1449 public int level { get; construct; }
1451 [CCode (cheader_filename = "gio/gio.h")]
1452 public class ZlibDecompressor : GLib.Object, GLib.Converter {
1453 [CCode (has_construct_function = false)]
1454 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1455 public unowned GLib.FileInfo get_file_info ();
1456 public GLib.FileInfo file_info { get; }
1458 public GLib.ZlibCompressorFormat format { get; construct; }
1460 [CCode (cheader_filename = "gio/gio.h")]
1461 public interface Action : GLib.Object {
1462 public abstract void activate (GLib.Variant parameter);
1463 public abstract bool get_enabled ();
1464 public abstract unowned string get_name ();
1465 public abstract unowned GLib.VariantType get_parameter_type ();
1466 public abstract unowned GLib.Variant get_state ();
1467 public abstract unowned GLib.Variant get_state_hint ();
1468 public abstract unowned GLib.VariantType get_state_type ();
1469 public abstract void set_state (GLib.Variant value);
1470 public bool enabled { get; }
1471 public string name { get; }
1472 public GLib.VariantType parameter_type { get; }
1473 public GLib.Variant state { get; set construct; }
1474 public GLib.VariantType state_type { get; }
1476 [CCode (cheader_filename = "gio/gio.h")]
1477 public interface ActionGroup : GLib.Object {
1478 public abstract void activate (string action_name, GLib.Variant parameter);
1479 public abstract bool get_enabled (string action_name);
1480 public abstract unowned GLib.VariantType get_parameter_type (string action_name);
1481 public abstract unowned GLib.Variant get_state (string action_name);
1482 public abstract unowned GLib.Variant get_state_hint (string action_name);
1483 public abstract unowned GLib.VariantType get_state_type (string action_name);
1484 public abstract bool has_action (string action_name);
1485 public abstract unowned string list_actions ();
1486 public abstract void set_state (string action_name, GLib.Variant value);
1488 public signal void action_added (string action_name);
1490 public signal void action_enabled_changed (string action_name, bool enabled);
1492 public signal void action_removed (string action_name);
1494 public signal void action_state_changed (string action_name, GLib.Variant value);
1496 [CCode (cheader_filename = "gio/gio.h")]
1497 public interface AppInfo : GLib.Object {
1498 public abstract bool add_supports_type (string content_type) throws GLib.Error;
1499 public abstract bool can_delete ();
1500 public abstract bool can_remove_supports_type ();
1501 public static unowned GLib.AppInfo create_from_commandline (string commandline, string application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
1502 public bool @delete ();
1504 public abstract bool do_delete ();
1505 public abstract unowned GLib.AppInfo dup ();
1506 public abstract bool equal (GLib.AppInfo appinfo2);
1507 public static GLib.List<GLib.AppInfo> get_all ();
1508 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
1509 public abstract unowned string get_commandline ();
1510 public static unowned GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
1511 public static unowned GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
1512 public abstract unowned string get_description ();
1513 public abstract unowned string get_display_name ();
1514 public abstract unowned string get_executable ();
1515 public abstract unowned GLib.Icon get_icon ();
1516 public abstract unowned string get_id ();
1517 public abstract unowned string get_name ();
1518 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1519 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
1520 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext launch_context) throws GLib.Error;
1521 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
1522 public static void reset_type_associations (string content_type);
1523 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
1524 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
1525 public abstract bool should_show ();
1526 public abstract bool supports_files ();
1527 public abstract bool supports_uris ();
1529 [CCode (cheader_filename = "gio/gio.h")]
1530 public interface AsyncInitable : GLib.Object {
1531 public abstract async bool init_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1532 public static async unowned GLib.Object new_async (GLib.Type object_type, int io_priority, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1533 public static async void new_valist_async (GLib.Type object_type, string first_property_name, void* var_args, int io_priority, GLib.Cancellable? cancellable = null);
1534 public static async void newv_async (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, int io_priority, GLib.Cancellable? cancellable = null);
1536 [CCode (cheader_filename = "gio/gio.h")]
1537 public interface AsyncResult : GLib.Object {
1538 public abstract unowned GLib.Object get_source_object ();
1539 public abstract void* get_user_data ();
1541 [CCode (cheader_filename = "gio/gio.h")]
1542 public interface Converter : GLib.Object {
1543 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;
1544 public abstract void reset ();
1546 [CCode (cheader_filename = "gio/gio.h")]
1547 public interface Drive : GLib.Object {
1548 public abstract bool can_eject ();
1549 public abstract bool can_poll_for_media ();
1550 public abstract bool can_start ();
1551 public abstract bool can_start_degraded ();
1552 public abstract bool can_stop ();
1553 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1554 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1555 public abstract unowned string enumerate_identifiers ();
1556 public abstract unowned GLib.Icon get_icon ();
1557 public abstract unowned string get_identifier (string kind);
1558 public abstract unowned string get_name ();
1559 public abstract GLib.DriveStartStopType get_start_stop_type ();
1560 public abstract GLib.List<GLib.Volume> get_volumes ();
1561 public abstract bool has_media ();
1562 public abstract bool has_volumes ();
1563 public abstract bool is_media_check_automatic ();
1564 public abstract bool is_media_removable ();
1565 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
1566 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1567 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1568 public signal void changed ();
1569 public signal void disconnected ();
1570 public signal void eject_button ();
1571 public signal void stop_button ();
1573 [CCode (cheader_filename = "gio/gio.h")]
1574 public interface File : GLib.Object {
1575 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1576 public abstract async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1577 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1578 public abstract async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1579 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1580 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1581 public abstract async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1582 public abstract unowned GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1583 public abstract async unowned GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1584 public bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
1586 public abstract bool delete_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1587 public abstract unowned GLib.File dup ();
1588 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1589 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1590 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1591 public abstract async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1592 public abstract bool equal (GLib.File file2);
1593 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
1594 public abstract async GLib.Mount find_enclosing_mount_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1595 public abstract string? get_basename ();
1596 public GLib.File get_child (string name);
1597 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
1598 public abstract GLib.File? get_parent ();
1599 public abstract string get_parse_name ();
1600 public abstract string? get_path ();
1601 public abstract string? get_relative_path (GLib.File descendant);
1602 public abstract string get_uri ();
1603 public abstract string get_uri_scheme ();
1604 public bool has_parent (GLib.File? parent);
1605 public bool has_prefix (GLib.File prefix);
1606 public abstract bool has_uri_scheme (string uri_scheme);
1607 public abstract uint hash ();
1608 public abstract bool is_native ();
1609 public bool load_contents (GLib.Cancellable? cancellable = null, out string contents, out size_t length = null, out string etag_out = null) throws GLib.Error;
1610 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;
1611 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;
1612 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
1613 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
1614 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
1615 public unowned GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1616 [CCode (vfunc_name = "monitor_dir")]
1617 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1618 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1619 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1620 public abstract async unowned GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1621 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
1622 public static GLib.File new_for_commandline_arg (string arg);
1623 public static GLib.File new_for_path (string path);
1624 public static GLib.File new_for_uri (string uri);
1625 public abstract unowned GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
1626 public abstract async unowned GLib.FileIOStream open_readwrite_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1627 public static unowned GLib.File parse_name (string parse_name);
1628 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
1630 public abstract bool prefix_matches (GLib.File file);
1631 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
1632 public bool query_exists (GLib.Cancellable? cancellable = null);
1633 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
1634 public abstract unowned GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1635 public abstract async unowned GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1636 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1637 public abstract async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1638 public abstract unowned GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
1639 public abstract unowned GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
1640 public GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
1641 public abstract async GLib.FileInputStream read_async (int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1643 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1644 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1645 public abstract async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1646 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;
1647 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;
1648 public abstract unowned GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1649 public abstract async unowned GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1650 public abstract GLib.File resolve_relative_path (string relative_path);
1651 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1652 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1653 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1654 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1655 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1656 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1657 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1658 public abstract async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority, GLib.Cancellable? cancellable, out unowned GLib.FileInfo info_out) throws GLib.Error;
1659 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1660 public abstract unowned GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
1661 public abstract async unowned GLib.File set_display_name_async (string display_name, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
1662 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1663 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1664 public bool supports_thread_contexts ();
1665 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
1666 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1667 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1669 [CCode (cheader_filename = "gio/gio.h")]
1670 public interface Icon : GLib.Object {
1671 public abstract bool equal (GLib.Icon icon2);
1673 public abstract unowned GLib.Icon from_tokens (string tokens, int num_tokens, int version) throws GLib.Error;
1674 public abstract uint hash (void* icon);
1675 public static unowned GLib.Icon new_for_string (string str) throws GLib.Error;
1676 public string to_string ();
1678 public abstract bool to_tokens (GLib.GenericArray tokens, int out_version);
1680 [CCode (cheader_filename = "gio/gio.h")]
1681 public interface Initable : GLib.Object {
1682 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
1683 public static void* @new (GLib.Type object_type, GLib.Cancellable? cancellable, ...) throws GLib.Error;
1684 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;
1685 public static void* newv (GLib.Type object_type, uint n_parameters, GLib.Parameter parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
1687 [CCode (cheader_filename = "gio/gio.h")]
1688 public interface LoadableIcon : GLib.Icon, GLib.Object {
1689 public abstract unowned GLib.InputStream load (int size, out unowned string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1690 public abstract async unowned GLib.InputStream load_async (int size, GLib.Cancellable? cancellable, out unowned string? type) throws GLib.Error;
1692 [CCode (cheader_filename = "gio/gio.h")]
1693 public interface Mount : GLib.Object {
1694 public abstract bool can_eject ();
1695 public abstract bool can_unmount ();
1696 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1697 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1698 public abstract unowned GLib.File get_default_location ();
1699 public abstract unowned GLib.Drive get_drive ();
1700 public abstract unowned GLib.Icon get_icon ();
1701 public abstract unowned string get_name ();
1702 public abstract unowned GLib.File get_root ();
1703 public abstract unowned string get_uuid ();
1704 public abstract unowned GLib.Volume get_volume ();
1705 public abstract async unowned string guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1706 public abstract unowned string guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
1707 public bool is_shadowed ();
1708 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1709 public void shadow ();
1710 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1711 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1712 public void unshadow ();
1713 public signal void changed ();
1714 public signal void pre_unmount ();
1715 public signal void unmounted ();
1717 [CCode (cheader_filename = "gio/gio.h")]
1718 public interface Proxy : GLib.Object {
1719 public abstract unowned GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1720 public abstract async unowned GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1721 public static unowned GLib.Proxy get_default_for_protocol (string protocol);
1722 public abstract bool supports_hostname ();
1724 [CCode (cheader_filename = "gio/gio.h")]
1725 public interface ProxyResolver : GLib.Object {
1726 public static unowned GLib.ProxyResolver get_default ();
1727 public abstract bool is_supported ();
1728 public abstract unowned string lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1729 public abstract async unowned string lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1731 [CCode (cheader_filename = "gio/gio.h")]
1732 public interface Seekable : GLib.Object {
1733 public abstract bool can_seek ();
1734 public abstract bool can_truncate ();
1735 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1736 public abstract int64 tell ();
1737 [CCode (vfunc_name = "truncate_fn")]
1738 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
1740 [CCode (cheader_filename = "gio/gio.h")]
1741 public interface SocketConnectable : GLib.Object {
1742 public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1743 public abstract unowned GLib.SocketAddressEnumerator proxy_enumerate ();
1745 [CCode (cheader_filename = "gio/gio.h")]
1746 public interface Volume : GLib.Object {
1747 public abstract bool can_eject ();
1748 public abstract bool can_mount ();
1749 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1750 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1751 public abstract unowned string enumerate_identifiers ();
1752 public abstract unowned GLib.File get_activation_root ();
1753 public abstract unowned GLib.Drive get_drive ();
1754 public abstract unowned GLib.Icon get_icon ();
1755 public abstract unowned string get_identifier (string kind);
1756 public abstract unowned GLib.Mount get_mount ();
1757 public abstract unowned string get_name ();
1758 public abstract unowned string get_uuid ();
1759 public async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
1761 public abstract void mount_fn (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable, GLib.AsyncReadyCallback callback);
1762 public abstract bool should_automount ();
1763 public signal void changed ();
1764 public signal void removed ();
1766 [CCode (cprefix = "G_APP_INFO_CREATE_", cheader_filename = "gio/gio.h")]
1768 public enum AppInfoCreateFlags {
1772 SUPPORTS_STARTUP_NOTIFICATION
1774 [CCode (cprefix = "G_ASK_PASSWORD_", cheader_filename = "gio/gio.h")]
1776 public enum AskPasswordFlags {
1783 [CCode (cprefix = "G_BUS_NAME_OWNER_FLAGS_", cheader_filename = "gio/gio.h")]
1785 public enum BusNameOwnerFlags {
1790 [CCode (cprefix = "G_BUS_NAME_WATCHER_FLAGS_", cheader_filename = "gio/gio.h")]
1792 public enum BusNameWatcherFlags {
1796 [CCode (cprefix = "G_BUS_TYPE_", cheader_filename = "gio/gio.h")]
1797 public enum BusType {
1803 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1805 public enum ConverterFlags {
1810 [CCode (cprefix = "G_CONVERTER_", cheader_filename = "gio/gio.h")]
1811 public enum ConverterResult {
1817 [CCode (cprefix = "G_CREDENTIALS_TYPE_", cheader_filename = "gio/gio.h")]
1818 public enum CredentialsType {
1823 [CCode (cprefix = "G_DBUS_CALL_FLAGS_", cheader_filename = "gio/gio.h")]
1825 public enum DBusCallFlags {
1829 [CCode (cprefix = "G_DBUS_CAPABILITY_FLAGS_", cheader_filename = "gio/gio.h")]
1831 public enum DBusCapabilityFlags {
1835 [CCode (cprefix = "G_DBUS_CONNECTION_FLAGS_", cheader_filename = "gio/gio.h")]
1837 public enum DBusConnectionFlags {
1839 AUTHENTICATION_CLIENT,
1840 AUTHENTICATION_SERVER,
1841 AUTHENTICATION_ALLOW_ANONYMOUS,
1842 MESSAGE_BUS_CONNECTION,
1843 DELAY_MESSAGE_PROCESSING
1845 [CCode (cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1846 public enum DBusMessageByteOrder {
1850 [CCode (cprefix = "G_DBUS_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1852 public enum DBusMessageFlags {
1857 [CCode (cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", cheader_filename = "gio/gio.h")]
1858 public enum DBusMessageHeaderField {
1870 [CCode (cprefix = "G_DBUS_MESSAGE_TYPE_", cheader_filename = "gio/gio.h")]
1871 public enum DBusMessageType {
1878 [CCode (cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", cheader_filename = "gio/gio.h")]
1880 public enum DBusPropertyInfoFlags {
1885 [CCode (cprefix = "G_DBUS_PROXY_FLAGS_", cheader_filename = "gio/gio.h")]
1887 public enum DBusProxyFlags {
1889 DO_NOT_LOAD_PROPERTIES,
1890 DO_NOT_CONNECT_SIGNALS,
1893 [CCode (cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", cheader_filename = "gio/gio.h")]
1895 public enum DBusSendMessageFlags {
1899 [CCode (cprefix = "G_DBUS_SERVER_FLAGS_", cheader_filename = "gio/gio.h")]
1901 public enum DBusServerFlags {
1904 AUTHENTICATION_ALLOW_ANONYMOUS
1906 [CCode (cprefix = "G_DBUS_SIGNAL_FLAGS_", cheader_filename = "gio/gio.h")]
1908 public enum DBusSignalFlags {
1911 [CCode (cprefix = "G_DBUS_SUBTREE_FLAGS_", cheader_filename = "gio/gio.h")]
1913 public enum DBusSubtreeFlags {
1915 DISPATCH_TO_UNENUMERATED_NODES
1917 [CCode (cprefix = "G_DATA_STREAM_BYTE_ORDER_", cheader_filename = "gio/gio.h")]
1918 public enum DataStreamByteOrder {
1923 [CCode (cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", cheader_filename = "gio/gio.h")]
1924 public enum DataStreamNewlineType {
1930 [CCode (cprefix = "G_DRIVE_START_", cheader_filename = "gio/gio.h")]
1931 public enum DriveStartFlags {
1934 [CCode (cprefix = "G_DRIVE_START_STOP_TYPE_", cheader_filename = "gio/gio.h")]
1935 public enum DriveStartStopType {
1942 [CCode (cprefix = "G_EMBLEM_ORIGIN_", cheader_filename = "gio/gio.h")]
1943 public enum EmblemOrigin {
1949 [CCode (cprefix = "G_FILE_ATTRIBUTE_INFO_", cheader_filename = "gio/gio.h")]
1951 public enum FileAttributeInfoFlags {
1956 [CCode (cprefix = "G_FILE_ATTRIBUTE_STATUS_", cheader_filename = "gio/gio.h")]
1957 public enum FileAttributeStatus {
1962 [CCode (cprefix = "G_FILE_ATTRIBUTE_TYPE_", cheader_filename = "gio/gio.h")]
1963 public enum FileAttributeType {
1975 [CCode (cprefix = "G_FILE_COPY_", cheader_filename = "gio/gio.h")]
1977 public enum FileCopyFlags {
1983 NO_FALLBACK_FOR_MOVE,
1984 TARGET_DEFAULT_PERMS
1986 [CCode (cprefix = "G_FILE_CREATE_", cheader_filename = "gio/gio.h")]
1988 public enum FileCreateFlags {
1993 [CCode (cprefix = "G_FILE_MONITOR_EVENT_", cheader_filename = "gio/gio.h")]
1994 public enum FileMonitorEvent {
2004 [CCode (cprefix = "G_FILE_MONITOR_", cheader_filename = "gio/gio.h")]
2006 public enum FileMonitorFlags {
2011 [CCode (cprefix = "G_FILE_QUERY_INFO_", cheader_filename = "gio/gio.h")]
2013 public enum FileQueryInfoFlags {
2017 [CCode (cprefix = "G_FILE_TYPE_", cheader_filename = "gio/gio.h")]
2018 public enum FileType {
2027 [CCode (cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", cheader_filename = "gio/gio.h")]
2028 public enum FilesystemPreviewType {
2033 [CCode (cprefix = "G_MOUNT_MOUNT_", cheader_filename = "gio/gio.h")]
2034 public enum MountMountFlags {
2037 [CCode (cprefix = "G_MOUNT_OPERATION_", cheader_filename = "gio/gio.h")]
2038 public enum MountOperationResult {
2043 [CCode (cprefix = "G_MOUNT_UNMOUNT_", cheader_filename = "gio/gio.h")]
2045 public enum MountUnmountFlags {
2049 [CCode (cprefix = "G_OUTPUT_STREAM_SPLICE_", cheader_filename = "gio/gio.h")]
2051 public enum OutputStreamSpliceFlags {
2056 [CCode (cprefix = "G_PASSWORD_SAVE_", cheader_filename = "gio/gio.h")]
2057 public enum PasswordSave {
2062 [CCode (cprefix = "G_RESOLVER_ERROR_", cheader_filename = "gio/gio.h")]
2063 public enum ResolverError {
2068 [CCode (cprefix = "G_SETTINGS_BIND_", cheader_filename = "gio/gio.h")]
2070 public enum SettingsBindFlags {
2078 [CCode (cprefix = "G_SOCKET_FAMILY_", cheader_filename = "gio/gio.h")]
2079 public enum SocketFamily {
2085 [CCode (cprefix = "G_SOCKET_MSG_", cheader_filename = "gio/gio.h")]
2086 public enum SocketMsgFlags {
2092 [CCode (cprefix = "G_SOCKET_PROTOCOL_", cheader_filename = "gio/gio.h")]
2093 public enum SocketProtocol {
2100 [CCode (cprefix = "G_SOCKET_TYPE_", cheader_filename = "gio/gio.h")]
2101 public enum SocketType {
2107 [CCode (cprefix = "G_UNIX_SOCKET_ADDRESS_", cheader_filename = "gio/gio.h")]
2108 public enum UnixSocketAddressType {
2115 [CCode (cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", cheader_filename = "gio/gio.h")]
2116 public enum ZlibCompressorFormat {
2121 [CCode (cprefix = "G_DBUS_ERROR_", cheader_filename = "gio/gio.h")]
2122 public errordomain DBusError {
2144 MATCH_RULE_NOT_FOUND,
2149 SPAWN_CHILD_SIGNALED,
2152 SPAWN_CONFIG_INVALID,
2153 SPAWN_SERVICE_INVALID,
2154 SPAWN_SERVICE_NOT_FOUND,
2155 SPAWN_PERMISSIONS_INVALID,
2158 UNIX_PROCESS_ID_UNKNOWN,
2160 INVALID_FILE_CONTENT,
2161 SELINUX_SECURITY_CONTEXT_UNKNOWN,
2162 ADT_AUDIT_DATA_UNKNOWN,
2165 [CCode (cprefix = "G_IO_ERROR_", cheader_filename = "gio/gio.h")]
2166 public errordomain IOError {
2198 TOO_MANY_OPEN_FILES,
2205 NETWORK_UNREACHABLE,
2212 [CCode (cheader_filename = "gio/gio.h")]
2213 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
2214 [CCode (cheader_filename = "gio/gio.h")]
2215 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
2216 [CCode (cheader_filename = "gio/gio.h")]
2217 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
2218 [CCode (cheader_filename = "gio/gio.h")]
2219 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
2220 [CCode (cheader_filename = "gio/gio.h")]
2221 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
2222 [CCode (cheader_filename = "gio/gio.h")]
2223 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
2224 [CCode (cheader_filename = "gio/gio.h")]
2225 public delegate unowned GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Error error);
2226 [CCode (cheader_filename = "gio/gio.h")]
2227 public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.DBusMethodInvocation invocation);
2228 [CCode (cheader_filename = "gio/gio.h")]
2229 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value, GLib.Error error);
2230 [CCode (cheader_filename = "gio/gio.h")]
2231 public delegate unowned GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2232 [CCode (cheader_filename = "gio/gio.h")]
2233 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
2234 [CCode (cheader_filename = "gio/gio.h")]
2235 public delegate unowned GLib.DBusInterfaceVTable DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
2236 [CCode (cheader_filename = "gio/gio.h")]
2237 public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
2238 [CCode (cheader_filename = "gio/gio.h")]
2239 public delegate unowned GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2240 [CCode (cheader_filename = "gio/gio.h")]
2241 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2242 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2243 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
2244 [CCode (cheader_filename = "gio/gio.h")]
2245 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable cancellable);
2246 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2247 public delegate void* ReallocFunc (void* data, size_t size);
2248 [CCode (cheader_filename = "gio/gio.h")]
2249 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
2250 [CCode (cheader_filename = "gio/gio.h")]
2251 public delegate unowned GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
2252 [CCode (cheader_filename = "gio/gio.h")]
2253 public delegate bool SettingsGetMapping (GLib.Variant value, void* result);
2254 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
2255 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable cancellable);
2256 [CCode (cheader_filename = "gio/gio.h")]
2257 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
2258 [CCode (cheader_filename = "gio/gio.h")]
2259 public static GLib.EqualFunc file_equal;
2260 [CCode (cheader_filename = "gio/gio.h")]
2261 public static GLib.HashFunc file_hash;
2262 [CCode (cheader_filename = "gio/gio.h")]
2263 public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
2264 [CCode (cheader_filename = "gio/gio.h")]
2265 public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
2266 [CCode (cheader_filename = "gio/gio.h")]
2267 public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
2268 [CCode (cheader_filename = "gio/gio.h")]
2269 public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
2270 [CCode (cheader_filename = "gio/gio.h")]
2271 public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
2272 [CCode (cheader_filename = "gio/gio.h")]
2273 public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
2274 [CCode (cheader_filename = "gio/gio.h")]
2275 public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
2276 [CCode (cheader_filename = "gio/gio.h")]
2277 public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
2278 [CCode (cheader_filename = "gio/gio.h")]
2279 public const string FILE_ATTRIBUTE_ETAG_VALUE;
2280 [CCode (cheader_filename = "gio/gio.h")]
2281 public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
2282 [CCode (cheader_filename = "gio/gio.h")]
2283 public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
2284 [CCode (cheader_filename = "gio/gio.h")]
2285 public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
2286 [CCode (cheader_filename = "gio/gio.h")]
2287 public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
2288 [CCode (cheader_filename = "gio/gio.h")]
2289 public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
2290 [CCode (cheader_filename = "gio/gio.h")]
2291 public const string FILE_ATTRIBUTE_GVFS_BACKEND;
2292 [CCode (cheader_filename = "gio/gio.h")]
2293 public const string FILE_ATTRIBUTE_ID_FILE;
2294 [CCode (cheader_filename = "gio/gio.h")]
2295 public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
2296 [CCode (cheader_filename = "gio/gio.h")]
2297 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
2298 [CCode (cheader_filename = "gio/gio.h")]
2299 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
2300 [CCode (cheader_filename = "gio/gio.h")]
2301 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
2302 [CCode (cheader_filename = "gio/gio.h")]
2303 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
2304 [CCode (cheader_filename = "gio/gio.h")]
2305 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
2306 [CCode (cheader_filename = "gio/gio.h")]
2307 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
2308 [CCode (cheader_filename = "gio/gio.h")]
2309 public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
2310 [CCode (cheader_filename = "gio/gio.h")]
2311 public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
2312 [CCode (cheader_filename = "gio/gio.h")]
2313 public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
2314 [CCode (cheader_filename = "gio/gio.h")]
2315 public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
2316 [CCode (cheader_filename = "gio/gio.h")]
2317 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
2318 [CCode (cheader_filename = "gio/gio.h")]
2319 public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
2320 [CCode (cheader_filename = "gio/gio.h")]
2321 public const string FILE_ATTRIBUTE_OWNER_GROUP;
2322 [CCode (cheader_filename = "gio/gio.h")]
2323 public const string FILE_ATTRIBUTE_OWNER_USER;
2324 [CCode (cheader_filename = "gio/gio.h")]
2325 public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
2326 [CCode (cheader_filename = "gio/gio.h")]
2327 public const string FILE_ATTRIBUTE_PREVIEW_ICON;
2328 [CCode (cheader_filename = "gio/gio.h")]
2329 public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
2330 [CCode (cheader_filename = "gio/gio.h")]
2331 public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
2332 [CCode (cheader_filename = "gio/gio.h")]
2333 public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
2334 [CCode (cheader_filename = "gio/gio.h")]
2335 public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
2336 [CCode (cheader_filename = "gio/gio.h")]
2337 public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
2338 [CCode (cheader_filename = "gio/gio.h")]
2339 public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
2340 [CCode (cheader_filename = "gio/gio.h")]
2341 public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
2342 [CCode (cheader_filename = "gio/gio.h")]
2343 public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
2344 [CCode (cheader_filename = "gio/gio.h")]
2345 public const string FILE_ATTRIBUTE_STANDARD_ICON;
2346 [CCode (cheader_filename = "gio/gio.h")]
2347 public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
2348 [CCode (cheader_filename = "gio/gio.h")]
2349 public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
2350 [CCode (cheader_filename = "gio/gio.h")]
2351 public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
2352 [CCode (cheader_filename = "gio/gio.h")]
2353 public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
2354 [CCode (cheader_filename = "gio/gio.h")]
2355 public const string FILE_ATTRIBUTE_STANDARD_NAME;
2356 [CCode (cheader_filename = "gio/gio.h")]
2357 public const string FILE_ATTRIBUTE_STANDARD_SIZE;
2358 [CCode (cheader_filename = "gio/gio.h")]
2359 public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
2360 [CCode (cheader_filename = "gio/gio.h")]
2361 public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
2362 [CCode (cheader_filename = "gio/gio.h")]
2363 public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
2364 [CCode (cheader_filename = "gio/gio.h")]
2365 public const string FILE_ATTRIBUTE_STANDARD_TYPE;
2366 [CCode (cheader_filename = "gio/gio.h")]
2367 public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
2368 [CCode (cheader_filename = "gio/gio.h")]
2369 public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
2370 [CCode (cheader_filename = "gio/gio.h")]
2371 public const string FILE_ATTRIBUTE_TIME_ACCESS;
2372 [CCode (cheader_filename = "gio/gio.h")]
2373 public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
2374 [CCode (cheader_filename = "gio/gio.h")]
2375 public const string FILE_ATTRIBUTE_TIME_CHANGED;
2376 [CCode (cheader_filename = "gio/gio.h")]
2377 public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
2378 [CCode (cheader_filename = "gio/gio.h")]
2379 public const string FILE_ATTRIBUTE_TIME_CREATED;
2380 [CCode (cheader_filename = "gio/gio.h")]
2381 public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
2382 [CCode (cheader_filename = "gio/gio.h")]
2383 public const string FILE_ATTRIBUTE_TIME_MODIFIED;
2384 [CCode (cheader_filename = "gio/gio.h")]
2385 public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
2386 [CCode (cheader_filename = "gio/gio.h")]
2387 public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
2388 [CCode (cheader_filename = "gio/gio.h")]
2389 public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
2390 [CCode (cheader_filename = "gio/gio.h")]
2391 public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
2392 [CCode (cheader_filename = "gio/gio.h")]
2393 public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
2394 [CCode (cheader_filename = "gio/gio.h")]
2395 public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
2396 [CCode (cheader_filename = "gio/gio.h")]
2397 public const string FILE_ATTRIBUTE_UNIX_DEVICE;
2398 [CCode (cheader_filename = "gio/gio.h")]
2399 public const string FILE_ATTRIBUTE_UNIX_GID;
2400 [CCode (cheader_filename = "gio/gio.h")]
2401 public const string FILE_ATTRIBUTE_UNIX_INODE;
2402 [CCode (cheader_filename = "gio/gio.h")]
2403 public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
2404 [CCode (cheader_filename = "gio/gio.h")]
2405 public const string FILE_ATTRIBUTE_UNIX_MODE;
2406 [CCode (cheader_filename = "gio/gio.h")]
2407 public const string FILE_ATTRIBUTE_UNIX_NLINK;
2408 [CCode (cheader_filename = "gio/gio.h")]
2409 public const string FILE_ATTRIBUTE_UNIX_RDEV;
2410 [CCode (cheader_filename = "gio/gio.h")]
2411 public const string FILE_ATTRIBUTE_UNIX_UID;
2412 [CCode (cheader_filename = "gio/gio.h")]
2413 public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2414 [CCode (cheader_filename = "gio/gio.h")]
2415 public const string PROXY_EXTENSION_POINT_NAME;
2416 [CCode (cheader_filename = "gio/gio.h")]
2417 public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
2418 [CCode (cheader_filename = "gio/gio.h")]
2419 public const string VFS_EXTENSION_POINT_NAME;
2420 [CCode (cheader_filename = "gio/gio.h")]
2421 public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
2422 [CCode (cheader_filename = "gio/gio.h")]
2423 public const string VOLUME_IDENTIFIER_KIND_LABEL;
2424 [CCode (cheader_filename = "gio/gio.h")]
2425 public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
2426 [CCode (cheader_filename = "gio/gio.h")]
2427 public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
2428 [CCode (cheader_filename = "gio/gio.h")]
2429 public const string VOLUME_IDENTIFIER_KIND_UUID;
2430 [CCode (cheader_filename = "gio/gio.h")]
2431 public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
2432 [CCode (cname = "g_content_type_can_be_executable", cheader_filename = "gio/gio.h")]
2433 public static bool g_content_type_can_be_executable (string type);
2434 [CCode (cname = "g_content_type_equals", cheader_filename = "gio/gio.h")]
2435 public static bool g_content_type_equals (string type1, string type2);
2436 [CCode (cname = "g_content_type_from_mime_type", cheader_filename = "gio/gio.h")]
2437 public static string g_content_type_from_mime_type (string mime_type);
2438 [CCode (cname = "g_content_type_get_description", cheader_filename = "gio/gio.h")]
2439 public static string g_content_type_get_description (string type);
2440 [CCode (cname = "g_content_type_get_icon", cheader_filename = "gio/gio.h")]
2441 public static GLib.Icon g_content_type_get_icon (string type);
2442 [CCode (cname = "g_content_type_get_mime_type", cheader_filename = "gio/gio.h")]
2443 public static string g_content_type_get_mime_type (string type);
2444 [CCode (cname = "g_content_type_guess", cheader_filename = "gio/gio.h")]
2445 public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
2446 [CCode (cname = "g_content_type_guess_for_tree", cheader_filename = "gio/gio.h")]
2447 public static string g_content_type_guess_for_tree (GLib.File root);
2448 [CCode (cname = "g_content_type_is_a", cheader_filename = "gio/gio.h")]
2449 public static bool g_content_type_is_a (string type, string supertype);
2450 [CCode (cname = "g_content_type_is_unknown", cheader_filename = "gio/gio.h")]
2451 public static bool g_content_type_is_unknown (string type);
2452 [CCode (cname = "g_content_types_get_registered", cheader_filename = "gio/gio.h")]
2453 public static GLib.List<string> g_content_types_get_registered ();
2454 [CCode (cname = "g_dbus_address_get_for_bus_sync", cheader_filename = "gio/gio.h")]
2455 public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2456 [CCode (cname = "g_dbus_address_get_stream", cheader_filename = "gio/gio.h")]
2457 public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
2458 [CCode (cname = "g_dbus_address_get_stream_finish", cheader_filename = "gio/gio.h")]
2459 public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
2460 [CCode (cname = "g_dbus_address_get_stream_sync", cheader_filename = "gio/gio.h")]
2461 public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
2462 [CCode (cname = "g_dbus_error_encode_gerror", cheader_filename = "gio/gio.h")]
2463 public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
2464 [CCode (cname = "g_dbus_error_get_remote_error", cheader_filename = "gio/gio.h")]
2465 public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
2466 [CCode (cname = "g_dbus_error_is_remote_error", cheader_filename = "gio/gio.h")]
2467 public static bool g_dbus_error_is_remote_error (GLib.Error error);
2468 [CCode (cname = "g_dbus_error_new_for_dbus_error", cheader_filename = "gio/gio.h")]
2469 public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
2470 [CCode (cname = "g_dbus_error_quark", cheader_filename = "gio/gio.h")]
2471 public static GLib.Quark g_dbus_error_quark ();
2472 [CCode (cname = "g_dbus_error_register_error", cheader_filename = "gio/gio.h")]
2473 public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2474 [CCode (cname = "g_dbus_error_register_error_domain", cheader_filename = "gio/gio.h")]
2475 public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
2476 [CCode (cname = "g_dbus_error_set_dbus_error", cheader_filename = "gio/gio.h")]
2477 public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
2478 [CCode (cname = "g_dbus_error_set_dbus_error_valist", cheader_filename = "gio/gio.h")]
2479 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;
2480 [CCode (cname = "g_dbus_error_strip_remote_error", cheader_filename = "gio/gio.h")]
2481 public static bool g_dbus_error_strip_remote_error (GLib.Error error);
2482 [CCode (cname = "g_dbus_error_unregister_error", cheader_filename = "gio/gio.h")]
2483 public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
2484 [CCode (cname = "g_dbus_generate_guid", cheader_filename = "gio/gio.h")]
2485 public static unowned string g_dbus_generate_guid ();
2486 [CCode (cname = "g_dbus_is_address", cheader_filename = "gio/gio.h")]
2487 public static bool g_dbus_is_address (string str);
2488 [CCode (cname = "g_dbus_is_guid", cheader_filename = "gio/gio.h")]
2489 public static bool g_dbus_is_guid (string str);
2490 [CCode (cname = "g_dbus_is_interface_name", cheader_filename = "gio/gio.h")]
2491 public static bool g_dbus_is_interface_name (string str);
2492 [CCode (cname = "g_dbus_is_member_name", cheader_filename = "gio/gio.h")]
2493 public static bool g_dbus_is_member_name (string str);
2494 [CCode (cname = "g_dbus_is_name", cheader_filename = "gio/gio.h")]
2495 public static bool g_dbus_is_name (string str);
2496 [CCode (cname = "g_dbus_is_supported_address", cheader_filename = "gio/gio.h")]
2497 public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
2498 [CCode (cname = "g_dbus_is_unique_name", cheader_filename = "gio/gio.h")]
2499 public static bool g_dbus_is_unique_name (string str);
2500 [CCode (cname = "g_io_error_from_errno", cheader_filename = "gio/gio.h")]
2501 public static unowned GLib.IOError g_io_error_from_errno (int err_no);
2502 [CCode (cname = "g_io_error_quark", cheader_filename = "gio/gio.h")]
2503 public static GLib.Quark g_io_error_quark ();
2504 [CCode (cname = "g_io_modules_load_all_in_directory", cheader_filename = "gio/gio.h")]
2505 public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
2506 [CCode (cname = "g_io_modules_scan_all_in_directory", cheader_filename = "gio/gio.h")]
2507 public static void g_io_modules_scan_all_in_directory (string dirname);
2508 [CCode (cname = "g_io_scheduler_cancel_all_jobs", cheader_filename = "gio/gio.h")]
2509 public static void g_io_scheduler_cancel_all_jobs ();
2510 [CCode (cname = "g_io_scheduler_push_job", cheader_filename = "gio/gio.h")]
2511 public static void g_io_scheduler_push_job (GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify? notify, int io_priority, GLib.Cancellable? cancellable = null);
2512 [CCode (cname = "g_simple_async_report_error_in_idle", cheader_filename = "gio/gio.h")]
2513 public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
2514 [CCode (cname = "g_simple_async_report_gerror_in_idle", cheader_filename = "gio/gio.h")]
2515 public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);