gio-2.0.vapi 277 KB
Newer Older
1
/* gio-2.0.vapi generated by vapigen, do not modify. */
2

3
[CCode (cprefix = "G", gir_namespace = "Gio", gir_version = "2.0", lower_case_cprefix = "g_")]
4
namespace GLib {
5 6 7 8
	namespace Bus {
		[CCode (cheader_filename = "gio/gio.h")]
		public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
		[CCode (cheader_filename = "gio/gio.h")]
9 10
		public static async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
		[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")]
Evan Nemerson's avatar
Evan Nemerson committed
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")]
Evan Nemerson's avatar
Evan Nemerson committed
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 23
		public static void unown_name (uint owner_id);
		[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")]
Evan Nemerson's avatar
Evan Nemerson committed
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")]
Evan Nemerson's avatar
Evan Nemerson committed
31
		public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
32
	}
33 34 35 36 37 38
	namespace ContentType {
		[CCode (cheader_filename = "gio/gio.h")]
		public static bool can_be_executable (string type);
		[CCode (cheader_filename = "gio/gio.h")]
		public static bool equals (string type1, string type2);
		[CCode (cheader_filename = "gio/gio.h")]
39
		[Version (since = "2.18")]
40
		public static string? from_mime_type (string mime_type);
41 42 43
		[CCode (cheader_filename = "gio/gio.h")]
		public static string get_description (string type);
		[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 48
		public static GLib.Icon get_icon (string type);
		[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 53
		public static GLib.Icon get_symbolic_icon (string type);
		[CCode (cheader_filename = "gio/gio.h")]
Evan Nemerson's avatar
Evan Nemerson committed
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 59 60 61
		[CCode (cheader_filename = "gio/gio.h")]
		public static bool is_a (string type, string supertype);
		[CCode (cheader_filename = "gio/gio.h")]
		public static bool is_unknown (string type);
Evan Nemerson's avatar
Evan Nemerson committed
62 63
		[CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
		public static GLib.List<string> list_registered ();
64
	}
Evan Nemerson's avatar
Evan Nemerson committed
65
	namespace DBus {
66
		[CCode (cheader_filename = "gio/gio.h")]
67
		[Version (since = "2.36")]
68
		public static string address_escape_value (string string);
Evan Nemerson's avatar
Evan Nemerson committed
69
		[CCode (cheader_filename = "gio/gio.h")]
70
		[Version (since = "2.26")]
71
		public static async GLib.IOStream address_get_stream (string address, GLib.Cancellable? cancellable = null, out string out_guid) throws GLib.Error;
Evan Nemerson's avatar
Evan Nemerson committed
72
		[CCode (cheader_filename = "gio/gio.h")]
73
		[Version (since = "2.26")]
74
		public static GLib.IOStream address_get_stream_sync (string address, out string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
Evan Nemerson's avatar
Evan Nemerson committed
75
		[CCode (cheader_filename = "gio/gio.h")]
76
		[Version (since = "2.26")]
77
		public static unowned string annotation_info_lookup ([CCode (array_length = false, array_null_terminated = true)] GLib.DBusAnnotationInfo[]? annotations, string name);
Evan Nemerson's avatar
Evan Nemerson committed
78
		[CCode (cheader_filename = "gio/gio.h")]
79
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
80 81
		public static string generate_guid ();
		[CCode (cheader_filename = "gio/gio.h")]
82
		[Version (since = "2.30")]
Evan Nemerson's avatar
Evan Nemerson committed
83 84
		public static GLib.Variant gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
		[CCode (cheader_filename = "gio/gio.h")]
85
		[Version (since = "2.30")]
86
		public static GLib.Value gvariant_to_gvalue (GLib.Variant value);
Evan Nemerson's avatar
Evan Nemerson committed
87
		[CCode (cheader_filename = "gio/gio.h")]
88
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
89 90
		public static bool is_address (string string);
		[CCode (cheader_filename = "gio/gio.h")]
91
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
92 93
		public static bool is_guid (string string);
		[CCode (cheader_filename = "gio/gio.h")]
94
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
95 96
		public static bool is_interface_name (string string);
		[CCode (cheader_filename = "gio/gio.h")]
97
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
98 99
		public static bool is_member_name (string string);
		[CCode (cheader_filename = "gio/gio.h")]
100
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
101 102
		public static bool is_name (string string);
		[CCode (cheader_filename = "gio/gio.h")]
103
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
104 105
		public static bool is_supported_address (string string) throws GLib.Error;
		[CCode (cheader_filename = "gio/gio.h")]
106
		[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
		public static bool is_unique_name (string string);
	}
	namespace FileAttribute {
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE")]
		public const string ACCESS_CAN_DELETE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE")]
		public const string ACCESS_CAN_EXECUTE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_READ")]
		public const string ACCESS_CAN_READ;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME")]
		public const string ACCESS_CAN_RENAME;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH")]
		public const string ACCESS_CAN_TRASH;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE")]
		public const string ACCESS_CAN_WRITE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE")]
		public const string DOS_IS_ARCHIVE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_SYSTEM")]
		public const string DOS_IS_SYSTEM;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ETAG_VALUE")]
		public const string ETAG_VALUE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_FREE")]
		public const string FILESYSTEM_FREE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_READONLY")]
		public const string FILESYSTEM_READONLY;
132 133
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE")]
		public const string FILESYSTEM_REMOTE;
Evan Nemerson's avatar
Evan Nemerson committed
134 135 136 137 138
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_SIZE")]
		public const string FILESYSTEM_SIZE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_TYPE")]
		public const string FILESYSTEM_TYPE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USED")]
139
		[Version (since = "2.32")]
Evan Nemerson's avatar
Evan Nemerson committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153
		public const string FILESYSTEM_USED;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW")]
		public const string FILESYSTEM_USE_PREVIEW;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_GVFS_BACKEND")]
		public const string GVFS_BACKEND;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILE")]
		public const string ID_FILE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILESYSTEM")]
		public const string ID_FILESYSTEM;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT")]
		public const string MOUNTABLE_CAN_EJECT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT")]
		public const string MOUNTABLE_CAN_MOUNT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL")]
154
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
155 156
		public const string MOUNTABLE_CAN_POLL;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START")]
157
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
158 159
		public const string MOUNTABLE_CAN_START;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED")]
160
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
161 162
		public const string MOUNTABLE_CAN_START_DEGRADED;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP")]
163
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
164 165 166 167 168 169
		public const string MOUNTABLE_CAN_STOP;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT")]
		public const string MOUNTABLE_CAN_UNMOUNT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI")]
		public const string MOUNTABLE_HAL_UDI;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
170
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
171 172
		public const string MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE")]
173
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
174 175 176 177
		public const string MOUNTABLE_START_STOP_TYPE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE")]
		public const string MOUNTABLE_UNIX_DEVICE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE")]
178
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
179 180 181 182 183 184 185 186
		public const string MOUNTABLE_UNIX_DEVICE_FILE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_GROUP")]
		public const string OWNER_GROUP;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER")]
		public const string OWNER_USER;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER_REAL")]
		public const string OWNER_USER_REAL;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_PREVIEW_ICON")]
187
		[Version (since = "2.20")]
Evan Nemerson's avatar
Evan Nemerson committed
188 189 190 191
		public const string PREVIEW_ICON;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_SELINUX_CONTEXT")]
		public const string SELINUX_CONTEXT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE")]
192
		[Version (since = "2.20")]
Evan Nemerson's avatar
Evan Nemerson committed
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
		public const string STANDARD_ALLOCATED_SIZE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE")]
		public const string STANDARD_CONTENT_TYPE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_COPY_NAME")]
		public const string STANDARD_COPY_NAME;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION")]
		public const string STANDARD_DESCRIPTION;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME")]
		public const string STANDARD_DISPLAY_NAME;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME")]
		public const string STANDARD_EDIT_NAME;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE")]
		public const string STANDARD_FAST_CONTENT_TYPE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ICON")]
		public const string STANDARD_ICON;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP")]
		public const string STANDARD_IS_BACKUP;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN")]
		public const string STANDARD_IS_HIDDEN;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK")]
		public const string STANDARD_IS_SYMLINK;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL")]
		public const string STANDARD_IS_VIRTUAL;
216
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE")]
217
		[Version (since = "2.46")]
218
		public const string STANDARD_IS_VOLATILE;
Evan Nemerson's avatar
Evan Nemerson committed
219 220 221 222 223 224
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_NAME")]
		public const string STANDARD_NAME;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SIZE")]
		public const string STANDARD_SIZE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER")]
		public const string STANDARD_SORT_ORDER;
225
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON")]
226
		[Version (since = "2.34")]
227
		public const string STANDARD_SYMBOLIC_ICON;
Evan Nemerson's avatar
Evan Nemerson committed
228 229 230 231 232 233 234 235
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET")]
		public const string STANDARD_SYMLINK_TARGET;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TARGET_URI")]
		public const string STANDARD_TARGET_URI;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TYPE")]
		public const string STANDARD_TYPE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAILING_FAILED")]
		public const string THUMBNAILING_FAILED;
236
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID")]
237
		[Version (since = "2.40")]
238
		public const string THUMBNAIL_IS_VALID;
Evan Nemerson's avatar
Evan Nemerson committed
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_PATH")]
		public const string THUMBNAIL_PATH;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS")]
		public const string TIME_ACCESS;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_USEC")]
		public const string TIME_ACCESS_USEC;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED")]
		public const string TIME_CHANGED;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_USEC")]
		public const string TIME_CHANGED_USEC;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED")]
		public const string TIME_CREATED;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_USEC")]
		public const string TIME_CREATED_USEC;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED")]
		public const string TIME_MODIFIED;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC")]
		public const string TIME_MODIFIED_USEC;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_DELETION_DATE")]
258
		[Version (since = "2.24")]
Evan Nemerson's avatar
Evan Nemerson committed
259 260 261 262
		public const string TRASH_DELETION_DATE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT")]
		public const string TRASH_ITEM_COUNT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ORIG_PATH")]
263
		[Version (since = "2.24")]
Evan Nemerson's avatar
Evan Nemerson committed
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
		public const string TRASH_ORIG_PATH;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCKS")]
		public const string UNIX_BLOCKS;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE")]
		public const string UNIX_BLOCK_SIZE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_DEVICE")]
		public const string UNIX_DEVICE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_GID")]
		public const string UNIX_GID;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_INODE")]
		public const string UNIX_INODE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT")]
		public const string UNIX_IS_MOUNTPOINT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_MODE")]
		public const string UNIX_MODE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_NLINK")]
		public const string UNIX_NLINK;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_RDEV")]
		public const string UNIX_RDEV;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_UID")]
		public const string UNIX_UID;
	}
	namespace VolumeIdentifier {
287 288
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_CLASS")]
		public const string CLASS;
Evan Nemerson's avatar
Evan Nemerson committed
289 290 291 292 293 294 295 296 297 298 299
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_HAL_UDI")]
		public const string HAL_UDI;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_LABEL")]
		public const string LABEL;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT")]
		public const string NFS_MOUNT;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE")]
		public const string UNIX_DEVICE;
		[CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UUID")]
		public const string UUID;
	}
300
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_monitor_get_type ()")]
301
	[Version (since = "2.40")]
302 303 304 305 306 307
	public class AppInfoMonitor : GLib.Object {
		[CCode (has_construct_function = false)]
		protected AppInfoMonitor ();
		public static GLib.AppInfoMonitor @get ();
		public signal void changed ();
	}
Evan Nemerson's avatar
Evan Nemerson committed
308
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_app_launch_context_get_type ()")]
Jürg Billeter's avatar
Jürg Billeter committed
309
	public class AppLaunchContext : GLib.Object {
310 311
		[CCode (has_construct_function = false)]
		public AppLaunchContext ();
312
		public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
Evan Nemerson's avatar
Evan Nemerson committed
313
		[CCode (array_length = false, array_null_terminated = true)]
314
		[Version (since = "2.32")]
Evan Nemerson's avatar
Evan Nemerson committed
315
		public string[] get_environment ();
316
		public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
317
		[Version (since = "2.32")]
318
		public void setenv (string variable, string value);
319
		[Version (since = "2.32")]
320
		public void unsetenv (string variable);
321
		[HasEmitter]
322
		[Version (since = "2.36")]
323
		public virtual signal void launch_failed (string startup_notify_id);
324
		[Version (since = "2.36")]
325
		public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data);
Jürg Billeter's avatar
Jürg Billeter committed
326
	}
Evan Nemerson's avatar
Evan Nemerson committed
327
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_application_get_type ()")]
328
	[Version (since = "2.28")]
329
	public class Application : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
330
		[CCode (has_construct_function = false)]
331
		public Application (string? application_id, GLib.ApplicationFlags flags);
332
		[Version (since = "2.42")]
333
		public void add_main_option (string long_name, char short_name, GLib.OptionFlags flags, GLib.OptionArg arg, string description, string? arg_description);
334
		[Version (since = "2.40")]
David King's avatar
David King committed
335
		public void add_main_option_entries ([CCode (array_length = false, array_null_terminated = true)] GLib.OptionEntry[] entries);
336
		[Version (since = "2.40")]
337
		public void add_option_group (owned GLib.OptionGroup group);
338 339 340 341 342 343
		[NoWrapper]
		public virtual void add_platform_data (GLib.VariantBuilder builder);
		[NoWrapper]
		public virtual void after_emit (GLib.Variant platform_data);
		[NoWrapper]
		public virtual void before_emit (GLib.Variant platform_data);
344
		[Version (since = "2.44")]
345
		public void bind_busy_property (GLib.Object object, string property);
346 347 348 349
		[NoWrapper]
		public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws GLib.Error;
		[NoWrapper]
		public virtual void dbus_unregister (GLib.DBusConnection connection, string object_path);
350
		public unowned string get_application_id ();
351
		[Version (since = "2.34")]
352
		public unowned GLib.DBusConnection get_dbus_connection ();
353
		[Version (since = "2.34")]
354
		public unowned string get_dbus_object_path ();
355
		[Version (since = "2.32")]
356
		public static unowned GLib.Application get_default ();
357 358
		public GLib.ApplicationFlags get_flags ();
		public uint get_inactivity_timeout ();
359
		[Version (since = "2.44")]
360
		public bool get_is_busy ();
361 362
		public bool get_is_registered ();
		public bool get_is_remote ();
363
		[Version (since = "2.42")]
364
		public unowned string? get_resource_base_path ();
365 366 367
		public void hold ();
		public static bool id_is_valid (string application_id);
		[NoWrapper]
368
		public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
369
		[Version (since = "2.38")]
370
		public void mark_busy ();
371
		[Version (since = "2.32")]
372
		public void quit ();
373 374 375 376
		[NoWrapper]
		public virtual void quit_mainloop ();
		public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
		public void release ();
Evan Nemerson's avatar
Evan Nemerson committed
377
		public int run ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] string[]? argv = null);
378 379
		[NoWrapper]
		public virtual void run_mainloop ();
380
		[Version (since = "2.40")]
381
		public void send_notification (string? id, GLib.Notification notification);
382
		[Version (deprecated = true, deprecated_since = "2.32", since = "2.28")]
Evan Nemerson's avatar
Evan Nemerson committed
383
		public void set_action_group (GLib.ActionGroup? action_group);
384
		public void set_application_id (string? application_id);
385
		[Version (since = "2.32")]
386
		public void set_default ();
387 388
		public void set_flags (GLib.ApplicationFlags flags);
		public void set_inactivity_timeout (uint inactivity_timeout);
389
		[Version (since = "2.42")]
390
		public void set_resource_base_path (string? resource_path);
391
		[Version (since = "2.44")]
392
		public void unbind_busy_property (GLib.Object object, string property);
393
		[Version (since = "2.38")]
394
		public void unmark_busy ();
395
		[Version (since = "2.40")]
396
		public void withdraw_notification (string id);
397 398 399 400
		public GLib.ActionGroup action_group { set; }
		public string application_id { get; set construct; }
		public GLib.ApplicationFlags flags { get; set; }
		public uint inactivity_timeout { get; set; }
401
		[Version (since = "2.44")]
402
		public bool is_busy { get; }
403
		public bool is_registered { get; }
404
		public bool is_remote { get; }
405
		public string resource_base_path { get; set; }
406
		[HasEmitter]
407 408
		public virtual signal void activate ();
		public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
409
		[Version (since = "2.40")]
David King's avatar
David King committed
410
		public virtual signal int handle_local_options (GLib.VariantDict options);
411
		[HasEmitter]
Evan Nemerson's avatar
Evan Nemerson committed
412
		public virtual signal void open ([CCode (array_length_cname = "n_files", array_length_pos = 1.5)] GLib.File[] files, string hint);
413
		public virtual signal void shutdown ();
414 415
		public virtual signal void startup ();
	}
Evan Nemerson's avatar
Evan Nemerson committed
416
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_application_command_line_get_type ()")]
417 418 419
	public class ApplicationCommandLine : GLib.Object {
		[CCode (has_construct_function = false)]
		protected ApplicationCommandLine ();
420
		[Version (since = "2.36")]
421
		public GLib.File create_file_for_arg (string arg);
Evan Nemerson's avatar
Evan Nemerson committed
422
		[CCode (array_length_pos = 0.1)]
423
		[Version (since = "2.28")]
424
		public string[] get_arguments ();
425
		[Version (since = "2.28")]
426
		public unowned string? get_cwd ();
Evan Nemerson's avatar
Evan Nemerson committed
427
		[CCode (array_length = false, array_null_terminated = true)]
428
		[Version (since = "2.28")]
Evan Nemerson's avatar
Evan Nemerson committed
429
		public unowned string[] get_environ ();
430
		[Version (since = "2.28")]
431
		public int get_exit_status ();
432
		[Version (since = "2.28")]
433
		public bool get_is_remote ();
434
		[Version (since = "2.40")]
David King's avatar
David King committed
435
		public unowned GLib.VariantDict get_options_dict ();
436
		[Version (since = "2.28")]
437
		public GLib.Variant? get_platform_data ();
438
		[Version (since = "2.34")]
439
		public virtual GLib.InputStream get_stdin ();
440
		[Version (since = "2.28")]
441
		public unowned string getenv (string name);
442
		[PrintfFormat]
443
		[Version (since = "2.28")]
444
		public void print (string format, ...);
445 446
		[NoWrapper]
		public virtual void print_literal (string message);
447
		[PrintfFormat]
448
		[Version (since = "2.28")]
449
		public void printerr (string format, ...);
450 451
		[NoWrapper]
		public virtual void printerr_literal (string message);
452
		[Version (since = "2.28")]
453 454 455
		public void set_exit_status (int exit_status);
		public GLib.Variant arguments { construct; }
		public bool is_remote { get; }
456
		public GLib.Variant options { construct; }
457
		public GLib.Variant platform_data { construct; }
458
	}
Evan Nemerson's avatar
Evan Nemerson committed
459
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_input_stream_get_type ()")]
460
	public class BufferedInputStream : GLib.FilterInputStream, GLib.Seekable {
461
		[CCode (has_construct_function = false, type = "GInputStream*")]
462
		public BufferedInputStream (GLib.InputStream base_stream);
463
		public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
464
		public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
465 466
		public size_t get_available ();
		public size_t get_buffer_size ();
Evan Nemerson's avatar
Evan Nemerson committed
467 468
		public size_t peek ([CCode (array_length_cname = "count", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] buffer, size_t offset = 0);
		[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
469
		public unowned uint8[] peek_buffer ();
470
		public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
471
		public void set_buffer_size (size_t size);
472
		[CCode (has_construct_function = false, type = "GInputStream*")]
473
		public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
474
		public uint buffer_size { get; set construct; }
475
	}
Evan Nemerson's avatar
Evan Nemerson committed
476
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_output_stream_get_type ()")]
477
	public class BufferedOutputStream : GLib.FilterOutputStream, GLib.Seekable {
478
		[CCode (has_construct_function = false, type = "GOutputStream*")]
479
		public BufferedOutputStream (GLib.OutputStream base_stream);
480 481
		public bool get_auto_grow ();
		public size_t get_buffer_size ();
482
		public void set_auto_grow (bool auto_grow);
483
		public void set_buffer_size (size_t size);
484
		[CCode (has_construct_function = false, type = "GOutputStream*")]
485
		public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
486 487
		public bool auto_grow { get; set; }
		public uint buffer_size { get; set construct; }
488
	}
489 490 491
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_bytes_icon_get_type ()")]
	public class BytesIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
		[CCode (has_construct_function = false, type = "GIcon*")]
492
		[Version (since = "2.38")]
493
		public BytesIcon (GLib.Bytes bytes);
494
		[Version (since = "2.38")]
495 496 497
		public unowned GLib.Bytes get_bytes ();
		public GLib.Bytes bytes { get; construct; }
	}
498
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_cancellable_get_type ()")]
499
	public class Cancellable : GLib.Object {
500 501
		[CCode (has_construct_function = false)]
		public Cancellable ();
502
		public void cancel ();
503
		[Version (since = "2.22")]
Evan Nemerson's avatar
Evan Nemerson committed
504
		public ulong connect ([CCode (type = "GCallback")] owned GLib.Func<GLib.Cancellable> callback);
505
		[Version (since = "2.22")]
506
		public void disconnect (ulong handler_id);
507
		public static unowned GLib.Cancellable? get_current ();
508 509
		public int get_fd ();
		public bool is_cancelled ();
510
		[Version (since = "2.22")]
511
		public bool make_pollfd (GLib.PollFD pollfd);
Jürg Billeter's avatar
Jürg Billeter committed
512 513
		public void pop_current ();
		public void push_current ();
514
		[Version (since = "2.22")]
515
		public void release_fd ();
516
		public void reset ();
517
		public bool set_error_if_cancelled () throws GLib.IOError;
518
		[Version (since = "2.28")]
Evan Nemerson's avatar
Evan Nemerson committed
519
		public GLib.CancellableSource source_new ();
520
		public virtual signal void cancelled ();
521
	}
Evan Nemerson's avatar
Evan Nemerson committed
522 523 524 525 526 527 528
	[CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
	[Compact]
	public class CancellableSource : GLib.Source {
		[CCode (cname = "g_source_set_callback")]
		public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.CancellableSourceFunc func);
	}
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_charset_converter_get_type ()")]
529 530
	public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
		[CCode (has_construct_function = false)]
531
		[Version (since = "2.24")]
532
		public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
533
		[Version (since = "2.24")]
534
		public uint get_num_fallbacks ();
535
		[Version (since = "2.24")]
536
		public bool get_use_fallback ();
537
		[Version (since = "2.24")]
538 539 540 541 542 543 544
		public void set_use_fallback (bool use_fallback);
		[NoAccessorMethod]
		public string from_charset { owned get; construct; }
		[NoAccessorMethod]
		public string to_charset { owned get; construct; }
		public bool use_fallback { get; set construct; }
	}
Evan Nemerson's avatar
Evan Nemerson committed
545
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_input_stream_get_type ()")]
546
	public class ConverterInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
547
		[CCode (has_construct_function = false, type = "GInputStream*")]
548
		public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
549
		[Version (since = "2.24")]
550 551 552
		public unowned GLib.Converter get_converter ();
		public GLib.Converter converter { get; construct; }
	}
Evan Nemerson's avatar
Evan Nemerson committed
553
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_output_stream_get_type ()")]
554
	public class ConverterOutputStream : GLib.FilterOutputStream, GLib.PollableOutputStream {
555
		[CCode (has_construct_function = false, type = "GOutputStream*")]
556
		public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
557
		[Version (since = "2.24")]
558 559 560
		public unowned GLib.Converter get_converter ();
		public GLib.Converter converter { get; construct; }
	}
Evan Nemerson's avatar
Evan Nemerson committed
561
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_credentials_get_type ()")]
562
	[Version (since = "2.26")]
563 564 565
	public class Credentials : GLib.Object {
		[CCode (has_construct_function = false)]
		public Credentials ();
566
		public void* get_native (GLib.CredentialsType native_type);
567
		[Version (since = "2.36")]
568
		public int get_unix_pid () throws GLib.Error;
569 570
		public uint get_unix_user () throws GLib.Error;
		public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
571
		public void set_native (GLib.CredentialsType native_type, void* native);
572
		public bool set_unix_user (uint uid) throws GLib.Error;
Evan Nemerson's avatar
Evan Nemerson committed
573
		public string to_string ();
574
	}
Evan Nemerson's avatar
Evan Nemerson committed
575
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_action_group_get_type ()")]
576 577 578
	public class DBusActionGroup : GLib.Object, GLib.ActionGroup, GLib.RemoteActionGroup {
		[CCode (has_construct_function = false)]
		protected DBusActionGroup ();
579
		[Version (since = "2.32")]
580 581
		public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string bus_name, string object_path);
	}
582
	[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")]
583
	[Compact]
584
	[Version (since = "2.26")]
585
	public class DBusAnnotationInfo {
586
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
587 588
		public GLib.DBusAnnotationInfo[] annotations;
		public string key;
589
		public int ref_count;
Evan Nemerson's avatar
Evan Nemerson committed
590
		public string value;
591
		public unowned GLib.DBusAnnotationInfo @ref ();
592
		public void unref ();
593
	}
594
	[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")]
595
	[Compact]
596
	[Version (since = "2.26")]
597
	public class DBusArgInfo {
598
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
599 600
		public GLib.DBusAnnotationInfo[] annotations;
		public string name;
601
		public int ref_count;
Evan Nemerson's avatar
Evan Nemerson committed
602
		public string signature;
603
		public unowned GLib.DBusArgInfo @ref ();
604
		public void unref ();
605
	}
Evan Nemerson's avatar
Evan Nemerson committed
606
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_auth_observer_get_type ()")]
607
	[Version (since = "2.26")]
608 609 610
	public class DBusAuthObserver : GLib.Object {
		[CCode (has_construct_function = false)]
		public DBusAuthObserver ();
611
		[HasEmitter]
612
		[Version (since = "2.34")]
613
		public signal bool allow_mechanism (string mechanism);
614
		public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials? credentials);
615
	}
616
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_connection_get_type ()")]
617
	[Version (since = "2.26")]
Evan Nemerson's avatar
Evan Nemerson committed
618
	public class DBusConnection : GLib.Object, GLib.AsyncInitable, GLib.Initable, GLib.AsyncInitable, GLib.Initable {
619 620
		[CCode (cname = "g_dbus_connection_new", has_construct_function = false)]
		public async DBusConnection (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
621
		public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
Evan Nemerson's avatar
Evan Nemerson committed
622
		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;
623
		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;
624
		[Version (since = "2.30")]
625
		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;
626
		[Version (since = "2.30")]
627
		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;
628
		public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
629
		public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
Evan Nemerson's avatar
Evan Nemerson committed
630
		public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error;
631
		[Version (since = "2.32")]
632
		public uint export_action_group (string object_path, GLib.ActionGroup action_group) throws GLib.Error;
633
		[Version (since = "2.32")]
634
		public uint export_menu_model (string object_path, GLib.MenuModel menu) throws GLib.Error;
635
		public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
636
		public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
637 638
		[CCode (cname = "g_dbus_connection_new_for_address", has_construct_function = false)]
		public async DBusConnection.for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
639
		[CCode (has_construct_function = false)]
640
		public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
641 642 643
		public GLib.DBusCapabilityFlags get_capabilities ();
		public bool get_exit_on_close ();
		public unowned string get_guid ();
644
		[Version (since = "2.34")]
645
		public uint32 get_last_serial ();
646
		public unowned GLib.Credentials? get_peer_credentials ();
647
		public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
648
		public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
649 650 651
		public unowned GLib.IOStream get_stream ();
		public unowned string get_unique_name ();
		public bool is_closed ();
652
		public uint register_object<T> (string object_path, T object) throws GLib.IOError;
653
		[Version (since = "2.46")]
654
		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;
Evan Nemerson's avatar
Evan Nemerson committed
655
		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;
656
		public void remove_filter (uint filter_id);
657
		public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
658
		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;
659
		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;
660
		public void set_exit_on_close (bool exit_on_close);
661
		public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
662
		public void signal_unsubscribe (uint subscription_id);
663
		public void start_message_processing ();
664
		[CCode (has_construct_function = false)]
Evan Nemerson's avatar
Evan Nemerson committed
665
		public DBusConnection.sync (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
666
		[Version (since = "2.32")]
667
		public void unexport_action_group (uint export_id);
668
		[Version (since = "2.32")]
669
		public void unexport_menu_model (uint export_id);
670 671 672 673 674
		public bool unregister_object (uint registration_id);
		public bool unregister_subtree (uint registration_id);
		public string address { construct; }
		public GLib.DBusAuthObserver authentication_observer { construct; }
		public GLib.DBusCapabilityFlags capabilities { get; }
Evan Nemerson's avatar
Evan Nemerson committed
675 676
		[NoAccessorMethod]
		public bool closed { get; }
677 678 679 680 681 682
		public bool exit_on_close { get; set; }
		public GLib.DBusConnectionFlags flags { construct; }
		public string guid { get; construct; }
		public GLib.IOStream stream { get; construct; }
		public string unique_name { get; }
	}
683
	[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")]
684
	[Compact]
685
	[Version (since = "2.26")]
686
	public class DBusInterfaceInfo {
687
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
688
		public GLib.DBusAnnotationInfo[] annotations;
689
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
690 691
		public GLib.DBusMethodInfo[] methods;
		public string name;
692
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
693
		public GLib.DBusPropertyInfo[] properties;
694
		public int ref_count;
695
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
696
		public GLib.DBusSignalInfo[] signals;
697
		[Version (since = "2.30")]
698
		public void cache_build ();
699
		[Version (since = "2.30")]
700
		public void cache_release ();
701 702 703 704
		public void generate_xml (uint indent, GLib.StringBuilder string_builder);
		public unowned GLib.DBusMethodInfo lookup_method (string name);
		public unowned GLib.DBusPropertyInfo lookup_property (string name);
		public unowned GLib.DBusSignalInfo lookup_signal (string name);
705
		public unowned GLib.DBusInterfaceInfo @ref ();
706
		public void unref ();
707
	}
Evan Nemerson's avatar
Evan Nemerson committed
708
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_skeleton_get_type ()")]
709
	[Version (since = "2.30")]
Evan Nemerson's avatar
Evan Nemerson committed
710
	public abstract class DBusInterfaceSkeleton : GLib.Object, GLib.DBusInterface {
711 712 713 714 715
		[CCode (has_construct_function = false)]
		protected DBusInterfaceSkeleton ();
		public bool export (GLib.DBusConnection connection, string object_path) throws GLib.Error;
		public virtual void flush ();
		public unowned GLib.DBusConnection get_connection ();
716
		[Version (since = "2.32")]
Evan Nemerson's avatar
Evan Nemerson committed
717
		public GLib.List<GLib.DBusConnection> get_connections ();
718 719 720
		public GLib.DBusInterfaceSkeletonFlags get_flags ();
		public virtual unowned GLib.DBusInterfaceInfo get_info ();
		public unowned string get_object_path ();
Evan Nemerson's avatar
Evan Nemerson committed
721 722
		public virtual GLib.Variant get_properties ();
		public virtual GLib.DBusInterfaceVTable? get_vtable ();
723
		[Version (since = "2.32")]
724
		public bool has_connection (GLib.DBusConnection connection);
725 726
		public void set_flags (GLib.DBusInterfaceSkeletonFlags flags);
		public void unexport ();
727
		[Version (since = "2.32")]
728
		public void unexport_from_connection (GLib.DBusConnection connection);
729 730 731 732
		[NoAccessorMethod]
		public GLib.DBusInterfaceSkeletonFlags g_flags { get; set; }
		public virtual signal bool g_authorize_method (GLib.DBusMethodInvocation invocation);
	}
Evan Nemerson's avatar
Evan Nemerson committed
733
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_menu_model_get_type ()")]
734 735 736
	public class DBusMenuModel : GLib.MenuModel {
		[CCode (has_construct_function = false)]
		protected DBusMenuModel ();
737
		[Version (since = "2.32")]
738 739
		public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string bus_name, string object_path);
	}
740
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
741
	[Version (since = "2.26")]
742 743 744
	public class DBusMessage : GLib.Object {
		[CCode (has_construct_function = false)]
		public DBusMessage ();
Evan Nemerson's avatar
Evan Nemerson committed
745 746
		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;
		public GLib.DBusMessage copy () throws GLib.Error;
747
		[CCode (has_construct_function = false)]
Evan Nemerson's avatar
Evan Nemerson committed
748
		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;
749
		public unowned string get_arg0 ();
750
		public unowned GLib.Variant get_body ();
751
		public GLib.DBusMessageByteOrder get_byte_order ();
752 753 754
		public unowned string get_destination ();
		public unowned string get_error_name ();
		public GLib.DBusMessageFlags get_flags ();
Evan Nemerson's avatar
Evan Nemerson committed
755 756 757
		public GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
		[CCode (array_length = false, array_null_terminated = true)]
		public uchar[] get_header_fields ();
758
		public unowned string get_interface ();
759
		public bool get_locked ();
760 761 762 763 764 765 766 767
		public unowned string get_member ();
		public GLib.DBusMessageType get_message_type ();
		public uint32 get_num_unix_fds ();
		public unowned string get_path ();
		public uint32 get_reply_serial ();
		public unowned string get_sender ();
		public uint32 get_serial ();
		public unowned string get_signature ();
768
		public unowned GLib.UnixFDList get_unix_fd_list ();
769
		public void @lock ();
770
		[CCode (has_construct_function = false)]
771
		public DBusMessage.method_call (string? name, string path, string? interface_, string method);
772
		[CCode (has_construct_function = false)]
Evan Nemerson's avatar
Evan Nemerson committed
773 774
		[PrintfFormat]
		public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format, ...);
775 776 777
		[CCode (has_construct_function = false)]
		public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
		[CCode (has_construct_function = false)]
Evan Nemerson's avatar
Evan Nemerson committed
778
		public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, va_list var_args);
779 780
		[CCode (has_construct_function = false)]
		public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
Evan Nemerson's avatar
Evan Nemerson committed
781
		public string print (uint indent = 0);
782
		public void set_body (GLib.Variant body);
783
		public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
784 785 786
		public void set_destination (string value);
		public void set_error_name (string value);
		public void set_flags (GLib.DBusMessageFlags flags);
787
		public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant? value);
788 789 790 791 792 793 794 795 796
		public void set_interface (string value);
		public void set_member (string value);
		public void set_message_type (GLib.DBusMessageType type);
		public void set_num_unix_fds (uint32 value);
		public void set_path (string value);
		public void set_reply_serial (uint32 value);
		public void set_sender (string value);
		public void set_serial (uint32 serial);
		public void set_signature (string value);
797
		public void set_unix_fd_list (GLib.UnixFDList? fd_list);
798 799
		[CCode (has_construct_function = false)]
		public DBusMessage.@signal (string path, string interface_, string @signal);
Evan Nemerson's avatar
Evan Nemerson committed
800 801
		[CCode (array_length_pos = 0.5, array_length_type = "gsize")]
		public uint8[] to_blob (GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
802
		public bool to_gerror () throws GLib.Error;
803
		public bool locked { get; }
804
	}
805
	[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")]
806
	[Compact]
807
	[Version (since = "2.26")]
808
	public class DBusMethodInfo {
809
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
810
		public GLib.DBusAnnotationInfo[] annotations;
811
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
812 813
		public GLib.DBusArgInfo[] in_args;
		public string name;
814
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
815
		public GLib.DBusArgInfo[] out_args;
816
		public int ref_count;
817
		public unowned GLib.DBusMethodInfo @ref ();
818
		public void unref ();
819
	}
Evan Nemerson's avatar
Evan Nemerson committed
820
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_method_invocation_get_type ()")]
821
	[Version (since = "2.26")]
822 823
	public class DBusMethodInvocation : GLib.Object {
		[CCode (has_construct_function = false)]
824
		protected DBusMethodInvocation ();
825 826 827 828 829 830 831
		public unowned GLib.DBusConnection get_connection ();
		public unowned string get_interface_name ();
		public unowned GLib.DBusMessage get_message ();
		public unowned GLib.DBusMethodInfo get_method_info ();
		public unowned string get_method_name ();
		public unowned string get_object_path ();
		public unowned GLib.Variant get_parameters ();
832
		[Version (since = "2.38")]
833
		public unowned GLib.DBusPropertyInfo get_property_info ();
834 835 836
		public unowned string get_sender ();
		public void* get_user_data ();
		public void return_dbus_error (string error_name, string error_message);
Evan Nemerson's avatar
Evan Nemerson committed
837
		public void return_error (GLib.Quark domain, int code, string format, ...);
838
		public void return_error_literal (GLib.Quark domain, int code, string message);
Evan Nemerson's avatar
Evan Nemerson committed
839
		public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
840
		public void return_gerror (GLib.Error error);
841
		public void return_value (GLib.Variant? parameters);
842
		[Version (since = "2.30")]
843
		public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
844
		[Version (since = "2.30")]
Evan Nemerson's avatar
Evan Nemerson committed
845
		public void take_error (owned GLib.Error error);
846
	}
847
	[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")]
848
	[Compact]
849
	[Version (since = "2.26")]
850
	public class DBusNodeInfo {
851
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
852
		public GLib.DBusAnnotationInfo[] annotations;
853
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
854
		public GLib.DBusInterfaceInfo[] interfaces;
855
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
856 857
		public GLib.DBusNodeInfo[] nodes;
		public string path;
858 859 860 861 862
		public int ref_count;
		[CCode (has_construct_function = false)]
		public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
		public void generate_xml (uint indent, GLib.StringBuilder string_builder);
		public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
863
		public unowned GLib.DBusNodeInfo @ref ();
864
		public void unref ();
865
	}
Evan Nemerson's avatar
Evan Nemerson committed
866
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
867
	[Version (since = "2.30")]
868 869 870 871 872
	public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable {
		[CCode (cname = "g_dbus_object_manager_client_new", has_construct_function = false)]
		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;
		[CCode (cname = "g_dbus_object_manager_client_new_for_bus", has_construct_function = false)]
		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;
873
		[CCode (has_construct_function = false, type = "GDBusObjectManager*")]
874
		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;
875 876 877
		public unowned GLib.DBusConnection get_connection ();
		public GLib.DBusObjectManagerClientFlags get_flags ();
		public unowned string get_name ();
Evan Nemerson's avatar
Evan Nemerson committed
878
		public string? get_name_owner ();
879
		[CCode (has_construct_function = false, type = "GDBusObjectManager*")]
880
		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;
881 882 883 884 885 886 887 888 889 890
		public GLib.BusType bus_type { construct; }
		public GLib.DBusConnection connection { get; construct; }
		public GLib.DBusObjectManagerClientFlags flags { get; construct; }
		[NoAccessorMethod]
		public void* get_proxy_type_destroy_notify { get; construct; }
		[NoAccessorMethod]
		public void* get_proxy_type_func { get; construct; }
		[NoAccessorMethod]
		public void* get_proxy_type_user_data { get; construct; }
		public string name { get; construct; }
Evan Nemerson's avatar
Evan Nemerson committed
891
		public string? name_owner { owned get; }
892 893
		[NoAccessorMethod]
		public string object_path { owned get; construct; }
Evan Nemerson's avatar
Evan Nemerson committed
894
		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);
895 896
		public virtual signal void interface_proxy_signal (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, string sender_name, string signal_name, GLib.Variant parameters);
	}
Evan Nemerson's avatar
Evan Nemerson committed
897
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_server_get_type ()")]
898
	[Version (since = "2.30")]
899 900 901 902 903
	public class DBusObjectManagerServer : GLib.Object, GLib.DBusObjectManager {
		[CCode (has_construct_function = false)]
		public DBusObjectManagerServer (string object_path);
		public void export (GLib.DBusObjectSkeleton object);
		public void export_uniquely (GLib.DBusObjectSkeleton object);
Evan Nemerson's avatar
Evan Nemerson committed
904
		public GLib.DBusConnection get_connection ();
905
		[Version (since = "2.34")]
906
		public bool is_exported (GLib.DBusObjectSkeleton object);
Evan Nemerson's avatar
Evan Nemerson committed
907
		public void set_connection (GLib.DBusConnection? connection);
908
		public bool unexport (string object_path);
Evan Nemerson's avatar
Evan Nemerson committed
909
		public GLib.DBusConnection connection { owned get; set; }
910 911 912
		[NoAccessorMethod]
		public string object_path { owned get; construct; }
	}
Evan Nemerson's avatar
Evan Nemerson committed
913
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_proxy_get_type ()")]
914
	[Version (since = "2.30")]
915 916 917 918 919
	public class DBusObjectProxy : GLib.Object, GLib.DBusObject {
		[CCode (has_construct_function = false)]
		public DBusObjectProxy (GLib.DBusConnection connection, string object_path);
		public unowned GLib.DBusConnection get_connection ();
		[NoAccessorMethod]
920 921 922
		public GLib.DBusConnection g_connection { owned get; construct; }
		[NoAccessorMethod]
		public string g_object_path { owned get; construct; }
923
	}
Evan Nemerson's avatar
Evan Nemerson committed
924
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_skeleton_get_type ()")]
925
	[Version (since = "2.30")]
926 927 928 929 930 931 932 933 934
	public class DBusObjectSkeleton : GLib.Object, GLib.DBusObject {
		[CCode (has_construct_function = false)]
		public DBusObjectSkeleton (string object_path);
		public void add_interface (GLib.DBusInterfaceSkeleton interface_);
		public void flush ();
		public void remove_interface (GLib.DBusInterfaceSkeleton interface_);
		public void remove_interface_by_name (string interface_name);
		public void set_object_path (string object_path);
		[NoAccessorMethod]
935
		public string g_object_path { owned get; set construct; }
936 937
		public virtual signal bool authorize_method (GLib.DBusInterfaceSkeleton interface_, GLib.DBusMethodInvocation invocation);
	}
938
	[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")]
939
	[Compact]
940
	[Version (since = "2.26")]
941
	public class DBusPropertyInfo {
942
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
943
		public GLib.DBusAnnotationInfo[] annotations;
944
		public GLib.DBusPropertyInfoFlags flags;
Evan Nemerson's avatar
Evan Nemerson committed
945
		public string name;
946
		public int ref_count;
Evan Nemerson's avatar
Evan Nemerson committed
947
		public string signature;
948
		public unowned GLib.DBusPropertyInfo @ref ();
949
		public void unref ();
950
	}
951
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_proxy_get_type ()")]
952
	[Version (since = "2.26")]
953 954 955
	public class DBusProxy : GLib.Object, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
		[CCode (cname = "g_dbus_proxy_new", has_construct_function = false)]
		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;
956 957
		public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
		public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
958
		[Version (since = "2.30")]
959
		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;
960
		[Version (since = "2.30")]
961
		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;
962 963
		[CCode (cname = "g_dbus_proxy_new_for_bus", has_construct_function = false)]
		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;
964
		[CCode (has_construct_function = false)]
965
		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;
Evan Nemerson's avatar
Evan Nemerson committed
966 967 968
		public GLib.Variant get_cached_property (string property_name);
		[CCode (array_length = false, array_null_terminated = true)]
		public string[] get_cached_property_names ();
969 970 971
		public unowned GLib.DBusConnection get_connection ();
		public int get_default_timeout ();
		public GLib.DBusProxyFlags get_flags ();
Evan Nemerson's avatar
Evan Nemerson committed
972
		public GLib.DBusInterfaceInfo get_interface_info ();
973
		public unowned string get_interface_name ();
974
		public unowned string get_name ();
Evan Nemerson's avatar
Evan Nemerson committed
975
		public string get_name_owner ();
976
		public unowned string get_object_path ();
Evan Nemerson's avatar
Evan Nemerson committed
977
		public void set_cached_property (string property_name, GLib.Variant? value);
978
		public void set_default_timeout (int timeout_msec);
Evan Nemerson's avatar
Evan Nemerson committed
979
		public void set_interface_info (GLib.DBusInterfaceInfo? info);
980
		[CCode (has_construct_function = false)]
Evan Nemerson's avatar
Evan Nemerson committed
981
		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;
982
		public GLib.BusType g_bus_type { construct; }
983 984 985 986 987 988 989 990 991 992 993
		[NoAccessorMethod]
		public GLib.DBusConnection g_connection { owned get; construct; }
		[NoAccessorMethod]
		public int g_default_timeout { get; set construct; }
		[NoAccessorMethod]
		public GLib.DBusProxyFlags g_flags { get; construct; }
		[NoAccessorMethod]
		public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
		[NoAccessorMethod]
		public string g_interface_name { owned get; construct; }
		[NoAccessorMethod]
994 995 996
		public string g_name { owned get; construct; }
		[NoAccessorMethod]
		public string g_name_owner { owned get; }
997
		[NoAccessorMethod]
998
		public string g_object_path { owned get; construct; }
999
		public virtual signal void g_properties_changed (GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
1000
		public virtual signal void g_signal (string? sender_name, string signal_name, GLib.Variant parameters);
1001
	}
Evan Nemerson's avatar
Evan Nemerson committed
1002
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_server_get_type ()")]
1003
	[Version (since = "2.26")]
1004
	public class DBusServer : GLib.Object, GLib.Initable {
1005 1006
		[CCode (has_construct_function = false)]
		protected DBusServer ();
1007 1008 1009 1010 1011 1012 1013
		public unowned string get_client_address ();
		public GLib.DBusServerFlags get_flags ();
		public unowned string get_guid ();
		public bool is_active ();
		public void start ();
		public void stop ();
		[CCode (has_construct_function = false)]
1014
		public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
1015
		[NoAccessorMethod]
1016
		public bool active { get; }
1017 1018 1019 1020 1021 1022 1023
		[NoAccessorMethod]
		public string address { owned get; construct; }
		[NoAccessorMethod]
		public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
		public string client_address { get; }
		public GLib.DBusServerFlags flags { get; construct; }
		public string guid { get; construct; }
Evan Nemerson's avatar
Evan Nemerson committed
1024
		public signal bool new_connection (GLib.DBusConnection connection);
1025
	}
1026
	[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")]
1027
	[Compact]
1028
	[Version (since = "2.26")]
1029
	public class DBusSignalInfo {
1030
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
1031
		public GLib.DBusAnnotationInfo[] annotations;
1032
		[CCode (array_length = false, array_null_terminated = true)]
Evan Nemerson's avatar
Evan Nemerson committed
1033 1034
		public GLib.DBusArgInfo[] args;
		public string name;
1035
		public int ref_count;
1036
		public unowned GLib.DBusSignalInfo @ref ();
1037
		public void unref ();
1038
	}
1039
	[CCode (cheader_filename = "gio/gio.h", type_id = "g_data_input_stream_get_type ()")]
1040
	public class DataInputStream : GLib.BufferedInputStream, GLib.Seekable {
Jürg Billeter's avatar
Jürg Billeter committed
1041
		[CCode (has_construct_function = false)]
1042
		public DataInputStream (GLib.InputStream base_stream);
1043 1044
		public GLib.DataStreamByteOrder get_byte_order ();
		public GLib.DataStreamNewlineType get_newline_type ();
Evan Nemerson's avatar
Evan Nemerson committed
1045
		public uint8 read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1046 1047 1048
		public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
		public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
		public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
1049
		[CCode (array_length = false, array_null_terminated = true)]
1050
		public string? read_line (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
1051
		[CCode (array_length = false, array_null_terminated = true)]
1052
		[Version (since = "2.20")]
1053
		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;
1054
		[Version (since = "2.30")]
1055 1056 1057
		public string? read_line_utf8 (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
		[CCode (cname = "g_data_input_stream_read_line_async", finish_function = "g_data_input_stream_read_line_finish_utf8")]
		public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
1058 1059 1060
		public uint16 read_uint16 (GLib.Cancellable? cancellab