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_")]
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);
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 ();
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);
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;
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 [Version (deprecated = true, deprecated_since = "2.58")]
297 public const string HAL_UDI;
298 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_LABEL")]
299 public const string LABEL;
300 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT")]
301 public const string NFS_MOUNT;
302 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE")]
303 public const string UNIX_DEVICE;
304 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UUID")]
305 public const string UUID;
307 [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_monitor_get_type ()")]
308 [Version (since = "2.40")]
309 public class AppInfoMonitor : GLib.Object {
310 [CCode (has_construct_function = false)]
311 protected AppInfoMonitor ();
312 public static GLib.AppInfoMonitor @get ();
313 public signal void changed ();
315 [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_launch_context_get_type ()")]
316 public class AppLaunchContext : GLib.Object {
317 [CCode (has_construct_function = false)]
318 public AppLaunchContext ();
319 public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
320 [CCode (array_length = false, array_null_terminated = true)]
321 [Version (since = "2.32")]
322 public string[] get_environment ();
323 public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
324 [Version (since = "2.32")]
325 public void setenv (string variable, string value);
326 [Version (since = "2.32")]
327 public void unsetenv (string variable);
329 [Version (since = "2.36")]
330 public virtual signal void launch_failed (string startup_notify_id);
331 [Version (since = "2.36")]
332 public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data);
334 [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_get_type ()")]
335 [Version (since = "2.28")]
336 public class Application : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
337 [CCode (has_construct_function = false)]
338 public Application (string? application_id, GLib.ApplicationFlags flags);
339 [Version (since = "2.42")]
340 public void add_main_option (string long_name, char short_name, GLib.OptionFlags flags, GLib.OptionArg arg, string description, string? arg_description);
341 [Version (since = "2.40")]
342 public void add_main_option_entries ([CCode (array_length = false, array_null_terminated = true)] GLib.OptionEntry[] entries);
343 [Version (since = "2.40")]
344 public void add_option_group (owned GLib.OptionGroup group);
346 public virtual void add_platform_data (GLib.VariantBuilder builder);
348 public virtual void after_emit (GLib.Variant platform_data);
350 public virtual void before_emit (GLib.Variant platform_data);
351 [Version (since = "2.44")]
352 public void bind_busy_property (GLib.Object object, string property);
354 public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws GLib.Error;
356 public virtual void dbus_unregister (GLib.DBusConnection connection, string object_path);
357 public unowned string get_application_id ();
358 [Version (since = "2.34")]
359 public unowned GLib.DBusConnection get_dbus_connection ();
360 [Version (since = "2.34")]
361 public unowned string get_dbus_object_path ();
362 [Version (since = "2.32")]
363 public static unowned GLib.Application get_default ();
364 public GLib.ApplicationFlags get_flags ();
365 public uint get_inactivity_timeout ();
366 [Version (since = "2.44")]
367 public bool get_is_busy ();
368 public bool get_is_registered ();
369 public bool get_is_remote ();
370 [Version (since = "2.42")]
371 public unowned string? get_resource_base_path ();
373 public static bool id_is_valid (string application_id);
375 public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
376 [Version (since = "2.38")]
377 public void mark_busy ();
378 [Version (since = "2.32")]
381 public virtual void quit_mainloop ();
382 public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
383 public void release ();
384 public int run ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] string[]? argv = null);
386 public virtual void run_mainloop ();
387 [Version (since = "2.40")]
388 public void send_notification (string? id, GLib.Notification notification);
389 [Version (deprecated = true, deprecated_since = "2.32", since = "2.28")]
390 public void set_action_group (GLib.ActionGroup? action_group);
391 public void set_application_id (string? application_id);
392 [Version (since = "2.32")]
393 public static void set_default (GLib.Application? application);
394 public void set_flags (GLib.ApplicationFlags flags);
395 public void set_inactivity_timeout (uint inactivity_timeout);
396 [Version (since = "2.56")]
397 public void set_option_context_description (string? description);
398 [Version (since = "2.56")]
399 public void set_option_context_parameter_string (string? parameter_string);
400 [Version (since = "2.56")]
401 public void set_option_context_summary (string? summary);
402 [Version (since = "2.42")]
403 public void set_resource_base_path (string? resource_path);
404 [Version (since = "2.44")]
405 public void unbind_busy_property (GLib.Object object, string property);
406 [Version (since = "2.38")]
407 public void unmark_busy ();
408 [Version (since = "2.40")]
409 public void withdraw_notification (string id);
410 public GLib.ActionGroup action_group { set; }
411 public string application_id { get; set construct; }
412 public GLib.ApplicationFlags flags { get; set; }
413 public uint inactivity_timeout { get; set; }
414 [Version (since = "2.44")]
415 public bool is_busy { get; }
416 public bool is_registered { get; }
417 public bool is_remote { get; }
418 public string resource_base_path { get; set; }
420 public virtual signal void activate ();
421 public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
422 [Version (since = "2.40")]
423 public virtual signal int handle_local_options (GLib.VariantDict options);
425 public virtual signal void open ([CCode (array_length_cname = "n_files", array_length_pos = 1.5)] GLib.File[] files, string hint);
426 public virtual signal void shutdown ();
427 public virtual signal void startup ();
429 [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_command_line_get_type ()")]
430 public class ApplicationCommandLine : GLib.Object {
431 [CCode (has_construct_function = false)]
432 protected ApplicationCommandLine ();
433 [Version (since = "2.36")]
434 public GLib.File create_file_for_arg (string arg);
435 [CCode (array_length_pos = 0.1)]
436 [Version (since = "2.28")]
437 public string[] get_arguments ();
438 [Version (since = "2.28")]
439 public unowned string? get_cwd ();
440 [CCode (array_length = false, array_null_terminated = true)]
441 [Version (since = "2.28")]
442 public unowned string[] get_environ ();
443 [Version (since = "2.28")]
444 public int get_exit_status ();
445 [Version (since = "2.28")]
446 public bool get_is_remote ();
447 [Version (since = "2.40")]
448 public unowned GLib.VariantDict get_options_dict ();
449 [Version (since = "2.28")]
450 public GLib.Variant? get_platform_data ();
451 [Version (since = "2.34")]
452 public virtual GLib.InputStream get_stdin ();
453 [Version (since = "2.28")]
454 public unowned string getenv (string name);
456 [Version (since = "2.28")]
457 public void print (string format, ...);
459 public virtual void print_literal (string message);
461 [Version (since = "2.28")]
462 public void printerr (string format, ...);
464 public virtual void printerr_literal (string message);
465 [Version (since = "2.28")]
466 public void set_exit_status (int exit_status);
468 public GLib.Variant arguments { construct; }
469 public bool is_remote { get; }
471 public GLib.Variant options { construct; }
473 public GLib.Variant platform_data { construct; }
475 [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_input_stream_get_type ()")]
476 public class BufferedInputStream : GLib.FilterInputStream, GLib.Seekable {
477 [CCode (has_construct_function = false, type = "GInputStream*")]
478 public BufferedInputStream (GLib.InputStream base_stream);
479 public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
480 public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
481 public size_t get_available ();
482 public size_t get_buffer_size ();
483 public size_t peek ([CCode (array_length_cname = "count", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] buffer, size_t offset = 0);
484 [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
485 public unowned uint8[] peek_buffer ();
486 public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
487 public void set_buffer_size (size_t size);
488 [CCode (has_construct_function = false, type = "GInputStream*")]
489 public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
490 public uint buffer_size { get; set construct; }
492 [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_output_stream_get_type ()")]
493 public class BufferedOutputStream : GLib.FilterOutputStream, GLib.Seekable {
494 [CCode (has_construct_function = false, type = "GOutputStream*")]
495 public BufferedOutputStream (GLib.OutputStream base_stream);
496 public bool get_auto_grow ();
497 public size_t get_buffer_size ();
498 public void set_auto_grow (bool auto_grow);
499 public void set_buffer_size (size_t size);
500 [CCode (has_construct_function = false, type = "GOutputStream*")]
501 public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
502 public bool auto_grow { get; set; }
503 public uint buffer_size { get; set construct; }
505 [CCode (cheader_filename = "gio/gio.h", type_id = "g_bytes_icon_get_type ()")]
506 public class BytesIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
507 [CCode (has_construct_function = false, type = "GIcon*")]
508 [Version (since = "2.38")]
509 public BytesIcon (GLib.Bytes bytes);
510 [Version (since = "2.38")]
511 public unowned GLib.Bytes get_bytes ();
512 public GLib.Bytes bytes { get; construct; }
514 [CCode (cheader_filename = "gio/gio.h", type_id = "g_cancellable_get_type ()")]
515 public class Cancellable : GLib.Object {
516 [CCode (has_construct_function = false)]
517 public Cancellable ();
518 public void cancel ();
519 [Version (since = "2.22")]
520 public ulong connect ([CCode (type = "GCallback")] owned GLib.Func<GLib.Cancellable> callback);
521 [Version (since = "2.22")]
522 public void disconnect (ulong handler_id);
523 public static unowned GLib.Cancellable? get_current ();
524 public int get_fd ();
525 public bool is_cancelled ();
526 [Version (since = "2.22")]
527 public bool make_pollfd (GLib.PollFD pollfd);
528 public void pop_current ();
529 public void push_current ();
530 [Version (since = "2.22")]
531 public void release_fd ();
532 public void reset ();
533 public bool set_error_if_cancelled () throws GLib.IOError;
534 [Version (since = "2.28")]
535 public GLib.CancellableSource source_new ();
536 public virtual signal void cancelled ();
538 [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
540 public class CancellableSource : GLib.Source {
541 [CCode (cname = "g_source_set_callback")]
542 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.CancellableSourceFunc func);
544 [CCode (cheader_filename = "gio/gio.h", type_id = "g_charset_converter_get_type ()")]
545 public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
546 [CCode (has_construct_function = false)]
547 [Version (since = "2.24")]
548 public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
549 [Version (since = "2.24")]
550 public uint get_num_fallbacks ();
551 [Version (since = "2.24")]
552 public bool get_use_fallback ();
553 [Version (since = "2.24")]
554 public void set_use_fallback (bool use_fallback);
556 public string from_charset { owned get; construct; }
558 public string to_charset { owned get; construct; }
559 public bool use_fallback { get; set construct; }
561 [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_input_stream_get_type ()")]
562 public class ConverterInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
563 [CCode (has_construct_function = false, type = "GInputStream*")]
564 public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
565 [Version (since = "2.24")]
566 public unowned GLib.Converter get_converter ();
567 public GLib.Converter converter { get; construct; }
569 [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_output_stream_get_type ()")]
570 public class ConverterOutputStream : GLib.FilterOutputStream, GLib.PollableOutputStream {
571 [CCode (has_construct_function = false, type = "GOutputStream*")]
572 public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
573 [Version (since = "2.24")]
574 public unowned GLib.Converter get_converter ();
575 public GLib.Converter converter { get; construct; }
577 [CCode (cheader_filename = "gio/gio.h", type_id = "g_credentials_get_type ()")]
578 [Version (since = "2.26")]
579 public class Credentials : GLib.Object {
580 [CCode (has_construct_function = false)]
581 public Credentials ();
582 public void* get_native (GLib.CredentialsType native_type);
583 [Version (since = "2.36")]
584 public int get_unix_pid () throws GLib.Error;
585 public uint get_unix_user () throws GLib.Error;
586 public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
587 public void set_native (GLib.CredentialsType native_type, void* native);
588 public bool set_unix_user (uint uid) throws GLib.Error;
589 public string to_string ();
591 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_action_group_get_type ()")]
592 public class DBusActionGroup : GLib.Object, GLib.ActionGroup, GLib.RemoteActionGroup {
593 [CCode (has_construct_function = false)]
594 protected DBusActionGroup ();
595 [Version (since = "2.32")]
596 public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string? bus_name, string object_path);
598 [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")]
600 [Version (since = "2.26")]
601 public class DBusAnnotationInfo {
602 [CCode (array_length = false, array_null_terminated = true)]
603 public GLib.DBusAnnotationInfo[] annotations;
605 public int ref_count;
607 public unowned GLib.DBusAnnotationInfo @ref ();
608 public void unref ();
610 [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")]
612 [Version (since = "2.26")]
613 public class DBusArgInfo {
614 [CCode (array_length = false, array_null_terminated = true)]
615 public GLib.DBusAnnotationInfo[] annotations;
617 public int ref_count;
618 public string signature;
619 public unowned GLib.DBusArgInfo @ref ();
620 public void unref ();
622 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_auth_observer_get_type ()")]
623 [Version (since = "2.26")]
624 public class DBusAuthObserver : GLib.Object {
625 [CCode (has_construct_function = false)]
626 public DBusAuthObserver ();
628 [Version (since = "2.34")]
629 public signal bool allow_mechanism (string mechanism);
630 public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials? credentials);
632 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_connection_get_type ()")]
633 [Version (since = "2.26")]
634 public class DBusConnection : GLib.Object, GLib.AsyncInitable, GLib.Initable {
635 [CCode (cname = "g_dbus_connection_new", has_construct_function = false)]
636 public async DBusConnection (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
637 public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
638 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;
639 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;
640 [Version (since = "2.30")]
641 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;
642 [Version (since = "2.30")]
643 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;
644 public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
645 public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
646 public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error;
647 [Version (since = "2.32")]
648 public uint export_action_group (string object_path, GLib.ActionGroup action_group) throws GLib.Error;
649 [Version (since = "2.32")]
650 public uint export_menu_model (string object_path, GLib.MenuModel menu) throws GLib.Error;
651 public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
652 public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
653 [CCode (cname = "g_dbus_connection_new_for_address", has_construct_function = false)]
654 public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
655 [CCode (has_construct_function = false)]
656 public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
657 public GLib.DBusCapabilityFlags get_capabilities ();
658 public bool get_exit_on_close ();
659 public unowned string get_guid ();
660 [Version (since = "2.34")]
661 public uint32 get_last_serial ();
662 public unowned GLib.Credentials? get_peer_credentials ();
663 public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
664 public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
665 public unowned GLib.IOStream get_stream ();
666 public unowned string get_unique_name ();
667 public bool is_closed ();
668 [CCode (cname = "g_dbus_connection_new", finish_function = "g_dbus_connection_new_finish")]
669 [Version (deprecated_since = "vala-0.36", replacement = "DBusConnection")]
670 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;
671 [CCode (cname = "g_dbus_connection_new_for_address", finish_function = "g_dbus_connection_new_for_address_finish")]
672 [Version (deprecated_since = "vala-0.36", replacement = "DBusConnection.for_address")]
673 public static async GLib.DBusConnection new_for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
674 public uint register_object<T> (string object_path, T object) throws GLib.IOError;
675 [Version (since = "2.46")]
676 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;
677 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;
678 public void remove_filter (uint filter_id);
679 public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
680 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;
681 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;
682 public void set_exit_on_close (bool exit_on_close);
683 public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
684 public void signal_unsubscribe (uint subscription_id);
685 public void start_message_processing ();
686 [CCode (has_construct_function = false)]
687 public DBusConnection.sync (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
688 [Version (since = "2.32")]
689 public void unexport_action_group (uint export_id);
690 [Version (since = "2.32")]
691 public void unexport_menu_model (uint export_id);
692 public bool unregister_object (uint registration_id);
693 public bool unregister_subtree (uint registration_id);
695 public string address { construct; }
697 public GLib.DBusAuthObserver authentication_observer { construct; }
698 public GLib.DBusCapabilityFlags capabilities { get; }
700 public bool closed { get; }
701 public bool exit_on_close { get; set; }
703 public GLib.DBusConnectionFlags flags { construct; }
704 public string guid { get; construct; }
705 public GLib.IOStream stream { get; construct; }
706 public string unique_name { get; }
707 [CCode (cname = "closed")]
708 public signal void on_closed (bool remote_peer_vanished, GLib.Error? error);
710 [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")]
712 [Version (since = "2.26")]
713 public class DBusInterfaceInfo {
714 [CCode (array_length = false, array_null_terminated = true)]
715 public GLib.DBusAnnotationInfo[] annotations;
716 [CCode (array_length = false, array_null_terminated = true)]
717 public GLib.DBusMethodInfo[] methods;
719 [CCode (array_length = false, array_null_terminated = true)]
720 public GLib.DBusPropertyInfo[] properties;
721 public int ref_count;
722 [CCode (array_length = false, array_null_terminated = true)]
723 public GLib.DBusSignalInfo[] signals;
724 [Version (since = "2.30")]
725 public void cache_build ();
726 [Version (since = "2.30")]
727 public void cache_release ();
728 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
729 public unowned GLib.DBusMethodInfo lookup_method (string name);
730 public unowned GLib.DBusPropertyInfo lookup_property (string name);
731 public unowned GLib.DBusSignalInfo lookup_signal (string name);
732 public unowned GLib.DBusInterfaceInfo @ref ();
733 public void unref ();
735 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_skeleton_get_type ()")]
736 [Version (since = "2.30")]
737 public abstract class DBusInterfaceSkeleton : GLib.Object, GLib.DBusInterface {
738 [CCode (has_construct_function = false)]
739 protected DBusInterfaceSkeleton ();
740 public bool export (GLib.DBusConnection connection, string object_path) throws GLib.Error;
741 public virtual void flush ();
742 public unowned GLib.DBusConnection get_connection ();
743 [Version (since = "2.32")]
744 public GLib.List<GLib.DBusConnection> get_connections ();
745 public GLib.DBusInterfaceSkeletonFlags get_flags ();
746 public virtual unowned GLib.DBusInterfaceInfo get_info ();
747 public unowned string get_object_path ();
748 public virtual GLib.Variant get_properties ();
749 public virtual GLib.DBusInterfaceVTable? get_vtable ();
750 [Version (since = "2.32")]
751 public bool has_connection (GLib.DBusConnection connection);
752 public void set_flags (GLib.DBusInterfaceSkeletonFlags flags);
753 public void unexport ();
754 [Version (since = "2.32")]
755 public void unexport_from_connection (GLib.DBusConnection connection);
757 public GLib.DBusInterfaceSkeletonFlags g_flags { get; set; }
758 public virtual signal bool g_authorize_method (GLib.DBusMethodInvocation invocation);
760 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_menu_model_get_type ()")]
761 public class DBusMenuModel : GLib.MenuModel {
762 [CCode (has_construct_function = false)]
763 protected DBusMenuModel ();
764 [Version (since = "2.32")]
765 public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string? bus_name, string object_path);
767 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
768 [Version (since = "2.26")]
769 public class DBusMessage : GLib.Object {
770 [CCode (has_construct_function = false)]
771 public DBusMessage ();
772 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;
773 public GLib.DBusMessage copy () throws GLib.Error;
774 [CCode (has_construct_function = false)]
775 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;
776 public unowned string get_arg0 ();
777 public unowned GLib.Variant get_body ();
778 public GLib.DBusMessageByteOrder get_byte_order ();
779 public unowned string get_destination ();
780 public unowned string get_error_name ();
781 public GLib.DBusMessageFlags get_flags ();
782 public GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
783 [CCode (array_length = false, array_null_terminated = true)]
784 public uchar[] get_header_fields ();
785 public unowned string get_interface ();
786 public bool get_locked ();
787 public unowned string get_member ();
788 public GLib.DBusMessageType get_message_type ();
789 public uint32 get_num_unix_fds ();
790 public unowned string get_path ();
791 public uint32 get_reply_serial ();
792 public unowned string get_sender ();
793 public uint32 get_serial ();
794 public unowned string get_signature ();
795 public unowned GLib.UnixFDList get_unix_fd_list ();
796 public void @lock ();
797 [CCode (has_construct_function = false)]
798 public DBusMessage.method_call (string? name, string path, string? interface_, string method);
799 [CCode (has_construct_function = false)]
801 public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format, ...);
802 [CCode (has_construct_function = false)]
803 public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
804 [CCode (has_construct_function = false)]
805 public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, va_list var_args);
806 [CCode (has_construct_function = false)]
807 public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
808 public string print (uint indent = 0);
809 public void set_body (GLib.Variant body);
810 public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
811 public void set_destination (string value);
812 public void set_error_name (string value);
813 public void set_flags (GLib.DBusMessageFlags flags);
814 public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant? value);
815 public void set_interface (string value);
816 public void set_member (string value);
817 public void set_message_type (GLib.DBusMessageType type);
818 public void set_num_unix_fds (uint32 value);
819 public void set_path (string value);
820 public void set_reply_serial (uint32 value);
821 public void set_sender (string value);
822 public void set_serial (uint32 serial);
823 public void set_signature (string value);
824 public void set_unix_fd_list (GLib.UnixFDList? fd_list);
825 [CCode (has_construct_function = false)]
826 public DBusMessage.@signal (string path, string interface_, string @signal);
827 [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
828 public uint8[] to_blob (GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
829 public bool to_gerror () throws GLib.Error;
830 public bool locked { get; }
832 [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")]
834 [Version (since = "2.26")]
835 public class DBusMethodInfo {
836 [CCode (array_length = false, array_null_terminated = true)]
837 public GLib.DBusAnnotationInfo[] annotations;
838 [CCode (array_length = false, array_null_terminated = true)]
839 public GLib.DBusArgInfo[] in_args;
841 [CCode (array_length = false, array_null_terminated = true)]
842 public GLib.DBusArgInfo[] out_args;
843 public int ref_count;
844 public unowned GLib.DBusMethodInfo @ref ();
845 public void unref ();
847 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_method_invocation_get_type ()")]
848 [Version (since = "2.26")]
849 public class DBusMethodInvocation : GLib.Object {
850 [CCode (has_construct_function = false)]
851 protected DBusMethodInvocation ();
852 public unowned GLib.DBusConnection get_connection ();
853 public unowned string get_interface_name ();
854 public unowned GLib.DBusMessage get_message ();
855 public unowned GLib.DBusMethodInfo get_method_info ();
856 public unowned string get_method_name ();
857 public unowned string get_object_path ();
858 public unowned GLib.Variant get_parameters ();
859 [Version (since = "2.38")]
860 public unowned GLib.DBusPropertyInfo get_property_info ();
861 public unowned string get_sender ();
862 public void* get_user_data ();
863 public void return_dbus_error (string error_name, string error_message);
864 public void return_error (GLib.Quark domain, int code, string format, ...);
865 public void return_error_literal (GLib.Quark domain, int code, string message);
866 public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
867 public void return_gerror (GLib.Error error);
868 public void return_value (GLib.Variant? parameters);
869 [Version (since = "2.30")]
870 public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
871 [Version (since = "2.30")]
872 public void take_error (owned GLib.Error error);
874 [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")]
876 [Version (since = "2.26")]
877 public class DBusNodeInfo {
878 [CCode (array_length = false, array_null_terminated = true)]
879 public GLib.DBusAnnotationInfo[] annotations;
880 [CCode (array_length = false, array_null_terminated = true)]
881 public GLib.DBusInterfaceInfo[] interfaces;
882 [CCode (array_length = false, array_null_terminated = true)]
883 public GLib.DBusNodeInfo[] nodes;
885 public int ref_count;
886 [CCode (has_construct_function = false)]
887 public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
888 public void generate_xml (uint indent, GLib.StringBuilder string_builder);
889 public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
890 public unowned GLib.DBusNodeInfo @ref ();
891 public void unref ();
893 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
894 [Version (since = "2.30")]
895 public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable {
896 [CCode (cname = "g_dbus_object_manager_client_new", has_construct_function = false)]
897 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;
898 [CCode (cname = "g_dbus_object_manager_client_new_for_bus", has_construct_function = false)]
899 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;
900 [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
901 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;
902 public unowned GLib.DBusConnection get_connection ();
903 public GLib.DBusObjectManagerClientFlags get_flags ();
904 public unowned string get_name ();
905 public string? get_name_owner ();
906 [CCode (cname = "g_dbus_object_manager_client_new", finish_function = "g_dbus_object_manager_client_new_finish")]
907 [Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient")]
908 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;
909 [CCode (cname = "g_dbus_object_manager_client_new_for_bus", finish_function = "g_dbus_object_manager_client_new_for_bus_finish")]
910 [Version (deprecated_since = "vala-0.36", replacement = "DBusObjectManagerClient.for_bus")]
911 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;
912 [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
913 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;
915 public GLib.BusType bus_type { construct; }
916 public GLib.DBusConnection connection { get; construct; }
917 public GLib.DBusObjectManagerClientFlags flags { get; construct; }
919 public void* get_proxy_type_destroy_notify { get; construct; }
921 public void* get_proxy_type_func { get; construct; }
923 public void* get_proxy_type_user_data { get; construct; }
924 public string name { get; construct; }
925 public string? name_owner { owned get; }
927 public string object_path { owned get; construct; }
928 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);
929 public virtual signal void interface_proxy_signal (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, string sender_name, string signal_name, GLib.Variant parameters);
931 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_server_get_type ()")]
932 [Version (since = "2.30")]
933 public class DBusObjectManagerServer : GLib.Object, GLib.DBusObjectManager {
934 [CCode (has_construct_function = false)]
935 public DBusObjectManagerServer (string object_path);
936 public void export (GLib.DBusObjectSkeleton object);
937 public void export_uniquely (GLib.DBusObjectSkeleton object);
938 public GLib.DBusConnection get_connection ();
939 [Version (since = "2.34")]
940 public bool is_exported (GLib.DBusObjectSkeleton object);
941 public void set_connection (GLib.DBusConnection? connection);
942 public bool unexport (string object_path);
943 public GLib.DBusConnection connection { owned get; set; }
945 public string object_path { owned get; construct; }
947 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_proxy_get_type ()")]
948 [Version (since = "2.30")]
949 public class DBusObjectProxy : GLib.Object, GLib.DBusObject {
950 [CCode (has_construct_function = false)]
951 public DBusObjectProxy (GLib.DBusConnection connection, string object_path);
952 public unowned GLib.DBusConnection get_connection ();
954 public GLib.DBusConnection g_connection { owned get; construct; }
956 public string g_object_path { owned get; construct; }
958 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_skeleton_get_type ()")]
959 [Version (since = "2.30")]
960 public class DBusObjectSkeleton : GLib.Object, GLib.DBusObject {
961 [CCode (has_construct_function = false)]
962 public DBusObjectSkeleton (string object_path);
963 public void add_interface (GLib.DBusInterfaceSkeleton interface_);
964 public void flush ();
965 public void remove_interface (GLib.DBusInterfaceSkeleton interface_);
966 public void remove_interface_by_name (string interface_name);
967 public void set_object_path (string object_path);
969 public string g_object_path { owned get; set construct; }
970 public virtual signal bool authorize_method (GLib.DBusInterfaceSkeleton interface_, GLib.DBusMethodInvocation invocation);
972 [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")]
974 [Version (since = "2.26")]
975 public class DBusPropertyInfo {
976 [CCode (array_length = false, array_null_terminated = true)]
977 public GLib.DBusAnnotationInfo[] annotations;
978 public GLib.DBusPropertyInfoFlags flags;
980 public int ref_count;
981 public string signature;
982 public unowned GLib.DBusPropertyInfo @ref ();
983 public void unref ();
985 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_proxy_get_type ()")]
986 [Version (since = "2.26")]
987 public class DBusProxy : GLib.Object, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
988 [CCode (cname = "g_dbus_proxy_new", has_construct_function = false)]
989 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;
990 public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
991 public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
992 [Version (since = "2.30")]
993 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;
994 [Version (since = "2.30")]
995 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;
996 [CCode (cname = "g_dbus_proxy_new_for_bus", finish_function = "g_dbus_proxy_new_for_bus_finish")]
997 [Version (deprecated_since = "vala-0.36", replacement = "DBusProxy.for_bus")]
998 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;
999 [CCode (cname = "g_dbus_proxy_new_for_bus", has_construct_function = false)]
1000 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;
1001 [CCode (has_construct_function = false)]
1002 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;
1003 public GLib.Variant? get_cached_property (string property_name);
1004 [CCode (array_length = false, array_null_terminated = true)]
1005 public string[]? get_cached_property_names ();
1006 public unowned GLib.DBusConnection get_connection ();
1007 public int get_default_timeout ();
1008 public GLib.DBusProxyFlags get_flags ();
1009 public unowned GLib.DBusInterfaceInfo? get_interface_info ();
1010 public unowned string get_interface_name ();
1011 public unowned string get_name ();
1012 public string? get_name_owner ();
1013 public unowned string get_object_path ();
1014 [CCode (cname = "g_dbus_proxy_new", finish_function = "g_dbus_proxy_new_finish")]
1015 [Version (deprecated_since = "vala-0.36", replacement = "DBusProxy")]
1016 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;
1017 public void set_cached_property (string property_name, GLib.Variant? value);
1018 public void set_default_timeout (int timeout_msec);
1019 public void set_interface_info (GLib.DBusInterfaceInfo? info);
1020 [CCode (has_construct_function = false)]
1021 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;
1023 public GLib.BusType g_bus_type { construct; }
1025 public GLib.DBusConnection g_connection { owned get; construct; }
1027 public int g_default_timeout { get; set construct; }
1029 public GLib.DBusProxyFlags g_flags { get; construct; }
1031 public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
1033 public string g_interface_name { owned get; construct; }
1035 public string g_name { owned get; construct; }
1037 public string g_name_owner { owned get; }
1039 public string g_object_path { owned get; construct; }
1040 public virtual signal void g_properties_changed (GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
1041 public virtual signal void g_signal (string? sender_name, string signal_name, GLib.Variant parameters);
1043 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_server_get_type ()")]
1044 [Version (since = "2.26")]
1045 public class DBusServer : GLib.Object, GLib.Initable {
1046 [CCode (has_construct_function = false)]
1047 protected DBusServer ();
1048 public unowned string get_client_address ();
1049 public GLib.DBusServerFlags get_flags ();
1050 public unowned string get_guid ();
1051 public bool is_active ();
1052 public void start ();
1053 public void stop ();
1054 [CCode (has_construct_function = false)]
1055 public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
1057 public bool active { get; }
1059 public string address { owned get; construct; }
1061 public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
1062 public string client_address { get; }
1063 public GLib.DBusServerFlags flags { get; construct; }
1064 public string guid { get; construct; }
1065 public signal bool new_connection (GLib.DBusConnection connection);
1067 [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")]
1069 [Version (since = "2.26")]
1070 public class DBusSignalInfo {
1071 [CCode (array_length = false, array_null_terminated = true)]
1072 public GLib.DBusAnnotationInfo[] annotations;
1073 [CCode (array_length = false, array_null_terminated = true)]
1074 public GLib.DBusArgInfo[] args;
1076 public int ref_count;
1077 public unowned GLib.DBusSignalInfo @ref ();
1078 public void unref ();
1080 [CCode (cheader_filename = "gio/gio.h", type_id = "g_data_input_stream_get_type ()")]
1081 public class DataInputStream : GLib.BufferedInputStream, GLib.Seekable {
1082 [CCode (has_construct_function = false)]
1083 public DataInputStream (GLib.InputStream base_stream);
1084 public GLib.DataStreamByteOrder get_byte_order ();
1085 public GLib.DataStreamNewlineType get_newline_type ();
1086 public uint8 read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1087 public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1088 public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1089 public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1090 [CCode (array_length = false, array_null_terminated = true)]
1091 public string? read_line (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1092 [CCode (array_length = false, array_null_terminated = true)]
1093 [Version (since = "2.20")]
1094 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;
1095 [Version (since = "2.30")]
1096 public string? read_line_utf8 (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1097 [CCode (cname = "g_data_input_stream_read_line_async", finish_function = "g_data_input_stream_read_line_finish_utf8")]
1098 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;
1099 public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1100 public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1101 public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1102 [Version (deprecated = true, deprecated_since = "2.56")]
1103 public string read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1104 [Version (deprecated = true, deprecated_since = "2.56", since = "2.20")]
1105 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;
1106 [Version (since = "2.26")]
1107 public string read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1108 [Version (since = "2.26")]
1109 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;
1110 public void set_byte_order (GLib.DataStreamByteOrder order);
1111 public void set_newline_type (GLib.DataStreamNewlineType type);
1112 public GLib.DataStreamByteOrder byte_order { get; set; }
1113 public GLib.DataStreamNewlineType newline_type { get; set; }
1115 [CCode (cheader_filename = "gio/gio.h", type_id = "g_data_output_stream_get_type ()")]
1116 public class DataOutputStream : GLib.FilterOutputStream, GLib.Seekable {
1117 [CCode (has_construct_function = false)]
1118 public DataOutputStream (GLib.OutputStream base_stream);
1119 public GLib.DataStreamByteOrder get_byte_order ();
1120 public bool put_byte (uint8 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1121 public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1122 public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1123 public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1124 public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1125 public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1126 public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1127 public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1128 public void set_byte_order (GLib.DataStreamByteOrder order);
1129 public GLib.DataStreamByteOrder byte_order { get; set; }
1131 [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblem_get_type ()")]
1132 public class Emblem : GLib.Object, GLib.Icon {
1133 [CCode (has_construct_function = false)]
1134 [Version (since = "2.18")]
1135 public Emblem (GLib.Icon icon);
1136 [Version (since = "2.18")]
1137 public unowned GLib.Icon get_icon ();
1138 [Version (since = "2.18")]
1139 public GLib.EmblemOrigin get_origin ();
1140 [CCode (has_construct_function = false)]
1141 [Version (since = "2.18")]
1142 public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
1143 public GLib.Object icon { get; construct; }
1144 public GLib.EmblemOrigin origin { get; construct; }
1146 [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblemed_icon_get_type ()")]
1147 public class EmblemedIcon : GLib.Object, GLib.Icon {
1148 [CCode (has_construct_function = false, type = "GIcon*")]
1149 [Version (since = "2.18")]
1150 public EmblemedIcon (GLib.Icon icon, GLib.Emblem? emblem);
1151 [Version (since = "2.18")]
1152 public void add_emblem (GLib.Emblem emblem);
1153 [Version (since = "2.28")]
1154 public void clear_emblems ();
1155 [Version (since = "2.18")]
1156 public unowned GLib.List<GLib.Emblem> get_emblems ();
1157 [Version (since = "2.18")]
1158 public unowned GLib.Icon get_icon ();
1160 public GLib.Icon gicon { owned get; construct; }
1162 [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")]
1164 public class FileAttributeInfoList {
1165 [CCode (array_length_cname = "n_infos")]
1166 public GLib.FileAttributeInfo[] infos;
1168 [CCode (has_construct_function = false)]
1169 public FileAttributeInfoList ();
1170 public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
1171 public GLib.FileAttributeInfoList dup ();
1172 public unowned GLib.FileAttributeInfo? lookup (string name);
1173 public unowned GLib.FileAttributeInfoList @ref ();
1174 public void unref ();
1176 [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")]
1178 public class FileAttributeMatcher {
1179 [CCode (has_construct_function = false)]
1180 public FileAttributeMatcher (string attributes);
1181 public bool enumerate_namespace (string ns);
1182 public unowned string enumerate_next ();
1183 public bool matches (string attribute);
1184 public bool matches_only (string attribute);
1185 public unowned GLib.FileAttributeMatcher @ref ();
1186 public GLib.FileAttributeMatcher subtract (GLib.FileAttributeMatcher subtract);
1187 [Version (since = "2.32")]
1188 public string to_string ();
1189 public void unref ();
1191 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_enumerator_get_type ()")]
1192 public class FileEnumerator : GLib.Object {
1193 [CCode (has_construct_function = false)]
1194 protected FileEnumerator ();
1195 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
1196 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1198 public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
1199 [Version (since = "2.36")]
1200 public GLib.File get_child (GLib.FileInfo info);
1201 [Version (since = "2.18")]
1202 public unowned GLib.File get_container ();
1203 public bool has_pending ();
1204 public bool is_closed ();
1205 [Version (since = "2.44")]
1206 public bool iterate (out unowned GLib.FileInfo out_info, out unowned GLib.File out_child, GLib.Cancellable? cancellable = null) throws GLib.Error;
1207 public virtual GLib.FileInfo? next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
1208 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;
1209 public void set_pending (bool pending);
1211 public GLib.File container { construct; }
1213 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_io_stream_get_type ()")]
1214 public class FileIOStream : GLib.IOStream, GLib.Seekable {
1215 [CCode (has_construct_function = false)]
1216 protected FileIOStream ();
1218 public virtual bool can_seek ();
1220 public virtual bool can_truncate ();
1221 [Version (since = "2.22")]
1222 public virtual string get_etag ();
1223 [Version (since = "2.22")]
1224 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1225 [Version (since = "2.22")]
1226 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1228 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1230 public virtual int64 tell ();
1232 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1234 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_icon_get_type ()")]
1235 public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
1236 [CCode (has_construct_function = false, type = "GIcon*")]
1237 public FileIcon (GLib.File file);
1238 public unowned GLib.File get_file ();
1239 public GLib.File file { get; construct; }
1241 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_info_get_type ()")]
1242 public class FileInfo : GLib.Object {
1243 [CCode (has_construct_function = false)]
1245 public void clear_status ();
1246 public void copy_into (GLib.FileInfo dest_info);
1247 public GLib.FileInfo dup ();
1248 public string get_attribute_as_string (string attribute);
1249 public bool get_attribute_boolean (string attribute);
1250 public unowned string get_attribute_byte_string (string attribute);
1251 public bool get_attribute_data (string attribute, out GLib.FileAttributeType type, out void* value_pp, out GLib.FileAttributeStatus status);
1252 public int32 get_attribute_int32 (string attribute);
1253 public int64 get_attribute_int64 (string attribute);
1254 public unowned GLib.Object get_attribute_object (string attribute);
1255 public GLib.FileAttributeStatus get_attribute_status (string attribute);
1256 public unowned string get_attribute_string (string attribute);
1257 [CCode (array_length = false, array_null_terminated = true)]
1258 [Version (since = "2.22")]
1259 public unowned string[] get_attribute_stringv (string attribute);
1260 public GLib.FileAttributeType get_attribute_type (string attribute);
1261 public uint32 get_attribute_uint32 (string attribute);
1262 public uint64 get_attribute_uint64 (string attribute);
1263 public unowned string get_content_type ();
1264 [Version (since = "2.36")]
1265 public GLib.DateTime get_deletion_date ();
1266 public unowned string get_display_name ();
1267 public unowned string get_edit_name ();
1268 public unowned string get_etag ();
1269 public GLib.FileType get_file_type ();
1270 public unowned GLib.Icon get_icon ();
1271 public bool get_is_backup ();
1272 public bool get_is_hidden ();
1273 public bool get_is_symlink ();
1274 public GLib.TimeVal get_modification_time ();
1275 public unowned string get_name ();
1276 public int64 get_size ();
1277 public int32 get_sort_order ();
1278 [Version (since = "2.34")]
1279 public unowned GLib.Icon get_symbolic_icon ();
1280 public unowned string get_symlink_target ();
1281 public bool has_attribute (string attribute);
1282 [Version (since = "2.22")]
1283 public bool has_namespace (string name_space);
1284 [CCode (array_length = false, array_null_terminated = true)]
1285 public string[]? list_attributes (string? name_space);
1286 public void remove_attribute (string attribute);
1287 public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
1288 public void set_attribute_boolean (string attribute, bool attr_value);
1289 public void set_attribute_byte_string (string attribute, string attr_value);
1290 public void set_attribute_int32 (string attribute, int32 attr_value);
1291 public void set_attribute_int64 (string attribute, int64 attr_value);
1292 public void set_attribute_mask (GLib.FileAttributeMatcher mask);
1293 public void set_attribute_object (string attribute, GLib.Object attr_value);
1294 [Version (since = "2.22")]
1295 public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
1296 public void set_attribute_string (string attribute, string attr_value);
1297 public void set_attribute_stringv (string attribute, [CCode (array_length = false)] string[] attr_value);
1298 public void set_attribute_uint32 (string attribute, uint32 attr_value);
1299 public void set_attribute_uint64 (string attribute, uint64 attr_value);
1300 public void set_content_type (string content_type);
1301 public void set_display_name (string display_name);
1302 public void set_edit_name (string edit_name);
1303 public void set_file_type (GLib.FileType type);
1304 public void set_icon (GLib.Icon icon);
1305 public void set_is_hidden (bool is_hidden);
1306 public void set_is_symlink (bool is_symlink);
1307 public void set_modification_time (GLib.TimeVal mtime);
1308 public void set_name (string name);
1309 public void set_size (int64 size);
1310 public void set_sort_order (int32 sort_order);
1311 [Version (since = "2.34")]
1312 public void set_symbolic_icon (GLib.Icon icon);
1313 public void set_symlink_target (string symlink_target);
1314 public void unset_attribute_mask ();
1316 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_input_stream_get_type ()")]
1317 public class FileInputStream : GLib.InputStream, GLib.Seekable {
1318 [CCode (has_construct_function = false)]
1319 protected FileInputStream ();
1321 public virtual bool can_seek ();
1322 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1323 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1325 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1327 public virtual int64 tell ();
1329 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_monitor_get_type ()")]
1330 public abstract class FileMonitor : GLib.Object {
1331 [CCode (has_construct_function = false)]
1332 protected FileMonitor ();
1333 public virtual bool cancel ();
1334 public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
1335 public bool is_cancelled ();
1336 public void set_rate_limit (int limit_msecs);
1338 public bool cancelled { get; }
1339 [Version (deprecated_since = "2.46")]
1340 public GLib.MainContext context { construct; }
1342 public int rate_limit { get; set; }
1343 public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
1345 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_output_stream_get_type ()")]
1346 public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
1347 [CCode (has_construct_function = false)]
1348 protected FileOutputStream ();
1350 public virtual bool can_seek ();
1352 public virtual bool can_truncate ();
1353 public virtual string get_etag ();
1354 public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1355 public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1357 public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
1359 public virtual int64 tell ();
1361 public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1363 [CCode (cheader_filename = "gio/gio.h", type_id = "g_filename_completer_get_type ()")]
1364 public class FilenameCompleter : GLib.Object {
1365 [CCode (has_construct_function = false)]
1366 public FilenameCompleter ();
1367 public string get_completion_suffix (string initial_text);
1368 [CCode (array_length = false, array_null_terminated = true)]
1369 public string[] get_completions (string initial_text);
1370 public void set_dirs_only (bool dirs_only);
1371 public virtual signal void got_completion_data ();
1373 [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_input_stream_get_type ()")]
1374 public abstract class FilterInputStream : GLib.InputStream {
1375 [CCode (has_construct_function = false)]
1376 protected FilterInputStream ();
1377 public unowned GLib.InputStream get_base_stream ();
1378 public bool get_close_base_stream ();
1379 public void set_close_base_stream (bool close_base);
1380 public GLib.InputStream base_stream { get; construct; }
1381 public bool close_base_stream { get; set construct; }
1383 [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_output_stream_get_type ()")]
1384 public abstract class FilterOutputStream : GLib.OutputStream {
1385 [CCode (has_construct_function = false)]
1386 protected FilterOutputStream ();
1387 public unowned GLib.OutputStream get_base_stream ();
1388 public bool get_close_base_stream ();
1389 public void set_close_base_stream (bool close_base);
1390 public GLib.OutputStream base_stream { get; construct; }
1391 public bool close_base_stream { get; construct; }
1393 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1395 public class IOExtension {
1396 public unowned string get_name ();
1397 public int get_priority ();
1398 public GLib.Type get_type ();
1400 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1402 public class IOExtensionPoint {
1403 [CCode (cheader_filename = "gio/gio.h", cname = "G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME")]
1404 public const string DESKTOP_APP_INFO_LOOKUP;
1405 [CCode (cheader_filename = "gio/gio.h", cname = "G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
1406 public const string NATIVE_VOLUME_MONITOR;
1407 [CCode (cheader_filename = "gio/gio.h", cname = "G_NETWORK_MONITOR_EXTENSION_POINT_NAME")]
1408 [Version (since = "2.30")]
1409 public const string NETWORK_MONITOR;
1410 [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_EXTENSION_POINT_NAME")]
1411 [Version (since = "2.26")]
1412 public const string PROXY;
1413 [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_RESOLVER_EXTENSION_POINT_NAME")]
1414 public const string PROXY_RESOLVER;
1415 [CCode (cheader_filename = "gio/gio.h", cname = "G_SETTINGS_BACKEND_EXTENSION_POINT_NAME")]
1416 public const string SETTINGS_BACKEND;
1417 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_BACKEND_EXTENSION_POINT_NAME")]
1418 public const string TLS_BACKEND;
1419 [CCode (cheader_filename = "gio/gio.h", cname = "G_VFS_EXTENSION_POINT_NAME")]
1420 public const string VFS;
1421 [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
1422 public const string VOLUME_MONITOR;
1423 public unowned GLib.IOExtension get_extension_by_name (string name);
1424 public unowned GLib.List<GLib.IOExtension> get_extensions ();
1425 public GLib.Type get_required_type ();
1426 [CCode (cheader_filename = "gio/gio.h")]
1427 public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
1428 [CCode (cheader_filename = "gio/gio.h")]
1429 public static unowned GLib.IOExtensionPoint lookup (string name);
1430 [CCode (cheader_filename = "gio/gio.h")]
1431 public static unowned GLib.IOExtensionPoint register (string name);
1432 public void set_required_type (GLib.Type type);
1434 [CCode (cheader_filename = "gio/gio.h", type_id = "g_io_module_get_type ()")]
1435 public class IOModule : GLib.TypeModule, GLib.TypePlugin {
1436 [CCode (has_construct_function = false)]
1437 public IOModule (string filename);
1438 public void load ();
1439 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory")]
1440 public static GLib.List<GLib.IOModule> load_all_in_directory (string dirname);
1441 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory_with_scope")]
1442 [Version (since = "2.30")]
1443 public static GLib.List<GLib.IOModule> load_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
1444 [CCode (array_length = false, array_null_terminated = true)]
1445 [Version (since = "2.24")]
1446 public static string[] query ();
1447 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory")]
1448 [Version (since = "2.24")]
1449 public static void scan_all_in_directory (string dirname);
1450 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory_with_scope")]
1451 [Version (since = "2.30")]
1452 public static void scan_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
1453 public void unload ();
1455 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1457 [Version (since = "2.30")]
1458 public class IOModuleScope {
1459 [CCode (has_construct_function = false)]
1460 public IOModuleScope (GLib.IOModuleScopeFlags flags);
1461 public void block (string basename);
1462 public void free ();
1464 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1466 public class IOSchedulerJob {
1467 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_cancel_all_jobs")]
1468 [Version (deprecated = true)]
1469 public static void cancel_all ();
1470 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_push_job")]
1471 [Version (deprecated = true)]
1472 public static void push ([CCode (delegate_target_pos = 1.33333, destroy_notify_pos = 1.66667)] owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
1473 [Version (deprecated = true)]
1474 public bool send_to_mainloop (owned GLib.SourceFunc func);
1475 [Version (deprecated = true)]
1476 public void send_to_mainloop_async (owned GLib.SourceFunc func);
1478 [CCode (cheader_filename = "gio/gio.h", type_id = "g_io_stream_get_type ()")]
1479 public abstract class IOStream : GLib.Object {
1480 [CCode (has_construct_function = false)]
1481 protected IOStream ();
1482 [Version (since = "2.22")]
1483 public void clear_pending ();
1484 [CCode (vfunc_name = "close_fn")]
1485 [Version (since = "2.22")]
1486 public virtual bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1487 [Version (since = "2.22")]
1488 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1489 [Version (since = "2.22")]
1490 public virtual unowned GLib.InputStream get_input_stream ();
1491 [Version (since = "2.22")]
1492 public virtual unowned GLib.OutputStream get_output_stream ();
1493 [Version (since = "2.22")]
1494 public bool has_pending ();
1495 [Version (since = "2.22")]
1496 public bool is_closed ();
1497 [Version (since = "2.22")]
1498 public bool set_pending () throws GLib.Error;
1499 [CCode (finish_instance = false)]
1500 [Version (since = "2.28")]
1501 public async bool splice_async (GLib.IOStream stream2, GLib.IOStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1503 public bool closed { get; }
1504 public abstract GLib.InputStream input_stream { get; }
1505 public abstract GLib.OutputStream output_stream { get; }
1507 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
1509 public class IOStreamAdapter {
1511 [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_get_type ()")]
1512 public class InetAddress : GLib.Object {
1513 [CCode (has_construct_function = false)]
1514 protected InetAddress ();
1515 [CCode (has_construct_function = false)]
1516 [Version (since = "2.22")]
1517 public InetAddress.any (GLib.SocketFamily family);
1518 [Version (since = "2.30")]
1519 public bool equal (GLib.InetAddress other_address);
1520 [CCode (has_construct_function = false)]
1521 [Version (since = "2.22")]
1522 public InetAddress.from_bytes ([CCode (array_length = false)] uint8[] bytes, GLib.SocketFamily family);
1523 [CCode (has_construct_function = false)]
1524 [Version (since = "2.22")]
1525 public InetAddress.from_string (string string);
1526 [Version (since = "2.22")]
1527 public GLib.SocketFamily get_family ();
1528 [Version (since = "2.22")]
1529 public bool get_is_any ();
1530 [Version (since = "2.22")]
1531 public bool get_is_link_local ();
1532 [Version (since = "2.22")]
1533 public bool get_is_loopback ();
1534 [Version (since = "2.22")]
1535 public bool get_is_mc_global ();
1536 [Version (since = "2.22")]
1537 public bool get_is_mc_link_local ();
1538 [Version (since = "2.22")]
1539 public bool get_is_mc_node_local ();
1540 [Version (since = "2.22")]
1541 public bool get_is_mc_org_local ();
1542 [Version (since = "2.22")]
1543 public bool get_is_mc_site_local ();
1544 [Version (since = "2.22")]
1545 public bool get_is_multicast ();
1546 [Version (since = "2.22")]
1547 public bool get_is_site_local ();
1548 [Version (since = "2.22")]
1549 public size_t get_native_size ();
1550 [CCode (has_construct_function = false)]
1551 [Version (since = "2.22")]
1552 public InetAddress.loopback (GLib.SocketFamily family);
1553 [CCode (array_length = false)]
1554 [Version (since = "2.22")]
1555 public virtual unowned uint8[] to_bytes ();
1556 [Version (since = "2.22")]
1557 public virtual string to_string ();
1559 public void* bytes { get; construct; }
1560 public GLib.SocketFamily family { get; construct; }
1561 [Version (since = "2.22")]
1562 public bool is_any { get; }
1563 [Version (since = "2.22")]
1564 public bool is_link_local { get; }
1565 [Version (since = "2.22")]
1566 public bool is_loopback { get; }
1567 [Version (since = "2.22")]
1568 public bool is_mc_global { get; }
1569 [Version (since = "2.22")]
1570 public bool is_mc_link_local { get; }
1571 [Version (since = "2.22")]
1572 public bool is_mc_node_local { get; }
1573 [Version (since = "2.22")]
1574 public bool is_mc_org_local { get; }
1575 [Version (since = "2.22")]
1576 public bool is_mc_site_local { get; }
1577 [Version (since = "2.22")]
1578 public bool is_multicast { get; }
1579 [Version (since = "2.22")]
1580 public bool is_site_local { get; }
1582 [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_mask_get_type ()")]
1583 [Version (since = "2.32")]
1584 public class InetAddressMask : GLib.Object, GLib.Initable {
1585 [CCode (has_construct_function = false)]
1586 public InetAddressMask (GLib.InetAddress addr, uint length) throws GLib.Error;
1587 public bool equal (GLib.InetAddressMask mask2);
1588 [CCode (has_construct_function = false)]
1589 public InetAddressMask.from_string (string mask_string) throws GLib.Error;
1590 public unowned GLib.InetAddress get_address ();
1591 public GLib.SocketFamily get_family ();
1592 public uint get_length ();
1593 public bool matches (GLib.InetAddress address);
1594 public string to_string ();
1596 public GLib.InetAddress address { owned get; set; }
1597 public GLib.SocketFamily family { get; }
1599 public uint length { get; set; }
1601 [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_socket_address_get_type ()")]
1602 public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
1603 [CCode (has_construct_function = false, type = "GSocketAddress*")]
1604 [Version (since = "2.22")]
1605 public InetSocketAddress (GLib.InetAddress address, uint16 port);
1606 [CCode (has_construct_function = false, type = "GSocketAddress*")]
1607 [Version (since = "2.40")]
1608 public InetSocketAddress.from_string (string address, uint port);
1609 [Version (since = "2.22")]
1610 public unowned GLib.InetAddress get_address ();
1611 [Version (since = "2.32")]
1612 public uint32 get_flowinfo ();
1613 [Version (since = "2.22")]
1614 public uint16 get_port ();
1615 [Version (since = "2.32")]
1616 public uint32 get_scope_id ();
1617 public GLib.InetAddress address { get; construct; }
1618 [Version (since = "2.32")]
1619 public uint flowinfo { get; construct; }
1620 public uint port { get; construct; }
1621 public uint scope_id { get; construct; }
1623 [CCode (cheader_filename = "gio/gio.h", type_id = "g_input_stream_get_type ()")]
1624 public abstract class InputStream : GLib.Object {
1625 [CCode (has_construct_function = false)]
1626 protected InputStream ();
1627 public void clear_pending ();
1628 [CCode (vfunc_name = "close_fn")]
1629 public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1630 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1631 public bool has_pending ();
1632 public bool is_closed ();
1633 [CCode (vfunc_name = "read_fn")]
1634 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;
1635 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;
1636 [Version (since = "2.44")]
1637 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;
1638 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;
1639 [Version (since = "2.34")]
1640 public GLib.Bytes read_bytes (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
1641 [Version (since = "2.34")]
1642 public async GLib.Bytes read_bytes_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1643 public bool set_pending () throws GLib.Error;
1644 public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1645 public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1647 [CCode (cheader_filename = "gio/gio.h", type_id = "g_list_store_get_type ()")]
1648 public class ListStore : GLib.Object, GLib.ListModel {
1649 [CCode (has_construct_function = false)]
1650 [Version (since = "2.44")]
1651 public ListStore (GLib.Type item_type);
1652 [Version (since = "2.44")]
1653 public void append (GLib.Object item);
1654 [Version (since = "2.44")]
1655 public void insert (uint position, GLib.Object item);
1656 [Version (since = "2.44")]
1657 public uint insert_sorted (GLib.Object item, GLib.CompareDataFunc<GLib.Object> compare_func);
1658 [Version (since = "2.44")]
1659 public void remove (uint position);
1660 [Version (since = "2.44")]
1661 public void remove_all ();
1662 [Version (since = "2.46")]
1663 public void sort (GLib.CompareDataFunc<GLib.Object> compare_func);
1664 [Version (since = "2.44")]
1665 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);
1667 [Version (since = "2.44")]
1668 public GLib.Type item_type { get; construct; }
1670 [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_input_stream_get_type ()")]
1671 public class MemoryInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.Seekable {
1672 [CCode (has_construct_function = false, type = "GInputStream*")]
1673 public MemoryInputStream ();
1674 [Version (since = "2.34")]
1675 public void add_bytes (GLib.Bytes bytes);
1676 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);
1677 [CCode (has_construct_function = false, type = "GInputStream*")]
1678 [Version (since = "2.34")]
1679 public MemoryInputStream.from_bytes (GLib.Bytes bytes);
1680 [CCode (has_construct_function = false, type = "GInputStream*")]
1681 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);
1683 [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_output_stream_get_type ()")]
1684 public class MemoryOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.Seekable {
1685 [CCode (has_construct_function = false, type = "GOutputStream*")]
1686 public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function = GLib.g_realloc, GLib.DestroyNotify? destroy_function = GLib.g_free);
1687 [CCode (array_length = false)]
1688 public unowned uint8[] get_data ();
1689 [Version (since = "2.18")]
1690 public size_t get_data_size ();
1691 public size_t get_size ();
1692 [CCode (has_construct_function = false, type = "GOutputStream*")]
1693 [Version (since = "2.36")]
1694 public MemoryOutputStream.resizable ();
1695 [Version (since = "2.34")]
1696 public GLib.Bytes steal_as_bytes ();
1697 [CCode (array_length = false)]
1698 [Version (since = "2.26")]
1699 public uint8[] steal_data ();
1700 [Version (since = "2.24")]
1701 public void* data { get; construct; }
1702 [Version (since = "2.24")]
1703 public ulong data_size { get; }
1705 [Version (since = "2.24")]
1706 public GLib.DestroyNotify? destroy_function { get; construct; }
1708 [Version (since = "2.24")]
1709 public GLib.ReallocFunc? realloc_function { get; construct; }
1710 [Version (since = "2.24")]
1711 public ulong size { get; construct; }
1713 [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_get_type ()")]
1714 [Version (since = "2.32")]
1715 public class Menu : GLib.MenuModel {
1716 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION")]
1717 public const string ATTRIBUTE_ACTION;
1718 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION_NAMESPACE")]
1719 [Version (since = "2.36")]
1720 public const string ATTRIBUTE_ACTION_NAMESPACE;
1721 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ICON")]
1722 [Version (since = "2.38")]
1723 public const string ATTRIBUTE_ICON;
1724 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_LABEL")]
1725 public const string ATTRIBUTE_LABEL;
1726 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_TARGET")]
1727 public const string ATTRIBUTE_TARGET;
1728 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SECTION")]
1729 public const string LINK_SECTION;
1730 [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SUBMENU")]
1731 public const string LINK_SUBMENU;
1732 [CCode (has_construct_function = false)]
1734 public void append (string? label, string? detailed_action);
1735 public void append_item (GLib.MenuItem item);
1736 public void append_section (string? label, GLib.MenuModel section);
1737 public void append_submenu (string? label, GLib.MenuModel submenu);
1738 public void freeze ();
1739 public void insert (int position, string? label, string? detailed_action);
1740 public void insert_item (int position, GLib.MenuItem item);
1741 public void insert_section (int position, string? label, GLib.MenuModel section);
1742 public void insert_submenu (int position, string? label, GLib.MenuModel submenu);
1743 public void prepend (string? label, string? detailed_action);
1744 public void prepend_item (GLib.MenuItem item);
1745 public void prepend_section (string? label, GLib.MenuModel section);
1746 public void prepend_submenu (string? label, GLib.MenuModel submenu);
1747 public void remove (int position);
1748 [Version (since = "2.38")]
1749 public void remove_all ();
1751 [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_attribute_iter_get_type ()")]
1752 [Version (since = "2.32")]
1753 public abstract class MenuAttributeIter : GLib.Object {
1754 [CCode (has_construct_function = false)]
1755 protected MenuAttributeIter ();
1756 public unowned string get_name ();
1757 public virtual bool get_next (out unowned string out_name, out GLib.Variant value);
1758 public GLib.Variant get_value ();
1759 public bool next ();
1761 [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_item_get_type ()")]
1762 [Version (since = "2.32")]
1763 public class MenuItem : GLib.Object {
1764 [CCode (has_construct_function = false)]
1765 public MenuItem (string? label, string? detailed_action);
1766 [CCode (has_construct_function = false)]
1767 [Version (since = "2.34")]
1768 public MenuItem.from_model (GLib.MenuModel model, int item_index);
1769 [Version (since = "2.34")]
1770 public GLib.Variant get_attribute_value (string attribute, GLib.VariantType? expected_type);
1771 [Version (since = "2.34")]
1772 public GLib.MenuModel get_link (string link);
1773 [CCode (has_construct_function = false)]
1774 public MenuItem.section (string? label, GLib.MenuModel section);
1775 public void set_action_and_target (string? action, string? format_string, ...);
1776 public void set_action_and_target_value (string? action, GLib.Variant? target_value);
1777 public void set_attribute (string attribute, string? format_string, ...);
1778 public void set_attribute_value (string attribute, GLib.Variant? value);
1779 public void set_detailed_action (string detailed_action);
1780 [Version (since = "2.38")]
1781 public void set_icon (GLib.Icon icon);
1782 public void set_label (string? label);
1783 public void set_link (string link, GLib.MenuModel? model);
1784 public void set_section (GLib.MenuModel? section);
1785 public void set_submenu (GLib.MenuModel? submenu);
1786 [CCode (has_construct_function = false)]
1787 public MenuItem.submenu (string? label, GLib.MenuModel submenu);
1789 [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_link_iter_get_type ()")]
1790 [Version (since = "2.32")]
1791 public abstract class MenuLinkIter : GLib.Object {
1792 [CCode (has_construct_function = false)]
1793 protected MenuLinkIter ();
1794 public unowned string get_name ();
1795 public virtual bool get_next (out unowned string out_link, out GLib.MenuModel value);
1796 public GLib.MenuModel get_value ();
1797 public bool next ();
1799 [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_model_get_type ()")]
1800 [Version (since = "2.32")]
1801 public abstract class MenuModel : GLib.Object {
1802 [CCode (has_construct_function = false)]
1803 protected MenuModel ();
1804 public bool get_item_attribute (int item_index, string attribute, string format_string, ...);
1805 public virtual GLib.Variant get_item_attribute_value (int item_index, string attribute, GLib.VariantType? expected_type);
1807 public virtual void get_item_attributes (int item_index, [CCode (type = "GHashTable**")] out GLib.HashTable<string,GLib.Variant>? attributes);
1808 public virtual GLib.MenuModel get_item_link (int item_index, string link);
1810 public virtual void get_item_links (int item_index, out GLib.HashTable<string,GLib.MenuModel> links);
1811 public virtual int get_n_items ();
1812 public virtual bool is_mutable ();
1813 public virtual GLib.MenuAttributeIter iterate_item_attributes (int item_index);
1814 public virtual GLib.MenuLinkIter iterate_item_links (int item_index);
1816 public signal void items_changed (int position, int removed, int added);
1818 [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_operation_get_type ()")]
1819 public class MountOperation : GLib.Object {
1820 [CCode (has_construct_function = false)]
1821 public MountOperation ();
1822 public bool get_anonymous ();
1823 public int get_choice ();
1824 public unowned string get_domain ();
1825 [Version (since = "2.58")]
1826 public bool get_is_tcrypt_hidden_volume ();
1827 [Version (since = "2.58")]
1828 public bool get_is_tcrypt_system_volume ();
1829 public unowned string get_password ();
1830 public GLib.PasswordSave get_password_save ();
1831 [Version (since = "2.58")]
1832 public uint get_pim ();
1833 public unowned string get_username ();
1834 public void set_anonymous (bool anonymous);
1835 public void set_choice (int choice);
1836 public void set_domain (string domain);
1837 [Version (since = "2.58")]
1838 public void set_is_tcrypt_hidden_volume (bool hidden_volume);
1839 [Version (since = "2.58")]
1840 public void set_is_tcrypt_system_volume (bool system_volume);
1841 public void set_password (string password);
1842 public void set_password_save (GLib.PasswordSave save);
1843 [Version (since = "2.58")]
1844 public void set_pim (uint pim);
1845 public void set_username (string username);
1846 public bool anonymous { get; set; }
1847 public int choice { get; set; }
1848 public string domain { get; set; }
1849 [Version (since = "2.58")]
1850 public bool is_tcrypt_hidden_volume { get; set; }
1851 [Version (since = "2.58")]
1852 public bool is_tcrypt_system_volume { get; set; }
1853 public string password { get; set; }
1854 public GLib.PasswordSave password_save { get; set; }
1855 [Version (since = "2.58")]
1856 public uint pim { get; set; }
1857 public string username { get; set; }
1858 [Version (since = "2.20")]
1859 public virtual signal void aborted ();
1860 public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
1861 public virtual signal void ask_question (string message, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
1863 public virtual signal void reply (GLib.MountOperationResult result);
1864 [Version (since = "2.22")]
1865 public virtual signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
1866 [Version (since = "2.34")]
1867 public virtual signal void show_unmount_progress (string message, int64 time_left, int64 bytes_left);
1869 [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_socket_address_get_type ()")]
1870 public class NativeSocketAddress : GLib.SocketAddress {
1871 public NativeSocketAddress (void* native, size_t len);
1873 [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_volume_monitor_get_type ()")]
1874 public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
1875 [CCode (has_construct_function = false)]
1876 protected NativeVolumeMonitor ();
1878 public abstract GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
1880 [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_address_get_type ()")]
1881 public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
1882 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1883 [Version (since = "2.22")]
1884 public NetworkAddress (string hostname, uint16 port);
1885 [Version (since = "2.22")]
1886 public unowned string get_hostname ();
1887 [Version (since = "2.22")]
1888 public uint16 get_port ();
1889 [Version (since = "2.26")]
1890 public unowned string get_scheme ();
1891 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1892 [Version (since = "2.44")]
1893 public NetworkAddress.loopback (uint16 port);
1894 [Version (since = "2.22")]
1895 public static GLib.NetworkAddress parse (string host_and_port, uint16 default_port) throws GLib.Error;
1896 [Version (since = "2.26")]
1897 public static GLib.NetworkAddress parse_uri (string uri, uint16 default_port) throws GLib.Error;
1898 public string hostname { get; construct; }
1899 public uint port { get; construct; }
1900 public string scheme { get; construct; }
1902 [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_service_get_type ()")]
1903 public class NetworkService : GLib.Object, GLib.SocketConnectable {
1904 [CCode (has_construct_function = false, type = "GSocketConnectable*")]
1905 [Version (since = "2.22")]
1906 public NetworkService (string service, string protocol, string domain);
1907 [Version (since = "2.22")]
1908 public unowned string get_domain ();
1909 [Version (since = "2.22")]
1910 public unowned string get_protocol ();
1911 [Version (since = "2.26")]
1912 public unowned string get_scheme ();
1913 [Version (since = "2.22")]
1914 public unowned string get_service ();
1915 [Version (since = "2.26")]
1916 public void set_scheme (string scheme);
1917 public string domain { get; construct; }
1918 public string protocol { get; construct; }
1919 public string scheme { get; set; }
1920 public string service { get; construct; }
1922 [CCode (cheader_filename = "gio/gio.h", type_id = "g_notification_get_type ()")]
1923 [Version (since = "2.40")]
1924 public class Notification : GLib.Object {
1925 [CCode (has_construct_function = false)]
1926 public Notification (string title);
1927 public void add_button (string label, string detailed_action);
1928 public void add_button_with_target_value (string label, string action, GLib.Variant? target);
1929 public void set_body (string? body);
1930 public void set_default_action (string detailed_action);
1931 public void set_default_action_and_target_value (string action, GLib.Variant? target);
1932 public void set_icon (GLib.Icon icon);
1933 public void set_priority (GLib.NotificationPriority priority);
1934 public void set_title (string title);
1935 [Version (deprecated = true, deprecated_since = "2.42", since = "2.40")]
1936 public void set_urgent (bool urgent);
1938 [CCode (cheader_filename = "gio/gio.h", type_id = "g_output_stream_get_type ()")]
1939 public abstract class OutputStream : GLib.Object {
1940 [CCode (has_construct_function = false)]
1941 protected OutputStream ();
1942 public void clear_pending ();
1943 [CCode (vfunc_name = "close_fn")]
1944 public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1945 public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1946 public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
1947 public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1948 public bool has_pending ();
1949 public bool is_closed ();
1950 [Version (since = "2.24")]
1951 public bool is_closing ();
1952 public bool set_pending () throws GLib.Error;
1953 public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1954 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;
1955 [CCode (vfunc_name = "write_fn")]
1956 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;
1957 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;
1958 [Version (since = "2.44")]
1959 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;
1960 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;
1961 public ssize_t write_bytes (GLib.Bytes bytes, GLib.Cancellable? cancellable = null) throws GLib.Error;
1962 public async ssize_t write_bytes_async (GLib.Bytes bytes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
1964 [CCode (cheader_filename = "gio/gio.h", type_id = "g_permission_get_type ()")]
1965 public abstract class Permission : GLib.Object {
1966 [CCode (has_construct_function = false)]
1967 protected Permission ();
1968 [Version (since = "2.26")]
1969 public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
1970 [Version (since = "2.26")]
1971 public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1972 [Version (since = "2.26")]
1973 public bool get_allowed ();
1974 [Version (since = "2.26")]
1975 public bool get_can_acquire ();
1976 [Version (since = "2.26")]
1977 public bool get_can_release ();
1978 [Version (since = "2.26")]
1979 public void impl_update (bool allowed, bool can_acquire, bool can_release);
1980 [Version (since = "2.26")]
1981 public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
1982 [Version (since = "2.26")]
1983 public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
1984 public bool allowed { get; }
1985 public bool can_acquire { get; }
1986 public bool can_release { get; }
1988 [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
1990 public class PollableSource : GLib.Source {
1991 [CCode (type = "GSource*")]
1992 public PollableSource (GLib.Object pollable_stream);
1993 [CCode (type = "GSource*")]
1994 public PollableSource.full (GLib.Object pollable_stream, GLib.Source? child_source, GLib.Cancellable? cancellable = null);
1995 [CCode (cname = "g_source_set_callback")]
1996 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.PollableSourceFunc func);
1998 [CCode (cheader_filename = "gio/gio.h", type_id = "g_property_action_get_type ()")]
1999 [Version (since = "2.38")]
2000 public class PropertyAction : GLib.Object, GLib.Action {
2001 [CCode (has_construct_function = false)]
2002 public PropertyAction (string name, GLib.Object object, string property_name);
2004 [Version (since = "2.46")]
2005 public bool invert_boolean { get; construct; }
2007 public GLib.Object object { construct; }
2009 public string property_name { construct; }
2011 [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_get_type ()")]
2012 [Version (since = "2.26")]
2013 public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
2014 [CCode (has_construct_function = false, type = "GSocketAddress*")]
2015 public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string? username, string? password);
2016 public unowned string get_destination_hostname ();
2017 public uint16 get_destination_port ();
2018 [Version (since = "2.34")]
2019 public unowned string get_destination_protocol ();
2020 public unowned string get_password ();
2021 public unowned string get_protocol ();
2022 [Version (since = "2.34")]
2023 public unowned string get_uri ();
2024 public unowned string get_username ();
2025 public string destination_hostname { get; construct; }
2026 public uint destination_port { get; construct; }
2027 [Version (since = "2.34")]
2028 public string destination_protocol { get; construct; }
2029 public string password { get; construct; }
2030 public string protocol { get; construct; }
2031 [Version (since = "2.34")]
2032 public string uri { get; construct; }
2033 public string username { get; construct; }
2035 [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_enumerator_get_type ()")]
2036 public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
2037 [CCode (has_construct_function = false)]
2038 protected ProxyAddressEnumerator ();
2040 public GLib.SocketConnectable connectable { owned get; construct; }
2042 [Version (since = "2.38")]
2043 public uint default_port { get; construct; }
2045 [Version (since = "2.36")]
2046 public GLib.ProxyResolver proxy_resolver { owned get; set construct; }
2048 public string uri { owned get; construct; }
2050 [CCode (cheader_filename = "gio/gio.h", type_id = "g_resolver_get_type ()")]
2051 public abstract class Resolver : GLib.Object {
2052 [CCode (has_construct_function = false)]
2053 protected Resolver ();
2054 [Version (since = "2.22")]
2055 public static GLib.Resolver get_default ();
2056 [Version (since = "2.22")]
2057 public virtual string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2058 [Version (since = "2.22")]
2059 public virtual async string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2060 [Version (since = "2.22")]
2061 public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2062 [Version (since = "2.22")]
2063 public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2064 [Version (since = "2.34")]
2065 public virtual GLib.List<GLib.Variant> lookup_records (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2066 [Version (since = "2.34")]
2067 public virtual async GLib.List<GLib.Variant> lookup_records_async (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
2068 [Version (since = "2.22")]
2069 public virtual GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
2070 [CCode (finish_vfunc_name = "lookup_service_finish", vfunc_name = "lookup_service_async")]
2071 public virtual async GLib.List<GLib.SrvTarget> lookup_service_async (string rrname, GLib.Cancellable? cancellable = null) throws GLib.Error;
2072 [Version (since = "2.22")]
2073 public void set_default ();
2074 public virtual signal void reload ();
2076 [CCode (cheader_filename = "gio/gio.h", ref_function = "g_resource_ref", type_id = "g_resource_get_type ()", unref_function = "g_resource_unref")]
2078 [Version (since = "2.32")]
2079 public class Resource {
2080 [CCode (cname = "g_resources_register")]
2081 public void _register ();
2082 [CCode (cname = "g_resources_unregister")]
2083 public void _unregister ();
2084 [CCode (array_length = false, array_null_terminated = true)]
2085 public string[] enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2086 [CCode (has_construct_function = false)]
2087 public Resource.from_data (GLib.Bytes data) throws GLib.Error;
2088 public bool get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
2089 [CCode (cheader_filename = "gio/gio.h")]
2090 public static GLib.Resource load (string filename) throws GLib.Error;
2091 public GLib.Bytes lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2092 public GLib.InputStream open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
2093 public unowned GLib.Resource @ref ();
2094 public void unref ();
2096 [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_get_type ()")]
2097 public class Settings : GLib.Object {
2098 [CCode (has_construct_function = false)]
2099 [Version (since = "2.26")]
2100 public Settings (string schema_id);
2101 public void apply ();
2102 [Version (since = "2.26")]
2103 public void bind (string key, GLib.Object object, string property, GLib.SettingsBindFlags flags);
2104 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);
2105 [Version (since = "2.26")]
2106 public void bind_writable (string key, GLib.Object object, string property, bool inverted);
2107 [Version (since = "2.32")]
2108 public GLib.Action create_action (string key);
2109 [Version (since = "2.26")]
2110 public void delay ();
2111 [CCode (has_construct_function = false)]
2112 [Version (since = "2.32")]
2113 public Settings.full (GLib.SettingsSchema schema, GLib.SettingsBackend? backend, string? path);
2114 [CCode (sentinel = "")]
2115 [Version (since = "2.26")]
2116 public void @get (string key, string format, ...);
2117 [Version (since = "2.26")]
2118 public bool get_boolean (string key);
2119 [Version (since = "2.26")]
2120 public GLib.Settings get_child (string name);
2121 [Version (since = "2.40")]
2122 public GLib.Variant? get_default_value (string key);
2123 [Version (since = "2.26")]
2124 public double get_double (string key);
2125 [Version (since = "2.26")]
2126 public int get_enum (string key);
2127 [Version (since = "2.26")]
2128 public uint get_flags (string key);
2129 [Version (since = "2.26")]
2130 public bool get_has_unapplied ();
2131 [Version (since = "2.26")]
2132 public int get_int (string key);
2133 [Version (since = "2.50")]
2134 public int64 get_int64 (string key);
2135 public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
2136 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2137 public GLib.Variant get_range (string key);
2138 [Version (since = "2.26")]
2139 public string get_string (string key);
2140 [CCode (array_length = false, array_null_terminated = true)]
2141 [Version (since = "2.26")]
2142 public string[] get_strv (string key);
2143 [Version (since = "2.30")]
2144 public uint get_uint (string key);
2145 [Version (since = "2.50")]
2146 public uint64 get_uint64 (string key);
2147 [Version (since = "2.40")]
2148 public GLib.Variant? get_user_value (string key);
2149 [Version (since = "2.26")]
2150 public GLib.Variant get_value (string key);
2151 [Version (since = "2.26")]
2152 public bool is_writable (string name);
2153 [CCode (array_length = false, array_null_terminated = true)]
2154 public string[] list_children ();
2155 [CCode (array_length = false, array_null_terminated = true)]
2156 public string[] list_keys ();
2157 [CCode (array_length = false, array_null_terminated = true)]
2158 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2159 public static unowned string[] list_relocatable_schemas ();
2160 [CCode (array_length = false, array_null_terminated = true)]
2161 [Version (deprecated = true, deprecated_since = "2.40", since = "2.26")]
2162 public static unowned string[] list_schemas ();
2163 [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
2164 public bool range_check (string key, GLib.Variant value);
2165 public void reset (string key);
2166 public void revert ();
2167 [CCode (sentinel = "")]
2168 [Version (since = "2.26")]
2169 public bool @set (string key, string format, ...);
2170 [Version (since = "2.26")]
2171 public bool set_boolean (string key, bool value);
2172 [Version (since = "2.26")]
2173 public bool set_double (string key, double value);
2174 public bool set_enum (string key, int value);
2175 public bool set_flags (string key, uint value);
2176 [Version (since = "2.26")]
2177 public bool set_int (string key, int value);
2178 [Version (since = "2.50")]
2179 public bool set_int64 (string key, int64 value);
2180 [Version (since = "2.26")]
2181 public bool set_string (string key, string value);
2182 [Version (since = "2.26")]
2183 public bool set_strv (string key, [CCode (array_length = false, array_null_terminated = true)] string[]? value);
2184 [Version (since = "2.30")]
2185 public bool set_uint (string key, uint value);
2186 [Version (since = "2.50")]
2187 public bool set_uint64 (string key, uint64 value);
2188 [Version (since = "2.26")]
2189 public bool set_value (string key, GLib.Variant value);
2190 public static void sync ();
2191 [Version (since = "2.26")]
2192 public static void unbind (GLib.Object object, string property);
2193 [CCode (has_construct_function = false)]
2194 [Version (since = "2.26")]
2195 public Settings.with_backend (string schema_id, GLib.SettingsBackend backend);
2196 [CCode (has_construct_function = false)]
2197 [Version (since = "2.26")]
2198 public Settings.with_backend_and_path (string schema_id, GLib.SettingsBackend backend, string path);
2199 [CCode (has_construct_function = false)]
2200 [Version (since = "2.26")]
2201 public Settings.with_path (string schema_id, string path);
2203 public GLib.SettingsBackend backend { owned get; construct; }
2205 [Version (since = "2.28")]
2206 public bool delay_apply { get; }
2207 public bool has_unapplied { get; }
2209 public string path { owned get; construct; }
2211 [Version (deprecated = true, deprecated_since = "2.32")]
2212 public string schema { owned get; construct; }
2214 public string schema_id { owned get; construct; }
2216 public GLib.SettingsSchema settings_schema { owned get; construct; }
2217 public virtual signal bool change_event ([CCode (array_length_cname = "n_keys", array_length_pos = 1.1)] GLib.Quark[]? keys);
2218 public virtual signal void changed (string key);
2219 public virtual signal bool writable_change_event (uint key);
2220 public virtual signal void writable_changed (string key);
2222 [CCode (cheader_filename = "gio/gio.h", type_id = "g_settings_backend_get_type ()")]
2223 public abstract class SettingsBackend : GLib.Object {
2224 [CCode (has_construct_function = false)]
2225 protected SettingsBackend ();
2226 [Version (since = "2.26")]
2227 public void changed (string key, void* origin_tag);
2228 [Version (since = "2.26")]
2229 public void changed_tree (GLib.Tree tree, void* origin_tag);
2230 [Version (since = "2.26")]
2231 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);
2232 [Version (since = "2.28")]
2233 public static GLib.SettingsBackend get_default ();
2235 public virtual bool get_writable (string key);
2236 [CCode (cheader_filename = "gio/gio.h", cname = "g_keyfile_settings_backend_new")]
2237 public static GLib.SettingsBackend keyfile_settings_backend_new (string filename, string root_path, string? root_group);
2238 [Version (since = "2.26")]
2239 public void keys_changed (string path, [CCode (array_length = false, array_null_terminated = true)] string[] items, void* origin_tag);
2240 [CCode (cheader_filename = "gio/gio.h", cname = "g_memory_settings_backend_new")]
2241 [Version (since = "2.28")]
2242 public static GLib.SettingsBackend memory_settings_backend_new ();
2243 [CCode (cheader_filename = "gio/gio.h", cname = "g_null_settings_backend_new")]
2244 [Version (since = "2.28")]
2245 public static GLib.SettingsBackend null_settings_backend_new ();
2246 [Version (since = "2.26")]
2247 public void path_changed (string path, void* origin_tag);
2248 [Version (since = "2.26")]
2249 public void path_writable_changed (string path);
2251 public virtual GLib.Variant read (string key, GLib.VariantType expected_type, bool default_value);
2253 public virtual GLib.Variant read_user_value (string key, GLib.VariantType expected_type);
2255 public virtual void reset (string key, void* origin_tag);
2257 public virtual void subscribe (string name);
2259 public virtual void sync ();
2261 public virtual void unsubscribe (string name);
2262 [Version (since = "2.26")]
2263 public void writable_changed (string key);
2265 public virtual bool write (string key, GLib.Variant value, void* origin_tag);
2267 public virtual bool write_tree (GLib.Tree tree, void* origin_tag);
2269 [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")]
2271 [Version (since = "2.32")]
2272 public class SettingsSchema {
2273 public unowned string get_id ();
2274 [Version (since = "2.40")]
2275 public GLib.SettingsSchemaKey get_key (string name);
2276 public unowned string get_path ();
2277 [Version (since = "2.40")]
2278 public bool has_key (string name);
2279 [CCode (array_length = false, array_null_terminated = true)]
2280 [Version (since = "2.44")]
2281 public string[] list_children ();
2282 [CCode (array_length = false, array_null_terminated = true)]
2283 [Version (since = "2.46")]
2284 public string[] list_keys ();
2285 public unowned GLib.SettingsSchema @ref ();
2286 public void unref ();
2288 [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")]
2290 public class SettingsSchemaKey {
2291 [Version (since = "2.40")]
2292 public GLib.Variant get_default_value ();
2293 [Version (since = "2.34")]
2294 public unowned string get_description ();
2295 [Version (since = "2.44")]
2296 public unowned string get_name ();
2297 [Version (since = "2.40")]
2298 public GLib.Variant get_range ();
2299 [Version (since = "2.34")]
2300 public unowned string get_summary ();
2301 [Version (since = "2.40")]
2302 public unowned GLib.VariantType get_value_type ();
2303 [Version (since = "2.40")]
2304 public bool range_check (GLib.Variant value);
2305 [Version (since = "2.40")]
2306 public unowned GLib.SettingsSchemaKey @ref ();
2307 [Version (since = "2.40")]
2308 public void unref ();
2310 [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")]
2312 [Version (since = "2.32")]
2313 public class SettingsSchemaSource {
2314 [CCode (has_construct_function = false)]
2315 public SettingsSchemaSource.from_directory (string directory, GLib.SettingsSchemaSource? parent, bool trusted) throws GLib.Error;
2316 [CCode (cheader_filename = "gio/gio.h")]
2317 public static unowned GLib.SettingsSchemaSource? get_default ();
2318 [Version (since = "2.40")]
2319 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);
2320 public GLib.SettingsSchema? lookup (string schema_id, bool recursive);
2321 public unowned GLib.SettingsSchemaSource @ref ();
2322 public void unref ();
2324 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_get_type ()")]
2325 public class SimpleAction : GLib.Object, GLib.Action {
2326 [CCode (has_construct_function = false)]
2327 [Version (since = "2.28")]
2328 public SimpleAction (string name, GLib.VariantType? parameter_type);
2329 [Version (since = "2.28")]
2330 public void set_enabled (bool enabled);
2331 [Version (since = "2.30")]
2332 public void set_state (GLib.Variant value);
2333 [Version (since = "2.44")]
2334 public void set_state_hint (GLib.Variant? state_hint);
2335 [CCode (has_construct_function = false)]
2336 [Version (since = "2.28")]
2337 public SimpleAction.stateful (string name, GLib.VariantType? parameter_type, GLib.Variant state);
2338 [Version (since = "2.28")]
2339 public signal void activate (GLib.Variant? parameter);
2340 [Version (since = "2.30")]
2341 public signal void change_state (GLib.Variant? value);
2343 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_group_get_type ()")]
2344 [Version (since = "2.28")]
2345 public class SimpleActionGroup : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
2346 [CCode (has_construct_function = false)]
2347 public SimpleActionGroup ();
2348 [Version (deprecated = true, deprecated_since = "2.38", since = "2.30")]
2349 public void add_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
2350 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2351 public void insert (GLib.Action action);
2352 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2353 public unowned GLib.Action lookup (string action_name);
2354 [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
2355 public void remove (string action_name);
2357 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_async_result_get_type ()")]
2358 public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult {
2359 [CCode (has_construct_function = false)]
2360 public SimpleAsyncResult (GLib.Object? source_object, void* source_tag);
2361 [Version (deprecated = true, deprecated_since = "2.46")]
2362 public void complete ();
2363 [Version (deprecated = true, deprecated_since = "2.46")]
2364 public void complete_in_idle ();
2365 [CCode (has_construct_function = false)]
2367 public SimpleAsyncResult.error (GLib.Object? source_object, GLib.Quark domain, int code, string format, ...);
2368 [CCode (has_construct_function = false)]
2369 public SimpleAsyncResult.from_error (GLib.Object? source_object, GLib.Error error);
2370 [Version (deprecated = true, deprecated_since = "2.46")]
2371 public bool get_op_res_gboolean ();
2372 [CCode (simple_generics = true)]
2373 public unowned T get_op_res_gpointer<T> ();
2374 [Version (deprecated = true, deprecated_since = "2.46")]
2375 public ssize_t get_op_res_gssize ();
2376 [Version (deprecated = true, deprecated_since = "2.46.")]
2377 public void* get_source_tag ();
2378 [Version (deprecated = true, deprecated_since = "2.46", since = "2.20")]
2379 public static bool is_valid (GLib.AsyncResult result, GLib.Object? source, void* source_tag);
2380 [Version (deprecated = true, deprecated_since = "2.46")]
2381 public bool propagate_error () throws GLib.Error;
2382 [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_gerror_in_idle")]
2383 [Version (deprecated = true, deprecated_since = "2.46")]
2384 public static async void report_gerror_in_idle (GLib.Object? object, GLib.Error error);
2385 [Version (deprecated = true, deprecated_since = "2.46")]
2386 public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
2387 [Version (deprecated = true, deprecated_since = "2.46", since = "2.32")]
2388 public void set_check_cancellable (GLib.Cancellable? check_cancellable);
2390 [Version (deprecated = true, deprecated_since = "2.46")]
2391 public void set_error (GLib.Quark domain, int code, string format, ...);
2392 [Version (deprecated = true, deprecated_since = "2.46")]
2393 public void set_error_va (GLib.Quark domain, int code, string format, va_list args);
2394 [Version (deprecated = true, deprecated_since = "2.46")]
2395 public void set_from_error (GLib.Error error);
2396 [Version (deprecated = true, deprecated_since = "2.46")]
2397 public void set_handle_cancellation (bool handle_cancellation);
2398 [Version (deprecated = true, deprecated_since = "2.46")]
2399 public void set_op_res_gboolean (bool op_res);
2400 [CCode (simple_generics = true)]
2401 public void set_op_res_gpointer<T> (owned T op_res);
2402 [Version (deprecated = true, deprecated_since = "2.46")]
2403 public void set_op_res_gssize (ssize_t op_res);
2404 [Version (deprecated = true, deprecated_since = "2.46", since = "2.28")]
2405 public void take_error (GLib.Error error);
2407 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_io_stream_get_type ()")]
2408 [Version (since = "2.44")]
2409 public class SimpleIOStream : GLib.IOStream {
2410 [CCode (has_construct_function = false, type = "GIOStream*")]
2411 public SimpleIOStream (GLib.InputStream input_stream, GLib.OutputStream output_stream);
2413 public GLib.InputStream input_stream { owned get; construct; }
2415 public GLib.OutputStream output_stream { owned get; construct; }
2417 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_permission_get_type ()")]
2418 public class SimplePermission : GLib.Permission {
2419 [CCode (has_construct_function = false, type = "GPermission*")]
2420 [Version (since = "2.26")]
2421 public SimplePermission (bool allowed);
2423 [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_proxy_resolver_get_type ()")]
2424 public class SimpleProxyResolver : GLib.Object, GLib.ProxyResolver {
2425 [CCode (has_construct_function = false, type = "GProxyResolver*")]
2426 [Version (since = "2.36")]
2427 public SimpleProxyResolver (string? default_proxy, string? ignore_hosts);
2428 [Version (since = "2.36")]
2429 public void set_default_proxy (string default_proxy);
2430 [Version (since = "2.36")]
2431 public void set_ignore_hosts (string ignore_hosts);
2432 [Version (since = "2.36")]
2433 public void set_uri_proxy (string uri_scheme, string proxy);
2435 public string default_proxy { owned get; set; }
2436 [CCode (array_length = false, array_null_terminated = true)]
2438 public string[] ignore_hosts { owned get; set; }
2440 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_get_type ()")]
2441 [Version (since = "2.22")]
2442 public class Socket : GLib.Object, GLib.DatagramBased, GLib.Initable {
2443 [CCode (has_construct_function = false)]
2444 public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
2445 public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
2446 public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
2447 public bool check_connect_result () throws GLib.Error;
2448 public bool close () throws GLib.Error;
2449 public GLib.IOCondition condition_check (GLib.IOCondition condition);
2450 [Version (since = "2.32")]
2451 public bool condition_timed_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
2452 public bool condition_wait (GLib.IOCondition condition, GLib.Cancellable? cancellable = null) throws GLib.IOError;
2453 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2454 public GLib.SocketSource create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
2455 [CCode (has_construct_function = false)]
2456 public Socket.from_fd (int fd) throws GLib.Error;
2457 [Version (since = "2.32")]
2458 public ssize_t get_available_bytes ();
2459 public bool get_blocking ();
2460 [Version (since = "2.32")]
2461 public bool get_broadcast ();
2462 [Version (since = "2.26")]
2463 public GLib.Credentials get_credentials () throws GLib.Error;
2464 public GLib.SocketFamily get_family ();
2465 public int get_fd ();
2466 public bool get_keepalive ();
2467 public int get_listen_backlog ();
2468 public GLib.SocketAddress get_local_address () throws GLib.Error;
2469 [Version (since = "2.32")]
2470 public bool get_multicast_loopback ();
2471 [Version (since = "2.32")]
2472 public uint get_multicast_ttl ();
2473 [Version (since = "2.36")]
2474 public bool get_option (int level, int optname, out int value) throws GLib.Error;
2475 public GLib.SocketProtocol get_protocol ();
2476 public GLib.SocketAddress get_remote_address () throws GLib.Error;
2477 public GLib.SocketType get_socket_type ();
2478 [Version (since = "2.26")]
2479 public uint get_timeout ();
2480 [Version (since = "2.32")]
2481 public uint get_ttl ();
2482 public bool is_closed ();
2483 public bool is_connected ();
2484 [Version (since = "2.32")]
2485 public bool join_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
2486 [Version (since = "2.56")]
2487 public bool join_multicast_group_ssm (GLib.InetAddress group, GLib.InetAddress? source_specific, string? iface) throws GLib.Error;
2488 [Version (since = "2.32")]
2489 public bool leave_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
2490 [Version (since = "2.56")]
2491 public bool leave_multicast_group_ssm (GLib.InetAddress group, GLib.InetAddress? source_specific, string? iface) throws GLib.Error;
2492 public bool listen () throws GLib.Error;
2493 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;
2494 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;
2495 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;
2496 [Version (since = "2.48")]
2497 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;
2498 [Version (since = "2.26")]
2499 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;
2500 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;
2501 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;
2502 [Version (since = "2.44")]
2503 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;
2504 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;
2505 [Version (since = "2.26")]
2506 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;
2507 public void set_blocking (bool blocking);
2508 [Version (since = "2.32")]
2509 public void set_broadcast (bool broadcast);
2510 public void set_keepalive (bool keepalive);
2511 public void set_listen_backlog (int backlog);
2512 [Version (since = "2.32")]
2513 public void set_multicast_loopback (bool loopback);
2514 [Version (since = "2.32")]
2515 public void set_multicast_ttl (uint ttl);
2516 [Version (since = "2.36")]
2517 public bool set_option (int level, int optname, int value) throws GLib.Error;
2518 [Version (since = "2.26")]
2519 public void set_timeout (uint timeout);
2520 [Version (since = "2.32")]
2521 public void set_ttl (uint ttl);
2522 public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
2523 public bool speaks_ipv4 ();
2524 public bool blocking { get; set; }
2525 [Version (since = "2.32")]
2526 public bool broadcast { get; set; }
2527 public GLib.SocketFamily family { get; construct; }
2528 public int fd { get; construct; }
2529 public bool keepalive { get; set; }
2530 public int listen_backlog { get; set; }
2532 public GLib.SocketAddress local_address { owned get; }
2533 [Version (since = "2.32")]
2534 public bool multicast_loopback { get; set; }
2535 [Version (since = "2.32")]
2536 public uint multicast_ttl { get; set; }
2537 public GLib.SocketProtocol protocol { get; construct; }
2539 public GLib.SocketAddress remote_address { owned get; }
2540 [Version (since = "2.26")]
2541 public uint timeout { get; set; }
2542 [Version (since = "2.32")]
2543 public uint ttl { get; set; }
2545 public GLib.SocketType type { get; construct; }
2547 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_get_type ()")]
2548 public abstract class SocketAddress : GLib.Object, GLib.SocketConnectable {
2549 [CCode (has_construct_function = false)]
2550 protected SocketAddress ();
2551 [CCode (has_construct_function = false)]
2552 [Version (since = "2.22")]
2553 public SocketAddress.from_native (void* native, size_t len);
2554 [Version (since = "2.22")]
2555 public virtual GLib.SocketFamily get_family ();
2556 [Version (since = "2.22")]
2557 public virtual ssize_t get_native_size ();
2558 [Version (since = "2.22")]
2559 public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
2560 public GLib.SocketFamily family { get; }
2562 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_enumerator_get_type ()")]
2563 public abstract class SocketAddressEnumerator : GLib.Object {
2564 [CCode (has_construct_function = false)]
2565 protected SocketAddressEnumerator ();
2566 public virtual GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
2567 public virtual async GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2569 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_client_get_type ()")]
2570 [Version (since = "2.22")]
2571 public class SocketClient : GLib.Object {
2572 [CCode (has_construct_function = false)]
2573 public SocketClient ();
2574 public void add_application_proxy (string protocol);
2575 public GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
2576 public async GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
2577 public GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2578 public async GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2579 public GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
2580 public async GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
2581 [Version (since = "2.26")]
2582 public GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2583 [Version (since = "2.26")]
2584 public async GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
2585 [Version (since = "2.26")]
2586 public bool get_enable_proxy ();
2587 public GLib.SocketFamily get_family ();
2588 public unowned GLib.SocketAddress get_local_address ();
2589 public GLib.SocketProtocol get_protocol ();
2590 [Version (since = "2.36")]
2591 public unowned GLib.ProxyResolver get_proxy_resolver ();
2592 public GLib.SocketType get_socket_type ();
2593 [Version (since = "2.26")]
2594 public uint get_timeout ();
2595 [Version (since = "2.28")]
2596 public bool get_tls ();
2597 [Version (since = "2.28")]
2598 public GLib.TlsCertificateFlags get_tls_validation_flags ();
2599 [Version (since = "2.26")]
2600 public void set_enable_proxy (bool enable);
2601 public void set_family (GLib.SocketFamily family);
2602 public void set_local_address (GLib.SocketAddress? address);
2603 public void set_protocol (GLib.SocketProtocol protocol);
2604 [Version (since = "2.36")]
2605 public void set_proxy_resolver (GLib.ProxyResolver? proxy_resolver);
2606 public void set_socket_type (GLib.SocketType type);
2607 [Version (since = "2.26")]
2608 public void set_timeout (uint timeout);
2609 [Version (since = "2.28")]
2610 public void set_tls (bool tls);
2611 [Version (since = "2.28")]
2612 public void set_tls_validation_flags (GLib.TlsCertificateFlags flags);
2613 public bool enable_proxy { get; set construct; }
2614 public GLib.SocketFamily family { get; set construct; }
2615 public GLib.SocketAddress local_address { get; set construct; }
2616 public GLib.SocketProtocol protocol { get; set construct; }
2617 [Version (since = "2.36")]
2618 public GLib.ProxyResolver proxy_resolver { get; set construct; }
2619 public uint timeout { get; set construct; }
2620 public bool tls { get; set construct; }
2621 public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; }
2623 public GLib.SocketType type { get; set construct; }
2624 [Version (since = "2.32")]
2625 public virtual signal void event (GLib.SocketClientEvent event, GLib.SocketConnectable connectable, GLib.IOStream? connection);
2627 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_connection_get_type ()")]
2628 [Version (since = "2.22")]
2629 public class SocketConnection : GLib.IOStream {
2630 [CCode (has_construct_function = false)]
2631 protected SocketConnection ();
2632 [Version (since = "2.32")]
2633 public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2634 [Version (since = "2.32")]
2635 public async bool connect_async (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
2636 public static GLib.SocketConnection factory_create_connection (GLib.Socket socket);
2637 public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
2638 public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
2639 public GLib.SocketAddress get_local_address () throws GLib.Error;
2640 public GLib.SocketAddress get_remote_address () throws GLib.Error;
2641 public unowned GLib.Socket get_socket ();
2642 [Version (since = "2.32")]
2643 public bool is_connected ();
2644 public GLib.Socket socket { get; construct; }
2646 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_control_message_get_type ()")]
2647 public abstract class SocketControlMessage : GLib.Object {
2648 [CCode (has_construct_function = false)]
2649 protected SocketControlMessage ();
2650 [Version (since = "2.22")]
2651 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);
2652 [Version (since = "2.22")]
2653 public virtual int get_level ();
2654 [Version (since = "2.22")]
2655 public int get_msg_type ();
2656 [Version (since = "2.22")]
2657 public virtual size_t get_size ();
2659 public virtual int get_type ();
2660 [Version (since = "2.22")]
2661 public virtual void serialize ([CCode (array_length = false, type = "gpointer")] uint8[] data);
2663 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_listener_get_type ()")]
2664 [Version (since = "2.22")]
2665 public class SocketListener : GLib.Object {
2666 [CCode (has_construct_function = false)]
2667 public SocketListener ();
2668 public GLib.SocketConnection accept (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
2669 public async GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error;
2670 public GLib.Socket accept_socket (out unowned GLib.Object? source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
2671 public async GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object? source_object = null) throws GLib.Error;
2672 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;
2673 [Version (since = "2.24")]
2674 public uint16 add_any_inet_port (GLib.Object? source_object) throws GLib.Error;
2675 public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
2676 public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
2678 public virtual void changed ();
2679 public void close ();
2680 public void set_backlog (int listen_backlog);
2682 public int listen_backlog { get; set construct; }
2683 [Version (since = "2.46")]
2684 public virtual signal void event (GLib.SocketListenerEvent event, GLib.Socket socket);
2686 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_service_get_type ()")]
2687 [Version (since = "2.22")]
2688 public class SocketService : GLib.SocketListener {
2689 [CCode (has_construct_function = false)]
2690 public SocketService ();
2691 public bool is_active ();
2692 public void start ();
2693 public void stop ();
2695 [Version (since = "2.46")]
2696 public bool active { get; set construct; }
2697 public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
2699 [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
2701 public class SocketSource : GLib.Source {
2702 [CCode (cname = "g_source_set_callback")]
2703 public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
2705 [CCode (cheader_filename = "gio/gio.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "g_srv_target_get_type ()")]
2707 public class SrvTarget {
2708 [CCode (has_construct_function = false)]
2709 [Version (since = "2.22")]
2710 public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
2711 [Version (since = "2.22")]
2712 public GLib.SrvTarget copy ();
2713 [Version (since = "2.22")]
2714 public void free ();
2715 [Version (since = "2.22")]
2716 public unowned string get_hostname ();
2717 [Version (since = "2.22")]
2718 public uint16 get_port ();
2719 [Version (since = "2.22")]
2720 public uint16 get_priority ();
2721 [Version (since = "2.22")]
2722 public uint16 get_weight ();
2723 [CCode (cheader_filename = "gio/gio.h")]
2724 [Version (since = "2.22")]
2725 public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
2727 [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_get_type ()")]
2728 [Version (since = "2.40")]
2729 public class Subprocess : GLib.Object, GLib.Initable {
2730 [CCode (has_construct_function = false)]
2731 public Subprocess (GLib.SubprocessFlags flags, ...) throws GLib.Error;
2732 public bool communicate (GLib.Bytes? stdin_buf, GLib.Cancellable? cancellable, out GLib.Bytes? stdout_buf, out GLib.Bytes? stderr_buf) throws GLib.Error;
2733 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;
2734 public bool communicate_utf8 (string? stdin_buf, GLib.Cancellable? cancellable, out string? stdout_buf, out string? stderr_buf) throws GLib.Error;
2735 public async bool communicate_utf8_async (string? stdin_buf, GLib.Cancellable? cancellable, out string? stdout_buf, out string? stderr_buf) throws GLib.Error;
2736 public void force_exit ();
2737 public int get_exit_status ();
2738 public unowned string get_identifier ();
2739 public bool get_if_exited ();
2740 public bool get_if_signaled ();
2741 public int get_status ();
2742 public unowned GLib.InputStream get_stderr_pipe ();
2743 public unowned GLib.OutputStream get_stdin_pipe ();
2744 public unowned GLib.InputStream get_stdout_pipe ();
2745 public bool get_successful ();
2746 public int get_term_sig ();
2747 [CCode (cname = "g_subprocess_newv", has_construct_function = false)]
2748 public Subprocess.newv ([CCode (array_length = false, array_null_terminated = true)] string[] argv, GLib.SubprocessFlags flags) throws GLib.Error;
2749 public void send_signal (int signal_num);
2750 public bool wait (GLib.Cancellable? cancellable = null) throws GLib.Error;
2751 public async bool wait_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2752 public bool wait_check (GLib.Cancellable? cancellable = null) throws GLib.Error;
2753 public async bool wait_check_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
2754 [CCode (array_length = false, array_null_terminated = true)]
2756 public string[] argv { construct; }
2758 public GLib.SubprocessFlags flags { construct; }
2760 [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_launcher_get_type ()")]
2761 [Version (since = "2.40")]
2762 public class SubprocessLauncher : GLib.Object {
2763 [CCode (has_construct_function = false)]
2764 public SubprocessLauncher (GLib.SubprocessFlags flags);
2765 public unowned string getenv (string variable);
2766 public void set_child_setup (owned GLib.SpawnChildSetupFunc child_setup);
2767 public void set_cwd (string cwd);
2768 public void set_environ ([CCode (array_length = false, array_null_terminated = true)] string[] env);
2769 public void set_flags (GLib.SubprocessFlags flags);
2770 public void set_stderr_file_path (string? path);
2771 public void set_stdin_file_path (string path);
2772 public void set_stdout_file_path (string? path);
2773 public void setenv (string variable, string value, bool overwrite);
2774 public GLib.Subprocess spawnv ([CCode (array_length = false, array_null_terminated = true)] string[] argv) throws GLib.Error;
2775 public void take_fd (int source_fd, int target_fd);
2776 public void take_stderr_fd (int fd);
2777 public void take_stdin_fd (int fd);
2778 public void take_stdout_fd (int fd);
2779 public void unsetenv (string variable);
2781 public GLib.SubprocessFlags flags { construct; }
2783 [CCode (cheader_filename = "gio/gio.h", type_id = "g_task_get_type ()")]
2784 public class Task : GLib.Object, GLib.AsyncResult {
2785 [CCode (has_construct_function = false)]
2786 [Version (since = "2.36")]
2787 public Task (GLib.Object? source_object, GLib.Cancellable? cancellable, [CCode (scope = "async")] GLib.TaskReadyCallback callback);
2788 [Version (since = "2.36")]
2789 public void attach_source (GLib.Source source, [CCode (type = "GSourceFunc")] GLib.TaskSourceFunc callback);
2790 [Version (since = "2.36")]
2791 public unowned GLib.Cancellable get_cancellable ();
2792 [Version (since = "2.36")]
2793 public bool get_check_cancellable ();
2794 [Version (since = "2.44")]
2795 public bool get_completed ();
2796 [Version (since = "2.36")]
2797 public unowned GLib.MainContext get_context ();
2798 [Version (since = "2.36")]
2799 public int get_priority ();
2800 [Version (since = "2.36")]
2801 public bool get_return_on_cancel ();
2802 [Version (since = "2.36")]
2803 public void* get_source_tag ();
2804 [Version (since = "2.36")]
2805 public void* get_task_data ();
2806 [CCode (cname = "g_task_get_source_object")]
2807 [Version (since = "2.36")]
2808 public unowned GLib.Object? get_unowned_source_object ();
2809 [Version (since = "2.36")]
2810 public bool had_error ();
2811 [Version (since = "2.36")]
2812 public static bool is_valid (GLib.AsyncResult result, GLib.Object? source_object);
2813 [Version (since = "2.36")]
2814 public bool propagate_boolean () throws GLib.Error;
2815 [Version (since = "2.36")]
2816 public ssize_t propagate_int () throws GLib.Error;
2817 [Version (since = "2.36")]
2818 public void* propagate_pointer () throws GLib.Error;
2819 [Version (since = "2.36")]
2820 public static void report_error (GLib.Object? source_object, [CCode (scope = "async")] GLib.AsyncReadyCallback callback, void* source_tag, owned GLib.Error error);
2822 [Version (since = "2.36")]
2823 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, ...);
2824 [Version (since = "2.36")]
2825 public void return_boolean (bool result);
2826 [Version (since = "2.36")]
2827 public void return_error (owned GLib.Error error);
2828 [Version (since = "2.36")]
2829 public bool return_error_if_cancelled ();
2830 [Version (since = "2.36")]
2831 public void return_int (ssize_t result);
2833 [Version (since = "2.36")]
2834 public void return_new_error (GLib.Quark domain, int code, string format, ...);
2835 [Version (since = "2.36")]
2836 public void return_pointer (owned void* result, GLib.DestroyNotify? result_destroy);
2837 [Version (since = "2.36")]
2838 public void run_in_thread (GLib.TaskThreadFunc task_func);
2839 [Version (since = "2.36")]
2840 public void run_in_thread_sync (GLib.TaskThreadFunc task_func);
2841 [Version (since = "2.36")]
2842 public void set_check_cancellable (bool check_cancellable);
2843 [Version (since = "2.36")]
2844 public void set_priority (int priority);
2845 [Version (since = "2.36")]
2846 public bool set_return_on_cancel (bool return_on_cancel);
2847 [Version (since = "2.36")]
2848 public void set_source_tag (void* source_tag);
2849 [Version (since = "2.36")]
2850 public void set_task_data (void* task_data, GLib.DestroyNotify? task_data_destroy);
2851 [Version (since = "2.44")]
2852 public bool completed { get; }
2854 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_connection_get_type ()")]
2855 [Version (since = "2.22")]
2856 public class TcpConnection : GLib.SocketConnection {
2857 [CCode (has_construct_function = false)]
2858 protected TcpConnection ();
2859 public bool get_graceful_disconnect ();
2860 public void set_graceful_disconnect (bool graceful_disconnect);
2861 public bool graceful_disconnect { get; set; }
2863 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_wrapper_connection_get_type ()")]
2864 public class TcpWrapperConnection : GLib.TcpConnection {
2865 [CCode (has_construct_function = false, type = "GSocketConnection*")]
2866 [Version (since = "2.28")]
2867 public TcpWrapperConnection (GLib.IOStream base_io_stream, GLib.Socket socket);
2868 public unowned GLib.IOStream get_base_io_stream ();
2869 public GLib.IOStream base_io_stream { get; construct; }
2871 [CCode (cheader_filename = "gio/gio.h", type_id = "g_test_dbus_get_type ()")]
2872 [Version (since = "2.34")]
2873 public class TestDBus : GLib.Object {
2874 [CCode (has_construct_function = false)]
2875 public TestDBus (GLib.TestDBusFlags flags);
2876 public void add_service_dir (string path);
2877 public void down ();
2878 public unowned string? get_bus_address ();
2879 public GLib.TestDBusFlags get_flags ();
2880 public void stop ();
2881 public static void unset ();
2883 public GLib.TestDBusFlags flags { get; construct; }
2885 [CCode (cheader_filename = "gio/gio.h", type_id = "g_themed_icon_get_type ()")]
2886 public class ThemedIcon : GLib.Object, GLib.Icon {
2887 [CCode (has_construct_function = false, type = "GIcon*")]
2888 public ThemedIcon (string iconname);
2889 public void append_name (string iconname);
2890 [CCode (has_construct_function = false, type = "GIcon*")]
2891 public ThemedIcon.from_names ([CCode (array_length_cname = "len", array_length_pos = 1.1)] string[] iconnames);
2892 [CCode (array_length = false, array_null_terminated = true)]
2893 public unowned string[] get_names ();
2894 [Version (since = "2.18")]
2895 public void prepend_name (string iconname);
2896 [CCode (has_construct_function = false, type = "GIcon*")]
2897 public ThemedIcon.with_default_fallbacks (string iconname);
2899 public string name { construct; }
2900 [CCode (array_length = false, array_null_terminated = true)]
2901 public string[] names { get; construct; }
2903 public bool use_default_fallbacks { get; construct; }
2905 [CCode (cheader_filename = "gio/gio.h", type_id = "g_threaded_socket_service_get_type ()")]
2906 [Version (since = "2.22")]
2907 public class ThreadedSocketService : GLib.SocketService {
2908 [CCode (has_construct_function = false, type = "GSocketService*")]
2909 public ThreadedSocketService (int max_threads);
2911 public int max_threads { get; construct; }
2912 public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
2914 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_certificate_get_type ()")]
2915 [Version (since = "2.28")]
2916 public class TlsCertificate : GLib.Object {
2917 [CCode (has_construct_function = false)]
2918 protected TlsCertificate ();
2919 [CCode (has_construct_function = false)]
2920 public TlsCertificate.from_file (string file) throws GLib.Error;
2921 [CCode (has_construct_function = false)]
2922 public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
2923 [CCode (has_construct_function = false)]
2924 public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
2925 public unowned GLib.TlsCertificate get_issuer ();
2926 [Version (since = "2.34")]
2927 public bool is_same (GLib.TlsCertificate cert_two);
2928 public static GLib.List<GLib.TlsCertificate> list_new_from_file (string file) throws GLib.Error;
2929 public virtual GLib.TlsCertificateFlags verify (GLib.SocketConnectable? identity, GLib.TlsCertificate? trusted_ca);
2931 public GLib.ByteArray certificate { owned get; construct; }
2933 public string certificate_pem { owned get; construct; }
2934 public GLib.TlsCertificate issuer { get; construct; }
2936 public GLib.ByteArray private_key { construct; }
2938 public string private_key_pem { construct; }
2940 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_connection_get_type ()")]
2941 [Version (since = "2.28")]
2942 public abstract class TlsConnection : GLib.IOStream {
2943 [CCode (has_construct_function = false)]
2944 protected TlsConnection ();
2945 public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
2946 public unowned GLib.TlsCertificate get_certificate ();
2947 [Version (since = "2.30")]
2948 public unowned GLib.TlsDatabase get_database ();
2949 [Version (since = "2.30")]
2950 public unowned GLib.TlsInteraction get_interaction ();
2951 public unowned GLib.TlsCertificate get_peer_certificate ();
2952 public GLib.TlsCertificateFlags get_peer_certificate_errors ();
2953 public GLib.TlsRehandshakeMode get_rehandshake_mode ();
2954 public bool get_require_close_notify ();
2955 [Version (deprecated = true, deprecated_since = "2.30")]
2956 public bool get_use_system_certdb ();
2957 public virtual bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
2958 public virtual async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
2959 public void set_certificate (GLib.TlsCertificate certificate);
2960 [Version (since = "2.30")]
2961 public void set_database (GLib.TlsDatabase database);
2962 [Version (since = "2.30")]
2963 public void set_interaction (GLib.TlsInteraction? interaction);
2964 public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
2965 public void set_require_close_notify (bool require_close_notify);
2966 [Version (deprecated = true, deprecated_since = "2.30")]
2967 public void set_use_system_certdb (bool use_system_certdb);
2969 public GLib.IOStream base_io_stream { owned get; construct; }
2970 public GLib.TlsCertificate certificate { get; set; }
2971 [Version (since = "2.30")]
2972 public GLib.TlsDatabase database { get; set; }
2973 [Version (since = "2.30")]
2974 public GLib.TlsInteraction interaction { get; set; }
2975 public GLib.TlsCertificate peer_certificate { get; }
2976 public GLib.TlsCertificateFlags peer_certificate_errors { get; }
2977 public GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
2978 public bool require_close_notify { get; set construct; }
2979 [Version (deprecated = true, deprecated_since = "2.30")]
2980 public bool use_system_certdb { get; set construct; }
2981 public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
2983 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_database_get_type ()")]
2984 [Version (since = "2.30")]
2985 public abstract class TlsDatabase : GLib.Object {
2986 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT")]
2987 public const string PURPOSE_AUTHENTICATE_CLIENT;
2988 [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER")]
2989 public const string PURPOSE_AUTHENTICATE_SERVER;
2990 [CCode (has_construct_function = false)]
2991 protected TlsDatabase ();
2992 public virtual string? create_certificate_handle (GLib.TlsCertificate certificate);
2993 public virtual GLib.TlsCertificate? lookup_certificate_for_handle (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2994 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;
2995 public virtual GLib.TlsCertificate lookup_certificate_issuer (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
2996 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;
2997 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;
2998 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;
2999 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;
3000 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;
3002 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_interaction_get_type ()")]
3003 [Version (since = "2.30")]
3004 public class TlsInteraction : GLib.Object {
3005 [CCode (has_construct_function = false)]
3006 protected TlsInteraction ();
3007 public virtual GLib.TlsInteractionResult ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
3008 public virtual async GLib.TlsInteractionResult ask_password_async (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
3009 public GLib.TlsInteractionResult invoke_ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
3010 [Version (since = "2.40")]
3011 public GLib.TlsInteractionResult invoke_request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3012 [Version (since = "2.40")]
3013 public virtual GLib.TlsInteractionResult request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3014 [Version (since = "2.40")]
3015 public virtual async GLib.TlsInteractionResult request_certificate_async (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3017 [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_password_get_type ()")]
3018 [Version (since = "2.30")]
3019 public class TlsPassword : GLib.Object {
3020 [CCode (has_construct_function = false)]
3021 public TlsPassword (GLib.TlsPasswordFlags flags, string description);
3023 public virtual unowned string get_default_warning ();
3024 public unowned string get_description ();
3025 public GLib.TlsPasswordFlags get_flags ();
3026 [CCode (array_length_pos = 0.1)]
3027 public virtual unowned uint8[] get_value ();
3028 public unowned string get_warning ();
3029 public void set_description (string description);
3030 public void set_flags (GLib.TlsPasswordFlags flags);
3031 public void set_value ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize")] uint8[] value);
3032 [CCode (vfunc_name = "set_value")]
3033 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);
3034 public void set_warning (string warning);
3035 public string description { get; set; }
3036 public GLib.TlsPasswordFlags flags { get; set; }
3037 public string warning { get; set; }
3039 [CCode (cheader_filename = "gio/gunixfdlist.h", type_id = "g_unix_fd_list_get_type ()")]
3040 public class UnixFDList : GLib.Object {
3041 [CCode (has_construct_function = false)]
3042 [Version (since = "2.24")]
3043 public UnixFDList ();
3044 [Version (since = "2.24")]
3045 public int append (int fd) throws GLib.Error;
3046 [CCode (has_construct_function = false)]
3047 [Version (since = "2.24")]
3048 public UnixFDList.from_array ([CCode (array_length_cname = "n_fds", array_length_pos = 1.1)] int[] fds);
3049 [Version (since = "2.24")]
3050 public int @get (int index_) throws GLib.Error;
3051 [Version (since = "2.24")]
3052 public int get_length ();
3053 [CCode (array_length_pos = 0.1)]
3054 [Version (since = "2.24")]
3055 public unowned int[] peek_fds ();
3056 [CCode (array_length_pos = 0.1)]
3057 [Version (since = "2.24")]
3058 public int[] steal_fds ();
3060 [CCode (cheader_filename = "gio/gio.h", type_id = "g_vfs_get_type ()")]
3061 public class Vfs : GLib.Object {
3062 [CCode (has_construct_function = false)]
3065 public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
3066 public static unowned GLib.Vfs get_default ();
3067 public virtual GLib.File get_file_for_path (string path);
3068 public virtual GLib.File get_file_for_uri (string uri);
3069 public static unowned GLib.Vfs get_local ();
3070 [CCode (array_length = false, array_null_terminated = true)]
3071 public virtual unowned string[] get_supported_uri_schemes ();
3072 public virtual bool is_active ();
3074 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);
3076 public virtual void local_file_moved (string source, string dest);
3078 public virtual void local_file_removed (string filename);
3080 public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3081 public virtual GLib.File parse_name (string parse_name);
3082 [Version (since = "2.50")]
3083 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);
3084 [Version (since = "2.50")]
3085 public bool unregister_uri_scheme (string scheme);
3087 [CCode (cheader_filename = "gio/gio.h", type_id = "g_volume_monitor_get_type ()")]
3088 public class VolumeMonitor : GLib.Object {
3089 [CCode (has_construct_function = false)]
3090 protected VolumeMonitor ();
3091 [Version (deprecated = true, deprecated_since = "2.20")]
3092 public static GLib.Volume adopt_orphan_mount (GLib.Mount mount);
3093 public static GLib.VolumeMonitor @get ();
3094 public virtual GLib.List<GLib.Drive> get_connected_drives ();
3095 public virtual GLib.Mount get_mount_for_uuid (string uuid);
3096 public virtual GLib.List<GLib.Mount> get_mounts ();
3097 public virtual GLib.Volume get_volume_for_uuid (string uuid);
3098 public virtual GLib.List<GLib.Volume> get_volumes ();
3100 public virtual bool is_supported ();
3101 public virtual signal void drive_changed (GLib.Drive drive);
3102 public virtual signal void drive_connected (GLib.Drive drive);
3103 public virtual signal void drive_disconnected (GLib.Drive drive);
3104 [Version (since = "2.18")]
3105 public virtual signal void drive_eject_button (GLib.Drive drive);
3106 [Version (since = "2.22")]
3107 public virtual signal void drive_stop_button (GLib.Drive drive);
3108 public virtual signal void mount_added (GLib.Mount mount);
3109 public virtual signal void mount_changed (GLib.Mount mount);
3110 public virtual signal void mount_pre_unmount (GLib.Mount mount);
3111 public virtual signal void mount_removed (GLib.Mount mount);
3112 public virtual signal void volume_added (GLib.Volume volume);
3113 public virtual signal void volume_changed (GLib.Volume volume);
3114 public virtual signal void volume_removed (GLib.Volume volume);
3116 [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_compressor_get_type ()")]
3117 public class ZlibCompressor : GLib.Object, GLib.Converter {
3118 [CCode (has_construct_function = false)]
3119 [Version (since = "2.24")]
3120 public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
3121 [Version (since = "2.26")]
3122 public unowned GLib.FileInfo get_file_info ();
3123 [Version (since = "2.26")]
3124 public void set_file_info (GLib.FileInfo? file_info);
3125 [Version (since = "2.26")]
3126 public GLib.FileInfo file_info { get; set; }
3128 public GLib.ZlibCompressorFormat format { get; construct; }
3130 public int level { get; construct; }
3132 [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_decompressor_get_type ()")]
3133 public class ZlibDecompressor : GLib.Object, GLib.Converter {
3134 [CCode (has_construct_function = false)]
3135 [Version (since = "2.24")]
3136 public ZlibDecompressor (GLib.ZlibCompressorFormat format);
3137 [Version (since = "2.26")]
3138 public unowned GLib.FileInfo get_file_info ();
3139 [Version (since = "2.26")]
3140 public GLib.FileInfo file_info { get; }
3142 public GLib.ZlibCompressorFormat format { get; construct; }
3144 [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionInterface", type_id = "g_action_get_type ()")]
3145 public interface Action : GLib.Object {
3146 [Version (since = "2.28")]
3147 public abstract void activate (GLib.Variant? parameter);
3148 [Version (since = "2.30")]
3149 public abstract void change_state (GLib.Variant value);
3150 [Version (since = "2.28")]
3151 public abstract bool get_enabled ();
3152 [Version (since = "2.28")]
3153 public abstract unowned string get_name ();
3154 [Version (since = "2.28")]
3155 public abstract unowned GLib.VariantType? get_parameter_type ();
3156 [Version (since = "2.28")]
3157 public abstract GLib.Variant get_state ();
3158 [Version (since = "2.28")]
3159 public abstract GLib.Variant? get_state_hint ();
3160 [Version (since = "2.28")]
3161 public abstract unowned GLib.VariantType? get_state_type ();
3162 [Version (since = "2.38")]
3163 public static bool name_is_valid (string action_name);
3164 [Version (since = "2.38")]
3165 public static bool parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
3166 [Version (since = "2.38")]
3167 public static string print_detailed_name (string action_name, GLib.Variant? target_value);
3168 [Version (since = "2.28")]
3169 public abstract bool enabled { get; }
3170 [Version (since = "2.28")]
3171 public abstract string name { get; }
3172 [Version (since = "2.28")]
3173 public abstract GLib.VariantType? parameter_type { get; }
3174 [Version (since = "2.28")]
3175 public abstract GLib.Variant? state { owned get; }
3176 [Version (since = "2.28")]
3177 public abstract GLib.VariantType? state_type { get; }
3179 [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionGroupInterface", type_id = "g_action_group_get_type ()")]
3180 public interface ActionGroup : GLib.Object {
3181 [Version (since = "2.28")]
3182 public abstract void activate_action (string action_name, GLib.Variant? parameter);
3183 [Version (since = "2.28")]
3184 public abstract void change_action_state (string action_name, GLib.Variant value);
3185 [Version (since = "2.28")]
3186 public abstract bool get_action_enabled (string action_name);
3187 [Version (since = "2.28")]
3188 public abstract unowned GLib.VariantType? get_action_parameter_type (string action_name);
3189 [Version (since = "2.28")]
3190 public abstract GLib.Variant? get_action_state (string action_name);
3191 [Version (since = "2.28")]
3192 public abstract GLib.Variant? get_action_state_hint (string action_name);
3193 [Version (since = "2.28")]
3194 public abstract unowned GLib.VariantType? get_action_state_type (string action_name);
3195 [Version (since = "2.28")]
3196 public abstract bool has_action (string action_name);
3197 [CCode (array_length = false, array_null_terminated = true)]
3198 [Version (since = "2.28")]
3199 public abstract string[] list_actions ();
3200 [Version (since = "2.32")]
3201 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);
3203 [Version (since = "2.28")]
3204 public virtual signal void action_added (string action_name);
3206 [Version (since = "2.28")]
3207 public virtual signal void action_enabled_changed (string action_name, bool enabled);
3209 [Version (since = "2.28")]
3210 public virtual signal void action_removed (string action_name);
3212 [Version (since = "2.28")]
3213 public virtual signal void action_state_changed (string action_name, GLib.Variant state);
3215 [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionMapInterface", type_id = "g_action_map_get_type ()")]
3216 public interface ActionMap : GLib.Object {
3217 [Version (since = "2.32")]
3218 public abstract void add_action (GLib.Action action);
3219 [Version (since = "2.32")]
3220 public void add_action_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
3221 [Version (since = "2.32")]
3222 public abstract unowned GLib.Action lookup_action (string action_name);
3223 [Version (since = "2.32")]
3224 public abstract void remove_action (string action_name);
3226 [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_get_type ()")]
3227 public interface AppInfo : GLib.Object {
3228 public abstract bool add_supports_type (string content_type) throws GLib.Error;
3229 [Version (since = "2.20")]
3230 public abstract bool can_delete ();
3231 public abstract bool can_remove_supports_type ();
3232 public static GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
3233 [CCode (vfunc_name = "do_delete")]
3234 [Version (since = "2.20")]
3235 public abstract bool @delete ();
3236 public abstract GLib.AppInfo dup ();
3237 public abstract bool equal (GLib.AppInfo appinfo2);
3238 public static GLib.List<GLib.AppInfo> get_all ();
3239 public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
3241 public abstract unowned string get_commandline ();
3242 public static GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
3243 public static GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
3244 public abstract unowned string get_description ();
3245 [Version (since = "2.24")]
3246 public abstract unowned string get_display_name ();
3248 public abstract unowned string get_executable ();
3249 [Version (since = "2.28")]
3250 public static GLib.List<GLib.AppInfo> get_fallback_for_type (string content_type);
3251 public abstract unowned GLib.Icon get_icon ();
3252 public abstract unowned string get_id ();
3253 public abstract unowned string get_name ();
3254 [Version (since = "2.28")]
3255 public static GLib.List<GLib.AppInfo> get_recommended_for_type (string content_type);
3256 [CCode (array_length = false, array_null_terminated = true)]
3257 [Version (since = "2.34")]
3258 public abstract unowned string[] get_supported_types ();
3259 public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? context) throws GLib.Error;
3260 public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? context) throws GLib.Error;
3261 [Version (since = "2.50")]
3262 public static async bool launch_default_for_uri_async (string uri, GLib.AppLaunchContext? context, GLib.Cancellable? cancellable = null) throws GLib.Error;
3263 public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext? context) throws GLib.Error;
3264 public abstract bool remove_supports_type (string content_type) throws GLib.Error;
3265 [Version (since = "2.20")]
3266 public static void reset_type_associations (string content_type);
3267 public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
3268 public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
3269 public abstract bool set_as_last_used_for_type (string content_type) throws GLib.Error;
3270 public abstract bool should_show ();
3271 public abstract bool supports_files ();
3272 public abstract bool supports_uris ();
3274 [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_initable_get_type ()")]
3275 [Version (since = "2.22")]
3276 public interface AsyncInitable : GLib.Object {
3277 public virtual async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3278 [CCode (finish_function = "g_async_initable_new_finish")]
3279 public static async GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
3280 [CCode (finish_function = "g_async_initable_new_finish")]
3281 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);
3282 [CCode (finish_function = "g_async_initable_new_finish")]
3283 [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
3284 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);
3286 [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_result_get_type ()")]
3287 public interface AsyncResult : GLib.Object {
3288 public abstract GLib.Object? get_source_object ();
3289 public abstract void* get_user_data ();
3290 [Version (since = "2.34")]
3291 public abstract bool is_tagged (void* source_tag);
3292 [Version (since = "2.34")]
3293 public bool legacy_propagate_error () throws GLib.Error;
3295 [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_get_type ()")]
3296 [Version (since = "2.24")]
3297 public interface Converter : GLib.Object {
3298 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;
3299 public abstract void reset ();
3301 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_get_type ()")]
3302 [Version (since = "2.30")]
3303 public interface DBusInterface : GLib.Object {
3304 [Version (since = "2.32")]
3305 public abstract GLib.DBusObject dup_object ();
3306 public abstract unowned GLib.DBusInterfaceInfo get_info ();
3307 public abstract unowned GLib.DBusObject get_object ();
3308 public abstract void set_object (GLib.DBusObject? object);
3310 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_get_type ()")]
3311 public interface DBusObject : GLib.Object {
3312 [Version (since = "2.30")]
3313 public abstract GLib.DBusInterface get_interface (string interface_name);
3314 [Version (since = "2.30")]
3315 public abstract GLib.List<GLib.DBusInterface> get_interfaces ();
3316 [Version (since = "2.30")]
3317 public abstract unowned string get_object_path ();
3318 [Version (since = "2.30")]
3319 public virtual signal void interface_added (GLib.DBusInterface interface_);
3320 [Version (since = "2.30")]
3321 public virtual signal void interface_removed (GLib.DBusInterface interface_);
3323 [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_get_type ()")]
3324 public interface DBusObjectManager : GLib.Object {
3325 [Version (since = "2.30")]
3326 public abstract GLib.DBusInterface get_interface (string object_path, string interface_name);
3327 [Version (since = "2.30")]
3328 public abstract GLib.DBusObject get_object (string object_path);
3329 [Version (since = "2.30")]
3330 public abstract unowned string get_object_path ();
3331 [Version (since = "2.30")]
3332 public abstract GLib.List<GLib.DBusObject> get_objects ();
3333 [Version (since = "2.30")]
3334 public virtual signal void interface_added (GLib.DBusObject object, GLib.DBusInterface interface_);
3335 [Version (since = "2.30")]
3336 public virtual signal void interface_removed (GLib.DBusObject object, GLib.DBusInterface interface_);
3337 [Version (since = "2.30")]
3338 public virtual signal void object_added (GLib.DBusObject object);
3339 [Version (since = "2.30")]
3340 public virtual signal void object_removed (GLib.DBusObject object);
3342 [CCode (cheader_filename = "gio/gio.h", type_cname = "GDatagramBasedInterface", type_id = "g_datagram_based_get_type ()")]
3343 [Version (since = "2.48")]
3344 public interface DatagramBased : GLib.Object {
3345 public GLib.IOCondition condition_check (GLib.IOCondition condition);
3346 public bool condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3347 public GLib.Source create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
3348 [CCode (vfunc_name = "condition_check")]
3349 public virtual GLib.IOCondition datagram_condition_check (GLib.IOCondition condition);
3350 [CCode (vfunc_name = "condition_wait")]
3351 public virtual bool datagram_condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
3352 [CCode (vfunc_name = "create_source")]
3353 public virtual GLib.Source datagram_create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
3354 [CCode (vfunc_name = "receive_messages")]
3355 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;
3356 [CCode (vfunc_name = "send_messages")]
3357 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;
3358 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;
3359 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;
3361 [CCode (cheader_filename = "gio/gio.h", type_id = "g_drive_get_type ()")]
3362 public interface Drive : GLib.Object {
3363 public abstract bool can_eject ();
3364 public abstract bool can_poll_for_media ();
3365 [Version (since = "2.22")]
3366 public abstract bool can_start ();
3367 [Version (since = "2.22")]
3368 public abstract bool can_start_degraded ();
3369 [Version (since = "2.22")]
3370 public abstract bool can_stop ();
3371 [Version (deprecated = true, deprecated_since = "2.22")]
3372 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3373 [Version (since = "2.22")]
3374 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3375 [CCode (array_length = false, array_null_terminated = true)]
3376 public abstract string[] enumerate_identifiers ();
3377 public abstract GLib.Icon get_icon ();
3378 public abstract string? get_identifier (string kind);
3379 public abstract string get_name ();
3380 [Version (since = "2.32")]
3381 public virtual unowned string? get_sort_key ();
3382 [Version (since = "2.22")]
3383 public abstract GLib.DriveStartStopType get_start_stop_type ();
3384 [Version (since = "2.34")]
3385 public abstract GLib.Icon get_symbolic_icon ();
3386 public abstract GLib.List<GLib.Volume> get_volumes ();
3387 public abstract bool has_media ();
3388 public abstract bool has_volumes ();
3389 public abstract bool is_media_check_automatic ();
3390 public abstract bool is_media_removable ();
3391 [Version (since = "2.50")]
3392 public abstract bool is_removable ();
3393 public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
3394 [Version (since = "2.22")]
3395 public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3396 [Version (since = "2.22")]
3397 public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3398 public virtual signal void changed ();
3399 public virtual signal void disconnected ();
3400 public virtual signal void eject_button ();
3401 [Version (since = "2.22")]
3402 public virtual signal void stop_button ();
3404 [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsClientConnectionInterface", type_id = "g_dtls_client_connection_get_type ()")]
3405 [Version (since = "2.48")]
3406 public interface DtlsClientConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
3407 public GLib.List<GLib.ByteArray> get_accepted_cas ();
3408 public unowned GLib.SocketConnectable get_server_identity ();
3409 public GLib.TlsCertificateFlags get_validation_flags ();
3410 public static GLib.DtlsClientConnection @new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
3411 public void set_server_identity (GLib.SocketConnectable identity);
3412 public void set_validation_flags (GLib.TlsCertificateFlags flags);
3414 public abstract GLib.List<void*> accepted_cas { owned get; }
3416 public abstract GLib.SocketConnectable server_identity { get; set construct; }
3418 public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
3420 [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsConnectionInterface", type_id = "g_dtls_connection_get_type ()")]
3421 [Version (since = "2.48")]
3422 public interface DtlsConnection : GLib.DatagramBased, GLib.Object {
3423 public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
3424 public async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3425 public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
3426 public unowned GLib.TlsCertificate get_certificate ();
3427 public unowned GLib.TlsDatabase get_database ();
3428 public unowned GLib.TlsInteraction get_interaction ();
3429 public unowned GLib.TlsCertificate get_peer_certificate ();
3430 public GLib.TlsCertificateFlags get_peer_certificate_errors ();
3431 public GLib.TlsRehandshakeMode get_rehandshake_mode ();
3432 public bool get_require_close_notify ();
3433 public abstract bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
3434 public abstract async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3435 public void set_certificate (GLib.TlsCertificate certificate);
3436 public void set_database (GLib.TlsDatabase database);
3437 public void set_interaction (GLib.TlsInteraction? interaction);
3438 public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
3439 public void set_require_close_notify (bool require_close_notify);
3440 public abstract bool shutdown (bool shutdown_read, bool shutdown_write, GLib.Cancellable? cancellable = null) throws GLib.Error;
3441 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;
3443 public abstract GLib.DatagramBased base_socket { owned get; construct; }
3445 public abstract GLib.TlsCertificate certificate { get; set; }
3447 public abstract GLib.TlsDatabase database { get; set; }
3449 public abstract GLib.TlsInteraction interaction { get; set; }
3451 public abstract GLib.TlsCertificate peer_certificate { get; }
3453 public abstract GLib.TlsCertificateFlags peer_certificate_errors { get; }
3455 public abstract GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
3457 public abstract bool require_close_notify { get; set construct; }
3458 public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
3460 [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsServerConnectionInterface", type_id = "g_dtls_server_connection_get_type ()")]
3461 [Version (since = "2.48")]
3462 public interface DtlsServerConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
3463 public static GLib.DtlsServerConnection @new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
3465 public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
3467 [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_get_type ()")]
3468 public interface File : GLib.Object {
3469 public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3470 public virtual async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3471 public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
3472 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;
3473 public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3474 public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3475 public virtual async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3476 [Version (since = "2.22")]
3477 public abstract GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3478 [Version (since = "2.22")]
3479 public virtual async GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3480 [CCode (vfunc_name = "delete_file")]
3481 public abstract bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
3482 [CCode (vfunc_name = "delete_file_async")]
3483 [Version (since = "2.34")]
3484 public virtual async bool delete_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3485 public abstract GLib.File dup ();
3486 [Version (deprecated = true, deprecated_since = "2.22")]
3487 public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3488 [Version (since = "2.22")]
3489 public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3490 public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3491 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;
3492 public abstract bool equal (GLib.File file2);
3493 public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
3494 public virtual async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3496 public abstract string? get_basename ();
3497 public GLib.File get_child (string name);
3498 public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
3499 public abstract GLib.File? get_parent ();
3500 public abstract string get_parse_name ();
3502 public abstract string? get_path ();
3504 public abstract string? get_relative_path (GLib.File descendant);
3505 public abstract string get_uri ();
3506 public abstract string get_uri_scheme ();
3507 [Version (since = "2.24")]
3508 public bool has_parent (GLib.File? parent);
3509 [CCode (vfunc_name = "prefix_matches")]
3510 public abstract bool has_prefix (GLib.File file);
3511 public abstract bool has_uri_scheme (string uri_scheme);
3512 public abstract uint hash ();
3513 public abstract bool is_native ();
3514 [Version (since = "2.56")]
3515 public GLib.Bytes load_bytes (GLib.Cancellable? cancellable = null, out string? etag_out = null) throws GLib.Error;
3516 [Version (since = "2.56")]
3517 public async GLib.Bytes load_bytes_async (GLib.Cancellable? cancellable = null, out string? etag_out) throws GLib.Error;
3518 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;
3519 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;
3520 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;
3521 public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
3522 [Version (since = "2.38")]
3523 public virtual async bool make_directory_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3524 [Version (since = "2.18")]
3525 public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
3526 public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
3527 [Version (since = "2.38")]
3528 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;
3529 [Version (since = "2.38")]
3530 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;
3531 [Version (since = "2.18")]
3532 public GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3533 [CCode (vfunc_name = "monitor_dir")]
3534 public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
3535 public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
3536 public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3537 public abstract async GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3538 public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
3539 public static GLib.File new_for_commandline_arg (string arg);
3540 [Version (since = "2.36")]
3541 public static GLib.File new_for_commandline_arg_and_cwd (string arg, string cwd);
3542 public static GLib.File new_for_path (string path);
3543 public static GLib.File new_for_uri (string uri);
3544 [Version (since = "2.32")]
3545 public static GLib.File new_tmp (string? tmpl, out GLib.FileIOStream iostream) throws GLib.Error;
3546 [Version (since = "2.22")]
3547 public abstract GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
3548 [Version (since = "2.22")]
3549 public virtual async GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3550 public static GLib.File parse_name (string parse_name);
3551 [Version (since = "2.56")]
3552 public unowned string? peek_path ();
3553 [Version (since = "2.22")]
3554 public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
3555 public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
3556 public bool query_exists (GLib.Cancellable? cancellable = null);
3557 [Version (since = "2.18")]
3558 public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
3559 public abstract GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
3560 public virtual async GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3561 public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3562 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;
3563 public abstract GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
3564 public abstract GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
3565 [CCode (vfunc_name = "read_fn")]
3566 public abstract GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
3567 public virtual async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3568 public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3569 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;
3570 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;
3571 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;
3572 [Version (since = "2.40")]
3573 public async void replace_contents_bytes_async (GLib.Bytes contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null);
3574 [Version (since = "2.22")]
3575 public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3576 [Version (since = "2.22")]
3577 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;
3578 public abstract GLib.File resolve_relative_path (string relative_path);
3579 public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3580 public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3581 public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3582 public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3583 public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3584 public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3585 public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3586 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;
3587 public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3588 public abstract GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
3589 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;
3590 [Version (since = "2.22")]
3591 public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation? start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3592 [Version (since = "2.22")]
3593 public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3594 [Version (since = "2.22")]
3595 public bool supports_thread_contexts ();
3596 public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
3597 [Version (since = "2.38")]
3598 public virtual async bool trash_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
3599 [Version (deprecated = true, deprecated_since = "2.22")]
3600 public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3601 [Version (since = "2.22")]
3602 public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3604 [CCode (cheader_filename = "gio/gio.h", type_id = "g_icon_get_type ()")]
3605 public interface Icon : GLib.Object {
3606 [Version (since = "2.38")]
3607 public static GLib.Icon deserialize (GLib.Variant value);
3608 public abstract bool equal (GLib.Icon? icon2);
3610 public virtual GLib.Icon? from_tokens (string[] tokens, int version) throws GLib.Error;
3611 public abstract uint hash ();
3612 [Version (since = "2.20")]
3613 public static GLib.Icon? new_for_string (string str) throws GLib.Error;
3614 [Version (since = "2.38")]
3615 public virtual GLib.Variant serialize ();
3616 [Version (since = "2.20")]
3617 public string? to_string ();
3619 public virtual bool to_tokens (GLib.GenericArray<string> tokens, out int out_version);
3621 [CCode (cheader_filename = "gio/gio.h", type_id = "g_initable_get_type ()")]
3622 [Version (since = "2.22")]
3623 public interface Initable : GLib.Object {
3624 public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
3625 public static GLib.Object @new (GLib.Type object_type, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
3626 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;
3627 [Version (deprecated = true, deprecated_since = "2.54", since = "2.22")]
3628 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;
3630 [CCode (cheader_filename = "gio/gio.h", type_cname = "GListModelInterface", type_id = "g_list_model_get_type ()")]
3631 public interface ListModel : GLib.Object {
3632 [Version (since = "2.44")]
3633 public abstract GLib.Object? get_item (uint position);
3634 [Version (since = "2.44")]
3635 public abstract GLib.Type get_item_type ();
3636 [Version (since = "2.44")]
3637 public abstract uint get_n_items ();
3638 [Version (since = "2.44")]
3639 public GLib.Object? get_object (uint position);
3641 [Version (since = "2.44")]
3642 public signal void items_changed (uint position, uint removed, uint added);
3644 [CCode (cheader_filename = "gio/gio.h", type_id = "g_loadable_icon_get_type ()")]
3645 public interface LoadableIcon : GLib.Icon, GLib.Object {
3646 public abstract GLib.InputStream load (int size, out string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
3647 public abstract async GLib.InputStream load_async (int size, GLib.Cancellable? cancellable = null, out string? type = null) throws GLib.Error;
3649 [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_get_type ()")]
3650 public interface Mount : GLib.Object {
3651 public abstract bool can_eject ();
3652 public abstract bool can_unmount ();
3653 [Version (deprecated = true, deprecated_since = "2.22")]
3654 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3655 [Version (since = "2.22")]
3656 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3657 public abstract GLib.File get_default_location ();
3658 public abstract GLib.Drive? get_drive ();
3659 public abstract GLib.Icon get_icon ();
3660 public abstract string get_name ();
3661 public abstract GLib.File get_root ();
3662 [Version (since = "2.32")]
3663 public virtual unowned string? get_sort_key ();
3664 [Version (since = "2.34")]
3665 public abstract GLib.Icon get_symbolic_icon ();
3666 public abstract string? get_uuid ();
3667 public abstract GLib.Volume? get_volume ();
3668 [CCode (array_length = false, array_null_terminated = true)]
3669 [Version (since = "2.18")]
3670 public abstract async string[] guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
3671 [CCode (array_length = false, array_null_terminated = true)]
3672 [Version (since = "2.18")]
3673 public abstract string[] guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
3674 [Version (since = "2.20")]
3675 public bool is_shadowed ();
3676 public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3677 [Version (since = "2.20")]
3678 public void shadow ();
3679 [Version (deprecated = true, deprecated_since = "2.22")]
3680 public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3681 [Version (since = "2.22")]
3682 public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3683 [Version (since = "2.20")]
3684 public void unshadow ();
3685 public virtual signal void changed ();
3686 [Version (since = "2.22")]
3687 public virtual signal void pre_unmount ();
3688 public virtual signal void unmounted ();
3690 [CCode (cheader_filename = "gio/gio.h", type_cname = "GNetworkMonitorInterface", type_id = "g_network_monitor_get_type ()")]
3691 [Version (since = "2.32")]
3692 public interface NetworkMonitor : GLib.Initable, GLib.Object {
3693 public abstract bool can_reach (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
3694 public abstract async bool can_reach_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
3695 [Version (since = "2.44")]
3696 public GLib.NetworkConnectivity get_connectivity ();
3697 public static unowned GLib.NetworkMonitor get_default ();
3698 public bool get_network_available ();
3699 [Version (since = "2.46")]
3700 public bool get_network_metered ();
3702 [Version (since = "2.44")]
3703 public abstract GLib.NetworkConnectivity connectivity { get; }
3705 public abstract bool network_available { get; }
3707 [Version (since = "2.46")]
3708 public abstract bool network_metered { get; }
3709 public virtual signal void network_changed (bool network_available);
3711 [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableInputStreamInterface", type_id = "g_pollable_input_stream_get_type ()")]
3712 [Version (since = "2.28")]
3713 public interface PollableInputStream : GLib.InputStream {
3714 public abstract bool can_poll ();
3715 public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
3716 public abstract bool is_readable ();
3717 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;
3718 [CCode (vfunc_name = "read_nonblocking")]
3719 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;
3721 [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableOutputStreamInterface", type_id = "g_pollable_output_stream_get_type ()")]
3722 [Version (since = "2.28")]
3723 public interface PollableOutputStream : GLib.OutputStream {
3724 public abstract bool can_poll ();
3725 public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
3726 public abstract bool is_writable ();
3727 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;
3729 [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
3730 [Version (since = "2.26")]
3731 public interface Proxy : GLib.Object {
3732 public abstract GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
3733 public abstract async GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
3734 public static GLib.Proxy get_default_for_protocol (string protocol);
3735 public abstract bool supports_hostname ();
3737 [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyResolverInterface", type_id = "g_proxy_resolver_get_type ()")]
3738 [Version (since = "2.26")]
3739 public interface ProxyResolver : GLib.Object {
3740 public static unowned GLib.ProxyResolver get_default ();
3741 public abstract bool is_supported ();
3742 [CCode (array_length = false, array_null_terminated = true)]
3743 public abstract string[] lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
3744 [CCode (array_length = false, array_null_terminated = true)]
3745 public abstract async string[] lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
3747 [CCode (cheader_filename = "gio/gio.h", type_cname = "GRemoteActionGroupInterface", type_id = "g_remote_action_group_get_type ()")]
3748 public interface RemoteActionGroup : GLib.ActionGroup, GLib.Object {
3749 [Version (since = "2.32")]
3750 public abstract void activate_action_full (string action_name, GLib.Variant? parameter, GLib.Variant platform_data);
3751 [Version (since = "2.32")]
3752 public abstract void change_action_state_full (string action_name, GLib.Variant value, GLib.Variant platform_data);
3754 [CCode (cheader_filename = "gio/gio.h", type_id = "g_seekable_get_type ()")]
3755 public interface Seekable : GLib.Object {
3756 public abstract bool can_seek ();
3757 public abstract bool can_truncate ();
3758 public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
3759 public abstract int64 tell ();
3760 [CCode (vfunc_name = "truncate_fn")]
3761 public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
3763 [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_connectable_get_type ()")]
3764 public interface SocketConnectable : GLib.Object {
3765 [Version (since = "2.22")]
3766 public abstract GLib.SocketAddressEnumerator enumerate ();
3767 [Version (since = "2.26")]
3768 public abstract GLib.SocketAddressEnumerator proxy_enumerate ();
3769 [Version (since = "2.48")]
3770 public abstract string to_string ();
3772 [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsBackendInterface", type_id = "g_tls_backend_get_type ()")]
3773 [Version (since = "2.28")]
3774 public interface TlsBackend : GLib.Object {
3775 public abstract GLib.Type get_certificate_type ();
3776 public abstract GLib.Type get_client_connection_type ();
3777 public static unowned GLib.TlsBackend get_default ();
3778 [Version (since = "2.30")]
3779 public abstract GLib.TlsDatabase get_default_database ();
3780 [Version (since = "2.48")]
3781 public GLib.Type get_dtls_client_connection_type ();
3782 [Version (since = "2.48")]
3783 public GLib.Type get_dtls_server_connection_type ();
3784 [Version (since = "2.30")]
3785 public abstract GLib.Type get_file_database_type ();
3786 public abstract GLib.Type get_server_connection_type ();
3787 [Version (since = "2.48")]
3788 public abstract bool supports_dtls ();
3789 public abstract bool supports_tls ();
3791 [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsClientConnectionInterface", type_id = "g_tls_client_connection_get_type ()")]
3792 [Version (since = "2.28")]
3793 public interface TlsClientConnection : GLib.TlsConnection {
3794 [Version (since = "2.46")]
3795 public abstract void copy_session_state (GLib.TlsClientConnection source);
3796 public GLib.List<GLib.ByteArray> get_accepted_cas ();
3797 public unowned GLib.SocketConnectable get_server_identity ();
3798 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3799 public bool get_use_ssl3 ();
3800 public GLib.TlsCertificateFlags get_validation_flags ();
3801 public static GLib.TlsClientConnection? @new (GLib.IOStream base_io_stream, GLib.SocketConnectable? server_identity) throws GLib.Error;
3802 public void set_server_identity (GLib.SocketConnectable identity);
3803 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3804 public void set_use_ssl3 (bool use_ssl3);
3805 public void set_validation_flags (GLib.TlsCertificateFlags flags);
3807 public abstract GLib.List<GLib.ByteArray> accepted_cas { owned get; }
3809 public abstract GLib.SocketConnectable server_identity { get; set construct; }
3811 [Version (deprecated = true, deprecated_since = "2.56", since = "2.28")]
3812 public abstract bool use_ssl3 { get; set construct; }
3814 public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
3816 [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsFileDatabaseInterface", type_id = "g_tls_file_database_get_type ()")]
3817 [Version (since = "2.30")]
3818 public interface TlsFileDatabase : GLib.TlsDatabase {
3819 public static GLib.TlsFileDatabase? @new (string anchors) throws GLib.Error;
3821 public abstract string anchors { owned get; set construct; }
3823 [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsServerConnectionInterface", type_id = "g_tls_server_connection_get_type ()")]
3824 [Version (since = "2.28")]
3825 public interface TlsServerConnection : GLib.TlsConnection {
3826 public static GLib.TlsServerConnection? @new (GLib.IOStream base_io_stream, GLib.TlsCertificate? certificate) throws GLib.Error;
3828 public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
3830 [CCode (cheader_filename = "gio/gio.h", type_id = "g_volume_get_type ()")]
3831 public interface Volume : GLib.Object {
3832 public abstract bool can_eject ();
3833 public abstract bool can_mount ();
3834 [Version (deprecated = true, deprecated_since = "2.22")]
3835 public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
3836 [Version (since = "2.22")]
3837 public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3838 [CCode (array_length = false, array_null_terminated = true)]
3839 public abstract string[] enumerate_identifiers ();
3840 [Version (since = "2.18")]
3841 public abstract GLib.File? get_activation_root ();
3842 public abstract GLib.Drive? get_drive ();
3843 public abstract GLib.Icon get_icon ();
3844 public abstract string? get_identifier (string kind);
3845 public abstract GLib.Mount? get_mount ();
3846 public abstract string get_name ();
3847 [Version (since = "2.32")]
3848 public virtual unowned string? get_sort_key ();
3849 [Version (since = "2.34")]
3850 public abstract GLib.Icon get_symbolic_icon ();
3851 public abstract string? get_uuid ();
3852 [CCode (finish_vfunc_name = "mount_finish", vfunc_name = "mount_fn")]
3853 public abstract async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
3854 public abstract bool should_automount ();
3855 public virtual signal void changed ();
3856 public virtual signal void removed ();
3858 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3859 public struct ActionEntry {
3860 public weak string name;
3861 [CCode (delegate_target = false)]
3862 public weak GLib.SimpleActionActivateCallback? activate;
3863 public weak string? parameter_type;
3864 public weak string? state;
3865 [CCode (delegate_target = false)]
3866 public weak GLib.SimpleActionChangeStateCallback? change_state;
3868 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3869 [Version (since = "2.26")]
3870 public struct DBusErrorEntry {
3871 public int error_code;
3872 public weak string dbus_error_name;
3874 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3875 [Version (since = "2.26")]
3876 public struct DBusInterfaceVTable {
3877 [CCode (delegate_target = false)]
3878 public weak GLib.DBusInterfaceMethodCallFunc method_call;
3879 [CCode (delegate_target = false)]
3880 public weak GLib.DBusInterfaceGetPropertyFunc get_property;
3881 [CCode (delegate_target = false)]
3882 public weak GLib.DBusInterfaceSetPropertyFunc set_property;
3884 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3885 [Version (since = "2.26")]
3886 public struct DBusSubtreeVTable {
3887 [CCode (delegate_target = false)]
3888 public weak GLib.DBusSubtreeEnumerateFunc enumerate;
3889 [CCode (delegate_target = false)]
3890 public weak GLib.DBusSubtreeIntrospectFunc introspect;
3891 [CCode (delegate_target = false)]
3892 public weak GLib.DBusSubtreeDispatchFunc dispatch;
3894 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3895 public struct FileAttributeInfo {
3896 public weak string name;
3897 public GLib.FileAttributeType type;
3898 public GLib.FileAttributeInfoFlags flags;
3900 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3901 [Version (since = "2.48")]
3902 public struct InputMessage {
3903 public weak GLib.SocketAddress address;
3904 [CCode (array_length_cname = "num_vectors", array_length_type = "guint")]
3905 public weak GLib.InputVector[] vectors;
3906 public uint num_vectors;
3907 public size_t bytes_received;
3909 public GLib.SocketControlMessage*** control_messages;
3910 public uint* num_control_messages;
3912 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3913 [Version (since = "2.22")]
3914 public struct InputVector {
3915 public void* buffer;
3918 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3919 [Version (since = "2.44")]
3920 public struct OutputMessage {
3921 public weak GLib.SocketAddress address;
3922 [CCode (array_length_cname = "num_vectors", array_length_type = "guint")]
3923 public weak GLib.OutputVector[] vectors;
3924 public uint num_vectors;
3925 public uint bytes_sent;
3926 public GLib.SocketControlMessage*** control_messages;
3927 public uint* num_control_messages;
3929 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3930 [Version (since = "2.22")]
3931 public struct OutputVector {
3932 public void* buffer;
3935 [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
3936 public struct StaticResource {
3937 [Version (since = "2.32")]
3938 public void fini ();
3939 [Version (since = "2.32")]
3940 public unowned GLib.Resource get_resource ();
3941 [Version (since = "2.32")]
3942 public void init ();
3944 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APP_INFO_CREATE_", type_id = "g_app_info_create_flags_get_type ()")]
3946 public enum AppInfoCreateFlags {
3950 SUPPORTS_STARTUP_NOTIFICATION
3952 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APPLICATION_", type_id = "g_application_flags_get_type ()")]
3954 [Version (since = "2.28")]
3955 public enum ApplicationFlags {
3960 HANDLES_COMMAND_LINE,
3965 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ASK_PASSWORD_", type_id = "g_ask_password_flags_get_type ()")]
3967 public enum AskPasswordFlags {
3972 ANONYMOUS_SUPPORTED,
3975 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_OWNER_FLAGS_", type_id = "g_bus_name_owner_flags_get_type ()")]
3977 [Version (since = "2.26")]
3978 public enum BusNameOwnerFlags {
3984 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_WATCHER_FLAGS_", type_id = "g_bus_name_watcher_flags_get_type ()")]
3986 [Version (since = "2.26")]
3987 public enum BusNameWatcherFlags {
3991 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_TYPE_", type_id = "g_bus_type_get_type ()")]
3992 [Version (since = "2.26")]
3993 public enum BusType {
3998 [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_for_bus_sync")]
3999 public static string get_address_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
4001 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_", type_id = "g_converter_flags_get_type ()")]
4003 [Version (since = "2.24")]
4004 public enum ConverterFlags {
4005 [CCode (cname = "G_CONVERTER_NO_FLAGS")]
4010 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_", type_id = "g_converter_result_get_type ()")]
4011 [Version (since = "2.24")]
4012 public enum ConverterResult {
4018 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CREDENTIALS_TYPE_", type_id = "g_credentials_type_get_type ()")]
4019 [Version (since = "2.26")]
4020 public enum CredentialsType {
4024 OPENBSD_SOCKPEERCRED,
4028 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CALL_FLAGS_", type_id = "g_dbus_call_flags_get_type ()")]
4030 [Version (since = "2.26")]
4031 public enum DBusCallFlags {
4034 ALLOW_INTERACTIVE_AUTHORIZATION
4036 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CAPABILITY_FLAGS_", type_id = "g_dbus_capability_flags_get_type ()")]
4038 [Version (since = "2.26")]
4039 public enum DBusCapabilityFlags {
4043 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CONNECTION_FLAGS_", type_id = "g_dbus_connection_flags_get_type ()")]
4045 [Version (since = "2.26")]
4046 public enum DBusConnectionFlags {
4048 AUTHENTICATION_CLIENT,
4049 AUTHENTICATION_SERVER,
4050 AUTHENTICATION_ALLOW_ANONYMOUS,
4051 MESSAGE_BUS_CONNECTION,
4052 DELAY_MESSAGE_PROCESSING
4054 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_INTERFACE_SKELETON_FLAGS_", type_id = "g_dbus_interface_skeleton_flags_get_type ()")]
4056 [Version (since = "2.30")]
4057 public enum DBusInterfaceSkeletonFlags {
4059 HANDLE_METHOD_INVOCATIONS_IN_THREAD
4061 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", type_id = "g_dbus_message_byte_order_get_type ()")]
4062 [Version (since = "2.26")]
4063 public enum DBusMessageByteOrder {
4067 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_FLAGS_", type_id = "g_dbus_message_flags_get_type ()")]
4069 [Version (since = "2.26")]
4070 public enum DBusMessageFlags {
4074 ALLOW_INTERACTIVE_AUTHORIZATION
4076 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", type_id = "g_dbus_message_header_field_get_type ()")]
4077 [Version (since = "2.26")]
4078 public enum DBusMessageHeaderField {
4090 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_TYPE_", type_id = "g_dbus_message_type_get_type ()")]
4091 [Version (since = "2.26")]
4092 public enum DBusMessageType {
4099 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_", type_id = "g_dbus_object_manager_client_flags_get_type ()")]
4101 [Version (since = "2.30")]
4102 public enum DBusObjectManagerClientFlags {
4106 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", type_id = "g_dbus_property_info_flags_get_type ()")]
4108 [Version (since = "2.26")]
4109 public enum DBusPropertyInfoFlags {
4114 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROXY_FLAGS_", type_id = "g_dbus_proxy_flags_get_type ()")]
4116 [Version (since = "2.26")]
4117 public enum DBusProxyFlags {
4119 DO_NOT_LOAD_PROPERTIES,
4120 DO_NOT_CONNECT_SIGNALS,
4122 GET_INVALIDATED_PROPERTIES,
4123 DO_NOT_AUTO_START_AT_CONSTRUCTION
4125 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", type_id = "g_dbus_send_message_flags_get_type ()")]
4127 [Version (since = "2.26")]
4128 public enum DBusSendMessageFlags {
4132 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SERVER_FLAGS_", type_id = "g_dbus_server_flags_get_type ()")]
4134 [Version (since = "2.26")]
4135 public enum DBusServerFlags {
4138 AUTHENTICATION_ALLOW_ANONYMOUS
4140 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SIGNAL_FLAGS_", type_id = "g_dbus_signal_flags_get_type ()")]
4142 [Version (since = "2.26")]
4143 public enum DBusSignalFlags {
4146 MATCH_ARG0_NAMESPACE,
4149 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SUBTREE_FLAGS_", type_id = "g_dbus_subtree_flags_get_type ()")]
4151 [Version (since = "2.26")]
4152 public enum DBusSubtreeFlags {
4154 DISPATCH_TO_UNENUMERATED_NODES
4156 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_BYTE_ORDER_", type_id = "g_data_stream_byte_order_get_type ()")]
4157 public enum DataStreamByteOrder {
4162 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", type_id = "g_data_stream_newline_type_get_type ()")]
4163 public enum DataStreamNewlineType {
4169 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_", type_id = "g_drive_start_flags_get_type ()")]
4171 [Version (since = "2.22")]
4172 public enum DriveStartFlags {
4175 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_STOP_TYPE_", type_id = "g_drive_start_stop_type_get_type ()")]
4176 [Version (since = "2.22")]
4177 public enum DriveStartStopType {
4184 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_EMBLEM_ORIGIN_", type_id = "g_emblem_origin_get_type ()")]
4185 [Version (since = "2.18")]
4186 public enum EmblemOrigin {
4192 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_INFO_", type_id = "g_file_attribute_info_flags_get_type ()")]
4194 public enum FileAttributeInfoFlags {
4199 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_STATUS_", type_id = "g_file_attribute_status_get_type ()")]
4200 public enum FileAttributeStatus {
4205 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_TYPE_", type_id = "g_file_attribute_type_get_type ()")]
4206 public enum FileAttributeType {
4218 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_COPY_", type_id = "g_file_copy_flags_get_type ()")]
4220 public enum FileCopyFlags {
4226 NO_FALLBACK_FOR_MOVE,
4227 TARGET_DEFAULT_PERMS
4229 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_CREATE_", type_id = "g_file_create_flags_get_type ()")]
4231 public enum FileCreateFlags {
4236 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MEASURE_", type_id = "g_file_measure_flags_get_type ()")]
4238 [Version (since = "2.38")]
4239 public enum FileMeasureFlags {
4245 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_EVENT_", type_id = "g_file_monitor_event_get_type ()")]
4246 public enum FileMonitorEvent {
4259 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_", type_id = "g_file_monitor_flags_get_type ()")]
4261 public enum FileMonitorFlags {
4268 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_QUERY_INFO_", type_id = "g_file_query_info_flags_get_type ()")]
4270 public enum FileQueryInfoFlags {
4274 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_TYPE_", type_id = "g_file_type_get_type ()")]
4275 public enum FileType {
4284 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", type_id = "g_filesystem_preview_type_get_type ()")]
4285 public enum FilesystemPreviewType {
4290 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_MODULE_SCOPE_", type_id = "g_io_module_scope_flags_get_type ()")]
4291 [Version (since = "2.30")]
4292 public enum IOModuleScopeFlags {
4296 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_STREAM_SPLICE_", type_id = "g_io_stream_splice_flags_get_type ()")]
4298 [Version (since = "2.28")]
4299 public enum IOStreamSpliceFlags {
4305 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_MOUNT_", type_id = "g_mount_mount_flags_get_type ()")]
4307 public enum MountMountFlags {
4310 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_OPERATION_", type_id = "g_mount_operation_result_get_type ()")]
4311 public enum MountOperationResult {
4316 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_UNMOUNT_", type_id = "g_mount_unmount_flags_get_type ()")]
4318 public enum MountUnmountFlags {
4322 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NETWORK_CONNECTIVITY_", type_id = "g_network_connectivity_get_type ()")]
4323 [Version (since = "2.44")]
4324 public enum NetworkConnectivity {
4330 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NOTIFICATION_PRIORITY_", type_id = "g_notification_priority_get_type ()")]
4331 [Version (since = "2.42")]
4332 public enum NotificationPriority {
4338 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_OUTPUT_STREAM_SPLICE_", type_id = "g_output_stream_splice_flags_get_type ()")]
4340 public enum OutputStreamSpliceFlags {
4345 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_PASSWORD_SAVE_", type_id = "g_password_save_get_type ()")]
4346 public enum PasswordSave {
4351 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_RECORD_", type_id = "g_resolver_record_type_get_type ()")]
4352 [Version (since = "2.34")]
4353 public enum ResolverRecordType {
4360 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_FLAGS_", type_id = "g_resource_flags_get_type ()")]
4362 [Version (since = "2.32")]
4363 public enum ResourceFlags {
4367 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_LOOKUP_FLAGS_", type_id = "g_resource_lookup_flags_get_type ()")]
4369 [Version (since = "2.32")]
4370 public enum ResourceLookupFlags {
4373 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SETTINGS_BIND_", type_id = "g_settings_bind_flags_get_type ()")]
4375 public enum SettingsBindFlags {
4383 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_CLIENT_", type_id = "g_socket_client_event_get_type ()")]
4384 [Version (since = "2.32")]
4385 public enum SocketClientEvent {
4396 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_FAMILY_", type_id = "g_socket_family_get_type ()")]
4397 [Version (since = "2.22")]
4398 public enum SocketFamily {
4404 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_LISTENER_", type_id = "g_socket_listener_event_get_type ()")]
4405 [Version (since = "2.46")]
4406 public enum SocketListenerEvent {
4412 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_MSG_", type_id = "g_socket_msg_flags_get_type ()")]
4414 [Version (since = "2.22")]
4415 public enum SocketMsgFlags {
4421 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_PROTOCOL_", type_id = "g_socket_protocol_get_type ()")]
4422 [Version (since = "2.22")]
4423 public enum SocketProtocol {
4430 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_TYPE_", type_id = "g_socket_type_get_type ()")]
4431 [Version (since = "2.22")]
4432 public enum SocketType {
4438 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SUBPROCESS_FLAGS_", type_id = "g_subprocess_flags_get_type ()")]
4440 [Version (since = "2.40")]
4441 public enum SubprocessFlags {
4452 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TEST_DBUS_", type_id = "g_test_dbus_flags_get_type ()")]
4454 [Version (since = "2.34")]
4455 public enum TestDBusFlags {
4458 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_AUTHENTICATION_", type_id = "g_tls_authentication_mode_get_type ()")]
4459 [Version (since = "2.28")]
4460 public enum TlsAuthenticationMode {
4465 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_", type_id = "g_tls_certificate_flags_get_type ()")]
4467 [Version (since = "2.28")]
4468 public enum TlsCertificateFlags {
4478 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_REQUEST_", type_id = "g_tls_certificate_request_flags_get_type ()")]
4479 [Version (since = "2.40")]
4480 public enum TlsCertificateRequestFlags {
4483 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_LOOKUP_", type_id = "g_tls_database_lookup_flags_get_type ()")]
4484 [Version (since = "2.30")]
4485 public enum TlsDatabaseLookupFlags {
4489 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_VERIFY_", type_id = "g_tls_database_verify_flags_get_type ()")]
4491 [Version (since = "2.30")]
4492 public enum TlsDatabaseVerifyFlags {
4495 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_INTERACTION_", type_id = "g_tls_interaction_result_get_type ()")]
4496 [Version (since = "2.30")]
4497 public enum TlsInteractionResult {
4502 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_PASSWORD_", type_id = "g_tls_password_flags_get_type ()")]
4504 [Version (since = "2.30")]
4505 public enum TlsPasswordFlags {
4511 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_REHANDSHAKE_", type_id = "g_tls_rehandshake_mode_get_type ()")]
4512 [Version (since = "2.28")]
4513 public enum TlsRehandshakeMode {
4518 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_UNIX_SOCKET_ADDRESS_", type_id = "g_unix_socket_address_type_get_type ()")]
4519 [Version (since = "2.26")]
4520 public enum UnixSocketAddressType {
4527 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", type_id = "g_zlib_compressor_format_get_type ()")]
4528 [Version (since = "2.24")]
4529 public enum ZlibCompressorFormat {
4534 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_ERROR_")]
4535 [Version (since = "2.26")]
4536 public errordomain DBusError {
4558 MATCH_RULE_NOT_FOUND,
4563 SPAWN_CHILD_SIGNALED,
4566 SPAWN_CONFIG_INVALID,
4567 SPAWN_SERVICE_INVALID,
4568 SPAWN_SERVICE_NOT_FOUND,
4569 SPAWN_PERMISSIONS_INVALID,
4572 UNIX_PROCESS_ID_UNKNOWN,
4574 INVALID_FILE_CONTENT,
4575 SELINUX_SECURITY_CONTEXT_UNKNOWN,
4576 ADT_AUDIT_DATA_UNKNOWN,
4582 [CCode (cheader_filename = "gio/gio.h")]
4583 public static string encode_gerror (GLib.Error error);
4584 [CCode (cheader_filename = "gio/gio.h")]
4585 public static string get_remote_error (GLib.Error error);
4586 [CCode (cheader_filename = "gio/gio.h")]
4587 public static bool is_remote_error (GLib.Error error);
4588 [CCode (cheader_filename = "gio/gio.h")]
4589 public static GLib.Error new_for_dbus_error (string dbus_error_name, string dbus_error_message);
4590 [CCode (cheader_filename = "gio/gio.h")]
4591 public static GLib.Quark quark ();
4592 [CCode (cheader_filename = "gio/gio.h")]
4593 public static bool register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
4594 [CCode (cheader_filename = "gio/gio.h")]
4595 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);
4596 [CCode (cheader_filename = "gio/gio.h")]
4597 public static bool strip_remote_error (GLib.Error error);
4598 [CCode (cheader_filename = "gio/gio.h")]
4599 public static bool unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
4601 [CCode (cheader_filename = "gio/gio.h", cname = "GIOErrorEnum", cprefix = "G_IO_ERROR_")]
4602 [GIR (name = "IOErrorEnum")]
4603 public errordomain IOError {
4635 TOO_MANY_OPEN_FILES,
4642 NETWORK_UNREACHABLE,
4652 [CCode (cname = "vala_g_io_error_from_errno")]
4653 public static GLib.IOError from_errno (int err_no) {
4654 return (GLib.IOError) new GLib.Error (GLib.IOError.quark (), GLib.IOError._from_errno (err_no), "%s", GLib.strerror (err_no));
4656 [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_from_errno")]
4657 public static int _from_errno (int err_no);
4658 [CCode (cheader_filename = "gio/gio.h")]
4659 public static GLib.Quark quark ();
4661 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_ERROR_")]
4662 [Version (since = "2.22")]
4663 public errordomain ResolverError {
4667 [CCode (cheader_filename = "gio/gio.h")]
4668 public static GLib.Quark quark ();
4670 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_ERROR_")]
4671 [Version (since = "2.32")]
4672 public errordomain ResourceError {
4675 [CCode (cheader_filename = "gio/gio.h")]
4676 public static GLib.Quark quark ();
4678 [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_ERROR_")]
4679 [Version (since = "2.28")]
4680 public errordomain TlsError {
4686 CERTIFICATE_REQUIRED,
4689 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4690 public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
4691 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4692 [Version (since = "2.26")]
4693 public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
4694 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4695 [Version (since = "2.26")]
4696 public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
4697 [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4698 [Version (since = "2.26")]
4699 public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
4700 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4701 [Version (since = "2.26")]
4702 public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
4703 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4704 [Version (since = "2.26")]
4705 public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
4706 [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
4707 [Version (since = "2.28")]
4708 public delegate bool CancellableSourceFunc (GLib.Cancellable? cancellable = null);
4709 [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4710 public delegate GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error;
4711 [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
4712 [Version (since = "2.26")]
4713 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);
4714 [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
4715 public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
4716 [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4717 [Version (since = "2.26")]
4718 public delegate GLib.DBusMessage? DBusMessageFilterFunction (GLib.DBusConnection connection, owned GLib.DBusMessage message, bool incoming);
4719 [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4720 [Version (since = "2.30")]
4721 public delegate GLib.Type DBusProxyTypeFunc (GLib.DBusObjectManagerClient manager, string object_path, string? interface_name);
4722 [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4723 [Version (since = "2.26")]
4724 public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
4725 [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
4726 [Version (since = "2.26")]
4727 public delegate unowned GLib.DBusInterfaceVTable? DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
4728 [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h", instance_pos = 3.9)]
4729 [Version (since = "2.26")]
4730 public delegate string[] DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
4731 [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
4732 [Version (since = "2.26")]
4733 public delegate GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
4734 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4735 [Version (since = "2.48")]
4736 public delegate bool DatagramBasedSourceFunc (GLib.DatagramBased datagram_based, GLib.IOCondition condition);
4737 [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
4738 [Version (since = "2.38")]
4739 public delegate void FileMeasureProgressCallback (bool reporting, uint64 current_size, uint64 num_dirs, uint64 num_files);
4740 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4741 public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
4742 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4743 public delegate bool FileReadMoreCallback (string file_contents, int64 file_size);
4744 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4745 public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable? cancellable = null);
4746 [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
4747 [Version (since = "2.28")]
4748 public delegate bool PollableSourceFunc (GLib.Object pollable_stream);
4749 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4750 public delegate void* ReallocFunc (void* data, size_t size);
4751 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4752 public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
4753 [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindGetMapping", has_target = false)]
4754 public delegate bool SettingsBindGetMappingShared (GLib.Value value, GLib.Variant variant, void* user_data);
4755 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4756 public delegate GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
4757 [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindSetMapping", has_target = false)]
4758 public delegate GLib.Variant SettingsBindSetMappingShared (GLib.Value value, GLib.VariantType expected_type, void* user_data);
4759 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4760 public delegate bool SettingsGetMapping (GLib.Variant value, out void* result);
4761 [CCode (cheader_filename = "gio/gio.h")]
4762 public delegate void SimpleActionActivateCallback (GLib.SimpleAction action, GLib.Variant? parameter);
4763 [CCode (cheader_filename = "gio/gio.h")]
4764 public delegate void SimpleActionChangeStateCallback (GLib.SimpleAction action, GLib.Variant value);
4765 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4766 public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable? cancellable = null);
4767 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4768 [Version (since = "2.22")]
4769 public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
4770 [CCode (cheader_filename = "gio/gio.h", cname = "GAsyncReadyCallback", instance_pos = 2.9)]
4771 public delegate void TaskReadyCallback (GLib.Object? source_object, GLib.Task task);
4772 [CCode (cheader_filename = "gio/gio.h", cname = "GSourceFunc", has_target = false)]
4773 public delegate bool TaskSourceFunc (GLib.Task task);
4774 [CCode (cheader_filename = "gio/gio.h", has_target = false)]
4775 [Version (since = "2.36")]
4776 public delegate void TaskThreadFunc (GLib.Task task, GLib.Object source_object, void* task_data, GLib.Cancellable? cancellable = null);
4777 [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
4778 [Version (since = "2.50")]
4779 public delegate GLib.File VfsFileLookupFunc (GLib.Vfs vfs, string identifier);
4780 [CCode (cheader_filename = "glib.h", cname = "g_realloc")]
4781 public static GLib.ReallocFunc g_realloc;
4782 [CCode (cheader_filename = "gio/gio.h", cname = "G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE")]
4783 [Version (since = "2.58")]
4784 public const string DRIVE_IDENTIFIER_KIND_UNIX_DEVICE;
4785 [CCode (cheader_filename = "gio/gio.h")]
4786 [Version (since = "2.38")]
4787 public static bool action_name_is_valid (string action_name);
4788 [CCode (cheader_filename = "gio/gio.h")]
4789 [Version (since = "2.38")]
4790 public static bool action_parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
4791 [CCode (cheader_filename = "gio/gio.h")]
4792 [Version (since = "2.38")]
4793 public static string action_print_detailed_name (string action_name, GLib.Variant? target_value);
4794 [CCode (cheader_filename = "gio/gio.h")]
4795 [Version (since = "2.48")]
4796 public static GLib.DtlsClientConnection dtls_client_connection_new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
4797 [CCode (cheader_filename = "gio/gio.h")]
4798 [Version (since = "2.48")]
4799 public static GLib.DtlsServerConnection dtls_server_connection_new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
4800 [CCode (cheader_filename = "gio/gio.h")]
4801 [Version (since = "2.36")]
4802 public static void networking_init ();
4803 [CCode (cheader_filename = "gio/gio.h")]
4804 [Version (since = "2.34")]
4805 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;
4806 [CCode (cheader_filename = "gio/gio.h")]
4807 [Version (since = "2.34")]
4808 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;
4809 [CCode (cheader_filename = "gio/gio.h")]
4810 [Version (since = "2.34")]
4811 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;
4812 [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
4813 [Version (since = "2.32")]
4814 public static string[] resources_enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
4815 [CCode (cheader_filename = "gio/gio.h")]
4816 [Version (since = "2.32")]
4817 public static bool resources_get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
4818 [CCode (cheader_filename = "gio/gio.h")]
4819 [Version (since = "2.32")]
4820 public static GLib.Bytes resources_lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
4821 [CCode (cheader_filename = "gio/gio.h")]
4822 [Version (since = "2.32")]
4823 public static GLib.InputStream resources_open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
4824 [CCode (cheader_filename = "gio/gio.h")]
4825 [Version (since = "2.32")]
4826 public static void resources_register (GLib.Resource resource);
4827 [CCode (cheader_filename = "gio/gio.h")]
4828 [Version (since = "2.32")]
4829 public static void resources_unregister (GLib.Resource resource);