vapi: Update GIR-based bindings
[vala-gnome.git] / vapi / gio-2.0.vapi
blobfbb058c88563eb00f9acde22c8534ab6510847da
1 /* gio-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "G", gir_namespace = "Gio", gir_version = "2.0", lower_case_cprefix = "g_")]
4 namespace GLib {
5         namespace Bus {
6                 [CCode (cheader_filename = "gio/gio.h")]
7                 public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
8                 [CCode (cheader_filename = "gio/gio.h")]
9                 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;
10                 [CCode (cheader_filename = "gio/gio.h")]
11                 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;
12                 [CCode (cheader_filename = "gio/gio.h")]
13                 public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
14                 [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_with_closures")]
15                 [Version (since = "2.26")]
16                 public static uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback? bus_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
17                 [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_on_connection_with_closures")]
18                 [Version (since = "2.26")]
19                 public static uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
20                 [CCode (cheader_filename = "gio/gio.h")]
21                 [Version (since = "2.26")]
22                 public static void unown_name (uint owner_id);
23                 [CCode (cheader_filename = "gio/gio.h")]
24                 [Version (since = "2.26")]
25                 public static void unwatch_name (uint watcher_id);
26                 [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_with_closures")]
27                 [Version (since = "2.26")]
28                 public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
29                 [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_on_connection_with_closures")]
30                 [Version (since = "2.26")]
31                 public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
32         }
33         namespace ContentType {
34                 [CCode (cheader_filename = "gio/gio.h")]
35                 public static bool can_be_executable (string type);
36                 [CCode (cheader_filename = "gio/gio.h")]
37                 public static bool equals (string type1, string type2);
38                 [CCode (cheader_filename = "gio/gio.h")]
39                 [Version (since = "2.18")]
40                 public static string? from_mime_type (string mime_type);
41                 [CCode (cheader_filename = "gio/gio.h")]
42                 public static string get_description (string type);
43                 [CCode (cheader_filename = "gio/gio.h")]
44                 [Version (since = "2.34")]
45                 public static string? get_generic_icon_name (string type);
46                 [CCode (cheader_filename = "gio/gio.h")]
47                 public static GLib.Icon get_icon (string type);
48                 [CCode (cheader_filename = "gio/gio.h")]
49                 public static string? get_mime_type (string type);
50                 [CCode (cheader_filename = "gio/gio.h")]
51                 [Version (since = "2.34")]
52                 public static GLib.Icon get_symbolic_icon (string type);
53                 [CCode (cheader_filename = "gio/gio.h")]
54                 public static string guess (string? filename, [CCode (array_length_cname = "data_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[]? data, out bool result_uncertain);
55                 [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
56                 [Version (since = "2.18")]
57                 public static string[] guess_for_tree (GLib.File root);
58                 [CCode (cheader_filename = "gio/gio.h")]
59                 public static bool is_a (string type, string supertype);
60                 [CCode (cheader_filename = "gio/gio.h")]
61                 [Version (since = "2.52")]
62                 public static bool is_mime_type (string type, string mime_type);
63                 [CCode (cheader_filename = "gio/gio.h")]
64                 public static bool is_unknown (string type);
65                 [CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
66                 public static GLib.List<string> list_registered ();
67         }
68         namespace DBus {
69                 [CCode (cheader_filename = "gio/gio.h")]
70                 [Version (since = "2.36")]
71                 public static string address_escape_value (string string);
72                 [CCode (cheader_filename = "gio/gio.h")]
73                 [Version (since = "2.26")]
74                 public static async GLib.IOStream address_get_stream (string address, GLib.Cancellable? cancellable = null, out string out_guid) throws GLib.Error;
75                 [CCode (cheader_filename = "gio/gio.h")]
76                 [Version (since = "2.26")]
77                 public static GLib.IOStream address_get_stream_sync (string address, out string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
78                 [CCode (cheader_filename = "gio/gio.h")]
79                 [Version (since = "2.26")]
80                 public static unowned string annotation_info_lookup ([CCode (array_length = false, array_null_terminated = true)] GLib.DBusAnnotationInfo[]? annotations, string name);
81                 [CCode (cheader_filename = "gio/gio.h")]
82                 [Version (since = "2.26")]
83                 public static string generate_guid ();
84                 [CCode (cheader_filename = "gio/gio.h")]
85                 [Version (since = "2.30")]
86                 public static GLib.Variant gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
87                 [CCode (cheader_filename = "gio/gio.h")]
88                 [Version (since = "2.30")]
89                 public static GLib.Value gvariant_to_gvalue (GLib.Variant value);
90                 [CCode (cheader_filename = "gio/gio.h")]
91                 [Version (since = "2.26")]
92                 public static bool is_address (string string);
93                 [CCode (cheader_filename = "gio/gio.h")]
94                 [Version (since = "2.26")]
95                 public static bool is_guid (string string);
96                 [CCode (cheader_filename = "gio/gio.h")]
97                 [Version (since = "2.26")]
98                 public static bool is_interface_name (string string);
99                 [CCode (cheader_filename = "gio/gio.h")]
100                 [Version (since = "2.26")]
101                 public static bool is_member_name (string string);
102                 [CCode (cheader_filename = "gio/gio.h")]
103                 [Version (since = "2.26")]
104                 public static bool is_name (string string);
105                 [CCode (cheader_filename = "gio/gio.h")]
106                 [Version (since = "2.26")]
107                 public static bool is_supported_address (string string) throws GLib.Error;
108                 [CCode (cheader_filename = "gio/gio.h")]
109                 [Version (since = "2.26")]
110                 public static bool is_unique_name (string string);
111         }
112         namespace FileAttribute {
113                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE")]
114                 public const string ACCESS_CAN_DELETE;
115                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE")]
116                 public const string ACCESS_CAN_EXECUTE;
117                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_READ")]
118                 public const string ACCESS_CAN_READ;
119                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME")]
120                 public const string ACCESS_CAN_RENAME;
121                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH")]
122                 public const string ACCESS_CAN_TRASH;
123                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE")]
124                 public const string ACCESS_CAN_WRITE;
125                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE")]
126                 public const string DOS_IS_ARCHIVE;
127                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_SYSTEM")]
128                 public const string DOS_IS_SYSTEM;
129                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ETAG_VALUE")]
130                 public const string ETAG_VALUE;
131                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_FREE")]
132                 public const string FILESYSTEM_FREE;
133                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_READONLY")]
134                 public const string FILESYSTEM_READONLY;
135                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE")]
136                 public const string FILESYSTEM_REMOTE;
137                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_SIZE")]
138                 public const string FILESYSTEM_SIZE;
139                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_TYPE")]
140                 public const string FILESYSTEM_TYPE;
141                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USED")]
142                 [Version (since = "2.32")]
143                 public const string FILESYSTEM_USED;
144                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW")]
145                 public const string FILESYSTEM_USE_PREVIEW;
146                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_GVFS_BACKEND")]
147                 public const string GVFS_BACKEND;
148                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILE")]
149                 public const string ID_FILE;
150                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILESYSTEM")]
151                 public const string ID_FILESYSTEM;
152                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT")]
153                 public const string MOUNTABLE_CAN_EJECT;
154                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT")]
155                 public const string MOUNTABLE_CAN_MOUNT;
156                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL")]
157                 [Version (since = "2.22")]
158                 public const string MOUNTABLE_CAN_POLL;
159                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START")]
160                 [Version (since = "2.22")]
161                 public const string MOUNTABLE_CAN_START;
162                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED")]
163                 [Version (since = "2.22")]
164                 public const string MOUNTABLE_CAN_START_DEGRADED;
165                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP")]
166                 [Version (since = "2.22")]
167                 public const string MOUNTABLE_CAN_STOP;
168                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT")]
169                 public const string MOUNTABLE_CAN_UNMOUNT;
170                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI")]
171                 public const string MOUNTABLE_HAL_UDI;
172                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
173                 [Version (since = "2.22")]
174                 public const string MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
175                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE")]
176                 [Version (since = "2.22")]
177                 public const string MOUNTABLE_START_STOP_TYPE;
178                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE")]
179                 public const string MOUNTABLE_UNIX_DEVICE;
180                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE")]
181                 [Version (since = "2.22")]
182                 public const string MOUNTABLE_UNIX_DEVICE_FILE;
183                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_GROUP")]
184                 public const string OWNER_GROUP;
185                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER")]
186                 public const string OWNER_USER;
187                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER_REAL")]
188                 public const string OWNER_USER_REAL;
189                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_PREVIEW_ICON")]
190                 [Version (since = "2.20")]
191                 public const string PREVIEW_ICON;
192                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_RECENT_MODIFIED")]
193                 [Version (since = "2.52")]
194                 public const string RECENT_MODIFIED;
195                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_SELINUX_CONTEXT")]
196                 public const string SELINUX_CONTEXT;
197                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE")]
198                 [Version (since = "2.20")]
199                 public const string STANDARD_ALLOCATED_SIZE;
200                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE")]
201                 public const string STANDARD_CONTENT_TYPE;
202                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_COPY_NAME")]
203                 public const string STANDARD_COPY_NAME;
204                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION")]
205                 public const string STANDARD_DESCRIPTION;
206                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME")]
207                 public const string STANDARD_DISPLAY_NAME;
208                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME")]
209                 public const string STANDARD_EDIT_NAME;
210                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE")]
211                 public const string STANDARD_FAST_CONTENT_TYPE;
212                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ICON")]
213                 public const string STANDARD_ICON;
214                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP")]
215                 public const string STANDARD_IS_BACKUP;
216                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN")]
217                 public const string STANDARD_IS_HIDDEN;
218                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK")]
219                 public const string STANDARD_IS_SYMLINK;
220                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL")]
221                 public const string STANDARD_IS_VIRTUAL;
222                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE")]
223                 [Version (since = "2.46")]
224                 public const string STANDARD_IS_VOLATILE;
225                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_NAME")]
226                 public const string STANDARD_NAME;
227                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SIZE")]
228                 public const string STANDARD_SIZE;
229                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER")]
230                 public const string STANDARD_SORT_ORDER;
231                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON")]
232                 [Version (since = "2.34")]
233                 public const string STANDARD_SYMBOLIC_ICON;
234                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET")]
235                 public const string STANDARD_SYMLINK_TARGET;
236                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TARGET_URI")]
237                 public const string STANDARD_TARGET_URI;
238                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TYPE")]
239                 public const string STANDARD_TYPE;
240                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAILING_FAILED")]
241                 public const string THUMBNAILING_FAILED;
242                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID")]
243                 [Version (since = "2.40")]
244                 public const string THUMBNAIL_IS_VALID;
245                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_PATH")]
246                 public const string THUMBNAIL_PATH;
247                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS")]
248                 public const string TIME_ACCESS;
249                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_USEC")]
250                 public const string TIME_ACCESS_USEC;
251                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED")]
252                 public const string TIME_CHANGED;
253                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_USEC")]
254                 public const string TIME_CHANGED_USEC;
255                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED")]
256                 public const string TIME_CREATED;
257                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_USEC")]
258                 public const string TIME_CREATED_USEC;
259                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED")]
260                 public const string TIME_MODIFIED;
261                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC")]
262                 public const string TIME_MODIFIED_USEC;
263                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_DELETION_DATE")]
264                 [Version (since = "2.24")]
265                 public const string TRASH_DELETION_DATE;
266                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT")]
267                 public const string TRASH_ITEM_COUNT;
268                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ORIG_PATH")]
269                 [Version (since = "2.24")]
270                 public const string TRASH_ORIG_PATH;
271                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCKS")]
272                 public const string UNIX_BLOCKS;
273                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE")]
274                 public const string UNIX_BLOCK_SIZE;
275                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_DEVICE")]
276                 public const string UNIX_DEVICE;
277                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_GID")]
278                 public const string UNIX_GID;
279                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_INODE")]
280                 public const string UNIX_INODE;
281                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT")]
282                 public const string UNIX_IS_MOUNTPOINT;
283                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_MODE")]
284                 public const string UNIX_MODE;
285                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_NLINK")]
286                 public const string UNIX_NLINK;
287                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_RDEV")]
288                 public const string UNIX_RDEV;
289                 [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_UID")]
290                 public const string UNIX_UID;
291         }
292         namespace VolumeIdentifier {
293                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_CLASS")]
294                 public const string CLASS;
295                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_HAL_UDI")]
296                 public const string HAL_UDI;
297                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_LABEL")]
298                 public const string LABEL;
299                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT")]
300                 public const string NFS_MOUNT;
301                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE")]
302                 public const string UNIX_DEVICE;
303                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UUID")]
304                 public const string UUID;
305         }
306         [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_monitor_get_type ()")]
307         [Version (since = "2.40")]
308         public class AppInfoMonitor : GLib.Object {
309                 [CCode (has_construct_function = false)]
310                 protected AppInfoMonitor ();
311                 public static GLib.AppInfoMonitor @get ();
312                 public signal void changed ();
313         }
314         [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_launch_context_get_type ()")]
315         public class AppLaunchContext : GLib.Object {
316                 [CCode (has_construct_function = false)]
317                 public AppLaunchContext ();
318                 public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
319                 [CCode (array_length = false, array_null_terminated = true)]
320                 [Version (since = "2.32")]
321                 public string[] get_environment ();
322                 public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
323                 [Version (since = "2.32")]
324                 public void setenv (string variable, string value);
325                 [Version (since = "2.32")]
326                 public void unsetenv (string variable);
327                 [HasEmitter]
328                 [Version (since = "2.36")]
329                 public virtual signal void launch_failed (string startup_notify_id);
330                 [Version (since = "2.36")]
331                 public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data);
332         }
333         [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_get_type ()")]
334         [Version (since = "2.28")]
335         public class Application : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
336                 [CCode (has_construct_function = false)]
337                 public Application (string? application_id, GLib.ApplicationFlags flags);
338                 [Version (since = "2.42")]
339                 public void add_main_option (string long_name, char short_name, GLib.OptionFlags flags, GLib.OptionArg arg, string description, string? arg_description);
340                 [Version (since = "2.40")]
341                 public void add_main_option_entries ([CCode (array_length = false, array_null_terminated = true)] GLib.OptionEntry[] entries);
342                 [Version (since = "2.40")]
343                 public void add_option_group (owned GLib.OptionGroup group);
344                 [NoWrapper]
345                 public virtual void add_platform_data (GLib.VariantBuilder builder);
346                 [NoWrapper]
347                 public virtual void after_emit (GLib.Variant platform_data);
348                 [NoWrapper]
349                 public virtual void before_emit (GLib.Variant platform_data);
350                 [Version (since = "2.44")]
351                 public void bind_busy_property (GLib.Object object, string property);
352                 [NoWrapper]
353                 public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws GLib.Error;
354                 [NoWrapper]
355                 public virtual void dbus_unregister (GLib.DBusConnection connection, string object_path);
356                 public unowned string get_application_id ();
357                 [Version (since = "2.34")]
358                 public unowned GLib.DBusConnection get_dbus_connection ();
359                 [Version (since = "2.34")]
360                 public unowned string get_dbus_object_path ();
361                 [Version (since = "2.32")]
362                 public static unowned GLib.Application get_default ();
363                 public GLib.ApplicationFlags get_flags ();
364                 public uint get_inactivity_timeout ();
365                 [Version (since = "2.44")]
366                 public bool get_is_busy ();
367                 public bool get_is_registered ();
368                 public bool get_is_remote ();
369                 [Version (since = "2.42")]
370                 public unowned string? get_resource_base_path ();
371                 public void hold ();
372                 public static bool id_is_valid (string application_id);
373                 [NoWrapper]
374                 public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
375                 [Version (since = "2.38")]
376                 public void mark_busy ();
377                 [Version (since = "2.32")]
378                 public void quit ();
379                 [NoWrapper]
380                 public virtual void quit_mainloop ();
381                 public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
382                 public void release ();
383                 public int run ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] string[]? argv = null);
384                 [NoWrapper]
385                 public virtual void run_mainloop ();
386                 [Version (since = "2.40")]
387                 public void send_notification (string? id, GLib.Notification notification);
388                 [Version (deprecated = true, deprecated_since = "2.32", since = "2.28")]
389                 public void set_action_group (GLib.ActionGroup? action_group);
390                 public void set_application_id (string? application_id);
391                 [Version (since = "2.32")]
392                 public static void set_default (GLib.Application? application);
393                 public void set_flags (GLib.ApplicationFlags flags);
394                 public void set_inactivity_timeout (uint inactivity_timeout);
395                 [Version (since = "2.56")]
396                 public void set_option_context_description (string? description);
397                 [Version (since = "2.56")]
398                 public void set_option_context_parameter_string (string? parameter_string);
399                 [Version (since = "2.56")]
400                 public void set_option_context_summary (string? summary);
401                 [Version (since = "2.42")]
402                 public void set_resource_base_path (string? resource_path);
403                 [Version (since = "2.44")]
404                 public void unbind_busy_property (GLib.Object object, string property);
405                 [Version (since = "2.38")]
406                 public void unmark_busy ();
407                 [Version (since = "2.40")]
408                 public void withdraw_notification (string id);
409                 public GLib.ActionGroup action_group { set; }
410                 public string application_id { get; set construct; }
411                 public GLib.ApplicationFlags flags { get; set; }
412                 public uint inactivity_timeout { get; set; }
413                 [Version (since = "2.44")]
414                 public bool is_busy { get; }
415                 public bool is_registered { get; }
416                 public bool is_remote { get; }
417                 public string resource_base_path { get; set; }
418                 [HasEmitter]
419                 public virtual signal void activate ();
420                 public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
421                 [Version (since = "2.40")]
422                 public virtual signal int handle_local_options (GLib.VariantDict options);
423                 [HasEmitter]
424                 public virtual signal void open ([CCode (array_length_cname = "n_files", array_length_pos = 1.5)] GLib.File[] files, string hint);
425                 public virtual signal void shutdown ();
426                 public virtual signal void startup ();
427         }
428         [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_command_line_get_type ()")]
429         public class ApplicationCommandLine : GLib.Object {
430                 [CCode (has_construct_function = false)]
431                 protected ApplicationCommandLine ();
432                 [Version (since = "2.36")]
433                 public GLib.File create_file_for_arg (string arg);
434                 [CCode (array_length_pos = 0.1)]
435                 [Version (since = "2.28")]
436                 public string[] get_arguments ();
437                 [Version (since = "2.28")]
438                 public unowned string? get_cwd ();
439                 [CCode (array_length = false, array_null_terminated = true)]
440                 [Version (since = "2.28")]
441                 public unowned string[] get_environ ();
442                 [Version (since = "2.28")]
443                 public int get_exit_status ();
444                 [Version (since = "2.28")]
445                 public bool get_is_remote ();
446                 [Version (since = "2.40")]
447                 public unowned GLib.VariantDict get_options_dict ();
448                 [Version (since = "2.28")]
449                 public GLib.Variant? get_platform_data ();
450                 [Version (since = "2.34")]
451                 public virtual GLib.InputStream get_stdin ();
452                 [Version (since = "2.28")]
453                 public unowned string getenv (string name);
454                 [PrintfFormat]
455                 [Version (since = "2.28")]
456                 public void print (string format, ...);
457                 [NoWrapper]
458                 public virtual void print_literal (string message);
459                 [PrintfFormat]
460                 [Version (since = "2.28")]
461                 public void printerr (string format, ...);
462                 [NoWrapper]
463                 public virtual void printerr_literal (string message);
464                 [Version (since = "2.28")]
465                 public void set_exit_status (int exit_status);
466                 public GLib.Variant arguments { construct; }
467                 public bool is_remote { get; }
468                 public GLib.Variant options { construct; }
469                 public GLib.Variant platform_data { construct; }
470         }
471         [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_input_stream_get_type ()")]
472         public class BufferedInputStream : GLib.FilterInputStream, GLib.Seekable {
473                 [CCode (has_construct_function = false, type = "GInputStream*")]
474                 public BufferedInputStream (GLib.InputStream base_stream);
475                 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
476                 public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
477                 public size_t get_available ();
478                 public size_t get_buffer_size ();
479                 public size_t peek ([CCode (array_length_cname = "count", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] buffer, size_t offset = 0);
480                 [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
481                 public unowned uint8[] peek_buffer ();
482                 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
483                 public void set_buffer_size (size_t size);
484                 [CCode (has_construct_function = false, type = "GInputStream*")]
485                 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
486                 public uint buffer_size { get; set construct; }
487         }
488         [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_output_stream_get_type ()")]
489         public class BufferedOutputStream : GLib.FilterOutputStream, GLib.Seekable {
490                 [CCode (has_construct_function = false, type = "GOutputStream*")]
491                 public BufferedOutputStream (GLib.OutputStream base_stream);
492                 public bool get_auto_grow ();
493                 public size_t get_buffer_size ();
494                 public void set_auto_grow (bool auto_grow);
495                 public void set_buffer_size (size_t size);
496                 [CCode (has_construct_function = false, type = "GOutputStream*")]
497                 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
498                 public bool auto_grow { get; set; }
499                 public uint buffer_size { get; set construct; }
500         }
501         [CCode (cheader_filename = "gio/gio.h", type_id = "g_bytes_icon_get_type ()")]
502         public class BytesIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
503                 [CCode (has_construct_function = false, type = "GIcon*")]
504                 [Version (since = "2.38")]
505                 public BytesIcon (GLib.Bytes bytes);
506                 [Version (since = "2.38")]
507                 public unowned GLib.Bytes get_bytes ();
508                 public GLib.Bytes bytes { get; construct; }
509         }
510         [CCode (cheader_filename = "gio/gio.h", type_id = "g_cancellable_get_type ()")]
511         public class Cancellable : GLib.Object {
512                 [CCode (has_construct_function = false)]
513                 public Cancellable ();
514                 public void cancel ();
515                 [Version (since = "2.22")]
516                 public ulong connect ([CCode (type = "GCallback")] owned GLib.Func<GLib.Cancellable> callback);
517                 [Version (since = "2.22")]
518                 public void disconnect (ulong handler_id);
519                 public static unowned GLib.Cancellable? get_current ();
520                 public int get_fd ();
521                 public bool is_cancelled ();
522                 [Version (since = "2.22")]
523                 public bool make_pollfd (GLib.PollFD pollfd);
524                 public void pop_current ();
525                 public void push_current ();
526                 [Version (since = "2.22")]
527                 public void release_fd ();
528                 public void reset ();
529                 public bool set_error_if_cancelled () throws GLib.IOError;
530                 [Version (since = "2.28")]
531                 public GLib.CancellableSource source_new ();
532                 public virtual signal void cancelled ();
533         }
534         [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
535         [Compact]
536         public class CancellableSource : GLib.Source {
537                 [CCode (cname = "g_source_set_callback")]
538                 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.CancellableSourceFunc func);
539         }
540         [CCode (cheader_filename = "gio/gio.h", type_id = "g_charset_converter_get_type ()")]
541         public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
542                 [CCode (has_construct_function = false)]
543                 [Version (since = "2.24")]
544                 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
545                 [Version (since = "2.24")]
546                 public uint get_num_fallbacks ();
547                 [Version (since = "2.24")]
548                 public bool get_use_fallback ();
549                 [Version (since = "2.24")]
550                 public void set_use_fallback (bool use_fallback);
551                 [NoAccessorMethod]
552                 public string from_charset { owned get; construct; }
553                 [NoAccessorMethod]
554                 public string to_charset { owned get; construct; }
555                 public bool use_fallback { get; set construct; }
556         }
557         [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_input_stream_get_type ()")]
558         public class ConverterInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
559                 [CCode (has_construct_function = false, type = "GInputStream*")]
560                 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
561                 [Version (since = "2.24")]
562                 public unowned GLib.Converter get_converter ();
563                 public GLib.Converter converter { get; construct; }
564         }
565         [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_output_stream_get_type ()")]
566         public class ConverterOutputStream : GLib.FilterOutputStream, GLib.PollableOutputStream {
567                 [CCode (has_construct_function = false, type = "GOutputStream*")]
568                 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
569                 [Version (since = "2.24")]
570                 public unowned GLib.Converter get_converter ();
571                 public GLib.Converter converter { get; construct; }
572         }
573         [CCode (cheader_filename = "gio/gio.h", type_id = "g_credentials_get_type ()")]
574         [Version (since = "2.26")]
575         public class Credentials : GLib.Object {
576                 [CCode (has_construct_function = false)]
577                 public Credentials ();
578                 public void* get_native (GLib.CredentialsType native_type);
579                 [Version (since = "2.36")]
580                 public int get_unix_pid () throws GLib.Error;
581                 public uint get_unix_user () throws GLib.Error;
582                 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
583                 public void set_native (GLib.CredentialsType native_type, void* native);
584                 public bool set_unix_user (uint uid) throws GLib.Error;
585                 public string to_string ();
586         }
587         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_action_group_get_type ()")]
588         public class DBusActionGroup : GLib.Object, GLib.ActionGroup, GLib.RemoteActionGroup {
589                 [CCode (has_construct_function = false)]
590                 protected DBusActionGroup ();
591                 [Version (since = "2.32")]
592                 public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string? bus_name, string object_path);
593         }
594         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_annotation_info_ref", type_id = "g_dbus_annotation_info_get_type ()", unref_function = "g_dbus_annotation_info_unref")]
595         [Compact]
596         [Version (since = "2.26")]
597         public class DBusAnnotationInfo {
598                 [CCode (array_length = false, array_null_terminated = true)]
599                 public GLib.DBusAnnotationInfo[] annotations;
600                 public string key;
601                 public int ref_count;
602                 public string value;
603                 public unowned GLib.DBusAnnotationInfo @ref ();
604                 public void unref ();
605         }
606         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_arg_info_ref", type_id = "g_dbus_arg_info_get_type ()", unref_function = "g_dbus_arg_info_unref")]
607         [Compact]
608         [Version (since = "2.26")]
609         public class DBusArgInfo {
610                 [CCode (array_length = false, array_null_terminated = true)]
611                 public GLib.DBusAnnotationInfo[] annotations;
612                 public string name;
613                 public int ref_count;
614                 public string signature;
615                 public unowned GLib.DBusArgInfo @ref ();
616                 public void unref ();
617         }
618         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_auth_observer_get_type ()")]
619         [Version (since = "2.26")]
620         public class DBusAuthObserver : GLib.Object {
621                 [CCode (has_construct_function = false)]
622                 public DBusAuthObserver ();
623                 [HasEmitter]
624                 [Version (since = "2.34")]
625                 public signal bool allow_mechanism (string mechanism);
626                 public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials? credentials);
627         }
628         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_connection_get_type ()")]
629         [Version (since = "2.26")]
630         public class DBusConnection : GLib.Object, GLib.AsyncInitable, GLib.Initable {
631                 [CCode (cname = "g_dbus_connection_new", has_construct_function = false)]
632                 public async DBusConnection (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
633                 public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
634                 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;
635                 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;
636                 [Version (since = "2.30")]
637                 public async GLib.Variant call_with_unix_fd_list (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.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error;
638                 [Version (since = "2.30")]
639                 public GLib.Variant call_with_unix_fd_list_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.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
640                 public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
641                 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
642                 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error;
643                 [Version (since = "2.32")]
644                 public uint export_action_group (string object_path, GLib.ActionGroup action_group) throws GLib.Error;
645                 [Version (since = "2.32")]
646                 public uint export_menu_model (string object_path, GLib.MenuModel menu) throws GLib.Error;
647                 public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
648                 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
649                 [CCode (cname = "g_dbus_connection_new_for_address", has_construct_function = false)]
650                 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
651                 [CCode (has_construct_function = false)]
652                 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
653                 public GLib.DBusCapabilityFlags get_capabilities ();
654                 public bool get_exit_on_close ();
655                 public unowned string get_guid ();
656                 [Version (since = "2.34")]
657                 public uint32 get_last_serial ();
658                 public unowned GLib.Credentials? get_peer_credentials ();
659                 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
660                 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
661                 public unowned GLib.IOStream get_stream ();
662                 public unowned string get_unique_name ();
663                 public bool is_closed ();
664                 [CCode (cname = "g_dbus_connection_new", finish_function = "g_dbus_connection_new_finish")]
665                 [Version (deprecated_since = "vala-0.36", replacement = "DBusConnection")]
666                 public static async GLib.DBusConnection @new (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
667                 [CCode (cname = "g_dbus_connection_new_for_address", finish_function = "g_dbus_connection_new_for_address_finish")]
668                 [Version (deprecated_since = "vala-0.36", replacement = "DBusConnection.for_address")]
669                 public static async GLib.DBusConnection new_for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
670                 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
671                 [Version (since = "2.46")]
672                 public uint register_object_with_closures (string object_path, GLib.DBusInterfaceInfo interface_info, GLib.Closure? method_call_closure, GLib.Closure? get_property_closure, GLib.Closure? set_property_closure) throws GLib.Error;
673                 public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, void* user_data, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
674                 public void remove_filter (uint filter_id);
675                 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
676                 public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32* out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
677                 public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
678                 public void set_exit_on_close (bool exit_on_close);
679                 public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
680                 public void signal_unsubscribe (uint subscription_id);
681                 public void start_message_processing ();
682                 [CCode (has_construct_function = false)]
683                 public DBusConnection.sync (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
684                 [Version (since = "2.32")]
685                 public void unexport_action_group (uint export_id);
686                 [Version (since = "2.32")]
687                 public void unexport_menu_model (uint export_id);
688                 public bool unregister_object (uint registration_id);
689                 public bool unregister_subtree (uint registration_id);
690                 public string address { construct; }
691                 public GLib.DBusAuthObserver authentication_observer { construct; }
692                 public GLib.DBusCapabilityFlags capabilities { get; }
693                 [NoAccessorMethod]
694                 public bool closed { get; }
695                 public bool exit_on_close { get; set; }
696                 public GLib.DBusConnectionFlags flags { construct; }
697                 public string guid { get; construct; }
698                 public GLib.IOStream stream { get; construct; }
699                 public string unique_name { get; }
700                 [CCode (cname = "closed")]
701                 public signal void on_closed (bool remote_peer_vanished, GLib.Error? error);
702         }
703         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_interface_info_ref", type_id = "g_dbus_interface_info_get_type ()", unref_function = "g_dbus_interface_info_unref")]
704         [Compact]
705         [Version (since = "2.26")]
706         public class DBusInterfaceInfo {
707                 [CCode (array_length = false, array_null_terminated = true)]
708                 public GLib.DBusAnnotationInfo[] annotations;
709                 [CCode (array_length = false, array_null_terminated = true)]
710                 public GLib.DBusMethodInfo[] methods;
711                 public string name;
712                 [CCode (array_length = false, array_null_terminated = true)]
713                 public GLib.DBusPropertyInfo[] properties;
714                 public int ref_count;
715                 [CCode (array_length = false, array_null_terminated = true)]
716                 public GLib.DBusSignalInfo[] signals;
717                 [Version (since = "2.30")]
718                 public void cache_build ();
719                 [Version (since = "2.30")]
720                 public void cache_release ();
721                 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
722                 public unowned GLib.DBusMethodInfo lookup_method (string name);
723                 public unowned GLib.DBusPropertyInfo lookup_property (string name);
724                 public unowned GLib.DBusSignalInfo lookup_signal (string name);
725                 public unowned GLib.DBusInterfaceInfo @ref ();
726                 public void unref ();
727         }
728         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_skeleton_get_type ()")]
729         [Version (since = "2.30")]
730         public abstract class DBusInterfaceSkeleton : GLib.Object, GLib.DBusInterface {
731                 [CCode (has_construct_function = false)]
732                 protected DBusInterfaceSkeleton ();
733                 public bool export (GLib.DBusConnection connection, string object_path) throws GLib.Error;
734                 public virtual void flush ();
735                 public unowned GLib.DBusConnection get_connection ();
736                 [Version (since = "2.32")]
737                 public GLib.List<GLib.DBusConnection> get_connections ();
738                 public GLib.DBusInterfaceSkeletonFlags get_flags ();
739                 public virtual unowned GLib.DBusInterfaceInfo get_info ();
740                 public unowned string get_object_path ();
741                 public virtual GLib.Variant get_properties ();
742                 public virtual GLib.DBusInterfaceVTable? get_vtable ();
743                 [Version (since = "2.32")]
744                 public bool has_connection (GLib.DBusConnection connection);
745                 public void set_flags (GLib.DBusInterfaceSkeletonFlags flags);
746                 public void unexport ();
747                 [Version (since = "2.32")]
748                 public void unexport_from_connection (GLib.DBusConnection connection);
749                 [NoAccessorMethod]
750                 public GLib.DBusInterfaceSkeletonFlags g_flags { get; set; }
751                 public virtual signal bool g_authorize_method (GLib.DBusMethodInvocation invocation);
752         }
753         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_menu_model_get_type ()")]
754         public class DBusMenuModel : GLib.MenuModel {
755                 [CCode (has_construct_function = false)]
756                 protected DBusMenuModel ();
757                 [Version (since = "2.32")]
758                 public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string? bus_name, string object_path);
759         }
760         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
761         [Version (since = "2.26")]
762         public class DBusMessage : GLib.Object {
763                 [CCode (has_construct_function = false)]
764                 public DBusMessage ();
765                 public static ssize_t bytes_needed ([CCode (array_length_cname = "blob_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] blob) throws GLib.Error;
766                 public GLib.DBusMessage copy () throws GLib.Error;
767                 [CCode (has_construct_function = false)]
768                 public DBusMessage.from_blob ([CCode (array_length_cname = "blob_len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] blob, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
769                 public unowned string get_arg0 ();
770                 public unowned GLib.Variant get_body ();
771                 public GLib.DBusMessageByteOrder get_byte_order ();
772                 public unowned string get_destination ();
773                 public unowned string get_error_name ();
774                 public GLib.DBusMessageFlags get_flags ();
775                 public GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
776                 [CCode (array_length = false, array_null_terminated = true)]
777                 public uchar[] get_header_fields ();
778                 public unowned string get_interface ();
779                 public bool get_locked ();
780                 public unowned string get_member ();
781                 public GLib.DBusMessageType get_message_type ();
782                 public uint32 get_num_unix_fds ();
783                 public unowned string get_path ();
784                 public uint32 get_reply_serial ();
785                 public unowned string get_sender ();
786                 public uint32 get_serial ();
787                 public unowned string get_signature ();
788                 public unowned GLib.UnixFDList get_unix_fd_list ();
789                 public void @lock ();
790                 [CCode (has_construct_function = false)]
791                 public DBusMessage.method_call (string? name, string path, string? interface_, string method);
792                 [CCode (has_construct_function = false)]
793                 [PrintfFormat]
794                 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format, ...);
795                 [CCode (has_construct_function = false)]
796                 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
797                 [CCode (has_construct_function = false)]
798                 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, va_list var_args);
799                 [CCode (has_construct_function = false)]
800                 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
801                 public string print (uint indent = 0);
802                 public void set_body (GLib.Variant body);
803                 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
804                 public void set_destination (string value);
805                 public void set_error_name (string value);
806                 public void set_flags (GLib.DBusMessageFlags flags);
807                 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant? value);
808                 public void set_interface (string value);
809                 public void set_member (string value);
810                 public void set_message_type (GLib.DBusMessageType type);
811                 public void set_num_unix_fds (uint32 value);
812                 public void set_path (string value);
813                 public void set_reply_serial (uint32 value);
814                 public void set_sender (string value);
815                 public void set_serial (uint32 serial);
816                 public void set_signature (string value);
817                 public void set_unix_fd_list (GLib.UnixFDList? fd_list);
818                 [CCode (has_construct_function = false)]
819                 public DBusMessage.@signal (string path, string interface_, string @signal);
820                 [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
821                 public uint8[] to_blob (GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
822                 public bool to_gerror () throws GLib.Error;
823                 public bool locked { get; }
824         }
825         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_method_info_ref", type_id = "g_dbus_method_info_get_type ()", unref_function = "g_dbus_method_info_unref")]
826         [Compact]
827         [Version (since = "2.26")]
828         public class DBusMethodInfo {
829                 [CCode (array_length = false, array_null_terminated = true)]
830                 public GLib.DBusAnnotationInfo[] annotations;
831                 [CCode (array_length = false, array_null_terminated = true)]
832                 public GLib.DBusArgInfo[] in_args;
833                 public string name;
834                 [CCode (array_length = false, array_null_terminated = true)]
835                 public GLib.DBusArgInfo[] out_args;
836                 public int ref_count;
837                 public unowned GLib.DBusMethodInfo @ref ();
838                 public void unref ();
839         }
840         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_method_invocation_get_type ()")]
841         [Version (since = "2.26")]
842         public class DBusMethodInvocation : GLib.Object {
843                 [CCode (has_construct_function = false)]
844                 protected DBusMethodInvocation ();
845                 public unowned GLib.DBusConnection get_connection ();
846                 public unowned string get_interface_name ();
847                 public unowned GLib.DBusMessage get_message ();
848                 public unowned GLib.DBusMethodInfo get_method_info ();
849                 public unowned string get_method_name ();
850                 public unowned string get_object_path ();
851                 public unowned GLib.Variant get_parameters ();
852                 [Version (since = "2.38")]
853                 public unowned GLib.DBusPropertyInfo get_property_info ();
854                 public unowned string get_sender ();
855                 public void* get_user_data ();
856                 public void return_dbus_error (string error_name, string error_message);
857                 public void return_error (GLib.Quark domain, int code, string format, ...);
858                 public void return_error_literal (GLib.Quark domain, int code, string message);
859                 public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
860                 public void return_gerror (GLib.Error error);
861                 public void return_value (GLib.Variant? parameters);
862                 [Version (since = "2.30")]
863                 public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
864                 [Version (since = "2.30")]
865                 public void take_error (owned GLib.Error error);
866         }
867         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_node_info_ref", type_id = "g_dbus_node_info_get_type ()", unref_function = "g_dbus_node_info_unref")]
868         [Compact]
869         [Version (since = "2.26")]
870         public class DBusNodeInfo {
871                 [CCode (array_length = false, array_null_terminated = true)]
872                 public GLib.DBusAnnotationInfo[] annotations;
873                 [CCode (array_length = false, array_null_terminated = true)]
874                 public GLib.DBusInterfaceInfo[] interfaces;
875                 [CCode (array_length = false, array_null_terminated = true)]
876                 public GLib.DBusNodeInfo[] nodes;
877                 public string path;
878                 public int ref_count;
879                 [CCode (has_construct_function = false)]
880                 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
881                 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
882                 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
883                 public unowned GLib.DBusNodeInfo @ref ();
884                 public void unref ();
885         }
886         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
887         [Version (since = "2.30")]
888         public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable {
889                 [CCode (cname = "g_dbus_object_manager_client_new", has_construct_function = false)]
890                 public async DBusObjectManagerClient (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
891                 [CCode (cname = "g_dbus_object_manager_client_new_for_bus", has_construct_function = false)]
892                 public async DBusObjectManagerClient.for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
893                 [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
894                 public DBusObjectManagerClient.for_bus_sync (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
895                 public unowned GLib.DBusConnection get_connection ();
896                 public GLib.DBusObjectManagerClientFlags get_flags ();
897                 public unowned string get_name ();
898                 public string? get_name_owner ();
899                 [CCode (cname = "g_dbus_object_manager_client_new", finish_function = "g_dbus_object_manager_client_new_finish")]
900                 [Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient")]
901                 public static async GLib.DBusObjectManagerClient @new (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
902                 [CCode (cname = "g_dbus_object_manager_client_new_for_bus", finish_function = "g_dbus_object_manager_client_new_for_bus_finish")]
903                 [Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient.for_bus")]
904                 public static async GLib.DBusObjectManagerClient new_for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
905                 [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
906                 public DBusObjectManagerClient.sync (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string? name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
907                 public GLib.BusType bus_type { construct; }
908                 public GLib.DBusConnection connection { get; construct; }
909                 public GLib.DBusObjectManagerClientFlags flags { get; construct; }
910                 [NoAccessorMethod]
911                 public void* get_proxy_type_destroy_notify { get; construct; }
912                 [NoAccessorMethod]
913                 public void* get_proxy_type_func { get; construct; }
914                 [NoAccessorMethod]
915                 public void* get_proxy_type_user_data { get; construct; }
916                 public string name { get; construct; }
917                 public string? name_owner { owned get; }
918                 [NoAccessorMethod]
919                 public string object_path { owned get; construct; }
920                 public virtual signal void interface_proxy_properties_changed (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
921                 public virtual signal void interface_proxy_signal (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, string sender_name, string signal_name, GLib.Variant parameters);
922         }
923         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_server_get_type ()")]
924         [Version (since = "2.30")]
925         public class DBusObjectManagerServer : GLib.Object, GLib.DBusObjectManager {
926                 [CCode (has_construct_function = false)]
927                 public DBusObjectManagerServer (string object_path);
928                 public void export (GLib.DBusObjectSkeleton object);
929                 public void export_uniquely (GLib.DBusObjectSkeleton object);
930                 public GLib.DBusConnection get_connection ();
931                 [Version (since = "2.34")]
932                 public bool is_exported (GLib.DBusObjectSkeleton object);
933                 public void set_connection (GLib.DBusConnection? connection);
934                 public bool unexport (string object_path);
935                 public GLib.DBusConnection connection { owned get; set; }
936                 [NoAccessorMethod]
937                 public string object_path { owned get; construct; }
938         }
939         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_proxy_get_type ()")]
940         [Version (since = "2.30")]
941         public class DBusObjectProxy : GLib.Object, GLib.DBusObject {
942                 [CCode (has_construct_function = false)]
943                 public DBusObjectProxy (GLib.DBusConnection connection, string object_path);
944                 public unowned GLib.DBusConnection get_connection ();
945                 [NoAccessorMethod]
946                 public GLib.DBusConnection g_connection { owned get; construct; }
947                 [NoAccessorMethod]
948                 public string g_object_path { owned get; construct; }
949         }
950         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_skeleton_get_type ()")]
951         [Version (since = "2.30")]
952         public class DBusObjectSkeleton : GLib.Object, GLib.DBusObject {
953                 [CCode (has_construct_function = false)]
954                 public DBusObjectSkeleton (string object_path);
955                 public void add_interface (GLib.DBusInterfaceSkeleton interface_);
956                 public void flush ();
957                 public void remove_interface (GLib.DBusInterfaceSkeleton interface_);
958                 public void remove_interface_by_name (string interface_name);
959                 public void set_object_path (string object_path);
960                 [NoAccessorMethod]
961                 public string g_object_path { owned get; set construct; }
962                 public virtual signal bool authorize_method (GLib.DBusInterfaceSkeleton interface_, GLib.DBusMethodInvocation invocation);
963         }
964         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_property_info_ref", type_id = "g_dbus_property_info_get_type ()", unref_function = "g_dbus_property_info_unref")]
965         [Compact]
966         [Version (since = "2.26")]
967         public class DBusPropertyInfo {
968                 [CCode (array_length = false, array_null_terminated = true)]
969                 public GLib.DBusAnnotationInfo[] annotations;
970                 public GLib.DBusPropertyInfoFlags flags;
971                 public string name;
972                 public int ref_count;
973                 public string signature;
974                 public unowned GLib.DBusPropertyInfo @ref ();
975                 public void unref ();
976         }
977         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_proxy_get_type ()")]
978         [Version (since = "2.26")]
979         public class DBusProxy : GLib.Object, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
980                 [CCode (cname = "g_dbus_proxy_new", has_construct_function = false)]
981                 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;
982                 public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
983                 public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
984                 [Version (since = "2.30")]
985                 public async GLib.Variant call_with_unix_fd_list (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error;
986                 [Version (since = "2.30")]
987                 public GLib.Variant call_with_unix_fd_list_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
988                 [CCode (cname = "g_dbus_proxy_new_for_bus", finish_function = "g_dbus_proxy_new_for_bus_finish")]
989                 [Version (deprecated_since = "vala-0.36", replacement = "DBusProxy.for_bus")]
990                 public static async GLib.DBusProxy create_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.IOError;
991                 [CCode (cname = "g_dbus_proxy_new_for_bus", has_construct_function = false)]
992                 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;
993                 [CCode (has_construct_function = false)]
994                 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;
995                 public GLib.Variant get_cached_property (string property_name);
996                 [CCode (array_length = false, array_null_terminated = true)]
997                 public string[] get_cached_property_names ();
998                 public unowned GLib.DBusConnection get_connection ();
999                 public int get_default_timeout ();
1000                 public GLib.DBusProxyFlags get_flags ();
1001                 public GLib.DBusInterfaceInfo get_interface_info ();
1002                 public unowned string get_interface_name ();
1003                 public unowned string get_name ();
1004                 public string get_name_owner ();
1005                 public unowned string get_object_path ();
1006                 [CCode (cname = "g_dbus_proxy_new", finish_function = "g_dbus_proxy_new_finish")]
1007                 [Version (deprecated_since = "vala-0.36", replacement = "DBusProxy")]
1008                 public static async GLib.DBusProxy @new (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string? name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1009                 public void set_cached_property (string property_name, GLib.Variant? value);
1010                 public void set_default_timeout (int timeout_msec);
1011                 public void set_interface_info (GLib.DBusInterfaceInfo? info);
1012                 [CCode (has_construct_function = false)]
1013                 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;
1014                 public GLib.BusType g_bus_type { construct; }
1015                 [NoAccessorMethod]
1016                 public GLib.DBusConnection g_connection { owned get; construct; }
1017                 [NoAccessorMethod]
1018                 public int g_default_timeout { get; set construct; }
1019                 [NoAccessorMethod]
1020                 public GLib.DBusProxyFlags g_flags { get; construct; }
1021                 [NoAccessorMethod]
1022                 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
1023                 [NoAccessorMethod]
1024                 public string g_interface_name { owned get; construct; }
1025                 [NoAccessorMethod]
1026                 public string g_name { owned get; construct; }
1027                 [NoAccessorMethod]
1028                 public string g_name_owner { owned get; }
1029                 [NoAccessorMethod]
1030                 public string g_object_path { owned get; construct; }
1031                 public virtual signal void g_properties_changed (GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
1032                 public virtual signal void g_signal (string? sender_name, string signal_name, GLib.Variant parameters);
1033         }
1034         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_server_get_type ()")]
1035         [Version (since = "2.26")]
1036         public class DBusServer : GLib.Object, GLib.Initable {
1037                 [CCode (has_construct_function = false)]
1038                 protected DBusServer ();
1039                 public unowned string get_client_address ();
1040                 public GLib.DBusServerFlags get_flags ();
1041                 public unowned string get_guid ();
1042                 public bool is_active ();
1043                 public void start ();
1044                 public void stop ();
1045                 [CCode (has_construct_function = false)]
1046                 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
1047                 [NoAccessorMethod]
1048                 public bool active { get; }
1049                 [NoAccessorMethod]
1050                 public string address { owned get; construct; }
1051                 [NoAccessorMethod]
1052                 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
1053                 public string client_address { get; }
1054                 public GLib.DBusServerFlags flags { get; construct; }
1055                 public string guid { get; construct; }
1056                 public signal bool new_connection (GLib.DBusConnection connection);
1057         }
1058         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_signal_info_ref", type_id = "g_dbus_signal_info_get_type ()", unref_function = "g_dbus_signal_info_unref")]
1059         [Compact]
1060         [Version (since = "2.26")]
1061         public class DBusSignalInfo {
1062                 [CCode (array_length = false, array_null_terminated = true)]
1063                 public GLib.DBusAnnotationInfo[] annotations;
1064                 [CCode (array_length = false, array_null_terminated = true)]
1065                 public GLib.DBusArgInfo[] args;
1066                 public string name;
1067                 public int ref_count;
1068                 public unowned GLib.DBusSignalInfo @ref ();
1069                 public void unref ();
1070         }
1071         [CCode (cheader_filename = "gio/gio.h", type_id = "g_data_input_stream_get_type ()")]
1072         public class DataInputStream : GLib.BufferedInputStream, GLib.Seekable {
1073                 [CCode (has_construct_function = false)]
1074                 public DataInputStream (GLib.InputStream base_stream);
1075                 public GLib.DataStreamByteOrder get_byte_order ();
1076                 public GLib.DataStreamNewlineType get_newline_type ();
1077                 public uint8 read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1078                 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1079                 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1080                 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1081                 [CCode (array_length = false, array_null_terminated = true)]
1082                 public string? read_line (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1083                 [CCode (array_length = false, array_null_terminated = true)]
1084                 [Version (since = "2.20")]
1085                 public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError, GLib.IOError;
1086                 [Version (since = "2.30")]
1087                 public string? read_line_utf8 (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1088                 [CCode (cname = "g_data_input_stream_read_line_async", finish_function = "g_data_input_stream_read_line_finish_utf8")]
1089                 public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError;
1090                 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1091                 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1092                 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1093                 public string read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1094                 [Version (since = "2.20")]
1095                 public async string read_until_async (string stop_chars, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
1096                 [Version (since = "2.26")]
1097                 public string read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1098                 [Version (since = "2.26")]
1099                 public async string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
1100                 public void set_byte_order (GLib.DataStreamByteOrder order);
1101                 public void set_newline_type (GLib.DataStreamNewlineType type);
1102                 public GLib.DataStreamByteOrder byte_order { get; set; }
1103                 public GLib.DataStreamNewlineType newline_type { get; set; }
1104         }
1105         [CCode (cheader_filename = "gio/gio.h", type_id = "g_data_output_stream_get_type ()")]
1106         public class DataOutputStream : GLib.FilterOutputStream, GLib.Seekable {
1107                 [CCode (has_construct_function = false)]
1108                 public DataOutputStream (GLib.OutputStream base_stream);
1109                 public GLib.DataStreamByteOrder get_byte_order ();
1110                 public bool put_byte (uint8 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1111                 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1112                 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1113                 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1114                 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1115                 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1116                 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1117                 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1118                 public void set_byte_order (GLib.DataStreamByteOrder order);
1119                 public GLib.DataStreamByteOrder byte_order { get; set; }
1120         }
1121         [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblem_get_type ()")]
1122         public class Emblem : GLib.Object, GLib.Icon {
1123                 [CCode (has_construct_function = false)]
1124                 [Version (since = "2.18")]
1125                 public Emblem (GLib.Icon icon);
1126                 [Version (since = "2.18")]
1127                 public unowned GLib.Icon get_icon ();
1128                 [Version (since = "2.18")]
1129                 public GLib.EmblemOrigin get_origin ();
1130                 [CCode (has_construct_function = false)]
1131                 [Version (since = "2.18")]
1132                 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
1133                 public GLib.Object icon { get; construct; }
1134                 public GLib.EmblemOrigin origin { get; construct; }
1135         }
1136         [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblemed_icon_get_type ()")]
1137         public class EmblemedIcon : GLib.Object, GLib.Icon {
1138                 [CCode (has_construct_function = false, type = "GIcon*")]
1139                 [Version (since = "2.18")]
1140                 public EmblemedIcon (GLib.Icon icon, GLib.Emblem? emblem);
1141                 [Version (since = "2.18")]
1142                 public void add_emblem (GLib.Emblem emblem);
1143                 [Version (since = "2.28")]
1144                 public void clear_emblems ();
1145                 [Version (since = "2.18")]
1146                 public unowned GLib.List<GLib.Emblem> get_emblems ();
1147                 [Version (since = "2.18")]
1148                 public unowned GLib.Icon get_icon ();
1149                 [NoAccessorMethod]
1150                 public GLib.Icon gicon { owned get; construct; }
1151         }
1152         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_file_attribute_info_list_ref", type_id = "g_file_attribute_info_list_get_type ()", unref_function = "g_file_attribute_info_list_unref")]
1153         [Compact]
1154         public class FileAttributeInfoList {
1155                 [CCode (array_length_cname = "n_infos")]
1156                 public GLib.FileAttributeInfo[] infos;
1157                 public int n_infos;
1158                 [CCode (has_construct_function = false)]
1159                 public FileAttributeInfoList ();
1160                 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
1161                 public GLib.FileAttributeInfoList dup ();
1162                 public unowned GLib.FileAttributeInfo? lookup (string name);
1163                 public unowned GLib.FileAttributeInfoList @ref ();
1164                 public void unref ();
1165         }
1166         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_file_attribute_matcher_ref", type_id = "g_file_attribute_matcher_get_type ()", unref_function = "g_file_attribute_matcher_unref")]
1167         [Compact]
1168         public class FileAttributeMatcher {
1169                 [CCode (has_construct_function = false)]
1170                 public FileAttributeMatcher (string attributes);
1171                 public bool enumerate_namespace (string ns);
1172                 public unowned string enumerate_next ();
1173                 public bool matches (string attribute);
1174                 public bool matches_only (string attribute);
1175                 public unowned GLib.FileAttributeMatcher @ref ();
1176                 public GLib.FileAttributeMatcher subtract (GLib.FileAttributeMatcher subtract);
1177                 [Version (since = "2.32")]
1178                 public string to_string ();
1179                 public void unref ();
1180         }
1181         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_enumerator_get_type ()")]
1182         public class FileEnumerator : GLib.Object {
1183                 [CCode (has_construct_function = false)]
1184                 protected FileEnumerator ();
1185                 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
1186                 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1187                 [NoWrapper]
1188                 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1189                 [Version (since = "2.36")]
1190                 public GLib.File get_child (GLib.FileInfo info);
1191                 [Version (since = "2.18")]
1192                 public unowned GLib.File get_container ();
1193                 public bool has_pending ();
1194                 public bool is_closed ();
1195                 [Version (since = "2.44")]
1196                 public bool iterate (out unowned GLib.FileInfo out_info, out unowned GLib.File out_child, GLib.Cancellable? cancellable = null) throws GLib.Error;
1197                 public virtual GLib.FileInfo? next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1198                 public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1199                 public void set_pending (bool pending);
1200                 public GLib.File container { construct; }
1201         }
1202         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_io_stream_get_type ()")]
1203         public class FileIOStream : GLib.IOStream, GLib.Seekable {
1204                 [CCode (has_construct_function = false)]
1205                 protected FileIOStream ();
1206                 [NoWrapper]
1207                 public virtual bool can_seek ();
1208                 [NoWrapper]
1209                 public virtual bool can_truncate ();
1210                 [Version (since = "2.22")]
1211                 public virtual string get_etag ();
1212                 [Version (since = "2.22")]
1213                 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1214                 [Version (since = "2.22")]
1215                 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1216                 [NoWrapper]
1217                 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1218                 [NoWrapper]
1219                 public virtual int64 tell ();
1220                 [NoWrapper]
1221                 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1222         }
1223         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_icon_get_type ()")]
1224         public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
1225                 [CCode (has_construct_function = false, type = "GIcon*")]
1226                 public FileIcon (GLib.File file);
1227                 public unowned GLib.File get_file ();
1228                 public GLib.File file { get; construct; }
1229         }
1230         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_info_get_type ()")]
1231         public class FileInfo : GLib.Object {
1232                 [CCode (has_construct_function = false)]
1233                 public FileInfo ();
1234                 public void clear_status ();
1235                 public void copy_into (GLib.FileInfo dest_info);
1236                 public GLib.FileInfo dup ();
1237                 public string get_attribute_as_string (string attribute);
1238                 public bool get_attribute_boolean (string attribute);
1239                 public unowned string get_attribute_byte_string (string attribute);
1240                 public bool get_attribute_data (string attribute, out GLib.FileAttributeType type, out void* value_pp, out GLib.FileAttributeStatus status);
1241                 public int32 get_attribute_int32 (string attribute);
1242                 public int64 get_attribute_int64 (string attribute);
1243                 public unowned GLib.Object get_attribute_object (string attribute);
1244                 public GLib.FileAttributeStatus get_attribute_status (string attribute);
1245                 public unowned string get_attribute_string (string attribute);
1246                 [CCode (array_length = false, array_null_terminated = true)]
1247                 [Version (since = "2.22")]
1248                 public unowned string[] get_attribute_stringv (string attribute);
1249                 public GLib.FileAttributeType get_attribute_type (string attribute);
1250                 public uint32 get_attribute_uint32 (string attribute);
1251                 public uint64 get_attribute_uint64 (string attribute);
1252                 public unowned string get_content_type ();
1253                 [Version (since = "2.36")]
1254                 public GLib.DateTime get_deletion_date ();
1255                 public unowned string get_display_name ();
1256                 public unowned string get_edit_name ();
1257                 public unowned string get_etag ();
1258                 public GLib.FileType get_file_type ();
1259                 public unowned GLib.Icon get_icon ();
1260                 public bool get_is_backup ();
1261                 public bool get_is_hidden ();
1262                 public bool get_is_symlink ();
1263                 public GLib.TimeVal get_modification_time ();
1264                 public unowned string get_name ();
1265                 public int64 get_size ();
1266                 public int32 get_sort_order ();
1267                 [Version (since = "2.34")]
1268                 public unowned GLib.Icon get_symbolic_icon ();
1269                 public unowned string get_symlink_target ();
1270                 public bool has_attribute (string attribute);
1271                 [Version (since = "2.22")]
1272                 public bool has_namespace (string name_space);
1273                 [CCode (array_length = false, array_null_terminated = true)]
1274                 public string[]? list_attributes (string? name_space);
1275                 public void remove_attribute (string attribute);
1276                 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
1277                 public void set_attribute_boolean (string attribute, bool attr_value);
1278                 public void set_attribute_byte_string (string attribute, string attr_value);
1279                 public void set_attribute_int32 (string attribute, int32 attr_value);
1280                 public void set_attribute_int64 (string attribute, int64 attr_value);
1281                 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
1282                 public void set_attribute_object (string attribute, GLib.Object attr_value);
1283                 [Version (since = "2.22")]
1284                 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
1285                 public void set_attribute_string (string attribute, string attr_value);
1286                 public void set_attribute_stringv (string attribute, [CCode (array_length = false)] string[] attr_value);
1287                 public void set_attribute_uint32 (string attribute, uint32 attr_value);
1288                 public void set_attribute_uint64 (string attribute, uint64 attr_value);
1289                 public void set_content_type (string content_type);
1290                 public void set_display_name (string display_name);
1291                 public void set_edit_name (string edit_name);
1292                 public void set_file_type (GLib.FileType type);
1293                 public void set_icon (GLib.Icon icon);
1294                 public void set_is_hidden (bool is_hidden);
1295                 public void set_is_symlink (bool is_symlink);
1296                 public void set_modification_time (GLib.TimeVal mtime);
1297                 public void set_name (string name);
1298                 public void set_size (int64 size);
1299                 public void set_sort_order (int32 sort_order);
1300                 [Version (since = "2.34")]
1301                 public void set_symbolic_icon (GLib.Icon icon);
1302                 public void set_symlink_target (string symlink_target);
1303                 public void unset_attribute_mask ();
1304         }
1305         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_input_stream_get_type ()")]
1306         public class FileInputStream : GLib.InputStream, GLib.Seekable {
1307                 [CCode (has_construct_function = false)]
1308                 protected FileInputStream ();
1309                 [NoWrapper]
1310                 public virtual bool can_seek ();
1311                 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1312                 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1313                 [NoWrapper]
1314                 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1315                 [NoWrapper]
1316                 public virtual int64 tell ();
1317         }
1318         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_monitor_get_type ()")]
1319         public abstract class FileMonitor : GLib.Object {
1320                 [CCode (has_construct_function = false)]
1321                 protected FileMonitor ();
1322                 public virtual bool cancel ();
1323                 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
1324                 public bool is_cancelled ();
1325                 public void set_rate_limit (int limit_msecs);
1326                 [NoAccessorMethod]
1327                 public bool cancelled { get; }
1328                 [Version (deprecated_since = "2.46")]
1329                 public GLib.MainContext context { construct; }
1330                 [NoAccessorMethod]
1331                 public int rate_limit { get; set; }
1332                 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
1333         }
1334         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_output_stream_get_type ()")]
1335         public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
1336                 [CCode (has_construct_function = false)]
1337                 protected FileOutputStream ();
1338                 [NoWrapper]
1339                 public virtual bool can_seek ();
1340                 [NoWrapper]
1341                 public virtual bool can_truncate ();
1342                 public virtual string get_etag ();
1343                 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1344                 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1345                 [NoWrapper]
1346                 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1347                 [NoWrapper]
1348                 public virtual int64 tell ();
1349                 [NoWrapper]
1350                 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1351         }
1352         [CCode (cheader_filename = "gio/gio.h", type_id = "g_filename_completer_get_type ()")]
1353         public class FilenameCompleter : GLib.Object {
1354                 [CCode (has_construct_function = false)]
1355                 public FilenameCompleter ();
1356                 public string get_completion_suffix (string initial_text);
1357                 [CCode (array_length = false, array_null_terminated = true)]
1358                 public string[] get_completions (string initial_text);
1359                 public void set_dirs_only (bool dirs_only);
1360                 public virtual signal void got_completion_data ();
1361         }
1362         [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_input_stream_get_type ()")]
1363         public abstract class FilterInputStream : GLib.InputStream {
1364                 [CCode (has_construct_function = false)]
1365                 protected FilterInputStream ();
1366                 public unowned GLib.InputStream get_base_stream ();
1367                 public bool get_close_base_stream ();
1368                 public void set_close_base_stream (bool close_base);
1369                 public GLib.InputStream base_stream { get; construct; }
1370                 public bool close_base_stream { get; set construct; }
1371         }
1372         [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_output_stream_get_type ()")]
1373         public abstract class FilterOutputStream : GLib.OutputStream {
1374                 [CCode (has_construct_function = false)]
1375                 protected FilterOutputStream ();
1376                 public unowned GLib.OutputStream get_base_stream ();
1377                 public bool get_close_base_stream ();
1378                 public void set_close_base_stream (bool close_base);
1379                 public GLib.OutputStream base_stream { get; construct; }
1380                 public bool close_base_stream { get; construct; }
1381         }
1382         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1383         [Compact]
1384         public class IOExtension {
1385                 public unowned string get_name ();
1386                 public int get_priority ();
1387                 public GLib.Type get_type ();
1388         }
1389         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1390         [Compact]
1391         public class IOExtensionPoint {
1392                 [CCode (cheader_filename = "gio/gio.h", cname = "G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME")]
1393                 public const string DESKTOP_APP_INFO_LOOKUP;
1394                 [CCode (cheader_filename = "gio/gio.h", cname = "G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
1395                 public const string NATIVE_VOLUME_MONITOR;
1396                 [CCode (cheader_filename = "gio/gio.h", cname = "G_NETWORK_MONITOR_EXTENSION_POINT_NAME")]
1397                 [Version (since = "2.30")]
1398                 public const string NETWORK_MONITOR;
1399                 [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_EXTENSION_POINT_NAME")]
1400                 [Version (since = "2.26")]
1401                 public const string PROXY;
1402                 [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_RESOLVER_EXTENSION_POINT_NAME")]
1403                 public const string PROXY_RESOLVER;
1404                 [CCode (cheader_filename = "gio/gio.h", cname = "G_SETTINGS_BACKEND_EXTENSION_POINT_NAME")]
1405                 public const string SETTINGS_BACKEND;
1406                 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_BACKEND_EXTENSION_POINT_NAME")]
1407                 public const string TLS_BACKEND;
1408                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VFS_EXTENSION_POINT_NAME")]
1409                 public const string VFS;
1410                 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
1411                 public const string VOLUME_MONITOR;
1412                 public unowned GLib.IOExtension get_extension_by_name (string name);
1413                 public unowned GLib.List<GLib.IOExtension> get_extensions ();
1414                 public GLib.Type get_required_type ();
1415                 [CCode (cheader_filename = "gio/gio.h")]
1416                 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
1417                 [CCode (cheader_filename = "gio/gio.h")]
1418                 public static unowned GLib.IOExtensionPoint lookup (string name);
1419                 [CCode (cheader_filename = "gio/gio.h")]
1420                 public static unowned GLib.IOExtensionPoint register (string name);
1421                 public void set_required_type (GLib.Type type);
1422         }
1423         [CCode (cheader_filename = "gio/gio.h", type_id = "g_io_module_get_type ()")]
1424         public class IOModule : GLib.TypeModule, GLib.TypePlugin {
1425                 [CCode (has_construct_function = false)]
1426                 public IOModule (string filename);
1427                 public void load ();
1428                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory")]
1429                 public static GLib.List<GLib.IOModule> load_all_in_directory (string dirname);
1430                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory_with_scope")]
1431                 [Version (since = "2.30")]
1432                 public static GLib.List<GLib.IOModule> load_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
1433                 [CCode (array_length = false, array_null_terminated = true)]
1434                 [Version (since = "2.24")]
1435                 public static string[] query ();
1436                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory")]
1437                 [Version (since = "2.24")]
1438                 public static void scan_all_in_directory (string dirname);
1439                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory_with_scope")]
1440                 [Version (since = "2.30")]
1441                 public static void scan_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
1442                 public void unload ();
1443         }
1444         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1445         [Compact]
1446         [Version (since = "2.30")]
1447         public class IOModuleScope {
1448                 [CCode (has_construct_function = false)]
1449                 public IOModuleScope (GLib.IOModuleScopeFlags flags);
1450                 public void block (string basename);
1451                 public void free ();
1452         }
1453         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1454         [Compact]
1455         public class IOSchedulerJob {
1456                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_cancel_all_jobs")]
1457                 [Version (deprecated = true)]
1458                 public static void cancel_all ();
1459                 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_push_job")]
1460                 [Version (deprecated = true)]
1461                 public static void push ([CCode (delegate_target_pos = 1.33333, destroy_notify_pos = 1.66667)] owned GLib.IOSchedulerJobFunc job_func, int io_priority, GLib.Cancellable? cancellable = null);
1462                 [Version (deprecated = true)]
1463                 public bool send_to_mainloop (owned GLib.SourceFunc func);
1464                 [Version (deprecated = true)]
1465                 public void send_to_mainloop_async (owned GLib.SourceFunc func);
1466         }
1467         [CCode (cheader_filename = "gio/gio.h", type_id = "g_io_stream_get_type ()")]
1468         public abstract class IOStream : GLib.Object {
1469                 [CCode (has_construct_function = false)]
1470                 protected IOStream ();
1471                 [Version (since = "2.22")]
1472                 public void clear_pending ();
1473                 [CCode (vfunc_name = "close_fn")]
1474                 [Version (since = "2.22")]
1475                 public virtual bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1476                 [Version (since = "2.22")]
1477                 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1478                 [Version (since = "2.22")]
1479                 public virtual unowned GLib.InputStream get_input_stream ();
1480                 [Version (since = "2.22")]
1481                 public virtual unowned GLib.OutputStream get_output_stream ();
1482                 [Version (since = "2.22")]
1483                 public bool has_pending ();
1484                 [Version (since = "2.22")]
1485                 public bool is_closed ();
1486                 [Version (since = "2.22")]
1487                 public bool set_pending () throws GLib.Error;
1488                 [CCode (finish_instance = false)]
1489                 [Version (since = "2.28")]
1490                 public async bool splice_async (GLib.IOStream stream2, GLib.IOStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1491                 [NoAccessorMethod]
1492                 public bool closed { get; }
1493                 public abstract GLib.InputStream input_stream { get; }
1494                 public abstract GLib.OutputStream output_stream { get; }
1495         }
1496         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1497         [Compact]
1498         public class IOStreamAdapter {
1499         }
1500         [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_get_type ()")]
1501         public class InetAddress : GLib.Object {
1502                 [CCode (has_construct_function = false)]
1503                 protected InetAddress ();
1504                 [CCode (has_construct_function = false)]
1505                 [Version (since = "2.22")]
1506                 public InetAddress.any (GLib.SocketFamily family);
1507                 [Version (since = "2.30")]
1508                 public bool equal (GLib.InetAddress other_address);
1509                 [CCode (has_construct_function = false)]
1510                 [Version (since = "2.22")]
1511                 public InetAddress.from_bytes ([CCode (array_length = false)] uint8[] bytes, GLib.SocketFamily family);
1512                 [CCode (has_construct_function = false)]
1513                 [Version (since = "2.22")]
1514                 public InetAddress.from_string (string string);
1515                 [Version (since = "2.22")]
1516                 public GLib.SocketFamily get_family ();
1517                 [Version (since = "2.22")]
1518                 public bool get_is_any ();
1519                 [Version (since = "2.22")]
1520                 public bool get_is_link_local ();
1521                 [Version (since = "2.22")]
1522                 public bool get_is_loopback ();
1523                 [Version (since = "2.22")]
1524                 public bool get_is_mc_global ();
1525                 [Version (since = "2.22")]
1526                 public bool get_is_mc_link_local ();
1527                 [Version (since = "2.22")]
1528                 public bool get_is_mc_node_local ();
1529                 [Version (since = "2.22")]
1530                 public bool get_is_mc_org_local ();
1531                 [Version (since = "2.22")]
1532                 public bool get_is_mc_site_local ();
1533                 [Version (since = "2.22")]
1534                 public bool get_is_multicast ();
1535                 [Version (since = "2.22")]
1536                 public bool get_is_site_local ();
1537                 [Version (since = "2.22")]
1538                 public size_t get_native_size ();
1539                 [CCode (has_construct_function = false)]
1540                 [Version (since = "2.22")]
1541                 public InetAddress.loopback (GLib.SocketFamily family);
1542                 [CCode (array_length = false)]
1543                 [Version (since = "2.22")]
1544                 public virtual unowned uint8[] to_bytes ();
1545                 [Version (since = "2.22")]
1546                 public virtual string to_string ();
1547                 [NoAccessorMethod]
1548                 public void* bytes { get; construct; }
1549                 public GLib.SocketFamily family { get; construct; }
1550                 [Version (since = "2.22")]
1551                 public bool is_any { get; }
1552                 [Version (since = "2.22")]
1553                 public bool is_link_local { get; }
1554                 [Version (since = "2.22")]
1555                 public bool is_loopback { get; }
1556                 [Version (since = "2.22")]
1557                 public bool is_mc_global { get; }
1558                 [Version (since = "2.22")]
1559                 public bool is_mc_link_local { get; }
1560                 [Version (since = "2.22")]
1561                 public bool is_mc_node_local { get; }
1562                 [Version (since = "2.22")]
1563                 public bool is_mc_org_local { get; }
1564                 [Version (since = "2.22")]
1565                 public bool is_mc_site_local { get; }
1566                 [Version (since = "2.22")]
1567                 public bool is_multicast { get; }
1568                 [Version (since = "2.22")]
1569                 public bool is_site_local { get; }
1570         }
1571         [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_mask_get_type ()")]
1572         [Version (since = "2.32")]
1573         public class InetAddressMask : GLib.Object, GLib.Initable {
1574                 [CCode (has_construct_function = false)]
1575                 public InetAddressMask (GLib.InetAddress addr, uint length) throws GLib.Error;
1576                 public bool equal (GLib.InetAddressMask mask2);
1577                 [CCode (has_construct_function = false)]
1578                 public InetAddressMask.from_string (string mask_string) throws GLib.Error;
1579                 public unowned GLib.InetAddress get_address ();
1580                 public GLib.SocketFamily get_family ();
1581                 public uint get_length ();
1582                 public bool matches (GLib.InetAddress address);
1583                 public string to_string ();
1584                 [NoAccessorMethod]
1585                 public GLib.InetAddress address { owned get; set; }
1586                 public GLib.SocketFamily family { get; }
1587                 [NoAccessorMethod]
1588                 public uint length { get; set; }
1589         }
1590         [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_socket_address_get_type ()")]
1591         public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
1592                 [CCode (has_construct_function = false, type = "GSocketAddress*")]
1593                 [Version (since = "2.22")]
1594                 public InetSocketAddress (GLib.InetAddress address, uint16 port);
1595                 [CCode (has_construct_function = false, type = "GSocketAddress*")]
1596                 [Version (since = "2.40")]
1597                 public InetSocketAddress.from_string (string address, uint port);
1598                 [Version (since = "2.22")]
1599                 public unowned GLib.InetAddress get_address ();
1600                 [Version (since = "2.32")]
1601                 public uint32 get_flowinfo ();
1602                 [Version (since = "2.22")]
1603                 public uint16 get_port ();
1604                 [Version (since = "2.32")]
1605                 public uint32 get_scope_id ();
1606                 public GLib.InetAddress address { get; construct; }
1607                 [Version (since = "2.32")]
1608                 public uint flowinfo { get; construct; }
1609                 public uint port { get; construct; }
1610                 public uint scope_id { get; construct; }
1611         }
1612         [CCode (cheader_filename = "gio/gio.h", type_id = "g_input_stream_get_type ()")]
1613         public abstract class InputStream : GLib.Object {
1614                 [CCode (has_construct_function = false)]
1615                 protected InputStream ();
1616                 public void clear_pending ();
1617                 [CCode (vfunc_name = "close_fn")]
1618                 public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1619                 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1620                 public bool has_pending ();
1621                 public bool is_closed ();
1622                 [CCode (vfunc_name = "read_fn")]
1623                 public abstract ssize_t read ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1624                 public bool read_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1625                 [Version (since = "2.44")]
1626                 public async bool read_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_read) throws GLib.Error;
1627                 public virtual async ssize_t read_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1628                 [Version (since = "2.34")]
1629                 public GLib.Bytes read_bytes (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
1630                 [Version (since = "2.34")]
1631                 public async GLib.Bytes read_bytes_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1632                 public bool set_pending () throws GLib.Error;
1633                 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1634                 public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1635         }
1636         [CCode (cheader_filename = "gio/gio.h", type_id = "g_list_store_get_type ()")]
1637         public class ListStore : GLib.Object, GLib.ListModel {
1638                 [CCode (has_construct_function = false)]
1639                 [Version (since = "2.44")]
1640                 public ListStore (GLib.Type item_type);
1641                 [Version (since = "2.44")]
1642                 public void append (GLib.Object item);
1643                 [Version (since = "2.44")]
1644                 public void insert (uint position, GLib.Object item);
1645                 [Version (since = "2.44")]
1646                 public uint insert_sorted (GLib.Object item, GLib.CompareDataFunc<GLib.Object> compare_func);
1647                 [Version (since = "2.44")]
1648                 public void remove (uint position);
1649                 [Version (since = "2.44")]
1650                 public void remove_all ();
1651                 [Version (since = "2.46")]
1652                 public void sort (GLib.CompareDataFunc<GLib.Object> compare_func);
1653                 [Version (since = "2.44")]
1654                 public void splice (uint position, uint n_removals, [CCode (array_length_cname = "n_additions", array_length_pos = 3.1, array_length_type = "guint")] GLib.Object[] additions);
1655                 [NoAccessorMethod]
1656                 [Version (since = "2.44")]
1657                 public GLib.Type item_type { get; construct; }
1658         }
1659         [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_input_stream_get_type ()")]
1660         public class MemoryInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.Seekable {
1661                 [CCode (has_construct_function = false, type = "GInputStream*")]
1662                 public MemoryInputStream ();
1663                 [Version (since = "2.34")]
1664                 public void add_bytes (GLib.Bytes bytes);
1665                 public void add_data ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gssize")] owned uint8[] data, GLib.DestroyNotify? destroy = GLib.g_free);
1666                 [CCode (has_construct_function = false, type = "GInputStream*")]
1667                 [Version (since = "2.34")]
1668                 public MemoryInputStream.from_bytes (GLib.Bytes bytes);
1669                 [CCode (has_construct_function = false, type = "GInputStream*")]
1670                 public MemoryInputStream.from_data ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gssize")] owned uint8[] data, GLib.DestroyNotify? destroy = GLib.g_free);
1671         }
1672         [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_output_stream_get_type ()")]
1673         public class MemoryOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.Seekable {
1674                 [CCode (has_construct_function = false, type = "GOutputStream*")]
1675                 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function = GLib.g_realloc, GLib.DestroyNotify? destroy_function = GLib.g_free);
1676                 [CCode (array_length = false)]
1677                 public unowned uint8[] get_data ();
1678                 [Version (since = "2.18")]
1679                 public size_t get_data_size ();
1680                 public size_t get_size ();
1681                 [CCode (has_construct_function = false, type = "GOutputStream*")]
1682                 [Version (since = "2.36")]
1683                 public MemoryOutputStream.resizable ();
1684                 [Version (since = "2.34")]
1685                 public GLib.Bytes steal_as_bytes ();
1686                 [CCode (array_length = false)]
1687                 [Version (since = "2.26")]
1688                 public uint8[] steal_data ();
1689                 [Version (since = "2.24")]
1690                 public void* data { get; construct; }
1691                 [Version (since = "2.24")]
1692                 public ulong data_size { get; }
1693                 [NoAccessorMethod]
1694                 [Version (since = "2.24")]
1695                 public GLib.DestroyNotify? destroy_function { get; construct; }
1696                 [NoAccessorMethod]
1697                 [Version (since = "2.24")]
1698                 public GLib.ReallocFunc? realloc_function { get; construct; }
1699                 [Version (since = "2.24")]
1700                 public ulong size { get; construct; }
1701         }
1702         [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_get_type ()")]
1703         [Version (since = "2.32")]
1704         public class Menu : GLib.MenuModel {
1705                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION")]
1706                 public const string ATTRIBUTE_ACTION;
1707                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION_NAMESPACE")]
1708                 [Version (since = "2.36")]
1709                 public const string ATTRIBUTE_ACTION_NAMESPACE;
1710                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ICON")]
1711                 [Version (since = "2.38")]
1712                 public const string ATTRIBUTE_ICON;
1713                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_LABEL")]
1714                 public const string ATTRIBUTE_LABEL;
1715                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_TARGET")]
1716                 public const string ATTRIBUTE_TARGET;
1717                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SECTION")]
1718                 public const string LINK_SECTION;
1719                 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SUBMENU")]
1720                 public const string LINK_SUBMENU;
1721                 [CCode (has_construct_function = false)]
1722                 public Menu ();
1723                 public void append (string? label, string? detailed_action);
1724                 public void append_item (GLib.MenuItem item);
1725                 public void append_section (string? label, GLib.MenuModel section);
1726                 public void append_submenu (string? label, GLib.MenuModel submenu);
1727                 public void freeze ();
1728                 public void insert (int position, string? label, string? detailed_action);
1729                 public void insert_item (int position, GLib.MenuItem item);
1730                 public void insert_section (int position, string? label, GLib.MenuModel section);
1731                 public void insert_submenu (int position, string? label, GLib.MenuModel submenu);
1732                 public void prepend (string? label, string? detailed_action);
1733                 public void prepend_item (GLib.MenuItem item);
1734                 public void prepend_section (string? label, GLib.MenuModel section);
1735                 public void prepend_submenu (string? label, GLib.MenuModel submenu);
1736                 public void remove (int position);
1737                 [Version (since = "2.38")]
1738                 public void remove_all ();
1739         }
1740         [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_attribute_iter_get_type ()")]
1741         [Version (since = "2.32")]
1742         public abstract class MenuAttributeIter : GLib.Object {
1743                 [CCode (has_construct_function = false)]
1744                 protected MenuAttributeIter ();
1745                 public unowned string get_name ();
1746                 public virtual bool get_next (out unowned string out_name, out GLib.Variant value);
1747                 public GLib.Variant get_value ();
1748                 public bool next ();
1749         }
1750         [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_item_get_type ()")]
1751         [Version (since = "2.32")]
1752         public class MenuItem : GLib.Object {
1753                 [CCode (has_construct_function = false)]
1754                 public MenuItem (string? label, string? detailed_action);
1755                 [CCode (has_construct_function = false)]
1756                 [Version (since = "2.34")]
1757                 public MenuItem.from_model (GLib.MenuModel model, int item_index);
1758                 [Version (since = "2.34")]
1759                 public GLib.Variant get_attribute_value (string attribute, GLib.VariantType? expected_type);
1760                 [Version (since = "2.34")]
1761                 public GLib.MenuModel get_link (string link);
1762                 [CCode (has_construct_function = false)]
1763                 public MenuItem.section (string? label, GLib.MenuModel section);
1764                 public void set_action_and_target (string? action, string? format_string, ...);
1765                 public void set_action_and_target_value (string? action, GLib.Variant? target_value);
1766                 public void set_attribute (string attribute, string? format_string, ...);
1767                 public void set_attribute_value (string attribute, GLib.Variant? value);
1768                 public void set_detailed_action (string detailed_action);
1769                 [Version (since = "2.38")]
1770                 public void set_icon (GLib.Icon icon);
1771                 public void set_label (string? label);
1772                 public void set_link (string link, GLib.MenuModel? model);
1773                 public void set_section (GLib.MenuModel? section);
1774                 public void set_submenu (GLib.MenuModel? submenu);
1775                 [CCode (has_construct_function = false)]
1776                 public MenuItem.submenu (string? label, GLib.MenuModel submenu);
1777         }
1778         [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_link_iter_get_type ()")]
1779         [Version (since = "2.32")]
1780         public abstract class MenuLinkIter : GLib.Object {
1781                 [CCode (has_construct_function = false)]
1782                 protected MenuLinkIter ();
1783                 public unowned string get_name ();
1784                 public virtual bool get_next (out unowned string out_link, out GLib.MenuModel value);
1785                 public GLib.MenuModel get_value ();
1786                 public bool next ();
1787         }
1788         [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_model_get_type ()")]
1789         [Version (since = "2.32")]
1790         public abstract class MenuModel : GLib.Object {
1791                 [CCode (has_construct_function = false)]
1792                 protected MenuModel ();
1793                 public bool get_item_attribute (int item_index, string attribute, string format_string, ...);
1794                 public virtual GLib.Variant get_item_attribute_value (int item_index, string attribute, GLib.VariantType? expected_type);
1795                 [NoWrapper]
1796                 public virtual void get_item_attributes (int item_index, [CCode (type = "GHashTable**")] out GLib.HashTable<string,GLib.Variant>? attributes);
1797                 public virtual GLib.MenuModel get_item_link (int item_index, string link);
1798                 [NoWrapper]
1799                 public virtual void get_item_links (int item_index, out GLib.HashTable<string,GLib.MenuModel> links);
1800                 public virtual int get_n_items ();
1801                 public virtual bool is_mutable ();
1802                 public virtual GLib.MenuAttributeIter iterate_item_attributes (int item_index);
1803                 public virtual GLib.MenuLinkIter iterate_item_links (int item_index);
1804                 [HasEmitter]
1805                 public signal void items_changed (int position, int removed, int added);
1806         }
1807         [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_operation_get_type ()")]
1808         public class MountOperation : GLib.Object {
1809                 [CCode (has_construct_function = false)]
1810                 public MountOperation ();
1811                 public bool get_anonymous ();
1812                 public int get_choice ();
1813                 public unowned string get_domain ();
1814                 public unowned string get_password ();
1815                 public GLib.PasswordSave get_password_save ();
1816                 public unowned string get_username ();
1817                 public void set_anonymous (bool anonymous);
1818                 public void set_choice (int choice);
1819                 public void set_domain (string domain);
1820                 public void set_password (string password);
1821                 public void set_password_save (GLib.PasswordSave save);
1822                 public void set_username (string username);
1823                 public bool anonymous { get; set; }
1824                 public int choice { get; set; }
1825                 public string domain { get; set; }
1826                 public string password { get; set; }
1827                 public GLib.PasswordSave password_save { get; set; }
1828                 public string username { get; set; }
1829                 [Version (since = "2.20")]
1830                 public virtual signal void aborted ();
1831                 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
1832                 public virtual signal void ask_question (string message, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
1833                 [HasEmitter]
1834                 public virtual signal void reply (GLib.MountOperationResult result);
1835                 [Version (since = "2.22")]
1836                 public virtual signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
1837                 [Version (since = "2.34")]
1838                 public virtual signal void show_unmount_progress (string message, int64 time_left, int64 bytes_left);
1839         }
1840         [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_socket_address_get_type ()")]
1841         public class NativeSocketAddress : GLib.SocketAddress {
1842                 public NativeSocketAddress (void* native, size_t len);
1843         }
1844         [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_volume_monitor_get_type ()")]
1845         public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
1846                 [CCode (has_construct_function = false)]
1847                 protected NativeVolumeMonitor ();
1848                 [NoWrapper]
1849                 public abstract GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
1850         }
1851         [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_address_get_type ()")]
1852         public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
1853                 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1854                 [Version (since = "2.22")]
1855                 public NetworkAddress (string hostname, uint16 port);
1856                 [Version (since = "2.22")]
1857                 public unowned string get_hostname ();
1858                 [Version (since = "2.22")]
1859                 public uint16 get_port ();
1860                 [Version (since = "2.26")]
1861                 public unowned string get_scheme ();
1862                 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1863                 [Version (since = "2.44")]
1864                 public NetworkAddress.loopback (uint16 port);
1865                 [Version (since = "2.22")]
1866                 public static GLib.NetworkAddress parse (string host_and_port, uint16 default_port) throws GLib.Error;
1867                 [Version (since = "2.26")]
1868                 public static GLib.NetworkAddress parse_uri (string uri, uint16 default_port) throws GLib.Error;
1869                 public string hostname { get; construct; }
1870                 public uint port { get; construct; }
1871                 public string scheme { get; construct; }
1872         }
1873         [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_service_get_type ()")]
1874         public class NetworkService : GLib.Object, GLib.SocketConnectable {
1875                 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1876                 [Version (since = "2.22")]
1877                 public NetworkService (string service, string protocol, string domain);
1878                 [Version (since = "2.22")]
1879                 public unowned string get_domain ();
1880                 [Version (since = "2.22")]
1881                 public unowned string get_protocol ();
1882                 [Version (since = "2.26")]
1883                 public unowned string get_scheme ();
1884                 [Version (since = "2.22")]
1885                 public unowned string get_service ();
1886                 [Version (since = "2.26")]
1887                 public void set_scheme (string scheme);
1888                 public string domain { get; construct; }
1889                 public string protocol { get; construct; }
1890                 public string scheme { get; set; }
1891                 public string service { get; construct; }
1892         }
1893         [CCode (cheader_filename = "gio/gio.h", type_id = "g_notification_get_type ()")]
1894         [Version (since = "2.40")]
1895         public class Notification : GLib.Object {
1896                 [CCode (has_construct_function = false)]
1897                 public Notification (string title);
1898                 public void add_button (string label, string detailed_action);
1899                 public void add_button_with_target_value (string label, string action, GLib.Variant? target);
1900                 public void set_body (string? body);
1901                 public void set_default_action (string detailed_action);
1902                 public void set_default_action_and_target_value (string action, GLib.Variant? target);
1903                 public void set_icon (GLib.Icon icon);
1904                 public void set_priority (GLib.NotificationPriority priority);
1905                 public void set_title (string title);
1906                 public void set_urgent (bool urgent);
1907         }
1908         [CCode (cheader_filename = "gio/gio.h", type_id = "g_output_stream_get_type ()")]
1909         public abstract class OutputStream : GLib.Object {
1910                 [CCode (has_construct_function = false)]
1911                 protected OutputStream ();
1912                 public void clear_pending ();
1913                 [CCode (vfunc_name = "close_fn")]
1914                 public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1915                 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1916                 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
1917                 public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1918                 public bool has_pending ();
1919                 public bool is_closed ();
1920                 [Version (since = "2.24")]
1921                 public bool is_closing ();
1922                 public bool set_pending () throws GLib.Error;
1923                 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1924                 public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1925                 [CCode (vfunc_name = "write_fn")]
1926                 public abstract ssize_t write ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1927                 public bool write_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1928                 [Version (since = "2.44")]
1929                 public async bool write_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_written) throws GLib.Error;
1930                 public virtual async ssize_t write_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1931                 public ssize_t write_bytes (GLib.Bytes bytes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1932                 public async ssize_t write_bytes_async (GLib.Bytes bytes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1933         }
1934         [CCode (cheader_filename = "gio/gio.h", type_id = "g_permission_get_type ()")]
1935         public abstract class Permission : GLib.Object {
1936                 [CCode (has_construct_function = false)]
1937                 protected Permission ();
1938                 [Version (since = "2.26")]
1939                 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
1940                 [Version (since = "2.26")]
1941                 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1942                 [Version (since = "2.26")]
1943                 public bool get_allowed ();
1944                 [Version (since = "2.26")]
1945                 public bool get_can_acquire ();
1946                 [Version (since = "2.26")]
1947                 public bool get_can_release ();
1948                 [Version (since = "2.26")]
1949                 public void impl_update (bool allowed, bool can_acquire, bool can_release);
1950                 [Version (since = "2.26")]
1951                 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1952                 [Version (since = "2.26")]
1953                 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1954                 public bool allowed { get; }
1955                 public bool can_acquire { get; }
1956                 public bool can_release { get; }
1957         }
1958         [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
1959         [Compact]
1960         public class PollableSource : GLib.Source {
1961                 [CCode (type = "GSource*")]
1962                 public PollableSource (GLib.Object pollable_stream);
1963                 [CCode (type = "GSource*")]
1964                 public PollableSource.full (GLib.Object pollable_stream, GLib.Source? child_source, GLib.Cancellable? cancellable = null);
1965                 [CCode (cname = "g_source_set_callback")]
1966                 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.PollableSourceFunc func);
1967         }
1968         [CCode (cheader_filename = "gio/gio.h", type_id = "g_property_action_get_type ()")]
1969         [Version (since = "2.38")]
1970         public class PropertyAction : GLib.Object, GLib.Action {
1971                 [CCode (has_construct_function = false)]
1972                 public PropertyAction (string name, GLib.Object object, string property_name);
1973                 [NoAccessorMethod]
1974                 [Version (since = "2.46")]
1975                 public bool invert_boolean { get; construct; }
1976                 public GLib.Object object { construct; }
1977                 public string property_name { construct; }
1978         }
1979         [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_get_type ()")]
1980         [Version (since = "2.26")]
1981         public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
1982                 [CCode (has_construct_function = false, type = "GSocketAddress*")]
1983                 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string? username, string? password);
1984                 public unowned string get_destination_hostname ();
1985                 public uint16 get_destination_port ();
1986                 [Version (since = "2.34")]
1987                 public unowned string get_destination_protocol ();
1988                 public unowned string get_password ();
1989                 public unowned string get_protocol ();
1990                 [Version (since = "2.34")]
1991                 public unowned string get_uri ();
1992                 public unowned string get_username ();
1993                 public string destination_hostname { get; construct; }
1994                 public uint destination_port { get; construct; }
1995                 [Version (since = "2.34")]
1996                 public string destination_protocol { get; construct; }
1997                 public string password { get; construct; }
1998                 public string protocol { get; construct; }
1999                 [Version (since = "2.34")]
2000                 public string uri { get; construct; }
2001                 public string username { get; construct; }
2002         }
2003         [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_enumerator_get_type ()")]
2004         public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
2005                 [CCode (has_construct_function = false)]
2006                 protected ProxyAddressEnumerator ();
2007                 [NoAccessorMethod]
2008                 public GLib.SocketConnectable connectable { owned get; construct; }
2009                 [NoAccessorMethod]
2010                 [Version (since = "2.38")]
2011                 public uint default_port { get; construct; }
2012                 [NoAccessorMethod]
2013                 [Version (since = "2.36")]
2014                 public GLib.ProxyResolver proxy_resolver { owned get; set construct; }
2015                 [NoAccessorMethod]
2016                 public string uri { owned get; construct; }
2017         }
2018         [CCode (cheader_filename = "gio/gio.h", type_id = "g_resolver_get_type ()")]
2019         public abstract class Resolver : GLib.Object {
2020                 [CCode (has_construct_function = false)]
2021                 protected Resolver ();
2022                 [Version (since = "2.22")]
2023                 public static GLib.Resolver get_default ();
2024                 [Version (since = "2.22")]
2025                 public virtual string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2026                 [Version (since = "2.22")]
2027                 public virtual async string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2028                 [Version (since = "2.22")]
2029                 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2030                 [Version (since = "2.22")]
2031                 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2032                 [Version (since = "2.34")]
2033                 public virtual GLib.List<GLib.Variant> lookup_records (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2034                 [Version (since = "2.34")]
2035                 public virtual async GLib.List<GLib.Variant> lookup_records_async (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2036                 [Version (since = "2.22")]
2037                 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
2038                 [CCode (finish_vfunc_name = "lookup_service_finish", vfunc_name = "lookup_service_async")]
2039                 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string rrname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2040                 [Version (since = "2.22")]
2041                 public void set_default ();
2042                 public virtual signal void reload ();
2043         }
2044         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_resource_ref", type_id = "g_resource_get_type ()", unref_function = "g_resource_unref")]
2045         [Compact]
2046         [Version (since = "2.32")]
2047         public class Resource {
2048                 [CCode (cname = "g_resources_register")]
2049                 public void _register ();
2050                 [CCode (cname = "g_resources_unregister")]
2051                 public void _unregister ();
2052                 [CCode (array_length = false, array_null_terminated = true)]
2053                 public string[] enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2054                 [CCode (has_construct_function = false)]
2055                 public Resource.from_data (GLib.Bytes data) throws GLib.Error;
2056                 public bool get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
2057                 [CCode (cheader_filename = "gio/gio.h")]
2058                 public static GLib.Resource load (string filename) throws GLib.Error;
2059                 public GLib.Bytes lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2060                 public GLib.InputStream open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2061                 public unowned GLib.Resource @ref ();
2062                 public void unref ();
2063         }
2064         [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_get_type ()")]
2065         public class Settings : GLib.Object {
2066                 [CCode (has_construct_function = false)]
2067                 [Version (since = "2.26")]
2068                 public Settings (string schema_id);
2069                 public void apply ();
2070                 [Version (since = "2.26")]
2071                 public void bind (string key, GLib.Object object, string property, GLib.SettingsBindFlags flags);
2072                 public void bind_with_mapping (string key, GLib.Object object, string property, GLib.SettingsBindFlags flags, GLib.SettingsBindGetMappingShared get_mapping, GLib.SettingsBindSetMappingShared set_mapping, void* user_data, GLib.DestroyNotify? notify);
2073                 [Version (since = "2.26")]
2074                 public void bind_writable (string key, GLib.Object object, string property, bool inverted);
2075                 [Version (since = "2.32")]
2076                 public GLib.Action create_action (string key);
2077                 [Version (since = "2.26")]
2078                 public void delay ();
2079                 [CCode (has_construct_function = false)]
2080                 [Version (since = "2.32")]
2081                 public Settings.full (GLib.SettingsSchema schema, GLib.SettingsBackend? backend, string? path);
2082                 [CCode (sentinel = "")]
2083                 [Version (since = "2.26")]
2084                 public void @get (string key, string format, ...);
2085                 [Version (since = "2.26")]
2086                 public bool get_boolean (string key);
2087                 [Version (since = "2.26")]
2088                 public GLib.Settings get_child (string name);
2089                 [Version (since = "2.40")]
2090                 public GLib.Variant? get_default_value (string key);
2091                 [Version (since = "2.26")]
2092                 public double get_double (string key);
2093                 [Version (since = "2.26")]
2094                 public int get_enum (string key);
2095                 [Version (since = "2.26")]
2096                 public uint get_flags (string key);
2097                 [Version (since = "2.26")]
2098                 public bool get_has_unapplied ();
2099                 [Version (since = "2.26")]
2100                 public int get_int (string key);
2101                 [Version (since = "2.50")]
2102                 public int64 get_int64 (string key);
2103                 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
2104                 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2105                 public GLib.Variant get_range (string key);
2106                 [Version (since = "2.26")]
2107                 public string get_string (string key);
2108                 [CCode (array_length = false, array_null_terminated = true)]
2109                 [Version (since = "2.26")]
2110                 public string[] get_strv (string key);
2111                 [Version (since = "2.30")]
2112                 public uint get_uint (string key);
2113                 [Version (since = "2.50")]
2114                 public uint64 get_uint64 (string key);
2115                 [Version (since = "2.40")]
2116                 public GLib.Variant? get_user_value (string key);
2117                 [Version (since = "2.26")]
2118                 public GLib.Variant get_value (string key);
2119                 [Version (since = "2.26")]
2120                 public bool is_writable (string name);
2121                 [CCode (array_length = false, array_null_terminated = true)]
2122                 public string[] list_children ();
2123                 [CCode (array_length = false, array_null_terminated = true)]
2124                 public string[] list_keys ();
2125                 [CCode (array_length = false, array_null_terminated = true)]
2126                 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2127                 public static unowned string[] list_relocatable_schemas ();
2128                 [CCode (array_length = false, array_null_terminated = true)]
2129                 [Version (deprecated = true, deprecated_since = "2.40", since = "2.26")]
2130                 public static unowned string[] list_schemas ();
2131                 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2132                 public bool range_check (string key, GLib.Variant value);
2133                 public void reset (string key);
2134                 public void revert ();
2135                 [CCode (sentinel = "")]
2136                 [Version (since = "2.26")]
2137                 public bool @set (string key, string format, ...);
2138                 [Version (since = "2.26")]
2139                 public bool set_boolean (string key, bool value);
2140                 [Version (since = "2.26")]
2141                 public bool set_double (string key, double value);
2142                 public bool set_enum (string key, int value);
2143                 public bool set_flags (string key, uint value);
2144                 [Version (since = "2.26")]
2145                 public bool set_int (string key, int value);
2146                 [Version (since = "2.50")]
2147                 public bool set_int64 (string key, int64 value);
2148                 [Version (since = "2.26")]
2149                 public bool set_string (string key, string value);
2150                 [Version (since = "2.26")]
2151                 public bool set_strv (string key, [CCode (array_length = false, array_null_terminated = true)] string[]? value);
2152                 [Version (since = "2.30")]
2153                 public bool set_uint (string key, uint value);
2154                 [Version (since = "2.50")]
2155                 public bool set_uint64 (string key, uint64 value);
2156                 [Version (since = "2.26")]
2157                 public bool set_value (string key, GLib.Variant value);
2158                 public static void sync ();
2159                 [Version (since = "2.26")]
2160                 public static void unbind (GLib.Object object, string property);
2161                 [CCode (has_construct_function = false)]
2162                 [Version (since = "2.26")]
2163                 public Settings.with_backend (string schema_id, GLib.SettingsBackend backend);
2164                 [CCode (has_construct_function = false)]
2165                 [Version (since = "2.26")]
2166                 public Settings.with_backend_and_path (string schema_id, GLib.SettingsBackend backend, string path);
2167                 [CCode (has_construct_function = false)]
2168                 [Version (since = "2.26")]
2169                 public Settings.with_path (string schema_id, string path);
2170                 [NoAccessorMethod]
2171                 public GLib.SettingsBackend backend { owned get; construct; }
2172                 [NoAccessorMethod]
2173                 [Version (since = "2.28")]
2174                 public bool delay_apply { get; }
2175                 public bool has_unapplied { get; }
2176                 [NoAccessorMethod]
2177                 public string path { owned get; construct; }
2178                 [NoAccessorMethod]
2179                 [Version (deprecated = true, deprecated_since = "2.32")]
2180                 public string schema { owned get; construct; }
2181                 [NoAccessorMethod]
2182                 public string schema_id { owned get; construct; }
2183                 [NoAccessorMethod]
2184                 public GLib.SettingsSchema settings_schema { owned get; construct; }
2185                 public virtual signal bool change_event ([CCode (array_length_cname = "n_keys", array_length_pos = 1.1)] GLib.Quark[]? keys);
2186                 public virtual signal void changed (string key);
2187                 public virtual signal bool writable_change_event (uint key);
2188                 public virtual signal void writable_changed (string key);
2189         }
2190         [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_backend_get_type ()")]
2191         public abstract class SettingsBackend : GLib.Object {
2192                 [CCode (has_construct_function = false)]
2193                 protected SettingsBackend ();
2194                 [Version (since = "2.26")]
2195                 public void changed (string key, void* origin_tag);
2196                 [Version (since = "2.26")]
2197                 public void changed_tree (GLib.Tree tree, void* origin_tag);
2198                 [Version (since = "2.26")]
2199                 public static void flatten_tree (GLib.Tree tree, out string path, [CCode (array_length = false, array_null_terminated = true)] out (unowned string)[] keys, [CCode (array_length = false, array_null_terminated = true)] out (unowned GLib.Variant)[] values);
2200                 [Version (since = "2.28")]
2201                 public static GLib.SettingsBackend get_default ();
2202                 [NoWrapper]
2203                 public virtual bool get_writable (string key);
2204                 [CCode (cheader_filename = "gio/gio.h", cname = "g_keyfile_settings_backend_new")]
2205                 public static GLib.SettingsBackend keyfile_settings_backend_new (string filename, string root_path, string? root_group);
2206                 [Version (since = "2.26")]
2207                 public void keys_changed (string path, [CCode (array_length = false, array_null_terminated = true)] string[] items, void* origin_tag);
2208                 [CCode (cheader_filename = "gio/gio.h", cname = "g_memory_settings_backend_new")]
2209                 [Version (since = "2.28")]
2210                 public static GLib.SettingsBackend memory_settings_backend_new ();
2211                 [CCode (cheader_filename = "gio/gio.h", cname = "g_null_settings_backend_new")]
2212                 [Version (since = "2.28")]
2213                 public static GLib.SettingsBackend null_settings_backend_new ();
2214                 [Version (since = "2.26")]
2215                 public void path_changed (string path, void* origin_tag);
2216                 [Version (since = "2.26")]
2217                 public void path_writable_changed (string path);
2218                 [NoWrapper]
2219                 public virtual GLib.Variant read (string key, GLib.VariantType expected_type, bool default_value);
2220                 [NoWrapper]
2221                 public virtual GLib.Variant read_user_value (string key, GLib.VariantType expected_type);
2222                 [NoWrapper]
2223                 public virtual void reset (string key, void* origin_tag);
2224                 [NoWrapper]
2225                 public virtual void subscribe (string name);
2226                 [NoWrapper]
2227                 public virtual void sync ();
2228                 [NoWrapper]
2229                 public virtual void unsubscribe (string name);
2230                 [Version (since = "2.26")]
2231                 public void writable_changed (string key);
2232                 [NoWrapper]
2233                 public virtual bool write (string key, GLib.Variant value, void* origin_tag);
2234                 [NoWrapper]
2235                 public virtual bool write_tree (GLib.Tree tree, void* origin_tag);
2236         }
2237         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_ref", type_id = "g_settings_schema_get_type ()", unref_function = "g_settings_schema_unref")]
2238         [Compact]
2239         [Version (since = "2.32")]
2240         public class SettingsSchema {
2241                 public unowned string get_id ();
2242                 [Version (since = "2.40")]
2243                 public GLib.SettingsSchemaKey get_key (string name);
2244                 public unowned string get_path ();
2245                 [Version (since = "2.40")]
2246                 public bool has_key (string name);
2247                 [CCode (array_length = false, array_null_terminated = true)]
2248                 [Version (since = "2.44")]
2249                 public string[] list_children ();
2250                 [CCode (array_length = false, array_null_terminated = true)]
2251                 [Version (since = "2.46")]
2252                 public string[] list_keys ();
2253                 public unowned GLib.SettingsSchema @ref ();
2254                 public void unref ();
2255         }
2256         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_key_ref", type_id = "g_settings_schema_key_get_type ()", unref_function = "g_settings_schema_key_unref")]
2257         [Compact]
2258         public class SettingsSchemaKey {
2259                 [Version (since = "2.40")]
2260                 public GLib.Variant get_default_value ();
2261                 [Version (since = "2.34")]
2262                 public unowned string get_description ();
2263                 [Version (since = "2.44")]
2264                 public unowned string get_name ();
2265                 [Version (since = "2.40")]
2266                 public GLib.Variant get_range ();
2267                 [Version (since = "2.34")]
2268                 public unowned string get_summary ();
2269                 [Version (since = "2.40")]
2270                 public unowned GLib.VariantType get_value_type ();
2271                 [Version (since = "2.40")]
2272                 public bool range_check (GLib.Variant value);
2273                 [Version (since = "2.40")]
2274                 public unowned GLib.SettingsSchemaKey @ref ();
2275                 [Version (since = "2.40")]
2276                 public void unref ();
2277         }
2278         [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_source_ref", type_id = "g_settings_schema_source_get_type ()", unref_function = "g_settings_schema_source_unref")]
2279         [Compact]
2280         [Version (since = "2.32")]
2281         public class SettingsSchemaSource {
2282                 [CCode (has_construct_function = false)]
2283                 public SettingsSchemaSource.from_directory (string directory, GLib.SettingsSchemaSource? parent, bool trusted) throws GLib.Error;
2284                 [CCode (cheader_filename = "gio/gio.h")]
2285                 public static unowned GLib.SettingsSchemaSource? get_default ();
2286                 [Version (since = "2.40")]
2287                 public void list_schemas (bool recursive, [CCode (array_length = false, array_null_terminated = true)] out string[] non_relocatable, [CCode (array_length = false, array_null_terminated = true)] out string[] relocatable);
2288                 public GLib.SettingsSchema? lookup (string schema_id, bool recursive);
2289                 public unowned GLib.SettingsSchemaSource @ref ();
2290                 public void unref ();
2291         }
2292         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_get_type ()")]
2293         public class SimpleAction : GLib.Object, GLib.Action {
2294                 [CCode (has_construct_function = false)]
2295                 [Version (since = "2.28")]
2296                 public SimpleAction (string name, GLib.VariantType? parameter_type);
2297                 [Version (since = "2.28")]
2298                 public void set_enabled (bool enabled);
2299                 [Version (since = "2.30")]
2300                 public void set_state (GLib.Variant value);
2301                 [Version (since = "2.44")]
2302                 public void set_state_hint (GLib.Variant? state_hint);
2303                 [CCode (has_construct_function = false)]
2304                 [Version (since = "2.28")]
2305                 public SimpleAction.stateful (string name, GLib.VariantType? parameter_type, GLib.Variant state);
2306                 [Version (since = "2.28")]
2307                 public signal void activate (GLib.Variant? parameter);
2308                 [Version (since = "2.30")]
2309                 public signal void change_state (GLib.Variant? value);
2310         }
2311         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_group_get_type ()")]
2312         [Version (since = "2.28")]
2313         public class SimpleActionGroup : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
2314                 [CCode (has_construct_function = false)]
2315                 public SimpleActionGroup ();
2316                 [Version (deprecated = true, deprecated_since = "2.38", since = "2.30")]
2317                 public void add_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
2318                 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2319                 public void insert (GLib.Action action);
2320                 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2321                 public unowned GLib.Action lookup (string action_name);
2322                 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2323                 public void remove (string action_name);
2324         }
2325         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_async_result_get_type ()")]
2326         public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
2327                 [CCode (has_construct_function = false)]
2328                 public SimpleAsyncResult (GLib.Object? source_object, void* source_tag);
2329                 [Version (deprecated = true, deprecated_since = "2.46")]
2330                 public void complete ();
2331                 [Version (deprecated = true, deprecated_since = "2.46")]
2332                 public void complete_in_idle ();
2333                 [CCode (has_construct_function = false)]
2334                 [PrintfFormat]
2335                 public SimpleAsyncResult.error (GLib.Object? source_object, GLib.Quark domain, int code, string format, ...);
2336                 [CCode (has_construct_function = false)]
2337                 public SimpleAsyncResult.from_error (GLib.Object? source_object, GLib.Error error);
2338                 [Version (deprecated = true, deprecated_since = "2.46")]
2339                 public bool get_op_res_gboolean ();
2340                 [CCode (simple_generics = true)]
2341                 public unowned T get_op_res_gpointer<T> ();
2342                 [Version (deprecated = true, deprecated_since = "2.46")]
2343                 public ssize_t get_op_res_gssize ();
2344                 [Version (deprecated = true, deprecated_since = "2.46.")]
2345                 public void* get_source_tag ();
2346                 [Version (deprecated = true, deprecated_since = "2.46", since = "2.20")]
2347                 public static bool is_valid (GLib.AsyncResult result, GLib.Object? source, void* source_tag);
2348                 [Version (deprecated = true, deprecated_since = "2.46")]
2349                 public bool propagate_error () throws GLib.Error;
2350                 [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_gerror_in_idle")]
2351                 [Version (deprecated = true, deprecated_since = "2.46")]
2352                 public static async void report_gerror_in_idle (GLib.Object? object, GLib.Error error);
2353                 [Version (deprecated = true, deprecated_since = "2.46")]
2354                 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
2355                 [Version (deprecated = true, deprecated_since = "2.46", since = "2.32")]
2356                 public void set_check_cancellable (GLib.Cancellable? check_cancellable);
2357                 [PrintfFormat]
2358                 [Version (deprecated = true, deprecated_since = "2.46")]
2359                 public void set_error (GLib.Quark domain, int code, string format, ...);
2360                 [Version (deprecated = true, deprecated_since = "2.46")]
2361                 public void set_error_va (GLib.Quark domain, int code, string format, va_list args);
2362                 [Version (deprecated = true, deprecated_since = "2.46")]
2363                 public void set_from_error (GLib.Error error);
2364                 [Version (deprecated = true, deprecated_since = "2.46")]
2365                 public void set_handle_cancellation (bool handle_cancellation);
2366                 [Version (deprecated = true, deprecated_since = "2.46")]
2367                 public void set_op_res_gboolean (bool op_res);
2368                 [CCode (simple_generics = true)]
2369                 public void set_op_res_gpointer<T> (owned T op_res);
2370                 [Version (deprecated = true, deprecated_since = "2.46")]
2371                 public void set_op_res_gssize (ssize_t op_res);
2372                 [Version (deprecated = true, deprecated_since = "2.46", since = "2.28")]
2373                 public void take_error (GLib.Error error);
2374         }
2375         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_io_stream_get_type ()")]
2376         [Version (since = "2.44")]
2377         public class SimpleIOStream : GLib.IOStream {
2378                 [CCode (has_construct_function = false, type = "GIOStream*")]
2379                 public SimpleIOStream (GLib.InputStream input_stream, GLib.OutputStream output_stream);
2380                 [NoAccessorMethod]
2381                 public GLib.InputStream input_stream { owned get; construct; }
2382                 [NoAccessorMethod]
2383                 public GLib.OutputStream output_stream { owned get; construct; }
2384         }
2385         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_permission_get_type ()")]
2386         public class SimplePermission : GLib.Permission {
2387                 [CCode (has_construct_function = false, type = "GPermission*")]
2388                 [Version (since = "2.26")]
2389                 public SimplePermission (bool allowed);
2390         }
2391         [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_proxy_resolver_get_type ()")]
2392         public class SimpleProxyResolver : GLib.Object, GLib.ProxyResolver {
2393                 [CCode (has_construct_function = false, type = "GProxyResolver*")]
2394                 [Version (since = "2.36")]
2395                 public SimpleProxyResolver (string? default_proxy, string? ignore_hosts);
2396                 [Version (since = "2.36")]
2397                 public void set_default_proxy (string default_proxy);
2398                 [Version (since = "2.36")]
2399                 public void set_ignore_hosts (string ignore_hosts);
2400                 [Version (since = "2.36")]
2401                 public void set_uri_proxy (string uri_scheme, string proxy);
2402                 [NoAccessorMethod]
2403                 public string default_proxy { owned get; set; }
2404                 [CCode (array_length = false, array_null_terminated = true)]
2405                 [NoAccessorMethod]
2406                 public string[] ignore_hosts { owned get; set; }
2407         }
2408         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_get_type ()")]
2409         [Version (since = "2.22")]
2410         public class Socket : GLib.Object, GLib.DatagramBased, GLib.Initable {
2411                 [CCode (has_construct_function = false)]
2412                 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
2413                 public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
2414                 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
2415                 public bool check_connect_result () throws GLib.Error;
2416                 public bool close () throws GLib.Error;
2417                 public GLib.IOCondition condition_check (GLib.IOCondition condition);
2418                 [Version (since = "2.32")]
2419                 public bool condition_timed_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
2420                 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.IOError;
2421                 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2422                 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
2423                 [CCode (has_construct_function = false)]
2424                 public Socket.from_fd (int fd) throws GLib.Error;
2425                 [Version (since = "2.32")]
2426                 public ssize_t get_available_bytes ();
2427                 public bool get_blocking ();
2428                 [Version (since = "2.32")]
2429                 public bool get_broadcast ();
2430                 [Version (since = "2.26")]
2431                 public GLib.Credentials get_credentials () throws GLib.Error;
2432                 public GLib.SocketFamily get_family ();
2433                 public int get_fd ();
2434                 public bool get_keepalive ();
2435                 public int get_listen_backlog ();
2436                 public GLib.SocketAddress get_local_address () throws GLib.Error;
2437                 [Version (since = "2.32")]
2438                 public bool get_multicast_loopback ();
2439                 [Version (since = "2.32")]
2440                 public uint get_multicast_ttl ();
2441                 [Version (since = "2.36")]
2442                 public bool get_option (int level, int optname, out int value) throws GLib.Error;
2443                 public GLib.SocketProtocol get_protocol ();
2444                 public GLib.SocketAddress get_remote_address () throws GLib.Error;
2445                 public GLib.SocketType get_socket_type ();
2446                 [Version (since = "2.26")]
2447                 public uint get_timeout ();
2448                 [Version (since = "2.32")]
2449                 public uint get_ttl ();
2450                 public bool is_closed ();
2451                 public bool is_connected ();
2452                 [Version (since = "2.32")]
2453                 public bool join_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
2454                 [Version (since = "2.56")]
2455                 public bool join_multicast_group_ssm (GLib.InetAddress group, GLib.InetAddress? source_specific, string? iface) throws GLib.Error;
2456                 [Version (since = "2.32")]
2457                 public bool leave_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
2458                 [Version (since = "2.56")]
2459                 public bool leave_multicast_group_ssm (GLib.InetAddress group, GLib.InetAddress? source_specific, string? iface) throws GLib.Error;
2460                 public bool listen () throws GLib.Error;
2461                 public ssize_t receive ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
2462                 public ssize_t receive_from (out GLib.SocketAddress address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
2463                 public ssize_t receive_message (out GLib.SocketAddress? address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.InputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] out GLib.SocketControlMessage[]? messages, ref int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2464                 [Version (since = "2.48")]
2465                 public int receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2466                 [Version (since = "2.26")]
2467                 public ssize_t receive_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
2468                 public ssize_t send ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
2469                 public ssize_t send_message (GLib.SocketAddress? address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.OutputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] GLib.SocketControlMessage[]? messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2470                 [Version (since = "2.44")]
2471                 public int send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2472                 public ssize_t send_to (GLib.SocketAddress? address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
2473                 [Version (since = "2.26")]
2474                 public ssize_t send_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
2475                 public void set_blocking (bool blocking);
2476                 [Version (since = "2.32")]
2477                 public void set_broadcast (bool broadcast);
2478                 public void set_keepalive (bool keepalive);
2479                 public void set_listen_backlog (int backlog);
2480                 [Version (since = "2.32")]
2481                 public void set_multicast_loopback (bool loopback);
2482                 [Version (since = "2.32")]
2483                 public void set_multicast_ttl (uint ttl);
2484                 [Version (since = "2.36")]
2485                 public bool set_option (int level, int optname, int value) throws GLib.Error;
2486                 [Version (since = "2.26")]
2487                 public void set_timeout (uint timeout);
2488                 [Version (since = "2.32")]
2489                 public void set_ttl (uint ttl);
2490                 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
2491                 public bool speaks_ipv4 ();
2492                 public bool blocking { get; set; }
2493                 [Version (since = "2.32")]
2494                 public bool broadcast { get; set; }
2495                 public GLib.SocketFamily family { get; construct; }
2496                 public int fd { get; construct; }
2497                 public bool keepalive { get; set; }
2498                 public int listen_backlog { get; set; }
2499                 public GLib.SocketAddress local_address { owned get; }
2500                 [Version (since = "2.32")]
2501                 public bool multicast_loopback { get; set; }
2502                 [Version (since = "2.32")]
2503                 public uint multicast_ttl { get; set; }
2504                 public GLib.SocketProtocol protocol { get; construct; }
2505                 public GLib.SocketAddress remote_address { owned get; }
2506                 [Version (since = "2.26")]
2507                 public uint timeout { get; set; }
2508                 [Version (since = "2.32")]
2509                 public uint ttl { get; set; }
2510                 [NoAccessorMethod]
2511                 public GLib.SocketType type { get; construct; }
2512         }
2513         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_get_type ()")]
2514         public abstract class SocketAddress : GLib.Object, GLib.SocketConnectable {
2515                 [CCode (has_construct_function = false)]
2516                 protected SocketAddress ();
2517                 [CCode (has_construct_function = false)]
2518                 [Version (since = "2.22")]
2519                 public SocketAddress.from_native (void* native, size_t len);
2520                 [Version (since = "2.22")]
2521                 public virtual GLib.SocketFamily get_family ();
2522                 [Version (since = "2.22")]
2523                 public virtual ssize_t get_native_size ();
2524                 [Version (since = "2.22")]
2525                 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
2526                 public GLib.SocketFamily family { get; }
2527         }
2528         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_enumerator_get_type ()")]
2529         public abstract class SocketAddressEnumerator : GLib.Object {
2530                 [CCode (has_construct_function = false)]
2531                 protected SocketAddressEnumerator ();
2532                 public virtual GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
2533                 public virtual async GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2534         }
2535         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_client_get_type ()")]
2536         [Version (since = "2.22")]
2537         public class SocketClient : GLib.Object {
2538                 [CCode (has_construct_function = false)]
2539                 public SocketClient ();
2540                 public void add_application_proxy (string protocol);
2541                 public GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
2542                 public async GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
2543                 public GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2544                 public async GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2545                 public GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
2546                 public async GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
2547                 [Version (since = "2.26")]
2548                 public GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2549                 [Version (since = "2.26")]
2550                 public async GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2551                 [Version (since = "2.26")]
2552                 public bool get_enable_proxy ();
2553                 public GLib.SocketFamily get_family ();
2554                 public unowned GLib.SocketAddress get_local_address ();
2555                 public GLib.SocketProtocol get_protocol ();
2556                 [Version (since = "2.36")]
2557                 public unowned GLib.ProxyResolver get_proxy_resolver ();
2558                 public GLib.SocketType get_socket_type ();
2559                 [Version (since = "2.26")]
2560                 public uint get_timeout ();
2561                 [Version (since = "2.28")]
2562                 public bool get_tls ();
2563                 [Version (since = "2.28")]
2564                 public GLib.TlsCertificateFlags get_tls_validation_flags ();
2565                 [Version (since = "2.26")]
2566                 public void set_enable_proxy (bool enable);
2567                 public void set_family (GLib.SocketFamily family);
2568                 public void set_local_address (GLib.SocketAddress? address);
2569                 public void set_protocol (GLib.SocketProtocol protocol);
2570                 [Version (since = "2.36")]
2571                 public void set_proxy_resolver (GLib.ProxyResolver? proxy_resolver);
2572                 public void set_socket_type (GLib.SocketType type);
2573                 [Version (since = "2.26")]
2574                 public void set_timeout (uint timeout);
2575                 [Version (since = "2.28")]
2576                 public void set_tls (bool tls);
2577                 [Version (since = "2.28")]
2578                 public void set_tls_validation_flags (GLib.TlsCertificateFlags flags);
2579                 public bool enable_proxy { get; set construct; }
2580                 public GLib.SocketFamily family { get; set construct; }
2581                 public GLib.SocketAddress local_address { get; set construct; }
2582                 public GLib.SocketProtocol protocol { get; set construct; }
2583                 [Version (since = "2.36")]
2584                 public GLib.ProxyResolver proxy_resolver { get; set construct; }
2585                 public uint timeout { get; set construct; }
2586                 public bool tls { get; set construct; }
2587                 public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; }
2588                 [NoAccessorMethod]
2589                 public GLib.SocketType type { get; set construct; }
2590                 [Version (since = "2.32")]
2591                 public virtual signal void event (GLib.SocketClientEvent event, GLib.SocketConnectable connectable, GLib.IOStream? connection);
2592         }
2593         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_connection_get_type ()")]
2594         [Version (since = "2.22")]
2595         public class SocketConnection : GLib.IOStream {
2596                 [CCode (has_construct_function = false)]
2597                 protected SocketConnection ();
2598                 [Version (since = "2.32")]
2599                 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2600                 [Version (since = "2.32")]
2601                 public async bool connect_async (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2602                 public static GLib.SocketConnection factory_create_connection (GLib.Socket socket);
2603                 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
2604                 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
2605                 public GLib.SocketAddress get_local_address () throws GLib.Error;
2606                 public GLib.SocketAddress get_remote_address () throws GLib.Error;
2607                 public unowned GLib.Socket get_socket ();
2608                 [Version (since = "2.32")]
2609                 public bool is_connected ();
2610                 public GLib.Socket socket { get; construct; }
2611         }
2612         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_control_message_get_type ()")]
2613         public abstract class SocketControlMessage : GLib.Object {
2614                 [CCode (has_construct_function = false)]
2615                 protected SocketControlMessage ();
2616                 [Version (since = "2.22")]
2617                 public static GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data);
2618                 [Version (since = "2.22")]
2619                 public virtual int get_level ();
2620                 [Version (since = "2.22")]
2621                 public int get_msg_type ();
2622                 [Version (since = "2.22")]
2623                 public virtual size_t get_size ();
2624                 [NoWrapper]
2625                 public virtual int get_type ();
2626                 [Version (since = "2.22")]
2627                 public virtual void serialize ([CCode (array_length = false, type = "gpointer")] uint8[] data);
2628         }
2629         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_listener_get_type ()")]
2630         [Version (since = "2.22")]
2631         public class SocketListener : GLib.Object {
2632                 [CCode (has_construct_function = false)]
2633                 public SocketListener ();
2634                 public GLib.SocketConnection accept (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
2635                 public async GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error;
2636                 public GLib.Socket accept_socket (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
2637                 public async GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error;
2638                 public bool add_address (GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object? source_object, out GLib.SocketAddress effective_address) throws GLib.Error;
2639                 [Version (since = "2.24")]
2640                 public uint16 add_any_inet_port (GLib.Object? source_object) throws GLib.Error;
2641                 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
2642                 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
2643                 [NoWrapper]
2644                 public virtual void changed ();
2645                 public void close ();
2646                 public void set_backlog (int listen_backlog);
2647                 [NoAccessorMethod]
2648                 public int listen_backlog { get; set construct; }
2649                 [Version (since = "2.46")]
2650                 public virtual signal void event (GLib.SocketListenerEvent event, GLib.Socket socket);
2651         }
2652         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_service_get_type ()")]
2653         [Version (since = "2.22")]
2654         public class SocketService : GLib.SocketListener {
2655                 [CCode (has_construct_function = false)]
2656                 public SocketService ();
2657                 public bool is_active ();
2658                 public void start ();
2659                 public void stop ();
2660                 [NoAccessorMethod]
2661                 [Version (since = "2.46")]
2662                 public bool active { get; set construct; }
2663                 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
2664         }
2665         [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
2666         [Compact]
2667         public class SocketSource : GLib.Source {
2668                 [CCode (cname = "g_source_set_callback")]
2669                 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
2670         }
2671         [CCode (cheader_filename = "gio/gio.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "g_srv_target_get_type ()")]
2672         [Compact]
2673         public class SrvTarget {
2674                 [CCode (has_construct_function = false)]
2675                 [Version (since = "2.22")]
2676                 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
2677                 [Version (since = "2.22")]
2678                 public GLib.SrvTarget copy ();
2679                 [Version (since = "2.22")]
2680                 public void free ();
2681                 [Version (since = "2.22")]
2682                 public unowned string get_hostname ();
2683                 [Version (since = "2.22")]
2684                 public uint16 get_port ();
2685                 [Version (since = "2.22")]
2686                 public uint16 get_priority ();
2687                 [Version (since = "2.22")]
2688                 public uint16 get_weight ();
2689                 [CCode (cheader_filename = "gio/gio.h")]
2690                 [Version (since = "2.22")]
2691                 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
2692         }
2693         [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_get_type ()")]
2694         [Version (since = "2.40")]
2695         public class Subprocess : GLib.Object, GLib.Initable {
2696                 [CCode (has_construct_function = false)]
2697                 public Subprocess (GLib.SubprocessFlags flags, ...) throws GLib.Error;
2698                 public bool communicate (GLib.Bytes? stdin_buf, GLib.Cancellable? cancellable, out GLib.Bytes stdout_buf, out GLib.Bytes stderr_buf) throws GLib.Error;
2699                 public async bool communicate_async (GLib.Bytes? stdin_buf, GLib.Cancellable? cancellable, out GLib.Bytes stdout_buf, out GLib.Bytes stderr_buf) throws GLib.Error;
2700                 public bool communicate_utf8 (string? stdin_buf, GLib.Cancellable? cancellable, out string stdout_buf, out string stderr_buf) throws GLib.Error;
2701                 public async bool communicate_utf8_async (string? stdin_buf, GLib.Cancellable? cancellable, out string stdout_buf, out string stderr_buf) throws GLib.Error;
2702                 public void force_exit ();
2703                 public int get_exit_status ();
2704                 public unowned string get_identifier ();
2705                 public bool get_if_exited ();
2706                 public bool get_if_signaled ();
2707                 public int get_status ();
2708                 public unowned GLib.InputStream get_stderr_pipe ();
2709                 public unowned GLib.OutputStream get_stdin_pipe ();
2710                 public unowned GLib.InputStream get_stdout_pipe ();
2711                 public bool get_successful ();
2712                 public int get_term_sig ();
2713                 [CCode (cname = "g_subprocess_newv", has_construct_function = false)]
2714                 public Subprocess.newv ([CCode (array_length = false, array_null_terminated = true)] string[] argv, GLib.SubprocessFlags flags) throws GLib.Error;
2715                 public void send_signal (int signal_num);
2716                 public bool wait (GLib.Cancellable? cancellable = null) throws GLib.Error;
2717                 public async bool wait_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2718                 public bool wait_check (GLib.Cancellable? cancellable = null) throws GLib.Error;
2719                 public async bool wait_check_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2720                 [CCode (array_length = false, array_null_terminated = true)]
2721                 public string[] argv { construct; }
2722                 public GLib.SubprocessFlags flags { construct; }
2723         }
2724         [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_launcher_get_type ()")]
2725         [Version (since = "2.40")]
2726         public class SubprocessLauncher : GLib.Object {
2727                 [CCode (has_construct_function = false)]
2728                 public SubprocessLauncher (GLib.SubprocessFlags flags);
2729                 public unowned string getenv (string variable);
2730                 public void set_child_setup (owned GLib.SpawnChildSetupFunc child_setup);
2731                 public void set_cwd (string cwd);
2732                 public void set_environ ([CCode (array_length = false, array_null_terminated = true)] string[] env);
2733                 public void set_flags (GLib.SubprocessFlags flags);
2734                 public void set_stderr_file_path (string? path);
2735                 public void set_stdin_file_path (string path);
2736                 public void set_stdout_file_path (string? path);
2737                 public void setenv (string variable, string value, bool overwrite);
2738                 public GLib.Subprocess spawnv ([CCode (array_length = false, array_null_terminated = true)] string[] argv) throws GLib.Error;
2739                 public void take_fd (int source_fd, int target_fd);
2740                 public void take_stderr_fd (int fd);
2741                 public void take_stdin_fd (int fd);
2742                 public void take_stdout_fd (int fd);
2743                 public void unsetenv (string variable);
2744                 public GLib.SubprocessFlags flags { construct; }
2745         }
2746         [CCode (cheader_filename = "gio/gio.h", type_id = "g_task_get_type ()")]
2747         public class Task : GLib.Object, GLib.AsyncResult {
2748                 [CCode (has_construct_function = false)]
2749                 [Version (since = "2.36")]
2750                 public Task (GLib.Object? source_object, GLib.Cancellable? cancellable, [CCode (scope = "async")] GLib.TaskReadyCallback callback);
2751                 [Version (since = "2.36")]
2752                 public void attach_source (GLib.Source source, [CCode (type = "GSourceFunc")] GLib.TaskSourceFunc callback);
2753                 [Version (since = "2.36")]
2754                 public unowned GLib.Cancellable get_cancellable ();
2755                 [Version (since = "2.36")]
2756                 public bool get_check_cancellable ();
2757                 [Version (since = "2.44")]
2758                 public bool get_completed ();
2759                 [Version (since = "2.36")]
2760                 public unowned GLib.MainContext get_context ();
2761                 [Version (since = "2.36")]
2762                 public int get_priority ();
2763                 [Version (since = "2.36")]
2764                 public bool get_return_on_cancel ();
2765                 [Version (since = "2.36")]
2766                 public void* get_source_tag ();
2767                 [Version (since = "2.36")]
2768                 public void* get_task_data ();
2769                 [CCode (cname = "g_task_get_source_object")]
2770                 [Version (since = "2.36")]
2771                 public unowned GLib.Object? get_unowned_source_object ();
2772                 [Version (since = "2.36")]
2773                 public bool had_error ();
2774                 [Version (since = "2.36")]
2775                 public static bool is_valid (GLib.AsyncResult result, GLib.Object? source_object);
2776                 [Version (since = "2.36")]
2777                 public bool propagate_boolean () throws GLib.Error;
2778                 [Version (since = "2.36")]
2779                 public ssize_t propagate_int () throws GLib.Error;
2780                 [Version (since = "2.36")]
2781                 public void* propagate_pointer () throws GLib.Error;
2782                 [Version (since = "2.36")]
2783                 public static void report_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, owned GLib.Error error);
2784                 [PrintfFormat]
2785                 [Version (since = "2.36")]
2786                 public static void report_new_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, GLib.Quark domain, int code, string format, ...);
2787                 [Version (since = "2.36")]
2788                 public void return_boolean (bool result);
2789                 [Version (since = "2.36")]
2790                 public void return_error (owned GLib.Error error);
2791                 [Version (since = "2.36")]
2792                 public bool return_error_if_cancelled ();
2793                 [Version (since = "2.36")]
2794                 public void return_int (ssize_t result);
2795                 [PrintfFormat]
2796                 [Version (since = "2.36")]
2797                 public void return_new_error (GLib.Quark domain, int code, string format, ...);
2798                 [Version (since = "2.36")]
2799                 public void return_pointer (owned void* result, GLib.DestroyNotify? result_destroy);
2800                 [Version (since = "2.36")]
2801                 public void run_in_thread (GLib.TaskThreadFunc task_func);
2802                 [Version (since = "2.36")]
2803                 public void run_in_thread_sync (GLib.TaskThreadFunc task_func);
2804                 [Version (since = "2.36")]
2805                 public void set_check_cancellable (bool check_cancellable);
2806                 [Version (since = "2.36")]
2807                 public void set_priority (int priority);
2808                 [Version (since = "2.36")]
2809                 public bool set_return_on_cancel (bool return_on_cancel);
2810                 [Version (since = "2.36")]
2811                 public void set_source_tag (void* source_tag);
2812                 [Version (since = "2.36")]
2813                 public void set_task_data (void* task_data, GLib.DestroyNotify? task_data_destroy);
2814                 [Version (since = "2.44")]
2815                 public bool completed { get; }
2816         }
2817         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_connection_get_type ()")]
2818         [Version (since = "2.22")]
2819         public class TcpConnection : GLib.SocketConnection {
2820                 [CCode (has_construct_function = false)]
2821                 protected TcpConnection ();
2822                 public bool get_graceful_disconnect ();
2823                 public void set_graceful_disconnect (bool graceful_disconnect);
2824                 public bool graceful_disconnect { get; set; }
2825         }
2826         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_wrapper_connection_get_type ()")]
2827         public class TcpWrapperConnection : GLib.TcpConnection {
2828                 [CCode (has_construct_function = false, type = "GSocketConnection*")]
2829                 [Version (since = "2.28")]
2830                 public TcpWrapperConnection (GLib.IOStream base_io_stream, GLib.Socket socket);
2831                 public unowned GLib.IOStream get_base_io_stream ();
2832                 public GLib.IOStream base_io_stream { get; construct; }
2833         }
2834         [CCode (cheader_filename = "gio/gio.h", type_id = "g_test_dbus_get_type ()")]
2835         [Version (since = "2.34")]
2836         public class TestDBus : GLib.Object {
2837                 [CCode (has_construct_function = false)]
2838                 public TestDBus (GLib.TestDBusFlags flags);
2839                 public void add_service_dir (string path);
2840                 public void down ();
2841                 public unowned string? get_bus_address ();
2842                 public GLib.TestDBusFlags get_flags ();
2843                 public void stop ();
2844                 public static void unset ();
2845                 public void up ();
2846                 public GLib.TestDBusFlags flags { get; construct; }
2847         }
2848         [CCode (cheader_filename = "gio/gio.h", type_id = "g_themed_icon_get_type ()")]
2849         public class ThemedIcon : GLib.Object, GLib.Icon {
2850                 [CCode (has_construct_function = false, type = "GIcon*")]
2851                 public ThemedIcon (string iconname);
2852                 public void append_name (string iconname);
2853                 [CCode (has_construct_function = false, type = "GIcon*")]
2854                 public ThemedIcon.from_names ([CCode (array_length_cname = "len", array_length_pos = 1.1)] string[] iconnames);
2855                 [CCode (array_length = false, array_null_terminated = true)]
2856                 public unowned string[] get_names ();
2857                 [Version (since = "2.18")]
2858                 public void prepend_name (string iconname);
2859                 [CCode (has_construct_function = false, type = "GIcon*")]
2860                 public ThemedIcon.with_default_fallbacks (string iconname);
2861                 public string name { construct; }
2862                 [CCode (array_length = false, array_null_terminated = true)]
2863                 public string[] names { get; construct; }
2864                 [NoAccessorMethod]
2865                 public bool use_default_fallbacks { get; construct; }
2866         }
2867         [CCode (cheader_filename = "gio/gio.h", type_id = "g_threaded_socket_service_get_type ()")]
2868         [Version (since = "2.22")]
2869         public class ThreadedSocketService : GLib.SocketService {
2870                 [CCode (has_construct_function = false, type = "GSocketService*")]
2871                 public ThreadedSocketService (int max_threads);
2872                 [NoAccessorMethod]
2873                 public int max_threads { get; construct; }
2874                 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
2875         }
2876         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_certificate_get_type ()")]
2877         [Version (since = "2.28")]
2878         public class TlsCertificate : GLib.Object {
2879                 [CCode (has_construct_function = false)]
2880                 protected TlsCertificate ();
2881                 [CCode (has_construct_function = false)]
2882                 public TlsCertificate.from_file (string file) throws GLib.Error;
2883                 [CCode (has_construct_function = false)]
2884                 public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
2885                 [CCode (has_construct_function = false)]
2886                 public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
2887                 public unowned GLib.TlsCertificate get_issuer ();
2888                 [Version (since = "2.34")]
2889                 public bool is_same (GLib.TlsCertificate cert_two);
2890                 public static GLib.List<GLib.TlsCertificate> list_new_from_file (string file) throws GLib.Error;
2891                 public virtual GLib.TlsCertificateFlags verify (GLib.SocketConnectable? identity, GLib.TlsCertificate? trusted_ca);
2892                 [NoAccessorMethod]
2893                 public GLib.ByteArray certificate { owned get; construct; }
2894                 [NoAccessorMethod]
2895                 public string certificate_pem { owned get; construct; }
2896                 public GLib.TlsCertificate issuer { get; construct; }
2897                 public GLib.ByteArray private_key { construct; }
2898                 public string private_key_pem { construct; }
2899         }
2900         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_connection_get_type ()")]
2901         [Version (since = "2.28")]
2902         public abstract class TlsConnection : GLib.IOStream {
2903                 [CCode (has_construct_function = false)]
2904                 protected TlsConnection ();
2905                 public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
2906                 public unowned GLib.TlsCertificate get_certificate ();
2907                 [Version (since = "2.30")]
2908                 public unowned GLib.TlsDatabase get_database ();
2909                 [Version (since = "2.30")]
2910                 public unowned GLib.TlsInteraction get_interaction ();
2911                 public unowned GLib.TlsCertificate get_peer_certificate ();
2912                 public GLib.TlsCertificateFlags get_peer_certificate_errors ();
2913                 public GLib.TlsRehandshakeMode get_rehandshake_mode ();
2914                 public bool get_require_close_notify ();
2915                 [Version (deprecated = true, deprecated_since = "2.30")]
2916                 public bool get_use_system_certdb ();
2917                 public virtual bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
2918                 public virtual async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
2919                 public void set_certificate (GLib.TlsCertificate certificate);
2920                 [Version (since = "2.30")]
2921                 public void set_database (GLib.TlsDatabase database);
2922                 [Version (since = "2.30")]
2923                 public void set_interaction (GLib.TlsInteraction? interaction);
2924                 public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
2925                 public void set_require_close_notify (bool require_close_notify);
2926                 [Version (deprecated = true, deprecated_since = "2.30")]
2927                 public void set_use_system_certdb (bool use_system_certdb);
2928                 [NoAccessorMethod]
2929                 public GLib.IOStream base_io_stream { owned get; construct; }
2930                 public GLib.TlsCertificate certificate { get; set; }
2931                 [Version (since = "2.30")]
2932                 public GLib.TlsDatabase database { get; set; }
2933                 [Version (since = "2.30")]
2934                 public GLib.TlsInteraction interaction { get; set; }
2935                 public GLib.TlsCertificate peer_certificate { get; }
2936                 public GLib.TlsCertificateFlags peer_certificate_errors { get; }
2937                 public GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
2938                 public bool require_close_notify { get; set construct; }
2939                 [Version (deprecated = true, deprecated_since = "2.30")]
2940                 public bool use_system_certdb { get; set construct; }
2941                 public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
2942         }
2943         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_database_get_type ()")]
2944         [Version (since = "2.30")]
2945         public abstract class TlsDatabase : GLib.Object {
2946                 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT")]
2947                 public const string PURPOSE_AUTHENTICATE_CLIENT;
2948                 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER")]
2949                 public const string PURPOSE_AUTHENTICATE_SERVER;
2950                 [CCode (has_construct_function = false)]
2951                 protected TlsDatabase ();
2952                 public virtual string? create_certificate_handle (GLib.TlsCertificate certificate);
2953                 public virtual GLib.TlsCertificate? lookup_certificate_for_handle (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2954                 public virtual async GLib.TlsCertificate lookup_certificate_for_handle_async (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2955                 public virtual GLib.TlsCertificate lookup_certificate_issuer (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2956                 public virtual async GLib.TlsCertificate lookup_certificate_issuer_async (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2957                 public virtual GLib.List<GLib.TlsCertificate> lookup_certificates_issued_by (GLib.ByteArray issuer_raw_dn, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2958                 public virtual async GLib.List<GLib.TlsCertificate> lookup_certificates_issued_by_async (GLib.ByteArray issuer_raw_dn, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2959                 public virtual GLib.TlsCertificateFlags verify_chain (GLib.TlsCertificate chain, string purpose, GLib.SocketConnectable? identity, GLib.TlsInteraction? interaction, GLib.TlsDatabaseVerifyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2960                 public virtual async GLib.TlsCertificateFlags verify_chain_async (GLib.TlsCertificate chain, string purpose, GLib.SocketConnectable? identity, GLib.TlsInteraction? interaction, GLib.TlsDatabaseVerifyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2961         }
2962         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_interaction_get_type ()")]
2963         [Version (since = "2.30")]
2964         public class TlsInteraction : GLib.Object {
2965                 [CCode (has_construct_function = false)]
2966                 protected TlsInteraction ();
2967                 public virtual GLib.TlsInteractionResult ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
2968                 public virtual async GLib.TlsInteractionResult ask_password_async (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
2969                 public GLib.TlsInteractionResult invoke_ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
2970                 [Version (since = "2.40")]
2971                 public GLib.TlsInteractionResult invoke_request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2972                 [Version (since = "2.40")]
2973                 public virtual GLib.TlsInteractionResult request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2974                 [Version (since = "2.40")]
2975                 public virtual async GLib.TlsInteractionResult request_certificate_async (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2976         }
2977         [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_password_get_type ()")]
2978         [Version (since = "2.30")]
2979         public class TlsPassword : GLib.Object {
2980                 [CCode (has_construct_function = false)]
2981                 public TlsPassword (GLib.TlsPasswordFlags flags, string description);
2982                 [NoWrapper]
2983                 public virtual unowned string get_default_warning ();
2984                 public unowned string get_description ();
2985                 public GLib.TlsPasswordFlags get_flags ();
2986                 [CCode (array_length_pos = 0.1)]
2987                 public virtual unowned uint8[] get_value ();
2988                 public unowned string get_warning ();
2989                 public void set_description (string description);
2990                 public void set_flags (GLib.TlsPasswordFlags flags);
2991                 public void set_value ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize")] uint8[] value);
2992                 [CCode (vfunc_name = "set_value")]
2993                 public virtual void set_value_full ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gssize", type = "guchar*")] owned uint8[] value, GLib.DestroyNotify? notify = GLib.g_free);
2994                 public void set_warning (string warning);
2995                 public string description { get; set; }
2996                 public GLib.TlsPasswordFlags flags { get; set; }
2997                 public string warning { get; set; }
2998         }
2999         [CCode (cheader_filename = "gio/gunixfdlist.h", type_id = "g_unix_fd_list_get_type ()")]
3000         public class UnixFDList : GLib.Object {
3001                 [CCode (has_construct_function = false)]
3002                 [Version (since = "2.24")]
3003                 public UnixFDList ();
3004                 [Version (since = "2.24")]
3005                 public int append (int fd) throws GLib.Error;
3006                 [CCode (has_construct_function = false)]
3007                 [Version (since = "2.24")]
3008                 public UnixFDList.from_array ([CCode (array_length_cname = "n_fds", array_length_pos = 1.1)] int[] fds);
3009                 [Version (since = "2.24")]
3010                 public int @get (int index_) throws GLib.Error;
3011                 [Version (since = "2.24")]
3012                 public int get_length ();
3013                 [CCode (array_length_pos = 0.1)]
3014                 [Version (since = "2.24")]
3015                 public unowned int[] peek_fds ();
3016                 [CCode (array_length_pos = 0.1)]
3017                 [Version (since = "2.24")]
3018                 public int[] steal_fds ();
3019         }
3020         [CCode (cheader_filename = "gio/gio.h", type_id = "g_vfs_get_type ()")]
3021         public class Vfs : GLib.Object {
3022                 [CCode (has_construct_function = false)]
3023                 protected Vfs ();
3024                 [NoWrapper]
3025                 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
3026                 public static unowned GLib.Vfs get_default ();
3027                 public virtual GLib.File get_file_for_path (string path);
3028                 public virtual GLib.File get_file_for_uri (string uri);
3029                 public static unowned GLib.Vfs get_local ();
3030                 [CCode (array_length = false, array_null_terminated = true)]
3031                 public virtual unowned string[] get_supported_uri_schemes ();
3032                 public virtual bool is_active ();
3033                 [NoWrapper]
3034                 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);
3035                 [NoWrapper]
3036                 public virtual void local_file_moved (string source, string dest);
3037                 [NoWrapper]
3038                 public virtual void local_file_removed (string filename);
3039                 [NoWrapper]
3040                 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3041                 public virtual GLib.File parse_name (string parse_name);
3042                 [Version (since = "2.50")]
3043                 public bool register_uri_scheme (string scheme, [CCode (delegate_target_pos = 2.33333, destroy_notify_pos = 2.66667)] owned GLib.VfsFileLookupFunc? uri_func, owned GLib.VfsFileLookupFunc? parse_name_func);
3044                 [Version (since = "2.50")]
3045                 public bool unregister_uri_scheme (string scheme);
3046         }
3047         [CCode (cheader_filename = "gio/gio.h", type_id = "g_volume_monitor_get_type ()")]
3048         public class VolumeMonitor : GLib.Object {
3049                 [CCode (has_construct_function = false)]
3050                 protected VolumeMonitor ();
3051                 [Version (deprecated = true, deprecated_since = "2.20")]
3052                 public static GLib.Volume adopt_orphan_mount (GLib.Mount mount);
3053                 public static GLib.VolumeMonitor @get ();
3054                 public virtual GLib.List<GLib.Drive> get_connected_drives ();
3055                 public virtual GLib.Mount get_mount_for_uuid (string uuid);
3056                 public virtual GLib.List<GLib.Mount> get_mounts ();
3057                 public virtual GLib.Volume get_volume_for_uuid (string uuid);
3058                 public virtual GLib.List<GLib.Volume> get_volumes ();
3059                 [NoWrapper]
3060                 public virtual bool is_supported ();
3061                 public virtual signal void drive_changed (GLib.Drive drive);
3062                 public virtual signal void drive_connected (GLib.Drive drive);
3063                 public virtual signal void drive_disconnected (GLib.Drive drive);
3064                 [Version (since = "2.18")]
3065                 public virtual signal void drive_eject_button (GLib.Drive drive);
3066                 [Version (since = "2.22")]
3067                 public virtual signal void drive_stop_button (GLib.Drive drive);
3068                 public virtual signal void mount_added (GLib.Mount mount);
3069                 public virtual signal void mount_changed (GLib.Mount mount);
3070                 public virtual signal void mount_pre_unmount (GLib.Mount mount);
3071                 public virtual signal void mount_removed (GLib.Mount mount);
3072                 public virtual signal void volume_added (GLib.Volume volume);
3073                 public virtual signal void volume_changed (GLib.Volume volume);
3074                 public virtual signal void volume_removed (GLib.Volume volume);
3075         }
3076         [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_compressor_get_type ()")]
3077         public class ZlibCompressor : GLib.Object, GLib.Converter {
3078                 [CCode (has_construct_function = false)]
3079                 [Version (since = "2.24")]
3080                 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
3081                 [Version (since = "2.26")]
3082                 public unowned GLib.FileInfo get_file_info ();
3083                 [Version (since = "2.26")]
3084                 public void set_file_info (GLib.FileInfo? file_info);
3085                 [Version (since = "2.26")]
3086                 public GLib.FileInfo file_info { get; set; }
3087                 [NoAccessorMethod]
3088                 public GLib.ZlibCompressorFormat format { get; construct; }
3089                 [NoAccessorMethod]
3090                 public int level { get; construct; }
3091         }
3092         [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_decompressor_get_type ()")]
3093         public class ZlibDecompressor : GLib.Object, GLib.Converter {
3094                 [CCode (has_construct_function = false)]
3095                 [Version (since = "2.24")]
3096                 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
3097                 [Version (since = "2.26")]
3098                 public unowned GLib.FileInfo get_file_info ();
3099                 [Version (since = "2.26")]
3100                 public GLib.FileInfo file_info { get; }
3101                 [NoAccessorMethod]
3102                 public GLib.ZlibCompressorFormat format { get; construct; }
3103         }
3104         [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionInterface", type_id = "g_action_get_type ()")]
3105         public interface Action : GLib.Object {
3106                 [Version (since = "2.28")]
3107                 public abstract void activate (GLib.Variant? parameter);
3108                 [Version (since = "2.30")]
3109                 public abstract void change_state (GLib.Variant value);
3110                 [Version (since = "2.28")]
3111                 public abstract bool get_enabled ();
3112                 [Version (since = "2.28")]
3113                 public abstract unowned string get_name ();
3114                 [Version (since = "2.28")]
3115                 public abstract unowned GLib.VariantType? get_parameter_type ();
3116                 [Version (since = "2.28")]
3117                 public abstract GLib.Variant get_state ();
3118                 [Version (since = "2.28")]
3119                 public abstract GLib.Variant? get_state_hint ();
3120                 [Version (since = "2.28")]
3121                 public abstract unowned GLib.VariantType? get_state_type ();
3122                 [Version (since = "2.38")]
3123                 public static bool name_is_valid (string action_name);
3124                 [Version (since = "2.38")]
3125                 public static bool parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
3126                 [Version (since = "2.38")]
3127                 public static string print_detailed_name (string action_name, GLib.Variant? target_value);
3128                 [Version (since = "2.28")]
3129                 public abstract bool enabled { get; }
3130                 [Version (since = "2.28")]
3131                 public abstract string name { get; }
3132                 [Version (since = "2.28")]
3133                 public abstract GLib.VariantType? parameter_type { get; }
3134                 [Version (since = "2.28")]
3135                 public abstract GLib.Variant? state { owned get; }
3136                 [Version (since = "2.28")]
3137                 public abstract GLib.VariantType? state_type { get; }
3138         }
3139         [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionGroupInterface", type_id = "g_action_group_get_type ()")]
3140         public interface ActionGroup : GLib.Object {
3141                 [Version (since = "2.28")]
3142                 public abstract void activate_action (string action_name, GLib.Variant? parameter);
3143                 [Version (since = "2.28")]
3144                 public abstract void change_action_state (string action_name, GLib.Variant value);
3145                 [Version (since = "2.28")]
3146                 public abstract bool get_action_enabled (string action_name);
3147                 [Version (since = "2.28")]
3148                 public abstract unowned GLib.VariantType? get_action_parameter_type (string action_name);
3149                 [Version (since = "2.28")]
3150                 public abstract GLib.Variant? get_action_state (string action_name);
3151                 [Version (since = "2.28")]
3152                 public abstract GLib.Variant? get_action_state_hint (string action_name);
3153                 [Version (since = "2.28")]
3154                 public abstract unowned GLib.VariantType? get_action_state_type (string action_name);
3155                 [Version (since = "2.28")]
3156                 public abstract bool has_action (string action_name);
3157                 [CCode (array_length = false, array_null_terminated = true)]
3158                 [Version (since = "2.28")]
3159                 public abstract string[] list_actions ();
3160                 [Version (since = "2.32")]
3161                 public virtual bool query_action (string action_name, out bool enabled, out GLib.VariantType parameter_type, out GLib.VariantType state_type, out GLib.Variant state_hint, out GLib.Variant state);
3162                 [HasEmitter]
3163                 [Version (since = "2.28")]
3164                 public virtual signal void action_added (string action_name);
3165                 [HasEmitter]
3166                 [Version (since = "2.28")]
3167                 public virtual signal void action_enabled_changed (string action_name, bool enabled);
3168                 [HasEmitter]
3169                 [Version (since = "2.28")]
3170                 public virtual signal void action_removed (string action_name);
3171                 [HasEmitter]
3172                 [Version (since = "2.28")]
3173                 public virtual signal void action_state_changed (string action_name, GLib.Variant state);
3174         }
3175         [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionMapInterface", type_id = "g_action_map_get_type ()")]
3176         public interface ActionMap : GLib.Object {
3177                 [Version (since = "2.32")]
3178                 public abstract void add_action (GLib.Action action);
3179                 [Version (since = "2.32")]
3180                 public void add_action_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
3181                 [Version (since = "2.32")]
3182                 public abstract unowned GLib.Action lookup_action (string action_name);
3183                 [Version (since = "2.32")]
3184                 public abstract void remove_action (string action_name);
3185         }
3186         [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_get_type ()")]
3187         public interface AppInfo : GLib.Object {
3188                 public abstract bool add_supports_type (string content_type) throws GLib.Error;
3189                 [Version (since = "2.20")]
3190                 public abstract bool can_delete ();
3191                 public abstract bool can_remove_supports_type ();
3192                 public static GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
3193                 [CCode (vfunc_name = "do_delete")]
3194                 [Version (since = "2.20")]
3195                 public abstract bool @delete ();
3196                 public abstract GLib.AppInfo dup ();
3197                 public abstract bool equal (GLib.AppInfo appinfo2);
3198                 public static GLib.List<GLib.AppInfo> get_all ();
3199                 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
3200                 [NoWrapper]
3201                 public abstract unowned string get_commandline ();
3202                 public static GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
3203                 public static GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
3204                 public abstract unowned string get_description ();
3205                 [Version (since = "2.24")]
3206                 public abstract unowned string get_display_name ();
3207                 [NoWrapper]
3208                 public abstract unowned string get_executable ();
3209                 [Version (since = "2.28")]
3210                 public static GLib.List<GLib.AppInfo> get_fallback_for_type (string content_type);
3211                 public abstract unowned GLib.Icon get_icon ();
3212                 public abstract unowned string get_id ();
3213                 public abstract unowned string get_name ();
3214                 [Version (since = "2.28")]
3215                 public static GLib.List<GLib.AppInfo> get_recommended_for_type (string content_type);
3216                 [CCode (array_length = false, array_null_terminated = true)]
3217                 [Version (since = "2.34")]
3218                 public abstract unowned string[] get_supported_types ();
3219                 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? context) throws GLib.Error;
3220                 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? context) throws GLib.Error;
3221                 [Version (since = "2.50")]
3222                 public static async bool launch_default_for_uri_async (string uri, GLib.AppLaunchContext? context, GLib.Cancellable? cancellable = null) throws GLib.Error;
3223                 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext? context) throws GLib.Error;
3224                 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
3225                 [Version (since = "2.20")]
3226                 public static void reset_type_associations (string content_type);
3227                 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
3228                 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
3229                 public abstract bool set_as_last_used_for_type (string content_type) throws GLib.Error;
3230                 public abstract bool should_show ();
3231                 public abstract bool supports_files ();
3232                 public abstract bool supports_uris ();
3233         }
3234         [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_initable_get_type ()")]
3235         [Version (since = "2.22")]
3236         public interface AsyncInitable : GLib.Object {
3237                 public virtual async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3238                 [CCode (finish_function = "g_async_initable_new_finish")]
3239                 public static async GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
3240                 [CCode (finish_function = "g_async_initable_new_finish")]
3241                 public static async GLib.Object new_valist_async (GLib.Type object_type, string first_property_name, va_list var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
3242                 [CCode (finish_function = "g_async_initable_new_finish")]
3243                 [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
3244                 public static async GLib.Object newv_async (GLib.Type object_type, [CCode (array_length_pos = 1.1)] GLib.Parameter[] parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
3245         }
3246         [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_result_get_type ()")]
3247         public interface AsyncResult : GLib.Object {
3248                 public abstract GLib.Object? get_source_object ();
3249                 public abstract void* get_user_data ();
3250                 [Version (since = "2.34")]
3251                 public abstract bool is_tagged (void* source_tag);
3252                 [Version (since = "2.34")]
3253                 public bool legacy_propagate_error () throws GLib.Error;
3254         }
3255         [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_get_type ()")]
3256         [Version (since = "2.24")]
3257         public interface Converter : GLib.Object {
3258                 public abstract GLib.ConverterResult convert ([CCode (array_length_cname = "inbuf_size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] inbuf, [CCode (array_length_cname = "outbuf_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
3259                 public abstract void reset ();
3260         }
3261         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_get_type ()")]
3262         [Version (since = "2.30")]
3263         public interface DBusInterface : GLib.Object {
3264                 [Version (since = "2.32")]
3265                 public abstract GLib.DBusObject dup_object ();
3266                 public abstract unowned GLib.DBusInterfaceInfo get_info ();
3267                 public abstract unowned GLib.DBusObject get_object ();
3268                 public abstract void set_object (GLib.DBusObject? object);
3269         }
3270         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_get_type ()")]
3271         public interface DBusObject : GLib.Object {
3272                 [Version (since = "2.30")]
3273                 public abstract GLib.DBusInterface get_interface (string interface_name);
3274                 [Version (since = "2.30")]
3275                 public abstract GLib.List<GLib.DBusInterface> get_interfaces ();
3276                 [Version (since = "2.30")]
3277                 public abstract unowned string get_object_path ();
3278                 [Version (since = "2.30")]
3279                 public virtual signal void interface_added (GLib.DBusInterface interface_);
3280                 [Version (since = "2.30")]
3281                 public virtual signal void interface_removed (GLib.DBusInterface interface_);
3282         }
3283         [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_get_type ()")]
3284         public interface DBusObjectManager : GLib.Object {
3285                 [Version (since = "2.30")]
3286                 public abstract GLib.DBusInterface get_interface (string object_path, string interface_name);
3287                 [Version (since = "2.30")]
3288                 public abstract GLib.DBusObject get_object (string object_path);
3289                 [Version (since = "2.30")]
3290                 public abstract unowned string get_object_path ();
3291                 [Version (since = "2.30")]
3292                 public abstract GLib.List<GLib.DBusObject> get_objects ();
3293                 [Version (since = "2.30")]
3294                 public virtual signal void interface_added (GLib.DBusObject object, GLib.DBusInterface interface_);
3295                 [Version (since = "2.30")]
3296                 public virtual signal void interface_removed (GLib.DBusObject object, GLib.DBusInterface interface_);
3297                 [Version (since = "2.30")]
3298                 public virtual signal void object_added (GLib.DBusObject object);
3299                 [Version (since = "2.30")]
3300                 public virtual signal void object_removed (GLib.DBusObject object);
3301         }
3302         [CCode (cheader_filename = "gio/gio.h", type_cname = "GDatagramBasedInterface", type_id = "g_datagram_based_get_type ()")]
3303         [Version (since = "2.48")]
3304         public interface DatagramBased : GLib.Object {
3305                 public GLib.IOCondition condition_check (GLib.IOCondition condition);
3306                 public bool condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3307                 public GLib.Source create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
3308                 [CCode (vfunc_name = "condition_check")]
3309                 public virtual GLib.IOCondition datagram_condition_check (GLib.IOCondition condition);
3310                 [CCode (vfunc_name = "condition_wait")]
3311                 public virtual bool datagram_condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3312                 [CCode (vfunc_name = "create_source")]
3313                 public virtual GLib.Source datagram_create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
3314                 [CCode (vfunc_name = "receive_messages")]
3315                 public virtual int datagram_receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3316                 [CCode (vfunc_name = "send_messages")]
3317                 public virtual int datagram_send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3318                 public int receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3319                 public int send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3320         }
3321         [CCode (cheader_filename = "gio/gio.h", type_id = "g_drive_get_type ()")]
3322         public interface Drive : GLib.Object {
3323                 public abstract bool can_eject ();
3324                 public abstract bool can_poll_for_media ();
3325                 [Version (since = "2.22")]
3326                 public abstract bool can_start ();
3327                 [Version (since = "2.22")]
3328                 public abstract bool can_start_degraded ();
3329                 [Version (since = "2.22")]
3330                 public abstract bool can_stop ();
3331                 [Version (deprecated = true, deprecated_since = "2.22")]
3332                 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3333                 [Version (since = "2.22")]
3334                 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3335                 [CCode (array_length = false, array_null_terminated = true)]
3336                 public abstract string[] enumerate_identifiers ();
3337                 public abstract GLib.Icon get_icon ();
3338                 public abstract string get_identifier (string kind);
3339                 public abstract string get_name ();
3340                 [Version (since = "2.32")]
3341                 public virtual unowned string get_sort_key ();
3342                 [Version (since = "2.22")]
3343                 public abstract GLib.DriveStartStopType get_start_stop_type ();
3344                 [Version (since = "2.34")]
3345                 public abstract GLib.Icon get_symbolic_icon ();
3346                 public abstract GLib.List<GLib.Volume> get_volumes ();
3347                 public abstract bool has_media ();
3348                 public abstract bool has_volumes ();
3349                 public abstract bool is_media_check_automatic ();
3350                 public abstract bool is_media_removable ();
3351                 [Version (since = "2.50")]
3352                 public abstract bool is_removable ();
3353                 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
3354                 [Version (since = "2.22")]
3355                 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3356                 [Version (since = "2.22")]
3357                 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3358                 public virtual signal void changed ();
3359                 public virtual signal void disconnected ();
3360                 public virtual signal void eject_button ();
3361                 [Version (since = "2.22")]
3362                 public virtual signal void stop_button ();
3363         }
3364         [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsClientConnectionInterface", type_id = "g_dtls_client_connection_get_type ()")]
3365         [Version (since = "2.48")]
3366         public interface DtlsClientConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
3367                 public GLib.List<GLib.ByteArray> get_accepted_cas ();
3368                 public unowned GLib.SocketConnectable get_server_identity ();
3369                 public GLib.TlsCertificateFlags get_validation_flags ();
3370                 public static GLib.DtlsClientConnection @new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
3371                 public void set_server_identity (GLib.SocketConnectable identity);
3372                 public void set_validation_flags (GLib.TlsCertificateFlags flags);
3373                 [ConcreteAccessor]
3374                 public abstract GLib.List<void*> accepted_cas { owned get; }
3375                 [ConcreteAccessor]
3376                 public abstract GLib.SocketConnectable server_identity { get; set construct; }
3377                 [ConcreteAccessor]
3378                 public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
3379         }
3380         [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsConnectionInterface", type_id = "g_dtls_connection_get_type ()")]
3381         [Version (since = "2.48")]
3382         public interface DtlsConnection : GLib.DatagramBased, GLib.Object {
3383                 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
3384                 public async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3385                 public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
3386                 public unowned GLib.TlsCertificate get_certificate ();
3387                 public unowned GLib.TlsDatabase get_database ();
3388                 public unowned GLib.TlsInteraction get_interaction ();
3389                 public unowned GLib.TlsCertificate get_peer_certificate ();
3390                 public GLib.TlsCertificateFlags get_peer_certificate_errors ();
3391                 public GLib.TlsRehandshakeMode get_rehandshake_mode ();
3392                 public bool get_require_close_notify ();
3393                 public abstract bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
3394                 public abstract async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3395                 public void set_certificate (GLib.TlsCertificate certificate);
3396                 public void set_database (GLib.TlsDatabase database);
3397                 public void set_interaction (GLib.TlsInteraction? interaction);
3398                 public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
3399                 public void set_require_close_notify (bool require_close_notify);
3400                 public abstract bool shutdown (bool shutdown_read, bool shutdown_write, GLib.Cancellable? cancellable = null) throws GLib.Error;
3401                 public abstract async bool shutdown_async (bool shutdown_read, bool shutdown_write, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3402                 [NoAccessorMethod]
3403                 public abstract GLib.DatagramBased base_socket { owned get; construct; }
3404                 [ConcreteAccessor]
3405                 public abstract GLib.TlsCertificate certificate { get; set; }
3406                 [ConcreteAccessor]
3407                 public abstract GLib.TlsDatabase database { get; set; }
3408                 [ConcreteAccessor]
3409                 public abstract GLib.TlsInteraction interaction { get; set; }
3410                 [ConcreteAccessor]
3411                 public abstract GLib.TlsCertificate peer_certificate { get; }
3412                 [ConcreteAccessor]
3413                 public abstract GLib.TlsCertificateFlags peer_certificate_errors { get; }
3414                 [ConcreteAccessor]
3415                 public abstract GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
3416                 [ConcreteAccessor]
3417                 public abstract bool require_close_notify { get; set construct; }
3418                 public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
3419         }
3420         [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsServerConnectionInterface", type_id = "g_dtls_server_connection_get_type ()")]
3421         [Version (since = "2.48")]
3422         public interface DtlsServerConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
3423                 public static GLib.DtlsServerConnection @new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
3424                 [NoAccessorMethod]
3425                 public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
3426         }
3427         [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_get_type ()")]
3428         public interface File : GLib.Object {
3429                 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3430                 public virtual async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3431                 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
3432                 public virtual async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
3433                 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3434                 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3435                 public virtual async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3436                 [Version (since = "2.22")]
3437                 public abstract GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3438                 [Version (since = "2.22")]
3439                 public virtual async GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3440                 [CCode (vfunc_name = "delete_file")]
3441                 public abstract bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
3442                 [CCode (vfunc_name = "delete_file_async")]
3443                 [Version (since = "2.34")]
3444                 public virtual async bool delete_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3445                 public abstract GLib.File dup ();
3446                 [Version (deprecated = true, deprecated_since = "2.22")]
3447                 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3448                 [Version (since = "2.22")]
3449                 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3450                 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3451                 public virtual async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3452                 public abstract bool equal (GLib.File file2);
3453                 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
3454                 public virtual async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3455                 [NoWrapper]
3456                 public abstract string? get_basename ();
3457                 public GLib.File get_child (string name);
3458                 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
3459                 public abstract GLib.File? get_parent ();
3460                 public abstract string get_parse_name ();
3461                 [NoWrapper]
3462                 public abstract string? get_path ();
3463                 [NoWrapper]
3464                 public abstract string? get_relative_path (GLib.File descendant);
3465                 public abstract string get_uri ();
3466                 public abstract string get_uri_scheme ();
3467                 [Version (since = "2.24")]
3468                 public bool has_parent (GLib.File? parent);
3469                 [CCode (vfunc_name = "prefix_matches")]
3470                 public abstract bool has_prefix (GLib.File file);
3471                 public abstract bool has_uri_scheme (string uri_scheme);
3472                 public abstract uint hash ();
3473                 public abstract bool is_native ();
3474                 [Version (since = "2.56")]
3475                 public GLib.Bytes load_bytes (GLib.Cancellable? cancellable = null, out string? etag_out = null) throws GLib.Error;
3476                 [Version (since = "2.56")]
3477                 public async GLib.Bytes load_bytes_async (GLib.Cancellable? cancellable = null, out string? etag_out) throws GLib.Error;
3478                 public bool load_contents (GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
3479                 public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
3480                 public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, [CCode (delegate_target_pos = -0.9)] GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
3481                 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
3482                 [Version (since = "2.38")]
3483                 public virtual async bool make_directory_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3484                 [Version (since = "2.18")]
3485                 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
3486                 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
3487                 [Version (since = "2.38")]
3488                 public virtual bool measure_disk_usage (GLib.FileMeasureFlags flags, GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 3.5)] GLib.FileMeasureProgressCallback? progress_callback, out uint64 disk_usage, out uint64 num_dirs, out uint64 num_files) throws GLib.Error;
3489                 [Version (since = "2.38")]
3490                 public virtual async bool measure_disk_usage_async (GLib.FileMeasureFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.FileMeasureProgressCallback? progress_callback, out uint64 disk_usage, out uint64 num_dirs, out uint64 num_files) throws GLib.Error;
3491                 [Version (since = "2.18")]
3492                 public GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3493                 [CCode (vfunc_name = "monitor_dir")]
3494                 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
3495                 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
3496                 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3497                 public abstract async GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3498                 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
3499                 public static GLib.File new_for_commandline_arg (string arg);
3500                 [Version (since = "2.36")]
3501                 public static GLib.File new_for_commandline_arg_and_cwd (string arg, string cwd);
3502                 public static GLib.File new_for_path (string path);
3503                 public static GLib.File new_for_uri (string uri);
3504                 [Version (since = "2.32")]
3505                 public static GLib.File new_tmp (string? tmpl, out GLib.FileIOStream iostream) throws GLib.Error;
3506                 [Version (since = "2.22")]
3507                 public abstract GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
3508                 [Version (since = "2.22")]
3509                 public virtual async GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3510                 public static GLib.File parse_name (string parse_name);
3511                 [Version (since = "2.56")]
3512                 public unowned string? peek_path ();
3513                 [Version (since = "2.22")]
3514                 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
3515                 [NoWrapper]
3516                 [Version (deprecated_since = "vala-0.16", replacement = "has_prefix")]
3517                 public abstract bool prefix_matches (GLib.File file);
3518                 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
3519                 public bool query_exists (GLib.Cancellable? cancellable = null);
3520                 [Version (since = "2.18")]
3521                 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
3522                 public abstract GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
3523                 public virtual async GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3524                 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3525                 public virtual async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3526                 public abstract GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
3527                 public abstract GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
3528                 [CCode (vfunc_name = "read_fn")]
3529                 public abstract GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
3530                 public virtual async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3531                 [NoWrapper]
3532                 [Version (deprecated_since = "vala-0.16", replacement = "read")]
3533                 public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
3534                 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3535                 public virtual async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3536                 public bool replace_contents ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable? cancellable = null) throws GLib.Error;
3537                 public async bool replace_contents_async ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws GLib.Error;
3538                 [Version (since = "2.40")]
3539                 public async void replace_contents_bytes_async (GLib.Bytes contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null);
3540                 [Version (since = "2.22")]
3541                 public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3542                 [Version (since = "2.22")]
3543                 public virtual async GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3544                 public abstract GLib.File resolve_relative_path (string relative_path);
3545                 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3546                 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3547                 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3548                 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3549                 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3550                 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3551                 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3552                 public virtual async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out GLib.FileInfo info_out) throws GLib.Error;
3553                 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3554                 public abstract GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
3555                 public virtual async GLib.File set_display_name_async (string display_name, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3556                 [Version (since = "2.22")]
3557                 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation? start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3558                 [Version (since = "2.22")]
3559                 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3560                 [Version (since = "2.22")]
3561                 public bool supports_thread_contexts ();
3562                 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
3563                 [Version (since = "2.38")]
3564                 public virtual async bool trash_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3565                 [Version (deprecated = true, deprecated_since = "2.22")]
3566                 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3567                 [Version (since = "2.22")]
3568                 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3569         }
3570         [CCode (cheader_filename = "gio/gio.h", type_id = "g_icon_get_type ()")]
3571         public interface Icon : GLib.Object {
3572                 [Version (since = "2.38")]
3573                 public static GLib.Icon deserialize (GLib.Variant value);
3574                 public abstract bool equal (GLib.Icon? icon2);
3575                 [NoWrapper]
3576                 public virtual GLib.Icon? from_tokens (string[] tokens, int version) throws GLib.Error;
3577                 public abstract uint hash ();
3578                 [Version (since = "2.20")]
3579                 public static GLib.Icon? new_for_string (string str) throws GLib.Error;
3580                 [Version (since = "2.38")]
3581                 public virtual GLib.Variant serialize ();
3582                 [Version (since = "2.20")]
3583                 public string? to_string ();
3584                 [NoWrapper]
3585                 public virtual bool to_tokens (GLib.GenericArray<string> tokens, out int out_version);
3586         }
3587         [CCode (cheader_filename = "gio/gio.h", type_id = "g_initable_get_type ()")]
3588         [Version (since = "2.22")]
3589         public interface Initable : GLib.Object {
3590                 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
3591                 public static GLib.Object @new (GLib.Type object_type, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
3592                 public static GLib.Object new_valist (GLib.Type object_type, string first_property_name, va_list var_args, GLib.Cancellable? cancellable = null) throws GLib.Error;
3593                 [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
3594                 public static GLib.Object newv (GLib.Type object_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 1.5, array_length_type = "guint")] GLib.Parameter[] parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
3595         }
3596         [CCode (cheader_filename = "gio/gio.h", type_cname = "GListModelInterface", type_id = "g_list_model_get_type ()")]
3597         public interface ListModel : GLib.Object {
3598                 [Version (since = "2.44")]
3599                 public abstract GLib.Object? get_item (uint position);
3600                 [Version (since = "2.44")]
3601                 public abstract GLib.Type get_item_type ();
3602                 [Version (since = "2.44")]
3603                 public abstract uint get_n_items ();
3604                 [Version (since = "2.44")]
3605                 public GLib.Object? get_object (uint position);
3606                 [HasEmitter]
3607                 [Version (since = "2.44")]
3608                 public signal void items_changed (uint position, uint removed, uint added);
3609         }
3610         [CCode (cheader_filename = "gio/gio.h", type_id = "g_loadable_icon_get_type ()")]
3611         public interface LoadableIcon : GLib.Icon, GLib.Object {
3612                 public abstract GLib.InputStream load (int size, out string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
3613                 public abstract async GLib.InputStream load_async (int size, GLib.Cancellable? cancellable = null, out string? type = null) throws GLib.Error;
3614         }
3615         [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_get_type ()")]
3616         public interface Mount : GLib.Object {
3617                 public abstract bool can_eject ();
3618                 public abstract bool can_unmount ();
3619                 [Version (deprecated = true, deprecated_since = "2.22")]
3620                 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3621                 [Version (since = "2.22")]
3622                 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3623                 public abstract GLib.File get_default_location ();
3624                 public abstract GLib.Drive get_drive ();
3625                 public abstract GLib.Icon get_icon ();
3626                 public abstract string get_name ();
3627                 public abstract GLib.File get_root ();
3628                 [Version (since = "2.32")]
3629                 public virtual unowned string get_sort_key ();
3630                 [Version (since = "2.34")]
3631                 public abstract GLib.Icon get_symbolic_icon ();
3632                 public abstract string get_uuid ();
3633                 public abstract GLib.Volume get_volume ();
3634                 [CCode (array_length = false, array_null_terminated = true)]
3635                 [Version (since = "2.18")]
3636                 public abstract async string[] guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
3637                 [CCode (array_length = false, array_null_terminated = true)]
3638                 [Version (since = "2.18")]
3639                 public abstract string[] guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
3640                 [Version (since = "2.20")]
3641                 public bool is_shadowed ();
3642                 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3643                 [Version (since = "2.20")]
3644                 public void shadow ();
3645                 [Version (deprecated = true, deprecated_since = "2.22")]
3646                 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3647                 [Version (since = "2.22")]
3648                 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3649                 [Version (since = "2.20")]
3650                 public void unshadow ();
3651                 public virtual signal void changed ();
3652                 [Version (since = "2.22")]
3653                 public virtual signal void pre_unmount ();
3654                 public virtual signal void unmounted ();
3655         }
3656         [CCode (cheader_filename = "gio/gio.h", type_cname = "GNetworkMonitorInterface", type_id = "g_network_monitor_get_type ()")]
3657         [Version (since = "2.32")]
3658         public interface NetworkMonitor : GLib.Initable, GLib.Object {
3659                 public abstract bool can_reach (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
3660                 public abstract async bool can_reach_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
3661                 [Version (since = "2.44")]
3662                 public GLib.NetworkConnectivity get_connectivity ();
3663                 public static unowned GLib.NetworkMonitor get_default ();
3664                 public bool get_network_available ();
3665                 [Version (since = "2.46")]
3666                 public bool get_network_metered ();
3667                 [ConcreteAccessor]
3668                 [Version (since = "2.44")]
3669                 public abstract GLib.NetworkConnectivity connectivity { get; }
3670                 [ConcreteAccessor]
3671                 public abstract bool network_available { get; }
3672                 [ConcreteAccessor]
3673                 [Version (since = "2.46")]
3674                 public abstract bool network_metered { get; }
3675                 public virtual signal void network_changed (bool network_available);
3676         }
3677         [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableInputStreamInterface", type_id = "g_pollable_input_stream_get_type ()")]
3678         [Version (since = "2.28")]
3679         public interface PollableInputStream : GLib.InputStream {
3680                 public abstract bool can_poll ();
3681                 public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
3682                 public abstract bool is_readable ();
3683                 public ssize_t read_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
3684                 [CCode (vfunc_name = "read_nonblocking")]
3685                 public abstract ssize_t read_nonblocking_fn ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buffer) throws GLib.Error;
3686         }
3687         [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableOutputStreamInterface", type_id = "g_pollable_output_stream_get_type ()")]
3688         [Version (since = "2.28")]
3689         public interface PollableOutputStream : GLib.OutputStream {
3690                 public abstract bool can_poll ();
3691                 public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
3692                 public abstract bool is_writable ();
3693                 public abstract ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[]? buffer) throws GLib.Error;
3694         }
3695         [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
3696         [Version (since = "2.26")]
3697         public interface Proxy : GLib.Object {
3698                 public abstract GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
3699                 public abstract async GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
3700                 public static GLib.Proxy get_default_for_protocol (string protocol);
3701                 public abstract bool supports_hostname ();
3702         }
3703         [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyResolverInterface", type_id = "g_proxy_resolver_get_type ()")]
3704         [Version (since = "2.26")]
3705         public interface ProxyResolver : GLib.Object {
3706                 public static unowned GLib.ProxyResolver get_default ();
3707                 public abstract bool is_supported ();
3708                 [CCode (array_length = false, array_null_terminated = true)]
3709                 public abstract string[] lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
3710                 [CCode (array_length = false, array_null_terminated = true)]
3711                 public abstract async string[] lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
3712         }
3713         [CCode (cheader_filename = "gio/gio.h", type_cname = "GRemoteActionGroupInterface", type_id = "g_remote_action_group_get_type ()")]
3714         public interface RemoteActionGroup : GLib.ActionGroup, GLib.Object {
3715                 [Version (since = "2.32")]
3716                 public abstract void activate_action_full (string action_name, GLib.Variant? parameter, GLib.Variant platform_data);
3717                 [Version (since = "2.32")]
3718                 public abstract void change_action_state_full (string action_name, GLib.Variant value, GLib.Variant platform_data);
3719         }
3720         [CCode (cheader_filename = "gio/gio.h", type_id = "g_seekable_get_type ()")]
3721         public interface Seekable : GLib.Object {
3722                 public abstract bool can_seek ();
3723                 public abstract bool can_truncate ();
3724                 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
3725                 public abstract int64 tell ();
3726                 [CCode (vfunc_name = "truncate_fn")]
3727                 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
3728         }
3729         [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_connectable_get_type ()")]
3730         public interface SocketConnectable : GLib.Object {
3731                 [Version (since = "2.22")]
3732                 public abstract GLib.SocketAddressEnumerator enumerate ();
3733                 [Version (since = "2.26")]
3734                 public abstract GLib.SocketAddressEnumerator proxy_enumerate ();
3735                 [Version (since = "2.48")]
3736                 public abstract string to_string ();
3737         }
3738         [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsBackendInterface", type_id = "g_tls_backend_get_type ()")]
3739         [Version (since = "2.28")]
3740         public interface TlsBackend : GLib.Object {
3741                 public abstract GLib.Type get_certificate_type ();
3742                 public abstract GLib.Type get_client_connection_type ();
3743                 public static unowned GLib.TlsBackend get_default ();
3744                 [Version (since = "2.30")]
3745                 public abstract GLib.TlsDatabase get_default_database ();
3746                 [Version (since = "2.48")]
3747                 public GLib.Type get_dtls_client_connection_type ();
3748                 [Version (since = "2.48")]
3749                 public GLib.Type get_dtls_server_connection_type ();
3750                 [Version (since = "2.30")]
3751                 public abstract GLib.Type get_file_database_type ();
3752                 public abstract GLib.Type get_server_connection_type ();
3753                 [Version (since = "2.48")]
3754                 public abstract bool supports_dtls ();
3755                 public abstract bool supports_tls ();
3756         }
3757         [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsClientConnectionInterface", type_id = "g_tls_client_connection_get_type ()")]
3758         [Version (since = "2.28")]
3759         public interface TlsClientConnection : GLib.TlsConnection {
3760                 [Version (since = "2.46")]
3761                 public abstract void copy_session_state (GLib.TlsClientConnection source);
3762                 public GLib.List<GLib.ByteArray> get_accepted_cas ();
3763                 public unowned GLib.SocketConnectable get_server_identity ();
3764                 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3765                 public bool get_use_ssl3 ();
3766                 public GLib.TlsCertificateFlags get_validation_flags ();
3767                 public static GLib.TlsClientConnection? @new (GLib.IOStream base_io_stream, GLib.SocketConnectable? server_identity) throws GLib.Error;
3768                 public void set_server_identity (GLib.SocketConnectable identity);
3769                 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3770                 public void set_use_ssl3 (bool use_ssl3);
3771                 public void set_validation_flags (GLib.TlsCertificateFlags flags);
3772                 [ConcreteAccessor]
3773                 public abstract GLib.List<GLib.ByteArray> accepted_cas { owned get; }
3774                 [ConcreteAccessor]
3775                 public abstract GLib.SocketConnectable server_identity { get; set construct; }
3776                 [ConcreteAccessor]
3777                 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3778                 public abstract bool use_ssl3 { get; set construct; }
3779                 [ConcreteAccessor]
3780                 public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
3781         }
3782         [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsFileDatabaseInterface", type_id = "g_tls_file_database_get_type ()")]
3783         [Version (since = "2.30")]
3784         public interface TlsFileDatabase : GLib.TlsDatabase {
3785                 public static GLib.TlsFileDatabase? @new (string anchors) throws GLib.Error;
3786                 [NoAccessorMethod]
3787                 public abstract string anchors { owned get; set construct; }
3788         }
3789         [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsServerConnectionInterface", type_id = "g_tls_server_connection_get_type ()")]
3790         [Version (since = "2.28")]
3791         public interface TlsServerConnection : GLib.TlsConnection {
3792                 public static GLib.TlsServerConnection? @new (GLib.IOStream base_io_stream, GLib.TlsCertificate? certificate) throws GLib.Error;
3793                 [NoAccessorMethod]
3794                 public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
3795         }
3796         [CCode (cheader_filename = "gio/gio.h", type_id = "g_volume_get_type ()")]
3797         public interface Volume : GLib.Object {
3798                 public abstract bool can_eject ();
3799                 public abstract bool can_mount ();
3800                 [Version (deprecated = true, deprecated_since = "2.22")]
3801                 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3802                 [Version (since = "2.22")]
3803                 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3804                 [CCode (array_length = false, array_null_terminated = true)]
3805                 public abstract string[] enumerate_identifiers ();
3806                 [Version (since = "2.18")]
3807                 public abstract GLib.File? get_activation_root ();
3808                 public abstract GLib.Drive get_drive ();
3809                 public abstract GLib.Icon get_icon ();
3810                 public abstract string get_identifier (string kind);
3811                 public abstract GLib.Mount get_mount ();
3812                 public abstract string get_name ();
3813                 [Version (since = "2.32")]
3814                 public virtual unowned string get_sort_key ();
3815                 [Version (since = "2.34")]
3816                 public abstract GLib.Icon get_symbolic_icon ();
3817                 public abstract string get_uuid ();
3818                 [CCode (finish_vfunc_name = "mount_finish", vfunc_name = "mount_fn")]
3819                 public abstract async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3820                 public abstract bool should_automount ();
3821                 public virtual signal void changed ();
3822                 public virtual signal void removed ();
3823         }
3824         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3825         public struct ActionEntry {
3826                 public weak string name;
3827                 [Version (deprecated = true, deprecated_since = "vala-0.26", replacement = "activate_callback")]
3828                 public GLib.SimpleActionActivateCallback? activate;
3829                 public weak string parameter_type;
3830                 public weak string state;
3831                 [Version (deprecated_since = "vala-0.26", replacement = "change_state_callback")]
3832                 public GLib.SimpleActionChangeStateCallback? change_state;
3833                 [CCode (cname = "activate")]
3834                 public GLib.SimpleActionActivateFunc activate_callback;
3835                 [CCode (cname = "change_state")]
3836                 public GLib.SimpleActionChangeStateFunc? change_state_callback;
3837         }
3838         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3839         [Version (since = "2.26")]
3840         public struct DBusErrorEntry {
3841                 public int error_code;
3842                 public weak string dbus_error_name;
3843         }
3844         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3845         [Version (since = "2.26")]
3846         public struct DBusInterfaceVTable {
3847                 public weak GLib.DBusInterfaceMethodCallFunc method_call;
3848                 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
3849                 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
3850         }
3851         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3852         [Version (since = "2.26")]
3853         public struct DBusSubtreeVTable {
3854                 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
3855                 public weak GLib.DBusSubtreeIntrospectFunc introspect;
3856                 public weak GLib.DBusSubtreeDispatchFunc dispatch;
3857         }
3858         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3859         public struct FileAttributeInfo {
3860                 public weak string name;
3861                 public GLib.FileAttributeType type;
3862                 public GLib.FileAttributeInfoFlags flags;
3863         }
3864         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3865         [Version (since = "2.48")]
3866         public struct InputMessage {
3867                 public weak GLib.SocketAddress address;
3868                 [CCode (array_length_cname = "num_vectors", array_length_type = "guint")]
3869                 public weak GLib.InputVector[] vectors;
3870                 public uint num_vectors;
3871                 public size_t bytes_received;
3872                 public int flags;
3873                 public GLib.SocketControlMessage*** control_messages;
3874                 public uint* num_control_messages;
3875         }
3876         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3877         [Version (since = "2.22")]
3878         public struct InputVector {
3879                 public void* buffer;
3880                 public size_t size;
3881         }
3882         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3883         [Version (since = "2.44")]
3884         public struct OutputMessage {
3885                 public weak GLib.SocketAddress address;
3886                 [CCode (array_length_cname = "num_vectors", array_length_type = "guint")]
3887                 public weak GLib.OutputVector[] vectors;
3888                 public uint num_vectors;
3889                 public uint bytes_sent;
3890                 public GLib.SocketControlMessage*** control_messages;
3891                 public uint* num_control_messages;
3892         }
3893         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3894         [Version (since = "2.22")]
3895         public struct OutputVector {
3896                 public void* buffer;
3897                 public size_t size;
3898         }
3899         [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3900         public struct StaticResource {
3901                 [Version (since = "2.32")]
3902                 public void fini ();
3903                 [Version (since = "2.32")]
3904                 public unowned GLib.Resource get_resource ();
3905                 [Version (since = "2.32")]
3906                 public void init ();
3907         }
3908         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APP_INFO_CREATE_", type_id = "g_app_info_create_flags_get_type ()")]
3909         [Flags]
3910         public enum AppInfoCreateFlags {
3911                 NONE,
3912                 NEEDS_TERMINAL,
3913                 SUPPORTS_URIS,
3914                 SUPPORTS_STARTUP_NOTIFICATION
3915         }
3916         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APPLICATION_", type_id = "g_application_flags_get_type ()")]
3917         [Flags]
3918         [Version (since = "2.28")]
3919         public enum ApplicationFlags {
3920                 FLAGS_NONE,
3921                 IS_SERVICE,
3922                 IS_LAUNCHER,
3923                 HANDLES_OPEN,
3924                 HANDLES_COMMAND_LINE,
3925                 SEND_ENVIRONMENT,
3926                 NON_UNIQUE,
3927                 CAN_OVERRIDE_APP_ID
3928         }
3929         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ASK_PASSWORD_", type_id = "g_ask_password_flags_get_type ()")]
3930         [Flags]
3931         public enum AskPasswordFlags {
3932                 NEED_PASSWORD,
3933                 NEED_USERNAME,
3934                 NEED_DOMAIN,
3935                 SAVING_SUPPORTED,
3936                 ANONYMOUS_SUPPORTED
3937         }
3938         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_OWNER_FLAGS_", type_id = "g_bus_name_owner_flags_get_type ()")]
3939         [Flags]
3940         [Version (since = "2.26")]
3941         public enum BusNameOwnerFlags {
3942                 NONE,
3943                 ALLOW_REPLACEMENT,
3944                 REPLACE,
3945                 DO_NOT_QUEUE
3946         }
3947         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_WATCHER_FLAGS_", type_id = "g_bus_name_watcher_flags_get_type ()")]
3948         [Flags]
3949         [Version (since = "2.26")]
3950         public enum BusNameWatcherFlags {
3951                 NONE,
3952                 AUTO_START
3953         }
3954         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_TYPE_", type_id = "g_bus_type_get_type ()")]
3955         [Version (since = "2.26")]
3956         public enum BusType {
3957                 STARTER,
3958                 NONE,
3959                 SYSTEM,
3960                 SESSION;
3961                 [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_for_bus_sync")]
3962                 public static string get_address_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
3963         }
3964         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_", type_id = "g_converter_flags_get_type ()")]
3965         [Flags]
3966         [Version (since = "2.24")]
3967         public enum ConverterFlags {
3968                 [Version (deprecated_since = "vala-0.16", replacement = "ConverterFlags.NONE")]
3969                 NO_FLAGS,
3970                 [CCode (cname = "G_CONVERTER_NO_FLAGS")]
3971                 NONE,
3972                 INPUT_AT_END,
3973                 FLUSH
3974         }
3975         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_", type_id = "g_converter_result_get_type ()")]
3976         [Version (since = "2.24")]
3977         public enum ConverterResult {
3978                 ERROR,
3979                 CONVERTED,
3980                 FINISHED,
3981                 FLUSHED
3982         }
3983         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CREDENTIALS_TYPE_", type_id = "g_credentials_type_get_type ()")]
3984         [Version (since = "2.26")]
3985         public enum CredentialsType {
3986                 INVALID,
3987                 LINUX_UCRED,
3988                 FREEBSD_CMSGCRED,
3989                 OPENBSD_SOCKPEERCRED,
3990                 SOLARIS_UCRED,
3991                 NETBSD_UNPCBID
3992         }
3993         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CALL_FLAGS_", type_id = "g_dbus_call_flags_get_type ()")]
3994         [Flags]
3995         [Version (since = "2.26")]
3996         public enum DBusCallFlags {
3997                 NONE,
3998                 NO_AUTO_START,
3999                 ALLOW_INTERACTIVE_AUTHORIZATION
4000         }
4001         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CAPABILITY_FLAGS_", type_id = "g_dbus_capability_flags_get_type ()")]
4002         [Flags]
4003         [Version (since = "2.26")]
4004         public enum DBusCapabilityFlags {
4005                 NONE,
4006                 UNIX_FD_PASSING
4007         }
4008         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CONNECTION_FLAGS_", type_id = "g_dbus_connection_flags_get_type ()")]
4009         [Flags]
4010         [Version (since = "2.26")]
4011         public enum DBusConnectionFlags {
4012                 NONE,
4013                 AUTHENTICATION_CLIENT,
4014                 AUTHENTICATION_SERVER,
4015                 AUTHENTICATION_ALLOW_ANONYMOUS,
4016                 MESSAGE_BUS_CONNECTION,
4017                 DELAY_MESSAGE_PROCESSING
4018         }
4019         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_INTERFACE_SKELETON_FLAGS_", type_id = "g_dbus_interface_skeleton_flags_get_type ()")]
4020         [Flags]
4021         [Version (since = "2.30")]
4022         public enum DBusInterfaceSkeletonFlags {
4023                 NONE,
4024                 HANDLE_METHOD_INVOCATIONS_IN_THREAD
4025         }
4026         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", type_id = "g_dbus_message_byte_order_get_type ()")]
4027         [Version (since = "2.26")]
4028         public enum DBusMessageByteOrder {
4029                 BIG_ENDIAN,
4030                 LITTLE_ENDIAN
4031         }
4032         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_FLAGS_", type_id = "g_dbus_message_flags_get_type ()")]
4033         [Flags]
4034         [Version (since = "2.26")]
4035         public enum DBusMessageFlags {
4036                 NONE,
4037                 NO_REPLY_EXPECTED,
4038                 NO_AUTO_START,
4039                 ALLOW_INTERACTIVE_AUTHORIZATION
4040         }
4041         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", type_id = "g_dbus_message_header_field_get_type ()")]
4042         [Version (since = "2.26")]
4043         public enum DBusMessageHeaderField {
4044                 INVALID,
4045                 PATH,
4046                 INTERFACE,
4047                 MEMBER,
4048                 ERROR_NAME,
4049                 REPLY_SERIAL,
4050                 DESTINATION,
4051                 SENDER,
4052                 SIGNATURE,
4053                 NUM_UNIX_FDS
4054         }
4055         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_TYPE_", type_id = "g_dbus_message_type_get_type ()")]
4056         [Version (since = "2.26")]
4057         public enum DBusMessageType {
4058                 INVALID,
4059                 METHOD_CALL,
4060                 METHOD_RETURN,
4061                 ERROR,
4062                 SIGNAL
4063         }
4064         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_", type_id = "g_dbus_object_manager_client_flags_get_type ()")]
4065         [Flags]
4066         [Version (since = "2.30")]
4067         public enum DBusObjectManagerClientFlags {
4068                 NONE,
4069                 DO_NOT_AUTO_START
4070         }
4071         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", type_id = "g_dbus_property_info_flags_get_type ()")]
4072         [Flags]
4073         [Version (since = "2.26")]
4074         public enum DBusPropertyInfoFlags {
4075                 NONE,
4076                 READABLE,
4077                 WRITABLE
4078         }
4079         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROXY_FLAGS_", type_id = "g_dbus_proxy_flags_get_type ()")]
4080         [Flags]
4081         [Version (since = "2.26")]
4082         public enum DBusProxyFlags {
4083                 NONE,
4084                 DO_NOT_LOAD_PROPERTIES,
4085                 DO_NOT_CONNECT_SIGNALS,
4086                 DO_NOT_AUTO_START,
4087                 GET_INVALIDATED_PROPERTIES,
4088                 DO_NOT_AUTO_START_AT_CONSTRUCTION
4089         }
4090         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", type_id = "g_dbus_send_message_flags_get_type ()")]
4091         [Flags]
4092         [Version (since = "2.26")]
4093         public enum DBusSendMessageFlags {
4094                 NONE,
4095                 PRESERVE_SERIAL
4096         }
4097         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SERVER_FLAGS_", type_id = "g_dbus_server_flags_get_type ()")]
4098         [Flags]
4099         [Version (since = "2.26")]
4100         public enum DBusServerFlags {
4101                 NONE,
4102                 RUN_IN_THREAD,
4103                 AUTHENTICATION_ALLOW_ANONYMOUS
4104         }
4105         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SIGNAL_FLAGS_", type_id = "g_dbus_signal_flags_get_type ()")]
4106         [Flags]
4107         [Version (since = "2.26")]
4108         public enum DBusSignalFlags {
4109                 NONE,
4110                 NO_MATCH_RULE,
4111                 MATCH_ARG0_NAMESPACE,
4112                 MATCH_ARG0_PATH
4113         }
4114         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SUBTREE_FLAGS_", type_id = "g_dbus_subtree_flags_get_type ()")]
4115         [Flags]
4116         [Version (since = "2.26")]
4117         public enum DBusSubtreeFlags {
4118                 NONE,
4119                 DISPATCH_TO_UNENUMERATED_NODES
4120         }
4121         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_BYTE_ORDER_", type_id = "g_data_stream_byte_order_get_type ()")]
4122         public enum DataStreamByteOrder {
4123                 BIG_ENDIAN,
4124                 LITTLE_ENDIAN,
4125                 HOST_ENDIAN
4126         }
4127         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", type_id = "g_data_stream_newline_type_get_type ()")]
4128         public enum DataStreamNewlineType {
4129                 LF,
4130                 CR,
4131                 CR_LF,
4132                 ANY
4133         }
4134         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_", type_id = "g_drive_start_flags_get_type ()")]
4135         [Flags]
4136         [Version (since = "2.22")]
4137         public enum DriveStartFlags {
4138                 NONE
4139         }
4140         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_STOP_TYPE_", type_id = "g_drive_start_stop_type_get_type ()")]
4141         [Version (since = "2.22")]
4142         public enum DriveStartStopType {
4143                 UNKNOWN,
4144                 SHUTDOWN,
4145                 NETWORK,
4146                 MULTIDISK,
4147                 PASSWORD
4148         }
4149         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_EMBLEM_ORIGIN_", type_id = "g_emblem_origin_get_type ()")]
4150         [Version (since = "2.18")]
4151         public enum EmblemOrigin {
4152                 UNKNOWN,
4153                 DEVICE,
4154                 LIVEMETADATA,
4155                 TAG
4156         }
4157         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_INFO_", type_id = "g_file_attribute_info_flags_get_type ()")]
4158         [Flags]
4159         public enum FileAttributeInfoFlags {
4160                 NONE,
4161                 COPY_WITH_FILE,
4162                 COPY_WHEN_MOVED
4163         }
4164         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_STATUS_", type_id = "g_file_attribute_status_get_type ()")]
4165         public enum FileAttributeStatus {
4166                 UNSET,
4167                 SET,
4168                 ERROR_SETTING
4169         }
4170         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_TYPE_", type_id = "g_file_attribute_type_get_type ()")]
4171         public enum FileAttributeType {
4172                 INVALID,
4173                 STRING,
4174                 BYTE_STRING,
4175                 BOOLEAN,
4176                 UINT32,
4177                 INT32,
4178                 UINT64,
4179                 INT64,
4180                 OBJECT,
4181                 STRINGV
4182         }
4183         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_COPY_", type_id = "g_file_copy_flags_get_type ()")]
4184         [Flags]
4185         public enum FileCopyFlags {
4186                 NONE,
4187                 OVERWRITE,
4188                 BACKUP,
4189                 NOFOLLOW_SYMLINKS,
4190                 ALL_METADATA,
4191                 NO_FALLBACK_FOR_MOVE,
4192                 TARGET_DEFAULT_PERMS
4193         }
4194         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_CREATE_", type_id = "g_file_create_flags_get_type ()")]
4195         [Flags]
4196         public enum FileCreateFlags {
4197                 NONE,
4198                 PRIVATE,
4199                 REPLACE_DESTINATION
4200         }
4201         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MEASURE_", type_id = "g_file_measure_flags_get_type ()")]
4202         [Flags]
4203         [Version (since = "2.38")]
4204         public enum FileMeasureFlags {
4205                 NONE,
4206                 REPORT_ANY_ERROR,
4207                 APPARENT_SIZE,
4208                 NO_XDEV
4209         }
4210         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_EVENT_", type_id = "g_file_monitor_event_get_type ()")]
4211         public enum FileMonitorEvent {
4212                 CHANGED,
4213                 CHANGES_DONE_HINT,
4214                 DELETED,
4215                 CREATED,
4216                 ATTRIBUTE_CHANGED,
4217                 PRE_UNMOUNT,
4218                 UNMOUNTED,
4219                 MOVED,
4220                 RENAMED,
4221                 MOVED_IN,
4222                 MOVED_OUT
4223         }
4224         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_", type_id = "g_file_monitor_flags_get_type ()")]
4225         [Flags]
4226         public enum FileMonitorFlags {
4227                 NONE,
4228                 WATCH_MOUNTS,
4229                 SEND_MOVED,
4230                 WATCH_HARD_LINKS,
4231                 WATCH_MOVES
4232         }
4233         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_QUERY_INFO_", type_id = "g_file_query_info_flags_get_type ()")]
4234         [Flags]
4235         public enum FileQueryInfoFlags {
4236                 NONE,
4237                 NOFOLLOW_SYMLINKS
4238         }
4239         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_TYPE_", type_id = "g_file_type_get_type ()")]
4240         public enum FileType {
4241                 UNKNOWN,
4242                 REGULAR,
4243                 DIRECTORY,
4244                 SYMBOLIC_LINK,
4245                 SPECIAL,
4246                 SHORTCUT,
4247                 MOUNTABLE
4248         }
4249         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", type_id = "g_filesystem_preview_type_get_type ()")]
4250         public enum FilesystemPreviewType {
4251                 IF_ALWAYS,
4252                 IF_LOCAL,
4253                 NEVER
4254         }
4255         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_MODULE_SCOPE_", type_id = "g_io_module_scope_flags_get_type ()")]
4256         [Version (since = "2.30")]
4257         public enum IOModuleScopeFlags {
4258                 NONE,
4259                 BLOCK_DUPLICATES
4260         }
4261         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_STREAM_SPLICE_", type_id = "g_io_stream_splice_flags_get_type ()")]
4262         [Flags]
4263         [Version (since = "2.28")]
4264         public enum IOStreamSpliceFlags {
4265                 NONE,
4266                 CLOSE_STREAM1,
4267                 CLOSE_STREAM2,
4268                 WAIT_FOR_BOTH
4269         }
4270         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_MOUNT_", type_id = "g_mount_mount_flags_get_type ()")]
4271         [Flags]
4272         public enum MountMountFlags {
4273                 NONE
4274         }
4275         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_OPERATION_", type_id = "g_mount_operation_result_get_type ()")]
4276         public enum MountOperationResult {
4277                 HANDLED,
4278                 ABORTED,
4279                 UNHANDLED
4280         }
4281         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_UNMOUNT_", type_id = "g_mount_unmount_flags_get_type ()")]
4282         [Flags]
4283         public enum MountUnmountFlags {
4284                 NONE,
4285                 FORCE
4286         }
4287         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NETWORK_CONNECTIVITY_", type_id = "g_network_connectivity_get_type ()")]
4288         [Version (since = "2.44")]
4289         public enum NetworkConnectivity {
4290                 LOCAL,
4291                 LIMITED,
4292                 PORTAL,
4293                 FULL
4294         }
4295         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NOTIFICATION_PRIORITY_", type_id = "g_notification_priority_get_type ()")]
4296         [Version (since = "2.42")]
4297         public enum NotificationPriority {
4298                 NORMAL,
4299                 LOW,
4300                 HIGH,
4301                 URGENT
4302         }
4303         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_OUTPUT_STREAM_SPLICE_", type_id = "g_output_stream_splice_flags_get_type ()")]
4304         [Flags]
4305         public enum OutputStreamSpliceFlags {
4306                 NONE,
4307                 CLOSE_SOURCE,
4308                 CLOSE_TARGET
4309         }
4310         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_PASSWORD_SAVE_", type_id = "g_password_save_get_type ()")]
4311         public enum PasswordSave {
4312                 NEVER,
4313                 FOR_SESSION,
4314                 PERMANENTLY
4315         }
4316         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_RECORD_", type_id = "g_resolver_record_type_get_type ()")]
4317         [Version (since = "2.34")]
4318         public enum ResolverRecordType {
4319                 SRV,
4320                 MX,
4321                 TXT,
4322                 SOA,
4323                 NS
4324         }
4325         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_FLAGS_", type_id = "g_resource_flags_get_type ()")]
4326         [Flags]
4327         [Version (since = "2.32")]
4328         public enum ResourceFlags {
4329                 NONE,
4330                 COMPRESSED
4331         }
4332         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_LOOKUP_FLAGS_", type_id = "g_resource_lookup_flags_get_type ()")]
4333         [Flags]
4334         [Version (since = "2.32")]
4335         public enum ResourceLookupFlags {
4336                 NONE
4337         }
4338         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SETTINGS_BIND_", type_id = "g_settings_bind_flags_get_type ()")]
4339         [Flags]
4340         public enum SettingsBindFlags {
4341                 DEFAULT,
4342                 GET,
4343                 SET,
4344                 NO_SENSITIVITY,
4345                 GET_NO_CHANGES,
4346                 INVERT_BOOLEAN
4347         }
4348         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_CLIENT_", type_id = "g_socket_client_event_get_type ()")]
4349         [Version (since = "2.32")]
4350         public enum SocketClientEvent {
4351                 RESOLVING,
4352                 RESOLVED,
4353                 CONNECTING,
4354                 CONNECTED,
4355                 PROXY_NEGOTIATING,
4356                 PROXY_NEGOTIATED,
4357                 TLS_HANDSHAKING,
4358                 TLS_HANDSHAKED,
4359                 COMPLETE
4360         }
4361         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_FAMILY_", type_id = "g_socket_family_get_type ()")]
4362         [Version (since = "2.22")]
4363         public enum SocketFamily {
4364                 INVALID,
4365                 UNIX,
4366                 IPV4,
4367                 IPV6
4368         }
4369         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_LISTENER_", type_id = "g_socket_listener_event_get_type ()")]
4370         [Version (since = "2.46")]
4371         public enum SocketListenerEvent {
4372                 BINDING,
4373                 BOUND,
4374                 LISTENING,
4375                 LISTENED
4376         }
4377         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_MSG_", type_id = "g_socket_msg_flags_get_type ()")]
4378         [Flags]
4379         [Version (since = "2.22")]
4380         public enum SocketMsgFlags {
4381                 NONE,
4382                 OOB,
4383                 PEEK,
4384                 DONTROUTE
4385         }
4386         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_PROTOCOL_", type_id = "g_socket_protocol_get_type ()")]
4387         [Version (since = "2.22")]
4388         public enum SocketProtocol {
4389                 UNKNOWN,
4390                 DEFAULT,
4391                 TCP,
4392                 UDP,
4393                 SCTP
4394         }
4395         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_TYPE_", type_id = "g_socket_type_get_type ()")]
4396         [Version (since = "2.22")]
4397         public enum SocketType {
4398                 INVALID,
4399                 STREAM,
4400                 DATAGRAM,
4401                 SEQPACKET
4402         }
4403         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SUBPROCESS_FLAGS_", type_id = "g_subprocess_flags_get_type ()")]
4404         [Flags]
4405         [Version (since = "2.40")]
4406         public enum SubprocessFlags {
4407                 NONE,
4408                 STDIN_PIPE,
4409                 STDIN_INHERIT,
4410                 STDOUT_PIPE,
4411                 STDOUT_SILENCE,
4412                 STDERR_PIPE,
4413                 STDERR_SILENCE,
4414                 STDERR_MERGE,
4415                 INHERIT_FDS
4416         }
4417         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TEST_DBUS_", type_id = "g_test_dbus_flags_get_type ()")]
4418         [Flags]
4419         [Version (since = "2.34")]
4420         public enum TestDBusFlags {
4421                 NONE
4422         }
4423         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_AUTHENTICATION_", type_id = "g_tls_authentication_mode_get_type ()")]
4424         [Version (since = "2.28")]
4425         public enum TlsAuthenticationMode {
4426                 NONE,
4427                 REQUESTED,
4428                 REQUIRED
4429         }
4430         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_", type_id = "g_tls_certificate_flags_get_type ()")]
4431         [Flags]
4432         [Version (since = "2.28")]
4433         public enum TlsCertificateFlags {
4434                 UNKNOWN_CA,
4435                 BAD_IDENTITY,
4436                 NOT_ACTIVATED,
4437                 EXPIRED,
4438                 REVOKED,
4439                 INSECURE,
4440                 GENERIC_ERROR,
4441                 VALIDATE_ALL
4442         }
4443         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_REQUEST_", type_id = "g_tls_certificate_request_flags_get_type ()")]
4444         [Version (since = "2.40")]
4445         public enum TlsCertificateRequestFlags {
4446                 NONE
4447         }
4448         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_LOOKUP_", type_id = "g_tls_database_lookup_flags_get_type ()")]
4449         [Version (since = "2.30")]
4450         public enum TlsDatabaseLookupFlags {
4451                 NONE,
4452                 KEYPAIR
4453         }
4454         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_VERIFY_", type_id = "g_tls_database_verify_flags_get_type ()")]
4455         [Flags]
4456         [Version (since = "2.30")]
4457         public enum TlsDatabaseVerifyFlags {
4458                 NONE
4459         }
4460         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_INTERACTION_", type_id = "g_tls_interaction_result_get_type ()")]
4461         [Version (since = "2.30")]
4462         public enum TlsInteractionResult {
4463                 UNHANDLED,
4464                 HANDLED,
4465                 FAILED
4466         }
4467         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_PASSWORD_", type_id = "g_tls_password_flags_get_type ()")]
4468         [Flags]
4469         [Version (since = "2.30")]
4470         public enum TlsPasswordFlags {
4471                 NONE,
4472                 RETRY,
4473                 MANY_TRIES,
4474                 FINAL_TRY
4475         }
4476         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_REHANDSHAKE_", type_id = "g_tls_rehandshake_mode_get_type ()")]
4477         [Version (since = "2.28")]
4478         public enum TlsRehandshakeMode {
4479                 NEVER,
4480                 SAFELY,
4481                 UNSAFELY
4482         }
4483         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_UNIX_SOCKET_ADDRESS_", type_id = "g_unix_socket_address_type_get_type ()")]
4484         [Version (since = "2.26")]
4485         public enum UnixSocketAddressType {
4486                 INVALID,
4487                 ANONYMOUS,
4488                 PATH,
4489                 ABSTRACT,
4490                 ABSTRACT_PADDED
4491         }
4492         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", type_id = "g_zlib_compressor_format_get_type ()")]
4493         [Version (since = "2.24")]
4494         public enum ZlibCompressorFormat {
4495                 ZLIB,
4496                 GZIP,
4497                 RAW
4498         }
4499         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_ERROR_")]
4500         [Version (since = "2.26")]
4501         public errordomain DBusError {
4502                 FAILED,
4503                 NO_MEMORY,
4504                 SERVICE_UNKNOWN,
4505                 NAME_HAS_NO_OWNER,
4506                 NO_REPLY,
4507                 IO_ERROR,
4508                 BAD_ADDRESS,
4509                 NOT_SUPPORTED,
4510                 LIMITS_EXCEEDED,
4511                 ACCESS_DENIED,
4512                 AUTH_FAILED,
4513                 NO_SERVER,
4514                 TIMEOUT,
4515                 NO_NETWORK,
4516                 ADDRESS_IN_USE,
4517                 DISCONNECTED,
4518                 INVALID_ARGS,
4519                 FILE_NOT_FOUND,
4520                 FILE_EXISTS,
4521                 UNKNOWN_METHOD,
4522                 TIMED_OUT,
4523                 MATCH_RULE_NOT_FOUND,
4524                 MATCH_RULE_INVALID,
4525                 SPAWN_EXEC_FAILED,
4526                 SPAWN_FORK_FAILED,
4527                 SPAWN_CHILD_EXITED,
4528                 SPAWN_CHILD_SIGNALED,
4529                 SPAWN_FAILED,
4530                 SPAWN_SETUP_FAILED,
4531                 SPAWN_CONFIG_INVALID,
4532                 SPAWN_SERVICE_INVALID,
4533                 SPAWN_SERVICE_NOT_FOUND,
4534                 SPAWN_PERMISSIONS_INVALID,
4535                 SPAWN_FILE_INVALID,
4536                 SPAWN_NO_MEMORY,
4537                 UNIX_PROCESS_ID_UNKNOWN,
4538                 INVALID_SIGNATURE,
4539                 INVALID_FILE_CONTENT,
4540                 SELINUX_SECURITY_CONTEXT_UNKNOWN,
4541                 ADT_AUDIT_DATA_UNKNOWN,
4542                 OBJECT_PATH_IN_USE,
4543                 UNKNOWN_OBJECT,
4544                 UNKNOWN_INTERFACE,
4545                 UNKNOWN_PROPERTY,
4546                 PROPERTY_READ_ONLY;
4547                 [CCode (cheader_filename = "gio/gio.h")]
4548                 public static string encode_gerror (GLib.Error error);
4549                 [CCode (cheader_filename = "gio/gio.h")]
4550                 public static string get_remote_error (GLib.Error error);
4551                 [CCode (cheader_filename = "gio/gio.h")]
4552                 public static bool is_remote_error (GLib.Error error);
4553                 [CCode (cheader_filename = "gio/gio.h")]
4554                 public static GLib.Error new_for_dbus_error (string dbus_error_name, string dbus_error_message);
4555                 [CCode (cheader_filename = "gio/gio.h")]
4556                 public static GLib.Quark quark ();
4557                 [CCode (cheader_filename = "gio/gio.h")]
4558                 public static bool register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
4559                 [CCode (cheader_filename = "gio/gio.h")]
4560                 public static void register_error_domain (string error_domain_quark_name, size_t quark_volatile, [CCode (array_length_cname = "num_entries", array_length_pos = 3.1, array_length_type = "guint")] GLib.DBusErrorEntry[] entries);
4561                 [CCode (cheader_filename = "gio/gio.h")]
4562                 public static bool strip_remote_error (GLib.Error error);
4563                 [CCode (cheader_filename = "gio/gio.h")]
4564                 public static bool unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
4565         }
4566         [CCode (cheader_filename = "gio/gio.h", cname = "GIOErrorEnum", cprefix = "G_IO_ERROR_")]
4567         [GIR (name = "IOErrorEnum")]
4568         public errordomain IOError {
4569                 FAILED,
4570                 NOT_FOUND,
4571                 EXISTS,
4572                 IS_DIRECTORY,
4573                 NOT_DIRECTORY,
4574                 NOT_EMPTY,
4575                 NOT_REGULAR_FILE,
4576                 NOT_SYMBOLIC_LINK,
4577                 NOT_MOUNTABLE_FILE,
4578                 FILENAME_TOO_LONG,
4579                 INVALID_FILENAME,
4580                 TOO_MANY_LINKS,
4581                 NO_SPACE,
4582                 INVALID_ARGUMENT,
4583                 PERMISSION_DENIED,
4584                 NOT_SUPPORTED,
4585                 NOT_MOUNTED,
4586                 ALREADY_MOUNTED,
4587                 CLOSED,
4588                 CANCELLED,
4589                 PENDING,
4590                 READ_ONLY,
4591                 CANT_CREATE_BACKUP,
4592                 WRONG_ETAG,
4593                 TIMED_OUT,
4594                 WOULD_RECURSE,
4595                 BUSY,
4596                 WOULD_BLOCK,
4597                 HOST_NOT_FOUND,
4598                 WOULD_MERGE,
4599                 FAILED_HANDLED,
4600                 TOO_MANY_OPEN_FILES,
4601                 NOT_INITIALIZED,
4602                 ADDRESS_IN_USE,
4603                 PARTIAL_INPUT,
4604                 INVALID_DATA,
4605                 DBUS_ERROR,
4606                 HOST_UNREACHABLE,
4607                 NETWORK_UNREACHABLE,
4608                 CONNECTION_REFUSED,
4609                 PROXY_FAILED,
4610                 PROXY_AUTH_FAILED,
4611                 PROXY_NEED_AUTH,
4612                 PROXY_NOT_ALLOWED,
4613                 BROKEN_PIPE,
4614                 CONNECTION_CLOSED,
4615                 NOT_CONNECTED,
4616                 MESSAGE_TOO_LARGE;
4617                 [CCode (cheader_filename = "gio/gio.h")]
4618                 public static unowned GLib.IOError from_errno (int err_no);
4619                 [CCode (cheader_filename = "gio/gio.h")]
4620                 public static GLib.Quark quark ();
4621         }
4622         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_ERROR_")]
4623         [Version (since = "2.22")]
4624         public errordomain ResolverError {
4625                 NOT_FOUND,
4626                 TEMPORARY_FAILURE,
4627                 INTERNAL;
4628                 [CCode (cheader_filename = "gio/gio.h")]
4629                 public static GLib.Quark quark ();
4630         }
4631         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_ERROR_")]
4632         [Version (since = "2.32")]
4633         public errordomain ResourceError {
4634                 NOT_FOUND,
4635                 INTERNAL;
4636                 [CCode (cheader_filename = "gio/gio.h")]
4637                 public static GLib.Quark quark ();
4638         }
4639         [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_ERROR_")]
4640         [Version (since = "2.28")]
4641         public errordomain TlsError {
4642                 UNAVAILABLE,
4643                 MISC,
4644                 BAD_CERTIFICATE,
4645                 NOT_TLS,
4646                 HANDSHAKE,
4647                 CERTIFICATE_REQUIRED,
4648                 EOF
4649         }
4650         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4651         public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
4652         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4653         [Version (since = "2.26")]
4654         public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
4655         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4656         [Version (since = "2.26")]
4657         public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
4658         [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4659         [Version (since = "2.26")]
4660         public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
4661         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4662         [Version (since = "2.26")]
4663         public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
4664         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4665         [Version (since = "2.26")]
4666         public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
4667         [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
4668         [Version (since = "2.28")]
4669         public delegate bool CancellableSourceFunc (GLib.Cancellable? cancellable = null);
4670         [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4671         public delegate GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error;
4672         [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
4673         [Version (since = "2.26")]
4674         public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, owned GLib.DBusMethodInvocation invocation);
4675         [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
4676         public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
4677         [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4678         [Version (since = "2.26")]
4679         public delegate GLib.DBusMessage? DBusMessageFilterFunction (GLib.DBusConnection connection, owned GLib.DBusMessage message, bool incoming);
4680         [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4681         [Version (since = "2.30")]
4682         public delegate GLib.Type DBusProxyTypeFunc (GLib.DBusObjectManagerClient manager, string object_path, string? interface_name);
4683         [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4684         [Version (since = "2.26")]
4685         public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
4686         [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4687         [Version (since = "2.26")]
4688         public delegate unowned GLib.DBusInterfaceVTable? DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
4689         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4690         [Version (since = "2.26")]
4691         public delegate string[] DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
4692         [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
4693         [Version (since = "2.26")]
4694         public delegate GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
4695         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4696         [Version (since = "2.48")]
4697         public delegate bool DatagramBasedSourceFunc (GLib.DatagramBased datagram_based, GLib.IOCondition condition);
4698         [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
4699         [Version (since = "2.38")]
4700         public delegate void FileMeasureProgressCallback (bool reporting, uint64 current_size, uint64 num_dirs, uint64 num_files);
4701         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4702         public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
4703         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4704         public delegate bool FileReadMoreCallback (string file_contents, int64 file_size);
4705         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4706         public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable? cancellable = null);
4707         [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
4708         [Version (since = "2.28")]
4709         public delegate bool PollableSourceFunc (GLib.Object pollable_stream);
4710         [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4711         public delegate void* ReallocFunc (void* data, size_t size);
4712         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4713         public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
4714         [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindGetMapping", has_target = false)]
4715         public delegate bool SettingsBindGetMappingShared (GLib.Value value, GLib.Variant variant, void* user_data);
4716         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4717         public delegate GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
4718         [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindSetMapping", has_target = false)]
4719         public delegate GLib.Variant SettingsBindSetMappingShared (GLib.Value value, GLib.VariantType expected_type, void* user_data);
4720         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4721         public delegate bool SettingsGetMapping (GLib.Variant value, out void* result);
4722         [CCode (cheader_filename = "gio/gio.h")]
4723         [Version (deprecated_since = "vala-0.26", replacement = "SimplActionActivateFunc")]
4724         public delegate void SimpleActionActivateCallback (GLib.SimpleAction action, GLib.Variant? parameter);
4725         [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4726         public delegate void SimpleActionActivateFunc (GLib.SimpleAction action, GLib.Variant? parameter, void* user_data);
4727         [CCode (cheader_filename = "gio/gio.h")]
4728         [Version (deprecated_since = "vala-0.26", replacement = "SimplActionChangeStateFunc")]
4729         public delegate void SimpleActionChangeStateCallback (GLib.SimpleAction action, GLib.Variant value);
4730         [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4731         public delegate void SimpleActionChangeStateFunc (GLib.SimpleAction action, GLib.Variant value, void* user_data);
4732         [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4733         public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable? cancellable = null);
4734         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4735         [Version (since = "2.22")]
4736         public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
4737         [CCode (cheader_filename = "gio/gio.h", cname = "GAsyncReadyCallback", instance_pos = 2.9)]
4738         public delegate void TaskReadyCallback (GLib.Object? source_object, GLib.Task task);
4739         [CCode (cheader_filename = "gio/gio.h", cname = "GSourceFunc", has_target = false)]
4740         public delegate bool TaskSourceFunc (GLib.Task task);
4741         [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4742         [Version (since = "2.36")]
4743         public delegate void TaskThreadFunc (GLib.Task task, GLib.Object source_object, void* task_data, GLib.Cancellable? cancellable = null);
4744         [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4745         [Version (since = "2.50")]
4746         public delegate GLib.File VfsFileLookupFunc (GLib.Vfs vfs, string identifier);
4747         [CCode (cheader_filename = "gio/gio.h")]
4748         [Version (deprecated_since = "vala-0.16", replacement = "File.equal")]
4749         public static GLib.EqualFunc<GLib.File> file_equal;
4750         [CCode (cheader_filename = "gio/gio.h")]
4751         [Version (deprecated_since = "vala-0.16", replacement = "File.hash")]
4752         public static GLib.HashFunc<GLib.File> file_hash;
4753         [CCode (cheader_filename = "glib.h", cname = "g_realloc")]
4754         public static GLib.ReallocFunc g_realloc;
4755         [CCode (cheader_filename = "gio/gio.h")]
4756         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_DELETE")]
4757         public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
4758         [CCode (cheader_filename = "gio/gio.h")]
4759         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_EXECUTE")]
4760         public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
4761         [CCode (cheader_filename = "gio/gio.h")]
4762         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_READ")]
4763         public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
4764         [CCode (cheader_filename = "gio/gio.h")]
4765         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_RENAME")]
4766         public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
4767         [CCode (cheader_filename = "gio/gio.h")]
4768         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_TRASH")]
4769         public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
4770         [CCode (cheader_filename = "gio/gio.h")]
4771         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_WRITE")]
4772         public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
4773         [CCode (cheader_filename = "gio/gio.h")]
4774         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.DOS_IS_ARCHIVE")]
4775         public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
4776         [CCode (cheader_filename = "gio/gio.h")]
4777         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.DOS_IS_SYSTEM")]
4778         public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
4779         [CCode (cheader_filename = "gio/gio.h")]
4780         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ETAG_VALUE")]
4781         public const string FILE_ATTRIBUTE_ETAG_VALUE;
4782         [CCode (cheader_filename = "gio/gio.h")]
4783         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_FREE")]
4784         public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
4785         [CCode (cheader_filename = "gio/gio.h")]
4786         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_READONLY")]
4787         public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
4788         [CCode (cheader_filename = "gio/gio.h")]
4789         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_SIZE")]
4790         public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
4791         [CCode (cheader_filename = "gio/gio.h")]
4792         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_TYPE")]
4793         public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
4794         [CCode (cheader_filename = "gio/gio.h")]
4795         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_USE_PREVIEW")]
4796         public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
4797         [CCode (cheader_filename = "gio/gio.h")]
4798         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.GVFS_BACKEND")]
4799         public const string FILE_ATTRIBUTE_GVFS_BACKEND;
4800         [CCode (cheader_filename = "gio/gio.h")]
4801         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ID_FILE")]
4802         public const string FILE_ATTRIBUTE_ID_FILE;
4803         [CCode (cheader_filename = "gio/gio.h")]
4804         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ID_FILESYSTEM")]
4805         public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
4806         [CCode (cheader_filename = "gio/gio.h")]
4807         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_EJECT")]
4808         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
4809         [CCode (cheader_filename = "gio/gio.h")]
4810         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_MOUNT")]
4811         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
4812         [CCode (cheader_filename = "gio/gio.h")]
4813         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_POLL")]
4814         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
4815         [CCode (cheader_filename = "gio/gio.h")]
4816         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_START")]
4817         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
4818         [CCode (cheader_filename = "gio/gio.h")]
4819         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_START_DEGRADED")]
4820         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
4821         [CCode (cheader_filename = "gio/gio.h")]
4822         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_STOP")]
4823         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
4824         [CCode (cheader_filename = "gio/gio.h")]
4825         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_UNMOUNT")]
4826         public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
4827         [CCode (cheader_filename = "gio/gio.h")]
4828         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_HAL_UDI")]
4829         public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
4830         [CCode (cheader_filename = "gio/gio.h")]
4831         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
4832         public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
4833         [CCode (cheader_filename = "gio/gio.h")]
4834         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_START_STOP_TYPE")]
4835         public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
4836         [CCode (cheader_filename = "gio/gio.h")]
4837         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_UNIX_DEVICE")]
4838         public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
4839         [CCode (cheader_filename = "gio/gio.h")]
4840         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_UNIX_DEVICE_FILE")]
4841         public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
4842         [CCode (cheader_filename = "gio/gio.h")]
4843         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_GROUP")]
4844         public const string FILE_ATTRIBUTE_OWNER_GROUP;
4845         [CCode (cheader_filename = "gio/gio.h")]
4846         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_USER")]
4847         public const string FILE_ATTRIBUTE_OWNER_USER;
4848         [CCode (cheader_filename = "gio/gio.h")]
4849         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_USER_REAL")]
4850         public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
4851         [CCode (cheader_filename = "gio/gio.h")]
4852         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.PREVIEW_ICON")]
4853         public const string FILE_ATTRIBUTE_PREVIEW_ICON;
4854         [CCode (cheader_filename = "gio/gio.h")]
4855         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.SELINUX_CONTEXT")]
4856         public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
4857         [CCode (cheader_filename = "gio/gio.h")]
4858         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_ALLOCATED_SIZE")]
4859         public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
4860         [CCode (cheader_filename = "gio/gio.h")]
4861         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_CONTENT_TYPE")]
4862         public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
4863         [CCode (cheader_filename = "gio/gio.h")]
4864         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_COPY_NAME")]
4865         public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
4866         [CCode (cheader_filename = "gio/gio.h")]
4867         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_DESCRIPTION")]
4868         public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
4869         [CCode (cheader_filename = "gio/gio.h")]
4870         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_DISPLAY_NAME")]
4871         public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
4872         [CCode (cheader_filename = "gio/gio.h")]
4873         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_EDIT_NAME")]
4874         public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
4875         [CCode (cheader_filename = "gio/gio.h")]
4876         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_FAST_CONTENT_TYPE")]
4877         public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
4878         [CCode (cheader_filename = "gio/gio.h")]
4879         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_ICON")]
4880         public const string FILE_ATTRIBUTE_STANDARD_ICON;
4881         [CCode (cheader_filename = "gio/gio.h")]
4882         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_BACKUP")]
4883         public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
4884         [CCode (cheader_filename = "gio/gio.h")]
4885         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_HIDDEN")]
4886         public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
4887         [CCode (cheader_filename = "gio/gio.h")]
4888         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_SYMLINK")]
4889         public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
4890         [CCode (cheader_filename = "gio/gio.h")]
4891         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_VIRTUAL")]
4892         public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
4893         [CCode (cheader_filename = "gio/gio.h")]
4894         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_NAME")]
4895         public const string FILE_ATTRIBUTE_STANDARD_NAME;
4896         [CCode (cheader_filename = "gio/gio.h")]
4897         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SIZE")]
4898         public const string FILE_ATTRIBUTE_STANDARD_SIZE;
4899         [CCode (cheader_filename = "gio/gio.h")]
4900         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SORT_ORDER")]
4901         public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
4902         [CCode (cheader_filename = "gio/gio.h")]
4903         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SYMLINK_TARGET")]
4904         public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
4905         [CCode (cheader_filename = "gio/gio.h")]
4906         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_TARGET_URI")]
4907         public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
4908         [CCode (cheader_filename = "gio/gio.h")]
4909         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_TYPE")]
4910         public const string FILE_ATTRIBUTE_STANDARD_TYPE;
4911         [CCode (cheader_filename = "gio/gio.h")]
4912         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.THUMBNAILING_FAILED")]
4913         public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
4914         [CCode (cheader_filename = "gio/gio.h")]
4915         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.THUMBNAIL_PATH")]
4916         public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
4917         [CCode (cheader_filename = "gio/gio.h")]
4918         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_ACCESS")]
4919         public const string FILE_ATTRIBUTE_TIME_ACCESS;
4920         [CCode (cheader_filename = "gio/gio.h")]
4921         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_ACCESS_USEC")]
4922         public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
4923         [CCode (cheader_filename = "gio/gio.h")]
4924         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CHANGED")]
4925         public const string FILE_ATTRIBUTE_TIME_CHANGED;
4926         [CCode (cheader_filename = "gio/gio.h")]
4927         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CHANGED_USEC")]
4928         public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
4929         [CCode (cheader_filename = "gio/gio.h")]
4930         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CREATED")]
4931         public const string FILE_ATTRIBUTE_TIME_CREATED;
4932         [CCode (cheader_filename = "gio/gio.h")]
4933         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CREATED_USEC")]
4934         public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
4935         [CCode (cheader_filename = "gio/gio.h")]
4936         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_MODIFIED")]
4937         public const string FILE_ATTRIBUTE_TIME_MODIFIED;
4938         [CCode (cheader_filename = "gio/gio.h")]
4939         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_MODIFIED_USEC")]
4940         public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
4941         [CCode (cheader_filename = "gio/gio.h")]
4942         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_DELETION_DATE")]
4943         public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
4944         [CCode (cheader_filename = "gio/gio.h")]
4945         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_ITEM_COUNT")]
4946         public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
4947         [CCode (cheader_filename = "gio/gio.h")]
4948         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_ORIG_PATH")]
4949         public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
4950         [CCode (cheader_filename = "gio/gio.h")]
4951         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_BLOCKS")]
4952         public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
4953         [CCode (cheader_filename = "gio/gio.h")]
4954         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_BLOCK_SIZE")]
4955         public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
4956         [CCode (cheader_filename = "gio/gio.h")]
4957         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_DEVICE")]
4958         public const string FILE_ATTRIBUTE_UNIX_DEVICE;
4959         [CCode (cheader_filename = "gio/gio.h")]
4960         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_GID")]
4961         public const string FILE_ATTRIBUTE_UNIX_GID;
4962         [CCode (cheader_filename = "gio/gio.h")]
4963         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_INODE")]
4964         public const string FILE_ATTRIBUTE_UNIX_INODE;
4965         [CCode (cheader_filename = "gio/gio.h")]
4966         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_IS_MOUNTPOINT")]
4967         public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
4968         [CCode (cheader_filename = "gio/gio.h")]
4969         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_MODE")]
4970         public const string FILE_ATTRIBUTE_UNIX_MODE;
4971         [CCode (cheader_filename = "gio/gio.h")]
4972         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_NLINK")]
4973         public const string FILE_ATTRIBUTE_UNIX_NLINK;
4974         [CCode (cheader_filename = "gio/gio.h")]
4975         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_RDEV")]
4976         public const string FILE_ATTRIBUTE_UNIX_RDEV;
4977         [CCode (cheader_filename = "gio/gio.h")]
4978         [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_UID")]
4979         public const string FILE_ATTRIBUTE_UNIX_UID;
4980         [CCode (cheader_filename = "gio/gio.h")]
4981         [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_ACTION")]
4982         public const string MENU_ATTRIBUTE_ACTION;
4983         [CCode (cheader_filename = "gio/gio.h")]
4984         [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_LABEL")]
4985         public const string MENU_ATTRIBUTE_LABEL;
4986         [CCode (cheader_filename = "gio/gio.h")]
4987         [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_TARGET")]
4988         public const string MENU_ATTRIBUTE_TARGET;
4989         [CCode (cheader_filename = "gio/gio.h")]
4990         [Version (deprecated_since = "vala-0.16", replacement = "Menu.LINK_SECTION_SECTION")]
4991         public const string MENU_LINK_SECTION;
4992         [CCode (cheader_filename = "gio/gio.h")]
4993         [Version (deprecated_since = "vala-0.16", replacement = "Menu.LINK_SUBMENU")]
4994         public const string MENU_LINK_SUBMENU;
4995         [CCode (cheader_filename = "gio/gio.h")]
4996         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.NATIVE_VOLUME_MONITOR")]
4997         public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
4998         [CCode (cheader_filename = "gio/gio.h")]
4999         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.NETWORK_MONITOR")]
5000         public const string NETWORK_MONITOR_EXTENSION_POINT_NAME;
5001         [CCode (cheader_filename = "gio/gio.h")]
5002         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.PROXY")]
5003         public const string PROXY_EXTENSION_POINT_NAME;
5004         [CCode (cheader_filename = "gio/gio.h")]
5005         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.PROXY_RESOLVER")]
5006         public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
5007         [CCode (cheader_filename = "gio/gio.h")]
5008         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.TLS_BACKEND")]
5009         public const string TLS_BACKEND_EXTENSION_POINT_NAME;
5010         [CCode (cheader_filename = "gio/gio.h")]
5011         [Version (deprecated_since = "vala-0.16", replacement = "TlsDatabase.PURPOSE_AUTHENTICATE_CLIENT")]
5012         public const string TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT;
5013         [CCode (cheader_filename = "gio/gio.h")]
5014         [Version (deprecated_since = "vala-0.16", replacement = "TlsDatabase.PURPOSE_AUTHENTICATE_SERVER")]
5015         public const string TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER;
5016         [CCode (cheader_filename = "gio/gio.h")]
5017         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.VFS")]
5018         public const string VFS_EXTENSION_POINT_NAME;
5019         [CCode (cheader_filename = "gio/gio.h")]
5020         [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.HAL_UDI")]
5021         public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
5022         [CCode (cheader_filename = "gio/gio.h")]
5023         [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.LABEL")]
5024         public const string VOLUME_IDENTIFIER_KIND_LABEL;
5025         [CCode (cheader_filename = "gio/gio.h")]
5026         [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.NFS_MOUNT")]
5027         public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
5028         [CCode (cheader_filename = "gio/gio.h")]
5029         [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.UNIX_DEVICE")]
5030         public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
5031         [CCode (cheader_filename = "gio/gio.h")]
5032         [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.UUID")]
5033         public const string VOLUME_IDENTIFIER_KIND_UUID;
5034         [CCode (cheader_filename = "gio/gio.h")]
5035         [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.VOLUME_MONITOR")]
5036         public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
5037         [CCode (cheader_filename = "gio/gio.h")]
5038         [Version (since = "2.38")]
5039         public static bool action_name_is_valid (string action_name);
5040         [CCode (cheader_filename = "gio/gio.h")]
5041         [Version (since = "2.38")]
5042         public static bool action_parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
5043         [CCode (cheader_filename = "gio/gio.h")]
5044         [Version (since = "2.38")]
5045         public static string action_print_detailed_name (string action_name, GLib.Variant? target_value);
5046         [CCode (cheader_filename = "gio/gio.h")]
5047         [Version (since = "2.48")]
5048         public static GLib.DtlsClientConnection dtls_client_connection_new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
5049         [CCode (cheader_filename = "gio/gio.h")]
5050         [Version (since = "2.48")]
5051         public static GLib.DtlsServerConnection dtls_server_connection_new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
5052         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_can_be_executable")]
5053         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
5054         public static bool g_content_type_can_be_executable (string type);
5055         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_equals")]
5056         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.equals")]
5057         public static bool g_content_type_equals (string type1, string type2);
5058         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_from_mime_type")]
5059         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
5060         public static string? g_content_type_from_mime_type (string mime_type);
5061         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_description")]
5062         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
5063         public static string g_content_type_get_description (string type);
5064         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_icon")]
5065         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
5066         public static GLib.Icon g_content_type_get_icon (string type);
5067         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_mime_type")]
5068         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
5069         public static string? g_content_type_get_mime_type (string type);
5070         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_guess")]
5071         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.guess")]
5072         public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
5073         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_guess_for_tree")]
5074         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
5075         public static string g_content_type_guess_for_tree (GLib.File root);
5076         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_is_a")]
5077         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
5078         public static bool g_content_type_is_a (string type, string supertype);
5079         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_is_unknown")]
5080         [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
5081         public static bool g_content_type_is_unknown (string type);
5082         [CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
5083         [Version (deprecated_since = "vala-0.16", replacement = "ContentType.list_registered")]
5084         public static GLib.List<string> g_content_types_get_registered ();
5085         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_for_bus_sync")]
5086         [Version (deprecated_since = "vala-0.16", replacement = "BusType.get_address_sync")]
5087         public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
5088         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream")]
5089         [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream")]
5090         public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
5091         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream_finish")]
5092         [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream_finish")]
5093         public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
5094         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream_sync")]
5095         [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream_sync")]
5096         public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
5097         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_encode_gerror")]
5098         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.encode_gerror")]
5099         public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
5100         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_get_remote_error")]
5101         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.get_remote_error")]
5102         public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
5103         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_is_remote_error")]
5104         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.error_is_remote_error")]
5105         public static bool g_dbus_error_is_remote_error (GLib.Error error);
5106         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_new_for_dbus_error")]
5107         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.new_for_dbus_error")]
5108         public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
5109         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_quark")]
5110         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.quark")]
5111         public static GLib.Quark g_dbus_error_quark ();
5112         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_register_error")]
5113         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.register_error")]
5114         public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
5115         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_register_error_domain")]
5116         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.register_error_domain")]
5117         public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
5118         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_set_dbus_error")]
5119         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.set_dbus_error")]
5120         public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
5121         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_set_dbus_error_valist")]
5122         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.set_dbus_error_valist")]
5123         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;
5124         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_strip_remote_error")]
5125         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.strip_remote_error")]
5126         public static bool g_dbus_error_strip_remote_error (GLib.Error error);
5127         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_unregister_error")]
5128         [Version (deprecated_since = "vala-0.16", replacement = "DBusError.unregister_error")]
5129         public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
5130         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_generate_guid")]
5131         [Version (deprecated_since = "vala-0.16", replacement = "DBus.generate_guid")]
5132         public static unowned string g_dbus_generate_guid ();
5133         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_gvalue_to_gvariant")]
5134         [Version (deprecated_since = "vala-0.16", replacement = "DBus.gvalue_to_gvariant")]
5135         public static unowned GLib.Variant g_dbus_gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
5136         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_gvariant_to_gvalue")]
5137         [Version (deprecated_since = "vala-0.16", replacement = "DBus.gvariant_to_gvalue")]
5138         public static void g_dbus_gvariant_to_gvalue (GLib.Variant value, GLib.Value out_gvalue);
5139         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_address")]
5140         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_address")]
5141         public static bool g_dbus_is_address (string str);
5142         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_guid")]
5143         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_guid")]
5144         public static bool g_dbus_is_guid (string str);
5145         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_interface_name")]
5146         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_interface_name")]
5147         public static bool g_dbus_is_interface_name (string str);
5148         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_member_name")]
5149         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_member_name")]
5150         public static bool g_dbus_is_member_name (string str);
5151         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_name")]
5152         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_name")]
5153         public static bool g_dbus_is_name (string str);
5154         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_supported_address")]
5155         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_supported_address")]
5156         public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
5157         [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_unique_name")]
5158         [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_unique_name")]
5159         public static bool g_dbus_is_unique_name (string str);
5160         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_from_errno")]
5161         [Version (deprecated_since = "vala-0.16", replacement = "IOError.from_errno")]
5162         public static unowned GLib.IOError g_io_error_from_errno (int err_no);
5163         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_quark")]
5164         [Version (deprecated_since = "vala-0.16", replacement = "IOError.quark")]
5165         public static GLib.Quark g_io_error_quark ();
5166         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory")]
5167         [Version (deprecated_since = "vala-0.16", replacement = "IOModule.load_all_in_directory")]
5168         public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
5169         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory_with_scope")]
5170         [Version (deprecated_since = "vala-0.16", replacement = "IOModule.load_all_in_directory_with_scope")]
5171         public static unowned GLib.List g_io_modules_load_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
5172         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory")]
5173         [Version (deprecated_since = "vala-0.16", replacement = "IOModule.scan_all_in_directory")]
5174         public static void g_io_modules_scan_all_in_directory (string dirname);
5175         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory_with_scope")]
5176         [Version (deprecated_since = "vala-0.16", replacement = "IOModule.xscan_all_in_directory_with_scope")]
5177         public static void g_io_modules_scan_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
5178         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_cancel_all_jobs")]
5179         [Version (deprecated_since = "vala-0.16", replacement = "IOSchedulerJob.cancel_all")]
5180         public static void g_io_scheduler_cancel_all_jobs ();
5181         [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_push_job")]
5182         [Version (deprecated_since = "vala-0.16", replacement = "IOSchedulerJob.push")]
5183         public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
5184         [CCode (cheader_filename = "gio/gio.h", cname = "g_pollable_source_new")]
5185         [Version (deprecated_since = "vala-0.16", replacement = "PollableSource")]
5186         public static unowned GLib.TimeoutSource g_pollable_source_new (GLib.Object pollable_stream);
5187         [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_error_in_idle")]
5188         [Version (deprecated_since = "vala-0.16", replacement = "report_error_in_idle")]
5189         public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
5190         [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_gerror_in_idle")]
5191         [Version (deprecated_since = "vala-0.16", replacement = "report_gerror_in_idle")]
5192         public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
5193         [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_take_gerror_in_idle")]
5194         [Version (deprecated_since = "vala-0.16", replacement = "report_take_gerror_in_idle")]
5195         public static void g_simple_async_report_take_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
5196         [CCode (cheader_filename = "gio/gio.h", cname = "g_tls_error_quark")]
5197         [Version (deprecated_since = "vala-0.16", replacement = "TlsError.quark")]
5198         public static GLib.Quark g_tls_error_quark ();
5199         [CCode (cheader_filename = "gio/gio.h")]
5200         [Version (since = "2.36")]
5201         public static void networking_init ();
5202         [CCode (cheader_filename = "gio/gio.h")]
5203         [Version (since = "2.34")]
5204         public static ssize_t pollable_stream_read (GLib.InputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
5205         [CCode (cheader_filename = "gio/gio.h")]
5206         [Version (since = "2.34")]
5207         public static ssize_t pollable_stream_write (GLib.OutputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
5208         [CCode (cheader_filename = "gio/gio.h")]
5209         [Version (since = "2.34")]
5210         public static bool pollable_stream_write_all (GLib.OutputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
5211         [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
5212         [Version (since = "2.32")]
5213         public static string[] resources_enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
5214         [CCode (cheader_filename = "gio/gio.h")]
5215         [Version (since = "2.32")]
5216         public static bool resources_get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
5217         [CCode (cheader_filename = "gio/gio.h")]
5218         [Version (since = "2.32")]
5219         public static GLib.Bytes resources_lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
5220         [CCode (cheader_filename = "gio/gio.h")]
5221         [Version (since = "2.32")]
5222         public static GLib.InputStream resources_open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
5223         [CCode (cheader_filename = "gio/gio.h")]
5224         [Version (since = "2.32")]
5225         public static void resources_register (GLib.Resource resource);
5226         [CCode (cheader_filename = "gio/gio.h")]
5227         [Version (since = "2.32")]
5228         public static void resources_unregister (GLib.Resource resource);