1#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6#![allow(
7 clippy::approx_constant,
8 clippy::type_complexity,
9 clippy::unreadable_literal
10)]
11
12extern crate glib_sys as glib;
13extern crate gobject_sys as gobject;
14extern crate libc;
15
16#[allow(unused_imports)]
17use libc::{
18 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
19 intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE,
20};
21
22#[allow(unused_imports)]
23use glib::{gboolean, gconstpointer, gpointer, GType};
24
25pub type GBusType = c_int;
27pub const G_BUS_TYPE_STARTER: GBusType = -1;
28pub const G_BUS_TYPE_NONE: GBusType = 0;
29pub const G_BUS_TYPE_SYSTEM: GBusType = 1;
30pub const G_BUS_TYPE_SESSION: GBusType = 2;
31
32pub type GConverterResult = c_int;
33pub const G_CONVERTER_ERROR: GConverterResult = 0;
34pub const G_CONVERTER_CONVERTED: GConverterResult = 1;
35pub const G_CONVERTER_FINISHED: GConverterResult = 2;
36pub const G_CONVERTER_FLUSHED: GConverterResult = 3;
37
38pub type GCredentialsType = c_int;
39pub const G_CREDENTIALS_TYPE_INVALID: GCredentialsType = 0;
40pub const G_CREDENTIALS_TYPE_LINUX_UCRED: GCredentialsType = 1;
41pub const G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: GCredentialsType = 2;
42pub const G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: GCredentialsType = 3;
43pub const G_CREDENTIALS_TYPE_SOLARIS_UCRED: GCredentialsType = 4;
44pub const G_CREDENTIALS_TYPE_NETBSD_UNPCBID: GCredentialsType = 5;
45
46pub type GDBusError = c_int;
47pub const G_DBUS_ERROR_FAILED: GDBusError = 0;
48pub const G_DBUS_ERROR_NO_MEMORY: GDBusError = 1;
49pub const G_DBUS_ERROR_SERVICE_UNKNOWN: GDBusError = 2;
50pub const G_DBUS_ERROR_NAME_HAS_NO_OWNER: GDBusError = 3;
51pub const G_DBUS_ERROR_NO_REPLY: GDBusError = 4;
52pub const G_DBUS_ERROR_IO_ERROR: GDBusError = 5;
53pub const G_DBUS_ERROR_BAD_ADDRESS: GDBusError = 6;
54pub const G_DBUS_ERROR_NOT_SUPPORTED: GDBusError = 7;
55pub const G_DBUS_ERROR_LIMITS_EXCEEDED: GDBusError = 8;
56pub const G_DBUS_ERROR_ACCESS_DENIED: GDBusError = 9;
57pub const G_DBUS_ERROR_AUTH_FAILED: GDBusError = 10;
58pub const G_DBUS_ERROR_NO_SERVER: GDBusError = 11;
59pub const G_DBUS_ERROR_TIMEOUT: GDBusError = 12;
60pub const G_DBUS_ERROR_NO_NETWORK: GDBusError = 13;
61pub const G_DBUS_ERROR_ADDRESS_IN_USE: GDBusError = 14;
62pub const G_DBUS_ERROR_DISCONNECTED: GDBusError = 15;
63pub const G_DBUS_ERROR_INVALID_ARGS: GDBusError = 16;
64pub const G_DBUS_ERROR_FILE_NOT_FOUND: GDBusError = 17;
65pub const G_DBUS_ERROR_FILE_EXISTS: GDBusError = 18;
66pub const G_DBUS_ERROR_UNKNOWN_METHOD: GDBusError = 19;
67pub const G_DBUS_ERROR_TIMED_OUT: GDBusError = 20;
68pub const G_DBUS_ERROR_MATCH_RULE_NOT_FOUND: GDBusError = 21;
69pub const G_DBUS_ERROR_MATCH_RULE_INVALID: GDBusError = 22;
70pub const G_DBUS_ERROR_SPAWN_EXEC_FAILED: GDBusError = 23;
71pub const G_DBUS_ERROR_SPAWN_FORK_FAILED: GDBusError = 24;
72pub const G_DBUS_ERROR_SPAWN_CHILD_EXITED: GDBusError = 25;
73pub const G_DBUS_ERROR_SPAWN_CHILD_SIGNALED: GDBusError = 26;
74pub const G_DBUS_ERROR_SPAWN_FAILED: GDBusError = 27;
75pub const G_DBUS_ERROR_SPAWN_SETUP_FAILED: GDBusError = 28;
76pub const G_DBUS_ERROR_SPAWN_CONFIG_INVALID: GDBusError = 29;
77pub const G_DBUS_ERROR_SPAWN_SERVICE_INVALID: GDBusError = 30;
78pub const G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND: GDBusError = 31;
79pub const G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID: GDBusError = 32;
80pub const G_DBUS_ERROR_SPAWN_FILE_INVALID: GDBusError = 33;
81pub const G_DBUS_ERROR_SPAWN_NO_MEMORY: GDBusError = 34;
82pub const G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN: GDBusError = 35;
83pub const G_DBUS_ERROR_INVALID_SIGNATURE: GDBusError = 36;
84pub const G_DBUS_ERROR_INVALID_FILE_CONTENT: GDBusError = 37;
85pub const G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN: GDBusError = 38;
86pub const G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN: GDBusError = 39;
87pub const G_DBUS_ERROR_OBJECT_PATH_IN_USE: GDBusError = 40;
88pub const G_DBUS_ERROR_UNKNOWN_OBJECT: GDBusError = 41;
89pub const G_DBUS_ERROR_UNKNOWN_INTERFACE: GDBusError = 42;
90pub const G_DBUS_ERROR_UNKNOWN_PROPERTY: GDBusError = 43;
91pub const G_DBUS_ERROR_PROPERTY_READ_ONLY: GDBusError = 44;
92
93pub type GDBusMessageByteOrder = c_int;
94pub const G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: GDBusMessageByteOrder = 66;
95pub const G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: GDBusMessageByteOrder = 108;
96
97pub type GDBusMessageHeaderField = c_int;
98pub const G_DBUS_MESSAGE_HEADER_FIELD_INVALID: GDBusMessageHeaderField = 0;
99pub const G_DBUS_MESSAGE_HEADER_FIELD_PATH: GDBusMessageHeaderField = 1;
100pub const G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: GDBusMessageHeaderField = 2;
101pub const G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: GDBusMessageHeaderField = 3;
102pub const G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: GDBusMessageHeaderField = 4;
103pub const G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: GDBusMessageHeaderField = 5;
104pub const G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: GDBusMessageHeaderField = 6;
105pub const G_DBUS_MESSAGE_HEADER_FIELD_SENDER: GDBusMessageHeaderField = 7;
106pub const G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: GDBusMessageHeaderField = 8;
107pub const G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: GDBusMessageHeaderField = 9;
108
109pub type GDBusMessageType = c_int;
110pub const G_DBUS_MESSAGE_TYPE_INVALID: GDBusMessageType = 0;
111pub const G_DBUS_MESSAGE_TYPE_METHOD_CALL: GDBusMessageType = 1;
112pub const G_DBUS_MESSAGE_TYPE_METHOD_RETURN: GDBusMessageType = 2;
113pub const G_DBUS_MESSAGE_TYPE_ERROR: GDBusMessageType = 3;
114pub const G_DBUS_MESSAGE_TYPE_SIGNAL: GDBusMessageType = 4;
115
116pub type GDataStreamByteOrder = c_int;
117pub const G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: GDataStreamByteOrder = 0;
118pub const G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: GDataStreamByteOrder = 1;
119pub const G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: GDataStreamByteOrder = 2;
120
121pub type GDataStreamNewlineType = c_int;
122pub const G_DATA_STREAM_NEWLINE_TYPE_LF: GDataStreamNewlineType = 0;
123pub const G_DATA_STREAM_NEWLINE_TYPE_CR: GDataStreamNewlineType = 1;
124pub const G_DATA_STREAM_NEWLINE_TYPE_CR_LF: GDataStreamNewlineType = 2;
125pub const G_DATA_STREAM_NEWLINE_TYPE_ANY: GDataStreamNewlineType = 3;
126
127pub type GDriveStartStopType = c_int;
128pub const G_DRIVE_START_STOP_TYPE_UNKNOWN: GDriveStartStopType = 0;
129pub const G_DRIVE_START_STOP_TYPE_SHUTDOWN: GDriveStartStopType = 1;
130pub const G_DRIVE_START_STOP_TYPE_NETWORK: GDriveStartStopType = 2;
131pub const G_DRIVE_START_STOP_TYPE_MULTIDISK: GDriveStartStopType = 3;
132pub const G_DRIVE_START_STOP_TYPE_PASSWORD: GDriveStartStopType = 4;
133
134pub type GEmblemOrigin = c_int;
135pub const G_EMBLEM_ORIGIN_UNKNOWN: GEmblemOrigin = 0;
136pub const G_EMBLEM_ORIGIN_DEVICE: GEmblemOrigin = 1;
137pub const G_EMBLEM_ORIGIN_LIVEMETADATA: GEmblemOrigin = 2;
138pub const G_EMBLEM_ORIGIN_TAG: GEmblemOrigin = 3;
139
140pub type GFileAttributeStatus = c_int;
141pub const G_FILE_ATTRIBUTE_STATUS_UNSET: GFileAttributeStatus = 0;
142pub const G_FILE_ATTRIBUTE_STATUS_SET: GFileAttributeStatus = 1;
143pub const G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: GFileAttributeStatus = 2;
144
145pub type GFileAttributeType = c_int;
146pub const G_FILE_ATTRIBUTE_TYPE_INVALID: GFileAttributeType = 0;
147pub const G_FILE_ATTRIBUTE_TYPE_STRING: GFileAttributeType = 1;
148pub const G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: GFileAttributeType = 2;
149pub const G_FILE_ATTRIBUTE_TYPE_BOOLEAN: GFileAttributeType = 3;
150pub const G_FILE_ATTRIBUTE_TYPE_UINT32: GFileAttributeType = 4;
151pub const G_FILE_ATTRIBUTE_TYPE_INT32: GFileAttributeType = 5;
152pub const G_FILE_ATTRIBUTE_TYPE_UINT64: GFileAttributeType = 6;
153pub const G_FILE_ATTRIBUTE_TYPE_INT64: GFileAttributeType = 7;
154pub const G_FILE_ATTRIBUTE_TYPE_OBJECT: GFileAttributeType = 8;
155pub const G_FILE_ATTRIBUTE_TYPE_STRINGV: GFileAttributeType = 9;
156
157pub type GFileMonitorEvent = c_int;
158pub const G_FILE_MONITOR_EVENT_CHANGED: GFileMonitorEvent = 0;
159pub const G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: GFileMonitorEvent = 1;
160pub const G_FILE_MONITOR_EVENT_DELETED: GFileMonitorEvent = 2;
161pub const G_FILE_MONITOR_EVENT_CREATED: GFileMonitorEvent = 3;
162pub const G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: GFileMonitorEvent = 4;
163pub const G_FILE_MONITOR_EVENT_PRE_UNMOUNT: GFileMonitorEvent = 5;
164pub const G_FILE_MONITOR_EVENT_UNMOUNTED: GFileMonitorEvent = 6;
165pub const G_FILE_MONITOR_EVENT_MOVED: GFileMonitorEvent = 7;
166pub const G_FILE_MONITOR_EVENT_RENAMED: GFileMonitorEvent = 8;
167pub const G_FILE_MONITOR_EVENT_MOVED_IN: GFileMonitorEvent = 9;
168pub const G_FILE_MONITOR_EVENT_MOVED_OUT: GFileMonitorEvent = 10;
169
170pub type GFileType = c_int;
171pub const G_FILE_TYPE_UNKNOWN: GFileType = 0;
172pub const G_FILE_TYPE_REGULAR: GFileType = 1;
173pub const G_FILE_TYPE_DIRECTORY: GFileType = 2;
174pub const G_FILE_TYPE_SYMBOLIC_LINK: GFileType = 3;
175pub const G_FILE_TYPE_SPECIAL: GFileType = 4;
176pub const G_FILE_TYPE_SHORTCUT: GFileType = 5;
177pub const G_FILE_TYPE_MOUNTABLE: GFileType = 6;
178
179pub type GFilesystemPreviewType = c_int;
180pub const G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: GFilesystemPreviewType = 0;
181pub const G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: GFilesystemPreviewType = 1;
182pub const G_FILESYSTEM_PREVIEW_TYPE_NEVER: GFilesystemPreviewType = 2;
183
184pub type GIOErrorEnum = c_int;
185pub const G_IO_ERROR_FAILED: GIOErrorEnum = 0;
186pub const G_IO_ERROR_NOT_FOUND: GIOErrorEnum = 1;
187pub const G_IO_ERROR_EXISTS: GIOErrorEnum = 2;
188pub const G_IO_ERROR_IS_DIRECTORY: GIOErrorEnum = 3;
189pub const G_IO_ERROR_NOT_DIRECTORY: GIOErrorEnum = 4;
190pub const G_IO_ERROR_NOT_EMPTY: GIOErrorEnum = 5;
191pub const G_IO_ERROR_NOT_REGULAR_FILE: GIOErrorEnum = 6;
192pub const G_IO_ERROR_NOT_SYMBOLIC_LINK: GIOErrorEnum = 7;
193pub const G_IO_ERROR_NOT_MOUNTABLE_FILE: GIOErrorEnum = 8;
194pub const G_IO_ERROR_FILENAME_TOO_LONG: GIOErrorEnum = 9;
195pub const G_IO_ERROR_INVALID_FILENAME: GIOErrorEnum = 10;
196pub const G_IO_ERROR_TOO_MANY_LINKS: GIOErrorEnum = 11;
197pub const G_IO_ERROR_NO_SPACE: GIOErrorEnum = 12;
198pub const G_IO_ERROR_INVALID_ARGUMENT: GIOErrorEnum = 13;
199pub const G_IO_ERROR_PERMISSION_DENIED: GIOErrorEnum = 14;
200pub const G_IO_ERROR_NOT_SUPPORTED: GIOErrorEnum = 15;
201pub const G_IO_ERROR_NOT_MOUNTED: GIOErrorEnum = 16;
202pub const G_IO_ERROR_ALREADY_MOUNTED: GIOErrorEnum = 17;
203pub const G_IO_ERROR_CLOSED: GIOErrorEnum = 18;
204pub const G_IO_ERROR_CANCELLED: GIOErrorEnum = 19;
205pub const G_IO_ERROR_PENDING: GIOErrorEnum = 20;
206pub const G_IO_ERROR_READ_ONLY: GIOErrorEnum = 21;
207pub const G_IO_ERROR_CANT_CREATE_BACKUP: GIOErrorEnum = 22;
208pub const G_IO_ERROR_WRONG_ETAG: GIOErrorEnum = 23;
209pub const G_IO_ERROR_TIMED_OUT: GIOErrorEnum = 24;
210pub const G_IO_ERROR_WOULD_RECURSE: GIOErrorEnum = 25;
211pub const G_IO_ERROR_BUSY: GIOErrorEnum = 26;
212pub const G_IO_ERROR_WOULD_BLOCK: GIOErrorEnum = 27;
213pub const G_IO_ERROR_HOST_NOT_FOUND: GIOErrorEnum = 28;
214pub const G_IO_ERROR_WOULD_MERGE: GIOErrorEnum = 29;
215pub const G_IO_ERROR_FAILED_HANDLED: GIOErrorEnum = 30;
216pub const G_IO_ERROR_TOO_MANY_OPEN_FILES: GIOErrorEnum = 31;
217pub const G_IO_ERROR_NOT_INITIALIZED: GIOErrorEnum = 32;
218pub const G_IO_ERROR_ADDRESS_IN_USE: GIOErrorEnum = 33;
219pub const G_IO_ERROR_PARTIAL_INPUT: GIOErrorEnum = 34;
220pub const G_IO_ERROR_INVALID_DATA: GIOErrorEnum = 35;
221pub const G_IO_ERROR_DBUS_ERROR: GIOErrorEnum = 36;
222pub const G_IO_ERROR_HOST_UNREACHABLE: GIOErrorEnum = 37;
223pub const G_IO_ERROR_NETWORK_UNREACHABLE: GIOErrorEnum = 38;
224pub const G_IO_ERROR_CONNECTION_REFUSED: GIOErrorEnum = 39;
225pub const G_IO_ERROR_PROXY_FAILED: GIOErrorEnum = 40;
226pub const G_IO_ERROR_PROXY_AUTH_FAILED: GIOErrorEnum = 41;
227pub const G_IO_ERROR_PROXY_NEED_AUTH: GIOErrorEnum = 42;
228pub const G_IO_ERROR_PROXY_NOT_ALLOWED: GIOErrorEnum = 43;
229pub const G_IO_ERROR_BROKEN_PIPE: GIOErrorEnum = 44;
230pub const G_IO_ERROR_NOT_CONNECTED: GIOErrorEnum = 45;
231pub const G_IO_ERROR_MESSAGE_TOO_LARGE: GIOErrorEnum = 46;
232
233pub type GIOModuleScopeFlags = c_int;
234pub const G_IO_MODULE_SCOPE_NONE: GIOModuleScopeFlags = 0;
235pub const G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: GIOModuleScopeFlags = 1;
236
237pub type GMountOperationResult = c_int;
238pub const G_MOUNT_OPERATION_HANDLED: GMountOperationResult = 0;
239pub const G_MOUNT_OPERATION_ABORTED: GMountOperationResult = 1;
240pub const G_MOUNT_OPERATION_UNHANDLED: GMountOperationResult = 2;
241
242pub type GNetworkConnectivity = c_int;
243pub const G_NETWORK_CONNECTIVITY_LOCAL: GNetworkConnectivity = 1;
244pub const G_NETWORK_CONNECTIVITY_LIMITED: GNetworkConnectivity = 2;
245pub const G_NETWORK_CONNECTIVITY_PORTAL: GNetworkConnectivity = 3;
246pub const G_NETWORK_CONNECTIVITY_FULL: GNetworkConnectivity = 4;
247
248pub type GNotificationPriority = c_int;
249pub const G_NOTIFICATION_PRIORITY_NORMAL: GNotificationPriority = 0;
250pub const G_NOTIFICATION_PRIORITY_LOW: GNotificationPriority = 1;
251pub const G_NOTIFICATION_PRIORITY_HIGH: GNotificationPriority = 2;
252pub const G_NOTIFICATION_PRIORITY_URGENT: GNotificationPriority = 3;
253
254pub type GPasswordSave = c_int;
255pub const G_PASSWORD_SAVE_NEVER: GPasswordSave = 0;
256pub const G_PASSWORD_SAVE_FOR_SESSION: GPasswordSave = 1;
257pub const G_PASSWORD_SAVE_PERMANENTLY: GPasswordSave = 2;
258
259pub type GResolverError = c_int;
260pub const G_RESOLVER_ERROR_NOT_FOUND: GResolverError = 0;
261pub const G_RESOLVER_ERROR_TEMPORARY_FAILURE: GResolverError = 1;
262pub const G_RESOLVER_ERROR_INTERNAL: GResolverError = 2;
263
264pub type GResolverRecordType = c_int;
265pub const G_RESOLVER_RECORD_SRV: GResolverRecordType = 1;
266pub const G_RESOLVER_RECORD_MX: GResolverRecordType = 2;
267pub const G_RESOLVER_RECORD_TXT: GResolverRecordType = 3;
268pub const G_RESOLVER_RECORD_SOA: GResolverRecordType = 4;
269pub const G_RESOLVER_RECORD_NS: GResolverRecordType = 5;
270
271pub type GResourceError = c_int;
272pub const G_RESOURCE_ERROR_NOT_FOUND: GResourceError = 0;
273pub const G_RESOURCE_ERROR_INTERNAL: GResourceError = 1;
274
275pub type GSocketClientEvent = c_int;
276pub const G_SOCKET_CLIENT_RESOLVING: GSocketClientEvent = 0;
277pub const G_SOCKET_CLIENT_RESOLVED: GSocketClientEvent = 1;
278pub const G_SOCKET_CLIENT_CONNECTING: GSocketClientEvent = 2;
279pub const G_SOCKET_CLIENT_CONNECTED: GSocketClientEvent = 3;
280pub const G_SOCKET_CLIENT_PROXY_NEGOTIATING: GSocketClientEvent = 4;
281pub const G_SOCKET_CLIENT_PROXY_NEGOTIATED: GSocketClientEvent = 5;
282pub const G_SOCKET_CLIENT_TLS_HANDSHAKING: GSocketClientEvent = 6;
283pub const G_SOCKET_CLIENT_TLS_HANDSHAKED: GSocketClientEvent = 7;
284pub const G_SOCKET_CLIENT_COMPLETE: GSocketClientEvent = 8;
285
286pub type GSocketFamily = c_int;
287pub const G_SOCKET_FAMILY_INVALID: GSocketFamily = 0;
288pub const G_SOCKET_FAMILY_UNIX: GSocketFamily = 1;
289pub const G_SOCKET_FAMILY_IPV4: GSocketFamily = 2;
290pub const G_SOCKET_FAMILY_IPV6: GSocketFamily = 10;
291
292pub type GSocketListenerEvent = c_int;
293pub const G_SOCKET_LISTENER_BINDING: GSocketListenerEvent = 0;
294pub const G_SOCKET_LISTENER_BOUND: GSocketListenerEvent = 1;
295pub const G_SOCKET_LISTENER_LISTENING: GSocketListenerEvent = 2;
296pub const G_SOCKET_LISTENER_LISTENED: GSocketListenerEvent = 3;
297
298pub type GSocketProtocol = c_int;
299pub const G_SOCKET_PROTOCOL_UNKNOWN: GSocketProtocol = -1;
300pub const G_SOCKET_PROTOCOL_DEFAULT: GSocketProtocol = 0;
301pub const G_SOCKET_PROTOCOL_TCP: GSocketProtocol = 6;
302pub const G_SOCKET_PROTOCOL_UDP: GSocketProtocol = 17;
303pub const G_SOCKET_PROTOCOL_SCTP: GSocketProtocol = 132;
304
305pub type GSocketType = c_int;
306pub const G_SOCKET_TYPE_INVALID: GSocketType = 0;
307pub const G_SOCKET_TYPE_STREAM: GSocketType = 1;
308pub const G_SOCKET_TYPE_DATAGRAM: GSocketType = 2;
309pub const G_SOCKET_TYPE_SEQPACKET: GSocketType = 3;
310
311pub type GTlsAuthenticationMode = c_int;
312pub const G_TLS_AUTHENTICATION_NONE: GTlsAuthenticationMode = 0;
313pub const G_TLS_AUTHENTICATION_REQUESTED: GTlsAuthenticationMode = 1;
314pub const G_TLS_AUTHENTICATION_REQUIRED: GTlsAuthenticationMode = 2;
315
316pub type GTlsCertificateRequestFlags = c_int;
317pub const G_TLS_CERTIFICATE_REQUEST_NONE: GTlsCertificateRequestFlags = 0;
318
319pub type GTlsDatabaseLookupFlags = c_int;
320pub const G_TLS_DATABASE_LOOKUP_NONE: GTlsDatabaseLookupFlags = 0;
321pub const G_TLS_DATABASE_LOOKUP_KEYPAIR: GTlsDatabaseLookupFlags = 1;
322
323pub type GTlsError = c_int;
324pub const G_TLS_ERROR_UNAVAILABLE: GTlsError = 0;
325pub const G_TLS_ERROR_MISC: GTlsError = 1;
326pub const G_TLS_ERROR_BAD_CERTIFICATE: GTlsError = 2;
327pub const G_TLS_ERROR_NOT_TLS: GTlsError = 3;
328pub const G_TLS_ERROR_HANDSHAKE: GTlsError = 4;
329pub const G_TLS_ERROR_CERTIFICATE_REQUIRED: GTlsError = 5;
330pub const G_TLS_ERROR_EOF: GTlsError = 6;
331
332pub type GTlsInteractionResult = c_int;
333pub const G_TLS_INTERACTION_UNHANDLED: GTlsInteractionResult = 0;
334pub const G_TLS_INTERACTION_HANDLED: GTlsInteractionResult = 1;
335pub const G_TLS_INTERACTION_FAILED: GTlsInteractionResult = 2;
336
337pub type GTlsRehandshakeMode = c_int;
338pub const G_TLS_REHANDSHAKE_NEVER: GTlsRehandshakeMode = 0;
339pub const G_TLS_REHANDSHAKE_SAFELY: GTlsRehandshakeMode = 1;
340pub const G_TLS_REHANDSHAKE_UNSAFELY: GTlsRehandshakeMode = 2;
341
342pub type GUnixSocketAddressType = c_int;
343pub const G_UNIX_SOCKET_ADDRESS_INVALID: GUnixSocketAddressType = 0;
344pub const G_UNIX_SOCKET_ADDRESS_ANONYMOUS: GUnixSocketAddressType = 1;
345pub const G_UNIX_SOCKET_ADDRESS_PATH: GUnixSocketAddressType = 2;
346pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT: GUnixSocketAddressType = 3;
347pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: GUnixSocketAddressType = 4;
348
349pub type GZlibCompressorFormat = c_int;
350pub const G_ZLIB_COMPRESSOR_FORMAT_ZLIB: GZlibCompressorFormat = 0;
351pub const G_ZLIB_COMPRESSOR_FORMAT_GZIP: GZlibCompressorFormat = 1;
352pub const G_ZLIB_COMPRESSOR_FORMAT_RAW: GZlibCompressorFormat = 2;
353
354pub const G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: *const c_char =
356 b"gio-desktop-app-info-lookup\0" as *const u8 as *const c_char;
357pub const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: *const c_char =
358 b"unix-device\0" as *const u8 as *const c_char;
359pub const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: *const c_char =
360 b"access::can-delete\0" as *const u8 as *const c_char;
361pub const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: *const c_char =
362 b"access::can-execute\0" as *const u8 as *const c_char;
363pub const G_FILE_ATTRIBUTE_ACCESS_CAN_READ: *const c_char =
364 b"access::can-read\0" as *const u8 as *const c_char;
365pub const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: *const c_char =
366 b"access::can-rename\0" as *const u8 as *const c_char;
367pub const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: *const c_char =
368 b"access::can-trash\0" as *const u8 as *const c_char;
369pub const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: *const c_char =
370 b"access::can-write\0" as *const u8 as *const c_char;
371pub const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: *const c_char =
372 b"dos::is-archive\0" as *const u8 as *const c_char;
373pub const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: *const c_char =
374 b"dos::is-system\0" as *const u8 as *const c_char;
375pub const G_FILE_ATTRIBUTE_ETAG_VALUE: *const c_char =
376 b"etag::value\0" as *const u8 as *const c_char;
377pub const G_FILE_ATTRIBUTE_FILESYSTEM_FREE: *const c_char =
378 b"filesystem::free\0" as *const u8 as *const c_char;
379pub const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: *const c_char =
380 b"filesystem::readonly\0" as *const u8 as *const c_char;
381pub const G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE: *const c_char =
382 b"filesystem::remote\0" as *const u8 as *const c_char;
383pub const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: *const c_char =
384 b"filesystem::size\0" as *const u8 as *const c_char;
385pub const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: *const c_char =
386 b"filesystem::type\0" as *const u8 as *const c_char;
387pub const G_FILE_ATTRIBUTE_FILESYSTEM_USED: *const c_char =
388 b"filesystem::used\0" as *const u8 as *const c_char;
389pub const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: *const c_char =
390 b"filesystem::use-preview\0" as *const u8 as *const c_char;
391pub const G_FILE_ATTRIBUTE_GVFS_BACKEND: *const c_char =
392 b"gvfs::backend\0" as *const u8 as *const c_char;
393pub const G_FILE_ATTRIBUTE_ID_FILE: *const c_char = b"id::file\0" as *const u8 as *const c_char;
394pub const G_FILE_ATTRIBUTE_ID_FILESYSTEM: *const c_char =
395 b"id::filesystem\0" as *const u8 as *const c_char;
396pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: *const c_char =
397 b"mountable::can-eject\0" as *const u8 as *const c_char;
398pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: *const c_char =
399 b"mountable::can-mount\0" as *const u8 as *const c_char;
400pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: *const c_char =
401 b"mountable::can-poll\0" as *const u8 as *const c_char;
402pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START: *const c_char =
403 b"mountable::can-start\0" as *const u8 as *const c_char;
404pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: *const c_char =
405 b"mountable::can-start-degraded\0" as *const u8 as *const c_char;
406pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: *const c_char =
407 b"mountable::can-stop\0" as *const u8 as *const c_char;
408pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: *const c_char =
409 b"mountable::can-unmount\0" as *const u8 as *const c_char;
410pub const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: *const c_char =
411 b"mountable::hal-udi\0" as *const u8 as *const c_char;
412pub const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: *const c_char =
413 b"mountable::is-media-check-automatic\0" as *const u8 as *const c_char;
414pub const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: *const c_char =
415 b"mountable::start-stop-type\0" as *const u8 as *const c_char;
416pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: *const c_char =
417 b"mountable::unix-device\0" as *const u8 as *const c_char;
418pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: *const c_char =
419 b"mountable::unix-device-file\0" as *const u8 as *const c_char;
420pub const G_FILE_ATTRIBUTE_OWNER_GROUP: *const c_char =
421 b"owner::group\0" as *const u8 as *const c_char;
422pub const G_FILE_ATTRIBUTE_OWNER_USER: *const c_char =
423 b"owner::user\0" as *const u8 as *const c_char;
424pub const G_FILE_ATTRIBUTE_OWNER_USER_REAL: *const c_char =
425 b"owner::user-real\0" as *const u8 as *const c_char;
426pub const G_FILE_ATTRIBUTE_PREVIEW_ICON: *const c_char =
427 b"preview::icon\0" as *const u8 as *const c_char;
428pub const G_FILE_ATTRIBUTE_RECENT_MODIFIED: *const c_char =
429 b"recent::modified\0" as *const u8 as *const c_char;
430pub const G_FILE_ATTRIBUTE_SELINUX_CONTEXT: *const c_char =
431 b"selinux::context\0" as *const u8 as *const c_char;
432pub const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: *const c_char =
433 b"standard::allocated-size\0" as *const u8 as *const c_char;
434pub const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: *const c_char =
435 b"standard::content-type\0" as *const u8 as *const c_char;
436pub const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: *const c_char =
437 b"standard::copy-name\0" as *const u8 as *const c_char;
438pub const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: *const c_char =
439 b"standard::description\0" as *const u8 as *const c_char;
440pub const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: *const c_char =
441 b"standard::display-name\0" as *const u8 as *const c_char;
442pub const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: *const c_char =
443 b"standard::edit-name\0" as *const u8 as *const c_char;
444pub const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: *const c_char =
445 b"standard::fast-content-type\0" as *const u8 as *const c_char;
446pub const G_FILE_ATTRIBUTE_STANDARD_ICON: *const c_char =
447 b"standard::icon\0" as *const u8 as *const c_char;
448pub const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: *const c_char =
449 b"standard::is-backup\0" as *const u8 as *const c_char;
450pub const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: *const c_char =
451 b"standard::is-hidden\0" as *const u8 as *const c_char;
452pub const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: *const c_char =
453 b"standard::is-symlink\0" as *const u8 as *const c_char;
454pub const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: *const c_char =
455 b"standard::is-virtual\0" as *const u8 as *const c_char;
456pub const G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: *const c_char =
457 b"standard::is-volatile\0" as *const u8 as *const c_char;
458pub const G_FILE_ATTRIBUTE_STANDARD_NAME: *const c_char =
459 b"standard::name\0" as *const u8 as *const c_char;
460pub const G_FILE_ATTRIBUTE_STANDARD_SIZE: *const c_char =
461 b"standard::size\0" as *const u8 as *const c_char;
462pub const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: *const c_char =
463 b"standard::sort-order\0" as *const u8 as *const c_char;
464pub const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: *const c_char =
465 b"standard::symbolic-icon\0" as *const u8 as *const c_char;
466pub const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: *const c_char =
467 b"standard::symlink-target\0" as *const u8 as *const c_char;
468pub const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: *const c_char =
469 b"standard::target-uri\0" as *const u8 as *const c_char;
470pub const G_FILE_ATTRIBUTE_STANDARD_TYPE: *const c_char =
471 b"standard::type\0" as *const u8 as *const c_char;
472pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: *const c_char =
473 b"thumbnail::failed\0" as *const u8 as *const c_char;
474pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: *const c_char =
475 b"thumbnail::is-valid\0" as *const u8 as *const c_char;
476pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH: *const c_char =
477 b"thumbnail::path\0" as *const u8 as *const c_char;
478pub const G_FILE_ATTRIBUTE_TIME_ACCESS: *const c_char =
479 b"time::access\0" as *const u8 as *const c_char;
480pub const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: *const c_char =
481 b"time::access-usec\0" as *const u8 as *const c_char;
482pub const G_FILE_ATTRIBUTE_TIME_CHANGED: *const c_char =
483 b"time::changed\0" as *const u8 as *const c_char;
484pub const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: *const c_char =
485 b"time::changed-usec\0" as *const u8 as *const c_char;
486pub const G_FILE_ATTRIBUTE_TIME_CREATED: *const c_char =
487 b"time::created\0" as *const u8 as *const c_char;
488pub const G_FILE_ATTRIBUTE_TIME_CREATED_USEC: *const c_char =
489 b"time::created-usec\0" as *const u8 as *const c_char;
490pub const G_FILE_ATTRIBUTE_TIME_MODIFIED: *const c_char =
491 b"time::modified\0" as *const u8 as *const c_char;
492pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: *const c_char =
493 b"time::modified-usec\0" as *const u8 as *const c_char;
494pub const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: *const c_char =
495 b"trash::deletion-date\0" as *const u8 as *const c_char;
496pub const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: *const c_char =
497 b"trash::item-count\0" as *const u8 as *const c_char;
498pub const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH: *const c_char =
499 b"trash::orig-path\0" as *const u8 as *const c_char;
500pub const G_FILE_ATTRIBUTE_UNIX_BLOCKS: *const c_char =
501 b"unix::blocks\0" as *const u8 as *const c_char;
502pub const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: *const c_char =
503 b"unix::block-size\0" as *const u8 as *const c_char;
504pub const G_FILE_ATTRIBUTE_UNIX_DEVICE: *const c_char =
505 b"unix::device\0" as *const u8 as *const c_char;
506pub const G_FILE_ATTRIBUTE_UNIX_GID: *const c_char = b"unix::gid\0" as *const u8 as *const c_char;
507pub const G_FILE_ATTRIBUTE_UNIX_INODE: *const c_char =
508 b"unix::inode\0" as *const u8 as *const c_char;
509pub const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: *const c_char =
510 b"unix::is-mountpoint\0" as *const u8 as *const c_char;
511pub const G_FILE_ATTRIBUTE_UNIX_MODE: *const c_char = b"unix::mode\0" as *const u8 as *const c_char;
512pub const G_FILE_ATTRIBUTE_UNIX_NLINK: *const c_char =
513 b"unix::nlink\0" as *const u8 as *const c_char;
514pub const G_FILE_ATTRIBUTE_UNIX_RDEV: *const c_char = b"unix::rdev\0" as *const u8 as *const c_char;
515pub const G_FILE_ATTRIBUTE_UNIX_UID: *const c_char = b"unix::uid\0" as *const u8 as *const c_char;
516pub const G_MENU_ATTRIBUTE_ACTION: *const c_char = b"action\0" as *const u8 as *const c_char;
517pub const G_MENU_ATTRIBUTE_ACTION_NAMESPACE: *const c_char =
518 b"action-namespace\0" as *const u8 as *const c_char;
519pub const G_MENU_ATTRIBUTE_ICON: *const c_char = b"icon\0" as *const u8 as *const c_char;
520pub const G_MENU_ATTRIBUTE_LABEL: *const c_char = b"label\0" as *const u8 as *const c_char;
521pub const G_MENU_ATTRIBUTE_TARGET: *const c_char = b"target\0" as *const u8 as *const c_char;
522pub const G_MENU_LINK_SECTION: *const c_char = b"section\0" as *const u8 as *const c_char;
523pub const G_MENU_LINK_SUBMENU: *const c_char = b"submenu\0" as *const u8 as *const c_char;
524pub const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: *const c_char =
525 b"gio-native-volume-monitor\0" as *const u8 as *const c_char;
526pub const G_NETWORK_MONITOR_EXTENSION_POINT_NAME: *const c_char =
527 b"gio-network-monitor\0" as *const u8 as *const c_char;
528pub const G_PROXY_EXTENSION_POINT_NAME: *const c_char =
529 b"gio-proxy\0" as *const u8 as *const c_char;
530pub const G_PROXY_RESOLVER_EXTENSION_POINT_NAME: *const c_char =
531 b"gio-proxy-resolver\0" as *const u8 as *const c_char;
532pub const G_SETTINGS_BACKEND_EXTENSION_POINT_NAME: *const c_char =
533 b"gsettings-backend\0" as *const u8 as *const c_char;
534pub const G_TLS_BACKEND_EXTENSION_POINT_NAME: *const c_char =
535 b"gio-tls-backend\0" as *const u8 as *const c_char;
536pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: *const c_char =
537 b"1.3.6.1.5.5.7.3.2\0" as *const u8 as *const c_char;
538pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: *const c_char =
539 b"1.3.6.1.5.5.7.3.1\0" as *const u8 as *const c_char;
540pub const G_VFS_EXTENSION_POINT_NAME: *const c_char = b"gio-vfs\0" as *const u8 as *const c_char;
541pub const G_VOLUME_IDENTIFIER_KIND_CLASS: *const c_char = b"class\0" as *const u8 as *const c_char;
542pub const G_VOLUME_IDENTIFIER_KIND_HAL_UDI: *const c_char =
543 b"hal-udi\0" as *const u8 as *const c_char;
544pub const G_VOLUME_IDENTIFIER_KIND_LABEL: *const c_char = b"label\0" as *const u8 as *const c_char;
545pub const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: *const c_char =
546 b"nfs-mount\0" as *const u8 as *const c_char;
547pub const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: *const c_char =
548 b"unix-device\0" as *const u8 as *const c_char;
549pub const G_VOLUME_IDENTIFIER_KIND_UUID: *const c_char = b"uuid\0" as *const u8 as *const c_char;
550pub const G_VOLUME_MONITOR_EXTENSION_POINT_NAME: *const c_char =
551 b"gio-volume-monitor\0" as *const u8 as *const c_char;
552
553pub type GAppInfoCreateFlags = c_uint;
555pub const G_APP_INFO_CREATE_NONE: GAppInfoCreateFlags = 0;
556pub const G_APP_INFO_CREATE_NEEDS_TERMINAL: GAppInfoCreateFlags = 1;
557pub const G_APP_INFO_CREATE_SUPPORTS_URIS: GAppInfoCreateFlags = 2;
558pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags = 4;
559
560pub type GApplicationFlags = c_uint;
561pub const G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0;
562pub const G_APPLICATION_IS_SERVICE: GApplicationFlags = 1;
563pub const G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2;
564pub const G_APPLICATION_HANDLES_OPEN: GApplicationFlags = 4;
565pub const G_APPLICATION_HANDLES_COMMAND_LINE: GApplicationFlags = 8;
566pub const G_APPLICATION_SEND_ENVIRONMENT: GApplicationFlags = 16;
567pub const G_APPLICATION_NON_UNIQUE: GApplicationFlags = 32;
568pub const G_APPLICATION_CAN_OVERRIDE_APP_ID: GApplicationFlags = 64;
569
570pub type GAskPasswordFlags = c_uint;
571pub const G_ASK_PASSWORD_NEED_PASSWORD: GAskPasswordFlags = 1;
572pub const G_ASK_PASSWORD_NEED_USERNAME: GAskPasswordFlags = 2;
573pub const G_ASK_PASSWORD_NEED_DOMAIN: GAskPasswordFlags = 4;
574pub const G_ASK_PASSWORD_SAVING_SUPPORTED: GAskPasswordFlags = 8;
575pub const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: GAskPasswordFlags = 16;
576pub const G_ASK_PASSWORD_TCRYPT: GAskPasswordFlags = 32;
577
578pub type GBusNameOwnerFlags = c_uint;
579pub const G_BUS_NAME_OWNER_FLAGS_NONE: GBusNameOwnerFlags = 0;
580pub const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: GBusNameOwnerFlags = 1;
581pub const G_BUS_NAME_OWNER_FLAGS_REPLACE: GBusNameOwnerFlags = 2;
582pub const G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: GBusNameOwnerFlags = 4;
583
584pub type GBusNameWatcherFlags = c_uint;
585pub const G_BUS_NAME_WATCHER_FLAGS_NONE: GBusNameWatcherFlags = 0;
586pub const G_BUS_NAME_WATCHER_FLAGS_AUTO_START: GBusNameWatcherFlags = 1;
587
588pub type GConverterFlags = c_uint;
589pub const G_CONVERTER_NO_FLAGS: GConverterFlags = 0;
590pub const G_CONVERTER_INPUT_AT_END: GConverterFlags = 1;
591pub const G_CONVERTER_FLUSH: GConverterFlags = 2;
592
593pub type GDBusCallFlags = c_uint;
594pub const G_DBUS_CALL_FLAGS_NONE: GDBusCallFlags = 0;
595pub const G_DBUS_CALL_FLAGS_NO_AUTO_START: GDBusCallFlags = 1;
596pub const G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusCallFlags = 2;
597
598pub type GDBusCapabilityFlags = c_uint;
599pub const G_DBUS_CAPABILITY_FLAGS_NONE: GDBusCapabilityFlags = 0;
600pub const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: GDBusCapabilityFlags = 1;
601
602pub type GDBusConnectionFlags = c_uint;
603pub const G_DBUS_CONNECTION_FLAGS_NONE: GDBusConnectionFlags = 0;
604pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: GDBusConnectionFlags = 1;
605pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: GDBusConnectionFlags = 2;
606pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusConnectionFlags = 4;
607pub const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: GDBusConnectionFlags = 8;
608pub const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: GDBusConnectionFlags = 16;
609
610pub type GDBusInterfaceSkeletonFlags = c_uint;
611pub const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: GDBusInterfaceSkeletonFlags = 0;
612pub const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD:
613 GDBusInterfaceSkeletonFlags = 1;
614
615pub type GDBusMessageFlags = c_uint;
616pub const G_DBUS_MESSAGE_FLAGS_NONE: GDBusMessageFlags = 0;
617pub const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: GDBusMessageFlags = 1;
618pub const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: GDBusMessageFlags = 2;
619pub const G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusMessageFlags = 4;
620
621pub type GDBusObjectManagerClientFlags = c_uint;
622pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: GDBusObjectManagerClientFlags = 0;
623pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: GDBusObjectManagerClientFlags = 1;
624
625pub type GDBusPropertyInfoFlags = c_uint;
626pub const G_DBUS_PROPERTY_INFO_FLAGS_NONE: GDBusPropertyInfoFlags = 0;
627pub const G_DBUS_PROPERTY_INFO_FLAGS_READABLE: GDBusPropertyInfoFlags = 1;
628pub const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: GDBusPropertyInfoFlags = 2;
629
630pub type GDBusProxyFlags = c_uint;
631pub const G_DBUS_PROXY_FLAGS_NONE: GDBusProxyFlags = 0;
632pub const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: GDBusProxyFlags = 1;
633pub const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: GDBusProxyFlags = 2;
634pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: GDBusProxyFlags = 4;
635pub const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: GDBusProxyFlags = 8;
636pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: GDBusProxyFlags = 16;
637
638pub type GDBusSendMessageFlags = c_uint;
639pub const G_DBUS_SEND_MESSAGE_FLAGS_NONE: GDBusSendMessageFlags = 0;
640pub const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: GDBusSendMessageFlags = 1;
641
642pub type GDBusServerFlags = c_uint;
643pub const G_DBUS_SERVER_FLAGS_NONE: GDBusServerFlags = 0;
644pub const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: GDBusServerFlags = 1;
645pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusServerFlags = 2;
646
647pub type GDBusSignalFlags = c_uint;
648pub const G_DBUS_SIGNAL_FLAGS_NONE: GDBusSignalFlags = 0;
649pub const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: GDBusSignalFlags = 1;
650pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: GDBusSignalFlags = 2;
651pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: GDBusSignalFlags = 4;
652
653pub type GDBusSubtreeFlags = c_uint;
654pub const G_DBUS_SUBTREE_FLAGS_NONE: GDBusSubtreeFlags = 0;
655pub const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: GDBusSubtreeFlags = 1;
656
657pub type GDriveStartFlags = c_uint;
658pub const G_DRIVE_START_NONE: GDriveStartFlags = 0;
659
660pub type GFileAttributeInfoFlags = c_uint;
661pub const G_FILE_ATTRIBUTE_INFO_NONE: GFileAttributeInfoFlags = 0;
662pub const G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: GFileAttributeInfoFlags = 1;
663pub const G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: GFileAttributeInfoFlags = 2;
664
665pub type GFileCopyFlags = c_uint;
666pub const G_FILE_COPY_NONE: GFileCopyFlags = 0;
667pub const G_FILE_COPY_OVERWRITE: GFileCopyFlags = 1;
668pub const G_FILE_COPY_BACKUP: GFileCopyFlags = 2;
669pub const G_FILE_COPY_NOFOLLOW_SYMLINKS: GFileCopyFlags = 4;
670pub const G_FILE_COPY_ALL_METADATA: GFileCopyFlags = 8;
671pub const G_FILE_COPY_NO_FALLBACK_FOR_MOVE: GFileCopyFlags = 16;
672pub const G_FILE_COPY_TARGET_DEFAULT_PERMS: GFileCopyFlags = 32;
673
674pub type GFileCreateFlags = c_uint;
675pub const G_FILE_CREATE_NONE: GFileCreateFlags = 0;
676pub const G_FILE_CREATE_PRIVATE: GFileCreateFlags = 1;
677pub const G_FILE_CREATE_REPLACE_DESTINATION: GFileCreateFlags = 2;
678
679pub type GFileMeasureFlags = c_uint;
680pub const G_FILE_MEASURE_NONE: GFileMeasureFlags = 0;
681pub const G_FILE_MEASURE_REPORT_ANY_ERROR: GFileMeasureFlags = 2;
682pub const G_FILE_MEASURE_APPARENT_SIZE: GFileMeasureFlags = 4;
683pub const G_FILE_MEASURE_NO_XDEV: GFileMeasureFlags = 8;
684
685pub type GFileMonitorFlags = c_uint;
686pub const G_FILE_MONITOR_NONE: GFileMonitorFlags = 0;
687pub const G_FILE_MONITOR_WATCH_MOUNTS: GFileMonitorFlags = 1;
688pub const G_FILE_MONITOR_SEND_MOVED: GFileMonitorFlags = 2;
689pub const G_FILE_MONITOR_WATCH_HARD_LINKS: GFileMonitorFlags = 4;
690pub const G_FILE_MONITOR_WATCH_MOVES: GFileMonitorFlags = 8;
691
692pub type GFileQueryInfoFlags = c_uint;
693pub const G_FILE_QUERY_INFO_NONE: GFileQueryInfoFlags = 0;
694pub const G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: GFileQueryInfoFlags = 1;
695
696pub type GIOStreamSpliceFlags = c_uint;
697pub const G_IO_STREAM_SPLICE_NONE: GIOStreamSpliceFlags = 0;
698pub const G_IO_STREAM_SPLICE_CLOSE_STREAM1: GIOStreamSpliceFlags = 1;
699pub const G_IO_STREAM_SPLICE_CLOSE_STREAM2: GIOStreamSpliceFlags = 2;
700pub const G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: GIOStreamSpliceFlags = 4;
701
702pub type GMountMountFlags = c_uint;
703pub const G_MOUNT_MOUNT_NONE: GMountMountFlags = 0;
704
705pub type GMountUnmountFlags = c_uint;
706pub const G_MOUNT_UNMOUNT_NONE: GMountUnmountFlags = 0;
707pub const G_MOUNT_UNMOUNT_FORCE: GMountUnmountFlags = 1;
708
709pub type GOutputStreamSpliceFlags = c_uint;
710pub const G_OUTPUT_STREAM_SPLICE_NONE: GOutputStreamSpliceFlags = 0;
711pub const G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: GOutputStreamSpliceFlags = 1;
712pub const G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: GOutputStreamSpliceFlags = 2;
713
714pub type GResourceFlags = c_uint;
715pub const G_RESOURCE_FLAGS_NONE: GResourceFlags = 0;
716pub const G_RESOURCE_FLAGS_COMPRESSED: GResourceFlags = 1;
717
718pub type GResourceLookupFlags = c_uint;
719pub const G_RESOURCE_LOOKUP_FLAGS_NONE: GResourceLookupFlags = 0;
720
721pub type GSettingsBindFlags = c_uint;
722pub const G_SETTINGS_BIND_DEFAULT: GSettingsBindFlags = 0;
723pub const G_SETTINGS_BIND_GET: GSettingsBindFlags = 1;
724pub const G_SETTINGS_BIND_SET: GSettingsBindFlags = 2;
725pub const G_SETTINGS_BIND_NO_SENSITIVITY: GSettingsBindFlags = 4;
726pub const G_SETTINGS_BIND_GET_NO_CHANGES: GSettingsBindFlags = 8;
727pub const G_SETTINGS_BIND_INVERT_BOOLEAN: GSettingsBindFlags = 16;
728
729pub type GSocketMsgFlags = c_uint;
730pub const G_SOCKET_MSG_NONE: GSocketMsgFlags = 0;
731pub const G_SOCKET_MSG_OOB: GSocketMsgFlags = 1;
732pub const G_SOCKET_MSG_PEEK: GSocketMsgFlags = 2;
733pub const G_SOCKET_MSG_DONTROUTE: GSocketMsgFlags = 4;
734
735pub type GSubprocessFlags = c_uint;
736pub const G_SUBPROCESS_FLAGS_NONE: GSubprocessFlags = 0;
737pub const G_SUBPROCESS_FLAGS_STDIN_PIPE: GSubprocessFlags = 1;
738pub const G_SUBPROCESS_FLAGS_STDIN_INHERIT: GSubprocessFlags = 2;
739pub const G_SUBPROCESS_FLAGS_STDOUT_PIPE: GSubprocessFlags = 4;
740pub const G_SUBPROCESS_FLAGS_STDOUT_SILENCE: GSubprocessFlags = 8;
741pub const G_SUBPROCESS_FLAGS_STDERR_PIPE: GSubprocessFlags = 16;
742pub const G_SUBPROCESS_FLAGS_STDERR_SILENCE: GSubprocessFlags = 32;
743pub const G_SUBPROCESS_FLAGS_STDERR_MERGE: GSubprocessFlags = 64;
744pub const G_SUBPROCESS_FLAGS_INHERIT_FDS: GSubprocessFlags = 128;
745
746pub type GTestDBusFlags = c_uint;
747pub const G_TEST_DBUS_NONE: GTestDBusFlags = 0;
748
749pub type GTlsCertificateFlags = c_uint;
750pub const G_TLS_CERTIFICATE_UNKNOWN_CA: GTlsCertificateFlags = 1;
751pub const G_TLS_CERTIFICATE_BAD_IDENTITY: GTlsCertificateFlags = 2;
752pub const G_TLS_CERTIFICATE_NOT_ACTIVATED: GTlsCertificateFlags = 4;
753pub const G_TLS_CERTIFICATE_EXPIRED: GTlsCertificateFlags = 8;
754pub const G_TLS_CERTIFICATE_REVOKED: GTlsCertificateFlags = 16;
755pub const G_TLS_CERTIFICATE_INSECURE: GTlsCertificateFlags = 32;
756pub const G_TLS_CERTIFICATE_GENERIC_ERROR: GTlsCertificateFlags = 64;
757pub const G_TLS_CERTIFICATE_VALIDATE_ALL: GTlsCertificateFlags = 127;
758
759pub type GTlsDatabaseVerifyFlags = c_uint;
760pub const G_TLS_DATABASE_VERIFY_NONE: GTlsDatabaseVerifyFlags = 0;
761
762pub type GTlsPasswordFlags = c_uint;
763pub const G_TLS_PASSWORD_NONE: GTlsPasswordFlags = 0;
764pub const G_TLS_PASSWORD_RETRY: GTlsPasswordFlags = 2;
765pub const G_TLS_PASSWORD_MANY_TRIES: GTlsPasswordFlags = 4;
766pub const G_TLS_PASSWORD_FINAL_TRY: GTlsPasswordFlags = 8;
767
768pub type GAsyncReadyCallback =
770 Option<unsafe extern "C" fn(*mut gobject::GObject, *mut GAsyncResult, gpointer)>;
771pub type GBusAcquiredCallback =
772 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
773pub type GBusNameAcquiredCallback =
774 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
775pub type GBusNameAppearedCallback =
776 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, *const c_char, gpointer)>;
777pub type GBusNameLostCallback =
778 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
779pub type GBusNameVanishedCallback =
780 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
781pub type GCancellableSourceFunc =
782 Option<unsafe extern "C" fn(*mut GCancellable, gpointer) -> gboolean>;
783pub type GDBusInterfaceGetPropertyFunc = Option<
784 unsafe extern "C" fn(
785 *mut GDBusConnection,
786 *const c_char,
787 *const c_char,
788 *const c_char,
789 *const c_char,
790 *mut *mut glib::GError,
791 gpointer,
792 ) -> *mut glib::GVariant,
793>;
794pub type GDBusInterfaceMethodCallFunc = Option<
795 unsafe extern "C" fn(
796 *mut GDBusConnection,
797 *const c_char,
798 *const c_char,
799 *const c_char,
800 *const c_char,
801 *mut glib::GVariant,
802 *mut GDBusMethodInvocation,
803 gpointer,
804 ),
805>;
806pub type GDBusInterfaceSetPropertyFunc = Option<
807 unsafe extern "C" fn(
808 *mut GDBusConnection,
809 *const c_char,
810 *const c_char,
811 *const c_char,
812 *const c_char,
813 *mut glib::GVariant,
814 *mut *mut glib::GError,
815 gpointer,
816 ) -> gboolean,
817>;
818pub type GDBusMessageFilterFunction = Option<
819 unsafe extern "C" fn(
820 *mut GDBusConnection,
821 *mut GDBusMessage,
822 gboolean,
823 gpointer,
824 ) -> *mut GDBusMessage,
825>;
826pub type GDBusProxyTypeFunc = Option<
827 unsafe extern "C" fn(
828 *mut GDBusObjectManagerClient,
829 *const c_char,
830 *const c_char,
831 gpointer,
832 ) -> GType,
833>;
834pub type GDBusSignalCallback = Option<
835 unsafe extern "C" fn(
836 *mut GDBusConnection,
837 *const c_char,
838 *const c_char,
839 *const c_char,
840 *const c_char,
841 *mut glib::GVariant,
842 gpointer,
843 ),
844>;
845pub type GDBusSubtreeDispatchFunc = Option<
846 unsafe extern "C" fn(
847 *mut GDBusConnection,
848 *const c_char,
849 *const c_char,
850 *const c_char,
851 *const c_char,
852 *mut gpointer,
853 gpointer,
854 ) -> *const GDBusInterfaceVTable,
855>;
856pub type GDBusSubtreeEnumerateFunc = Option<
857 unsafe extern "C" fn(
858 *mut GDBusConnection,
859 *const c_char,
860 *const c_char,
861 gpointer,
862 ) -> *mut *mut c_char,
863>;
864pub type GDBusSubtreeIntrospectFunc = Option<
865 unsafe extern "C" fn(
866 *mut GDBusConnection,
867 *const c_char,
868 *const c_char,
869 *const c_char,
870 gpointer,
871 ) -> *mut *mut GDBusInterfaceInfo,
872>;
873pub type GDatagramBasedSourceFunc =
874 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition, gpointer) -> gboolean>;
875pub type GDesktopAppLaunchCallback =
876 Option<unsafe extern "C" fn(*mut GDesktopAppInfo, glib::GPid, gpointer)>;
877pub type GFileMeasureProgressCallback =
878 Option<unsafe extern "C" fn(gboolean, u64, u64, u64, gpointer)>;
879pub type GFileProgressCallback = Option<unsafe extern "C" fn(i64, i64, gpointer)>;
880pub type GFileReadMoreCallback =
881 Option<unsafe extern "C" fn(*const c_char, i64, gpointer) -> gboolean>;
882pub type GIOSchedulerJobFunc =
883 Option<unsafe extern "C" fn(*mut GIOSchedulerJob, *mut GCancellable, gpointer) -> gboolean>;
884pub type GPollableSourceFunc =
885 Option<unsafe extern "C" fn(*mut gobject::GObject, gpointer) -> gboolean>;
886pub type GReallocFunc = Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>;
887pub type GSettingsBindGetMapping =
888 Option<unsafe extern "C" fn(*mut gobject::GValue, *mut glib::GVariant, gpointer) -> gboolean>;
889pub type GSettingsBindSetMapping = Option<
890 unsafe extern "C" fn(
891 *const gobject::GValue,
892 *const glib::GVariantType,
893 gpointer,
894 ) -> *mut glib::GVariant,
895>;
896pub type GSettingsGetMapping =
897 Option<unsafe extern "C" fn(*mut glib::GVariant, *mut gpointer, gpointer) -> gboolean>;
898pub type GSimpleAsyncThreadFunc =
899 Option<unsafe extern "C" fn(*mut GSimpleAsyncResult, *mut gobject::GObject, *mut GCancellable)>;
900pub type GSocketSourceFunc =
901 Option<unsafe extern "C" fn(*mut GSocket, glib::GIOCondition, gpointer) -> gboolean>;
902pub type GTaskThreadFunc =
903 Option<unsafe extern "C" fn(*mut GTask, *mut gobject::GObject, gpointer, *mut GCancellable)>;
904pub type GVfsFileLookupFunc =
905 Option<unsafe extern "C" fn(*mut GVfs, *const c_char, gpointer) -> *mut GFile>;
906
907#[repr(C)]
909#[derive(Copy, Clone)]
910pub struct GActionEntry {
911 pub name: *const c_char,
912 pub activate: Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
913 pub parameter_type: *const c_char,
914 pub state: *const c_char,
915 pub change_state:
916 Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
917 pub padding: [size_t; 3],
918}
919
920impl ::std::fmt::Debug for GActionEntry {
921 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
922 f.debug_struct(&format!("GActionEntry @ {:?}", self as *const _))
923 .field("name", &self.name)
924 .field("activate", &self.activate)
925 .field("parameter_type", &self.parameter_type)
926 .field("state", &self.state)
927 .field("change_state", &self.change_state)
928 .finish()
929 }
930}
931
932#[repr(C)]
933#[derive(Copy, Clone)]
934pub struct GActionGroupInterface {
935 pub g_iface: gobject::GTypeInterface,
936 pub has_action: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
937 pub list_actions: Option<unsafe extern "C" fn(*mut GActionGroup) -> *mut *mut c_char>,
938 pub get_action_enabled:
939 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
940 pub get_action_parameter_type:
941 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
942 pub get_action_state_type:
943 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
944 pub get_action_state_hint:
945 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
946 pub get_action_state:
947 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
948 pub change_action_state:
949 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
950 pub activate_action:
951 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
952 pub action_added: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
953 pub action_removed: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
954 pub action_enabled_changed:
955 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, gboolean)>,
956 pub action_state_changed:
957 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
958 pub query_action: Option<
959 unsafe extern "C" fn(
960 *mut GActionGroup,
961 *const c_char,
962 *mut gboolean,
963 *mut *const glib::GVariantType,
964 *mut *const glib::GVariantType,
965 *mut *mut glib::GVariant,
966 *mut *mut glib::GVariant,
967 ) -> gboolean,
968 >,
969}
970
971impl ::std::fmt::Debug for GActionGroupInterface {
972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
973 f.debug_struct(&format!("GActionGroupInterface @ {:?}", self as *const _))
974 .field("g_iface", &self.g_iface)
975 .field("has_action", &self.has_action)
976 .field("list_actions", &self.list_actions)
977 .field("get_action_enabled", &self.get_action_enabled)
978 .field("get_action_parameter_type", &self.get_action_parameter_type)
979 .field("get_action_state_type", &self.get_action_state_type)
980 .field("get_action_state_hint", &self.get_action_state_hint)
981 .field("get_action_state", &self.get_action_state)
982 .field("change_action_state", &self.change_action_state)
983 .field("activate_action", &self.activate_action)
984 .field("action_added", &self.action_added)
985 .field("action_removed", &self.action_removed)
986 .field("action_enabled_changed", &self.action_enabled_changed)
987 .field("action_state_changed", &self.action_state_changed)
988 .field("query_action", &self.query_action)
989 .finish()
990 }
991}
992
993#[repr(C)]
994#[derive(Copy, Clone)]
995pub struct GActionInterface {
996 pub g_iface: gobject::GTypeInterface,
997 pub get_name: Option<unsafe extern "C" fn(*mut GAction) -> *const c_char>,
998 pub get_parameter_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
999 pub get_state_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
1000 pub get_state_hint: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
1001 pub get_enabled: Option<unsafe extern "C" fn(*mut GAction) -> gboolean>,
1002 pub get_state: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
1003 pub change_state: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
1004 pub activate: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
1005}
1006
1007impl ::std::fmt::Debug for GActionInterface {
1008 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1009 f.debug_struct(&format!("GActionInterface @ {:?}", self as *const _))
1010 .field("g_iface", &self.g_iface)
1011 .field("get_name", &self.get_name)
1012 .field("get_parameter_type", &self.get_parameter_type)
1013 .field("get_state_type", &self.get_state_type)
1014 .field("get_state_hint", &self.get_state_hint)
1015 .field("get_enabled", &self.get_enabled)
1016 .field("get_state", &self.get_state)
1017 .field("change_state", &self.change_state)
1018 .field("activate", &self.activate)
1019 .finish()
1020 }
1021}
1022
1023#[repr(C)]
1024#[derive(Copy, Clone)]
1025pub struct GActionMapInterface {
1026 pub g_iface: gobject::GTypeInterface,
1027 pub lookup_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char) -> *mut GAction>,
1028 pub add_action: Option<unsafe extern "C" fn(*mut GActionMap, *mut GAction)>,
1029 pub remove_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char)>,
1030}
1031
1032impl ::std::fmt::Debug for GActionMapInterface {
1033 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1034 f.debug_struct(&format!("GActionMapInterface @ {:?}", self as *const _))
1035 .field("g_iface", &self.g_iface)
1036 .field("lookup_action", &self.lookup_action)
1037 .field("add_action", &self.add_action)
1038 .field("remove_action", &self.remove_action)
1039 .finish()
1040 }
1041}
1042
1043#[repr(C)]
1044#[derive(Copy, Clone)]
1045pub struct GAppInfoIface {
1046 pub g_iface: gobject::GTypeInterface,
1047 pub dup: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GAppInfo>,
1048 pub equal: Option<unsafe extern "C" fn(*mut GAppInfo, *mut GAppInfo) -> gboolean>,
1049 pub get_id: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1050 pub get_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1051 pub get_description: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1052 pub get_executable: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1053 pub get_icon: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GIcon>,
1054 pub launch: Option<
1055 unsafe extern "C" fn(
1056 *mut GAppInfo,
1057 *mut glib::GList,
1058 *mut GAppLaunchContext,
1059 *mut *mut glib::GError,
1060 ) -> gboolean,
1061 >,
1062 pub supports_uris: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1063 pub supports_files: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1064 pub launch_uris: Option<
1065 unsafe extern "C" fn(
1066 *mut GAppInfo,
1067 *mut glib::GList,
1068 *mut GAppLaunchContext,
1069 *mut *mut glib::GError,
1070 ) -> gboolean,
1071 >,
1072 pub should_show: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1073 pub set_as_default_for_type: Option<
1074 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1075 >,
1076 pub set_as_default_for_extension: Option<
1077 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1078 >,
1079 pub add_supports_type: Option<
1080 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1081 >,
1082 pub can_remove_supports_type: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1083 pub remove_supports_type: Option<
1084 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1085 >,
1086 pub can_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1087 pub do_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1088 pub get_commandline: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1089 pub get_display_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1090 pub set_as_last_used_for_type: Option<
1091 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1092 >,
1093 pub get_supported_types: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut *const c_char>,
1094}
1095
1096impl ::std::fmt::Debug for GAppInfoIface {
1097 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1098 f.debug_struct(&format!("GAppInfoIface @ {:?}", self as *const _))
1099 .field("g_iface", &self.g_iface)
1100 .field("dup", &self.dup)
1101 .field("equal", &self.equal)
1102 .field("get_id", &self.get_id)
1103 .field("get_name", &self.get_name)
1104 .field("get_description", &self.get_description)
1105 .field("get_executable", &self.get_executable)
1106 .field("get_icon", &self.get_icon)
1107 .field("launch", &self.launch)
1108 .field("supports_uris", &self.supports_uris)
1109 .field("supports_files", &self.supports_files)
1110 .field("launch_uris", &self.launch_uris)
1111 .field("should_show", &self.should_show)
1112 .field("set_as_default_for_type", &self.set_as_default_for_type)
1113 .field(
1114 "set_as_default_for_extension",
1115 &self.set_as_default_for_extension,
1116 )
1117 .field("add_supports_type", &self.add_supports_type)
1118 .field("can_remove_supports_type", &self.can_remove_supports_type)
1119 .field("remove_supports_type", &self.remove_supports_type)
1120 .field("can_delete", &self.can_delete)
1121 .field("do_delete", &self.do_delete)
1122 .field("get_commandline", &self.get_commandline)
1123 .field("get_display_name", &self.get_display_name)
1124 .field("set_as_last_used_for_type", &self.set_as_last_used_for_type)
1125 .field("get_supported_types", &self.get_supported_types)
1126 .finish()
1127 }
1128}
1129
1130#[repr(C)]
1131#[derive(Copy, Clone)]
1132pub struct GAppLaunchContextClass {
1133 pub parent_class: gobject::GObjectClass,
1134 pub get_display: Option<
1135 unsafe extern "C" fn(
1136 *mut GAppLaunchContext,
1137 *mut GAppInfo,
1138 *mut glib::GList,
1139 ) -> *mut c_char,
1140 >,
1141 pub get_startup_notify_id: Option<
1142 unsafe extern "C" fn(
1143 *mut GAppLaunchContext,
1144 *mut GAppInfo,
1145 *mut glib::GList,
1146 ) -> *mut c_char,
1147 >,
1148 pub launch_failed: Option<unsafe extern "C" fn(*mut GAppLaunchContext, *const c_char)>,
1149 pub launched:
1150 Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
1151 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1152 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1153 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1154 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1155}
1156
1157impl ::std::fmt::Debug for GAppLaunchContextClass {
1158 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1159 f.debug_struct(&format!("GAppLaunchContextClass @ {:?}", self as *const _))
1160 .field("parent_class", &self.parent_class)
1161 .field("get_display", &self.get_display)
1162 .field("get_startup_notify_id", &self.get_startup_notify_id)
1163 .field("launch_failed", &self.launch_failed)
1164 .field("launched", &self.launched)
1165 .field("_g_reserved1", &self._g_reserved1)
1166 .field("_g_reserved2", &self._g_reserved2)
1167 .field("_g_reserved3", &self._g_reserved3)
1168 .field("_g_reserved4", &self._g_reserved4)
1169 .finish()
1170 }
1171}
1172
1173#[repr(C)]
1174pub struct _GAppLaunchContextPrivate(c_void);
1175
1176pub type GAppLaunchContextPrivate = *mut _GAppLaunchContextPrivate;
1177
1178#[repr(C)]
1179#[derive(Copy, Clone)]
1180pub struct GApplicationClass {
1181 pub parent_class: gobject::GObjectClass,
1182 pub startup: Option<unsafe extern "C" fn(*mut GApplication)>,
1183 pub activate: Option<unsafe extern "C" fn(*mut GApplication)>,
1184 pub open:
1185 Option<unsafe extern "C" fn(*mut GApplication, *mut *mut GFile, c_int, *const c_char)>,
1186 pub command_line:
1187 Option<unsafe extern "C" fn(*mut GApplication, *mut GApplicationCommandLine) -> c_int>,
1188 pub local_command_line: Option<
1189 unsafe extern "C" fn(*mut GApplication, *mut *mut *mut c_char, *mut c_int) -> gboolean,
1190 >,
1191 pub before_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1192 pub after_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1193 pub add_platform_data:
1194 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantBuilder)>,
1195 pub quit_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1196 pub run_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1197 pub shutdown: Option<unsafe extern "C" fn(*mut GApplication)>,
1198 pub dbus_register: Option<
1199 unsafe extern "C" fn(
1200 *mut GApplication,
1201 *mut GDBusConnection,
1202 *const c_char,
1203 *mut *mut glib::GError,
1204 ) -> gboolean,
1205 >,
1206 pub dbus_unregister:
1207 Option<unsafe extern "C" fn(*mut GApplication, *mut GDBusConnection, *const c_char)>,
1208 pub handle_local_options:
1209 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantDict) -> c_int>,
1210 pub padding: [gpointer; 8],
1211}
1212
1213impl ::std::fmt::Debug for GApplicationClass {
1214 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1215 f.debug_struct(&format!("GApplicationClass @ {:?}", self as *const _))
1216 .field("startup", &self.startup)
1217 .field("activate", &self.activate)
1218 .field("open", &self.open)
1219 .field("command_line", &self.command_line)
1220 .field("local_command_line", &self.local_command_line)
1221 .field("before_emit", &self.before_emit)
1222 .field("after_emit", &self.after_emit)
1223 .field("add_platform_data", &self.add_platform_data)
1224 .field("quit_mainloop", &self.quit_mainloop)
1225 .field("run_mainloop", &self.run_mainloop)
1226 .field("shutdown", &self.shutdown)
1227 .field("dbus_register", &self.dbus_register)
1228 .field("dbus_unregister", &self.dbus_unregister)
1229 .field("handle_local_options", &self.handle_local_options)
1230 .finish()
1231 }
1232}
1233
1234#[repr(C)]
1235#[derive(Copy, Clone)]
1236pub struct GApplicationCommandLineClass {
1237 pub parent_class: gobject::GObjectClass,
1238 pub print_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1239 pub printerr_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1240 pub get_stdin: Option<unsafe extern "C" fn(*mut GApplicationCommandLine) -> *mut GInputStream>,
1241 pub padding: [gpointer; 11],
1242}
1243
1244impl ::std::fmt::Debug for GApplicationCommandLineClass {
1245 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1246 f.debug_struct(&format!(
1247 "GApplicationCommandLineClass @ {:?}",
1248 self as *const _
1249 ))
1250 .field("print_literal", &self.print_literal)
1251 .field("printerr_literal", &self.printerr_literal)
1252 .field("get_stdin", &self.get_stdin)
1253 .finish()
1254 }
1255}
1256
1257#[repr(C)]
1258pub struct _GApplicationCommandLinePrivate(c_void);
1259
1260pub type GApplicationCommandLinePrivate = *mut _GApplicationCommandLinePrivate;
1261
1262#[repr(C)]
1263pub struct _GApplicationPrivate(c_void);
1264
1265pub type GApplicationPrivate = *mut _GApplicationPrivate;
1266
1267#[repr(C)]
1268#[derive(Copy, Clone)]
1269pub struct GAsyncInitableIface {
1270 pub g_iface: gobject::GTypeInterface,
1271 pub init_async: Option<
1272 unsafe extern "C" fn(
1273 *mut GAsyncInitable,
1274 c_int,
1275 *mut GCancellable,
1276 GAsyncReadyCallback,
1277 gpointer,
1278 ),
1279 >,
1280 pub init_finish: Option<
1281 unsafe extern "C" fn(
1282 *mut GAsyncInitable,
1283 *mut GAsyncResult,
1284 *mut *mut glib::GError,
1285 ) -> gboolean,
1286 >,
1287}
1288
1289impl ::std::fmt::Debug for GAsyncInitableIface {
1290 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1291 f.debug_struct(&format!("GAsyncInitableIface @ {:?}", self as *const _))
1292 .field("g_iface", &self.g_iface)
1293 .field("init_async", &self.init_async)
1294 .field("init_finish", &self.init_finish)
1295 .finish()
1296 }
1297}
1298
1299#[repr(C)]
1300#[derive(Copy, Clone)]
1301pub struct GAsyncResultIface {
1302 pub g_iface: gobject::GTypeInterface,
1303 pub get_user_data: Option<unsafe extern "C" fn(*mut GAsyncResult) -> gpointer>,
1304 pub get_source_object: Option<unsafe extern "C" fn(*mut GAsyncResult) -> *mut gobject::GObject>,
1305 pub is_tagged: Option<unsafe extern "C" fn(*mut GAsyncResult, gpointer) -> gboolean>,
1306}
1307
1308impl ::std::fmt::Debug for GAsyncResultIface {
1309 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1310 f.debug_struct(&format!("GAsyncResultIface @ {:?}", self as *const _))
1311 .field("g_iface", &self.g_iface)
1312 .field("get_user_data", &self.get_user_data)
1313 .field("get_source_object", &self.get_source_object)
1314 .field("is_tagged", &self.is_tagged)
1315 .finish()
1316 }
1317}
1318
1319#[repr(C)]
1320#[derive(Copy, Clone)]
1321pub struct GBufferedInputStreamClass {
1322 pub parent_class: GFilterInputStreamClass,
1323 pub fill: Option<
1324 unsafe extern "C" fn(
1325 *mut GBufferedInputStream,
1326 ssize_t,
1327 *mut GCancellable,
1328 *mut *mut glib::GError,
1329 ) -> ssize_t,
1330 >,
1331 pub fill_async: Option<
1332 unsafe extern "C" fn(
1333 *mut GBufferedInputStream,
1334 ssize_t,
1335 c_int,
1336 *mut GCancellable,
1337 GAsyncReadyCallback,
1338 gpointer,
1339 ),
1340 >,
1341 pub fill_finish: Option<
1342 unsafe extern "C" fn(
1343 *mut GBufferedInputStream,
1344 *mut GAsyncResult,
1345 *mut *mut glib::GError,
1346 ) -> ssize_t,
1347 >,
1348 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1349 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1350 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1351 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1352 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1353}
1354
1355impl ::std::fmt::Debug for GBufferedInputStreamClass {
1356 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1357 f.debug_struct(&format!(
1358 "GBufferedInputStreamClass @ {:?}",
1359 self as *const _
1360 ))
1361 .field("parent_class", &self.parent_class)
1362 .field("fill", &self.fill)
1363 .field("fill_async", &self.fill_async)
1364 .field("fill_finish", &self.fill_finish)
1365 .field("_g_reserved1", &self._g_reserved1)
1366 .field("_g_reserved2", &self._g_reserved2)
1367 .field("_g_reserved3", &self._g_reserved3)
1368 .field("_g_reserved4", &self._g_reserved4)
1369 .field("_g_reserved5", &self._g_reserved5)
1370 .finish()
1371 }
1372}
1373
1374#[repr(C)]
1375pub struct _GBufferedInputStreamPrivate(c_void);
1376
1377pub type GBufferedInputStreamPrivate = *mut _GBufferedInputStreamPrivate;
1378
1379#[repr(C)]
1380#[derive(Copy, Clone)]
1381pub struct GBufferedOutputStreamClass {
1382 pub parent_class: GFilterOutputStreamClass,
1383 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1384 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1385}
1386
1387impl ::std::fmt::Debug for GBufferedOutputStreamClass {
1388 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1389 f.debug_struct(&format!(
1390 "GBufferedOutputStreamClass @ {:?}",
1391 self as *const _
1392 ))
1393 .field("parent_class", &self.parent_class)
1394 .field("_g_reserved1", &self._g_reserved1)
1395 .field("_g_reserved2", &self._g_reserved2)
1396 .finish()
1397 }
1398}
1399
1400#[repr(C)]
1401pub struct _GBufferedOutputStreamPrivate(c_void);
1402
1403pub type GBufferedOutputStreamPrivate = *mut _GBufferedOutputStreamPrivate;
1404
1405#[repr(C)]
1406#[derive(Copy, Clone)]
1407pub struct GCancellableClass {
1408 pub parent_class: gobject::GObjectClass,
1409 pub cancelled: Option<unsafe extern "C" fn(*mut GCancellable)>,
1410 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1411 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1412 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1413 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1414 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1415}
1416
1417impl ::std::fmt::Debug for GCancellableClass {
1418 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1419 f.debug_struct(&format!("GCancellableClass @ {:?}", self as *const _))
1420 .field("parent_class", &self.parent_class)
1421 .field("cancelled", &self.cancelled)
1422 .field("_g_reserved1", &self._g_reserved1)
1423 .field("_g_reserved2", &self._g_reserved2)
1424 .field("_g_reserved3", &self._g_reserved3)
1425 .field("_g_reserved4", &self._g_reserved4)
1426 .field("_g_reserved5", &self._g_reserved5)
1427 .finish()
1428 }
1429}
1430
1431#[repr(C)]
1432pub struct _GCancellablePrivate(c_void);
1433
1434pub type GCancellablePrivate = *mut _GCancellablePrivate;
1435
1436#[repr(C)]
1437#[derive(Copy, Clone)]
1438pub struct GCharsetConverterClass {
1439 pub parent_class: gobject::GObjectClass,
1440}
1441
1442impl ::std::fmt::Debug for GCharsetConverterClass {
1443 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1444 f.debug_struct(&format!("GCharsetConverterClass @ {:?}", self as *const _))
1445 .field("parent_class", &self.parent_class)
1446 .finish()
1447 }
1448}
1449
1450#[repr(C)]
1451#[derive(Copy, Clone)]
1452pub struct GConverterIface {
1453 pub g_iface: gobject::GTypeInterface,
1454 pub convert: Option<
1455 unsafe extern "C" fn(
1456 *mut GConverter,
1457 *mut u8,
1458 size_t,
1459 *mut u8,
1460 size_t,
1461 GConverterFlags,
1462 *mut size_t,
1463 *mut size_t,
1464 *mut *mut glib::GError,
1465 ) -> GConverterResult,
1466 >,
1467 pub reset: Option<unsafe extern "C" fn(*mut GConverter)>,
1468}
1469
1470impl ::std::fmt::Debug for GConverterIface {
1471 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1472 f.debug_struct(&format!("GConverterIface @ {:?}", self as *const _))
1473 .field("g_iface", &self.g_iface)
1474 .field("convert", &self.convert)
1475 .field("reset", &self.reset)
1476 .finish()
1477 }
1478}
1479
1480#[repr(C)]
1481#[derive(Copy, Clone)]
1482pub struct GConverterInputStreamClass {
1483 pub parent_class: GFilterInputStreamClass,
1484 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1485 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1486 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1487 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1488 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1489}
1490
1491impl ::std::fmt::Debug for GConverterInputStreamClass {
1492 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1493 f.debug_struct(&format!(
1494 "GConverterInputStreamClass @ {:?}",
1495 self as *const _
1496 ))
1497 .field("parent_class", &self.parent_class)
1498 .field("_g_reserved1", &self._g_reserved1)
1499 .field("_g_reserved2", &self._g_reserved2)
1500 .field("_g_reserved3", &self._g_reserved3)
1501 .field("_g_reserved4", &self._g_reserved4)
1502 .field("_g_reserved5", &self._g_reserved5)
1503 .finish()
1504 }
1505}
1506
1507#[repr(C)]
1508pub struct _GConverterInputStreamPrivate(c_void);
1509
1510pub type GConverterInputStreamPrivate = *mut _GConverterInputStreamPrivate;
1511
1512#[repr(C)]
1513#[derive(Copy, Clone)]
1514pub struct GConverterOutputStreamClass {
1515 pub parent_class: GFilterOutputStreamClass,
1516 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1517 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1518 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1519 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1520 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1521}
1522
1523impl ::std::fmt::Debug for GConverterOutputStreamClass {
1524 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1525 f.debug_struct(&format!(
1526 "GConverterOutputStreamClass @ {:?}",
1527 self as *const _
1528 ))
1529 .field("parent_class", &self.parent_class)
1530 .field("_g_reserved1", &self._g_reserved1)
1531 .field("_g_reserved2", &self._g_reserved2)
1532 .field("_g_reserved3", &self._g_reserved3)
1533 .field("_g_reserved4", &self._g_reserved4)
1534 .field("_g_reserved5", &self._g_reserved5)
1535 .finish()
1536 }
1537}
1538
1539#[repr(C)]
1540pub struct _GConverterOutputStreamPrivate(c_void);
1541
1542pub type GConverterOutputStreamPrivate = *mut _GConverterOutputStreamPrivate;
1543
1544#[repr(C)]
1545pub struct _GCredentialsClass(c_void);
1546
1547pub type GCredentialsClass = *mut _GCredentialsClass;
1548
1549#[repr(C)]
1550#[derive(Copy, Clone)]
1551pub struct GDBusAnnotationInfo {
1552 pub ref_count: c_int,
1553 pub key: *mut c_char,
1554 pub value: *mut c_char,
1555 pub annotations: *mut *mut GDBusAnnotationInfo,
1556}
1557
1558impl ::std::fmt::Debug for GDBusAnnotationInfo {
1559 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1560 f.debug_struct(&format!("GDBusAnnotationInfo @ {:?}", self as *const _))
1561 .field("key", &self.key)
1562 .field("value", &self.value)
1563 .field("annotations", &self.annotations)
1564 .finish()
1565 }
1566}
1567
1568#[repr(C)]
1569#[derive(Copy, Clone)]
1570pub struct GDBusArgInfo {
1571 pub ref_count: c_int,
1572 pub name: *mut c_char,
1573 pub signature: *mut c_char,
1574 pub annotations: *mut *mut GDBusAnnotationInfo,
1575}
1576
1577impl ::std::fmt::Debug for GDBusArgInfo {
1578 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1579 f.debug_struct(&format!("GDBusArgInfo @ {:?}", self as *const _))
1580 .field("name", &self.name)
1581 .field("signature", &self.signature)
1582 .field("annotations", &self.annotations)
1583 .finish()
1584 }
1585}
1586
1587#[repr(C)]
1588#[derive(Copy, Clone)]
1589pub struct GDBusErrorEntry {
1590 pub error_code: c_int,
1591 pub dbus_error_name: *const c_char,
1592}
1593
1594impl ::std::fmt::Debug for GDBusErrorEntry {
1595 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1596 f.debug_struct(&format!("GDBusErrorEntry @ {:?}", self as *const _))
1597 .field("error_code", &self.error_code)
1598 .field("dbus_error_name", &self.dbus_error_name)
1599 .finish()
1600 }
1601}
1602
1603#[repr(C)]
1604#[derive(Copy, Clone)]
1605pub struct GDBusInterfaceIface {
1606 pub parent_iface: gobject::GTypeInterface,
1607 pub get_info: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusInterfaceInfo>,
1608 pub get_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1609 pub set_object: Option<unsafe extern "C" fn(*mut GDBusInterface, *mut GDBusObject)>,
1610 pub dup_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1611}
1612
1613impl ::std::fmt::Debug for GDBusInterfaceIface {
1614 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1615 f.debug_struct(&format!("GDBusInterfaceIface @ {:?}", self as *const _))
1616 .field("parent_iface", &self.parent_iface)
1617 .field("get_info", &self.get_info)
1618 .field("get_object", &self.get_object)
1619 .field("set_object", &self.set_object)
1620 .field("dup_object", &self.dup_object)
1621 .finish()
1622 }
1623}
1624
1625#[repr(C)]
1626#[derive(Copy, Clone)]
1627pub struct GDBusInterfaceInfo {
1628 pub ref_count: c_int,
1629 pub name: *mut c_char,
1630 pub methods: *mut *mut GDBusMethodInfo,
1631 pub signals: *mut *mut GDBusSignalInfo,
1632 pub properties: *mut *mut GDBusPropertyInfo,
1633 pub annotations: *mut *mut GDBusAnnotationInfo,
1634}
1635
1636impl ::std::fmt::Debug for GDBusInterfaceInfo {
1637 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1638 f.debug_struct(&format!("GDBusInterfaceInfo @ {:?}", self as *const _))
1639 .field("name", &self.name)
1640 .field("methods", &self.methods)
1641 .field("signals", &self.signals)
1642 .field("properties", &self.properties)
1643 .field("annotations", &self.annotations)
1644 .finish()
1645 }
1646}
1647
1648#[repr(C)]
1649#[derive(Copy, Clone)]
1650pub struct GDBusInterfaceSkeletonClass {
1651 pub parent_class: gobject::GObjectClass,
1652 pub get_info:
1653 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo>,
1654 pub get_vtable:
1655 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable>,
1656 pub get_properties:
1657 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut glib::GVariant>,
1658 pub flush: Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton)>,
1659 pub vfunc_padding: [gpointer; 8],
1660 pub g_authorize_method: Option<
1661 unsafe extern "C" fn(*mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean,
1662 >,
1663 pub signal_padding: [gpointer; 8],
1664}
1665
1666impl ::std::fmt::Debug for GDBusInterfaceSkeletonClass {
1667 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1668 f.debug_struct(&format!(
1669 "GDBusInterfaceSkeletonClass @ {:?}",
1670 self as *const _
1671 ))
1672 .field("parent_class", &self.parent_class)
1673 .field("get_info", &self.get_info)
1674 .field("get_vtable", &self.get_vtable)
1675 .field("get_properties", &self.get_properties)
1676 .field("flush", &self.flush)
1677 .field("g_authorize_method", &self.g_authorize_method)
1678 .finish()
1679 }
1680}
1681
1682#[repr(C)]
1683pub struct _GDBusInterfaceSkeletonPrivate(c_void);
1684
1685pub type GDBusInterfaceSkeletonPrivate = *mut _GDBusInterfaceSkeletonPrivate;
1686
1687#[repr(C)]
1688#[derive(Copy, Clone)]
1689pub struct GDBusInterfaceVTable {
1690 pub method_call: GDBusInterfaceMethodCallFunc,
1691 pub get_property: GDBusInterfaceGetPropertyFunc,
1692 pub set_property: GDBusInterfaceSetPropertyFunc,
1693 pub padding: [gpointer; 8],
1694}
1695
1696impl ::std::fmt::Debug for GDBusInterfaceVTable {
1697 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1698 f.debug_struct(&format!("GDBusInterfaceVTable @ {:?}", self as *const _))
1699 .field("method_call", &self.method_call)
1700 .field("get_property", &self.get_property)
1701 .field("set_property", &self.set_property)
1702 .finish()
1703 }
1704}
1705
1706#[repr(C)]
1707#[derive(Copy, Clone)]
1708pub struct GDBusMethodInfo {
1709 pub ref_count: c_int,
1710 pub name: *mut c_char,
1711 pub in_args: *mut *mut GDBusArgInfo,
1712 pub out_args: *mut *mut GDBusArgInfo,
1713 pub annotations: *mut *mut GDBusAnnotationInfo,
1714}
1715
1716impl ::std::fmt::Debug for GDBusMethodInfo {
1717 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1718 f.debug_struct(&format!("GDBusMethodInfo @ {:?}", self as *const _))
1719 .field("name", &self.name)
1720 .field("in_args", &self.in_args)
1721 .field("out_args", &self.out_args)
1722 .field("annotations", &self.annotations)
1723 .finish()
1724 }
1725}
1726
1727#[repr(C)]
1728#[derive(Copy, Clone)]
1729pub struct GDBusNodeInfo {
1730 pub ref_count: c_int,
1731 pub path: *mut c_char,
1732 pub interfaces: *mut *mut GDBusInterfaceInfo,
1733 pub nodes: *mut *mut GDBusNodeInfo,
1734 pub annotations: *mut *mut GDBusAnnotationInfo,
1735}
1736
1737impl ::std::fmt::Debug for GDBusNodeInfo {
1738 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1739 f.debug_struct(&format!("GDBusNodeInfo @ {:?}", self as *const _))
1740 .field("path", &self.path)
1741 .field("interfaces", &self.interfaces)
1742 .field("nodes", &self.nodes)
1743 .field("annotations", &self.annotations)
1744 .finish()
1745 }
1746}
1747
1748#[repr(C)]
1749#[derive(Copy, Clone)]
1750pub struct GDBusObjectIface {
1751 pub parent_iface: gobject::GTypeInterface,
1752 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObject) -> *const c_char>,
1753 pub get_interfaces: Option<unsafe extern "C" fn(*mut GDBusObject) -> *mut glib::GList>,
1754 pub get_interface:
1755 Option<unsafe extern "C" fn(*mut GDBusObject, *const c_char) -> *mut GDBusInterface>,
1756 pub interface_added: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1757 pub interface_removed: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1758}
1759
1760impl ::std::fmt::Debug for GDBusObjectIface {
1761 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1762 f.debug_struct(&format!("GDBusObjectIface @ {:?}", self as *const _))
1763 .field("parent_iface", &self.parent_iface)
1764 .field("get_object_path", &self.get_object_path)
1765 .field("get_interfaces", &self.get_interfaces)
1766 .field("get_interface", &self.get_interface)
1767 .field("interface_added", &self.interface_added)
1768 .field("interface_removed", &self.interface_removed)
1769 .finish()
1770 }
1771}
1772
1773#[repr(C)]
1774#[derive(Copy, Clone)]
1775pub struct GDBusObjectManagerClientClass {
1776 pub parent_class: gobject::GObjectClass,
1777 pub interface_proxy_signal: Option<
1778 unsafe extern "C" fn(
1779 *mut GDBusObjectManagerClient,
1780 *mut GDBusObjectProxy,
1781 *mut GDBusProxy,
1782 *const c_char,
1783 *const c_char,
1784 *mut glib::GVariant,
1785 ),
1786 >,
1787 pub interface_proxy_properties_changed: Option<
1788 unsafe extern "C" fn(
1789 *mut GDBusObjectManagerClient,
1790 *mut GDBusObjectProxy,
1791 *mut GDBusProxy,
1792 *mut glib::GVariant,
1793 *const *const c_char,
1794 ),
1795 >,
1796 pub padding: [gpointer; 8],
1797}
1798
1799impl ::std::fmt::Debug for GDBusObjectManagerClientClass {
1800 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1801 f.debug_struct(&format!(
1802 "GDBusObjectManagerClientClass @ {:?}",
1803 self as *const _
1804 ))
1805 .field("parent_class", &self.parent_class)
1806 .field("interface_proxy_signal", &self.interface_proxy_signal)
1807 .field(
1808 "interface_proxy_properties_changed",
1809 &self.interface_proxy_properties_changed,
1810 )
1811 .finish()
1812 }
1813}
1814
1815#[repr(C)]
1816pub struct _GDBusObjectManagerClientPrivate(c_void);
1817
1818pub type GDBusObjectManagerClientPrivate = *mut _GDBusObjectManagerClientPrivate;
1819
1820#[repr(C)]
1821#[derive(Copy, Clone)]
1822pub struct GDBusObjectManagerIface {
1823 pub parent_iface: gobject::GTypeInterface,
1824 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *const c_char>,
1825 pub get_objects: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *mut glib::GList>,
1826 pub get_object:
1827 Option<unsafe extern "C" fn(*mut GDBusObjectManager, *const c_char) -> *mut GDBusObject>,
1828 pub get_interface: Option<
1829 unsafe extern "C" fn(
1830 *mut GDBusObjectManager,
1831 *const c_char,
1832 *const c_char,
1833 ) -> *mut GDBusInterface,
1834 >,
1835 pub object_added: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1836 pub object_removed: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1837 pub interface_added: Option<
1838 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1839 >,
1840 pub interface_removed: Option<
1841 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1842 >,
1843}
1844
1845impl ::std::fmt::Debug for GDBusObjectManagerIface {
1846 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1847 f.debug_struct(&format!("GDBusObjectManagerIface @ {:?}", self as *const _))
1848 .field("parent_iface", &self.parent_iface)
1849 .field("get_object_path", &self.get_object_path)
1850 .field("get_objects", &self.get_objects)
1851 .field("get_object", &self.get_object)
1852 .field("get_interface", &self.get_interface)
1853 .field("object_added", &self.object_added)
1854 .field("object_removed", &self.object_removed)
1855 .field("interface_added", &self.interface_added)
1856 .field("interface_removed", &self.interface_removed)
1857 .finish()
1858 }
1859}
1860
1861#[repr(C)]
1862#[derive(Copy, Clone)]
1863pub struct GDBusObjectManagerServerClass {
1864 pub parent_class: gobject::GObjectClass,
1865 pub padding: [gpointer; 8],
1866}
1867
1868impl ::std::fmt::Debug for GDBusObjectManagerServerClass {
1869 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1870 f.debug_struct(&format!(
1871 "GDBusObjectManagerServerClass @ {:?}",
1872 self as *const _
1873 ))
1874 .field("parent_class", &self.parent_class)
1875 .finish()
1876 }
1877}
1878
1879#[repr(C)]
1880pub struct _GDBusObjectManagerServerPrivate(c_void);
1881
1882pub type GDBusObjectManagerServerPrivate = *mut _GDBusObjectManagerServerPrivate;
1883
1884#[repr(C)]
1885#[derive(Copy, Clone)]
1886pub struct GDBusObjectProxyClass {
1887 pub parent_class: gobject::GObjectClass,
1888 pub padding: [gpointer; 8],
1889}
1890
1891impl ::std::fmt::Debug for GDBusObjectProxyClass {
1892 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1893 f.debug_struct(&format!("GDBusObjectProxyClass @ {:?}", self as *const _))
1894 .field("parent_class", &self.parent_class)
1895 .finish()
1896 }
1897}
1898
1899#[repr(C)]
1900pub struct _GDBusObjectProxyPrivate(c_void);
1901
1902pub type GDBusObjectProxyPrivate = *mut _GDBusObjectProxyPrivate;
1903
1904#[repr(C)]
1905#[derive(Copy, Clone)]
1906pub struct GDBusObjectSkeletonClass {
1907 pub parent_class: gobject::GObjectClass,
1908 pub authorize_method: Option<
1909 unsafe extern "C" fn(
1910 *mut GDBusObjectSkeleton,
1911 *mut GDBusInterfaceSkeleton,
1912 *mut GDBusMethodInvocation,
1913 ) -> gboolean,
1914 >,
1915 pub padding: [gpointer; 8],
1916}
1917
1918impl ::std::fmt::Debug for GDBusObjectSkeletonClass {
1919 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1920 f.debug_struct(&format!(
1921 "GDBusObjectSkeletonClass @ {:?}",
1922 self as *const _
1923 ))
1924 .field("parent_class", &self.parent_class)
1925 .field("authorize_method", &self.authorize_method)
1926 .finish()
1927 }
1928}
1929
1930#[repr(C)]
1931pub struct _GDBusObjectSkeletonPrivate(c_void);
1932
1933pub type GDBusObjectSkeletonPrivate = *mut _GDBusObjectSkeletonPrivate;
1934
1935#[repr(C)]
1936#[derive(Copy, Clone)]
1937pub struct GDBusPropertyInfo {
1938 pub ref_count: c_int,
1939 pub name: *mut c_char,
1940 pub signature: *mut c_char,
1941 pub flags: GDBusPropertyInfoFlags,
1942 pub annotations: *mut *mut GDBusAnnotationInfo,
1943}
1944
1945impl ::std::fmt::Debug for GDBusPropertyInfo {
1946 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1947 f.debug_struct(&format!("GDBusPropertyInfo @ {:?}", self as *const _))
1948 .field("name", &self.name)
1949 .field("signature", &self.signature)
1950 .field("flags", &self.flags)
1951 .field("annotations", &self.annotations)
1952 .finish()
1953 }
1954}
1955
1956#[repr(C)]
1957#[derive(Copy, Clone)]
1958pub struct GDBusProxyClass {
1959 pub parent_class: gobject::GObjectClass,
1960 pub g_properties_changed:
1961 Option<unsafe extern "C" fn(*mut GDBusProxy, *mut glib::GVariant, *const *const c_char)>,
1962 pub g_signal: Option<
1963 unsafe extern "C" fn(*mut GDBusProxy, *const c_char, *const c_char, *mut glib::GVariant),
1964 >,
1965 pub padding: [gpointer; 32],
1966}
1967
1968impl ::std::fmt::Debug for GDBusProxyClass {
1969 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1970 f.debug_struct(&format!("GDBusProxyClass @ {:?}", self as *const _))
1971 .field("g_properties_changed", &self.g_properties_changed)
1972 .field("g_signal", &self.g_signal)
1973 .finish()
1974 }
1975}
1976
1977#[repr(C)]
1978pub struct _GDBusProxyPrivate(c_void);
1979
1980pub type GDBusProxyPrivate = *mut _GDBusProxyPrivate;
1981
1982#[repr(C)]
1983#[derive(Copy, Clone)]
1984pub struct GDBusSignalInfo {
1985 pub ref_count: c_int,
1986 pub name: *mut c_char,
1987 pub args: *mut *mut GDBusArgInfo,
1988 pub annotations: *mut *mut GDBusAnnotationInfo,
1989}
1990
1991impl ::std::fmt::Debug for GDBusSignalInfo {
1992 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1993 f.debug_struct(&format!("GDBusSignalInfo @ {:?}", self as *const _))
1994 .field("name", &self.name)
1995 .field("args", &self.args)
1996 .field("annotations", &self.annotations)
1997 .finish()
1998 }
1999}
2000
2001#[repr(C)]
2002#[derive(Copy, Clone)]
2003pub struct GDBusSubtreeVTable {
2004 pub enumerate: GDBusSubtreeEnumerateFunc,
2005 pub introspect: GDBusSubtreeIntrospectFunc,
2006 pub dispatch: GDBusSubtreeDispatchFunc,
2007 pub padding: [gpointer; 8],
2008}
2009
2010impl ::std::fmt::Debug for GDBusSubtreeVTable {
2011 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2012 f.debug_struct(&format!("GDBusSubtreeVTable @ {:?}", self as *const _))
2013 .field("enumerate", &self.enumerate)
2014 .field("introspect", &self.introspect)
2015 .field("dispatch", &self.dispatch)
2016 .finish()
2017 }
2018}
2019
2020#[repr(C)]
2021#[derive(Copy, Clone)]
2022pub struct GDataInputStreamClass {
2023 pub parent_class: GBufferedInputStreamClass,
2024 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2025 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2026 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2027 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2028 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2029}
2030
2031impl ::std::fmt::Debug for GDataInputStreamClass {
2032 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2033 f.debug_struct(&format!("GDataInputStreamClass @ {:?}", self as *const _))
2034 .field("parent_class", &self.parent_class)
2035 .field("_g_reserved1", &self._g_reserved1)
2036 .field("_g_reserved2", &self._g_reserved2)
2037 .field("_g_reserved3", &self._g_reserved3)
2038 .field("_g_reserved4", &self._g_reserved4)
2039 .field("_g_reserved5", &self._g_reserved5)
2040 .finish()
2041 }
2042}
2043
2044#[repr(C)]
2045pub struct _GDataInputStreamPrivate(c_void);
2046
2047pub type GDataInputStreamPrivate = *mut _GDataInputStreamPrivate;
2048
2049#[repr(C)]
2050#[derive(Copy, Clone)]
2051pub struct GDataOutputStreamClass {
2052 pub parent_class: GFilterOutputStreamClass,
2053 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2054 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2055 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2056 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2057 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2058}
2059
2060impl ::std::fmt::Debug for GDataOutputStreamClass {
2061 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2062 f.debug_struct(&format!("GDataOutputStreamClass @ {:?}", self as *const _))
2063 .field("parent_class", &self.parent_class)
2064 .field("_g_reserved1", &self._g_reserved1)
2065 .field("_g_reserved2", &self._g_reserved2)
2066 .field("_g_reserved3", &self._g_reserved3)
2067 .field("_g_reserved4", &self._g_reserved4)
2068 .field("_g_reserved5", &self._g_reserved5)
2069 .finish()
2070 }
2071}
2072
2073#[repr(C)]
2074pub struct _GDataOutputStreamPrivate(c_void);
2075
2076pub type GDataOutputStreamPrivate = *mut _GDataOutputStreamPrivate;
2077
2078#[repr(C)]
2079#[derive(Copy, Clone)]
2080pub struct GDatagramBasedInterface {
2081 pub g_iface: gobject::GTypeInterface,
2082 pub receive_messages: Option<
2083 unsafe extern "C" fn(
2084 *mut GDatagramBased,
2085 *mut GInputMessage,
2086 c_uint,
2087 c_int,
2088 i64,
2089 *mut GCancellable,
2090 *mut *mut glib::GError,
2091 ) -> c_int,
2092 >,
2093 pub send_messages: Option<
2094 unsafe extern "C" fn(
2095 *mut GDatagramBased,
2096 *mut GOutputMessage,
2097 c_uint,
2098 c_int,
2099 i64,
2100 *mut GCancellable,
2101 *mut *mut glib::GError,
2102 ) -> c_int,
2103 >,
2104 pub create_source: Option<
2105 unsafe extern "C" fn(
2106 *mut GDatagramBased,
2107 glib::GIOCondition,
2108 *mut GCancellable,
2109 ) -> *mut glib::GSource,
2110 >,
2111 pub condition_check:
2112 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition) -> glib::GIOCondition>,
2113 pub condition_wait: Option<
2114 unsafe extern "C" fn(
2115 *mut GDatagramBased,
2116 glib::GIOCondition,
2117 i64,
2118 *mut GCancellable,
2119 *mut *mut glib::GError,
2120 ) -> gboolean,
2121 >,
2122}
2123
2124impl ::std::fmt::Debug for GDatagramBasedInterface {
2125 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2126 f.debug_struct(&format!("GDatagramBasedInterface @ {:?}", self as *const _))
2127 .field("g_iface", &self.g_iface)
2128 .field("receive_messages", &self.receive_messages)
2129 .field("send_messages", &self.send_messages)
2130 .field("create_source", &self.create_source)
2131 .field("condition_check", &self.condition_check)
2132 .field("condition_wait", &self.condition_wait)
2133 .finish()
2134 }
2135}
2136
2137#[repr(C)]
2138#[derive(Copy, Clone)]
2139pub struct GDesktopAppInfoClass {
2140 pub parent_class: gobject::GObjectClass,
2141}
2142
2143impl ::std::fmt::Debug for GDesktopAppInfoClass {
2144 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2145 f.debug_struct(&format!("GDesktopAppInfoClass @ {:?}", self as *const _))
2146 .field("parent_class", &self.parent_class)
2147 .finish()
2148 }
2149}
2150
2151#[repr(C)]
2152#[derive(Copy, Clone)]
2153pub struct GDesktopAppInfoLookupIface {
2154 pub g_iface: gobject::GTypeInterface,
2155 pub get_default_for_uri_scheme:
2156 Option<unsafe extern "C" fn(*mut GDesktopAppInfoLookup, *const c_char) -> *mut GAppInfo>,
2157}
2158
2159impl ::std::fmt::Debug for GDesktopAppInfoLookupIface {
2160 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2161 f.debug_struct(&format!(
2162 "GDesktopAppInfoLookupIface @ {:?}",
2163 self as *const _
2164 ))
2165 .field("g_iface", &self.g_iface)
2166 .field(
2167 "get_default_for_uri_scheme",
2168 &self.get_default_for_uri_scheme,
2169 )
2170 .finish()
2171 }
2172}
2173
2174#[repr(C)]
2175#[derive(Copy, Clone)]
2176pub struct GDriveIface {
2177 pub g_iface: gobject::GTypeInterface,
2178 pub changed: Option<unsafe extern "C" fn(*mut GDrive)>,
2179 pub disconnected: Option<unsafe extern "C" fn(*mut GDrive)>,
2180 pub eject_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2181 pub get_name: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2182 pub get_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2183 pub has_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2184 pub get_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> *mut glib::GList>,
2185 pub is_media_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2186 pub has_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2187 pub is_media_check_automatic: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2188 pub can_eject: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2189 pub can_poll_for_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2190 pub eject: Option<
2191 unsafe extern "C" fn(
2192 *mut GDrive,
2193 GMountUnmountFlags,
2194 *mut GCancellable,
2195 GAsyncReadyCallback,
2196 gpointer,
2197 ),
2198 >,
2199 pub eject_finish: Option<
2200 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2201 >,
2202 pub poll_for_media:
2203 Option<unsafe extern "C" fn(*mut GDrive, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
2204 pub poll_for_media_finish: Option<
2205 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2206 >,
2207 pub get_identifier: Option<unsafe extern "C" fn(*mut GDrive, *const c_char) -> *mut c_char>,
2208 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GDrive) -> *mut *mut c_char>,
2209 pub get_start_stop_type: Option<unsafe extern "C" fn(*mut GDrive) -> GDriveStartStopType>,
2210 pub can_start: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2211 pub can_start_degraded: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2212 pub start: Option<
2213 unsafe extern "C" fn(
2214 *mut GDrive,
2215 GDriveStartFlags,
2216 *mut GMountOperation,
2217 *mut GCancellable,
2218 GAsyncReadyCallback,
2219 gpointer,
2220 ),
2221 >,
2222 pub start_finish: Option<
2223 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2224 >,
2225 pub can_stop: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2226 pub stop: Option<
2227 unsafe extern "C" fn(
2228 *mut GDrive,
2229 GMountUnmountFlags,
2230 *mut GMountOperation,
2231 *mut GCancellable,
2232 GAsyncReadyCallback,
2233 gpointer,
2234 ),
2235 >,
2236 pub stop_finish: Option<
2237 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2238 >,
2239 pub stop_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2240 pub eject_with_operation: Option<
2241 unsafe extern "C" fn(
2242 *mut GDrive,
2243 GMountUnmountFlags,
2244 *mut GMountOperation,
2245 *mut GCancellable,
2246 GAsyncReadyCallback,
2247 gpointer,
2248 ),
2249 >,
2250 pub eject_with_operation_finish: Option<
2251 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2252 >,
2253 pub get_sort_key: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2254 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2255 pub is_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2256}
2257
2258impl ::std::fmt::Debug for GDriveIface {
2259 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2260 f.debug_struct(&format!("GDriveIface @ {:?}", self as *const _))
2261 .field("g_iface", &self.g_iface)
2262 .field("changed", &self.changed)
2263 .field("disconnected", &self.disconnected)
2264 .field("eject_button", &self.eject_button)
2265 .field("get_name", &self.get_name)
2266 .field("get_icon", &self.get_icon)
2267 .field("has_volumes", &self.has_volumes)
2268 .field("get_volumes", &self.get_volumes)
2269 .field("is_media_removable", &self.is_media_removable)
2270 .field("has_media", &self.has_media)
2271 .field("is_media_check_automatic", &self.is_media_check_automatic)
2272 .field("can_eject", &self.can_eject)
2273 .field("can_poll_for_media", &self.can_poll_for_media)
2274 .field("eject", &self.eject)
2275 .field("eject_finish", &self.eject_finish)
2276 .field("poll_for_media", &self.poll_for_media)
2277 .field("poll_for_media_finish", &self.poll_for_media_finish)
2278 .field("get_identifier", &self.get_identifier)
2279 .field("enumerate_identifiers", &self.enumerate_identifiers)
2280 .field("get_start_stop_type", &self.get_start_stop_type)
2281 .field("can_start", &self.can_start)
2282 .field("can_start_degraded", &self.can_start_degraded)
2283 .field("start", &self.start)
2284 .field("start_finish", &self.start_finish)
2285 .field("can_stop", &self.can_stop)
2286 .field("stop", &self.stop)
2287 .field("stop_finish", &self.stop_finish)
2288 .field("stop_button", &self.stop_button)
2289 .field("eject_with_operation", &self.eject_with_operation)
2290 .field(
2291 "eject_with_operation_finish",
2292 &self.eject_with_operation_finish,
2293 )
2294 .field("get_sort_key", &self.get_sort_key)
2295 .field("get_symbolic_icon", &self.get_symbolic_icon)
2296 .field("is_removable", &self.is_removable)
2297 .finish()
2298 }
2299}
2300
2301#[repr(C)]
2302#[derive(Copy, Clone)]
2303pub struct GDtlsClientConnectionInterface {
2304 pub g_iface: gobject::GTypeInterface,
2305}
2306
2307impl ::std::fmt::Debug for GDtlsClientConnectionInterface {
2308 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2309 f.debug_struct(&format!(
2310 "GDtlsClientConnectionInterface @ {:?}",
2311 self as *const _
2312 ))
2313 .field("g_iface", &self.g_iface)
2314 .finish()
2315 }
2316}
2317
2318#[repr(C)]
2319#[derive(Copy, Clone)]
2320pub struct GDtlsConnectionInterface {
2321 pub g_iface: gobject::GTypeInterface,
2322 pub accept_certificate: Option<
2323 unsafe extern "C" fn(
2324 *mut GDtlsConnection,
2325 *mut GTlsCertificate,
2326 GTlsCertificateFlags,
2327 ) -> gboolean,
2328 >,
2329 pub handshake: Option<
2330 unsafe extern "C" fn(
2331 *mut GDtlsConnection,
2332 *mut GCancellable,
2333 *mut *mut glib::GError,
2334 ) -> gboolean,
2335 >,
2336 pub handshake_async: Option<
2337 unsafe extern "C" fn(
2338 *mut GDtlsConnection,
2339 c_int,
2340 *mut GCancellable,
2341 GAsyncReadyCallback,
2342 gpointer,
2343 ),
2344 >,
2345 pub handshake_finish: Option<
2346 unsafe extern "C" fn(
2347 *mut GDtlsConnection,
2348 *mut GAsyncResult,
2349 *mut *mut glib::GError,
2350 ) -> gboolean,
2351 >,
2352 pub shutdown: Option<
2353 unsafe extern "C" fn(
2354 *mut GDtlsConnection,
2355 gboolean,
2356 gboolean,
2357 *mut GCancellable,
2358 *mut *mut glib::GError,
2359 ) -> gboolean,
2360 >,
2361 pub shutdown_async: Option<
2362 unsafe extern "C" fn(
2363 *mut GDtlsConnection,
2364 gboolean,
2365 gboolean,
2366 c_int,
2367 *mut GCancellable,
2368 GAsyncReadyCallback,
2369 gpointer,
2370 ),
2371 >,
2372 pub shutdown_finish: Option<
2373 unsafe extern "C" fn(
2374 *mut GDtlsConnection,
2375 *mut GAsyncResult,
2376 *mut *mut glib::GError,
2377 ) -> gboolean,
2378 >,
2379}
2380
2381impl ::std::fmt::Debug for GDtlsConnectionInterface {
2382 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2383 f.debug_struct(&format!(
2384 "GDtlsConnectionInterface @ {:?}",
2385 self as *const _
2386 ))
2387 .field("g_iface", &self.g_iface)
2388 .field("accept_certificate", &self.accept_certificate)
2389 .field("handshake", &self.handshake)
2390 .field("handshake_async", &self.handshake_async)
2391 .field("handshake_finish", &self.handshake_finish)
2392 .field("shutdown", &self.shutdown)
2393 .field("shutdown_async", &self.shutdown_async)
2394 .field("shutdown_finish", &self.shutdown_finish)
2395 .finish()
2396 }
2397}
2398
2399#[repr(C)]
2400#[derive(Copy, Clone)]
2401pub struct GDtlsServerConnectionInterface {
2402 pub g_iface: gobject::GTypeInterface,
2403}
2404
2405impl ::std::fmt::Debug for GDtlsServerConnectionInterface {
2406 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2407 f.debug_struct(&format!(
2408 "GDtlsServerConnectionInterface @ {:?}",
2409 self as *const _
2410 ))
2411 .field("g_iface", &self.g_iface)
2412 .finish()
2413 }
2414}
2415
2416#[repr(C)]
2417pub struct _GEmblemClass(c_void);
2418
2419pub type GEmblemClass = *mut _GEmblemClass;
2420
2421#[repr(C)]
2422#[derive(Copy, Clone)]
2423pub struct GEmblemedIconClass {
2424 pub parent_class: gobject::GObjectClass,
2425}
2426
2427impl ::std::fmt::Debug for GEmblemedIconClass {
2428 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2429 f.debug_struct(&format!("GEmblemedIconClass @ {:?}", self as *const _))
2430 .field("parent_class", &self.parent_class)
2431 .finish()
2432 }
2433}
2434
2435#[repr(C)]
2436pub struct _GEmblemedIconPrivate(c_void);
2437
2438pub type GEmblemedIconPrivate = *mut _GEmblemedIconPrivate;
2439
2440#[repr(C)]
2441#[derive(Copy, Clone)]
2442pub struct GFileAttributeInfo {
2443 pub name: *mut c_char,
2444 pub type_: GFileAttributeType,
2445 pub flags: GFileAttributeInfoFlags,
2446}
2447
2448impl ::std::fmt::Debug for GFileAttributeInfo {
2449 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2450 f.debug_struct(&format!("GFileAttributeInfo @ {:?}", self as *const _))
2451 .field("name", &self.name)
2452 .field("type_", &self.type_)
2453 .field("flags", &self.flags)
2454 .finish()
2455 }
2456}
2457
2458#[repr(C)]
2459#[derive(Copy, Clone)]
2460pub struct GFileAttributeInfoList {
2461 pub infos: *mut GFileAttributeInfo,
2462 pub n_infos: c_int,
2463}
2464
2465impl ::std::fmt::Debug for GFileAttributeInfoList {
2466 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2467 f.debug_struct(&format!("GFileAttributeInfoList @ {:?}", self as *const _))
2468 .field("infos", &self.infos)
2469 .field("n_infos", &self.n_infos)
2470 .finish()
2471 }
2472}
2473
2474#[repr(C)]
2475pub struct GFileAttributeMatcher(c_void);
2476
2477impl ::std::fmt::Debug for GFileAttributeMatcher {
2478 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2479 f.debug_struct(&format!("GFileAttributeMatcher @ {:?}", self as *const _))
2480 .finish()
2481 }
2482}
2483
2484#[repr(C)]
2485#[derive(Copy, Clone)]
2486pub struct GFileDescriptorBasedIface {
2487 pub g_iface: gobject::GTypeInterface,
2488 pub get_fd: Option<unsafe extern "C" fn(*mut GFileDescriptorBased) -> c_int>,
2489}
2490
2491impl ::std::fmt::Debug for GFileDescriptorBasedIface {
2492 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2493 f.debug_struct(&format!(
2494 "GFileDescriptorBasedIface @ {:?}",
2495 self as *const _
2496 ))
2497 .field("g_iface", &self.g_iface)
2498 .field("get_fd", &self.get_fd)
2499 .finish()
2500 }
2501}
2502
2503#[repr(C)]
2504#[derive(Copy, Clone)]
2505pub struct GFileEnumeratorClass {
2506 pub parent_class: gobject::GObjectClass,
2507 pub next_file: Option<
2508 unsafe extern "C" fn(
2509 *mut GFileEnumerator,
2510 *mut GCancellable,
2511 *mut *mut glib::GError,
2512 ) -> *mut GFileInfo,
2513 >,
2514 pub close_fn: Option<
2515 unsafe extern "C" fn(
2516 *mut GFileEnumerator,
2517 *mut GCancellable,
2518 *mut *mut glib::GError,
2519 ) -> gboolean,
2520 >,
2521 pub next_files_async: Option<
2522 unsafe extern "C" fn(
2523 *mut GFileEnumerator,
2524 c_int,
2525 c_int,
2526 *mut GCancellable,
2527 GAsyncReadyCallback,
2528 gpointer,
2529 ),
2530 >,
2531 pub next_files_finish: Option<
2532 unsafe extern "C" fn(
2533 *mut GFileEnumerator,
2534 *mut GAsyncResult,
2535 *mut *mut glib::GError,
2536 ) -> *mut glib::GList,
2537 >,
2538 pub close_async: Option<
2539 unsafe extern "C" fn(
2540 *mut GFileEnumerator,
2541 c_int,
2542 *mut GCancellable,
2543 GAsyncReadyCallback,
2544 gpointer,
2545 ),
2546 >,
2547 pub close_finish: Option<
2548 unsafe extern "C" fn(
2549 *mut GFileEnumerator,
2550 *mut GAsyncResult,
2551 *mut *mut glib::GError,
2552 ) -> gboolean,
2553 >,
2554 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2555 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2556 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2557 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2558 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2559 pub _g_reserved6: Option<unsafe extern "C" fn()>,
2560 pub _g_reserved7: Option<unsafe extern "C" fn()>,
2561}
2562
2563impl ::std::fmt::Debug for GFileEnumeratorClass {
2564 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2565 f.debug_struct(&format!("GFileEnumeratorClass @ {:?}", self as *const _))
2566 .field("parent_class", &self.parent_class)
2567 .field("next_file", &self.next_file)
2568 .field("close_fn", &self.close_fn)
2569 .field("next_files_async", &self.next_files_async)
2570 .field("next_files_finish", &self.next_files_finish)
2571 .field("close_async", &self.close_async)
2572 .field("close_finish", &self.close_finish)
2573 .field("_g_reserved1", &self._g_reserved1)
2574 .field("_g_reserved2", &self._g_reserved2)
2575 .field("_g_reserved3", &self._g_reserved3)
2576 .field("_g_reserved4", &self._g_reserved4)
2577 .field("_g_reserved5", &self._g_reserved5)
2578 .field("_g_reserved6", &self._g_reserved6)
2579 .field("_g_reserved7", &self._g_reserved7)
2580 .finish()
2581 }
2582}
2583
2584#[repr(C)]
2585pub struct _GFileEnumeratorPrivate(c_void);
2586
2587pub type GFileEnumeratorPrivate = *mut _GFileEnumeratorPrivate;
2588
2589#[repr(C)]
2590#[derive(Copy, Clone)]
2591pub struct GFileIOStreamClass {
2592 pub parent_class: GIOStreamClass,
2593 pub tell: Option<unsafe extern "C" fn(*mut GFileIOStream) -> i64>,
2594 pub can_seek: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2595 pub seek: Option<
2596 unsafe extern "C" fn(
2597 *mut GFileIOStream,
2598 i64,
2599 glib::GSeekType,
2600 *mut GCancellable,
2601 *mut *mut glib::GError,
2602 ) -> gboolean,
2603 >,
2604 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2605 pub truncate_fn: Option<
2606 unsafe extern "C" fn(
2607 *mut GFileIOStream,
2608 i64,
2609 *mut GCancellable,
2610 *mut *mut glib::GError,
2611 ) -> gboolean,
2612 >,
2613 pub query_info: Option<
2614 unsafe extern "C" fn(
2615 *mut GFileIOStream,
2616 *const c_char,
2617 *mut GCancellable,
2618 *mut *mut glib::GError,
2619 ) -> *mut GFileInfo,
2620 >,
2621 pub query_info_async: Option<
2622 unsafe extern "C" fn(
2623 *mut GFileIOStream,
2624 *const c_char,
2625 c_int,
2626 *mut GCancellable,
2627 GAsyncReadyCallback,
2628 gpointer,
2629 ),
2630 >,
2631 pub query_info_finish: Option<
2632 unsafe extern "C" fn(
2633 *mut GFileIOStream,
2634 *mut GAsyncResult,
2635 *mut *mut glib::GError,
2636 ) -> *mut GFileInfo,
2637 >,
2638 pub get_etag: Option<unsafe extern "C" fn(*mut GFileIOStream) -> *mut c_char>,
2639 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2640 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2641 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2642 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2643 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2644}
2645
2646impl ::std::fmt::Debug for GFileIOStreamClass {
2647 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2648 f.debug_struct(&format!("GFileIOStreamClass @ {:?}", self as *const _))
2649 .field("parent_class", &self.parent_class)
2650 .field("tell", &self.tell)
2651 .field("can_seek", &self.can_seek)
2652 .field("seek", &self.seek)
2653 .field("can_truncate", &self.can_truncate)
2654 .field("truncate_fn", &self.truncate_fn)
2655 .field("query_info", &self.query_info)
2656 .field("query_info_async", &self.query_info_async)
2657 .field("query_info_finish", &self.query_info_finish)
2658 .field("get_etag", &self.get_etag)
2659 .field("_g_reserved1", &self._g_reserved1)
2660 .field("_g_reserved2", &self._g_reserved2)
2661 .field("_g_reserved3", &self._g_reserved3)
2662 .field("_g_reserved4", &self._g_reserved4)
2663 .field("_g_reserved5", &self._g_reserved5)
2664 .finish()
2665 }
2666}
2667
2668#[repr(C)]
2669pub struct _GFileIOStreamPrivate(c_void);
2670
2671pub type GFileIOStreamPrivate = *mut _GFileIOStreamPrivate;
2672
2673#[repr(C)]
2674pub struct _GFileIconClass(c_void);
2675
2676pub type GFileIconClass = *mut _GFileIconClass;
2677
2678#[repr(C)]
2679#[derive(Copy, Clone)]
2680pub struct GFileIface {
2681 pub g_iface: gobject::GTypeInterface,
2682 pub dup: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2683 pub hash: Option<unsafe extern "C" fn(*mut GFile) -> c_uint>,
2684 pub equal: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2685 pub is_native: Option<unsafe extern "C" fn(*mut GFile) -> gboolean>,
2686 pub has_uri_scheme: Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> gboolean>,
2687 pub get_uri_scheme: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2688 pub get_basename: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2689 pub get_path: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2690 pub get_uri: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2691 pub get_parse_name: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2692 pub get_parent: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2693 pub prefix_matches: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2694 pub get_relative_path: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> *mut c_char>,
2695 pub resolve_relative_path:
2696 Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> *mut GFile>,
2697 pub get_child_for_display_name: Option<
2698 unsafe extern "C" fn(*mut GFile, *const c_char, *mut *mut glib::GError) -> *mut GFile,
2699 >,
2700 pub enumerate_children: Option<
2701 unsafe extern "C" fn(
2702 *mut GFile,
2703 *const c_char,
2704 GFileQueryInfoFlags,
2705 *mut GCancellable,
2706 *mut *mut glib::GError,
2707 ) -> *mut GFileEnumerator,
2708 >,
2709 pub enumerate_children_async: Option<
2710 unsafe extern "C" fn(
2711 *mut GFile,
2712 *const c_char,
2713 GFileQueryInfoFlags,
2714 c_int,
2715 *mut GCancellable,
2716 GAsyncReadyCallback,
2717 gpointer,
2718 ),
2719 >,
2720 pub enumerate_children_finish: Option<
2721 unsafe extern "C" fn(
2722 *mut GFile,
2723 *mut GAsyncResult,
2724 *mut *mut glib::GError,
2725 ) -> *mut GFileEnumerator,
2726 >,
2727 pub query_info: Option<
2728 unsafe extern "C" fn(
2729 *mut GFile,
2730 *const c_char,
2731 GFileQueryInfoFlags,
2732 *mut GCancellable,
2733 *mut *mut glib::GError,
2734 ) -> *mut GFileInfo,
2735 >,
2736 pub query_info_async: Option<
2737 unsafe extern "C" fn(
2738 *mut GFile,
2739 *const c_char,
2740 GFileQueryInfoFlags,
2741 c_int,
2742 *mut GCancellable,
2743 GAsyncReadyCallback,
2744 gpointer,
2745 ),
2746 >,
2747 pub query_info_finish: Option<
2748 unsafe extern "C" fn(
2749 *mut GFile,
2750 *mut GAsyncResult,
2751 *mut *mut glib::GError,
2752 ) -> *mut GFileInfo,
2753 >,
2754 pub query_filesystem_info: Option<
2755 unsafe extern "C" fn(
2756 *mut GFile,
2757 *const c_char,
2758 *mut GCancellable,
2759 *mut *mut glib::GError,
2760 ) -> *mut GFileInfo,
2761 >,
2762 pub query_filesystem_info_async: Option<
2763 unsafe extern "C" fn(
2764 *mut GFile,
2765 *const c_char,
2766 c_int,
2767 *mut GCancellable,
2768 GAsyncReadyCallback,
2769 gpointer,
2770 ),
2771 >,
2772 pub query_filesystem_info_finish: Option<
2773 unsafe extern "C" fn(
2774 *mut GFile,
2775 *mut GAsyncResult,
2776 *mut *mut glib::GError,
2777 ) -> *mut GFileInfo,
2778 >,
2779 pub find_enclosing_mount: Option<
2780 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> *mut GMount,
2781 >,
2782 pub find_enclosing_mount_async: Option<
2783 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2784 >,
2785 pub find_enclosing_mount_finish: Option<
2786 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GMount,
2787 >,
2788 pub set_display_name: Option<
2789 unsafe extern "C" fn(
2790 *mut GFile,
2791 *const c_char,
2792 *mut GCancellable,
2793 *mut *mut glib::GError,
2794 ) -> *mut GFile,
2795 >,
2796 pub set_display_name_async: Option<
2797 unsafe extern "C" fn(
2798 *mut GFile,
2799 *const c_char,
2800 c_int,
2801 *mut GCancellable,
2802 GAsyncReadyCallback,
2803 gpointer,
2804 ),
2805 >,
2806 pub set_display_name_finish: Option<
2807 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
2808 >,
2809 pub query_settable_attributes: Option<
2810 unsafe extern "C" fn(
2811 *mut GFile,
2812 *mut GCancellable,
2813 *mut *mut glib::GError,
2814 ) -> *mut GFileAttributeInfoList,
2815 >,
2816 pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>,
2817 pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>,
2818 pub query_writable_namespaces: Option<
2819 unsafe extern "C" fn(
2820 *mut GFile,
2821 *mut GCancellable,
2822 *mut *mut glib::GError,
2823 ) -> *mut GFileAttributeInfoList,
2824 >,
2825 pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>,
2826 pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>,
2827 pub set_attribute: Option<
2828 unsafe extern "C" fn(
2829 *mut GFile,
2830 *const c_char,
2831 GFileAttributeType,
2832 gpointer,
2833 GFileQueryInfoFlags,
2834 *mut GCancellable,
2835 *mut *mut glib::GError,
2836 ) -> gboolean,
2837 >,
2838 pub set_attributes_from_info: Option<
2839 unsafe extern "C" fn(
2840 *mut GFile,
2841 *mut GFileInfo,
2842 GFileQueryInfoFlags,
2843 *mut GCancellable,
2844 *mut *mut glib::GError,
2845 ) -> gboolean,
2846 >,
2847 pub set_attributes_async: Option<
2848 unsafe extern "C" fn(
2849 *mut GFile,
2850 *mut GFileInfo,
2851 GFileQueryInfoFlags,
2852 c_int,
2853 *mut GCancellable,
2854 GAsyncReadyCallback,
2855 gpointer,
2856 ),
2857 >,
2858 pub set_attributes_finish: Option<
2859 unsafe extern "C" fn(
2860 *mut GFile,
2861 *mut GAsyncResult,
2862 *mut *mut GFileInfo,
2863 *mut *mut glib::GError,
2864 ) -> gboolean,
2865 >,
2866 pub read_fn: Option<
2867 unsafe extern "C" fn(
2868 *mut GFile,
2869 *mut GCancellable,
2870 *mut *mut glib::GError,
2871 ) -> *mut GFileInputStream,
2872 >,
2873 pub read_async: Option<
2874 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2875 >,
2876 pub read_finish: Option<
2877 unsafe extern "C" fn(
2878 *mut GFile,
2879 *mut GAsyncResult,
2880 *mut *mut glib::GError,
2881 ) -> *mut GFileInputStream,
2882 >,
2883 pub append_to: Option<
2884 unsafe extern "C" fn(
2885 *mut GFile,
2886 GFileCreateFlags,
2887 *mut GCancellable,
2888 *mut *mut glib::GError,
2889 ) -> *mut GFileOutputStream,
2890 >,
2891 pub append_to_async: Option<
2892 unsafe extern "C" fn(
2893 *mut GFile,
2894 GFileCreateFlags,
2895 c_int,
2896 *mut GCancellable,
2897 GAsyncReadyCallback,
2898 gpointer,
2899 ),
2900 >,
2901 pub append_to_finish: Option<
2902 unsafe extern "C" fn(
2903 *mut GFile,
2904 *mut GAsyncResult,
2905 *mut *mut glib::GError,
2906 ) -> *mut GFileOutputStream,
2907 >,
2908 pub create: Option<
2909 unsafe extern "C" fn(
2910 *mut GFile,
2911 GFileCreateFlags,
2912 *mut GCancellable,
2913 *mut *mut glib::GError,
2914 ) -> *mut GFileOutputStream,
2915 >,
2916 pub create_async: Option<
2917 unsafe extern "C" fn(
2918 *mut GFile,
2919 GFileCreateFlags,
2920 c_int,
2921 *mut GCancellable,
2922 GAsyncReadyCallback,
2923 gpointer,
2924 ),
2925 >,
2926 pub create_finish: Option<
2927 unsafe extern "C" fn(
2928 *mut GFile,
2929 *mut GAsyncResult,
2930 *mut *mut glib::GError,
2931 ) -> *mut GFileOutputStream,
2932 >,
2933 pub replace: Option<
2934 unsafe extern "C" fn(
2935 *mut GFile,
2936 *const c_char,
2937 gboolean,
2938 GFileCreateFlags,
2939 *mut GCancellable,
2940 *mut *mut glib::GError,
2941 ) -> *mut GFileOutputStream,
2942 >,
2943 pub replace_async: Option<
2944 unsafe extern "C" fn(
2945 *mut GFile,
2946 *const c_char,
2947 gboolean,
2948 GFileCreateFlags,
2949 c_int,
2950 *mut GCancellable,
2951 GAsyncReadyCallback,
2952 gpointer,
2953 ),
2954 >,
2955 pub replace_finish: Option<
2956 unsafe extern "C" fn(
2957 *mut GFile,
2958 *mut GAsyncResult,
2959 *mut *mut glib::GError,
2960 ) -> *mut GFileOutputStream,
2961 >,
2962 pub delete_file: Option<
2963 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
2964 >,
2965 pub delete_file_async: Option<
2966 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2967 >,
2968 pub delete_file_finish: Option<
2969 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2970 >,
2971 pub trash: Option<
2972 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
2973 >,
2974 pub trash_async: Option<
2975 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2976 >,
2977 pub trash_finish: Option<
2978 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2979 >,
2980 pub make_directory: Option<
2981 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
2982 >,
2983 pub make_directory_async: Option<
2984 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2985 >,
2986 pub make_directory_finish: Option<
2987 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2988 >,
2989 pub make_symbolic_link: Option<
2990 unsafe extern "C" fn(
2991 *mut GFile,
2992 *const c_char,
2993 *mut GCancellable,
2994 *mut *mut glib::GError,
2995 ) -> gboolean,
2996 >,
2997 pub _make_symbolic_link_async: Option<unsafe extern "C" fn()>,
2998 pub _make_symbolic_link_finish: Option<unsafe extern "C" fn()>,
2999 pub copy: Option<
3000 unsafe extern "C" fn(
3001 *mut GFile,
3002 *mut GFile,
3003 GFileCopyFlags,
3004 *mut GCancellable,
3005 GFileProgressCallback,
3006 gpointer,
3007 *mut *mut glib::GError,
3008 ) -> gboolean,
3009 >,
3010 pub copy_async: Option<
3011 unsafe extern "C" fn(
3012 *mut GFile,
3013 *mut GFile,
3014 GFileCopyFlags,
3015 c_int,
3016 *mut GCancellable,
3017 GFileProgressCallback,
3018 gpointer,
3019 GAsyncReadyCallback,
3020 gpointer,
3021 ),
3022 >,
3023 pub copy_finish: Option<
3024 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3025 >,
3026 pub move_: Option<
3027 unsafe extern "C" fn(
3028 *mut GFile,
3029 *mut GFile,
3030 GFileCopyFlags,
3031 *mut GCancellable,
3032 GFileProgressCallback,
3033 gpointer,
3034 *mut *mut glib::GError,
3035 ) -> gboolean,
3036 >,
3037 pub _move_async: Option<unsafe extern "C" fn()>,
3038 pub _move_finish: Option<unsafe extern "C" fn()>,
3039 pub mount_mountable: Option<
3040 unsafe extern "C" fn(
3041 *mut GFile,
3042 GMountMountFlags,
3043 *mut GMountOperation,
3044 *mut GCancellable,
3045 GAsyncReadyCallback,
3046 gpointer,
3047 ),
3048 >,
3049 pub mount_mountable_finish: Option<
3050 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
3051 >,
3052 pub unmount_mountable: Option<
3053 unsafe extern "C" fn(
3054 *mut GFile,
3055 GMountUnmountFlags,
3056 *mut GCancellable,
3057 GAsyncReadyCallback,
3058 gpointer,
3059 ),
3060 >,
3061 pub unmount_mountable_finish: Option<
3062 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3063 >,
3064 pub eject_mountable: Option<
3065 unsafe extern "C" fn(
3066 *mut GFile,
3067 GMountUnmountFlags,
3068 *mut GCancellable,
3069 GAsyncReadyCallback,
3070 gpointer,
3071 ),
3072 >,
3073 pub eject_mountable_finish: Option<
3074 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3075 >,
3076 pub mount_enclosing_volume: Option<
3077 unsafe extern "C" fn(
3078 *mut GFile,
3079 GMountMountFlags,
3080 *mut GMountOperation,
3081 *mut GCancellable,
3082 GAsyncReadyCallback,
3083 gpointer,
3084 ),
3085 >,
3086 pub mount_enclosing_volume_finish: Option<
3087 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3088 >,
3089 pub monitor_dir: Option<
3090 unsafe extern "C" fn(
3091 *mut GFile,
3092 GFileMonitorFlags,
3093 *mut GCancellable,
3094 *mut *mut glib::GError,
3095 ) -> *mut GFileMonitor,
3096 >,
3097 pub monitor_file: Option<
3098 unsafe extern "C" fn(
3099 *mut GFile,
3100 GFileMonitorFlags,
3101 *mut GCancellable,
3102 *mut *mut glib::GError,
3103 ) -> *mut GFileMonitor,
3104 >,
3105 pub open_readwrite: Option<
3106 unsafe extern "C" fn(
3107 *mut GFile,
3108 *mut GCancellable,
3109 *mut *mut glib::GError,
3110 ) -> *mut GFileIOStream,
3111 >,
3112 pub open_readwrite_async: Option<
3113 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3114 >,
3115 pub open_readwrite_finish: Option<
3116 unsafe extern "C" fn(
3117 *mut GFile,
3118 *mut GAsyncResult,
3119 *mut *mut glib::GError,
3120 ) -> *mut GFileIOStream,
3121 >,
3122 pub create_readwrite: Option<
3123 unsafe extern "C" fn(
3124 *mut GFile,
3125 GFileCreateFlags,
3126 *mut GCancellable,
3127 *mut *mut glib::GError,
3128 ) -> *mut GFileIOStream,
3129 >,
3130 pub create_readwrite_async: Option<
3131 unsafe extern "C" fn(
3132 *mut GFile,
3133 GFileCreateFlags,
3134 c_int,
3135 *mut GCancellable,
3136 GAsyncReadyCallback,
3137 gpointer,
3138 ),
3139 >,
3140 pub create_readwrite_finish: Option<
3141 unsafe extern "C" fn(
3142 *mut GFile,
3143 *mut GAsyncResult,
3144 *mut *mut glib::GError,
3145 ) -> *mut GFileIOStream,
3146 >,
3147 pub replace_readwrite: Option<
3148 unsafe extern "C" fn(
3149 *mut GFile,
3150 *const c_char,
3151 gboolean,
3152 GFileCreateFlags,
3153 *mut GCancellable,
3154 *mut *mut glib::GError,
3155 ) -> *mut GFileIOStream,
3156 >,
3157 pub replace_readwrite_async: Option<
3158 unsafe extern "C" fn(
3159 *mut GFile,
3160 *const c_char,
3161 gboolean,
3162 GFileCreateFlags,
3163 c_int,
3164 *mut GCancellable,
3165 GAsyncReadyCallback,
3166 gpointer,
3167 ),
3168 >,
3169 pub replace_readwrite_finish: Option<
3170 unsafe extern "C" fn(
3171 *mut GFile,
3172 *mut GAsyncResult,
3173 *mut *mut glib::GError,
3174 ) -> *mut GFileIOStream,
3175 >,
3176 pub start_mountable: Option<
3177 unsafe extern "C" fn(
3178 *mut GFile,
3179 GDriveStartFlags,
3180 *mut GMountOperation,
3181 *mut GCancellable,
3182 GAsyncReadyCallback,
3183 gpointer,
3184 ),
3185 >,
3186 pub start_mountable_finish: Option<
3187 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3188 >,
3189 pub stop_mountable: Option<
3190 unsafe extern "C" fn(
3191 *mut GFile,
3192 GMountUnmountFlags,
3193 *mut GMountOperation,
3194 *mut GCancellable,
3195 GAsyncReadyCallback,
3196 gpointer,
3197 ),
3198 >,
3199 pub stop_mountable_finish: Option<
3200 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3201 >,
3202 pub supports_thread_contexts: gboolean,
3203 pub unmount_mountable_with_operation: Option<
3204 unsafe extern "C" fn(
3205 *mut GFile,
3206 GMountUnmountFlags,
3207 *mut GMountOperation,
3208 *mut GCancellable,
3209 GAsyncReadyCallback,
3210 gpointer,
3211 ),
3212 >,
3213 pub unmount_mountable_with_operation_finish: Option<
3214 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3215 >,
3216 pub eject_mountable_with_operation: Option<
3217 unsafe extern "C" fn(
3218 *mut GFile,
3219 GMountUnmountFlags,
3220 *mut GMountOperation,
3221 *mut GCancellable,
3222 GAsyncReadyCallback,
3223 gpointer,
3224 ),
3225 >,
3226 pub eject_mountable_with_operation_finish: Option<
3227 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3228 >,
3229 pub poll_mountable:
3230 Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
3231 pub poll_mountable_finish: Option<
3232 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3233 >,
3234 pub measure_disk_usage: Option<
3235 unsafe extern "C" fn(
3236 *mut GFile,
3237 GFileMeasureFlags,
3238 *mut GCancellable,
3239 GFileMeasureProgressCallback,
3240 gpointer,
3241 *mut u64,
3242 *mut u64,
3243 *mut u64,
3244 *mut *mut glib::GError,
3245 ) -> gboolean,
3246 >,
3247 pub measure_disk_usage_async: Option<
3248 unsafe extern "C" fn(
3249 *mut GFile,
3250 GFileMeasureFlags,
3251 c_int,
3252 *mut GCancellable,
3253 GFileMeasureProgressCallback,
3254 gpointer,
3255 GAsyncReadyCallback,
3256 gpointer,
3257 ),
3258 >,
3259 pub measure_disk_usage_finish: Option<
3260 unsafe extern "C" fn(
3261 *mut GFile,
3262 *mut GAsyncResult,
3263 *mut u64,
3264 *mut u64,
3265 *mut u64,
3266 *mut *mut glib::GError,
3267 ) -> gboolean,
3268 >,
3269}
3270
3271impl ::std::fmt::Debug for GFileIface {
3272 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3273 f.debug_struct(&format!("GFileIface @ {:?}", self as *const _))
3274 .field("g_iface", &self.g_iface)
3275 .field("dup", &self.dup)
3276 .field("hash", &self.hash)
3277 .field("equal", &self.equal)
3278 .field("is_native", &self.is_native)
3279 .field("has_uri_scheme", &self.has_uri_scheme)
3280 .field("get_uri_scheme", &self.get_uri_scheme)
3281 .field("get_basename", &self.get_basename)
3282 .field("get_path", &self.get_path)
3283 .field("get_uri", &self.get_uri)
3284 .field("get_parse_name", &self.get_parse_name)
3285 .field("get_parent", &self.get_parent)
3286 .field("prefix_matches", &self.prefix_matches)
3287 .field("get_relative_path", &self.get_relative_path)
3288 .field("resolve_relative_path", &self.resolve_relative_path)
3289 .field(
3290 "get_child_for_display_name",
3291 &self.get_child_for_display_name,
3292 )
3293 .field("enumerate_children", &self.enumerate_children)
3294 .field("enumerate_children_async", &self.enumerate_children_async)
3295 .field("enumerate_children_finish", &self.enumerate_children_finish)
3296 .field("query_info", &self.query_info)
3297 .field("query_info_async", &self.query_info_async)
3298 .field("query_info_finish", &self.query_info_finish)
3299 .field("query_filesystem_info", &self.query_filesystem_info)
3300 .field(
3301 "query_filesystem_info_async",
3302 &self.query_filesystem_info_async,
3303 )
3304 .field(
3305 "query_filesystem_info_finish",
3306 &self.query_filesystem_info_finish,
3307 )
3308 .field("find_enclosing_mount", &self.find_enclosing_mount)
3309 .field(
3310 "find_enclosing_mount_async",
3311 &self.find_enclosing_mount_async,
3312 )
3313 .field(
3314 "find_enclosing_mount_finish",
3315 &self.find_enclosing_mount_finish,
3316 )
3317 .field("set_display_name", &self.set_display_name)
3318 .field("set_display_name_async", &self.set_display_name_async)
3319 .field("set_display_name_finish", &self.set_display_name_finish)
3320 .field("query_settable_attributes", &self.query_settable_attributes)
3321 .field(
3322 "_query_settable_attributes_async",
3323 &self._query_settable_attributes_async,
3324 )
3325 .field(
3326 "_query_settable_attributes_finish",
3327 &self._query_settable_attributes_finish,
3328 )
3329 .field("query_writable_namespaces", &self.query_writable_namespaces)
3330 .field(
3331 "_query_writable_namespaces_async",
3332 &self._query_writable_namespaces_async,
3333 )
3334 .field(
3335 "_query_writable_namespaces_finish",
3336 &self._query_writable_namespaces_finish,
3337 )
3338 .field("set_attribute", &self.set_attribute)
3339 .field("set_attributes_from_info", &self.set_attributes_from_info)
3340 .field("set_attributes_async", &self.set_attributes_async)
3341 .field("set_attributes_finish", &self.set_attributes_finish)
3342 .field("read_fn", &self.read_fn)
3343 .field("read_async", &self.read_async)
3344 .field("read_finish", &self.read_finish)
3345 .field("append_to", &self.append_to)
3346 .field("append_to_async", &self.append_to_async)
3347 .field("append_to_finish", &self.append_to_finish)
3348 .field("create", &self.create)
3349 .field("create_async", &self.create_async)
3350 .field("create_finish", &self.create_finish)
3351 .field("replace", &self.replace)
3352 .field("replace_async", &self.replace_async)
3353 .field("replace_finish", &self.replace_finish)
3354 .field("delete_file", &self.delete_file)
3355 .field("delete_file_async", &self.delete_file_async)
3356 .field("delete_file_finish", &self.delete_file_finish)
3357 .field("trash", &self.trash)
3358 .field("trash_async", &self.trash_async)
3359 .field("trash_finish", &self.trash_finish)
3360 .field("make_directory", &self.make_directory)
3361 .field("make_directory_async", &self.make_directory_async)
3362 .field("make_directory_finish", &self.make_directory_finish)
3363 .field("make_symbolic_link", &self.make_symbolic_link)
3364 .field("_make_symbolic_link_async", &self._make_symbolic_link_async)
3365 .field(
3366 "_make_symbolic_link_finish",
3367 &self._make_symbolic_link_finish,
3368 )
3369 .field("copy", &self.copy)
3370 .field("copy_async", &self.copy_async)
3371 .field("copy_finish", &self.copy_finish)
3372 .field("move_", &self.move_)
3373 .field("_move_async", &self._move_async)
3374 .field("_move_finish", &self._move_finish)
3375 .field("mount_mountable", &self.mount_mountable)
3376 .field("mount_mountable_finish", &self.mount_mountable_finish)
3377 .field("unmount_mountable", &self.unmount_mountable)
3378 .field("unmount_mountable_finish", &self.unmount_mountable_finish)
3379 .field("eject_mountable", &self.eject_mountable)
3380 .field("eject_mountable_finish", &self.eject_mountable_finish)
3381 .field("mount_enclosing_volume", &self.mount_enclosing_volume)
3382 .field(
3383 "mount_enclosing_volume_finish",
3384 &self.mount_enclosing_volume_finish,
3385 )
3386 .field("monitor_dir", &self.monitor_dir)
3387 .field("monitor_file", &self.monitor_file)
3388 .field("open_readwrite", &self.open_readwrite)
3389 .field("open_readwrite_async", &self.open_readwrite_async)
3390 .field("open_readwrite_finish", &self.open_readwrite_finish)
3391 .field("create_readwrite", &self.create_readwrite)
3392 .field("create_readwrite_async", &self.create_readwrite_async)
3393 .field("create_readwrite_finish", &self.create_readwrite_finish)
3394 .field("replace_readwrite", &self.replace_readwrite)
3395 .field("replace_readwrite_async", &self.replace_readwrite_async)
3396 .field("replace_readwrite_finish", &self.replace_readwrite_finish)
3397 .field("start_mountable", &self.start_mountable)
3398 .field("start_mountable_finish", &self.start_mountable_finish)
3399 .field("stop_mountable", &self.stop_mountable)
3400 .field("stop_mountable_finish", &self.stop_mountable_finish)
3401 .field("supports_thread_contexts", &self.supports_thread_contexts)
3402 .field(
3403 "unmount_mountable_with_operation",
3404 &self.unmount_mountable_with_operation,
3405 )
3406 .field(
3407 "unmount_mountable_with_operation_finish",
3408 &self.unmount_mountable_with_operation_finish,
3409 )
3410 .field(
3411 "eject_mountable_with_operation",
3412 &self.eject_mountable_with_operation,
3413 )
3414 .field(
3415 "eject_mountable_with_operation_finish",
3416 &self.eject_mountable_with_operation_finish,
3417 )
3418 .field("poll_mountable", &self.poll_mountable)
3419 .field("poll_mountable_finish", &self.poll_mountable_finish)
3420 .field("measure_disk_usage", &self.measure_disk_usage)
3421 .field("measure_disk_usage_async", &self.measure_disk_usage_async)
3422 .field("measure_disk_usage_finish", &self.measure_disk_usage_finish)
3423 .finish()
3424 }
3425}
3426
3427#[repr(C)]
3428pub struct _GFileInfoClass(c_void);
3429
3430pub type GFileInfoClass = *mut _GFileInfoClass;
3431
3432#[repr(C)]
3433#[derive(Copy, Clone)]
3434pub struct GFileInputStreamClass {
3435 pub parent_class: GInputStreamClass,
3436 pub tell: Option<unsafe extern "C" fn(*mut GFileInputStream) -> i64>,
3437 pub can_seek: Option<unsafe extern "C" fn(*mut GFileInputStream) -> gboolean>,
3438 pub seek: Option<
3439 unsafe extern "C" fn(
3440 *mut GFileInputStream,
3441 i64,
3442 glib::GSeekType,
3443 *mut GCancellable,
3444 *mut *mut glib::GError,
3445 ) -> gboolean,
3446 >,
3447 pub query_info: Option<
3448 unsafe extern "C" fn(
3449 *mut GFileInputStream,
3450 *const c_char,
3451 *mut GCancellable,
3452 *mut *mut glib::GError,
3453 ) -> *mut GFileInfo,
3454 >,
3455 pub query_info_async: Option<
3456 unsafe extern "C" fn(
3457 *mut GFileInputStream,
3458 *const c_char,
3459 c_int,
3460 *mut GCancellable,
3461 GAsyncReadyCallback,
3462 gpointer,
3463 ),
3464 >,
3465 pub query_info_finish: Option<
3466 unsafe extern "C" fn(
3467 *mut GFileInputStream,
3468 *mut GAsyncResult,
3469 *mut *mut glib::GError,
3470 ) -> *mut GFileInfo,
3471 >,
3472 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3473 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3474 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3475 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3476 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3477}
3478
3479impl ::std::fmt::Debug for GFileInputStreamClass {
3480 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3481 f.debug_struct(&format!("GFileInputStreamClass @ {:?}", self as *const _))
3482 .field("parent_class", &self.parent_class)
3483 .field("tell", &self.tell)
3484 .field("can_seek", &self.can_seek)
3485 .field("seek", &self.seek)
3486 .field("query_info", &self.query_info)
3487 .field("query_info_async", &self.query_info_async)
3488 .field("query_info_finish", &self.query_info_finish)
3489 .field("_g_reserved1", &self._g_reserved1)
3490 .field("_g_reserved2", &self._g_reserved2)
3491 .field("_g_reserved3", &self._g_reserved3)
3492 .field("_g_reserved4", &self._g_reserved4)
3493 .field("_g_reserved5", &self._g_reserved5)
3494 .finish()
3495 }
3496}
3497
3498#[repr(C)]
3499pub struct _GFileInputStreamPrivate(c_void);
3500
3501pub type GFileInputStreamPrivate = *mut _GFileInputStreamPrivate;
3502
3503#[repr(C)]
3504#[derive(Copy, Clone)]
3505pub struct GFileMonitorClass {
3506 pub parent_class: gobject::GObjectClass,
3507 pub changed:
3508 Option<unsafe extern "C" fn(*mut GFileMonitor, *mut GFile, *mut GFile, GFileMonitorEvent)>,
3509 pub cancel: Option<unsafe extern "C" fn(*mut GFileMonitor) -> gboolean>,
3510 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3511 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3512 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3513 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3514 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3515}
3516
3517impl ::std::fmt::Debug for GFileMonitorClass {
3518 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3519 f.debug_struct(&format!("GFileMonitorClass @ {:?}", self as *const _))
3520 .field("parent_class", &self.parent_class)
3521 .field("changed", &self.changed)
3522 .field("cancel", &self.cancel)
3523 .field("_g_reserved1", &self._g_reserved1)
3524 .field("_g_reserved2", &self._g_reserved2)
3525 .field("_g_reserved3", &self._g_reserved3)
3526 .field("_g_reserved4", &self._g_reserved4)
3527 .field("_g_reserved5", &self._g_reserved5)
3528 .finish()
3529 }
3530}
3531
3532#[repr(C)]
3533pub struct _GFileMonitorPrivate(c_void);
3534
3535pub type GFileMonitorPrivate = *mut _GFileMonitorPrivate;
3536
3537#[repr(C)]
3538#[derive(Copy, Clone)]
3539pub struct GFileOutputStreamClass {
3540 pub parent_class: GOutputStreamClass,
3541 pub tell: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> i64>,
3542 pub can_seek: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3543 pub seek: Option<
3544 unsafe extern "C" fn(
3545 *mut GFileOutputStream,
3546 i64,
3547 glib::GSeekType,
3548 *mut GCancellable,
3549 *mut *mut glib::GError,
3550 ) -> gboolean,
3551 >,
3552 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3553 pub truncate_fn: Option<
3554 unsafe extern "C" fn(
3555 *mut GFileOutputStream,
3556 i64,
3557 *mut GCancellable,
3558 *mut *mut glib::GError,
3559 ) -> gboolean,
3560 >,
3561 pub query_info: Option<
3562 unsafe extern "C" fn(
3563 *mut GFileOutputStream,
3564 *const c_char,
3565 *mut GCancellable,
3566 *mut *mut glib::GError,
3567 ) -> *mut GFileInfo,
3568 >,
3569 pub query_info_async: Option<
3570 unsafe extern "C" fn(
3571 *mut GFileOutputStream,
3572 *const c_char,
3573 c_int,
3574 *mut GCancellable,
3575 GAsyncReadyCallback,
3576 gpointer,
3577 ),
3578 >,
3579 pub query_info_finish: Option<
3580 unsafe extern "C" fn(
3581 *mut GFileOutputStream,
3582 *mut GAsyncResult,
3583 *mut *mut glib::GError,
3584 ) -> *mut GFileInfo,
3585 >,
3586 pub get_etag: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> *mut c_char>,
3587 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3588 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3589 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3590 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3591 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3592}
3593
3594impl ::std::fmt::Debug for GFileOutputStreamClass {
3595 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3596 f.debug_struct(&format!("GFileOutputStreamClass @ {:?}", self as *const _))
3597 .field("parent_class", &self.parent_class)
3598 .field("tell", &self.tell)
3599 .field("can_seek", &self.can_seek)
3600 .field("seek", &self.seek)
3601 .field("can_truncate", &self.can_truncate)
3602 .field("truncate_fn", &self.truncate_fn)
3603 .field("query_info", &self.query_info)
3604 .field("query_info_async", &self.query_info_async)
3605 .field("query_info_finish", &self.query_info_finish)
3606 .field("get_etag", &self.get_etag)
3607 .field("_g_reserved1", &self._g_reserved1)
3608 .field("_g_reserved2", &self._g_reserved2)
3609 .field("_g_reserved3", &self._g_reserved3)
3610 .field("_g_reserved4", &self._g_reserved4)
3611 .field("_g_reserved5", &self._g_reserved5)
3612 .finish()
3613 }
3614}
3615
3616#[repr(C)]
3617pub struct _GFileOutputStreamPrivate(c_void);
3618
3619pub type GFileOutputStreamPrivate = *mut _GFileOutputStreamPrivate;
3620
3621#[repr(C)]
3622#[derive(Copy, Clone)]
3623pub struct GFilenameCompleterClass {
3624 pub parent_class: gobject::GObjectClass,
3625 pub got_completion_data: Option<unsafe extern "C" fn(*mut GFilenameCompleter)>,
3626 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3627 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3628 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3629}
3630
3631impl ::std::fmt::Debug for GFilenameCompleterClass {
3632 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3633 f.debug_struct(&format!("GFilenameCompleterClass @ {:?}", self as *const _))
3634 .field("parent_class", &self.parent_class)
3635 .field("got_completion_data", &self.got_completion_data)
3636 .field("_g_reserved1", &self._g_reserved1)
3637 .field("_g_reserved2", &self._g_reserved2)
3638 .field("_g_reserved3", &self._g_reserved3)
3639 .finish()
3640 }
3641}
3642
3643#[repr(C)]
3644#[derive(Copy, Clone)]
3645pub struct GFilterInputStreamClass {
3646 pub parent_class: GInputStreamClass,
3647 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3648 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3649 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3650}
3651
3652impl ::std::fmt::Debug for GFilterInputStreamClass {
3653 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3654 f.debug_struct(&format!("GFilterInputStreamClass @ {:?}", self as *const _))
3655 .field("parent_class", &self.parent_class)
3656 .field("_g_reserved1", &self._g_reserved1)
3657 .field("_g_reserved2", &self._g_reserved2)
3658 .field("_g_reserved3", &self._g_reserved3)
3659 .finish()
3660 }
3661}
3662
3663#[repr(C)]
3664#[derive(Copy, Clone)]
3665pub struct GFilterOutputStreamClass {
3666 pub parent_class: GOutputStreamClass,
3667 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3668 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3669 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3670}
3671
3672impl ::std::fmt::Debug for GFilterOutputStreamClass {
3673 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3674 f.debug_struct(&format!(
3675 "GFilterOutputStreamClass @ {:?}",
3676 self as *const _
3677 ))
3678 .field("parent_class", &self.parent_class)
3679 .field("_g_reserved1", &self._g_reserved1)
3680 .field("_g_reserved2", &self._g_reserved2)
3681 .field("_g_reserved3", &self._g_reserved3)
3682 .finish()
3683 }
3684}
3685
3686#[repr(C)]
3687pub struct _GIOExtension(c_void);
3688
3689pub type GIOExtension = *mut _GIOExtension;
3690
3691#[repr(C)]
3692pub struct _GIOExtensionPoint(c_void);
3693
3694pub type GIOExtensionPoint = *mut _GIOExtensionPoint;
3695
3696#[repr(C)]
3697pub struct _GIOModuleClass(c_void);
3698
3699pub type GIOModuleClass = *mut _GIOModuleClass;
3700
3701#[repr(C)]
3702pub struct _GIOModuleScope(c_void);
3703
3704pub type GIOModuleScope = *mut _GIOModuleScope;
3705
3706#[repr(C)]
3707pub struct _GIOSchedulerJob(c_void);
3708
3709pub type GIOSchedulerJob = *mut _GIOSchedulerJob;
3710
3711#[repr(C)]
3712pub struct _GIOStreamAdapter(c_void);
3713
3714pub type GIOStreamAdapter = *mut _GIOStreamAdapter;
3715
3716#[repr(C)]
3717#[derive(Copy, Clone)]
3718pub struct GIOStreamClass {
3719 pub parent_class: gobject::GObjectClass,
3720 pub get_input_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GInputStream>,
3721 pub get_output_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GOutputStream>,
3722 pub close_fn: Option<
3723 unsafe extern "C" fn(*mut GIOStream, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3724 >,
3725 pub close_async: Option<
3726 unsafe extern "C" fn(
3727 *mut GIOStream,
3728 c_int,
3729 *mut GCancellable,
3730 GAsyncReadyCallback,
3731 gpointer,
3732 ),
3733 >,
3734 pub close_finish: Option<
3735 unsafe extern "C" fn(*mut GIOStream, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3736 >,
3737 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3738 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3739 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3740 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3741 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3742 pub _g_reserved6: Option<unsafe extern "C" fn()>,
3743 pub _g_reserved7: Option<unsafe extern "C" fn()>,
3744 pub _g_reserved8: Option<unsafe extern "C" fn()>,
3745 pub _g_reserved9: Option<unsafe extern "C" fn()>,
3746 pub _g_reserved10: Option<unsafe extern "C" fn()>,
3747}
3748
3749impl ::std::fmt::Debug for GIOStreamClass {
3750 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3751 f.debug_struct(&format!("GIOStreamClass @ {:?}", self as *const _))
3752 .field("parent_class", &self.parent_class)
3753 .field("get_input_stream", &self.get_input_stream)
3754 .field("get_output_stream", &self.get_output_stream)
3755 .field("close_fn", &self.close_fn)
3756 .field("close_async", &self.close_async)
3757 .field("close_finish", &self.close_finish)
3758 .field("_g_reserved1", &self._g_reserved1)
3759 .field("_g_reserved2", &self._g_reserved2)
3760 .field("_g_reserved3", &self._g_reserved3)
3761 .field("_g_reserved4", &self._g_reserved4)
3762 .field("_g_reserved5", &self._g_reserved5)
3763 .field("_g_reserved6", &self._g_reserved6)
3764 .field("_g_reserved7", &self._g_reserved7)
3765 .field("_g_reserved8", &self._g_reserved8)
3766 .field("_g_reserved9", &self._g_reserved9)
3767 .field("_g_reserved10", &self._g_reserved10)
3768 .finish()
3769 }
3770}
3771
3772#[repr(C)]
3773pub struct _GIOStreamPrivate(c_void);
3774
3775pub type GIOStreamPrivate = *mut _GIOStreamPrivate;
3776
3777#[repr(C)]
3778#[derive(Copy, Clone)]
3779pub struct GIconIface {
3780 pub g_iface: gobject::GTypeInterface,
3781 pub hash: Option<unsafe extern "C" fn(*mut GIcon) -> c_uint>,
3782 pub equal: Option<unsafe extern "C" fn(*mut GIcon, *mut GIcon) -> gboolean>,
3783 pub to_tokens:
3784 Option<unsafe extern "C" fn(*mut GIcon, *mut glib::GPtrArray, *mut c_int) -> gboolean>,
3785 pub from_tokens: Option<
3786 unsafe extern "C" fn(*mut *mut c_char, c_int, c_int, *mut *mut glib::GError) -> *mut GIcon,
3787 >,
3788 pub serialize: Option<unsafe extern "C" fn(*mut GIcon) -> *mut glib::GVariant>,
3789}
3790
3791impl ::std::fmt::Debug for GIconIface {
3792 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3793 f.debug_struct(&format!("GIconIface @ {:?}", self as *const _))
3794 .field("g_iface", &self.g_iface)
3795 .field("hash", &self.hash)
3796 .field("equal", &self.equal)
3797 .field("to_tokens", &self.to_tokens)
3798 .field("from_tokens", &self.from_tokens)
3799 .field("serialize", &self.serialize)
3800 .finish()
3801 }
3802}
3803
3804#[repr(C)]
3805#[derive(Copy, Clone)]
3806pub struct GInetAddressClass {
3807 pub parent_class: gobject::GObjectClass,
3808 pub to_string: Option<unsafe extern "C" fn(*mut GInetAddress) -> *mut c_char>,
3809 pub to_bytes: Option<unsafe extern "C" fn(*mut GInetAddress) -> *const u8>,
3810}
3811
3812impl ::std::fmt::Debug for GInetAddressClass {
3813 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3814 f.debug_struct(&format!("GInetAddressClass @ {:?}", self as *const _))
3815 .field("parent_class", &self.parent_class)
3816 .field("to_string", &self.to_string)
3817 .field("to_bytes", &self.to_bytes)
3818 .finish()
3819 }
3820}
3821
3822#[repr(C)]
3823#[derive(Copy, Clone)]
3824pub struct GInetAddressMaskClass {
3825 pub parent_class: gobject::GObjectClass,
3826}
3827
3828impl ::std::fmt::Debug for GInetAddressMaskClass {
3829 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3830 f.debug_struct(&format!("GInetAddressMaskClass @ {:?}", self as *const _))
3831 .field("parent_class", &self.parent_class)
3832 .finish()
3833 }
3834}
3835
3836#[repr(C)]
3837pub struct _GInetAddressMaskPrivate(c_void);
3838
3839pub type GInetAddressMaskPrivate = *mut _GInetAddressMaskPrivate;
3840
3841#[repr(C)]
3842pub struct _GInetAddressPrivate(c_void);
3843
3844pub type GInetAddressPrivate = *mut _GInetAddressPrivate;
3845
3846#[repr(C)]
3847#[derive(Copy, Clone)]
3848pub struct GInetSocketAddressClass {
3849 pub parent_class: GSocketAddressClass,
3850}
3851
3852impl ::std::fmt::Debug for GInetSocketAddressClass {
3853 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3854 f.debug_struct(&format!("GInetSocketAddressClass @ {:?}", self as *const _))
3855 .field("parent_class", &self.parent_class)
3856 .finish()
3857 }
3858}
3859
3860#[repr(C)]
3861pub struct _GInetSocketAddressPrivate(c_void);
3862
3863pub type GInetSocketAddressPrivate = *mut _GInetSocketAddressPrivate;
3864
3865#[repr(C)]
3866#[derive(Copy, Clone)]
3867pub struct GInitableIface {
3868 pub g_iface: gobject::GTypeInterface,
3869 pub init: Option<
3870 unsafe extern "C" fn(*mut GInitable, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3871 >,
3872}
3873
3874impl ::std::fmt::Debug for GInitableIface {
3875 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3876 f.debug_struct(&format!("GInitableIface @ {:?}", self as *const _))
3877 .field("g_iface", &self.g_iface)
3878 .field("init", &self.init)
3879 .finish()
3880 }
3881}
3882
3883#[repr(C)]
3884#[derive(Copy, Clone)]
3885pub struct GInputMessage {
3886 pub address: *mut *mut GSocketAddress,
3887 pub vectors: *mut GInputVector,
3888 pub num_vectors: c_uint,
3889 pub bytes_received: size_t,
3890 pub flags: c_int,
3891 pub control_messages: *mut *mut *mut GSocketControlMessage,
3892 pub num_control_messages: *mut c_uint,
3893}
3894
3895impl ::std::fmt::Debug for GInputMessage {
3896 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3897 f.debug_struct(&format!("GInputMessage @ {:?}", self as *const _))
3898 .field("address", &self.address)
3899 .field("vectors", &self.vectors)
3900 .field("num_vectors", &self.num_vectors)
3901 .field("bytes_received", &self.bytes_received)
3902 .field("flags", &self.flags)
3903 .field("control_messages", &self.control_messages)
3904 .field("num_control_messages", &self.num_control_messages)
3905 .finish()
3906 }
3907}
3908
3909#[repr(C)]
3910#[derive(Copy, Clone)]
3911pub struct GInputStreamClass {
3912 pub parent_class: gobject::GObjectClass,
3913 pub read_fn: Option<
3914 unsafe extern "C" fn(
3915 *mut GInputStream,
3916 *mut c_void,
3917 size_t,
3918 *mut GCancellable,
3919 *mut *mut glib::GError,
3920 ) -> ssize_t,
3921 >,
3922 pub skip: Option<
3923 unsafe extern "C" fn(
3924 *mut GInputStream,
3925 size_t,
3926 *mut GCancellable,
3927 *mut *mut glib::GError,
3928 ) -> ssize_t,
3929 >,
3930 pub close_fn: Option<
3931 unsafe extern "C" fn(
3932 *mut GInputStream,
3933 *mut GCancellable,
3934 *mut *mut glib::GError,
3935 ) -> gboolean,
3936 >,
3937 pub read_async: Option<
3938 unsafe extern "C" fn(
3939 *mut GInputStream,
3940 *mut u8,
3941 size_t,
3942 c_int,
3943 *mut GCancellable,
3944 GAsyncReadyCallback,
3945 gpointer,
3946 ),
3947 >,
3948 pub read_finish: Option<
3949 unsafe extern "C" fn(
3950 *mut GInputStream,
3951 *mut GAsyncResult,
3952 *mut *mut glib::GError,
3953 ) -> ssize_t,
3954 >,
3955 pub skip_async: Option<
3956 unsafe extern "C" fn(
3957 *mut GInputStream,
3958 size_t,
3959 c_int,
3960 *mut GCancellable,
3961 GAsyncReadyCallback,
3962 gpointer,
3963 ),
3964 >,
3965 pub skip_finish: Option<
3966 unsafe extern "C" fn(
3967 *mut GInputStream,
3968 *mut GAsyncResult,
3969 *mut *mut glib::GError,
3970 ) -> ssize_t,
3971 >,
3972 pub close_async: Option<
3973 unsafe extern "C" fn(
3974 *mut GInputStream,
3975 c_int,
3976 *mut GCancellable,
3977 GAsyncReadyCallback,
3978 gpointer,
3979 ),
3980 >,
3981 pub close_finish: Option<
3982 unsafe extern "C" fn(
3983 *mut GInputStream,
3984 *mut GAsyncResult,
3985 *mut *mut glib::GError,
3986 ) -> gboolean,
3987 >,
3988 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3989 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3990 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3991 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3992 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3993}
3994
3995impl ::std::fmt::Debug for GInputStreamClass {
3996 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3997 f.debug_struct(&format!("GInputStreamClass @ {:?}", self as *const _))
3998 .field("parent_class", &self.parent_class)
3999 .field("read_fn", &self.read_fn)
4000 .field("skip", &self.skip)
4001 .field("close_fn", &self.close_fn)
4002 .field("read_async", &self.read_async)
4003 .field("read_finish", &self.read_finish)
4004 .field("skip_async", &self.skip_async)
4005 .field("skip_finish", &self.skip_finish)
4006 .field("close_async", &self.close_async)
4007 .field("close_finish", &self.close_finish)
4008 .field("_g_reserved1", &self._g_reserved1)
4009 .field("_g_reserved2", &self._g_reserved2)
4010 .field("_g_reserved3", &self._g_reserved3)
4011 .field("_g_reserved4", &self._g_reserved4)
4012 .field("_g_reserved5", &self._g_reserved5)
4013 .finish()
4014 }
4015}
4016
4017#[repr(C)]
4018pub struct _GInputStreamPrivate(c_void);
4019
4020pub type GInputStreamPrivate = *mut _GInputStreamPrivate;
4021
4022#[repr(C)]
4023#[derive(Copy, Clone)]
4024pub struct GInputVector {
4025 pub buffer: gpointer,
4026 pub size: size_t,
4027}
4028
4029impl ::std::fmt::Debug for GInputVector {
4030 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4031 f.debug_struct(&format!("GInputVector @ {:?}", self as *const _))
4032 .field("buffer", &self.buffer)
4033 .field("size", &self.size)
4034 .finish()
4035 }
4036}
4037
4038#[repr(C)]
4039#[derive(Copy, Clone)]
4040pub struct GListModelInterface {
4041 pub g_iface: gobject::GTypeInterface,
4042 pub get_item_type: Option<unsafe extern "C" fn(*mut GListModel) -> GType>,
4043 pub get_n_items: Option<unsafe extern "C" fn(*mut GListModel) -> c_uint>,
4044 pub get_item: Option<unsafe extern "C" fn(*mut GListModel, c_uint) -> *mut gobject::GObject>,
4045}
4046
4047impl ::std::fmt::Debug for GListModelInterface {
4048 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4049 f.debug_struct(&format!("GListModelInterface @ {:?}", self as *const _))
4050 .field("g_iface", &self.g_iface)
4051 .field("get_item_type", &self.get_item_type)
4052 .field("get_n_items", &self.get_n_items)
4053 .field("get_item", &self.get_item)
4054 .finish()
4055 }
4056}
4057
4058#[repr(C)]
4059#[derive(Copy, Clone)]
4060pub struct GListStoreClass {
4061 pub parent_class: gobject::GObjectClass,
4062}
4063
4064impl ::std::fmt::Debug for GListStoreClass {
4065 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4066 f.debug_struct(&format!("GListStoreClass @ {:?}", self as *const _))
4067 .field("parent_class", &self.parent_class)
4068 .finish()
4069 }
4070}
4071
4072#[repr(C)]
4073#[derive(Copy, Clone)]
4074pub struct GLoadableIconIface {
4075 pub g_iface: gobject::GTypeInterface,
4076 pub load: Option<
4077 unsafe extern "C" fn(
4078 *mut GLoadableIcon,
4079 c_int,
4080 *mut *mut c_char,
4081 *mut GCancellable,
4082 *mut *mut glib::GError,
4083 ) -> *mut GInputStream,
4084 >,
4085 pub load_async: Option<
4086 unsafe extern "C" fn(
4087 *mut GLoadableIcon,
4088 c_int,
4089 *mut GCancellable,
4090 GAsyncReadyCallback,
4091 gpointer,
4092 ),
4093 >,
4094 pub load_finish: Option<
4095 unsafe extern "C" fn(
4096 *mut GLoadableIcon,
4097 *mut GAsyncResult,
4098 *mut *mut c_char,
4099 *mut *mut glib::GError,
4100 ) -> *mut GInputStream,
4101 >,
4102}
4103
4104impl ::std::fmt::Debug for GLoadableIconIface {
4105 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4106 f.debug_struct(&format!("GLoadableIconIface @ {:?}", self as *const _))
4107 .field("g_iface", &self.g_iface)
4108 .field("load", &self.load)
4109 .field("load_async", &self.load_async)
4110 .field("load_finish", &self.load_finish)
4111 .finish()
4112 }
4113}
4114
4115#[repr(C)]
4116#[derive(Copy, Clone)]
4117pub struct GMemoryInputStreamClass {
4118 pub parent_class: GInputStreamClass,
4119 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4120 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4121 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4122 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4123 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4124}
4125
4126impl ::std::fmt::Debug for GMemoryInputStreamClass {
4127 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4128 f.debug_struct(&format!("GMemoryInputStreamClass @ {:?}", self as *const _))
4129 .field("parent_class", &self.parent_class)
4130 .field("_g_reserved1", &self._g_reserved1)
4131 .field("_g_reserved2", &self._g_reserved2)
4132 .field("_g_reserved3", &self._g_reserved3)
4133 .field("_g_reserved4", &self._g_reserved4)
4134 .field("_g_reserved5", &self._g_reserved5)
4135 .finish()
4136 }
4137}
4138
4139#[repr(C)]
4140pub struct _GMemoryInputStreamPrivate(c_void);
4141
4142pub type GMemoryInputStreamPrivate = *mut _GMemoryInputStreamPrivate;
4143
4144#[repr(C)]
4145#[derive(Copy, Clone)]
4146pub struct GMemoryOutputStreamClass {
4147 pub parent_class: GOutputStreamClass,
4148 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4149 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4150 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4151 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4152 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4153}
4154
4155impl ::std::fmt::Debug for GMemoryOutputStreamClass {
4156 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4157 f.debug_struct(&format!(
4158 "GMemoryOutputStreamClass @ {:?}",
4159 self as *const _
4160 ))
4161 .field("parent_class", &self.parent_class)
4162 .field("_g_reserved1", &self._g_reserved1)
4163 .field("_g_reserved2", &self._g_reserved2)
4164 .field("_g_reserved3", &self._g_reserved3)
4165 .field("_g_reserved4", &self._g_reserved4)
4166 .field("_g_reserved5", &self._g_reserved5)
4167 .finish()
4168 }
4169}
4170
4171#[repr(C)]
4172pub struct _GMemoryOutputStreamPrivate(c_void);
4173
4174pub type GMemoryOutputStreamPrivate = *mut _GMemoryOutputStreamPrivate;
4175
4176#[repr(C)]
4177#[derive(Copy, Clone)]
4178pub struct GMenuAttributeIterClass {
4179 pub parent_class: gobject::GObjectClass,
4180 pub get_next: Option<
4181 unsafe extern "C" fn(
4182 *mut GMenuAttributeIter,
4183 *mut *const c_char,
4184 *mut *mut glib::GVariant,
4185 ) -> gboolean,
4186 >,
4187}
4188
4189impl ::std::fmt::Debug for GMenuAttributeIterClass {
4190 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4191 f.debug_struct(&format!("GMenuAttributeIterClass @ {:?}", self as *const _))
4192 .field("parent_class", &self.parent_class)
4193 .field("get_next", &self.get_next)
4194 .finish()
4195 }
4196}
4197
4198#[repr(C)]
4199pub struct _GMenuAttributeIterPrivate(c_void);
4200
4201pub type GMenuAttributeIterPrivate = *mut _GMenuAttributeIterPrivate;
4202
4203#[repr(C)]
4204#[derive(Copy, Clone)]
4205pub struct GMenuLinkIterClass {
4206 pub parent_class: gobject::GObjectClass,
4207 pub get_next: Option<
4208 unsafe extern "C" fn(
4209 *mut GMenuLinkIter,
4210 *mut *const c_char,
4211 *mut *mut GMenuModel,
4212 ) -> gboolean,
4213 >,
4214}
4215
4216impl ::std::fmt::Debug for GMenuLinkIterClass {
4217 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4218 f.debug_struct(&format!("GMenuLinkIterClass @ {:?}", self as *const _))
4219 .field("parent_class", &self.parent_class)
4220 .field("get_next", &self.get_next)
4221 .finish()
4222 }
4223}
4224
4225#[repr(C)]
4226pub struct _GMenuLinkIterPrivate(c_void);
4227
4228pub type GMenuLinkIterPrivate = *mut _GMenuLinkIterPrivate;
4229
4230#[repr(C)]
4231#[derive(Copy, Clone)]
4232pub struct GMenuModelClass {
4233 pub parent_class: gobject::GObjectClass,
4234 pub is_mutable: Option<unsafe extern "C" fn(*mut GMenuModel) -> gboolean>,
4235 pub get_n_items: Option<unsafe extern "C" fn(*mut GMenuModel) -> c_int>,
4236 pub get_item_attributes:
4237 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4238 pub iterate_item_attributes:
4239 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuAttributeIter>,
4240 pub get_item_attribute_value: Option<
4241 unsafe extern "C" fn(
4242 *mut GMenuModel,
4243 c_int,
4244 *const c_char,
4245 *const glib::GVariantType,
4246 ) -> *mut glib::GVariant,
4247 >,
4248 pub get_item_links:
4249 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4250 pub iterate_item_links:
4251 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuLinkIter>,
4252 pub get_item_link:
4253 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *const c_char) -> *mut GMenuModel>,
4254}
4255
4256impl ::std::fmt::Debug for GMenuModelClass {
4257 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4258 f.debug_struct(&format!("GMenuModelClass @ {:?}", self as *const _))
4259 .field("parent_class", &self.parent_class)
4260 .field("is_mutable", &self.is_mutable)
4261 .field("get_n_items", &self.get_n_items)
4262 .field("get_item_attributes", &self.get_item_attributes)
4263 .field("iterate_item_attributes", &self.iterate_item_attributes)
4264 .field("get_item_attribute_value", &self.get_item_attribute_value)
4265 .field("get_item_links", &self.get_item_links)
4266 .field("iterate_item_links", &self.iterate_item_links)
4267 .field("get_item_link", &self.get_item_link)
4268 .finish()
4269 }
4270}
4271
4272#[repr(C)]
4273pub struct _GMenuModelPrivate(c_void);
4274
4275pub type GMenuModelPrivate = *mut _GMenuModelPrivate;
4276
4277#[repr(C)]
4278#[derive(Copy, Clone)]
4279pub struct GMountIface {
4280 pub g_iface: gobject::GTypeInterface,
4281 pub changed: Option<unsafe extern "C" fn(*mut GMount)>,
4282 pub unmounted: Option<unsafe extern "C" fn(*mut GMount)>,
4283 pub get_root: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4284 pub get_name: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4285 pub get_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4286 pub get_uuid: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4287 pub get_volume: Option<unsafe extern "C" fn(*mut GMount) -> *mut GVolume>,
4288 pub get_drive: Option<unsafe extern "C" fn(*mut GMount) -> *mut GDrive>,
4289 pub can_unmount: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4290 pub can_eject: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4291 pub unmount: Option<
4292 unsafe extern "C" fn(
4293 *mut GMount,
4294 GMountUnmountFlags,
4295 *mut GCancellable,
4296 GAsyncReadyCallback,
4297 gpointer,
4298 ),
4299 >,
4300 pub unmount_finish: Option<
4301 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4302 >,
4303 pub eject: Option<
4304 unsafe extern "C" fn(
4305 *mut GMount,
4306 GMountUnmountFlags,
4307 *mut GCancellable,
4308 GAsyncReadyCallback,
4309 gpointer,
4310 ),
4311 >,
4312 pub eject_finish: Option<
4313 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4314 >,
4315 pub remount: Option<
4316 unsafe extern "C" fn(
4317 *mut GMount,
4318 GMountMountFlags,
4319 *mut GMountOperation,
4320 *mut GCancellable,
4321 GAsyncReadyCallback,
4322 gpointer,
4323 ),
4324 >,
4325 pub remount_finish: Option<
4326 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4327 >,
4328 pub guess_content_type: Option<
4329 unsafe extern "C" fn(
4330 *mut GMount,
4331 gboolean,
4332 *mut GCancellable,
4333 GAsyncReadyCallback,
4334 gpointer,
4335 ),
4336 >,
4337 pub guess_content_type_finish: Option<
4338 unsafe extern "C" fn(
4339 *mut GMount,
4340 *mut GAsyncResult,
4341 *mut *mut glib::GError,
4342 ) -> *mut *mut c_char,
4343 >,
4344 pub guess_content_type_sync: Option<
4345 unsafe extern "C" fn(
4346 *mut GMount,
4347 gboolean,
4348 *mut GCancellable,
4349 *mut *mut glib::GError,
4350 ) -> *mut *mut c_char,
4351 >,
4352 pub pre_unmount: Option<unsafe extern "C" fn(*mut GMount)>,
4353 pub unmount_with_operation: Option<
4354 unsafe extern "C" fn(
4355 *mut GMount,
4356 GMountUnmountFlags,
4357 *mut GMountOperation,
4358 *mut GCancellable,
4359 GAsyncReadyCallback,
4360 gpointer,
4361 ),
4362 >,
4363 pub unmount_with_operation_finish: Option<
4364 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4365 >,
4366 pub eject_with_operation: Option<
4367 unsafe extern "C" fn(
4368 *mut GMount,
4369 GMountUnmountFlags,
4370 *mut GMountOperation,
4371 *mut GCancellable,
4372 GAsyncReadyCallback,
4373 gpointer,
4374 ),
4375 >,
4376 pub eject_with_operation_finish: Option<
4377 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4378 >,
4379 pub get_default_location: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4380 pub get_sort_key: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4381 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4382}
4383
4384impl ::std::fmt::Debug for GMountIface {
4385 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4386 f.debug_struct(&format!("GMountIface @ {:?}", self as *const _))
4387 .field("g_iface", &self.g_iface)
4388 .field("changed", &self.changed)
4389 .field("unmounted", &self.unmounted)
4390 .field("get_root", &self.get_root)
4391 .field("get_name", &self.get_name)
4392 .field("get_icon", &self.get_icon)
4393 .field("get_uuid", &self.get_uuid)
4394 .field("get_volume", &self.get_volume)
4395 .field("get_drive", &self.get_drive)
4396 .field("can_unmount", &self.can_unmount)
4397 .field("can_eject", &self.can_eject)
4398 .field("unmount", &self.unmount)
4399 .field("unmount_finish", &self.unmount_finish)
4400 .field("eject", &self.eject)
4401 .field("eject_finish", &self.eject_finish)
4402 .field("remount", &self.remount)
4403 .field("remount_finish", &self.remount_finish)
4404 .field("guess_content_type", &self.guess_content_type)
4405 .field("guess_content_type_finish", &self.guess_content_type_finish)
4406 .field("guess_content_type_sync", &self.guess_content_type_sync)
4407 .field("pre_unmount", &self.pre_unmount)
4408 .field("unmount_with_operation", &self.unmount_with_operation)
4409 .field(
4410 "unmount_with_operation_finish",
4411 &self.unmount_with_operation_finish,
4412 )
4413 .field("eject_with_operation", &self.eject_with_operation)
4414 .field(
4415 "eject_with_operation_finish",
4416 &self.eject_with_operation_finish,
4417 )
4418 .field("get_default_location", &self.get_default_location)
4419 .field("get_sort_key", &self.get_sort_key)
4420 .field("get_symbolic_icon", &self.get_symbolic_icon)
4421 .finish()
4422 }
4423}
4424
4425#[repr(C)]
4426#[derive(Copy, Clone)]
4427pub struct GMountOperationClass {
4428 pub parent_class: gobject::GObjectClass,
4429 pub ask_password: Option<
4430 unsafe extern "C" fn(
4431 *mut GMountOperation,
4432 *const c_char,
4433 *const c_char,
4434 *const c_char,
4435 GAskPasswordFlags,
4436 ),
4437 >,
4438 pub ask_question:
4439 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, *mut *const c_char)>,
4440 pub reply: Option<unsafe extern "C" fn(*mut GMountOperation, GMountOperationResult)>,
4441 pub aborted: Option<unsafe extern "C" fn(*mut GMountOperation)>,
4442 pub show_processes: Option<
4443 unsafe extern "C" fn(
4444 *mut GMountOperation,
4445 *const c_char,
4446 *mut glib::GArray,
4447 *mut *const c_char,
4448 ),
4449 >,
4450 pub show_unmount_progress:
4451 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, i64, i64)>,
4452 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4453 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4454 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4455 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4456 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4457 pub _g_reserved6: Option<unsafe extern "C" fn()>,
4458 pub _g_reserved7: Option<unsafe extern "C" fn()>,
4459 pub _g_reserved8: Option<unsafe extern "C" fn()>,
4460 pub _g_reserved9: Option<unsafe extern "C" fn()>,
4461}
4462
4463impl ::std::fmt::Debug for GMountOperationClass {
4464 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4465 f.debug_struct(&format!("GMountOperationClass @ {:?}", self as *const _))
4466 .field("parent_class", &self.parent_class)
4467 .field("ask_password", &self.ask_password)
4468 .field("ask_question", &self.ask_question)
4469 .field("reply", &self.reply)
4470 .field("aborted", &self.aborted)
4471 .field("show_processes", &self.show_processes)
4472 .field("show_unmount_progress", &self.show_unmount_progress)
4473 .field("_g_reserved1", &self._g_reserved1)
4474 .field("_g_reserved2", &self._g_reserved2)
4475 .field("_g_reserved3", &self._g_reserved3)
4476 .field("_g_reserved4", &self._g_reserved4)
4477 .field("_g_reserved5", &self._g_reserved5)
4478 .field("_g_reserved6", &self._g_reserved6)
4479 .field("_g_reserved7", &self._g_reserved7)
4480 .field("_g_reserved8", &self._g_reserved8)
4481 .field("_g_reserved9", &self._g_reserved9)
4482 .finish()
4483 }
4484}
4485
4486#[repr(C)]
4487pub struct _GMountOperationPrivate(c_void);
4488
4489pub type GMountOperationPrivate = *mut _GMountOperationPrivate;
4490
4491#[repr(C)]
4492pub struct _GNativeSocketAddress(c_void);
4493
4494pub type GNativeSocketAddress = *mut _GNativeSocketAddress;
4495
4496#[repr(C)]
4497#[derive(Copy, Clone)]
4498pub struct GNativeVolumeMonitorClass {
4499 pub parent_class: GVolumeMonitorClass,
4500 pub get_mount_for_mount_path:
4501 Option<unsafe extern "C" fn(*const c_char, *mut GCancellable) -> *mut GMount>,
4502}
4503
4504impl ::std::fmt::Debug for GNativeVolumeMonitorClass {
4505 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4506 f.debug_struct(&format!(
4507 "GNativeVolumeMonitorClass @ {:?}",
4508 self as *const _
4509 ))
4510 .field("parent_class", &self.parent_class)
4511 .field("get_mount_for_mount_path", &self.get_mount_for_mount_path)
4512 .finish()
4513 }
4514}
4515
4516#[repr(C)]
4517#[derive(Copy, Clone)]
4518pub struct GNetworkAddressClass {
4519 pub parent_class: gobject::GObjectClass,
4520}
4521
4522impl ::std::fmt::Debug for GNetworkAddressClass {
4523 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4524 f.debug_struct(&format!("GNetworkAddressClass @ {:?}", self as *const _))
4525 .field("parent_class", &self.parent_class)
4526 .finish()
4527 }
4528}
4529
4530#[repr(C)]
4531pub struct _GNetworkAddressPrivate(c_void);
4532
4533pub type GNetworkAddressPrivate = *mut _GNetworkAddressPrivate;
4534
4535#[repr(C)]
4536#[derive(Copy, Clone)]
4537pub struct GNetworkMonitorInterface {
4538 pub g_iface: gobject::GTypeInterface,
4539 pub network_changed: Option<unsafe extern "C" fn(*mut GNetworkMonitor, gboolean)>,
4540 pub can_reach: Option<
4541 unsafe extern "C" fn(
4542 *mut GNetworkMonitor,
4543 *mut GSocketConnectable,
4544 *mut GCancellable,
4545 *mut *mut glib::GError,
4546 ) -> gboolean,
4547 >,
4548 pub can_reach_async: Option<
4549 unsafe extern "C" fn(
4550 *mut GNetworkMonitor,
4551 *mut GSocketConnectable,
4552 *mut GCancellable,
4553 GAsyncReadyCallback,
4554 gpointer,
4555 ),
4556 >,
4557 pub can_reach_finish: Option<
4558 unsafe extern "C" fn(
4559 *mut GNetworkMonitor,
4560 *mut GAsyncResult,
4561 *mut *mut glib::GError,
4562 ) -> gboolean,
4563 >,
4564}
4565
4566impl ::std::fmt::Debug for GNetworkMonitorInterface {
4567 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4568 f.debug_struct(&format!(
4569 "GNetworkMonitorInterface @ {:?}",
4570 self as *const _
4571 ))
4572 .field("g_iface", &self.g_iface)
4573 .field("network_changed", &self.network_changed)
4574 .field("can_reach", &self.can_reach)
4575 .field("can_reach_async", &self.can_reach_async)
4576 .field("can_reach_finish", &self.can_reach_finish)
4577 .finish()
4578 }
4579}
4580
4581#[repr(C)]
4582#[derive(Copy, Clone)]
4583pub struct GNetworkServiceClass {
4584 pub parent_class: gobject::GObjectClass,
4585}
4586
4587impl ::std::fmt::Debug for GNetworkServiceClass {
4588 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4589 f.debug_struct(&format!("GNetworkServiceClass @ {:?}", self as *const _))
4590 .field("parent_class", &self.parent_class)
4591 .finish()
4592 }
4593}
4594
4595#[repr(C)]
4596pub struct _GNetworkServicePrivate(c_void);
4597
4598pub type GNetworkServicePrivate = *mut _GNetworkServicePrivate;
4599
4600#[repr(C)]
4601#[derive(Copy, Clone)]
4602pub struct GOutputMessage {
4603 pub address: *mut GSocketAddress,
4604 pub vectors: *mut GOutputVector,
4605 pub num_vectors: c_uint,
4606 pub bytes_sent: c_uint,
4607 pub control_messages: *mut *mut GSocketControlMessage,
4608 pub num_control_messages: c_uint,
4609}
4610
4611impl ::std::fmt::Debug for GOutputMessage {
4612 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4613 f.debug_struct(&format!("GOutputMessage @ {:?}", self as *const _))
4614 .field("address", &self.address)
4615 .field("vectors", &self.vectors)
4616 .field("num_vectors", &self.num_vectors)
4617 .field("bytes_sent", &self.bytes_sent)
4618 .field("control_messages", &self.control_messages)
4619 .field("num_control_messages", &self.num_control_messages)
4620 .finish()
4621 }
4622}
4623
4624#[repr(C)]
4625#[derive(Copy, Clone)]
4626pub struct GOutputStreamClass {
4627 pub parent_class: gobject::GObjectClass,
4628 pub write_fn: Option<
4629 unsafe extern "C" fn(
4630 *mut GOutputStream,
4631 *mut u8,
4632 size_t,
4633 *mut GCancellable,
4634 *mut *mut glib::GError,
4635 ) -> ssize_t,
4636 >,
4637 pub splice: Option<
4638 unsafe extern "C" fn(
4639 *mut GOutputStream,
4640 *mut GInputStream,
4641 GOutputStreamSpliceFlags,
4642 *mut GCancellable,
4643 *mut *mut glib::GError,
4644 ) -> ssize_t,
4645 >,
4646 pub flush: Option<
4647 unsafe extern "C" fn(
4648 *mut GOutputStream,
4649 *mut GCancellable,
4650 *mut *mut glib::GError,
4651 ) -> gboolean,
4652 >,
4653 pub close_fn: Option<
4654 unsafe extern "C" fn(
4655 *mut GOutputStream,
4656 *mut GCancellable,
4657 *mut *mut glib::GError,
4658 ) -> gboolean,
4659 >,
4660 pub write_async: Option<
4661 unsafe extern "C" fn(
4662 *mut GOutputStream,
4663 *mut u8,
4664 size_t,
4665 c_int,
4666 *mut GCancellable,
4667 GAsyncReadyCallback,
4668 gpointer,
4669 ),
4670 >,
4671 pub write_finish: Option<
4672 unsafe extern "C" fn(
4673 *mut GOutputStream,
4674 *mut GAsyncResult,
4675 *mut *mut glib::GError,
4676 ) -> ssize_t,
4677 >,
4678 pub splice_async: Option<
4679 unsafe extern "C" fn(
4680 *mut GOutputStream,
4681 *mut GInputStream,
4682 GOutputStreamSpliceFlags,
4683 c_int,
4684 *mut GCancellable,
4685 GAsyncReadyCallback,
4686 gpointer,
4687 ),
4688 >,
4689 pub splice_finish: Option<
4690 unsafe extern "C" fn(
4691 *mut GOutputStream,
4692 *mut GAsyncResult,
4693 *mut *mut glib::GError,
4694 ) -> ssize_t,
4695 >,
4696 pub flush_async: Option<
4697 unsafe extern "C" fn(
4698 *mut GOutputStream,
4699 c_int,
4700 *mut GCancellable,
4701 GAsyncReadyCallback,
4702 gpointer,
4703 ),
4704 >,
4705 pub flush_finish: Option<
4706 unsafe extern "C" fn(
4707 *mut GOutputStream,
4708 *mut GAsyncResult,
4709 *mut *mut glib::GError,
4710 ) -> gboolean,
4711 >,
4712 pub close_async: Option<
4713 unsafe extern "C" fn(
4714 *mut GOutputStream,
4715 c_int,
4716 *mut GCancellable,
4717 GAsyncReadyCallback,
4718 gpointer,
4719 ),
4720 >,
4721 pub close_finish: Option<
4722 unsafe extern "C" fn(
4723 *mut GOutputStream,
4724 *mut GAsyncResult,
4725 *mut *mut glib::GError,
4726 ) -> gboolean,
4727 >,
4728 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4729 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4730 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4731 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4732 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4733 pub _g_reserved6: Option<unsafe extern "C" fn()>,
4734 pub _g_reserved7: Option<unsafe extern "C" fn()>,
4735 pub _g_reserved8: Option<unsafe extern "C" fn()>,
4736}
4737
4738impl ::std::fmt::Debug for GOutputStreamClass {
4739 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4740 f.debug_struct(&format!("GOutputStreamClass @ {:?}", self as *const _))
4741 .field("parent_class", &self.parent_class)
4742 .field("write_fn", &self.write_fn)
4743 .field("splice", &self.splice)
4744 .field("flush", &self.flush)
4745 .field("close_fn", &self.close_fn)
4746 .field("write_async", &self.write_async)
4747 .field("write_finish", &self.write_finish)
4748 .field("splice_async", &self.splice_async)
4749 .field("splice_finish", &self.splice_finish)
4750 .field("flush_async", &self.flush_async)
4751 .field("flush_finish", &self.flush_finish)
4752 .field("close_async", &self.close_async)
4753 .field("close_finish", &self.close_finish)
4754 .field("_g_reserved1", &self._g_reserved1)
4755 .field("_g_reserved2", &self._g_reserved2)
4756 .field("_g_reserved3", &self._g_reserved3)
4757 .field("_g_reserved4", &self._g_reserved4)
4758 .field("_g_reserved5", &self._g_reserved5)
4759 .field("_g_reserved6", &self._g_reserved6)
4760 .field("_g_reserved7", &self._g_reserved7)
4761 .field("_g_reserved8", &self._g_reserved8)
4762 .finish()
4763 }
4764}
4765
4766#[repr(C)]
4767pub struct _GOutputStreamPrivate(c_void);
4768
4769pub type GOutputStreamPrivate = *mut _GOutputStreamPrivate;
4770
4771#[repr(C)]
4772#[derive(Copy, Clone)]
4773pub struct GOutputVector {
4774 pub buffer: gconstpointer,
4775 pub size: size_t,
4776}
4777
4778impl ::std::fmt::Debug for GOutputVector {
4779 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4780 f.debug_struct(&format!("GOutputVector @ {:?}", self as *const _))
4781 .field("buffer", &self.buffer)
4782 .field("size", &self.size)
4783 .finish()
4784 }
4785}
4786
4787#[repr(C)]
4788#[derive(Copy, Clone)]
4789pub struct GPermissionClass {
4790 pub parent_class: gobject::GObjectClass,
4791 pub acquire: Option<
4792 unsafe extern "C" fn(
4793 *mut GPermission,
4794 *mut GCancellable,
4795 *mut *mut glib::GError,
4796 ) -> gboolean,
4797 >,
4798 pub acquire_async: Option<
4799 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
4800 >,
4801 pub acquire_finish: Option<
4802 unsafe extern "C" fn(
4803 *mut GPermission,
4804 *mut GAsyncResult,
4805 *mut *mut glib::GError,
4806 ) -> gboolean,
4807 >,
4808 pub release: Option<
4809 unsafe extern "C" fn(
4810 *mut GPermission,
4811 *mut GCancellable,
4812 *mut *mut glib::GError,
4813 ) -> gboolean,
4814 >,
4815 pub release_async: Option<
4816 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
4817 >,
4818 pub release_finish: Option<
4819 unsafe extern "C" fn(
4820 *mut GPermission,
4821 *mut GAsyncResult,
4822 *mut *mut glib::GError,
4823 ) -> gboolean,
4824 >,
4825 pub reserved: [gpointer; 16],
4826}
4827
4828impl ::std::fmt::Debug for GPermissionClass {
4829 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4830 f.debug_struct(&format!("GPermissionClass @ {:?}", self as *const _))
4831 .field("parent_class", &self.parent_class)
4832 .field("acquire", &self.acquire)
4833 .field("acquire_async", &self.acquire_async)
4834 .field("acquire_finish", &self.acquire_finish)
4835 .field("release", &self.release)
4836 .field("release_async", &self.release_async)
4837 .field("release_finish", &self.release_finish)
4838 .field("reserved", &self.reserved)
4839 .finish()
4840 }
4841}
4842
4843#[repr(C)]
4844pub struct _GPermissionPrivate(c_void);
4845
4846pub type GPermissionPrivate = *mut _GPermissionPrivate;
4847
4848#[repr(C)]
4849#[derive(Copy, Clone)]
4850pub struct GPollableInputStreamInterface {
4851 pub g_iface: gobject::GTypeInterface,
4852 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
4853 pub is_readable: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
4854 pub create_source: Option<
4855 unsafe extern "C" fn(*mut GPollableInputStream, *mut GCancellable) -> *mut glib::GSource,
4856 >,
4857 pub read_nonblocking: Option<
4858 unsafe extern "C" fn(
4859 *mut GPollableInputStream,
4860 *mut u8,
4861 size_t,
4862 *mut *mut glib::GError,
4863 ) -> ssize_t,
4864 >,
4865}
4866
4867impl ::std::fmt::Debug for GPollableInputStreamInterface {
4868 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4869 f.debug_struct(&format!(
4870 "GPollableInputStreamInterface @ {:?}",
4871 self as *const _
4872 ))
4873 .field("g_iface", &self.g_iface)
4874 .field("can_poll", &self.can_poll)
4875 .field("is_readable", &self.is_readable)
4876 .field("create_source", &self.create_source)
4877 .field("read_nonblocking", &self.read_nonblocking)
4878 .finish()
4879 }
4880}
4881
4882#[repr(C)]
4883#[derive(Copy, Clone)]
4884pub struct GPollableOutputStreamInterface {
4885 pub g_iface: gobject::GTypeInterface,
4886 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
4887 pub is_writable: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
4888 pub create_source: Option<
4889 unsafe extern "C" fn(*mut GPollableOutputStream, *mut GCancellable) -> *mut glib::GSource,
4890 >,
4891 pub write_nonblocking: Option<
4892 unsafe extern "C" fn(
4893 *mut GPollableOutputStream,
4894 *mut u8,
4895 size_t,
4896 *mut *mut glib::GError,
4897 ) -> ssize_t,
4898 >,
4899}
4900
4901impl ::std::fmt::Debug for GPollableOutputStreamInterface {
4902 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4903 f.debug_struct(&format!(
4904 "GPollableOutputStreamInterface @ {:?}",
4905 self as *const _
4906 ))
4907 .field("g_iface", &self.g_iface)
4908 .field("can_poll", &self.can_poll)
4909 .field("is_writable", &self.is_writable)
4910 .field("create_source", &self.create_source)
4911 .field("write_nonblocking", &self.write_nonblocking)
4912 .finish()
4913 }
4914}
4915
4916#[repr(C)]
4917#[derive(Copy, Clone)]
4918pub struct GProxyAddressClass {
4919 pub parent_class: GInetSocketAddressClass,
4920}
4921
4922impl ::std::fmt::Debug for GProxyAddressClass {
4923 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4924 f.debug_struct(&format!("GProxyAddressClass @ {:?}", self as *const _))
4925 .field("parent_class", &self.parent_class)
4926 .finish()
4927 }
4928}
4929
4930#[repr(C)]
4931#[derive(Copy, Clone)]
4932pub struct GProxyAddressEnumeratorClass {
4933 pub parent_class: GSocketAddressEnumeratorClass,
4934 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4935 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4936 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4937 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4938 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4939 pub _g_reserved6: Option<unsafe extern "C" fn()>,
4940 pub _g_reserved7: Option<unsafe extern "C" fn()>,
4941}
4942
4943impl ::std::fmt::Debug for GProxyAddressEnumeratorClass {
4944 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4945 f.debug_struct(&format!(
4946 "GProxyAddressEnumeratorClass @ {:?}",
4947 self as *const _
4948 ))
4949 .field("parent_class", &self.parent_class)
4950 .field("_g_reserved1", &self._g_reserved1)
4951 .field("_g_reserved2", &self._g_reserved2)
4952 .field("_g_reserved3", &self._g_reserved3)
4953 .field("_g_reserved4", &self._g_reserved4)
4954 .field("_g_reserved5", &self._g_reserved5)
4955 .field("_g_reserved6", &self._g_reserved6)
4956 .field("_g_reserved7", &self._g_reserved7)
4957 .finish()
4958 }
4959}
4960
4961#[repr(C)]
4962pub struct _GProxyAddressEnumeratorPrivate(c_void);
4963
4964pub type GProxyAddressEnumeratorPrivate = *mut _GProxyAddressEnumeratorPrivate;
4965
4966#[repr(C)]
4967pub struct _GProxyAddressPrivate(c_void);
4968
4969pub type GProxyAddressPrivate = *mut _GProxyAddressPrivate;
4970
4971#[repr(C)]
4972#[derive(Copy, Clone)]
4973pub struct GProxyInterface {
4974 pub g_iface: gobject::GTypeInterface,
4975 pub connect: Option<
4976 unsafe extern "C" fn(
4977 *mut GProxy,
4978 *mut GIOStream,
4979 *mut GProxyAddress,
4980 *mut GCancellable,
4981 *mut *mut glib::GError,
4982 ) -> *mut GIOStream,
4983 >,
4984 pub connect_async: Option<
4985 unsafe extern "C" fn(
4986 *mut GProxy,
4987 *mut GIOStream,
4988 *mut GProxyAddress,
4989 *mut GCancellable,
4990 GAsyncReadyCallback,
4991 gpointer,
4992 ),
4993 >,
4994 pub connect_finish: Option<
4995 unsafe extern "C" fn(
4996 *mut GProxy,
4997 *mut GAsyncResult,
4998 *mut *mut glib::GError,
4999 ) -> *mut GIOStream,
5000 >,
5001 pub supports_hostname: Option<unsafe extern "C" fn(*mut GProxy) -> gboolean>,
5002}
5003
5004impl ::std::fmt::Debug for GProxyInterface {
5005 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5006 f.debug_struct(&format!("GProxyInterface @ {:?}", self as *const _))
5007 .field("g_iface", &self.g_iface)
5008 .field("connect", &self.connect)
5009 .field("connect_async", &self.connect_async)
5010 .field("connect_finish", &self.connect_finish)
5011 .field("supports_hostname", &self.supports_hostname)
5012 .finish()
5013 }
5014}
5015
5016#[repr(C)]
5017#[derive(Copy, Clone)]
5018pub struct GProxyResolverInterface {
5019 pub g_iface: gobject::GTypeInterface,
5020 pub is_supported: Option<unsafe extern "C" fn(*mut GProxyResolver) -> gboolean>,
5021 pub lookup: Option<
5022 unsafe extern "C" fn(
5023 *mut GProxyResolver,
5024 *const c_char,
5025 *mut GCancellable,
5026 *mut *mut glib::GError,
5027 ) -> *mut *mut c_char,
5028 >,
5029 pub lookup_async: Option<
5030 unsafe extern "C" fn(
5031 *mut GProxyResolver,
5032 *const c_char,
5033 *mut GCancellable,
5034 GAsyncReadyCallback,
5035 gpointer,
5036 ),
5037 >,
5038 pub lookup_finish: Option<
5039 unsafe extern "C" fn(
5040 *mut GProxyResolver,
5041 *mut GAsyncResult,
5042 *mut *mut glib::GError,
5043 ) -> *mut *mut c_char,
5044 >,
5045}
5046
5047impl ::std::fmt::Debug for GProxyResolverInterface {
5048 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5049 f.debug_struct(&format!("GProxyResolverInterface @ {:?}", self as *const _))
5050 .field("g_iface", &self.g_iface)
5051 .field("is_supported", &self.is_supported)
5052 .field("lookup", &self.lookup)
5053 .field("lookup_async", &self.lookup_async)
5054 .field("lookup_finish", &self.lookup_finish)
5055 .finish()
5056 }
5057}
5058
5059#[repr(C)]
5060#[derive(Copy, Clone)]
5061pub struct GRemoteActionGroupInterface {
5062 pub g_iface: gobject::GTypeInterface,
5063 pub activate_action_full: Option<
5064 unsafe extern "C" fn(
5065 *mut GRemoteActionGroup,
5066 *const c_char,
5067 *mut glib::GVariant,
5068 *mut glib::GVariant,
5069 ),
5070 >,
5071 pub change_action_state_full: Option<
5072 unsafe extern "C" fn(
5073 *mut GRemoteActionGroup,
5074 *const c_char,
5075 *mut glib::GVariant,
5076 *mut glib::GVariant,
5077 ),
5078 >,
5079}
5080
5081impl ::std::fmt::Debug for GRemoteActionGroupInterface {
5082 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5083 f.debug_struct(&format!(
5084 "GRemoteActionGroupInterface @ {:?}",
5085 self as *const _
5086 ))
5087 .field("g_iface", &self.g_iface)
5088 .field("activate_action_full", &self.activate_action_full)
5089 .field("change_action_state_full", &self.change_action_state_full)
5090 .finish()
5091 }
5092}
5093
5094#[repr(C)]
5095#[derive(Copy, Clone)]
5096pub struct GResolverClass {
5097 pub parent_class: gobject::GObjectClass,
5098 pub reload: Option<unsafe extern "C" fn(*mut GResolver)>,
5099 pub lookup_by_name: Option<
5100 unsafe extern "C" fn(
5101 *mut GResolver,
5102 *const c_char,
5103 *mut GCancellable,
5104 *mut *mut glib::GError,
5105 ) -> *mut glib::GList,
5106 >,
5107 pub lookup_by_name_async: Option<
5108 unsafe extern "C" fn(
5109 *mut GResolver,
5110 *const c_char,
5111 *mut GCancellable,
5112 GAsyncReadyCallback,
5113 gpointer,
5114 ),
5115 >,
5116 pub lookup_by_name_finish: Option<
5117 unsafe extern "C" fn(
5118 *mut GResolver,
5119 *mut GAsyncResult,
5120 *mut *mut glib::GError,
5121 ) -> *mut glib::GList,
5122 >,
5123 pub lookup_by_address: Option<
5124 unsafe extern "C" fn(
5125 *mut GResolver,
5126 *mut GInetAddress,
5127 *mut GCancellable,
5128 *mut *mut glib::GError,
5129 ) -> *mut c_char,
5130 >,
5131 pub lookup_by_address_async: Option<
5132 unsafe extern "C" fn(
5133 *mut GResolver,
5134 *mut GInetAddress,
5135 *mut GCancellable,
5136 GAsyncReadyCallback,
5137 gpointer,
5138 ),
5139 >,
5140 pub lookup_by_address_finish: Option<
5141 unsafe extern "C" fn(
5142 *mut GResolver,
5143 *mut GAsyncResult,
5144 *mut *mut glib::GError,
5145 ) -> *mut c_char,
5146 >,
5147 pub lookup_service: Option<
5148 unsafe extern "C" fn(
5149 *mut GResolver,
5150 *const c_char,
5151 *mut GCancellable,
5152 *mut *mut glib::GError,
5153 ) -> *mut glib::GList,
5154 >,
5155 pub lookup_service_async: Option<
5156 unsafe extern "C" fn(
5157 *mut GResolver,
5158 *const c_char,
5159 *mut GCancellable,
5160 GAsyncReadyCallback,
5161 gpointer,
5162 ),
5163 >,
5164 pub lookup_service_finish: Option<
5165 unsafe extern "C" fn(
5166 *mut GResolver,
5167 *mut GAsyncResult,
5168 *mut *mut glib::GError,
5169 ) -> *mut glib::GList,
5170 >,
5171 pub lookup_records: Option<
5172 unsafe extern "C" fn(
5173 *mut GResolver,
5174 *const c_char,
5175 GResolverRecordType,
5176 *mut GCancellable,
5177 *mut *mut glib::GError,
5178 ) -> *mut glib::GList,
5179 >,
5180 pub lookup_records_async: Option<
5181 unsafe extern "C" fn(
5182 *mut GResolver,
5183 *const c_char,
5184 GResolverRecordType,
5185 *mut GCancellable,
5186 GAsyncReadyCallback,
5187 gpointer,
5188 ),
5189 >,
5190 pub lookup_records_finish: Option<
5191 unsafe extern "C" fn(
5192 *mut GResolver,
5193 *mut GAsyncResult,
5194 *mut *mut glib::GError,
5195 ) -> *mut glib::GList,
5196 >,
5197 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5198 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5199 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5200}
5201
5202impl ::std::fmt::Debug for GResolverClass {
5203 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5204 f.debug_struct(&format!("GResolverClass @ {:?}", self as *const _))
5205 .field("parent_class", &self.parent_class)
5206 .field("reload", &self.reload)
5207 .field("lookup_by_name", &self.lookup_by_name)
5208 .field("lookup_by_name_async", &self.lookup_by_name_async)
5209 .field("lookup_by_name_finish", &self.lookup_by_name_finish)
5210 .field("lookup_by_address", &self.lookup_by_address)
5211 .field("lookup_by_address_async", &self.lookup_by_address_async)
5212 .field("lookup_by_address_finish", &self.lookup_by_address_finish)
5213 .field("lookup_service", &self.lookup_service)
5214 .field("lookup_service_async", &self.lookup_service_async)
5215 .field("lookup_service_finish", &self.lookup_service_finish)
5216 .field("lookup_records", &self.lookup_records)
5217 .field("lookup_records_async", &self.lookup_records_async)
5218 .field("lookup_records_finish", &self.lookup_records_finish)
5219 .field("_g_reserved4", &self._g_reserved4)
5220 .field("_g_reserved5", &self._g_reserved5)
5221 .field("_g_reserved6", &self._g_reserved6)
5222 .finish()
5223 }
5224}
5225
5226#[repr(C)]
5227pub struct _GResolverPrivate(c_void);
5228
5229pub type GResolverPrivate = *mut _GResolverPrivate;
5230
5231#[repr(C)]
5232pub struct GResource(c_void);
5233
5234impl ::std::fmt::Debug for GResource {
5235 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5236 f.debug_struct(&format!("GResource @ {:?}", self as *const _))
5237 .finish()
5238 }
5239}
5240
5241#[repr(C)]
5242#[derive(Copy, Clone)]
5243pub struct GSeekableIface {
5244 pub g_iface: gobject::GTypeInterface,
5245 pub tell: Option<unsafe extern "C" fn(*mut GSeekable) -> i64>,
5246 pub can_seek: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5247 pub seek: Option<
5248 unsafe extern "C" fn(
5249 *mut GSeekable,
5250 i64,
5251 glib::GSeekType,
5252 *mut GCancellable,
5253 *mut *mut glib::GError,
5254 ) -> gboolean,
5255 >,
5256 pub can_truncate: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5257 pub truncate_fn: Option<
5258 unsafe extern "C" fn(
5259 *mut GSeekable,
5260 i64,
5261 *mut GCancellable,
5262 *mut *mut glib::GError,
5263 ) -> gboolean,
5264 >,
5265}
5266
5267impl ::std::fmt::Debug for GSeekableIface {
5268 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5269 f.debug_struct(&format!("GSeekableIface @ {:?}", self as *const _))
5270 .field("g_iface", &self.g_iface)
5271 .field("tell", &self.tell)
5272 .field("can_seek", &self.can_seek)
5273 .field("seek", &self.seek)
5274 .field("can_truncate", &self.can_truncate)
5275 .field("truncate_fn", &self.truncate_fn)
5276 .finish()
5277 }
5278}
5279
5280#[repr(C)]
5281#[derive(Copy, Clone)]
5282pub struct GSettingsBackendClass {
5283 pub parent_class: gobject::GObjectClass,
5284 pub read: Option<
5285 unsafe extern "C" fn(
5286 *mut GSettingsBackend,
5287 *const c_char,
5288 *const glib::GVariantType,
5289 gboolean,
5290 ) -> *mut glib::GVariant,
5291 >,
5292 pub get_writable:
5293 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> gboolean>,
5294 pub write: Option<
5295 unsafe extern "C" fn(
5296 *mut GSettingsBackend,
5297 *const c_char,
5298 *mut glib::GVariant,
5299 gpointer,
5300 ) -> gboolean,
5301 >,
5302 pub write_tree:
5303 Option<unsafe extern "C" fn(*mut GSettingsBackend, *mut glib::GTree, gpointer) -> gboolean>,
5304 pub reset: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char, gpointer)>,
5305 pub subscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5306 pub unsubscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5307 pub sync: Option<unsafe extern "C" fn(*mut GSettingsBackend)>,
5308 pub get_permission:
5309 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> *mut GPermission>,
5310 pub read_user_value: Option<
5311 unsafe extern "C" fn(
5312 *mut GSettingsBackend,
5313 *const c_char,
5314 *const glib::GVariantType,
5315 ) -> *mut glib::GVariant,
5316 >,
5317 pub padding: [gpointer; 23],
5318}
5319
5320impl ::std::fmt::Debug for GSettingsBackendClass {
5321 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5322 f.debug_struct(&format!("GSettingsBackendClass @ {:?}", self as *const _))
5323 .field("parent_class", &self.parent_class)
5324 .field("read", &self.read)
5325 .field("get_writable", &self.get_writable)
5326 .field("write", &self.write)
5327 .field("write_tree", &self.write_tree)
5328 .field("reset", &self.reset)
5329 .field("subscribe", &self.subscribe)
5330 .field("unsubscribe", &self.unsubscribe)
5331 .field("sync", &self.sync)
5332 .field("get_permission", &self.get_permission)
5333 .field("read_user_value", &self.read_user_value)
5334 .finish()
5335 }
5336}
5337
5338#[repr(C)]
5339pub struct _GSettingsBackendPrivate(c_void);
5340
5341pub type GSettingsBackendPrivate = *mut _GSettingsBackendPrivate;
5342
5343#[repr(C)]
5344#[derive(Copy, Clone)]
5345pub struct GSettingsClass {
5346 pub parent_class: gobject::GObjectClass,
5347 pub writable_changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5348 pub changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5349 pub writable_change_event:
5350 Option<unsafe extern "C" fn(*mut GSettings, glib::GQuark) -> gboolean>,
5351 pub change_event:
5352 Option<unsafe extern "C" fn(*mut GSettings, *const glib::GQuark, c_int) -> gboolean>,
5353 pub padding: [gpointer; 20],
5354}
5355
5356impl ::std::fmt::Debug for GSettingsClass {
5357 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5358 f.debug_struct(&format!("GSettingsClass @ {:?}", self as *const _))
5359 .field("parent_class", &self.parent_class)
5360 .field("writable_changed", &self.writable_changed)
5361 .field("changed", &self.changed)
5362 .field("writable_change_event", &self.writable_change_event)
5363 .field("change_event", &self.change_event)
5364 .field("padding", &self.padding)
5365 .finish()
5366 }
5367}
5368
5369#[repr(C)]
5370pub struct _GSettingsPrivate(c_void);
5371
5372pub type GSettingsPrivate = *mut _GSettingsPrivate;
5373
5374#[repr(C)]
5375pub struct GSettingsSchema(c_void);
5376
5377impl ::std::fmt::Debug for GSettingsSchema {
5378 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5379 f.debug_struct(&format!("GSettingsSchema @ {:?}", self as *const _))
5380 .finish()
5381 }
5382}
5383
5384#[repr(C)]
5385pub struct GSettingsSchemaKey(c_void);
5386
5387impl ::std::fmt::Debug for GSettingsSchemaKey {
5388 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5389 f.debug_struct(&format!("GSettingsSchemaKey @ {:?}", self as *const _))
5390 .finish()
5391 }
5392}
5393
5394#[repr(C)]
5395pub struct GSettingsSchemaSource(c_void);
5396
5397impl ::std::fmt::Debug for GSettingsSchemaSource {
5398 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5399 f.debug_struct(&format!("GSettingsSchemaSource @ {:?}", self as *const _))
5400 .finish()
5401 }
5402}
5403
5404#[repr(C)]
5405#[derive(Copy, Clone)]
5406pub struct GSimpleActionGroupClass {
5407 pub parent_class: gobject::GObjectClass,
5408 pub padding: [gpointer; 12],
5409}
5410
5411impl ::std::fmt::Debug for GSimpleActionGroupClass {
5412 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5413 f.debug_struct(&format!("GSimpleActionGroupClass @ {:?}", self as *const _))
5414 .finish()
5415 }
5416}
5417
5418#[repr(C)]
5419pub struct _GSimpleActionGroupPrivate(c_void);
5420
5421pub type GSimpleActionGroupPrivate = *mut _GSimpleActionGroupPrivate;
5422
5423#[repr(C)]
5424pub struct _GSimpleAsyncResultClass(c_void);
5425
5426pub type GSimpleAsyncResultClass = *mut _GSimpleAsyncResultClass;
5427
5428#[repr(C)]
5429#[derive(Copy, Clone)]
5430pub struct GSimpleProxyResolverClass {
5431 pub parent_class: gobject::GObjectClass,
5432 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5433 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5434 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5435 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5436 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5437}
5438
5439impl ::std::fmt::Debug for GSimpleProxyResolverClass {
5440 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5441 f.debug_struct(&format!(
5442 "GSimpleProxyResolverClass @ {:?}",
5443 self as *const _
5444 ))
5445 .field("parent_class", &self.parent_class)
5446 .field("_g_reserved1", &self._g_reserved1)
5447 .field("_g_reserved2", &self._g_reserved2)
5448 .field("_g_reserved3", &self._g_reserved3)
5449 .field("_g_reserved4", &self._g_reserved4)
5450 .field("_g_reserved5", &self._g_reserved5)
5451 .finish()
5452 }
5453}
5454
5455#[repr(C)]
5456pub struct _GSimpleProxyResolverPrivate(c_void);
5457
5458pub type GSimpleProxyResolverPrivate = *mut _GSimpleProxyResolverPrivate;
5459
5460#[repr(C)]
5461#[derive(Copy, Clone)]
5462pub struct GSocketAddressClass {
5463 pub parent_class: gobject::GObjectClass,
5464 pub get_family: Option<unsafe extern "C" fn(*mut GSocketAddress) -> GSocketFamily>,
5465 pub get_native_size: Option<unsafe extern "C" fn(*mut GSocketAddress) -> ssize_t>,
5466 pub to_native: Option<
5467 unsafe extern "C" fn(
5468 *mut GSocketAddress,
5469 gpointer,
5470 size_t,
5471 *mut *mut glib::GError,
5472 ) -> gboolean,
5473 >,
5474}
5475
5476impl ::std::fmt::Debug for GSocketAddressClass {
5477 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5478 f.debug_struct(&format!("GSocketAddressClass @ {:?}", self as *const _))
5479 .field("parent_class", &self.parent_class)
5480 .field("get_family", &self.get_family)
5481 .field("get_native_size", &self.get_native_size)
5482 .field("to_native", &self.to_native)
5483 .finish()
5484 }
5485}
5486
5487#[repr(C)]
5488#[derive(Copy, Clone)]
5489pub struct GSocketAddressEnumeratorClass {
5490 pub parent_class: gobject::GObjectClass,
5491 pub next: Option<
5492 unsafe extern "C" fn(
5493 *mut GSocketAddressEnumerator,
5494 *mut GCancellable,
5495 *mut *mut glib::GError,
5496 ) -> *mut GSocketAddress,
5497 >,
5498 pub next_async: Option<
5499 unsafe extern "C" fn(
5500 *mut GSocketAddressEnumerator,
5501 *mut GCancellable,
5502 GAsyncReadyCallback,
5503 gpointer,
5504 ),
5505 >,
5506 pub next_finish: Option<
5507 unsafe extern "C" fn(
5508 *mut GSocketAddressEnumerator,
5509 *mut GAsyncResult,
5510 *mut *mut glib::GError,
5511 ) -> *mut GSocketAddress,
5512 >,
5513}
5514
5515impl ::std::fmt::Debug for GSocketAddressEnumeratorClass {
5516 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5517 f.debug_struct(&format!(
5518 "GSocketAddressEnumeratorClass @ {:?}",
5519 self as *const _
5520 ))
5521 .field("parent_class", &self.parent_class)
5522 .field("next", &self.next)
5523 .field("next_async", &self.next_async)
5524 .field("next_finish", &self.next_finish)
5525 .finish()
5526 }
5527}
5528
5529#[repr(C)]
5530#[derive(Copy, Clone)]
5531pub struct GSocketClass {
5532 pub parent_class: gobject::GObjectClass,
5533 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5534 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5535 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5536 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5537 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5538 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5539 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5540 pub _g_reserved8: Option<unsafe extern "C" fn()>,
5541 pub _g_reserved9: Option<unsafe extern "C" fn()>,
5542 pub _g_reserved10: Option<unsafe extern "C" fn()>,
5543}
5544
5545impl ::std::fmt::Debug for GSocketClass {
5546 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5547 f.debug_struct(&format!("GSocketClass @ {:?}", self as *const _))
5548 .field("parent_class", &self.parent_class)
5549 .field("_g_reserved1", &self._g_reserved1)
5550 .field("_g_reserved2", &self._g_reserved2)
5551 .field("_g_reserved3", &self._g_reserved3)
5552 .field("_g_reserved4", &self._g_reserved4)
5553 .field("_g_reserved5", &self._g_reserved5)
5554 .field("_g_reserved6", &self._g_reserved6)
5555 .field("_g_reserved7", &self._g_reserved7)
5556 .field("_g_reserved8", &self._g_reserved8)
5557 .field("_g_reserved9", &self._g_reserved9)
5558 .field("_g_reserved10", &self._g_reserved10)
5559 .finish()
5560 }
5561}
5562
5563#[repr(C)]
5564#[derive(Copy, Clone)]
5565pub struct GSocketClientClass {
5566 pub parent_class: gobject::GObjectClass,
5567 pub event: Option<
5568 unsafe extern "C" fn(
5569 *mut GSocketClient,
5570 GSocketClientEvent,
5571 *mut GSocketConnectable,
5572 *mut GIOStream,
5573 ),
5574 >,
5575 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5576 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5577 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5578 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5579}
5580
5581impl ::std::fmt::Debug for GSocketClientClass {
5582 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5583 f.debug_struct(&format!("GSocketClientClass @ {:?}", self as *const _))
5584 .field("parent_class", &self.parent_class)
5585 .field("event", &self.event)
5586 .field("_g_reserved1", &self._g_reserved1)
5587 .field("_g_reserved2", &self._g_reserved2)
5588 .field("_g_reserved3", &self._g_reserved3)
5589 .field("_g_reserved4", &self._g_reserved4)
5590 .finish()
5591 }
5592}
5593
5594#[repr(C)]
5595pub struct _GSocketClientPrivate(c_void);
5596
5597pub type GSocketClientPrivate = *mut _GSocketClientPrivate;
5598
5599#[repr(C)]
5600#[derive(Copy, Clone)]
5601pub struct GSocketConnectableIface {
5602 pub g_iface: gobject::GTypeInterface,
5603 pub enumerate:
5604 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5605 pub proxy_enumerate:
5606 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5607 pub to_string: Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut c_char>,
5608}
5609
5610impl ::std::fmt::Debug for GSocketConnectableIface {
5611 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5612 f.debug_struct(&format!("GSocketConnectableIface @ {:?}", self as *const _))
5613 .field("g_iface", &self.g_iface)
5614 .field("enumerate", &self.enumerate)
5615 .field("proxy_enumerate", &self.proxy_enumerate)
5616 .field("to_string", &self.to_string)
5617 .finish()
5618 }
5619}
5620
5621#[repr(C)]
5622#[derive(Copy, Clone)]
5623pub struct GSocketConnectionClass {
5624 pub parent_class: GIOStreamClass,
5625 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5626 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5627 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5628 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5629 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5630 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5631}
5632
5633impl ::std::fmt::Debug for GSocketConnectionClass {
5634 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5635 f.debug_struct(&format!("GSocketConnectionClass @ {:?}", self as *const _))
5636 .field("parent_class", &self.parent_class)
5637 .field("_g_reserved1", &self._g_reserved1)
5638 .field("_g_reserved2", &self._g_reserved2)
5639 .field("_g_reserved3", &self._g_reserved3)
5640 .field("_g_reserved4", &self._g_reserved4)
5641 .field("_g_reserved5", &self._g_reserved5)
5642 .field("_g_reserved6", &self._g_reserved6)
5643 .finish()
5644 }
5645}
5646
5647#[repr(C)]
5648pub struct _GSocketConnectionPrivate(c_void);
5649
5650pub type GSocketConnectionPrivate = *mut _GSocketConnectionPrivate;
5651
5652#[repr(C)]
5653#[derive(Copy, Clone)]
5654pub struct GSocketControlMessageClass {
5655 pub parent_class: gobject::GObjectClass,
5656 pub get_size: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> size_t>,
5657 pub get_level: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
5658 pub get_type: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
5659 pub serialize: Option<unsafe extern "C" fn(*mut GSocketControlMessage, gpointer)>,
5660 pub deserialize:
5661 Option<unsafe extern "C" fn(c_int, c_int, size_t, gpointer) -> *mut GSocketControlMessage>,
5662 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5663 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5664 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5665 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5666 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5667}
5668
5669impl ::std::fmt::Debug for GSocketControlMessageClass {
5670 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5671 f.debug_struct(&format!(
5672 "GSocketControlMessageClass @ {:?}",
5673 self as *const _
5674 ))
5675 .field("parent_class", &self.parent_class)
5676 .field("get_size", &self.get_size)
5677 .field("get_level", &self.get_level)
5678 .field("get_type", &self.get_type)
5679 .field("serialize", &self.serialize)
5680 .field("deserialize", &self.deserialize)
5681 .field("_g_reserved1", &self._g_reserved1)
5682 .field("_g_reserved2", &self._g_reserved2)
5683 .field("_g_reserved3", &self._g_reserved3)
5684 .field("_g_reserved4", &self._g_reserved4)
5685 .field("_g_reserved5", &self._g_reserved5)
5686 .finish()
5687 }
5688}
5689
5690#[repr(C)]
5691pub struct _GSocketControlMessagePrivate(c_void);
5692
5693pub type GSocketControlMessagePrivate = *mut _GSocketControlMessagePrivate;
5694
5695#[repr(C)]
5696#[derive(Copy, Clone)]
5697pub struct GSocketListenerClass {
5698 pub parent_class: gobject::GObjectClass,
5699 pub changed: Option<unsafe extern "C" fn(*mut GSocketListener)>,
5700 pub event:
5701 Option<unsafe extern "C" fn(*mut GSocketListener, GSocketListenerEvent, *mut GSocket)>,
5702 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5703 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5704 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5705 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5706 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5707}
5708
5709impl ::std::fmt::Debug for GSocketListenerClass {
5710 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5711 f.debug_struct(&format!("GSocketListenerClass @ {:?}", self as *const _))
5712 .field("parent_class", &self.parent_class)
5713 .field("changed", &self.changed)
5714 .field("event", &self.event)
5715 .field("_g_reserved2", &self._g_reserved2)
5716 .field("_g_reserved3", &self._g_reserved3)
5717 .field("_g_reserved4", &self._g_reserved4)
5718 .field("_g_reserved5", &self._g_reserved5)
5719 .field("_g_reserved6", &self._g_reserved6)
5720 .finish()
5721 }
5722}
5723
5724#[repr(C)]
5725pub struct _GSocketListenerPrivate(c_void);
5726
5727pub type GSocketListenerPrivate = *mut _GSocketListenerPrivate;
5728
5729#[repr(C)]
5730pub struct _GSocketPrivate(c_void);
5731
5732pub type GSocketPrivate = *mut _GSocketPrivate;
5733
5734#[repr(C)]
5735#[derive(Copy, Clone)]
5736pub struct GSocketServiceClass {
5737 pub parent_class: GSocketListenerClass,
5738 pub incoming: Option<
5739 unsafe extern "C" fn(
5740 *mut GSocketService,
5741 *mut GSocketConnection,
5742 *mut gobject::GObject,
5743 ) -> gboolean,
5744 >,
5745 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5746 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5747 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5748 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5749 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5750 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5751}
5752
5753impl ::std::fmt::Debug for GSocketServiceClass {
5754 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5755 f.debug_struct(&format!("GSocketServiceClass @ {:?}", self as *const _))
5756 .field("parent_class", &self.parent_class)
5757 .field("incoming", &self.incoming)
5758 .field("_g_reserved1", &self._g_reserved1)
5759 .field("_g_reserved2", &self._g_reserved2)
5760 .field("_g_reserved3", &self._g_reserved3)
5761 .field("_g_reserved4", &self._g_reserved4)
5762 .field("_g_reserved5", &self._g_reserved5)
5763 .field("_g_reserved6", &self._g_reserved6)
5764 .finish()
5765 }
5766}
5767
5768#[repr(C)]
5769pub struct _GSocketServicePrivate(c_void);
5770
5771pub type GSocketServicePrivate = *mut _GSocketServicePrivate;
5772
5773#[repr(C)]
5774pub struct GSrvTarget(c_void);
5775
5776impl ::std::fmt::Debug for GSrvTarget {
5777 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5778 f.debug_struct(&format!("GSrvTarget @ {:?}", self as *const _))
5779 .finish()
5780 }
5781}
5782
5783#[repr(C)]
5784#[derive(Copy, Clone)]
5785pub struct GStaticResource {
5786 pub data: *const u8,
5787 pub data_len: size_t,
5788 pub resource: *mut GResource,
5789 pub next: *mut GStaticResource,
5790 pub padding: gpointer,
5791}
5792
5793impl ::std::fmt::Debug for GStaticResource {
5794 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5795 f.debug_struct(&format!("GStaticResource @ {:?}", self as *const _))
5796 .finish()
5797 }
5798}
5799
5800#[repr(C)]
5801pub struct _GTaskClass(c_void);
5802
5803pub type GTaskClass = *mut _GTaskClass;
5804
5805#[repr(C)]
5806#[derive(Copy, Clone)]
5807pub struct GTcpConnectionClass {
5808 pub parent_class: GSocketConnectionClass,
5809}
5810
5811impl ::std::fmt::Debug for GTcpConnectionClass {
5812 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5813 f.debug_struct(&format!("GTcpConnectionClass @ {:?}", self as *const _))
5814 .field("parent_class", &self.parent_class)
5815 .finish()
5816 }
5817}
5818
5819#[repr(C)]
5820pub struct _GTcpConnectionPrivate(c_void);
5821
5822pub type GTcpConnectionPrivate = *mut _GTcpConnectionPrivate;
5823
5824#[repr(C)]
5825#[derive(Copy, Clone)]
5826pub struct GTcpWrapperConnectionClass {
5827 pub parent_class: GTcpConnectionClass,
5828}
5829
5830impl ::std::fmt::Debug for GTcpWrapperConnectionClass {
5831 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5832 f.debug_struct(&format!(
5833 "GTcpWrapperConnectionClass @ {:?}",
5834 self as *const _
5835 ))
5836 .field("parent_class", &self.parent_class)
5837 .finish()
5838 }
5839}
5840
5841#[repr(C)]
5842pub struct _GTcpWrapperConnectionPrivate(c_void);
5843
5844pub type GTcpWrapperConnectionPrivate = *mut _GTcpWrapperConnectionPrivate;
5845
5846#[repr(C)]
5847pub struct _GThemedIconClass(c_void);
5848
5849pub type GThemedIconClass = *mut _GThemedIconClass;
5850
5851#[repr(C)]
5852#[derive(Copy, Clone)]
5853pub struct GThreadedSocketServiceClass {
5854 pub parent_class: GSocketServiceClass,
5855 pub run: Option<
5856 unsafe extern "C" fn(
5857 *mut GThreadedSocketService,
5858 *mut GSocketConnection,
5859 *mut gobject::GObject,
5860 ) -> gboolean,
5861 >,
5862 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5863 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5864 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5865 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5866 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5867}
5868
5869impl ::std::fmt::Debug for GThreadedSocketServiceClass {
5870 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5871 f.debug_struct(&format!(
5872 "GThreadedSocketServiceClass @ {:?}",
5873 self as *const _
5874 ))
5875 .field("parent_class", &self.parent_class)
5876 .field("run", &self.run)
5877 .field("_g_reserved1", &self._g_reserved1)
5878 .field("_g_reserved2", &self._g_reserved2)
5879 .field("_g_reserved3", &self._g_reserved3)
5880 .field("_g_reserved4", &self._g_reserved4)
5881 .field("_g_reserved5", &self._g_reserved5)
5882 .finish()
5883 }
5884}
5885
5886#[repr(C)]
5887pub struct _GThreadedSocketServicePrivate(c_void);
5888
5889pub type GThreadedSocketServicePrivate = *mut _GThreadedSocketServicePrivate;
5890
5891#[repr(C)]
5892#[derive(Copy, Clone)]
5893pub struct GTlsBackendInterface {
5894 pub g_iface: gobject::GTypeInterface,
5895 pub supports_tls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
5896 pub get_certificate_type: Option<unsafe extern "C" fn() -> GType>,
5897 pub get_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
5898 pub get_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
5899 pub get_file_database_type: Option<unsafe extern "C" fn() -> GType>,
5900 pub get_default_database: Option<unsafe extern "C" fn(*mut GTlsBackend) -> *mut GTlsDatabase>,
5901 pub supports_dtls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
5902 pub get_dtls_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
5903 pub get_dtls_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
5904}
5905
5906impl ::std::fmt::Debug for GTlsBackendInterface {
5907 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5908 f.debug_struct(&format!("GTlsBackendInterface @ {:?}", self as *const _))
5909 .field("g_iface", &self.g_iface)
5910 .field("supports_tls", &self.supports_tls)
5911 .field("get_certificate_type", &self.get_certificate_type)
5912 .field(
5913 "get_client_connection_type",
5914 &self.get_client_connection_type,
5915 )
5916 .field(
5917 "get_server_connection_type",
5918 &self.get_server_connection_type,
5919 )
5920 .field("get_file_database_type", &self.get_file_database_type)
5921 .field("get_default_database", &self.get_default_database)
5922 .field("supports_dtls", &self.supports_dtls)
5923 .field(
5924 "get_dtls_client_connection_type",
5925 &self.get_dtls_client_connection_type,
5926 )
5927 .field(
5928 "get_dtls_server_connection_type",
5929 &self.get_dtls_server_connection_type,
5930 )
5931 .finish()
5932 }
5933}
5934
5935#[repr(C)]
5936#[derive(Copy, Clone)]
5937pub struct GTlsCertificateClass {
5938 pub parent_class: gobject::GObjectClass,
5939 pub verify: Option<
5940 unsafe extern "C" fn(
5941 *mut GTlsCertificate,
5942 *mut GSocketConnectable,
5943 *mut GTlsCertificate,
5944 ) -> GTlsCertificateFlags,
5945 >,
5946 pub padding: [gpointer; 8],
5947}
5948
5949impl ::std::fmt::Debug for GTlsCertificateClass {
5950 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5951 f.debug_struct(&format!("GTlsCertificateClass @ {:?}", self as *const _))
5952 .field("parent_class", &self.parent_class)
5953 .field("verify", &self.verify)
5954 .finish()
5955 }
5956}
5957
5958#[repr(C)]
5959pub struct _GTlsCertificatePrivate(c_void);
5960
5961pub type GTlsCertificatePrivate = *mut _GTlsCertificatePrivate;
5962
5963#[repr(C)]
5964#[derive(Copy, Clone)]
5965pub struct GTlsClientConnectionInterface {
5966 pub g_iface: gobject::GTypeInterface,
5967 pub copy_session_state:
5968 Option<unsafe extern "C" fn(*mut GTlsClientConnection, *mut GTlsClientConnection)>,
5969}
5970
5971impl ::std::fmt::Debug for GTlsClientConnectionInterface {
5972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5973 f.debug_struct(&format!(
5974 "GTlsClientConnectionInterface @ {:?}",
5975 self as *const _
5976 ))
5977 .field("g_iface", &self.g_iface)
5978 .field("copy_session_state", &self.copy_session_state)
5979 .finish()
5980 }
5981}
5982
5983#[repr(C)]
5984#[derive(Copy, Clone)]
5985pub struct GTlsConnectionClass {
5986 pub parent_class: GIOStreamClass,
5987 pub accept_certificate: Option<
5988 unsafe extern "C" fn(
5989 *mut GTlsConnection,
5990 *mut GTlsCertificate,
5991 GTlsCertificateFlags,
5992 ) -> gboolean,
5993 >,
5994 pub handshake: Option<
5995 unsafe extern "C" fn(
5996 *mut GTlsConnection,
5997 *mut GCancellable,
5998 *mut *mut glib::GError,
5999 ) -> gboolean,
6000 >,
6001 pub handshake_async: Option<
6002 unsafe extern "C" fn(
6003 *mut GTlsConnection,
6004 c_int,
6005 *mut GCancellable,
6006 GAsyncReadyCallback,
6007 gpointer,
6008 ),
6009 >,
6010 pub handshake_finish: Option<
6011 unsafe extern "C" fn(
6012 *mut GTlsConnection,
6013 *mut GAsyncResult,
6014 *mut *mut glib::GError,
6015 ) -> gboolean,
6016 >,
6017 pub padding: [gpointer; 8],
6018}
6019
6020impl ::std::fmt::Debug for GTlsConnectionClass {
6021 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6022 f.debug_struct(&format!("GTlsConnectionClass @ {:?}", self as *const _))
6023 .field("parent_class", &self.parent_class)
6024 .field("accept_certificate", &self.accept_certificate)
6025 .field("handshake", &self.handshake)
6026 .field("handshake_async", &self.handshake_async)
6027 .field("handshake_finish", &self.handshake_finish)
6028 .finish()
6029 }
6030}
6031
6032#[repr(C)]
6033pub struct _GTlsConnectionPrivate(c_void);
6034
6035pub type GTlsConnectionPrivate = *mut _GTlsConnectionPrivate;
6036
6037#[repr(C)]
6038#[derive(Copy, Clone)]
6039pub struct GTlsDatabaseClass {
6040 pub parent_class: gobject::GObjectClass,
6041 pub verify_chain: Option<
6042 unsafe extern "C" fn(
6043 *mut GTlsDatabase,
6044 *mut GTlsCertificate,
6045 *const c_char,
6046 *mut GSocketConnectable,
6047 *mut GTlsInteraction,
6048 GTlsDatabaseVerifyFlags,
6049 *mut GCancellable,
6050 *mut *mut glib::GError,
6051 ) -> GTlsCertificateFlags,
6052 >,
6053 pub verify_chain_async: Option<
6054 unsafe extern "C" fn(
6055 *mut GTlsDatabase,
6056 *mut GTlsCertificate,
6057 *const c_char,
6058 *mut GSocketConnectable,
6059 *mut GTlsInteraction,
6060 GTlsDatabaseVerifyFlags,
6061 *mut GCancellable,
6062 GAsyncReadyCallback,
6063 gpointer,
6064 ),
6065 >,
6066 pub verify_chain_finish: Option<
6067 unsafe extern "C" fn(
6068 *mut GTlsDatabase,
6069 *mut GAsyncResult,
6070 *mut *mut glib::GError,
6071 ) -> GTlsCertificateFlags,
6072 >,
6073 pub create_certificate_handle:
6074 Option<unsafe extern "C" fn(*mut GTlsDatabase, *mut GTlsCertificate) -> *mut c_char>,
6075 pub lookup_certificate_for_handle: Option<
6076 unsafe extern "C" fn(
6077 *mut GTlsDatabase,
6078 *const c_char,
6079 *mut GTlsInteraction,
6080 GTlsDatabaseLookupFlags,
6081 *mut GCancellable,
6082 *mut *mut glib::GError,
6083 ) -> *mut GTlsCertificate,
6084 >,
6085 pub lookup_certificate_for_handle_async: Option<
6086 unsafe extern "C" fn(
6087 *mut GTlsDatabase,
6088 *const c_char,
6089 *mut GTlsInteraction,
6090 GTlsDatabaseLookupFlags,
6091 *mut GCancellable,
6092 GAsyncReadyCallback,
6093 gpointer,
6094 ),
6095 >,
6096 pub lookup_certificate_for_handle_finish: Option<
6097 unsafe extern "C" fn(
6098 *mut GTlsDatabase,
6099 *mut GAsyncResult,
6100 *mut *mut glib::GError,
6101 ) -> *mut GTlsCertificate,
6102 >,
6103 pub lookup_certificate_issuer: Option<
6104 unsafe extern "C" fn(
6105 *mut GTlsDatabase,
6106 *mut GTlsCertificate,
6107 *mut GTlsInteraction,
6108 GTlsDatabaseLookupFlags,
6109 *mut GCancellable,
6110 *mut *mut glib::GError,
6111 ) -> *mut GTlsCertificate,
6112 >,
6113 pub lookup_certificate_issuer_async: Option<
6114 unsafe extern "C" fn(
6115 *mut GTlsDatabase,
6116 *mut GTlsCertificate,
6117 *mut GTlsInteraction,
6118 GTlsDatabaseLookupFlags,
6119 *mut GCancellable,
6120 GAsyncReadyCallback,
6121 gpointer,
6122 ),
6123 >,
6124 pub lookup_certificate_issuer_finish: Option<
6125 unsafe extern "C" fn(
6126 *mut GTlsDatabase,
6127 *mut GAsyncResult,
6128 *mut *mut glib::GError,
6129 ) -> *mut GTlsCertificate,
6130 >,
6131 pub lookup_certificates_issued_by: Option<
6132 unsafe extern "C" fn(
6133 *mut GTlsDatabase,
6134 *mut glib::GByteArray,
6135 *mut GTlsInteraction,
6136 GTlsDatabaseLookupFlags,
6137 *mut GCancellable,
6138 *mut *mut glib::GError,
6139 ) -> *mut glib::GList,
6140 >,
6141 pub lookup_certificates_issued_by_async: Option<
6142 unsafe extern "C" fn(
6143 *mut GTlsDatabase,
6144 *mut glib::GByteArray,
6145 *mut GTlsInteraction,
6146 GTlsDatabaseLookupFlags,
6147 *mut GCancellable,
6148 GAsyncReadyCallback,
6149 gpointer,
6150 ),
6151 >,
6152 pub lookup_certificates_issued_by_finish: Option<
6153 unsafe extern "C" fn(
6154 *mut GTlsDatabase,
6155 *mut GAsyncResult,
6156 *mut *mut glib::GError,
6157 ) -> *mut glib::GList,
6158 >,
6159 pub padding: [gpointer; 16],
6160}
6161
6162impl ::std::fmt::Debug for GTlsDatabaseClass {
6163 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6164 f.debug_struct(&format!("GTlsDatabaseClass @ {:?}", self as *const _))
6165 .field("parent_class", &self.parent_class)
6166 .field("verify_chain", &self.verify_chain)
6167 .field("verify_chain_async", &self.verify_chain_async)
6168 .field("verify_chain_finish", &self.verify_chain_finish)
6169 .field("create_certificate_handle", &self.create_certificate_handle)
6170 .field(
6171 "lookup_certificate_for_handle",
6172 &self.lookup_certificate_for_handle,
6173 )
6174 .field(
6175 "lookup_certificate_for_handle_async",
6176 &self.lookup_certificate_for_handle_async,
6177 )
6178 .field(
6179 "lookup_certificate_for_handle_finish",
6180 &self.lookup_certificate_for_handle_finish,
6181 )
6182 .field("lookup_certificate_issuer", &self.lookup_certificate_issuer)
6183 .field(
6184 "lookup_certificate_issuer_async",
6185 &self.lookup_certificate_issuer_async,
6186 )
6187 .field(
6188 "lookup_certificate_issuer_finish",
6189 &self.lookup_certificate_issuer_finish,
6190 )
6191 .field(
6192 "lookup_certificates_issued_by",
6193 &self.lookup_certificates_issued_by,
6194 )
6195 .field(
6196 "lookup_certificates_issued_by_async",
6197 &self.lookup_certificates_issued_by_async,
6198 )
6199 .field(
6200 "lookup_certificates_issued_by_finish",
6201 &self.lookup_certificates_issued_by_finish,
6202 )
6203 .finish()
6204 }
6205}
6206
6207#[repr(C)]
6208pub struct _GTlsDatabasePrivate(c_void);
6209
6210pub type GTlsDatabasePrivate = *mut _GTlsDatabasePrivate;
6211
6212#[repr(C)]
6213#[derive(Copy, Clone)]
6214pub struct GTlsFileDatabaseInterface {
6215 pub g_iface: gobject::GTypeInterface,
6216 pub padding: [gpointer; 8],
6217}
6218
6219impl ::std::fmt::Debug for GTlsFileDatabaseInterface {
6220 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6221 f.debug_struct(&format!(
6222 "GTlsFileDatabaseInterface @ {:?}",
6223 self as *const _
6224 ))
6225 .field("g_iface", &self.g_iface)
6226 .finish()
6227 }
6228}
6229
6230#[repr(C)]
6231#[derive(Copy, Clone)]
6232pub struct GTlsInteractionClass {
6233 pub parent_class: gobject::GObjectClass,
6234 pub ask_password: Option<
6235 unsafe extern "C" fn(
6236 *mut GTlsInteraction,
6237 *mut GTlsPassword,
6238 *mut GCancellable,
6239 *mut *mut glib::GError,
6240 ) -> GTlsInteractionResult,
6241 >,
6242 pub ask_password_async: Option<
6243 unsafe extern "C" fn(
6244 *mut GTlsInteraction,
6245 *mut GTlsPassword,
6246 *mut GCancellable,
6247 GAsyncReadyCallback,
6248 gpointer,
6249 ),
6250 >,
6251 pub ask_password_finish: Option<
6252 unsafe extern "C" fn(
6253 *mut GTlsInteraction,
6254 *mut GAsyncResult,
6255 *mut *mut glib::GError,
6256 ) -> GTlsInteractionResult,
6257 >,
6258 pub request_certificate: Option<
6259 unsafe extern "C" fn(
6260 *mut GTlsInteraction,
6261 *mut GTlsConnection,
6262 GTlsCertificateRequestFlags,
6263 *mut GCancellable,
6264 *mut *mut glib::GError,
6265 ) -> GTlsInteractionResult,
6266 >,
6267 pub request_certificate_async: Option<
6268 unsafe extern "C" fn(
6269 *mut GTlsInteraction,
6270 *mut GTlsConnection,
6271 GTlsCertificateRequestFlags,
6272 *mut GCancellable,
6273 GAsyncReadyCallback,
6274 gpointer,
6275 ),
6276 >,
6277 pub request_certificate_finish: Option<
6278 unsafe extern "C" fn(
6279 *mut GTlsInteraction,
6280 *mut GAsyncResult,
6281 *mut *mut glib::GError,
6282 ) -> GTlsInteractionResult,
6283 >,
6284 pub padding: [gpointer; 21],
6285}
6286
6287impl ::std::fmt::Debug for GTlsInteractionClass {
6288 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6289 f.debug_struct(&format!("GTlsInteractionClass @ {:?}", self as *const _))
6290 .field("ask_password", &self.ask_password)
6291 .field("ask_password_async", &self.ask_password_async)
6292 .field("ask_password_finish", &self.ask_password_finish)
6293 .field("request_certificate", &self.request_certificate)
6294 .field("request_certificate_async", &self.request_certificate_async)
6295 .field(
6296 "request_certificate_finish",
6297 &self.request_certificate_finish,
6298 )
6299 .finish()
6300 }
6301}
6302
6303#[repr(C)]
6304pub struct _GTlsInteractionPrivate(c_void);
6305
6306pub type GTlsInteractionPrivate = *mut _GTlsInteractionPrivate;
6307
6308#[repr(C)]
6309#[derive(Copy, Clone)]
6310pub struct GTlsPasswordClass {
6311 pub parent_class: gobject::GObjectClass,
6312 pub get_value: Option<unsafe extern "C" fn(*mut GTlsPassword, *mut size_t) -> *const u8>,
6313 pub set_value:
6314 Option<unsafe extern "C" fn(*mut GTlsPassword, *mut u8, ssize_t, glib::GDestroyNotify)>,
6315 pub get_default_warning: Option<unsafe extern "C" fn(*mut GTlsPassword) -> *const c_char>,
6316 pub padding: [gpointer; 4],
6317}
6318
6319impl ::std::fmt::Debug for GTlsPasswordClass {
6320 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6321 f.debug_struct(&format!("GTlsPasswordClass @ {:?}", self as *const _))
6322 .field("parent_class", &self.parent_class)
6323 .field("get_value", &self.get_value)
6324 .field("set_value", &self.set_value)
6325 .field("get_default_warning", &self.get_default_warning)
6326 .finish()
6327 }
6328}
6329
6330#[repr(C)]
6331pub struct _GTlsPasswordPrivate(c_void);
6332
6333pub type GTlsPasswordPrivate = *mut _GTlsPasswordPrivate;
6334
6335#[repr(C)]
6336#[derive(Copy, Clone)]
6337pub struct GTlsServerConnectionInterface {
6338 pub g_iface: gobject::GTypeInterface,
6339}
6340
6341impl ::std::fmt::Debug for GTlsServerConnectionInterface {
6342 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6343 f.debug_struct(&format!(
6344 "GTlsServerConnectionInterface @ {:?}",
6345 self as *const _
6346 ))
6347 .field("g_iface", &self.g_iface)
6348 .finish()
6349 }
6350}
6351
6352#[repr(C)]
6353#[derive(Copy, Clone)]
6354pub struct GUnixConnectionClass {
6355 pub parent_class: GSocketConnectionClass,
6356}
6357
6358impl ::std::fmt::Debug for GUnixConnectionClass {
6359 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6360 f.debug_struct(&format!("GUnixConnectionClass @ {:?}", self as *const _))
6361 .field("parent_class", &self.parent_class)
6362 .finish()
6363 }
6364}
6365
6366#[repr(C)]
6367pub struct _GUnixConnectionPrivate(c_void);
6368
6369pub type GUnixConnectionPrivate = *mut _GUnixConnectionPrivate;
6370
6371#[repr(C)]
6372#[derive(Copy, Clone)]
6373pub struct GUnixCredentialsMessageClass {
6374 pub parent_class: GSocketControlMessageClass,
6375 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6376 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6377}
6378
6379impl ::std::fmt::Debug for GUnixCredentialsMessageClass {
6380 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6381 f.debug_struct(&format!(
6382 "GUnixCredentialsMessageClass @ {:?}",
6383 self as *const _
6384 ))
6385 .field("parent_class", &self.parent_class)
6386 .field("_g_reserved1", &self._g_reserved1)
6387 .field("_g_reserved2", &self._g_reserved2)
6388 .finish()
6389 }
6390}
6391
6392#[repr(C)]
6393pub struct _GUnixCredentialsMessagePrivate(c_void);
6394
6395pub type GUnixCredentialsMessagePrivate = *mut _GUnixCredentialsMessagePrivate;
6396
6397#[repr(C)]
6398#[derive(Copy, Clone)]
6399pub struct GUnixFDListClass {
6400 pub parent_class: gobject::GObjectClass,
6401 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6402 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6403 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6404 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6405 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6406}
6407
6408impl ::std::fmt::Debug for GUnixFDListClass {
6409 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6410 f.debug_struct(&format!("GUnixFDListClass @ {:?}", self as *const _))
6411 .field("parent_class", &self.parent_class)
6412 .field("_g_reserved1", &self._g_reserved1)
6413 .field("_g_reserved2", &self._g_reserved2)
6414 .field("_g_reserved3", &self._g_reserved3)
6415 .field("_g_reserved4", &self._g_reserved4)
6416 .field("_g_reserved5", &self._g_reserved5)
6417 .finish()
6418 }
6419}
6420
6421#[repr(C)]
6422pub struct _GUnixFDListPrivate(c_void);
6423
6424pub type GUnixFDListPrivate = *mut _GUnixFDListPrivate;
6425
6426#[repr(C)]
6427#[derive(Copy, Clone)]
6428pub struct GUnixFDMessageClass {
6429 pub parent_class: GSocketControlMessageClass,
6430 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6431 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6432}
6433
6434impl ::std::fmt::Debug for GUnixFDMessageClass {
6435 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6436 f.debug_struct(&format!("GUnixFDMessageClass @ {:?}", self as *const _))
6437 .field("parent_class", &self.parent_class)
6438 .field("_g_reserved1", &self._g_reserved1)
6439 .field("_g_reserved2", &self._g_reserved2)
6440 .finish()
6441 }
6442}
6443
6444#[repr(C)]
6445pub struct _GUnixFDMessagePrivate(c_void);
6446
6447pub type GUnixFDMessagePrivate = *mut _GUnixFDMessagePrivate;
6448
6449#[repr(C)]
6450#[derive(Copy, Clone)]
6451pub struct GUnixInputStreamClass {
6452 pub parent_class: GInputStreamClass,
6453 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6454 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6455 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6456 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6457 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6458}
6459
6460impl ::std::fmt::Debug for GUnixInputStreamClass {
6461 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6462 f.debug_struct(&format!("GUnixInputStreamClass @ {:?}", self as *const _))
6463 .field("parent_class", &self.parent_class)
6464 .field("_g_reserved1", &self._g_reserved1)
6465 .field("_g_reserved2", &self._g_reserved2)
6466 .field("_g_reserved3", &self._g_reserved3)
6467 .field("_g_reserved4", &self._g_reserved4)
6468 .field("_g_reserved5", &self._g_reserved5)
6469 .finish()
6470 }
6471}
6472
6473#[repr(C)]
6474pub struct _GUnixInputStreamPrivate(c_void);
6475
6476pub type GUnixInputStreamPrivate = *mut _GUnixInputStreamPrivate;
6477
6478#[repr(C)]
6479pub struct GUnixMountEntry(c_void);
6480
6481impl ::std::fmt::Debug for GUnixMountEntry {
6482 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6483 f.debug_struct(&format!("GUnixMountEntry @ {:?}", self as *const _))
6484 .finish()
6485 }
6486}
6487
6488#[repr(C)]
6489pub struct _GUnixMountMonitorClass(c_void);
6490
6491pub type GUnixMountMonitorClass = *mut _GUnixMountMonitorClass;
6492
6493#[repr(C)]
6494pub struct GUnixMountPoint(c_void);
6495
6496impl ::std::fmt::Debug for GUnixMountPoint {
6497 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6498 f.debug_struct(&format!("GUnixMountPoint @ {:?}", self as *const _))
6499 .finish()
6500 }
6501}
6502
6503#[repr(C)]
6504#[derive(Copy, Clone)]
6505pub struct GUnixOutputStreamClass {
6506 pub parent_class: GOutputStreamClass,
6507 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6508 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6509 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6510 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6511 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6512}
6513
6514impl ::std::fmt::Debug for GUnixOutputStreamClass {
6515 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6516 f.debug_struct(&format!("GUnixOutputStreamClass @ {:?}", self as *const _))
6517 .field("parent_class", &self.parent_class)
6518 .field("_g_reserved1", &self._g_reserved1)
6519 .field("_g_reserved2", &self._g_reserved2)
6520 .field("_g_reserved3", &self._g_reserved3)
6521 .field("_g_reserved4", &self._g_reserved4)
6522 .field("_g_reserved5", &self._g_reserved5)
6523 .finish()
6524 }
6525}
6526
6527#[repr(C)]
6528pub struct _GUnixOutputStreamPrivate(c_void);
6529
6530pub type GUnixOutputStreamPrivate = *mut _GUnixOutputStreamPrivate;
6531
6532#[repr(C)]
6533#[derive(Copy, Clone)]
6534pub struct GUnixSocketAddressClass {
6535 pub parent_class: GSocketAddressClass,
6536}
6537
6538impl ::std::fmt::Debug for GUnixSocketAddressClass {
6539 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6540 f.debug_struct(&format!("GUnixSocketAddressClass @ {:?}", self as *const _))
6541 .field("parent_class", &self.parent_class)
6542 .finish()
6543 }
6544}
6545
6546#[repr(C)]
6547pub struct _GUnixSocketAddressPrivate(c_void);
6548
6549pub type GUnixSocketAddressPrivate = *mut _GUnixSocketAddressPrivate;
6550
6551#[repr(C)]
6552#[derive(Copy, Clone)]
6553pub struct GVfsClass {
6554 pub parent_class: gobject::GObjectClass,
6555 pub is_active: Option<unsafe extern "C" fn(*mut GVfs) -> gboolean>,
6556 pub get_file_for_path: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6557 pub get_file_for_uri: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6558 pub get_supported_uri_schemes: Option<unsafe extern "C" fn(*mut GVfs) -> *const *const c_char>,
6559 pub parse_name: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6560 pub local_file_add_info: Option<
6561 unsafe extern "C" fn(
6562 *mut GVfs,
6563 *const c_char,
6564 u64,
6565 *mut GFileAttributeMatcher,
6566 *mut GFileInfo,
6567 *mut GCancellable,
6568 *mut gpointer,
6569 *mut glib::GDestroyNotify,
6570 ),
6571 >,
6572 pub add_writable_namespaces:
6573 Option<unsafe extern "C" fn(*mut GVfs, *mut GFileAttributeInfoList)>,
6574 pub local_file_set_attributes: Option<
6575 unsafe extern "C" fn(
6576 *mut GVfs,
6577 *const c_char,
6578 *mut GFileInfo,
6579 GFileQueryInfoFlags,
6580 *mut GCancellable,
6581 *mut *mut glib::GError,
6582 ) -> gboolean,
6583 >,
6584 pub local_file_removed: Option<unsafe extern "C" fn(*mut GVfs, *const c_char)>,
6585 pub local_file_moved: Option<unsafe extern "C" fn(*mut GVfs, *const c_char, *const c_char)>,
6586 pub deserialize_icon:
6587 Option<unsafe extern "C" fn(*mut GVfs, *mut glib::GVariant) -> *mut GIcon>,
6588 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6589 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6590 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6591 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6592 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6593 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6594}
6595
6596impl ::std::fmt::Debug for GVfsClass {
6597 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6598 f.debug_struct(&format!("GVfsClass @ {:?}", self as *const _))
6599 .field("parent_class", &self.parent_class)
6600 .field("is_active", &self.is_active)
6601 .field("get_file_for_path", &self.get_file_for_path)
6602 .field("get_file_for_uri", &self.get_file_for_uri)
6603 .field("get_supported_uri_schemes", &self.get_supported_uri_schemes)
6604 .field("parse_name", &self.parse_name)
6605 .field("local_file_add_info", &self.local_file_add_info)
6606 .field("add_writable_namespaces", &self.add_writable_namespaces)
6607 .field("local_file_set_attributes", &self.local_file_set_attributes)
6608 .field("local_file_removed", &self.local_file_removed)
6609 .field("local_file_moved", &self.local_file_moved)
6610 .field("deserialize_icon", &self.deserialize_icon)
6611 .field("_g_reserved1", &self._g_reserved1)
6612 .field("_g_reserved2", &self._g_reserved2)
6613 .field("_g_reserved3", &self._g_reserved3)
6614 .field("_g_reserved4", &self._g_reserved4)
6615 .field("_g_reserved5", &self._g_reserved5)
6616 .field("_g_reserved6", &self._g_reserved6)
6617 .finish()
6618 }
6619}
6620
6621#[repr(C)]
6622#[derive(Copy, Clone)]
6623pub struct GVolumeIface {
6624 pub g_iface: gobject::GTypeInterface,
6625 pub changed: Option<unsafe extern "C" fn(*mut GVolume)>,
6626 pub removed: Option<unsafe extern "C" fn(*mut GVolume)>,
6627 pub get_name: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
6628 pub get_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
6629 pub get_uuid: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
6630 pub get_drive: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GDrive>,
6631 pub get_mount: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GMount>,
6632 pub can_mount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6633 pub can_eject: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6634 pub mount_fn: Option<
6635 unsafe extern "C" fn(
6636 *mut GVolume,
6637 GMountMountFlags,
6638 *mut GMountOperation,
6639 *mut GCancellable,
6640 GAsyncReadyCallback,
6641 gpointer,
6642 ),
6643 >,
6644 pub mount_finish: Option<
6645 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6646 >,
6647 pub eject: Option<
6648 unsafe extern "C" fn(
6649 *mut GVolume,
6650 GMountUnmountFlags,
6651 *mut GCancellable,
6652 GAsyncReadyCallback,
6653 gpointer,
6654 ),
6655 >,
6656 pub eject_finish: Option<
6657 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6658 >,
6659 pub get_identifier: Option<unsafe extern "C" fn(*mut GVolume, *const c_char) -> *mut c_char>,
6660 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GVolume) -> *mut *mut c_char>,
6661 pub should_automount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6662 pub get_activation_root: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GFile>,
6663 pub eject_with_operation: Option<
6664 unsafe extern "C" fn(
6665 *mut GVolume,
6666 GMountUnmountFlags,
6667 *mut GMountOperation,
6668 *mut GCancellable,
6669 GAsyncReadyCallback,
6670 gpointer,
6671 ),
6672 >,
6673 pub eject_with_operation_finish: Option<
6674 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6675 >,
6676 pub get_sort_key: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
6677 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
6678}
6679
6680impl ::std::fmt::Debug for GVolumeIface {
6681 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6682 f.debug_struct(&format!("GVolumeIface @ {:?}", self as *const _))
6683 .field("g_iface", &self.g_iface)
6684 .field("changed", &self.changed)
6685 .field("removed", &self.removed)
6686 .field("get_name", &self.get_name)
6687 .field("get_icon", &self.get_icon)
6688 .field("get_uuid", &self.get_uuid)
6689 .field("get_drive", &self.get_drive)
6690 .field("get_mount", &self.get_mount)
6691 .field("can_mount", &self.can_mount)
6692 .field("can_eject", &self.can_eject)
6693 .field("mount_fn", &self.mount_fn)
6694 .field("mount_finish", &self.mount_finish)
6695 .field("eject", &self.eject)
6696 .field("eject_finish", &self.eject_finish)
6697 .field("get_identifier", &self.get_identifier)
6698 .field("enumerate_identifiers", &self.enumerate_identifiers)
6699 .field("should_automount", &self.should_automount)
6700 .field("get_activation_root", &self.get_activation_root)
6701 .field("eject_with_operation", &self.eject_with_operation)
6702 .field(
6703 "eject_with_operation_finish",
6704 &self.eject_with_operation_finish,
6705 )
6706 .field("get_sort_key", &self.get_sort_key)
6707 .field("get_symbolic_icon", &self.get_symbolic_icon)
6708 .finish()
6709 }
6710}
6711
6712#[repr(C)]
6713#[derive(Copy, Clone)]
6714pub struct GVolumeMonitorClass {
6715 pub parent_class: gobject::GObjectClass,
6716 pub volume_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
6717 pub volume_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
6718 pub volume_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
6719 pub mount_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
6720 pub mount_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
6721 pub mount_pre_unmount: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
6722 pub mount_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
6723 pub drive_connected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
6724 pub drive_disconnected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
6725 pub drive_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
6726 pub is_supported: Option<unsafe extern "C" fn() -> gboolean>,
6727 pub get_connected_drives: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
6728 pub get_volumes: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
6729 pub get_mounts: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
6730 pub get_volume_for_uuid:
6731 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GVolume>,
6732 pub get_mount_for_uuid:
6733 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GMount>,
6734 pub adopt_orphan_mount:
6735 Option<unsafe extern "C" fn(*mut GMount, *mut GVolumeMonitor) -> *mut GVolume>,
6736 pub drive_eject_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
6737 pub drive_stop_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
6738 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6739 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6740 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6741 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6742 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6743 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6744}
6745
6746impl ::std::fmt::Debug for GVolumeMonitorClass {
6747 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6748 f.debug_struct(&format!("GVolumeMonitorClass @ {:?}", self as *const _))
6749 .field("parent_class", &self.parent_class)
6750 .field("volume_added", &self.volume_added)
6751 .field("volume_removed", &self.volume_removed)
6752 .field("volume_changed", &self.volume_changed)
6753 .field("mount_added", &self.mount_added)
6754 .field("mount_removed", &self.mount_removed)
6755 .field("mount_pre_unmount", &self.mount_pre_unmount)
6756 .field("mount_changed", &self.mount_changed)
6757 .field("drive_connected", &self.drive_connected)
6758 .field("drive_disconnected", &self.drive_disconnected)
6759 .field("drive_changed", &self.drive_changed)
6760 .field("is_supported", &self.is_supported)
6761 .field("get_connected_drives", &self.get_connected_drives)
6762 .field("get_volumes", &self.get_volumes)
6763 .field("get_mounts", &self.get_mounts)
6764 .field("get_volume_for_uuid", &self.get_volume_for_uuid)
6765 .field("get_mount_for_uuid", &self.get_mount_for_uuid)
6766 .field("adopt_orphan_mount", &self.adopt_orphan_mount)
6767 .field("drive_eject_button", &self.drive_eject_button)
6768 .field("drive_stop_button", &self.drive_stop_button)
6769 .field("_g_reserved1", &self._g_reserved1)
6770 .field("_g_reserved2", &self._g_reserved2)
6771 .field("_g_reserved3", &self._g_reserved3)
6772 .field("_g_reserved4", &self._g_reserved4)
6773 .field("_g_reserved5", &self._g_reserved5)
6774 .field("_g_reserved6", &self._g_reserved6)
6775 .finish()
6776 }
6777}
6778
6779#[repr(C)]
6780#[derive(Copy, Clone)]
6781pub struct GZlibCompressorClass {
6782 pub parent_class: gobject::GObjectClass,
6783}
6784
6785impl ::std::fmt::Debug for GZlibCompressorClass {
6786 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6787 f.debug_struct(&format!("GZlibCompressorClass @ {:?}", self as *const _))
6788 .field("parent_class", &self.parent_class)
6789 .finish()
6790 }
6791}
6792
6793#[repr(C)]
6794#[derive(Copy, Clone)]
6795pub struct GZlibDecompressorClass {
6796 pub parent_class: gobject::GObjectClass,
6797}
6798
6799impl ::std::fmt::Debug for GZlibDecompressorClass {
6800 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6801 f.debug_struct(&format!("GZlibDecompressorClass @ {:?}", self as *const _))
6802 .field("parent_class", &self.parent_class)
6803 .finish()
6804 }
6805}
6806
6807#[repr(C)]
6809pub struct GAppInfoMonitor(c_void);
6810
6811impl ::std::fmt::Debug for GAppInfoMonitor {
6812 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6813 f.debug_struct(&format!("GAppInfoMonitor @ {:?}", self as *const _))
6814 .finish()
6815 }
6816}
6817
6818#[repr(C)]
6819#[derive(Copy, Clone)]
6820pub struct GAppLaunchContext {
6821 pub parent_instance: gobject::GObject,
6822 pub priv_: *mut GAppLaunchContextPrivate,
6823}
6824
6825impl ::std::fmt::Debug for GAppLaunchContext {
6826 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6827 f.debug_struct(&format!("GAppLaunchContext @ {:?}", self as *const _))
6828 .field("parent_instance", &self.parent_instance)
6829 .finish()
6830 }
6831}
6832
6833#[repr(C)]
6834#[derive(Copy, Clone)]
6835pub struct GApplication {
6836 pub parent_instance: gobject::GObject,
6837 pub priv_: *mut GApplicationPrivate,
6838}
6839
6840impl ::std::fmt::Debug for GApplication {
6841 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6842 f.debug_struct(&format!("GApplication @ {:?}", self as *const _))
6843 .finish()
6844 }
6845}
6846
6847#[repr(C)]
6848#[derive(Copy, Clone)]
6849pub struct GApplicationCommandLine {
6850 pub parent_instance: gobject::GObject,
6851 pub priv_: *mut GApplicationCommandLinePrivate,
6852}
6853
6854impl ::std::fmt::Debug for GApplicationCommandLine {
6855 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6856 f.debug_struct(&format!("GApplicationCommandLine @ {:?}", self as *const _))
6857 .finish()
6858 }
6859}
6860
6861#[repr(C)]
6862#[derive(Copy, Clone)]
6863pub struct GBufferedInputStream {
6864 pub parent_instance: GFilterInputStream,
6865 pub priv_: *mut GBufferedInputStreamPrivate,
6866}
6867
6868impl ::std::fmt::Debug for GBufferedInputStream {
6869 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6870 f.debug_struct(&format!("GBufferedInputStream @ {:?}", self as *const _))
6871 .field("parent_instance", &self.parent_instance)
6872 .finish()
6873 }
6874}
6875
6876#[repr(C)]
6877#[derive(Copy, Clone)]
6878pub struct GBufferedOutputStream {
6879 pub parent_instance: GFilterOutputStream,
6880 pub priv_: *mut GBufferedOutputStreamPrivate,
6881}
6882
6883impl ::std::fmt::Debug for GBufferedOutputStream {
6884 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6885 f.debug_struct(&format!("GBufferedOutputStream @ {:?}", self as *const _))
6886 .field("parent_instance", &self.parent_instance)
6887 .field("priv_", &self.priv_)
6888 .finish()
6889 }
6890}
6891
6892#[repr(C)]
6893pub struct GBytesIcon(c_void);
6894
6895impl ::std::fmt::Debug for GBytesIcon {
6896 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6897 f.debug_struct(&format!("GBytesIcon @ {:?}", self as *const _))
6898 .finish()
6899 }
6900}
6901
6902#[repr(C)]
6903#[derive(Copy, Clone)]
6904pub struct GCancellable {
6905 pub parent_instance: gobject::GObject,
6906 pub priv_: *mut GCancellablePrivate,
6907}
6908
6909impl ::std::fmt::Debug for GCancellable {
6910 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6911 f.debug_struct(&format!("GCancellable @ {:?}", self as *const _))
6912 .field("parent_instance", &self.parent_instance)
6913 .finish()
6914 }
6915}
6916
6917#[repr(C)]
6918pub struct GCharsetConverter(c_void);
6919
6920impl ::std::fmt::Debug for GCharsetConverter {
6921 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6922 f.debug_struct(&format!("GCharsetConverter @ {:?}", self as *const _))
6923 .finish()
6924 }
6925}
6926
6927#[repr(C)]
6928#[derive(Copy, Clone)]
6929pub struct GConverterInputStream {
6930 pub parent_instance: GFilterInputStream,
6931 pub priv_: *mut GConverterInputStreamPrivate,
6932}
6933
6934impl ::std::fmt::Debug for GConverterInputStream {
6935 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6936 f.debug_struct(&format!("GConverterInputStream @ {:?}", self as *const _))
6937 .field("parent_instance", &self.parent_instance)
6938 .finish()
6939 }
6940}
6941
6942#[repr(C)]
6943#[derive(Copy, Clone)]
6944pub struct GConverterOutputStream {
6945 pub parent_instance: GFilterOutputStream,
6946 pub priv_: *mut GConverterOutputStreamPrivate,
6947}
6948
6949impl ::std::fmt::Debug for GConverterOutputStream {
6950 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6951 f.debug_struct(&format!("GConverterOutputStream @ {:?}", self as *const _))
6952 .field("parent_instance", &self.parent_instance)
6953 .finish()
6954 }
6955}
6956
6957#[repr(C)]
6958pub struct GCredentials(c_void);
6959
6960impl ::std::fmt::Debug for GCredentials {
6961 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6962 f.debug_struct(&format!("GCredentials @ {:?}", self as *const _))
6963 .finish()
6964 }
6965}
6966
6967#[repr(C)]
6968pub struct GDBusActionGroup(c_void);
6969
6970impl ::std::fmt::Debug for GDBusActionGroup {
6971 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6972 f.debug_struct(&format!("GDBusActionGroup @ {:?}", self as *const _))
6973 .finish()
6974 }
6975}
6976
6977#[repr(C)]
6978pub struct GDBusAuthObserver(c_void);
6979
6980impl ::std::fmt::Debug for GDBusAuthObserver {
6981 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6982 f.debug_struct(&format!("GDBusAuthObserver @ {:?}", self as *const _))
6983 .finish()
6984 }
6985}
6986
6987#[repr(C)]
6988pub struct GDBusConnection(c_void);
6989
6990impl ::std::fmt::Debug for GDBusConnection {
6991 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6992 f.debug_struct(&format!("GDBusConnection @ {:?}", self as *const _))
6993 .finish()
6994 }
6995}
6996
6997#[repr(C)]
6998#[derive(Copy, Clone)]
6999pub struct GDBusInterfaceSkeleton {
7000 pub parent_instance: gobject::GObject,
7001 pub priv_: *mut GDBusInterfaceSkeletonPrivate,
7002}
7003
7004impl ::std::fmt::Debug for GDBusInterfaceSkeleton {
7005 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7006 f.debug_struct(&format!("GDBusInterfaceSkeleton @ {:?}", self as *const _))
7007 .finish()
7008 }
7009}
7010
7011#[repr(C)]
7012pub struct GDBusMenuModel(c_void);
7013
7014impl ::std::fmt::Debug for GDBusMenuModel {
7015 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7016 f.debug_struct(&format!("GDBusMenuModel @ {:?}", self as *const _))
7017 .finish()
7018 }
7019}
7020
7021#[repr(C)]
7022pub struct GDBusMessage(c_void);
7023
7024impl ::std::fmt::Debug for GDBusMessage {
7025 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7026 f.debug_struct(&format!("GDBusMessage @ {:?}", self as *const _))
7027 .finish()
7028 }
7029}
7030
7031#[repr(C)]
7032pub struct GDBusMethodInvocation(c_void);
7033
7034impl ::std::fmt::Debug for GDBusMethodInvocation {
7035 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7036 f.debug_struct(&format!("GDBusMethodInvocation @ {:?}", self as *const _))
7037 .finish()
7038 }
7039}
7040
7041#[repr(C)]
7042#[derive(Copy, Clone)]
7043pub struct GDBusObjectManagerClient {
7044 pub parent_instance: gobject::GObject,
7045 pub priv_: *mut GDBusObjectManagerClientPrivate,
7046}
7047
7048impl ::std::fmt::Debug for GDBusObjectManagerClient {
7049 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7050 f.debug_struct(&format!(
7051 "GDBusObjectManagerClient @ {:?}",
7052 self as *const _
7053 ))
7054 .finish()
7055 }
7056}
7057
7058#[repr(C)]
7059#[derive(Copy, Clone)]
7060pub struct GDBusObjectManagerServer {
7061 pub parent_instance: gobject::GObject,
7062 pub priv_: *mut GDBusObjectManagerServerPrivate,
7063}
7064
7065impl ::std::fmt::Debug for GDBusObjectManagerServer {
7066 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7067 f.debug_struct(&format!(
7068 "GDBusObjectManagerServer @ {:?}",
7069 self as *const _
7070 ))
7071 .finish()
7072 }
7073}
7074
7075#[repr(C)]
7076#[derive(Copy, Clone)]
7077pub struct GDBusObjectProxy {
7078 pub parent_instance: gobject::GObject,
7079 pub priv_: *mut GDBusObjectProxyPrivate,
7080}
7081
7082impl ::std::fmt::Debug for GDBusObjectProxy {
7083 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7084 f.debug_struct(&format!("GDBusObjectProxy @ {:?}", self as *const _))
7085 .finish()
7086 }
7087}
7088
7089#[repr(C)]
7090#[derive(Copy, Clone)]
7091pub struct GDBusObjectSkeleton {
7092 pub parent_instance: gobject::GObject,
7093 pub priv_: *mut GDBusObjectSkeletonPrivate,
7094}
7095
7096impl ::std::fmt::Debug for GDBusObjectSkeleton {
7097 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7098 f.debug_struct(&format!("GDBusObjectSkeleton @ {:?}", self as *const _))
7099 .finish()
7100 }
7101}
7102
7103#[repr(C)]
7104#[derive(Copy, Clone)]
7105pub struct GDBusProxy {
7106 pub parent_instance: gobject::GObject,
7107 pub priv_: *mut GDBusProxyPrivate,
7108}
7109
7110impl ::std::fmt::Debug for GDBusProxy {
7111 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7112 f.debug_struct(&format!("GDBusProxy @ {:?}", self as *const _))
7113 .finish()
7114 }
7115}
7116
7117#[repr(C)]
7118pub struct GDBusServer(c_void);
7119
7120impl ::std::fmt::Debug for GDBusServer {
7121 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7122 f.debug_struct(&format!("GDBusServer @ {:?}", self as *const _))
7123 .finish()
7124 }
7125}
7126
7127#[repr(C)]
7128#[derive(Copy, Clone)]
7129pub struct GDataInputStream {
7130 pub parent_instance: GBufferedInputStream,
7131 pub priv_: *mut GDataInputStreamPrivate,
7132}
7133
7134impl ::std::fmt::Debug for GDataInputStream {
7135 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7136 f.debug_struct(&format!("GDataInputStream @ {:?}", self as *const _))
7137 .field("parent_instance", &self.parent_instance)
7138 .finish()
7139 }
7140}
7141
7142#[repr(C)]
7143#[derive(Copy, Clone)]
7144pub struct GDataOutputStream {
7145 pub parent_instance: GFilterOutputStream,
7146 pub priv_: *mut GDataOutputStreamPrivate,
7147}
7148
7149impl ::std::fmt::Debug for GDataOutputStream {
7150 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7151 f.debug_struct(&format!("GDataOutputStream @ {:?}", self as *const _))
7152 .field("parent_instance", &self.parent_instance)
7153 .finish()
7154 }
7155}
7156
7157#[repr(C)]
7158pub struct GDesktopAppInfo(c_void);
7159
7160impl ::std::fmt::Debug for GDesktopAppInfo {
7161 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7162 f.debug_struct(&format!("GDesktopAppInfo @ {:?}", self as *const _))
7163 .finish()
7164 }
7165}
7166
7167#[repr(C)]
7168pub struct GEmblem(c_void);
7169
7170impl ::std::fmt::Debug for GEmblem {
7171 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7172 f.debug_struct(&format!("GEmblem @ {:?}", self as *const _))
7173 .finish()
7174 }
7175}
7176
7177#[repr(C)]
7178#[derive(Copy, Clone)]
7179pub struct GEmblemedIcon {
7180 pub parent_instance: gobject::GObject,
7181 pub priv_: *mut GEmblemedIconPrivate,
7182}
7183
7184impl ::std::fmt::Debug for GEmblemedIcon {
7185 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7186 f.debug_struct(&format!("GEmblemedIcon @ {:?}", self as *const _))
7187 .field("parent_instance", &self.parent_instance)
7188 .finish()
7189 }
7190}
7191
7192#[repr(C)]
7193#[derive(Copy, Clone)]
7194pub struct GFileEnumerator {
7195 pub parent_instance: gobject::GObject,
7196 pub priv_: *mut GFileEnumeratorPrivate,
7197}
7198
7199impl ::std::fmt::Debug for GFileEnumerator {
7200 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7201 f.debug_struct(&format!("GFileEnumerator @ {:?}", self as *const _))
7202 .field("parent_instance", &self.parent_instance)
7203 .finish()
7204 }
7205}
7206
7207#[repr(C)]
7208#[derive(Copy, Clone)]
7209pub struct GFileIOStream {
7210 pub parent_instance: GIOStream,
7211 pub priv_: *mut GFileIOStreamPrivate,
7212}
7213
7214impl ::std::fmt::Debug for GFileIOStream {
7215 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7216 f.debug_struct(&format!("GFileIOStream @ {:?}", self as *const _))
7217 .field("parent_instance", &self.parent_instance)
7218 .finish()
7219 }
7220}
7221
7222#[repr(C)]
7223pub struct GFileIcon(c_void);
7224
7225impl ::std::fmt::Debug for GFileIcon {
7226 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7227 f.debug_struct(&format!("GFileIcon @ {:?}", self as *const _))
7228 .finish()
7229 }
7230}
7231
7232#[repr(C)]
7233pub struct GFileInfo(c_void);
7234
7235impl ::std::fmt::Debug for GFileInfo {
7236 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7237 f.debug_struct(&format!("GFileInfo @ {:?}", self as *const _))
7238 .finish()
7239 }
7240}
7241
7242#[repr(C)]
7243#[derive(Copy, Clone)]
7244pub struct GFileInputStream {
7245 pub parent_instance: GInputStream,
7246 pub priv_: *mut GFileInputStreamPrivate,
7247}
7248
7249impl ::std::fmt::Debug for GFileInputStream {
7250 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7251 f.debug_struct(&format!("GFileInputStream @ {:?}", self as *const _))
7252 .field("parent_instance", &self.parent_instance)
7253 .finish()
7254 }
7255}
7256
7257#[repr(C)]
7258#[derive(Copy, Clone)]
7259pub struct GFileMonitor {
7260 pub parent_instance: gobject::GObject,
7261 pub priv_: *mut GFileMonitorPrivate,
7262}
7263
7264impl ::std::fmt::Debug for GFileMonitor {
7265 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7266 f.debug_struct(&format!("GFileMonitor @ {:?}", self as *const _))
7267 .field("parent_instance", &self.parent_instance)
7268 .finish()
7269 }
7270}
7271
7272#[repr(C)]
7273#[derive(Copy, Clone)]
7274pub struct GFileOutputStream {
7275 pub parent_instance: GOutputStream,
7276 pub priv_: *mut GFileOutputStreamPrivate,
7277}
7278
7279impl ::std::fmt::Debug for GFileOutputStream {
7280 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7281 f.debug_struct(&format!("GFileOutputStream @ {:?}", self as *const _))
7282 .field("parent_instance", &self.parent_instance)
7283 .finish()
7284 }
7285}
7286
7287#[repr(C)]
7288pub struct GFilenameCompleter(c_void);
7289
7290impl ::std::fmt::Debug for GFilenameCompleter {
7291 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7292 f.debug_struct(&format!("GFilenameCompleter @ {:?}", self as *const _))
7293 .finish()
7294 }
7295}
7296
7297#[repr(C)]
7298#[derive(Copy, Clone)]
7299pub struct GFilterInputStream {
7300 pub parent_instance: GInputStream,
7301 pub base_stream: *mut GInputStream,
7302}
7303
7304impl ::std::fmt::Debug for GFilterInputStream {
7305 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7306 f.debug_struct(&format!("GFilterInputStream @ {:?}", self as *const _))
7307 .field("parent_instance", &self.parent_instance)
7308 .field("base_stream", &self.base_stream)
7309 .finish()
7310 }
7311}
7312
7313#[repr(C)]
7314#[derive(Copy, Clone)]
7315pub struct GFilterOutputStream {
7316 pub parent_instance: GOutputStream,
7317 pub base_stream: *mut GOutputStream,
7318}
7319
7320impl ::std::fmt::Debug for GFilterOutputStream {
7321 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7322 f.debug_struct(&format!("GFilterOutputStream @ {:?}", self as *const _))
7323 .field("parent_instance", &self.parent_instance)
7324 .field("base_stream", &self.base_stream)
7325 .finish()
7326 }
7327}
7328
7329#[repr(C)]
7330pub struct GIOModule(c_void);
7331
7332impl ::std::fmt::Debug for GIOModule {
7333 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7334 f.debug_struct(&format!("GIOModule @ {:?}", self as *const _))
7335 .finish()
7336 }
7337}
7338
7339#[repr(C)]
7340#[derive(Copy, Clone)]
7341pub struct GIOStream {
7342 pub parent_instance: gobject::GObject,
7343 pub priv_: *mut GIOStreamPrivate,
7344}
7345
7346impl ::std::fmt::Debug for GIOStream {
7347 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7348 f.debug_struct(&format!("GIOStream @ {:?}", self as *const _))
7349 .field("parent_instance", &self.parent_instance)
7350 .finish()
7351 }
7352}
7353
7354#[repr(C)]
7355#[derive(Copy, Clone)]
7356pub struct GInetAddress {
7357 pub parent_instance: gobject::GObject,
7358 pub priv_: *mut GInetAddressPrivate,
7359}
7360
7361impl ::std::fmt::Debug for GInetAddress {
7362 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7363 f.debug_struct(&format!("GInetAddress @ {:?}", self as *const _))
7364 .field("parent_instance", &self.parent_instance)
7365 .finish()
7366 }
7367}
7368
7369#[repr(C)]
7370#[derive(Copy, Clone)]
7371pub struct GInetAddressMask {
7372 pub parent_instance: gobject::GObject,
7373 pub priv_: *mut GInetAddressMaskPrivate,
7374}
7375
7376impl ::std::fmt::Debug for GInetAddressMask {
7377 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7378 f.debug_struct(&format!("GInetAddressMask @ {:?}", self as *const _))
7379 .field("parent_instance", &self.parent_instance)
7380 .finish()
7381 }
7382}
7383
7384#[repr(C)]
7385#[derive(Copy, Clone)]
7386pub struct GInetSocketAddress {
7387 pub parent_instance: GSocketAddress,
7388 pub priv_: *mut GInetSocketAddressPrivate,
7389}
7390
7391impl ::std::fmt::Debug for GInetSocketAddress {
7392 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7393 f.debug_struct(&format!("GInetSocketAddress @ {:?}", self as *const _))
7394 .field("parent_instance", &self.parent_instance)
7395 .finish()
7396 }
7397}
7398
7399#[repr(C)]
7400#[derive(Copy, Clone)]
7401pub struct GInputStream {
7402 pub parent_instance: gobject::GObject,
7403 pub priv_: *mut GInputStreamPrivate,
7404}
7405
7406impl ::std::fmt::Debug for GInputStream {
7407 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7408 f.debug_struct(&format!("GInputStream @ {:?}", self as *const _))
7409 .field("parent_instance", &self.parent_instance)
7410 .finish()
7411 }
7412}
7413
7414#[repr(C)]
7415pub struct GListStore(c_void);
7416
7417impl ::std::fmt::Debug for GListStore {
7418 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7419 f.debug_struct(&format!("GListStore @ {:?}", self as *const _))
7420 .finish()
7421 }
7422}
7423
7424#[repr(C)]
7425#[derive(Copy, Clone)]
7426pub struct GMemoryInputStream {
7427 pub parent_instance: GInputStream,
7428 pub priv_: *mut GMemoryInputStreamPrivate,
7429}
7430
7431impl ::std::fmt::Debug for GMemoryInputStream {
7432 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7433 f.debug_struct(&format!("GMemoryInputStream @ {:?}", self as *const _))
7434 .field("parent_instance", &self.parent_instance)
7435 .finish()
7436 }
7437}
7438
7439#[repr(C)]
7440#[derive(Copy, Clone)]
7441pub struct GMemoryOutputStream {
7442 pub parent_instance: GOutputStream,
7443 pub priv_: *mut GMemoryOutputStreamPrivate,
7444}
7445
7446impl ::std::fmt::Debug for GMemoryOutputStream {
7447 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7448 f.debug_struct(&format!("GMemoryOutputStream @ {:?}", self as *const _))
7449 .field("parent_instance", &self.parent_instance)
7450 .finish()
7451 }
7452}
7453
7454#[repr(C)]
7455pub struct GMenu(c_void);
7456
7457impl ::std::fmt::Debug for GMenu {
7458 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7459 f.debug_struct(&format!("GMenu @ {:?}", self as *const _))
7460 .finish()
7461 }
7462}
7463
7464#[repr(C)]
7465#[derive(Copy, Clone)]
7466pub struct GMenuAttributeIter {
7467 pub parent_instance: gobject::GObject,
7468 pub priv_: *mut GMenuAttributeIterPrivate,
7469}
7470
7471impl ::std::fmt::Debug for GMenuAttributeIter {
7472 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7473 f.debug_struct(&format!("GMenuAttributeIter @ {:?}", self as *const _))
7474 .field("parent_instance", &self.parent_instance)
7475 .field("priv_", &self.priv_)
7476 .finish()
7477 }
7478}
7479
7480#[repr(C)]
7481pub struct GMenuItem(c_void);
7482
7483impl ::std::fmt::Debug for GMenuItem {
7484 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7485 f.debug_struct(&format!("GMenuItem @ {:?}", self as *const _))
7486 .finish()
7487 }
7488}
7489
7490#[repr(C)]
7491#[derive(Copy, Clone)]
7492pub struct GMenuLinkIter {
7493 pub parent_instance: gobject::GObject,
7494 pub priv_: *mut GMenuLinkIterPrivate,
7495}
7496
7497impl ::std::fmt::Debug for GMenuLinkIter {
7498 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7499 f.debug_struct(&format!("GMenuLinkIter @ {:?}", self as *const _))
7500 .field("parent_instance", &self.parent_instance)
7501 .field("priv_", &self.priv_)
7502 .finish()
7503 }
7504}
7505
7506#[repr(C)]
7507#[derive(Copy, Clone)]
7508pub struct GMenuModel {
7509 pub parent_instance: gobject::GObject,
7510 pub priv_: *mut GMenuModelPrivate,
7511}
7512
7513impl ::std::fmt::Debug for GMenuModel {
7514 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7515 f.debug_struct(&format!("GMenuModel @ {:?}", self as *const _))
7516 .field("parent_instance", &self.parent_instance)
7517 .field("priv_", &self.priv_)
7518 .finish()
7519 }
7520}
7521
7522#[repr(C)]
7523#[derive(Copy, Clone)]
7524pub struct GMountOperation {
7525 pub parent_instance: gobject::GObject,
7526 pub priv_: *mut GMountOperationPrivate,
7527}
7528
7529impl ::std::fmt::Debug for GMountOperation {
7530 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7531 f.debug_struct(&format!("GMountOperation @ {:?}", self as *const _))
7532 .field("parent_instance", &self.parent_instance)
7533 .field("priv_", &self.priv_)
7534 .finish()
7535 }
7536}
7537
7538#[repr(C)]
7539#[derive(Copy, Clone)]
7540pub struct GNativeVolumeMonitor {
7541 pub parent_instance: GVolumeMonitor,
7542}
7543
7544impl ::std::fmt::Debug for GNativeVolumeMonitor {
7545 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7546 f.debug_struct(&format!("GNativeVolumeMonitor @ {:?}", self as *const _))
7547 .field("parent_instance", &self.parent_instance)
7548 .finish()
7549 }
7550}
7551
7552#[repr(C)]
7553#[derive(Copy, Clone)]
7554pub struct GNetworkAddress {
7555 pub parent_instance: gobject::GObject,
7556 pub priv_: *mut GNetworkAddressPrivate,
7557}
7558
7559impl ::std::fmt::Debug for GNetworkAddress {
7560 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7561 f.debug_struct(&format!("GNetworkAddress @ {:?}", self as *const _))
7562 .field("parent_instance", &self.parent_instance)
7563 .finish()
7564 }
7565}
7566
7567#[repr(C)]
7568#[derive(Copy, Clone)]
7569pub struct GNetworkService {
7570 pub parent_instance: gobject::GObject,
7571 pub priv_: *mut GNetworkServicePrivate,
7572}
7573
7574impl ::std::fmt::Debug for GNetworkService {
7575 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7576 f.debug_struct(&format!("GNetworkService @ {:?}", self as *const _))
7577 .field("parent_instance", &self.parent_instance)
7578 .finish()
7579 }
7580}
7581
7582#[repr(C)]
7583pub struct GNotification(c_void);
7584
7585impl ::std::fmt::Debug for GNotification {
7586 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7587 f.debug_struct(&format!("GNotification @ {:?}", self as *const _))
7588 .finish()
7589 }
7590}
7591
7592#[repr(C)]
7593#[derive(Copy, Clone)]
7594pub struct GOutputStream {
7595 pub parent_instance: gobject::GObject,
7596 pub priv_: *mut GOutputStreamPrivate,
7597}
7598
7599impl ::std::fmt::Debug for GOutputStream {
7600 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7601 f.debug_struct(&format!("GOutputStream @ {:?}", self as *const _))
7602 .field("parent_instance", &self.parent_instance)
7603 .finish()
7604 }
7605}
7606
7607#[repr(C)]
7608#[derive(Copy, Clone)]
7609pub struct GPermission {
7610 pub parent_instance: gobject::GObject,
7611 pub priv_: *mut GPermissionPrivate,
7612}
7613
7614impl ::std::fmt::Debug for GPermission {
7615 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7616 f.debug_struct(&format!("GPermission @ {:?}", self as *const _))
7617 .field("parent_instance", &self.parent_instance)
7618 .finish()
7619 }
7620}
7621
7622#[repr(C)]
7623pub struct GPropertyAction(c_void);
7624
7625impl ::std::fmt::Debug for GPropertyAction {
7626 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7627 f.debug_struct(&format!("GPropertyAction @ {:?}", self as *const _))
7628 .finish()
7629 }
7630}
7631
7632#[repr(C)]
7633#[derive(Copy, Clone)]
7634pub struct GProxyAddress {
7635 pub parent_instance: GInetSocketAddress,
7636 pub priv_: *mut GProxyAddressPrivate,
7637}
7638
7639impl ::std::fmt::Debug for GProxyAddress {
7640 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7641 f.debug_struct(&format!("GProxyAddress @ {:?}", self as *const _))
7642 .field("parent_instance", &self.parent_instance)
7643 .finish()
7644 }
7645}
7646
7647#[repr(C)]
7648#[derive(Copy, Clone)]
7649pub struct GProxyAddressEnumerator {
7650 pub parent_instance: GSocketAddressEnumerator,
7651 pub priv_: *mut GProxyAddressEnumeratorPrivate,
7652}
7653
7654impl ::std::fmt::Debug for GProxyAddressEnumerator {
7655 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7656 f.debug_struct(&format!("GProxyAddressEnumerator @ {:?}", self as *const _))
7657 .field("parent_instance", &self.parent_instance)
7658 .field("priv_", &self.priv_)
7659 .finish()
7660 }
7661}
7662
7663#[repr(C)]
7664#[derive(Copy, Clone)]
7665pub struct GResolver {
7666 pub parent_instance: gobject::GObject,
7667 pub priv_: *mut GResolverPrivate,
7668}
7669
7670impl ::std::fmt::Debug for GResolver {
7671 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7672 f.debug_struct(&format!("GResolver @ {:?}", self as *const _))
7673 .field("parent_instance", &self.parent_instance)
7674 .field("priv_", &self.priv_)
7675 .finish()
7676 }
7677}
7678
7679#[repr(C)]
7680#[derive(Copy, Clone)]
7681pub struct GSettings {
7682 pub parent_instance: gobject::GObject,
7683 pub priv_: *mut GSettingsPrivate,
7684}
7685
7686impl ::std::fmt::Debug for GSettings {
7687 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7688 f.debug_struct(&format!("GSettings @ {:?}", self as *const _))
7689 .field("parent_instance", &self.parent_instance)
7690 .field("priv_", &self.priv_)
7691 .finish()
7692 }
7693}
7694
7695#[repr(C)]
7696#[derive(Copy, Clone)]
7697pub struct GSettingsBackend {
7698 pub parent_instance: gobject::GObject,
7699 pub priv_: *mut GSettingsBackendPrivate,
7700}
7701
7702impl ::std::fmt::Debug for GSettingsBackend {
7703 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7704 f.debug_struct(&format!("GSettingsBackend @ {:?}", self as *const _))
7705 .field("parent_instance", &self.parent_instance)
7706 .finish()
7707 }
7708}
7709
7710#[repr(C)]
7711pub struct GSimpleAction(c_void);
7712
7713impl ::std::fmt::Debug for GSimpleAction {
7714 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7715 f.debug_struct(&format!("GSimpleAction @ {:?}", self as *const _))
7716 .finish()
7717 }
7718}
7719
7720#[repr(C)]
7721#[derive(Copy, Clone)]
7722pub struct GSimpleActionGroup {
7723 pub parent_instance: gobject::GObject,
7724 pub priv_: *mut GSimpleActionGroupPrivate,
7725}
7726
7727impl ::std::fmt::Debug for GSimpleActionGroup {
7728 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7729 f.debug_struct(&format!("GSimpleActionGroup @ {:?}", self as *const _))
7730 .finish()
7731 }
7732}
7733
7734#[repr(C)]
7735pub struct GSimpleAsyncResult(c_void);
7736
7737impl ::std::fmt::Debug for GSimpleAsyncResult {
7738 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7739 f.debug_struct(&format!("GSimpleAsyncResult @ {:?}", self as *const _))
7740 .finish()
7741 }
7742}
7743
7744#[repr(C)]
7745pub struct GSimpleIOStream(c_void);
7746
7747impl ::std::fmt::Debug for GSimpleIOStream {
7748 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7749 f.debug_struct(&format!("GSimpleIOStream @ {:?}", self as *const _))
7750 .finish()
7751 }
7752}
7753
7754#[repr(C)]
7755pub struct GSimplePermission(c_void);
7756
7757impl ::std::fmt::Debug for GSimplePermission {
7758 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7759 f.debug_struct(&format!("GSimplePermission @ {:?}", self as *const _))
7760 .finish()
7761 }
7762}
7763
7764#[repr(C)]
7765#[derive(Copy, Clone)]
7766pub struct GSimpleProxyResolver {
7767 pub parent_instance: gobject::GObject,
7768 pub priv_: *mut GSimpleProxyResolverPrivate,
7769}
7770
7771impl ::std::fmt::Debug for GSimpleProxyResolver {
7772 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7773 f.debug_struct(&format!("GSimpleProxyResolver @ {:?}", self as *const _))
7774 .field("parent_instance", &self.parent_instance)
7775 .finish()
7776 }
7777}
7778
7779#[repr(C)]
7780#[derive(Copy, Clone)]
7781pub struct GSocket {
7782 pub parent_instance: gobject::GObject,
7783 pub priv_: *mut GSocketPrivate,
7784}
7785
7786impl ::std::fmt::Debug for GSocket {
7787 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7788 f.debug_struct(&format!("GSocket @ {:?}", self as *const _))
7789 .field("parent_instance", &self.parent_instance)
7790 .field("priv_", &self.priv_)
7791 .finish()
7792 }
7793}
7794
7795#[repr(C)]
7796#[derive(Copy, Clone)]
7797pub struct GSocketAddress {
7798 pub parent_instance: gobject::GObject,
7799}
7800
7801impl ::std::fmt::Debug for GSocketAddress {
7802 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7803 f.debug_struct(&format!("GSocketAddress @ {:?}", self as *const _))
7804 .field("parent_instance", &self.parent_instance)
7805 .finish()
7806 }
7807}
7808
7809#[repr(C)]
7810#[derive(Copy, Clone)]
7811pub struct GSocketAddressEnumerator {
7812 pub parent_instance: gobject::GObject,
7813}
7814
7815impl ::std::fmt::Debug for GSocketAddressEnumerator {
7816 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7817 f.debug_struct(&format!(
7818 "GSocketAddressEnumerator @ {:?}",
7819 self as *const _
7820 ))
7821 .field("parent_instance", &self.parent_instance)
7822 .finish()
7823 }
7824}
7825
7826#[repr(C)]
7827#[derive(Copy, Clone)]
7828pub struct GSocketClient {
7829 pub parent_instance: gobject::GObject,
7830 pub priv_: *mut GSocketClientPrivate,
7831}
7832
7833impl ::std::fmt::Debug for GSocketClient {
7834 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7835 f.debug_struct(&format!("GSocketClient @ {:?}", self as *const _))
7836 .field("parent_instance", &self.parent_instance)
7837 .field("priv_", &self.priv_)
7838 .finish()
7839 }
7840}
7841
7842#[repr(C)]
7843#[derive(Copy, Clone)]
7844pub struct GSocketConnection {
7845 pub parent_instance: GIOStream,
7846 pub priv_: *mut GSocketConnectionPrivate,
7847}
7848
7849impl ::std::fmt::Debug for GSocketConnection {
7850 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7851 f.debug_struct(&format!("GSocketConnection @ {:?}", self as *const _))
7852 .field("parent_instance", &self.parent_instance)
7853 .field("priv_", &self.priv_)
7854 .finish()
7855 }
7856}
7857
7858#[repr(C)]
7859#[derive(Copy, Clone)]
7860pub struct GSocketControlMessage {
7861 pub parent_instance: gobject::GObject,
7862 pub priv_: *mut GSocketControlMessagePrivate,
7863}
7864
7865impl ::std::fmt::Debug for GSocketControlMessage {
7866 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7867 f.debug_struct(&format!("GSocketControlMessage @ {:?}", self as *const _))
7868 .field("parent_instance", &self.parent_instance)
7869 .field("priv_", &self.priv_)
7870 .finish()
7871 }
7872}
7873
7874#[repr(C)]
7875#[derive(Copy, Clone)]
7876pub struct GSocketListener {
7877 pub parent_instance: gobject::GObject,
7878 pub priv_: *mut GSocketListenerPrivate,
7879}
7880
7881impl ::std::fmt::Debug for GSocketListener {
7882 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7883 f.debug_struct(&format!("GSocketListener @ {:?}", self as *const _))
7884 .field("parent_instance", &self.parent_instance)
7885 .field("priv_", &self.priv_)
7886 .finish()
7887 }
7888}
7889
7890#[repr(C)]
7891#[derive(Copy, Clone)]
7892pub struct GSocketService {
7893 pub parent_instance: GSocketListener,
7894 pub priv_: *mut GSocketServicePrivate,
7895}
7896
7897impl ::std::fmt::Debug for GSocketService {
7898 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7899 f.debug_struct(&format!("GSocketService @ {:?}", self as *const _))
7900 .field("parent_instance", &self.parent_instance)
7901 .field("priv_", &self.priv_)
7902 .finish()
7903 }
7904}
7905
7906#[repr(C)]
7907pub struct GSubprocess(c_void);
7908
7909impl ::std::fmt::Debug for GSubprocess {
7910 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7911 f.debug_struct(&format!("GSubprocess @ {:?}", self as *const _))
7912 .finish()
7913 }
7914}
7915
7916#[repr(C)]
7917pub struct GSubprocessLauncher(c_void);
7918
7919impl ::std::fmt::Debug for GSubprocessLauncher {
7920 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7921 f.debug_struct(&format!("GSubprocessLauncher @ {:?}", self as *const _))
7922 .finish()
7923 }
7924}
7925
7926#[repr(C)]
7927pub struct GTask(c_void);
7928
7929impl ::std::fmt::Debug for GTask {
7930 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7931 f.debug_struct(&format!("GTask @ {:?}", self as *const _))
7932 .finish()
7933 }
7934}
7935
7936#[repr(C)]
7937#[derive(Copy, Clone)]
7938pub struct GTcpConnection {
7939 pub parent_instance: GSocketConnection,
7940 pub priv_: *mut GTcpConnectionPrivate,
7941}
7942
7943impl ::std::fmt::Debug for GTcpConnection {
7944 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7945 f.debug_struct(&format!("GTcpConnection @ {:?}", self as *const _))
7946 .field("parent_instance", &self.parent_instance)
7947 .field("priv_", &self.priv_)
7948 .finish()
7949 }
7950}
7951
7952#[repr(C)]
7953#[derive(Copy, Clone)]
7954pub struct GTcpWrapperConnection {
7955 pub parent_instance: GTcpConnection,
7956 pub priv_: *mut GTcpWrapperConnectionPrivate,
7957}
7958
7959impl ::std::fmt::Debug for GTcpWrapperConnection {
7960 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7961 f.debug_struct(&format!("GTcpWrapperConnection @ {:?}", self as *const _))
7962 .field("parent_instance", &self.parent_instance)
7963 .field("priv_", &self.priv_)
7964 .finish()
7965 }
7966}
7967
7968#[repr(C)]
7969pub struct GTestDBus(c_void);
7970
7971impl ::std::fmt::Debug for GTestDBus {
7972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7973 f.debug_struct(&format!("GTestDBus @ {:?}", self as *const _))
7974 .finish()
7975 }
7976}
7977
7978#[repr(C)]
7979pub struct GThemedIcon(c_void);
7980
7981impl ::std::fmt::Debug for GThemedIcon {
7982 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7983 f.debug_struct(&format!("GThemedIcon @ {:?}", self as *const _))
7984 .finish()
7985 }
7986}
7987
7988#[repr(C)]
7989#[derive(Copy, Clone)]
7990pub struct GThreadedSocketService {
7991 pub parent_instance: GSocketService,
7992 pub priv_: *mut GThreadedSocketServicePrivate,
7993}
7994
7995impl ::std::fmt::Debug for GThreadedSocketService {
7996 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7997 f.debug_struct(&format!("GThreadedSocketService @ {:?}", self as *const _))
7998 .field("parent_instance", &self.parent_instance)
7999 .field("priv_", &self.priv_)
8000 .finish()
8001 }
8002}
8003
8004#[repr(C)]
8005#[derive(Copy, Clone)]
8006pub struct GTlsCertificate {
8007 pub parent_instance: gobject::GObject,
8008 pub priv_: *mut GTlsCertificatePrivate,
8009}
8010
8011impl ::std::fmt::Debug for GTlsCertificate {
8012 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8013 f.debug_struct(&format!("GTlsCertificate @ {:?}", self as *const _))
8014 .field("parent_instance", &self.parent_instance)
8015 .field("priv_", &self.priv_)
8016 .finish()
8017 }
8018}
8019
8020#[repr(C)]
8021#[derive(Copy, Clone)]
8022pub struct GTlsConnection {
8023 pub parent_instance: GIOStream,
8024 pub priv_: *mut GTlsConnectionPrivate,
8025}
8026
8027impl ::std::fmt::Debug for GTlsConnection {
8028 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8029 f.debug_struct(&format!("GTlsConnection @ {:?}", self as *const _))
8030 .field("parent_instance", &self.parent_instance)
8031 .field("priv_", &self.priv_)
8032 .finish()
8033 }
8034}
8035
8036#[repr(C)]
8037#[derive(Copy, Clone)]
8038pub struct GTlsDatabase {
8039 pub parent_instance: gobject::GObject,
8040 pub priv_: *mut GTlsDatabasePrivate,
8041}
8042
8043impl ::std::fmt::Debug for GTlsDatabase {
8044 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8045 f.debug_struct(&format!("GTlsDatabase @ {:?}", self as *const _))
8046 .field("parent_instance", &self.parent_instance)
8047 .field("priv_", &self.priv_)
8048 .finish()
8049 }
8050}
8051
8052#[repr(C)]
8053#[derive(Copy, Clone)]
8054pub struct GTlsInteraction {
8055 pub parent_instance: gobject::GObject,
8056 pub priv_: *mut GTlsInteractionPrivate,
8057}
8058
8059impl ::std::fmt::Debug for GTlsInteraction {
8060 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8061 f.debug_struct(&format!("GTlsInteraction @ {:?}", self as *const _))
8062 .finish()
8063 }
8064}
8065
8066#[repr(C)]
8067#[derive(Copy, Clone)]
8068pub struct GTlsPassword {
8069 pub parent_instance: gobject::GObject,
8070 pub priv_: *mut GTlsPasswordPrivate,
8071}
8072
8073impl ::std::fmt::Debug for GTlsPassword {
8074 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8075 f.debug_struct(&format!("GTlsPassword @ {:?}", self as *const _))
8076 .field("parent_instance", &self.parent_instance)
8077 .field("priv_", &self.priv_)
8078 .finish()
8079 }
8080}
8081
8082#[repr(C)]
8083#[derive(Copy, Clone)]
8084pub struct GUnixConnection {
8085 pub parent_instance: GSocketConnection,
8086 pub priv_: *mut GUnixConnectionPrivate,
8087}
8088
8089impl ::std::fmt::Debug for GUnixConnection {
8090 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8091 f.debug_struct(&format!("GUnixConnection @ {:?}", self as *const _))
8092 .field("parent_instance", &self.parent_instance)
8093 .field("priv_", &self.priv_)
8094 .finish()
8095 }
8096}
8097
8098#[repr(C)]
8099#[derive(Copy, Clone)]
8100pub struct GUnixCredentialsMessage {
8101 pub parent_instance: GSocketControlMessage,
8102 pub priv_: *mut GUnixCredentialsMessagePrivate,
8103}
8104
8105impl ::std::fmt::Debug for GUnixCredentialsMessage {
8106 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8107 f.debug_struct(&format!("GUnixCredentialsMessage @ {:?}", self as *const _))
8108 .field("parent_instance", &self.parent_instance)
8109 .field("priv_", &self.priv_)
8110 .finish()
8111 }
8112}
8113
8114#[repr(C)]
8115#[derive(Copy, Clone)]
8116pub struct GUnixFDList {
8117 pub parent_instance: gobject::GObject,
8118 pub priv_: *mut GUnixFDListPrivate,
8119}
8120
8121impl ::std::fmt::Debug for GUnixFDList {
8122 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8123 f.debug_struct(&format!("GUnixFDList @ {:?}", self as *const _))
8124 .field("parent_instance", &self.parent_instance)
8125 .field("priv_", &self.priv_)
8126 .finish()
8127 }
8128}
8129
8130#[repr(C)]
8131#[derive(Copy, Clone)]
8132pub struct GUnixFDMessage {
8133 pub parent_instance: GSocketControlMessage,
8134 pub priv_: *mut GUnixFDMessagePrivate,
8135}
8136
8137impl ::std::fmt::Debug for GUnixFDMessage {
8138 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8139 f.debug_struct(&format!("GUnixFDMessage @ {:?}", self as *const _))
8140 .field("parent_instance", &self.parent_instance)
8141 .field("priv_", &self.priv_)
8142 .finish()
8143 }
8144}
8145
8146#[repr(C)]
8147#[derive(Copy, Clone)]
8148pub struct GUnixInputStream {
8149 pub parent_instance: GInputStream,
8150 pub priv_: *mut GUnixInputStreamPrivate,
8151}
8152
8153impl ::std::fmt::Debug for GUnixInputStream {
8154 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8155 f.debug_struct(&format!("GUnixInputStream @ {:?}", self as *const _))
8156 .field("parent_instance", &self.parent_instance)
8157 .finish()
8158 }
8159}
8160
8161#[repr(C)]
8162pub struct GUnixMountMonitor(c_void);
8163
8164impl ::std::fmt::Debug for GUnixMountMonitor {
8165 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8166 f.debug_struct(&format!("GUnixMountMonitor @ {:?}", self as *const _))
8167 .finish()
8168 }
8169}
8170
8171#[repr(C)]
8172#[derive(Copy, Clone)]
8173pub struct GUnixOutputStream {
8174 pub parent_instance: GOutputStream,
8175 pub priv_: *mut GUnixOutputStreamPrivate,
8176}
8177
8178impl ::std::fmt::Debug for GUnixOutputStream {
8179 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8180 f.debug_struct(&format!("GUnixOutputStream @ {:?}", self as *const _))
8181 .field("parent_instance", &self.parent_instance)
8182 .finish()
8183 }
8184}
8185
8186#[repr(C)]
8187#[derive(Copy, Clone)]
8188pub struct GUnixSocketAddress {
8189 pub parent_instance: GSocketAddress,
8190 pub priv_: *mut GUnixSocketAddressPrivate,
8191}
8192
8193impl ::std::fmt::Debug for GUnixSocketAddress {
8194 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8195 f.debug_struct(&format!("GUnixSocketAddress @ {:?}", self as *const _))
8196 .field("parent_instance", &self.parent_instance)
8197 .finish()
8198 }
8199}
8200
8201#[repr(C)]
8202#[derive(Copy, Clone)]
8203pub struct GVfs {
8204 pub parent_instance: gobject::GObject,
8205}
8206
8207impl ::std::fmt::Debug for GVfs {
8208 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8209 f.debug_struct(&format!("GVfs @ {:?}", self as *const _))
8210 .field("parent_instance", &self.parent_instance)
8211 .finish()
8212 }
8213}
8214
8215#[repr(C)]
8216#[derive(Copy, Clone)]
8217pub struct GVolumeMonitor {
8218 pub parent_instance: gobject::GObject,
8219 pub priv_: gpointer,
8220}
8221
8222impl ::std::fmt::Debug for GVolumeMonitor {
8223 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8224 f.debug_struct(&format!("GVolumeMonitor @ {:?}", self as *const _))
8225 .field("parent_instance", &self.parent_instance)
8226 .finish()
8227 }
8228}
8229
8230#[repr(C)]
8231pub struct GZlibCompressor(c_void);
8232
8233impl ::std::fmt::Debug for GZlibCompressor {
8234 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8235 f.debug_struct(&format!("GZlibCompressor @ {:?}", self as *const _))
8236 .finish()
8237 }
8238}
8239
8240#[repr(C)]
8241pub struct GZlibDecompressor(c_void);
8242
8243impl ::std::fmt::Debug for GZlibDecompressor {
8244 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8245 f.debug_struct(&format!("GZlibDecompressor @ {:?}", self as *const _))
8246 .finish()
8247 }
8248}
8249
8250#[repr(C)]
8252pub struct GAction(c_void);
8253
8254impl ::std::fmt::Debug for GAction {
8255 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8256 write!(f, "GAction @ {:?}", self as *const _)
8257 }
8258}
8259
8260#[repr(C)]
8261pub struct GActionGroup(c_void);
8262
8263impl ::std::fmt::Debug for GActionGroup {
8264 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8265 write!(f, "GActionGroup @ {:?}", self as *const _)
8266 }
8267}
8268
8269#[repr(C)]
8270pub struct GActionMap(c_void);
8271
8272impl ::std::fmt::Debug for GActionMap {
8273 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8274 write!(f, "GActionMap @ {:?}", self as *const _)
8275 }
8276}
8277
8278#[repr(C)]
8279pub struct GAppInfo(c_void);
8280
8281impl ::std::fmt::Debug for GAppInfo {
8282 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8283 write!(f, "GAppInfo @ {:?}", self as *const _)
8284 }
8285}
8286
8287#[repr(C)]
8288pub struct GAsyncInitable(c_void);
8289
8290impl ::std::fmt::Debug for GAsyncInitable {
8291 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8292 write!(f, "GAsyncInitable @ {:?}", self as *const _)
8293 }
8294}
8295
8296#[repr(C)]
8297pub struct GAsyncResult(c_void);
8298
8299impl ::std::fmt::Debug for GAsyncResult {
8300 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8301 write!(f, "GAsyncResult @ {:?}", self as *const _)
8302 }
8303}
8304
8305#[repr(C)]
8306pub struct GConverter(c_void);
8307
8308impl ::std::fmt::Debug for GConverter {
8309 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8310 write!(f, "GConverter @ {:?}", self as *const _)
8311 }
8312}
8313
8314#[repr(C)]
8315pub struct GDBusInterface(c_void);
8316
8317impl ::std::fmt::Debug for GDBusInterface {
8318 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8319 write!(f, "GDBusInterface @ {:?}", self as *const _)
8320 }
8321}
8322
8323#[repr(C)]
8324pub struct GDBusObject(c_void);
8325
8326impl ::std::fmt::Debug for GDBusObject {
8327 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8328 write!(f, "GDBusObject @ {:?}", self as *const _)
8329 }
8330}
8331
8332#[repr(C)]
8333pub struct GDBusObjectManager(c_void);
8334
8335impl ::std::fmt::Debug for GDBusObjectManager {
8336 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8337 write!(f, "GDBusObjectManager @ {:?}", self as *const _)
8338 }
8339}
8340
8341#[repr(C)]
8342pub struct GDatagramBased(c_void);
8343
8344impl ::std::fmt::Debug for GDatagramBased {
8345 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8346 write!(f, "GDatagramBased @ {:?}", self as *const _)
8347 }
8348}
8349
8350#[repr(C)]
8351pub struct GDesktopAppInfoLookup(c_void);
8352
8353impl ::std::fmt::Debug for GDesktopAppInfoLookup {
8354 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8355 write!(f, "GDesktopAppInfoLookup @ {:?}", self as *const _)
8356 }
8357}
8358
8359#[repr(C)]
8360pub struct GDrive(c_void);
8361
8362impl ::std::fmt::Debug for GDrive {
8363 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8364 write!(f, "GDrive @ {:?}", self as *const _)
8365 }
8366}
8367
8368#[repr(C)]
8369pub struct GDtlsClientConnection(c_void);
8370
8371impl ::std::fmt::Debug for GDtlsClientConnection {
8372 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8373 write!(f, "GDtlsClientConnection @ {:?}", self as *const _)
8374 }
8375}
8376
8377#[repr(C)]
8378pub struct GDtlsConnection(c_void);
8379
8380impl ::std::fmt::Debug for GDtlsConnection {
8381 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8382 write!(f, "GDtlsConnection @ {:?}", self as *const _)
8383 }
8384}
8385
8386#[repr(C)]
8387pub struct GDtlsServerConnection(c_void);
8388
8389impl ::std::fmt::Debug for GDtlsServerConnection {
8390 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8391 write!(f, "GDtlsServerConnection @ {:?}", self as *const _)
8392 }
8393}
8394
8395#[repr(C)]
8396pub struct GFile(c_void);
8397
8398impl ::std::fmt::Debug for GFile {
8399 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8400 write!(f, "GFile @ {:?}", self as *const _)
8401 }
8402}
8403
8404#[repr(C)]
8405pub struct GFileDescriptorBased(c_void);
8406
8407impl ::std::fmt::Debug for GFileDescriptorBased {
8408 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8409 write!(f, "GFileDescriptorBased @ {:?}", self as *const _)
8410 }
8411}
8412
8413#[repr(C)]
8414pub struct GIcon(c_void);
8415
8416impl ::std::fmt::Debug for GIcon {
8417 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8418 write!(f, "GIcon @ {:?}", self as *const _)
8419 }
8420}
8421
8422#[repr(C)]
8423pub struct GInitable(c_void);
8424
8425impl ::std::fmt::Debug for GInitable {
8426 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8427 write!(f, "GInitable @ {:?}", self as *const _)
8428 }
8429}
8430
8431#[repr(C)]
8432pub struct GListModel(c_void);
8433
8434impl ::std::fmt::Debug for GListModel {
8435 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8436 write!(f, "GListModel @ {:?}", self as *const _)
8437 }
8438}
8439
8440#[repr(C)]
8441pub struct GLoadableIcon(c_void);
8442
8443impl ::std::fmt::Debug for GLoadableIcon {
8444 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8445 write!(f, "GLoadableIcon @ {:?}", self as *const _)
8446 }
8447}
8448
8449#[repr(C)]
8450pub struct GMount(c_void);
8451
8452impl ::std::fmt::Debug for GMount {
8453 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8454 write!(f, "GMount @ {:?}", self as *const _)
8455 }
8456}
8457
8458#[repr(C)]
8459pub struct GNetworkMonitor(c_void);
8460
8461impl ::std::fmt::Debug for GNetworkMonitor {
8462 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8463 write!(f, "GNetworkMonitor @ {:?}", self as *const _)
8464 }
8465}
8466
8467#[repr(C)]
8468pub struct GPollableInputStream(c_void);
8469
8470impl ::std::fmt::Debug for GPollableInputStream {
8471 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8472 write!(f, "GPollableInputStream @ {:?}", self as *const _)
8473 }
8474}
8475
8476#[repr(C)]
8477pub struct GPollableOutputStream(c_void);
8478
8479impl ::std::fmt::Debug for GPollableOutputStream {
8480 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8481 write!(f, "GPollableOutputStream @ {:?}", self as *const _)
8482 }
8483}
8484
8485#[repr(C)]
8486pub struct GProxy(c_void);
8487
8488impl ::std::fmt::Debug for GProxy {
8489 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8490 write!(f, "GProxy @ {:?}", self as *const _)
8491 }
8492}
8493
8494#[repr(C)]
8495pub struct GProxyResolver(c_void);
8496
8497impl ::std::fmt::Debug for GProxyResolver {
8498 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8499 write!(f, "GProxyResolver @ {:?}", self as *const _)
8500 }
8501}
8502
8503#[repr(C)]
8504pub struct GRemoteActionGroup(c_void);
8505
8506impl ::std::fmt::Debug for GRemoteActionGroup {
8507 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8508 write!(f, "GRemoteActionGroup @ {:?}", self as *const _)
8509 }
8510}
8511
8512#[repr(C)]
8513pub struct GSeekable(c_void);
8514
8515impl ::std::fmt::Debug for GSeekable {
8516 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8517 write!(f, "GSeekable @ {:?}", self as *const _)
8518 }
8519}
8520
8521#[repr(C)]
8522pub struct GSocketConnectable(c_void);
8523
8524impl ::std::fmt::Debug for GSocketConnectable {
8525 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8526 write!(f, "GSocketConnectable @ {:?}", self as *const _)
8527 }
8528}
8529
8530#[repr(C)]
8531pub struct GTlsBackend(c_void);
8532
8533impl ::std::fmt::Debug for GTlsBackend {
8534 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8535 write!(f, "GTlsBackend @ {:?}", self as *const _)
8536 }
8537}
8538
8539#[repr(C)]
8540pub struct GTlsClientConnection(c_void);
8541
8542impl ::std::fmt::Debug for GTlsClientConnection {
8543 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8544 write!(f, "GTlsClientConnection @ {:?}", self as *const _)
8545 }
8546}
8547
8548#[repr(C)]
8549pub struct GTlsFileDatabase(c_void);
8550
8551impl ::std::fmt::Debug for GTlsFileDatabase {
8552 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8553 write!(f, "GTlsFileDatabase @ {:?}", self as *const _)
8554 }
8555}
8556
8557#[repr(C)]
8558pub struct GTlsServerConnection(c_void);
8559
8560impl ::std::fmt::Debug for GTlsServerConnection {
8561 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8562 write!(f, "GTlsServerConnection @ {:?}", self as *const _)
8563 }
8564}
8565
8566#[repr(C)]
8567pub struct GVolume(c_void);
8568
8569impl ::std::fmt::Debug for GVolume {
8570 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8571 write!(f, "GVolume @ {:?}", self as *const _)
8572 }
8573}
8574
8575extern "C" {
8576
8577 pub fn g_bus_type_get_type() -> GType;
8581
8582 pub fn g_converter_result_get_type() -> GType;
8586
8587 pub fn g_credentials_type_get_type() -> GType;
8591
8592 pub fn g_dbus_error_get_type() -> GType;
8596 pub fn g_dbus_error_encode_gerror(error: *const glib::GError) -> *mut c_char;
8597 pub fn g_dbus_error_get_remote_error(error: *const glib::GError) -> *mut c_char;
8598 pub fn g_dbus_error_is_remote_error(error: *const glib::GError) -> gboolean;
8599 pub fn g_dbus_error_new_for_dbus_error(
8600 dbus_error_name: *const c_char,
8601 dbus_error_message: *const c_char,
8602 ) -> *mut glib::GError;
8603 pub fn g_dbus_error_quark() -> glib::GQuark;
8604 pub fn g_dbus_error_register_error(
8605 error_domain: glib::GQuark,
8606 error_code: c_int,
8607 dbus_error_name: *const c_char,
8608 ) -> gboolean;
8609 pub fn g_dbus_error_register_error_domain(
8610 error_domain_quark_name: *const c_char,
8611 quark_volatile: *mut size_t,
8612 entries: *const GDBusErrorEntry,
8613 num_entries: c_uint,
8614 );
8615 pub fn g_dbus_error_set_dbus_error(
8616 error: *mut *mut glib::GError,
8617 dbus_error_name: *const c_char,
8618 dbus_error_message: *const c_char,
8619 format: *const c_char,
8620 ...
8621 );
8622 pub fn g_dbus_error_strip_remote_error(error: *mut glib::GError) -> gboolean;
8624 pub fn g_dbus_error_unregister_error(
8625 error_domain: glib::GQuark,
8626 error_code: c_int,
8627 dbus_error_name: *const c_char,
8628 ) -> gboolean;
8629
8630 pub fn g_dbus_message_byte_order_get_type() -> GType;
8634
8635 pub fn g_dbus_message_header_field_get_type() -> GType;
8639
8640 pub fn g_dbus_message_type_get_type() -> GType;
8644
8645 pub fn g_data_stream_byte_order_get_type() -> GType;
8649
8650 pub fn g_data_stream_newline_type_get_type() -> GType;
8654
8655 pub fn g_drive_start_stop_type_get_type() -> GType;
8659
8660 pub fn g_emblem_origin_get_type() -> GType;
8664
8665 pub fn g_file_attribute_status_get_type() -> GType;
8669
8670 pub fn g_file_attribute_type_get_type() -> GType;
8674
8675 pub fn g_file_monitor_event_get_type() -> GType;
8679
8680 pub fn g_file_type_get_type() -> GType;
8684
8685 pub fn g_filesystem_preview_type_get_type() -> GType;
8689
8690 pub fn g_io_error_enum_get_type() -> GType;
8694
8695 pub fn g_io_module_scope_flags_get_type() -> GType;
8699
8700 pub fn g_mount_operation_result_get_type() -> GType;
8704
8705 pub fn g_network_connectivity_get_type() -> GType;
8709
8710 pub fn g_notification_priority_get_type() -> GType;
8714
8715 pub fn g_password_save_get_type() -> GType;
8719
8720 pub fn g_resolver_error_get_type() -> GType;
8724 pub fn g_resolver_error_quark() -> glib::GQuark;
8725
8726 pub fn g_resolver_record_type_get_type() -> GType;
8730
8731 pub fn g_resource_error_get_type() -> GType;
8735 pub fn g_resource_error_quark() -> glib::GQuark;
8736
8737 pub fn g_socket_client_event_get_type() -> GType;
8741
8742 pub fn g_socket_family_get_type() -> GType;
8746
8747 pub fn g_socket_listener_event_get_type() -> GType;
8751
8752 pub fn g_socket_protocol_get_type() -> GType;
8756
8757 pub fn g_socket_type_get_type() -> GType;
8761
8762 pub fn g_tls_authentication_mode_get_type() -> GType;
8766
8767 pub fn g_tls_certificate_request_flags_get_type() -> GType;
8771
8772 pub fn g_tls_database_lookup_flags_get_type() -> GType;
8776
8777 pub fn g_tls_error_get_type() -> GType;
8781 pub fn g_tls_error_quark() -> glib::GQuark;
8782
8783 pub fn g_tls_interaction_result_get_type() -> GType;
8787
8788 pub fn g_tls_rehandshake_mode_get_type() -> GType;
8792
8793 pub fn g_unix_socket_address_type_get_type() -> GType;
8797
8798 pub fn g_zlib_compressor_format_get_type() -> GType;
8802
8803 pub fn g_app_info_create_flags_get_type() -> GType;
8807
8808 pub fn g_application_flags_get_type() -> GType;
8812
8813 pub fn g_ask_password_flags_get_type() -> GType;
8817
8818 pub fn g_bus_name_owner_flags_get_type() -> GType;
8822
8823 pub fn g_bus_name_watcher_flags_get_type() -> GType;
8827
8828 pub fn g_converter_flags_get_type() -> GType;
8832
8833 pub fn g_dbus_call_flags_get_type() -> GType;
8837
8838 pub fn g_dbus_capability_flags_get_type() -> GType;
8842
8843 pub fn g_dbus_connection_flags_get_type() -> GType;
8847
8848 pub fn g_dbus_interface_skeleton_flags_get_type() -> GType;
8852
8853 pub fn g_dbus_message_flags_get_type() -> GType;
8857
8858 pub fn g_dbus_object_manager_client_flags_get_type() -> GType;
8862
8863 pub fn g_dbus_property_info_flags_get_type() -> GType;
8867
8868 pub fn g_dbus_proxy_flags_get_type() -> GType;
8872
8873 pub fn g_dbus_send_message_flags_get_type() -> GType;
8877
8878 pub fn g_dbus_server_flags_get_type() -> GType;
8882
8883 pub fn g_dbus_signal_flags_get_type() -> GType;
8887
8888 pub fn g_dbus_subtree_flags_get_type() -> GType;
8892
8893 pub fn g_drive_start_flags_get_type() -> GType;
8897
8898 pub fn g_file_attribute_info_flags_get_type() -> GType;
8902
8903 pub fn g_file_copy_flags_get_type() -> GType;
8907
8908 pub fn g_file_create_flags_get_type() -> GType;
8912
8913 pub fn g_file_measure_flags_get_type() -> GType;
8917
8918 pub fn g_file_monitor_flags_get_type() -> GType;
8922
8923 pub fn g_file_query_info_flags_get_type() -> GType;
8927
8928 pub fn g_io_stream_splice_flags_get_type() -> GType;
8932
8933 pub fn g_mount_mount_flags_get_type() -> GType;
8937
8938 pub fn g_mount_unmount_flags_get_type() -> GType;
8942
8943 pub fn g_output_stream_splice_flags_get_type() -> GType;
8947
8948 pub fn g_resource_flags_get_type() -> GType;
8952
8953 pub fn g_resource_lookup_flags_get_type() -> GType;
8957
8958 pub fn g_settings_bind_flags_get_type() -> GType;
8962
8963 pub fn g_socket_msg_flags_get_type() -> GType;
8967
8968 pub fn g_subprocess_flags_get_type() -> GType;
8972
8973 pub fn g_test_dbus_flags_get_type() -> GType;
8977
8978 pub fn g_tls_certificate_flags_get_type() -> GType;
8982
8983 pub fn g_tls_database_verify_flags_get_type() -> GType;
8987
8988 pub fn g_tls_password_flags_get_type() -> GType;
8992
8993 pub fn g_dbus_annotation_info_get_type() -> GType;
8997 pub fn g_dbus_annotation_info_ref(info: *mut GDBusAnnotationInfo) -> *mut GDBusAnnotationInfo;
8998 pub fn g_dbus_annotation_info_unref(info: *mut GDBusAnnotationInfo);
8999 pub fn g_dbus_annotation_info_lookup(
9000 annotations: *mut *mut GDBusAnnotationInfo,
9001 name: *const c_char,
9002 ) -> *const c_char;
9003
9004 pub fn g_dbus_arg_info_get_type() -> GType;
9008 pub fn g_dbus_arg_info_ref(info: *mut GDBusArgInfo) -> *mut GDBusArgInfo;
9009 pub fn g_dbus_arg_info_unref(info: *mut GDBusArgInfo);
9010
9011 pub fn g_dbus_interface_info_get_type() -> GType;
9015 pub fn g_dbus_interface_info_cache_build(info: *mut GDBusInterfaceInfo);
9016 pub fn g_dbus_interface_info_cache_release(info: *mut GDBusInterfaceInfo);
9017 pub fn g_dbus_interface_info_generate_xml(
9018 info: *mut GDBusInterfaceInfo,
9019 indent: c_uint,
9020 string_builder: *mut glib::GString,
9021 );
9022 pub fn g_dbus_interface_info_lookup_method(
9023 info: *mut GDBusInterfaceInfo,
9024 name: *const c_char,
9025 ) -> *mut GDBusMethodInfo;
9026 pub fn g_dbus_interface_info_lookup_property(
9027 info: *mut GDBusInterfaceInfo,
9028 name: *const c_char,
9029 ) -> *mut GDBusPropertyInfo;
9030 pub fn g_dbus_interface_info_lookup_signal(
9031 info: *mut GDBusInterfaceInfo,
9032 name: *const c_char,
9033 ) -> *mut GDBusSignalInfo;
9034 pub fn g_dbus_interface_info_ref(info: *mut GDBusInterfaceInfo) -> *mut GDBusInterfaceInfo;
9035 pub fn g_dbus_interface_info_unref(info: *mut GDBusInterfaceInfo);
9036
9037 pub fn g_dbus_method_info_get_type() -> GType;
9041 pub fn g_dbus_method_info_ref(info: *mut GDBusMethodInfo) -> *mut GDBusMethodInfo;
9042 pub fn g_dbus_method_info_unref(info: *mut GDBusMethodInfo);
9043
9044 pub fn g_dbus_node_info_get_type() -> GType;
9048 pub fn g_dbus_node_info_new_for_xml(
9049 xml_data: *const c_char,
9050 error: *mut *mut glib::GError,
9051 ) -> *mut GDBusNodeInfo;
9052 pub fn g_dbus_node_info_generate_xml(
9053 info: *mut GDBusNodeInfo,
9054 indent: c_uint,
9055 string_builder: *mut glib::GString,
9056 );
9057 pub fn g_dbus_node_info_lookup_interface(
9058 info: *mut GDBusNodeInfo,
9059 name: *const c_char,
9060 ) -> *mut GDBusInterfaceInfo;
9061 pub fn g_dbus_node_info_ref(info: *mut GDBusNodeInfo) -> *mut GDBusNodeInfo;
9062 pub fn g_dbus_node_info_unref(info: *mut GDBusNodeInfo);
9063
9064 pub fn g_dbus_property_info_get_type() -> GType;
9068 pub fn g_dbus_property_info_ref(info: *mut GDBusPropertyInfo) -> *mut GDBusPropertyInfo;
9069 pub fn g_dbus_property_info_unref(info: *mut GDBusPropertyInfo);
9070
9071 pub fn g_dbus_signal_info_get_type() -> GType;
9075 pub fn g_dbus_signal_info_ref(info: *mut GDBusSignalInfo) -> *mut GDBusSignalInfo;
9076 pub fn g_dbus_signal_info_unref(info: *mut GDBusSignalInfo);
9077
9078 pub fn g_file_attribute_info_list_get_type() -> GType;
9082 pub fn g_file_attribute_info_list_new() -> *mut GFileAttributeInfoList;
9083 pub fn g_file_attribute_info_list_add(
9084 list: *mut GFileAttributeInfoList,
9085 name: *const c_char,
9086 type_: GFileAttributeType,
9087 flags: GFileAttributeInfoFlags,
9088 );
9089 pub fn g_file_attribute_info_list_dup(
9090 list: *mut GFileAttributeInfoList,
9091 ) -> *mut GFileAttributeInfoList;
9092 pub fn g_file_attribute_info_list_lookup(
9093 list: *mut GFileAttributeInfoList,
9094 name: *const c_char,
9095 ) -> *const GFileAttributeInfo;
9096 pub fn g_file_attribute_info_list_ref(
9097 list: *mut GFileAttributeInfoList,
9098 ) -> *mut GFileAttributeInfoList;
9099 pub fn g_file_attribute_info_list_unref(list: *mut GFileAttributeInfoList);
9100
9101 pub fn g_file_attribute_matcher_get_type() -> GType;
9105 pub fn g_file_attribute_matcher_new(attributes: *const c_char) -> *mut GFileAttributeMatcher;
9106 pub fn g_file_attribute_matcher_enumerate_namespace(
9107 matcher: *mut GFileAttributeMatcher,
9108 ns: *const c_char,
9109 ) -> gboolean;
9110 pub fn g_file_attribute_matcher_enumerate_next(
9111 matcher: *mut GFileAttributeMatcher,
9112 ) -> *const c_char;
9113 pub fn g_file_attribute_matcher_matches(
9114 matcher: *mut GFileAttributeMatcher,
9115 attribute: *const c_char,
9116 ) -> gboolean;
9117 pub fn g_file_attribute_matcher_matches_only(
9118 matcher: *mut GFileAttributeMatcher,
9119 attribute: *const c_char,
9120 ) -> gboolean;
9121 pub fn g_file_attribute_matcher_ref(
9122 matcher: *mut GFileAttributeMatcher,
9123 ) -> *mut GFileAttributeMatcher;
9124 pub fn g_file_attribute_matcher_subtract(
9125 matcher: *mut GFileAttributeMatcher,
9126 subtract: *mut GFileAttributeMatcher,
9127 ) -> *mut GFileAttributeMatcher;
9128 pub fn g_file_attribute_matcher_to_string(matcher: *mut GFileAttributeMatcher) -> *mut c_char;
9129 pub fn g_file_attribute_matcher_unref(matcher: *mut GFileAttributeMatcher);
9130
9131 pub fn g_io_extension_get_name(extension: *mut GIOExtension) -> *const c_char;
9135 pub fn g_io_extension_get_priority(extension: *mut GIOExtension) -> c_int;
9136 pub fn g_io_extension_get_type(extension: *mut GIOExtension) -> GType;
9137 pub fn g_io_extension_ref_class(extension: *mut GIOExtension) -> *mut gobject::GTypeClass;
9138
9139 pub fn g_io_extension_point_get_extension_by_name(
9143 extension_point: *mut GIOExtensionPoint,
9144 name: *const c_char,
9145 ) -> *mut GIOExtension;
9146 pub fn g_io_extension_point_get_extensions(
9147 extension_point: *mut GIOExtensionPoint,
9148 ) -> *mut glib::GList;
9149 pub fn g_io_extension_point_get_required_type(extension_point: *mut GIOExtensionPoint)
9150 -> GType;
9151 pub fn g_io_extension_point_set_required_type(
9152 extension_point: *mut GIOExtensionPoint,
9153 type_: GType,
9154 );
9155 pub fn g_io_extension_point_implement(
9156 extension_point_name: *const c_char,
9157 type_: GType,
9158 extension_name: *const c_char,
9159 priority: c_int,
9160 ) -> *mut GIOExtension;
9161 pub fn g_io_extension_point_lookup(name: *const c_char) -> *mut GIOExtensionPoint;
9162 pub fn g_io_extension_point_register(name: *const c_char) -> *mut GIOExtensionPoint;
9163
9164 pub fn g_io_module_scope_block(scope: *mut GIOModuleScope, basename: *const c_char);
9168 pub fn g_io_module_scope_free(scope: *mut GIOModuleScope);
9169 pub fn g_io_module_scope_new(flags: GIOModuleScopeFlags) -> *mut GIOModuleScope;
9170
9171 pub fn g_io_scheduler_job_send_to_mainloop(
9175 job: *mut GIOSchedulerJob,
9176 func: glib::GSourceFunc,
9177 user_data: gpointer,
9178 notify: glib::GDestroyNotify,
9179 ) -> gboolean;
9180 pub fn g_io_scheduler_job_send_to_mainloop_async(
9181 job: *mut GIOSchedulerJob,
9182 func: glib::GSourceFunc,
9183 user_data: gpointer,
9184 notify: glib::GDestroyNotify,
9185 );
9186
9187 pub fn g_resource_get_type() -> GType;
9191 pub fn g_resource_new_from_data(
9192 data: *mut glib::GBytes,
9193 error: *mut *mut glib::GError,
9194 ) -> *mut GResource;
9195 pub fn g_resource_enumerate_children(
9196 resource: *mut GResource,
9197 path: *const c_char,
9198 lookup_flags: GResourceLookupFlags,
9199 error: *mut *mut glib::GError,
9200 ) -> *mut *mut c_char;
9201 pub fn g_resource_get_info(
9202 resource: *mut GResource,
9203 path: *const c_char,
9204 lookup_flags: GResourceLookupFlags,
9205 size: *mut size_t,
9206 flags: *mut u32,
9207 error: *mut *mut glib::GError,
9208 ) -> gboolean;
9209 pub fn g_resource_lookup_data(
9210 resource: *mut GResource,
9211 path: *const c_char,
9212 lookup_flags: GResourceLookupFlags,
9213 error: *mut *mut glib::GError,
9214 ) -> *mut glib::GBytes;
9215 pub fn g_resource_open_stream(
9216 resource: *mut GResource,
9217 path: *const c_char,
9218 lookup_flags: GResourceLookupFlags,
9219 error: *mut *mut glib::GError,
9220 ) -> *mut GInputStream;
9221 pub fn g_resource_ref(resource: *mut GResource) -> *mut GResource;
9222 pub fn g_resource_unref(resource: *mut GResource);
9223 pub fn g_resource_load(
9224 filename: *const c_char,
9225 error: *mut *mut glib::GError,
9226 ) -> *mut GResource;
9227
9228 pub fn g_settings_schema_get_type() -> GType;
9232 pub fn g_settings_schema_get_id(schema: *mut GSettingsSchema) -> *const c_char;
9233 pub fn g_settings_schema_get_key(
9234 schema: *mut GSettingsSchema,
9235 name: *const c_char,
9236 ) -> *mut GSettingsSchemaKey;
9237 pub fn g_settings_schema_get_path(schema: *mut GSettingsSchema) -> *const c_char;
9238 pub fn g_settings_schema_has_key(schema: *mut GSettingsSchema, name: *const c_char)
9239 -> gboolean;
9240 #[cfg(any(feature = "v2_44", feature = "dox"))]
9241 pub fn g_settings_schema_list_children(schema: *mut GSettingsSchema) -> *mut *mut c_char;
9242 #[cfg(any(feature = "v2_46", feature = "dox"))]
9243 pub fn g_settings_schema_list_keys(schema: *mut GSettingsSchema) -> *mut *mut c_char;
9244 pub fn g_settings_schema_ref(schema: *mut GSettingsSchema) -> *mut GSettingsSchema;
9245 pub fn g_settings_schema_unref(schema: *mut GSettingsSchema);
9246
9247 pub fn g_settings_schema_key_get_type() -> GType;
9251 pub fn g_settings_schema_key_get_default_value(
9252 key: *mut GSettingsSchemaKey,
9253 ) -> *mut glib::GVariant;
9254 pub fn g_settings_schema_key_get_description(key: *mut GSettingsSchemaKey) -> *const c_char;
9255 #[cfg(any(feature = "v2_44", feature = "dox"))]
9256 pub fn g_settings_schema_key_get_name(key: *mut GSettingsSchemaKey) -> *const c_char;
9257 pub fn g_settings_schema_key_get_range(key: *mut GSettingsSchemaKey) -> *mut glib::GVariant;
9258 pub fn g_settings_schema_key_get_summary(key: *mut GSettingsSchemaKey) -> *const c_char;
9259 pub fn g_settings_schema_key_get_value_type(
9260 key: *mut GSettingsSchemaKey,
9261 ) -> *const glib::GVariantType;
9262 pub fn g_settings_schema_key_range_check(
9263 key: *mut GSettingsSchemaKey,
9264 value: *mut glib::GVariant,
9265 ) -> gboolean;
9266 pub fn g_settings_schema_key_ref(key: *mut GSettingsSchemaKey) -> *mut GSettingsSchemaKey;
9267 pub fn g_settings_schema_key_unref(key: *mut GSettingsSchemaKey);
9268
9269 pub fn g_settings_schema_source_get_type() -> GType;
9273 pub fn g_settings_schema_source_new_from_directory(
9274 directory: *const c_char,
9275 parent: *mut GSettingsSchemaSource,
9276 trusted: gboolean,
9277 error: *mut *mut glib::GError,
9278 ) -> *mut GSettingsSchemaSource;
9279 pub fn g_settings_schema_source_list_schemas(
9280 source: *mut GSettingsSchemaSource,
9281 recursive: gboolean,
9282 non_relocatable: *mut *mut *mut c_char,
9283 relocatable: *mut *mut *mut c_char,
9284 );
9285 pub fn g_settings_schema_source_lookup(
9286 source: *mut GSettingsSchemaSource,
9287 schema_id: *const c_char,
9288 recursive: gboolean,
9289 ) -> *mut GSettingsSchema;
9290 pub fn g_settings_schema_source_ref(
9291 source: *mut GSettingsSchemaSource,
9292 ) -> *mut GSettingsSchemaSource;
9293 pub fn g_settings_schema_source_unref(source: *mut GSettingsSchemaSource);
9294 pub fn g_settings_schema_source_get_default() -> *mut GSettingsSchemaSource;
9295
9296 pub fn g_srv_target_get_type() -> GType;
9300 pub fn g_srv_target_new(
9301 hostname: *const c_char,
9302 port: u16,
9303 priority: u16,
9304 weight: u16,
9305 ) -> *mut GSrvTarget;
9306 pub fn g_srv_target_copy(target: *mut GSrvTarget) -> *mut GSrvTarget;
9307 pub fn g_srv_target_free(target: *mut GSrvTarget);
9308 pub fn g_srv_target_get_hostname(target: *mut GSrvTarget) -> *const c_char;
9309 pub fn g_srv_target_get_port(target: *mut GSrvTarget) -> u16;
9310 pub fn g_srv_target_get_priority(target: *mut GSrvTarget) -> u16;
9311 pub fn g_srv_target_get_weight(target: *mut GSrvTarget) -> u16;
9312 pub fn g_srv_target_list_sort(targets: *mut glib::GList) -> *mut glib::GList;
9313
9314 pub fn g_static_resource_fini(static_resource: *mut GStaticResource);
9318 pub fn g_static_resource_get_resource(static_resource: *mut GStaticResource) -> *mut GResource;
9319 pub fn g_static_resource_init(static_resource: *mut GStaticResource);
9320
9321 pub fn g_unix_mount_entry_get_type() -> GType;
9325
9326 pub fn g_unix_mount_point_get_type() -> GType;
9330 pub fn g_unix_mount_point_compare(
9331 mount1: *mut GUnixMountPoint,
9332 mount2: *mut GUnixMountPoint,
9333 ) -> c_int;
9334 #[cfg(any(feature = "v2_54", feature = "dox"))]
9335 pub fn g_unix_mount_point_copy(mount_point: *mut GUnixMountPoint) -> *mut GUnixMountPoint;
9336 pub fn g_unix_mount_point_free(mount_point: *mut GUnixMountPoint);
9337 pub fn g_unix_mount_point_get_device_path(mount_point: *mut GUnixMountPoint) -> *const c_char;
9338 pub fn g_unix_mount_point_get_fs_type(mount_point: *mut GUnixMountPoint) -> *const c_char;
9339 pub fn g_unix_mount_point_get_mount_path(mount_point: *mut GUnixMountPoint) -> *const c_char;
9340 pub fn g_unix_mount_point_get_options(mount_point: *mut GUnixMountPoint) -> *const c_char;
9341 pub fn g_unix_mount_point_guess_can_eject(mount_point: *mut GUnixMountPoint) -> gboolean;
9342 pub fn g_unix_mount_point_guess_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon;
9343 pub fn g_unix_mount_point_guess_name(mount_point: *mut GUnixMountPoint) -> *mut c_char;
9344 pub fn g_unix_mount_point_guess_symbolic_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon;
9345 pub fn g_unix_mount_point_is_loopback(mount_point: *mut GUnixMountPoint) -> gboolean;
9346 pub fn g_unix_mount_point_is_readonly(mount_point: *mut GUnixMountPoint) -> gboolean;
9347 pub fn g_unix_mount_point_is_user_mountable(mount_point: *mut GUnixMountPoint) -> gboolean;
9348
9349 pub fn g_app_info_monitor_get_type() -> GType;
9353 pub fn g_app_info_monitor_get() -> *mut GAppInfoMonitor;
9354
9355 pub fn g_app_launch_context_get_type() -> GType;
9359 pub fn g_app_launch_context_new() -> *mut GAppLaunchContext;
9360 pub fn g_app_launch_context_get_display(
9361 context: *mut GAppLaunchContext,
9362 info: *mut GAppInfo,
9363 files: *mut glib::GList,
9364 ) -> *mut c_char;
9365 pub fn g_app_launch_context_get_environment(
9366 context: *mut GAppLaunchContext,
9367 ) -> *mut *mut c_char;
9368 pub fn g_app_launch_context_get_startup_notify_id(
9369 context: *mut GAppLaunchContext,
9370 info: *mut GAppInfo,
9371 files: *mut glib::GList,
9372 ) -> *mut c_char;
9373 pub fn g_app_launch_context_launch_failed(
9374 context: *mut GAppLaunchContext,
9375 startup_notify_id: *const c_char,
9376 );
9377 pub fn g_app_launch_context_setenv(
9378 context: *mut GAppLaunchContext,
9379 variable: *const c_char,
9380 value: *const c_char,
9381 );
9382 pub fn g_app_launch_context_unsetenv(context: *mut GAppLaunchContext, variable: *const c_char);
9383
9384 pub fn g_application_get_type() -> GType;
9388 pub fn g_application_new(
9389 application_id: *const c_char,
9390 flags: GApplicationFlags,
9391 ) -> *mut GApplication;
9392 pub fn g_application_get_default() -> *mut GApplication;
9393 pub fn g_application_id_is_valid(application_id: *const c_char) -> gboolean;
9394 pub fn g_application_activate(application: *mut GApplication);
9395 pub fn g_application_add_main_option(
9396 application: *mut GApplication,
9397 long_name: *const c_char,
9398 short_name: c_char,
9399 flags: glib::GOptionFlags,
9400 arg: glib::GOptionArg,
9401 description: *const c_char,
9402 arg_description: *const c_char,
9403 );
9404 pub fn g_application_add_main_option_entries(
9405 application: *mut GApplication,
9406 entries: *const glib::GOptionEntry,
9407 );
9408 pub fn g_application_add_option_group(
9409 application: *mut GApplication,
9410 group: *mut glib::GOptionGroup,
9411 );
9412 #[cfg(any(feature = "v2_44", feature = "dox"))]
9413 pub fn g_application_bind_busy_property(
9414 application: *mut GApplication,
9415 object: *mut gobject::GObject,
9416 property: *const c_char,
9417 );
9418 pub fn g_application_get_application_id(application: *mut GApplication) -> *const c_char;
9419 pub fn g_application_get_dbus_connection(
9420 application: *mut GApplication,
9421 ) -> *mut GDBusConnection;
9422 pub fn g_application_get_dbus_object_path(application: *mut GApplication) -> *const c_char;
9423 pub fn g_application_get_flags(application: *mut GApplication) -> GApplicationFlags;
9424 pub fn g_application_get_inactivity_timeout(application: *mut GApplication) -> c_uint;
9425 #[cfg(any(feature = "v2_44", feature = "dox"))]
9426 pub fn g_application_get_is_busy(application: *mut GApplication) -> gboolean;
9427 pub fn g_application_get_is_registered(application: *mut GApplication) -> gboolean;
9428 pub fn g_application_get_is_remote(application: *mut GApplication) -> gboolean;
9429 pub fn g_application_get_resource_base_path(application: *mut GApplication) -> *const c_char;
9430 pub fn g_application_hold(application: *mut GApplication);
9431 pub fn g_application_mark_busy(application: *mut GApplication);
9432 pub fn g_application_open(
9433 application: *mut GApplication,
9434 files: *mut *mut GFile,
9435 n_files: c_int,
9436 hint: *const c_char,
9437 );
9438 pub fn g_application_quit(application: *mut GApplication);
9439 pub fn g_application_register(
9440 application: *mut GApplication,
9441 cancellable: *mut GCancellable,
9442 error: *mut *mut glib::GError,
9443 ) -> gboolean;
9444 pub fn g_application_release(application: *mut GApplication);
9445 pub fn g_application_run(
9446 application: *mut GApplication,
9447 argc: c_int,
9448 argv: *mut *mut c_char,
9449 ) -> c_int;
9450 pub fn g_application_send_notification(
9451 application: *mut GApplication,
9452 id: *const c_char,
9453 notification: *mut GNotification,
9454 );
9455 pub fn g_application_set_action_group(
9456 application: *mut GApplication,
9457 action_group: *mut GActionGroup,
9458 );
9459 pub fn g_application_set_application_id(
9460 application: *mut GApplication,
9461 application_id: *const c_char,
9462 );
9463 pub fn g_application_set_default(application: *mut GApplication);
9464 pub fn g_application_set_flags(application: *mut GApplication, flags: GApplicationFlags);
9465 pub fn g_application_set_inactivity_timeout(
9466 application: *mut GApplication,
9467 inactivity_timeout: c_uint,
9468 );
9469 #[cfg(any(feature = "v2_56", feature = "dox"))]
9470 pub fn g_application_set_option_context_description(
9471 application: *mut GApplication,
9472 description: *const c_char,
9473 );
9474 #[cfg(any(feature = "v2_56", feature = "dox"))]
9475 pub fn g_application_set_option_context_parameter_string(
9476 application: *mut GApplication,
9477 parameter_string: *const c_char,
9478 );
9479 #[cfg(any(feature = "v2_56", feature = "dox"))]
9480 pub fn g_application_set_option_context_summary(
9481 application: *mut GApplication,
9482 summary: *const c_char,
9483 );
9484 pub fn g_application_set_resource_base_path(
9485 application: *mut GApplication,
9486 resource_path: *const c_char,
9487 );
9488 #[cfg(any(feature = "v2_44", feature = "dox"))]
9489 pub fn g_application_unbind_busy_property(
9490 application: *mut GApplication,
9491 object: *mut gobject::GObject,
9492 property: *const c_char,
9493 );
9494 pub fn g_application_unmark_busy(application: *mut GApplication);
9495 pub fn g_application_withdraw_notification(application: *mut GApplication, id: *const c_char);
9496
9497 pub fn g_application_command_line_get_type() -> GType;
9501 pub fn g_application_command_line_create_file_for_arg(
9502 cmdline: *mut GApplicationCommandLine,
9503 arg: *const c_char,
9504 ) -> *mut GFile;
9505 pub fn g_application_command_line_get_arguments(
9506 cmdline: *mut GApplicationCommandLine,
9507 argc: *mut c_int,
9508 ) -> *mut *mut c_char;
9509 pub fn g_application_command_line_get_cwd(
9510 cmdline: *mut GApplicationCommandLine,
9511 ) -> *const c_char;
9512 pub fn g_application_command_line_get_environ(
9513 cmdline: *mut GApplicationCommandLine,
9514 ) -> *const *const c_char;
9515 pub fn g_application_command_line_get_exit_status(
9516 cmdline: *mut GApplicationCommandLine,
9517 ) -> c_int;
9518 pub fn g_application_command_line_get_is_remote(
9519 cmdline: *mut GApplicationCommandLine,
9520 ) -> gboolean;
9521 pub fn g_application_command_line_get_options_dict(
9522 cmdline: *mut GApplicationCommandLine,
9523 ) -> *mut glib::GVariantDict;
9524 pub fn g_application_command_line_get_platform_data(
9525 cmdline: *mut GApplicationCommandLine,
9526 ) -> *mut glib::GVariant;
9527 pub fn g_application_command_line_get_stdin(
9528 cmdline: *mut GApplicationCommandLine,
9529 ) -> *mut GInputStream;
9530 pub fn g_application_command_line_getenv(
9531 cmdline: *mut GApplicationCommandLine,
9532 name: *const c_char,
9533 ) -> *const c_char;
9534 pub fn g_application_command_line_print(
9535 cmdline: *mut GApplicationCommandLine,
9536 format: *const c_char,
9537 ...
9538 );
9539 pub fn g_application_command_line_printerr(
9540 cmdline: *mut GApplicationCommandLine,
9541 format: *const c_char,
9542 ...
9543 );
9544 pub fn g_application_command_line_set_exit_status(
9545 cmdline: *mut GApplicationCommandLine,
9546 exit_status: c_int,
9547 );
9548
9549 pub fn g_buffered_input_stream_get_type() -> GType;
9553 pub fn g_buffered_input_stream_new(base_stream: *mut GInputStream) -> *mut GInputStream;
9554 pub fn g_buffered_input_stream_new_sized(
9555 base_stream: *mut GInputStream,
9556 size: size_t,
9557 ) -> *mut GInputStream;
9558 pub fn g_buffered_input_stream_fill(
9559 stream: *mut GBufferedInputStream,
9560 count: ssize_t,
9561 cancellable: *mut GCancellable,
9562 error: *mut *mut glib::GError,
9563 ) -> ssize_t;
9564 pub fn g_buffered_input_stream_fill_async(
9565 stream: *mut GBufferedInputStream,
9566 count: ssize_t,
9567 io_priority: c_int,
9568 cancellable: *mut GCancellable,
9569 callback: GAsyncReadyCallback,
9570 user_data: gpointer,
9571 );
9572 pub fn g_buffered_input_stream_fill_finish(
9573 stream: *mut GBufferedInputStream,
9574 result: *mut GAsyncResult,
9575 error: *mut *mut glib::GError,
9576 ) -> ssize_t;
9577 pub fn g_buffered_input_stream_get_available(stream: *mut GBufferedInputStream) -> size_t;
9578 pub fn g_buffered_input_stream_get_buffer_size(stream: *mut GBufferedInputStream) -> size_t;
9579 pub fn g_buffered_input_stream_peek(
9580 stream: *mut GBufferedInputStream,
9581 buffer: *mut u8,
9582 offset: size_t,
9583 count: size_t,
9584 ) -> size_t;
9585 pub fn g_buffered_input_stream_peek_buffer(
9586 stream: *mut GBufferedInputStream,
9587 count: *mut size_t,
9588 ) -> *mut u8;
9589 pub fn g_buffered_input_stream_read_byte(
9590 stream: *mut GBufferedInputStream,
9591 cancellable: *mut GCancellable,
9592 error: *mut *mut glib::GError,
9593 ) -> c_int;
9594 pub fn g_buffered_input_stream_set_buffer_size(stream: *mut GBufferedInputStream, size: size_t);
9595
9596 pub fn g_buffered_output_stream_get_type() -> GType;
9600 pub fn g_buffered_output_stream_new(base_stream: *mut GOutputStream) -> *mut GOutputStream;
9601 pub fn g_buffered_output_stream_new_sized(
9602 base_stream: *mut GOutputStream,
9603 size: size_t,
9604 ) -> *mut GOutputStream;
9605 pub fn g_buffered_output_stream_get_auto_grow(stream: *mut GBufferedOutputStream) -> gboolean;
9606 pub fn g_buffered_output_stream_get_buffer_size(stream: *mut GBufferedOutputStream) -> size_t;
9607 pub fn g_buffered_output_stream_set_auto_grow(
9608 stream: *mut GBufferedOutputStream,
9609 auto_grow: gboolean,
9610 );
9611 pub fn g_buffered_output_stream_set_buffer_size(
9612 stream: *mut GBufferedOutputStream,
9613 size: size_t,
9614 );
9615
9616 pub fn g_bytes_icon_get_type() -> GType;
9620 pub fn g_bytes_icon_new(bytes: *mut glib::GBytes) -> *mut GBytesIcon;
9621 pub fn g_bytes_icon_get_bytes(icon: *mut GBytesIcon) -> *mut glib::GBytes;
9622
9623 pub fn g_cancellable_get_type() -> GType;
9627 pub fn g_cancellable_new() -> *mut GCancellable;
9628 pub fn g_cancellable_get_current() -> *mut GCancellable;
9629 pub fn g_cancellable_cancel(cancellable: *mut GCancellable);
9630 pub fn g_cancellable_connect(
9631 cancellable: *mut GCancellable,
9632 callback: gobject::GCallback,
9633 data: gpointer,
9634 data_destroy_func: glib::GDestroyNotify,
9635 ) -> c_ulong;
9636 pub fn g_cancellable_disconnect(cancellable: *mut GCancellable, handler_id: c_ulong);
9637 pub fn g_cancellable_get_fd(cancellable: *mut GCancellable) -> c_int;
9638 pub fn g_cancellable_is_cancelled(cancellable: *mut GCancellable) -> gboolean;
9639 pub fn g_cancellable_make_pollfd(
9640 cancellable: *mut GCancellable,
9641 pollfd: *mut glib::GPollFD,
9642 ) -> gboolean;
9643 pub fn g_cancellable_pop_current(cancellable: *mut GCancellable);
9644 pub fn g_cancellable_push_current(cancellable: *mut GCancellable);
9645 pub fn g_cancellable_release_fd(cancellable: *mut GCancellable);
9646 pub fn g_cancellable_reset(cancellable: *mut GCancellable);
9647 pub fn g_cancellable_set_error_if_cancelled(
9648 cancellable: *mut GCancellable,
9649 error: *mut *mut glib::GError,
9650 ) -> gboolean;
9651 pub fn g_cancellable_source_new(cancellable: *mut GCancellable) -> *mut glib::GSource;
9652
9653 pub fn g_charset_converter_get_type() -> GType;
9657 pub fn g_charset_converter_new(
9658 to_charset: *const c_char,
9659 from_charset: *const c_char,
9660 error: *mut *mut glib::GError,
9661 ) -> *mut GCharsetConverter;
9662 pub fn g_charset_converter_get_num_fallbacks(converter: *mut GCharsetConverter) -> c_uint;
9663 pub fn g_charset_converter_get_use_fallback(converter: *mut GCharsetConverter) -> gboolean;
9664 pub fn g_charset_converter_set_use_fallback(
9665 converter: *mut GCharsetConverter,
9666 use_fallback: gboolean,
9667 );
9668
9669 pub fn g_converter_input_stream_get_type() -> GType;
9673 pub fn g_converter_input_stream_new(
9674 base_stream: *mut GInputStream,
9675 converter: *mut GConverter,
9676 ) -> *mut GInputStream;
9677 pub fn g_converter_input_stream_get_converter(
9678 converter_stream: *mut GConverterInputStream,
9679 ) -> *mut GConverter;
9680
9681 pub fn g_converter_output_stream_get_type() -> GType;
9685 pub fn g_converter_output_stream_new(
9686 base_stream: *mut GOutputStream,
9687 converter: *mut GConverter,
9688 ) -> *mut GOutputStream;
9689 pub fn g_converter_output_stream_get_converter(
9690 converter_stream: *mut GConverterOutputStream,
9691 ) -> *mut GConverter;
9692
9693 pub fn g_credentials_get_type() -> GType;
9697 pub fn g_credentials_new() -> *mut GCredentials;
9698 pub fn g_credentials_get_native(
9699 credentials: *mut GCredentials,
9700 native_type: GCredentialsType,
9701 ) -> gpointer;
9702 pub fn g_credentials_get_unix_pid(
9703 credentials: *mut GCredentials,
9704 error: *mut *mut glib::GError,
9705 ) -> c_int;
9706 pub fn g_credentials_get_unix_user(
9707 credentials: *mut GCredentials,
9708 error: *mut *mut glib::GError,
9709 ) -> c_uint;
9710 pub fn g_credentials_is_same_user(
9711 credentials: *mut GCredentials,
9712 other_credentials: *mut GCredentials,
9713 error: *mut *mut glib::GError,
9714 ) -> gboolean;
9715 pub fn g_credentials_set_native(
9716 credentials: *mut GCredentials,
9717 native_type: GCredentialsType,
9718 native: gpointer,
9719 );
9720 pub fn g_credentials_set_unix_user(
9721 credentials: *mut GCredentials,
9722 uid: c_uint,
9723 error: *mut *mut glib::GError,
9724 ) -> gboolean;
9725 pub fn g_credentials_to_string(credentials: *mut GCredentials) -> *mut c_char;
9726
9727 pub fn g_dbus_action_group_get_type() -> GType;
9731 pub fn g_dbus_action_group_get(
9732 connection: *mut GDBusConnection,
9733 bus_name: *const c_char,
9734 object_path: *const c_char,
9735 ) -> *mut GDBusActionGroup;
9736
9737 pub fn g_dbus_auth_observer_get_type() -> GType;
9741 pub fn g_dbus_auth_observer_new() -> *mut GDBusAuthObserver;
9742 pub fn g_dbus_auth_observer_allow_mechanism(
9743 observer: *mut GDBusAuthObserver,
9744 mechanism: *const c_char,
9745 ) -> gboolean;
9746 pub fn g_dbus_auth_observer_authorize_authenticated_peer(
9747 observer: *mut GDBusAuthObserver,
9748 stream: *mut GIOStream,
9749 credentials: *mut GCredentials,
9750 ) -> gboolean;
9751
9752 pub fn g_dbus_connection_get_type() -> GType;
9756 pub fn g_dbus_connection_new_finish(
9757 res: *mut GAsyncResult,
9758 error: *mut *mut glib::GError,
9759 ) -> *mut GDBusConnection;
9760 pub fn g_dbus_connection_new_for_address_finish(
9761 res: *mut GAsyncResult,
9762 error: *mut *mut glib::GError,
9763 ) -> *mut GDBusConnection;
9764 pub fn g_dbus_connection_new_for_address_sync(
9765 address: *const c_char,
9766 flags: GDBusConnectionFlags,
9767 observer: *mut GDBusAuthObserver,
9768 cancellable: *mut GCancellable,
9769 error: *mut *mut glib::GError,
9770 ) -> *mut GDBusConnection;
9771 pub fn g_dbus_connection_new_sync(
9772 stream: *mut GIOStream,
9773 guid: *const c_char,
9774 flags: GDBusConnectionFlags,
9775 observer: *mut GDBusAuthObserver,
9776 cancellable: *mut GCancellable,
9777 error: *mut *mut glib::GError,
9778 ) -> *mut GDBusConnection;
9779 pub fn g_dbus_connection_new(
9780 stream: *mut GIOStream,
9781 guid: *const c_char,
9782 flags: GDBusConnectionFlags,
9783 observer: *mut GDBusAuthObserver,
9784 cancellable: *mut GCancellable,
9785 callback: GAsyncReadyCallback,
9786 user_data: gpointer,
9787 );
9788 pub fn g_dbus_connection_new_for_address(
9789 address: *const c_char,
9790 flags: GDBusConnectionFlags,
9791 observer: *mut GDBusAuthObserver,
9792 cancellable: *mut GCancellable,
9793 callback: GAsyncReadyCallback,
9794 user_data: gpointer,
9795 );
9796 pub fn g_dbus_connection_add_filter(
9797 connection: *mut GDBusConnection,
9798 filter_function: GDBusMessageFilterFunction,
9799 user_data: gpointer,
9800 user_data_free_func: glib::GDestroyNotify,
9801 ) -> c_uint;
9802 pub fn g_dbus_connection_call(
9803 connection: *mut GDBusConnection,
9804 bus_name: *const c_char,
9805 object_path: *const c_char,
9806 interface_name: *const c_char,
9807 method_name: *const c_char,
9808 parameters: *mut glib::GVariant,
9809 reply_type: *const glib::GVariantType,
9810 flags: GDBusCallFlags,
9811 timeout_msec: c_int,
9812 cancellable: *mut GCancellable,
9813 callback: GAsyncReadyCallback,
9814 user_data: gpointer,
9815 );
9816 pub fn g_dbus_connection_call_finish(
9817 connection: *mut GDBusConnection,
9818 res: *mut GAsyncResult,
9819 error: *mut *mut glib::GError,
9820 ) -> *mut glib::GVariant;
9821 pub fn g_dbus_connection_call_sync(
9822 connection: *mut GDBusConnection,
9823 bus_name: *const c_char,
9824 object_path: *const c_char,
9825 interface_name: *const c_char,
9826 method_name: *const c_char,
9827 parameters: *mut glib::GVariant,
9828 reply_type: *const glib::GVariantType,
9829 flags: GDBusCallFlags,
9830 timeout_msec: c_int,
9831 cancellable: *mut GCancellable,
9832 error: *mut *mut glib::GError,
9833 ) -> *mut glib::GVariant;
9834 pub fn g_dbus_connection_call_with_unix_fd_list(
9835 connection: *mut GDBusConnection,
9836 bus_name: *const c_char,
9837 object_path: *const c_char,
9838 interface_name: *const c_char,
9839 method_name: *const c_char,
9840 parameters: *mut glib::GVariant,
9841 reply_type: *const glib::GVariantType,
9842 flags: GDBusCallFlags,
9843 timeout_msec: c_int,
9844 fd_list: *mut GUnixFDList,
9845 cancellable: *mut GCancellable,
9846 callback: GAsyncReadyCallback,
9847 user_data: gpointer,
9848 );
9849 pub fn g_dbus_connection_call_with_unix_fd_list_finish(
9850 connection: *mut GDBusConnection,
9851 out_fd_list: *mut *mut GUnixFDList,
9852 res: *mut GAsyncResult,
9853 error: *mut *mut glib::GError,
9854 ) -> *mut glib::GVariant;
9855 pub fn g_dbus_connection_call_with_unix_fd_list_sync(
9856 connection: *mut GDBusConnection,
9857 bus_name: *const c_char,
9858 object_path: *const c_char,
9859 interface_name: *const c_char,
9860 method_name: *const c_char,
9861 parameters: *mut glib::GVariant,
9862 reply_type: *const glib::GVariantType,
9863 flags: GDBusCallFlags,
9864 timeout_msec: c_int,
9865 fd_list: *mut GUnixFDList,
9866 out_fd_list: *mut *mut GUnixFDList,
9867 cancellable: *mut GCancellable,
9868 error: *mut *mut glib::GError,
9869 ) -> *mut glib::GVariant;
9870 pub fn g_dbus_connection_close(
9871 connection: *mut GDBusConnection,
9872 cancellable: *mut GCancellable,
9873 callback: GAsyncReadyCallback,
9874 user_data: gpointer,
9875 );
9876 pub fn g_dbus_connection_close_finish(
9877 connection: *mut GDBusConnection,
9878 res: *mut GAsyncResult,
9879 error: *mut *mut glib::GError,
9880 ) -> gboolean;
9881 pub fn g_dbus_connection_close_sync(
9882 connection: *mut GDBusConnection,
9883 cancellable: *mut GCancellable,
9884 error: *mut *mut glib::GError,
9885 ) -> gboolean;
9886 pub fn g_dbus_connection_emit_signal(
9887 connection: *mut GDBusConnection,
9888 destination_bus_name: *const c_char,
9889 object_path: *const c_char,
9890 interface_name: *const c_char,
9891 signal_name: *const c_char,
9892 parameters: *mut glib::GVariant,
9893 error: *mut *mut glib::GError,
9894 ) -> gboolean;
9895 pub fn g_dbus_connection_export_action_group(
9896 connection: *mut GDBusConnection,
9897 object_path: *const c_char,
9898 action_group: *mut GActionGroup,
9899 error: *mut *mut glib::GError,
9900 ) -> c_uint;
9901 pub fn g_dbus_connection_export_menu_model(
9902 connection: *mut GDBusConnection,
9903 object_path: *const c_char,
9904 menu: *mut GMenuModel,
9905 error: *mut *mut glib::GError,
9906 ) -> c_uint;
9907 pub fn g_dbus_connection_flush(
9908 connection: *mut GDBusConnection,
9909 cancellable: *mut GCancellable,
9910 callback: GAsyncReadyCallback,
9911 user_data: gpointer,
9912 );
9913 pub fn g_dbus_connection_flush_finish(
9914 connection: *mut GDBusConnection,
9915 res: *mut GAsyncResult,
9916 error: *mut *mut glib::GError,
9917 ) -> gboolean;
9918 pub fn g_dbus_connection_flush_sync(
9919 connection: *mut GDBusConnection,
9920 cancellable: *mut GCancellable,
9921 error: *mut *mut glib::GError,
9922 ) -> gboolean;
9923 pub fn g_dbus_connection_get_capabilities(
9924 connection: *mut GDBusConnection,
9925 ) -> GDBusCapabilityFlags;
9926 pub fn g_dbus_connection_get_exit_on_close(connection: *mut GDBusConnection) -> gboolean;
9927 pub fn g_dbus_connection_get_guid(connection: *mut GDBusConnection) -> *const c_char;
9928 pub fn g_dbus_connection_get_last_serial(connection: *mut GDBusConnection) -> u32;
9929 pub fn g_dbus_connection_get_peer_credentials(
9930 connection: *mut GDBusConnection,
9931 ) -> *mut GCredentials;
9932 pub fn g_dbus_connection_get_stream(connection: *mut GDBusConnection) -> *mut GIOStream;
9933 pub fn g_dbus_connection_get_unique_name(connection: *mut GDBusConnection) -> *const c_char;
9934 pub fn g_dbus_connection_is_closed(connection: *mut GDBusConnection) -> gboolean;
9935 pub fn g_dbus_connection_register_object(
9936 connection: *mut GDBusConnection,
9937 object_path: *const c_char,
9938 interface_info: *mut GDBusInterfaceInfo,
9939 vtable: *const GDBusInterfaceVTable,
9940 user_data: gpointer,
9941 user_data_free_func: glib::GDestroyNotify,
9942 error: *mut *mut glib::GError,
9943 ) -> c_uint;
9944 #[cfg(any(feature = "v2_46", feature = "dox"))]
9945 pub fn g_dbus_connection_register_object_with_closures(
9946 connection: *mut GDBusConnection,
9947 object_path: *const c_char,
9948 interface_info: *mut GDBusInterfaceInfo,
9949 method_call_closure: *mut gobject::GClosure,
9950 get_property_closure: *mut gobject::GClosure,
9951 set_property_closure: *mut gobject::GClosure,
9952 error: *mut *mut glib::GError,
9953 ) -> c_uint;
9954 pub fn g_dbus_connection_register_subtree(
9955 connection: *mut GDBusConnection,
9956 object_path: *const c_char,
9957 vtable: *const GDBusSubtreeVTable,
9958 flags: GDBusSubtreeFlags,
9959 user_data: gpointer,
9960 user_data_free_func: glib::GDestroyNotify,
9961 error: *mut *mut glib::GError,
9962 ) -> c_uint;
9963 pub fn g_dbus_connection_remove_filter(connection: *mut GDBusConnection, filter_id: c_uint);
9964 pub fn g_dbus_connection_send_message(
9965 connection: *mut GDBusConnection,
9966 message: *mut GDBusMessage,
9967 flags: GDBusSendMessageFlags,
9968 out_serial: *mut u32,
9969 error: *mut *mut glib::GError,
9970 ) -> gboolean;
9971 pub fn g_dbus_connection_send_message_with_reply(
9972 connection: *mut GDBusConnection,
9973 message: *mut GDBusMessage,
9974 flags: GDBusSendMessageFlags,
9975 timeout_msec: c_int,
9976 out_serial: *mut u32,
9977 cancellable: *mut GCancellable,
9978 callback: GAsyncReadyCallback,
9979 user_data: gpointer,
9980 );
9981 pub fn g_dbus_connection_send_message_with_reply_finish(
9982 connection: *mut GDBusConnection,
9983 res: *mut GAsyncResult,
9984 error: *mut *mut glib::GError,
9985 ) -> *mut GDBusMessage;
9986 pub fn g_dbus_connection_send_message_with_reply_sync(
9987 connection: *mut GDBusConnection,
9988 message: *mut GDBusMessage,
9989 flags: GDBusSendMessageFlags,
9990 timeout_msec: c_int,
9991 out_serial: *mut u32,
9992 cancellable: *mut GCancellable,
9993 error: *mut *mut glib::GError,
9994 ) -> *mut GDBusMessage;
9995 pub fn g_dbus_connection_set_exit_on_close(
9996 connection: *mut GDBusConnection,
9997 exit_on_close: gboolean,
9998 );
9999 pub fn g_dbus_connection_signal_subscribe(
10000 connection: *mut GDBusConnection,
10001 sender: *const c_char,
10002 interface_name: *const c_char,
10003 member: *const c_char,
10004 object_path: *const c_char,
10005 arg0: *const c_char,
10006 flags: GDBusSignalFlags,
10007 callback: GDBusSignalCallback,
10008 user_data: gpointer,
10009 user_data_free_func: glib::GDestroyNotify,
10010 ) -> c_uint;
10011 pub fn g_dbus_connection_signal_unsubscribe(
10012 connection: *mut GDBusConnection,
10013 subscription_id: c_uint,
10014 );
10015 pub fn g_dbus_connection_start_message_processing(connection: *mut GDBusConnection);
10016 pub fn g_dbus_connection_unexport_action_group(
10017 connection: *mut GDBusConnection,
10018 export_id: c_uint,
10019 );
10020 pub fn g_dbus_connection_unexport_menu_model(
10021 connection: *mut GDBusConnection,
10022 export_id: c_uint,
10023 );
10024 pub fn g_dbus_connection_unregister_object(
10025 connection: *mut GDBusConnection,
10026 registration_id: c_uint,
10027 ) -> gboolean;
10028 pub fn g_dbus_connection_unregister_subtree(
10029 connection: *mut GDBusConnection,
10030 registration_id: c_uint,
10031 ) -> gboolean;
10032
10033 pub fn g_dbus_interface_skeleton_get_type() -> GType;
10037 pub fn g_dbus_interface_skeleton_export(
10038 interface_: *mut GDBusInterfaceSkeleton,
10039 connection: *mut GDBusConnection,
10040 object_path: *const c_char,
10041 error: *mut *mut glib::GError,
10042 ) -> gboolean;
10043 pub fn g_dbus_interface_skeleton_flush(interface_: *mut GDBusInterfaceSkeleton);
10044 pub fn g_dbus_interface_skeleton_get_connection(
10045 interface_: *mut GDBusInterfaceSkeleton,
10046 ) -> *mut GDBusConnection;
10047 pub fn g_dbus_interface_skeleton_get_connections(
10048 interface_: *mut GDBusInterfaceSkeleton,
10049 ) -> *mut glib::GList;
10050 pub fn g_dbus_interface_skeleton_get_flags(
10051 interface_: *mut GDBusInterfaceSkeleton,
10052 ) -> GDBusInterfaceSkeletonFlags;
10053 pub fn g_dbus_interface_skeleton_get_info(
10054 interface_: *mut GDBusInterfaceSkeleton,
10055 ) -> *mut GDBusInterfaceInfo;
10056 pub fn g_dbus_interface_skeleton_get_object_path(
10057 interface_: *mut GDBusInterfaceSkeleton,
10058 ) -> *const c_char;
10059 pub fn g_dbus_interface_skeleton_get_properties(
10060 interface_: *mut GDBusInterfaceSkeleton,
10061 ) -> *mut glib::GVariant;
10062 pub fn g_dbus_interface_skeleton_get_vtable(
10063 interface_: *mut GDBusInterfaceSkeleton,
10064 ) -> *mut GDBusInterfaceVTable;
10065 pub fn g_dbus_interface_skeleton_has_connection(
10066 interface_: *mut GDBusInterfaceSkeleton,
10067 connection: *mut GDBusConnection,
10068 ) -> gboolean;
10069 pub fn g_dbus_interface_skeleton_set_flags(
10070 interface_: *mut GDBusInterfaceSkeleton,
10071 flags: GDBusInterfaceSkeletonFlags,
10072 );
10073 pub fn g_dbus_interface_skeleton_unexport(interface_: *mut GDBusInterfaceSkeleton);
10074 pub fn g_dbus_interface_skeleton_unexport_from_connection(
10075 interface_: *mut GDBusInterfaceSkeleton,
10076 connection: *mut GDBusConnection,
10077 );
10078
10079 pub fn g_dbus_menu_model_get_type() -> GType;
10083 pub fn g_dbus_menu_model_get(
10084 connection: *mut GDBusConnection,
10085 bus_name: *const c_char,
10086 object_path: *const c_char,
10087 ) -> *mut GDBusMenuModel;
10088
10089 pub fn g_dbus_message_get_type() -> GType;
10093 pub fn g_dbus_message_new() -> *mut GDBusMessage;
10094 pub fn g_dbus_message_new_from_blob(
10095 blob: *mut u8,
10096 blob_len: size_t,
10097 capabilities: GDBusCapabilityFlags,
10098 error: *mut *mut glib::GError,
10099 ) -> *mut GDBusMessage;
10100 pub fn g_dbus_message_new_method_call(
10101 name: *const c_char,
10102 path: *const c_char,
10103 interface_: *const c_char,
10104 method: *const c_char,
10105 ) -> *mut GDBusMessage;
10106 pub fn g_dbus_message_new_signal(
10107 path: *const c_char,
10108 interface_: *const c_char,
10109 signal: *const c_char,
10110 ) -> *mut GDBusMessage;
10111 pub fn g_dbus_message_bytes_needed(
10112 blob: *mut u8,
10113 blob_len: size_t,
10114 error: *mut *mut glib::GError,
10115 ) -> ssize_t;
10116 pub fn g_dbus_message_copy(
10117 message: *mut GDBusMessage,
10118 error: *mut *mut glib::GError,
10119 ) -> *mut GDBusMessage;
10120 pub fn g_dbus_message_get_arg0(message: *mut GDBusMessage) -> *const c_char;
10121 pub fn g_dbus_message_get_body(message: *mut GDBusMessage) -> *mut glib::GVariant;
10122 pub fn g_dbus_message_get_byte_order(message: *mut GDBusMessage) -> GDBusMessageByteOrder;
10123 pub fn g_dbus_message_get_destination(message: *mut GDBusMessage) -> *const c_char;
10124 pub fn g_dbus_message_get_error_name(message: *mut GDBusMessage) -> *const c_char;
10125 pub fn g_dbus_message_get_flags(message: *mut GDBusMessage) -> GDBusMessageFlags;
10126 pub fn g_dbus_message_get_header(
10127 message: *mut GDBusMessage,
10128 header_field: GDBusMessageHeaderField,
10129 ) -> *mut glib::GVariant;
10130 pub fn g_dbus_message_get_header_fields(message: *mut GDBusMessage) -> *mut u8;
10131 pub fn g_dbus_message_get_interface(message: *mut GDBusMessage) -> *const c_char;
10132 pub fn g_dbus_message_get_locked(message: *mut GDBusMessage) -> gboolean;
10133 pub fn g_dbus_message_get_member(message: *mut GDBusMessage) -> *const c_char;
10134 pub fn g_dbus_message_get_message_type(message: *mut GDBusMessage) -> GDBusMessageType;
10135 pub fn g_dbus_message_get_num_unix_fds(message: *mut GDBusMessage) -> u32;
10136 pub fn g_dbus_message_get_path(message: *mut GDBusMessage) -> *const c_char;
10137 pub fn g_dbus_message_get_reply_serial(message: *mut GDBusMessage) -> u32;
10138 pub fn g_dbus_message_get_sender(message: *mut GDBusMessage) -> *const c_char;
10139 pub fn g_dbus_message_get_serial(message: *mut GDBusMessage) -> u32;
10140 pub fn g_dbus_message_get_signature(message: *mut GDBusMessage) -> *const c_char;
10141 pub fn g_dbus_message_get_unix_fd_list(message: *mut GDBusMessage) -> *mut GUnixFDList;
10142 pub fn g_dbus_message_lock(message: *mut GDBusMessage);
10143 pub fn g_dbus_message_new_method_error(
10144 method_call_message: *mut GDBusMessage,
10145 error_name: *const c_char,
10146 error_message_format: *const c_char,
10147 ...
10148 ) -> *mut GDBusMessage;
10149 pub fn g_dbus_message_new_method_error_literal(
10150 method_call_message: *mut GDBusMessage,
10151 error_name: *const c_char,
10152 error_message: *const c_char,
10153 ) -> *mut GDBusMessage;
10154 pub fn g_dbus_message_new_method_reply(
10156 method_call_message: *mut GDBusMessage,
10157 ) -> *mut GDBusMessage;
10158 pub fn g_dbus_message_print(message: *mut GDBusMessage, indent: c_uint) -> *mut c_char;
10159 pub fn g_dbus_message_set_body(message: *mut GDBusMessage, body: *mut glib::GVariant);
10160 pub fn g_dbus_message_set_byte_order(
10161 message: *mut GDBusMessage,
10162 byte_order: GDBusMessageByteOrder,
10163 );
10164 pub fn g_dbus_message_set_destination(message: *mut GDBusMessage, value: *const c_char);
10165 pub fn g_dbus_message_set_error_name(message: *mut GDBusMessage, value: *const c_char);
10166 pub fn g_dbus_message_set_flags(message: *mut GDBusMessage, flags: GDBusMessageFlags);
10167 pub fn g_dbus_message_set_header(
10168 message: *mut GDBusMessage,
10169 header_field: GDBusMessageHeaderField,
10170 value: *mut glib::GVariant,
10171 );
10172 pub fn g_dbus_message_set_interface(message: *mut GDBusMessage, value: *const c_char);
10173 pub fn g_dbus_message_set_member(message: *mut GDBusMessage, value: *const c_char);
10174 pub fn g_dbus_message_set_message_type(message: *mut GDBusMessage, type_: GDBusMessageType);
10175 pub fn g_dbus_message_set_num_unix_fds(message: *mut GDBusMessage, value: u32);
10176 pub fn g_dbus_message_set_path(message: *mut GDBusMessage, value: *const c_char);
10177 pub fn g_dbus_message_set_reply_serial(message: *mut GDBusMessage, value: u32);
10178 pub fn g_dbus_message_set_sender(message: *mut GDBusMessage, value: *const c_char);
10179 pub fn g_dbus_message_set_serial(message: *mut GDBusMessage, serial: u32);
10180 pub fn g_dbus_message_set_signature(message: *mut GDBusMessage, value: *const c_char);
10181 pub fn g_dbus_message_set_unix_fd_list(message: *mut GDBusMessage, fd_list: *mut GUnixFDList);
10182 pub fn g_dbus_message_to_blob(
10183 message: *mut GDBusMessage,
10184 out_size: *mut size_t,
10185 capabilities: GDBusCapabilityFlags,
10186 error: *mut *mut glib::GError,
10187 ) -> *mut u8;
10188 pub fn g_dbus_message_to_gerror(
10189 message: *mut GDBusMessage,
10190 error: *mut *mut glib::GError,
10191 ) -> gboolean;
10192
10193 pub fn g_dbus_method_invocation_get_type() -> GType;
10197 pub fn g_dbus_method_invocation_get_connection(
10198 invocation: *mut GDBusMethodInvocation,
10199 ) -> *mut GDBusConnection;
10200 pub fn g_dbus_method_invocation_get_interface_name(
10201 invocation: *mut GDBusMethodInvocation,
10202 ) -> *const c_char;
10203 pub fn g_dbus_method_invocation_get_message(
10204 invocation: *mut GDBusMethodInvocation,
10205 ) -> *mut GDBusMessage;
10206 pub fn g_dbus_method_invocation_get_method_info(
10207 invocation: *mut GDBusMethodInvocation,
10208 ) -> *const GDBusMethodInfo;
10209 pub fn g_dbus_method_invocation_get_method_name(
10210 invocation: *mut GDBusMethodInvocation,
10211 ) -> *const c_char;
10212 pub fn g_dbus_method_invocation_get_object_path(
10213 invocation: *mut GDBusMethodInvocation,
10214 ) -> *const c_char;
10215 pub fn g_dbus_method_invocation_get_parameters(
10216 invocation: *mut GDBusMethodInvocation,
10217 ) -> *mut glib::GVariant;
10218 pub fn g_dbus_method_invocation_get_property_info(
10219 invocation: *mut GDBusMethodInvocation,
10220 ) -> *const GDBusPropertyInfo;
10221 pub fn g_dbus_method_invocation_get_sender(
10222 invocation: *mut GDBusMethodInvocation,
10223 ) -> *const c_char;
10224 pub fn g_dbus_method_invocation_get_user_data(
10225 invocation: *mut GDBusMethodInvocation,
10226 ) -> gpointer;
10227 pub fn g_dbus_method_invocation_return_dbus_error(
10228 invocation: *mut GDBusMethodInvocation,
10229 error_name: *const c_char,
10230 error_message: *const c_char,
10231 );
10232 pub fn g_dbus_method_invocation_return_error(
10233 invocation: *mut GDBusMethodInvocation,
10234 domain: glib::GQuark,
10235 code: c_int,
10236 format: *const c_char,
10237 ...
10238 );
10239 pub fn g_dbus_method_invocation_return_error_literal(
10240 invocation: *mut GDBusMethodInvocation,
10241 domain: glib::GQuark,
10242 code: c_int,
10243 message: *const c_char,
10244 );
10245 pub fn g_dbus_method_invocation_return_gerror(
10247 invocation: *mut GDBusMethodInvocation,
10248 error: *const glib::GError,
10249 );
10250 pub fn g_dbus_method_invocation_return_value(
10251 invocation: *mut GDBusMethodInvocation,
10252 parameters: *mut glib::GVariant,
10253 );
10254 pub fn g_dbus_method_invocation_return_value_with_unix_fd_list(
10255 invocation: *mut GDBusMethodInvocation,
10256 parameters: *mut glib::GVariant,
10257 fd_list: *mut GUnixFDList,
10258 );
10259 pub fn g_dbus_method_invocation_take_error(
10260 invocation: *mut GDBusMethodInvocation,
10261 error: *mut glib::GError,
10262 );
10263
10264 pub fn g_dbus_object_manager_client_get_type() -> GType;
10268 pub fn g_dbus_object_manager_client_new_finish(
10269 res: *mut GAsyncResult,
10270 error: *mut *mut glib::GError,
10271 ) -> *mut GDBusObjectManagerClient;
10272 pub fn g_dbus_object_manager_client_new_for_bus_finish(
10273 res: *mut GAsyncResult,
10274 error: *mut *mut glib::GError,
10275 ) -> *mut GDBusObjectManagerClient;
10276 pub fn g_dbus_object_manager_client_new_for_bus_sync(
10277 bus_type: GBusType,
10278 flags: GDBusObjectManagerClientFlags,
10279 name: *const c_char,
10280 object_path: *const c_char,
10281 get_proxy_type_func: GDBusProxyTypeFunc,
10282 get_proxy_type_user_data: gpointer,
10283 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10284 cancellable: *mut GCancellable,
10285 error: *mut *mut glib::GError,
10286 ) -> *mut GDBusObjectManagerClient;
10287 pub fn g_dbus_object_manager_client_new_sync(
10288 connection: *mut GDBusConnection,
10289 flags: GDBusObjectManagerClientFlags,
10290 name: *const c_char,
10291 object_path: *const c_char,
10292 get_proxy_type_func: GDBusProxyTypeFunc,
10293 get_proxy_type_user_data: gpointer,
10294 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10295 cancellable: *mut GCancellable,
10296 error: *mut *mut glib::GError,
10297 ) -> *mut GDBusObjectManagerClient;
10298 pub fn g_dbus_object_manager_client_new(
10299 connection: *mut GDBusConnection,
10300 flags: GDBusObjectManagerClientFlags,
10301 name: *const c_char,
10302 object_path: *const c_char,
10303 get_proxy_type_func: GDBusProxyTypeFunc,
10304 get_proxy_type_user_data: gpointer,
10305 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10306 cancellable: *mut GCancellable,
10307 callback: GAsyncReadyCallback,
10308 user_data: gpointer,
10309 );
10310 pub fn g_dbus_object_manager_client_new_for_bus(
10311 bus_type: GBusType,
10312 flags: GDBusObjectManagerClientFlags,
10313 name: *const c_char,
10314 object_path: *const c_char,
10315 get_proxy_type_func: GDBusProxyTypeFunc,
10316 get_proxy_type_user_data: gpointer,
10317 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10318 cancellable: *mut GCancellable,
10319 callback: GAsyncReadyCallback,
10320 user_data: gpointer,
10321 );
10322 pub fn g_dbus_object_manager_client_get_connection(
10323 manager: *mut GDBusObjectManagerClient,
10324 ) -> *mut GDBusConnection;
10325 pub fn g_dbus_object_manager_client_get_flags(
10326 manager: *mut GDBusObjectManagerClient,
10327 ) -> GDBusObjectManagerClientFlags;
10328 pub fn g_dbus_object_manager_client_get_name(
10329 manager: *mut GDBusObjectManagerClient,
10330 ) -> *const c_char;
10331 pub fn g_dbus_object_manager_client_get_name_owner(
10332 manager: *mut GDBusObjectManagerClient,
10333 ) -> *mut c_char;
10334
10335 pub fn g_dbus_object_manager_server_get_type() -> GType;
10339 pub fn g_dbus_object_manager_server_new(
10340 object_path: *const c_char,
10341 ) -> *mut GDBusObjectManagerServer;
10342 pub fn g_dbus_object_manager_server_export(
10343 manager: *mut GDBusObjectManagerServer,
10344 object: *mut GDBusObjectSkeleton,
10345 );
10346 pub fn g_dbus_object_manager_server_export_uniquely(
10347 manager: *mut GDBusObjectManagerServer,
10348 object: *mut GDBusObjectSkeleton,
10349 );
10350 pub fn g_dbus_object_manager_server_get_connection(
10351 manager: *mut GDBusObjectManagerServer,
10352 ) -> *mut GDBusConnection;
10353 pub fn g_dbus_object_manager_server_is_exported(
10354 manager: *mut GDBusObjectManagerServer,
10355 object: *mut GDBusObjectSkeleton,
10356 ) -> gboolean;
10357 pub fn g_dbus_object_manager_server_set_connection(
10358 manager: *mut GDBusObjectManagerServer,
10359 connection: *mut GDBusConnection,
10360 );
10361 pub fn g_dbus_object_manager_server_unexport(
10362 manager: *mut GDBusObjectManagerServer,
10363 object_path: *const c_char,
10364 ) -> gboolean;
10365
10366 pub fn g_dbus_object_proxy_get_type() -> GType;
10370 pub fn g_dbus_object_proxy_new(
10371 connection: *mut GDBusConnection,
10372 object_path: *const c_char,
10373 ) -> *mut GDBusObjectProxy;
10374 pub fn g_dbus_object_proxy_get_connection(proxy: *mut GDBusObjectProxy)
10375 -> *mut GDBusConnection;
10376
10377 pub fn g_dbus_object_skeleton_get_type() -> GType;
10381 pub fn g_dbus_object_skeleton_new(object_path: *const c_char) -> *mut GDBusObjectSkeleton;
10382 pub fn g_dbus_object_skeleton_add_interface(
10383 object: *mut GDBusObjectSkeleton,
10384 interface_: *mut GDBusInterfaceSkeleton,
10385 );
10386 pub fn g_dbus_object_skeleton_flush(object: *mut GDBusObjectSkeleton);
10387 pub fn g_dbus_object_skeleton_remove_interface(
10388 object: *mut GDBusObjectSkeleton,
10389 interface_: *mut GDBusInterfaceSkeleton,
10390 );
10391 pub fn g_dbus_object_skeleton_remove_interface_by_name(
10392 object: *mut GDBusObjectSkeleton,
10393 interface_name: *const c_char,
10394 );
10395 pub fn g_dbus_object_skeleton_set_object_path(
10396 object: *mut GDBusObjectSkeleton,
10397 object_path: *const c_char,
10398 );
10399
10400 pub fn g_dbus_proxy_get_type() -> GType;
10404 pub fn g_dbus_proxy_new_finish(
10405 res: *mut GAsyncResult,
10406 error: *mut *mut glib::GError,
10407 ) -> *mut GDBusProxy;
10408 pub fn g_dbus_proxy_new_for_bus_finish(
10409 res: *mut GAsyncResult,
10410 error: *mut *mut glib::GError,
10411 ) -> *mut GDBusProxy;
10412 pub fn g_dbus_proxy_new_for_bus_sync(
10413 bus_type: GBusType,
10414 flags: GDBusProxyFlags,
10415 info: *mut GDBusInterfaceInfo,
10416 name: *const c_char,
10417 object_path: *const c_char,
10418 interface_name: *const c_char,
10419 cancellable: *mut GCancellable,
10420 error: *mut *mut glib::GError,
10421 ) -> *mut GDBusProxy;
10422 pub fn g_dbus_proxy_new_sync(
10423 connection: *mut GDBusConnection,
10424 flags: GDBusProxyFlags,
10425 info: *mut GDBusInterfaceInfo,
10426 name: *const c_char,
10427 object_path: *const c_char,
10428 interface_name: *const c_char,
10429 cancellable: *mut GCancellable,
10430 error: *mut *mut glib::GError,
10431 ) -> *mut GDBusProxy;
10432 pub fn g_dbus_proxy_new(
10433 connection: *mut GDBusConnection,
10434 flags: GDBusProxyFlags,
10435 info: *mut GDBusInterfaceInfo,
10436 name: *const c_char,
10437 object_path: *const c_char,
10438 interface_name: *const c_char,
10439 cancellable: *mut GCancellable,
10440 callback: GAsyncReadyCallback,
10441 user_data: gpointer,
10442 );
10443 pub fn g_dbus_proxy_new_for_bus(
10444 bus_type: GBusType,
10445 flags: GDBusProxyFlags,
10446 info: *mut GDBusInterfaceInfo,
10447 name: *const c_char,
10448 object_path: *const c_char,
10449 interface_name: *const c_char,
10450 cancellable: *mut GCancellable,
10451 callback: GAsyncReadyCallback,
10452 user_data: gpointer,
10453 );
10454 pub fn g_dbus_proxy_call(
10455 proxy: *mut GDBusProxy,
10456 method_name: *const c_char,
10457 parameters: *mut glib::GVariant,
10458 flags: GDBusCallFlags,
10459 timeout_msec: c_int,
10460 cancellable: *mut GCancellable,
10461 callback: GAsyncReadyCallback,
10462 user_data: gpointer,
10463 );
10464 pub fn g_dbus_proxy_call_finish(
10465 proxy: *mut GDBusProxy,
10466 res: *mut GAsyncResult,
10467 error: *mut *mut glib::GError,
10468 ) -> *mut glib::GVariant;
10469 pub fn g_dbus_proxy_call_sync(
10470 proxy: *mut GDBusProxy,
10471 method_name: *const c_char,
10472 parameters: *mut glib::GVariant,
10473 flags: GDBusCallFlags,
10474 timeout_msec: c_int,
10475 cancellable: *mut GCancellable,
10476 error: *mut *mut glib::GError,
10477 ) -> *mut glib::GVariant;
10478 pub fn g_dbus_proxy_call_with_unix_fd_list(
10479 proxy: *mut GDBusProxy,
10480 method_name: *const c_char,
10481 parameters: *mut glib::GVariant,
10482 flags: GDBusCallFlags,
10483 timeout_msec: c_int,
10484 fd_list: *mut GUnixFDList,
10485 cancellable: *mut GCancellable,
10486 callback: GAsyncReadyCallback,
10487 user_data: gpointer,
10488 );
10489 pub fn g_dbus_proxy_call_with_unix_fd_list_finish(
10490 proxy: *mut GDBusProxy,
10491 out_fd_list: *mut *mut GUnixFDList,
10492 res: *mut GAsyncResult,
10493 error: *mut *mut glib::GError,
10494 ) -> *mut glib::GVariant;
10495 pub fn g_dbus_proxy_call_with_unix_fd_list_sync(
10496 proxy: *mut GDBusProxy,
10497 method_name: *const c_char,
10498 parameters: *mut glib::GVariant,
10499 flags: GDBusCallFlags,
10500 timeout_msec: c_int,
10501 fd_list: *mut GUnixFDList,
10502 out_fd_list: *mut *mut GUnixFDList,
10503 cancellable: *mut GCancellable,
10504 error: *mut *mut glib::GError,
10505 ) -> *mut glib::GVariant;
10506 pub fn g_dbus_proxy_get_cached_property(
10507 proxy: *mut GDBusProxy,
10508 property_name: *const c_char,
10509 ) -> *mut glib::GVariant;
10510 pub fn g_dbus_proxy_get_cached_property_names(proxy: *mut GDBusProxy) -> *mut *mut c_char;
10511 pub fn g_dbus_proxy_get_connection(proxy: *mut GDBusProxy) -> *mut GDBusConnection;
10512 pub fn g_dbus_proxy_get_default_timeout(proxy: *mut GDBusProxy) -> c_int;
10513 pub fn g_dbus_proxy_get_flags(proxy: *mut GDBusProxy) -> GDBusProxyFlags;
10514 pub fn g_dbus_proxy_get_interface_info(proxy: *mut GDBusProxy) -> *mut GDBusInterfaceInfo;
10515 pub fn g_dbus_proxy_get_interface_name(proxy: *mut GDBusProxy) -> *const c_char;
10516 pub fn g_dbus_proxy_get_name(proxy: *mut GDBusProxy) -> *const c_char;
10517 pub fn g_dbus_proxy_get_name_owner(proxy: *mut GDBusProxy) -> *mut c_char;
10518 pub fn g_dbus_proxy_get_object_path(proxy: *mut GDBusProxy) -> *const c_char;
10519 pub fn g_dbus_proxy_set_cached_property(
10520 proxy: *mut GDBusProxy,
10521 property_name: *const c_char,
10522 value: *mut glib::GVariant,
10523 );
10524 pub fn g_dbus_proxy_set_default_timeout(proxy: *mut GDBusProxy, timeout_msec: c_int);
10525 pub fn g_dbus_proxy_set_interface_info(proxy: *mut GDBusProxy, info: *mut GDBusInterfaceInfo);
10526
10527 pub fn g_dbus_server_get_type() -> GType;
10531 pub fn g_dbus_server_new_sync(
10532 address: *const c_char,
10533 flags: GDBusServerFlags,
10534 guid: *const c_char,
10535 observer: *mut GDBusAuthObserver,
10536 cancellable: *mut GCancellable,
10537 error: *mut *mut glib::GError,
10538 ) -> *mut GDBusServer;
10539 pub fn g_dbus_server_get_client_address(server: *mut GDBusServer) -> *const c_char;
10540 pub fn g_dbus_server_get_flags(server: *mut GDBusServer) -> GDBusServerFlags;
10541 pub fn g_dbus_server_get_guid(server: *mut GDBusServer) -> *const c_char;
10542 pub fn g_dbus_server_is_active(server: *mut GDBusServer) -> gboolean;
10543 pub fn g_dbus_server_start(server: *mut GDBusServer);
10544 pub fn g_dbus_server_stop(server: *mut GDBusServer);
10545
10546 pub fn g_data_input_stream_get_type() -> GType;
10550 pub fn g_data_input_stream_new(base_stream: *mut GInputStream) -> *mut GDataInputStream;
10551 pub fn g_data_input_stream_get_byte_order(
10552 stream: *mut GDataInputStream,
10553 ) -> GDataStreamByteOrder;
10554 pub fn g_data_input_stream_get_newline_type(
10555 stream: *mut GDataInputStream,
10556 ) -> GDataStreamNewlineType;
10557 pub fn g_data_input_stream_read_byte(
10558 stream: *mut GDataInputStream,
10559 cancellable: *mut GCancellable,
10560 error: *mut *mut glib::GError,
10561 ) -> c_uchar;
10562 pub fn g_data_input_stream_read_int16(
10563 stream: *mut GDataInputStream,
10564 cancellable: *mut GCancellable,
10565 error: *mut *mut glib::GError,
10566 ) -> i16;
10567 pub fn g_data_input_stream_read_int32(
10568 stream: *mut GDataInputStream,
10569 cancellable: *mut GCancellable,
10570 error: *mut *mut glib::GError,
10571 ) -> i32;
10572 pub fn g_data_input_stream_read_int64(
10573 stream: *mut GDataInputStream,
10574 cancellable: *mut GCancellable,
10575 error: *mut *mut glib::GError,
10576 ) -> i64;
10577 pub fn g_data_input_stream_read_line(
10578 stream: *mut GDataInputStream,
10579 length: *mut size_t,
10580 cancellable: *mut GCancellable,
10581 error: *mut *mut glib::GError,
10582 ) -> *mut u8;
10583 pub fn g_data_input_stream_read_line_async(
10584 stream: *mut GDataInputStream,
10585 io_priority: c_int,
10586 cancellable: *mut GCancellable,
10587 callback: GAsyncReadyCallback,
10588 user_data: gpointer,
10589 );
10590 pub fn g_data_input_stream_read_line_finish(
10591 stream: *mut GDataInputStream,
10592 result: *mut GAsyncResult,
10593 length: *mut size_t,
10594 error: *mut *mut glib::GError,
10595 ) -> *mut u8;
10596 pub fn g_data_input_stream_read_line_finish_utf8(
10597 stream: *mut GDataInputStream,
10598 result: *mut GAsyncResult,
10599 length: *mut size_t,
10600 error: *mut *mut glib::GError,
10601 ) -> *mut c_char;
10602 pub fn g_data_input_stream_read_line_utf8(
10603 stream: *mut GDataInputStream,
10604 length: *mut size_t,
10605 cancellable: *mut GCancellable,
10606 error: *mut *mut glib::GError,
10607 ) -> *mut c_char;
10608 pub fn g_data_input_stream_read_uint16(
10609 stream: *mut GDataInputStream,
10610 cancellable: *mut GCancellable,
10611 error: *mut *mut glib::GError,
10612 ) -> u16;
10613 pub fn g_data_input_stream_read_uint32(
10614 stream: *mut GDataInputStream,
10615 cancellable: *mut GCancellable,
10616 error: *mut *mut glib::GError,
10617 ) -> u32;
10618 pub fn g_data_input_stream_read_uint64(
10619 stream: *mut GDataInputStream,
10620 cancellable: *mut GCancellable,
10621 error: *mut *mut glib::GError,
10622 ) -> u64;
10623 pub fn g_data_input_stream_read_until(
10624 stream: *mut GDataInputStream,
10625 stop_chars: *const c_char,
10626 length: *mut size_t,
10627 cancellable: *mut GCancellable,
10628 error: *mut *mut glib::GError,
10629 ) -> *mut c_char;
10630 pub fn g_data_input_stream_read_until_async(
10631 stream: *mut GDataInputStream,
10632 stop_chars: *const c_char,
10633 io_priority: c_int,
10634 cancellable: *mut GCancellable,
10635 callback: GAsyncReadyCallback,
10636 user_data: gpointer,
10637 );
10638 pub fn g_data_input_stream_read_until_finish(
10639 stream: *mut GDataInputStream,
10640 result: *mut GAsyncResult,
10641 length: *mut size_t,
10642 error: *mut *mut glib::GError,
10643 ) -> *mut c_char;
10644 pub fn g_data_input_stream_read_upto(
10645 stream: *mut GDataInputStream,
10646 stop_chars: *const c_char,
10647 stop_chars_len: ssize_t,
10648 length: *mut size_t,
10649 cancellable: *mut GCancellable,
10650 error: *mut *mut glib::GError,
10651 ) -> *mut c_char;
10652 pub fn g_data_input_stream_read_upto_async(
10653 stream: *mut GDataInputStream,
10654 stop_chars: *const c_char,
10655 stop_chars_len: ssize_t,
10656 io_priority: c_int,
10657 cancellable: *mut GCancellable,
10658 callback: GAsyncReadyCallback,
10659 user_data: gpointer,
10660 );
10661 pub fn g_data_input_stream_read_upto_finish(
10662 stream: *mut GDataInputStream,
10663 result: *mut GAsyncResult,
10664 length: *mut size_t,
10665 error: *mut *mut glib::GError,
10666 ) -> *mut c_char;
10667 pub fn g_data_input_stream_set_byte_order(
10668 stream: *mut GDataInputStream,
10669 order: GDataStreamByteOrder,
10670 );
10671 pub fn g_data_input_stream_set_newline_type(
10672 stream: *mut GDataInputStream,
10673 type_: GDataStreamNewlineType,
10674 );
10675
10676 pub fn g_data_output_stream_get_type() -> GType;
10680 pub fn g_data_output_stream_new(base_stream: *mut GOutputStream) -> *mut GDataOutputStream;
10681 pub fn g_data_output_stream_get_byte_order(
10682 stream: *mut GDataOutputStream,
10683 ) -> GDataStreamByteOrder;
10684 pub fn g_data_output_stream_put_byte(
10685 stream: *mut GDataOutputStream,
10686 data: c_uchar,
10687 cancellable: *mut GCancellable,
10688 error: *mut *mut glib::GError,
10689 ) -> gboolean;
10690 pub fn g_data_output_stream_put_int16(
10691 stream: *mut GDataOutputStream,
10692 data: i16,
10693 cancellable: *mut GCancellable,
10694 error: *mut *mut glib::GError,
10695 ) -> gboolean;
10696 pub fn g_data_output_stream_put_int32(
10697 stream: *mut GDataOutputStream,
10698 data: i32,
10699 cancellable: *mut GCancellable,
10700 error: *mut *mut glib::GError,
10701 ) -> gboolean;
10702 pub fn g_data_output_stream_put_int64(
10703 stream: *mut GDataOutputStream,
10704 data: i64,
10705 cancellable: *mut GCancellable,
10706 error: *mut *mut glib::GError,
10707 ) -> gboolean;
10708 pub fn g_data_output_stream_put_string(
10709 stream: *mut GDataOutputStream,
10710 str: *const c_char,
10711 cancellable: *mut GCancellable,
10712 error: *mut *mut glib::GError,
10713 ) -> gboolean;
10714 pub fn g_data_output_stream_put_uint16(
10715 stream: *mut GDataOutputStream,
10716 data: u16,
10717 cancellable: *mut GCancellable,
10718 error: *mut *mut glib::GError,
10719 ) -> gboolean;
10720 pub fn g_data_output_stream_put_uint32(
10721 stream: *mut GDataOutputStream,
10722 data: u32,
10723 cancellable: *mut GCancellable,
10724 error: *mut *mut glib::GError,
10725 ) -> gboolean;
10726 pub fn g_data_output_stream_put_uint64(
10727 stream: *mut GDataOutputStream,
10728 data: u64,
10729 cancellable: *mut GCancellable,
10730 error: *mut *mut glib::GError,
10731 ) -> gboolean;
10732 pub fn g_data_output_stream_set_byte_order(
10733 stream: *mut GDataOutputStream,
10734 order: GDataStreamByteOrder,
10735 );
10736
10737 pub fn g_desktop_app_info_get_type() -> GType;
10741 pub fn g_desktop_app_info_new(desktop_id: *const c_char) -> *mut GDesktopAppInfo;
10742 pub fn g_desktop_app_info_new_from_filename(filename: *const c_char) -> *mut GDesktopAppInfo;
10743 pub fn g_desktop_app_info_new_from_keyfile(
10744 key_file: *mut glib::GKeyFile,
10745 ) -> *mut GDesktopAppInfo;
10746 pub fn g_desktop_app_info_get_implementations(interface: *const c_char) -> *mut glib::GList;
10747 pub fn g_desktop_app_info_search(search_string: *const c_char) -> *mut *mut *mut c_char;
10748 pub fn g_desktop_app_info_set_desktop_env(desktop_env: *const c_char);
10749 pub fn g_desktop_app_info_get_action_name(
10750 info: *mut GDesktopAppInfo,
10751 action_name: *const c_char,
10752 ) -> *mut c_char;
10753 pub fn g_desktop_app_info_get_boolean(
10754 info: *mut GDesktopAppInfo,
10755 key: *const c_char,
10756 ) -> gboolean;
10757 pub fn g_desktop_app_info_get_categories(info: *mut GDesktopAppInfo) -> *const c_char;
10758 pub fn g_desktop_app_info_get_filename(info: *mut GDesktopAppInfo) -> *const c_char;
10759 pub fn g_desktop_app_info_get_generic_name(info: *mut GDesktopAppInfo) -> *const c_char;
10760 pub fn g_desktop_app_info_get_is_hidden(info: *mut GDesktopAppInfo) -> gboolean;
10761 pub fn g_desktop_app_info_get_keywords(info: *mut GDesktopAppInfo) -> *const *const c_char;
10762 #[cfg(any(feature = "v2_56", feature = "dox"))]
10763 pub fn g_desktop_app_info_get_locale_string(
10764 info: *mut GDesktopAppInfo,
10765 key: *const c_char,
10766 ) -> *mut c_char;
10767 pub fn g_desktop_app_info_get_nodisplay(info: *mut GDesktopAppInfo) -> gboolean;
10768 pub fn g_desktop_app_info_get_show_in(
10769 info: *mut GDesktopAppInfo,
10770 desktop_env: *const c_char,
10771 ) -> gboolean;
10772 pub fn g_desktop_app_info_get_startup_wm_class(info: *mut GDesktopAppInfo) -> *const c_char;
10773 pub fn g_desktop_app_info_get_string(
10774 info: *mut GDesktopAppInfo,
10775 key: *const c_char,
10776 ) -> *mut c_char;
10777 pub fn g_desktop_app_info_has_key(info: *mut GDesktopAppInfo, key: *const c_char) -> gboolean;
10778 pub fn g_desktop_app_info_launch_action(
10779 info: *mut GDesktopAppInfo,
10780 action_name: *const c_char,
10781 launch_context: *mut GAppLaunchContext,
10782 );
10783 pub fn g_desktop_app_info_launch_uris_as_manager(
10784 appinfo: *mut GDesktopAppInfo,
10785 uris: *mut glib::GList,
10786 launch_context: *mut GAppLaunchContext,
10787 spawn_flags: glib::GSpawnFlags,
10788 user_setup: glib::GSpawnChildSetupFunc,
10789 user_setup_data: gpointer,
10790 pid_callback: GDesktopAppLaunchCallback,
10791 pid_callback_data: gpointer,
10792 error: *mut *mut glib::GError,
10793 ) -> gboolean;
10794 #[cfg(any(feature = "v2_58", feature = "dox"))]
10795 pub fn g_desktop_app_info_launch_uris_as_manager_with_fds(
10796 appinfo: *mut GDesktopAppInfo,
10797 uris: *mut glib::GList,
10798 launch_context: *mut GAppLaunchContext,
10799 spawn_flags: glib::GSpawnFlags,
10800 user_setup: glib::GSpawnChildSetupFunc,
10801 user_setup_data: gpointer,
10802 pid_callback: GDesktopAppLaunchCallback,
10803 pid_callback_data: gpointer,
10804 stdin_fd: c_int,
10805 stdout_fd: c_int,
10806 stderr_fd: c_int,
10807 error: *mut *mut glib::GError,
10808 ) -> gboolean;
10809 pub fn g_desktop_app_info_list_actions(info: *mut GDesktopAppInfo) -> *const *const c_char;
10810
10811 pub fn g_emblem_get_type() -> GType;
10815 pub fn g_emblem_new(icon: *mut GIcon) -> *mut GEmblem;
10816 pub fn g_emblem_new_with_origin(icon: *mut GIcon, origin: GEmblemOrigin) -> *mut GEmblem;
10817 pub fn g_emblem_get_icon(emblem: *mut GEmblem) -> *mut GIcon;
10818 pub fn g_emblem_get_origin(emblem: *mut GEmblem) -> GEmblemOrigin;
10819
10820 pub fn g_emblemed_icon_get_type() -> GType;
10824 pub fn g_emblemed_icon_new(icon: *mut GIcon, emblem: *mut GEmblem) -> *mut GEmblemedIcon;
10825 pub fn g_emblemed_icon_add_emblem(emblemed: *mut GEmblemedIcon, emblem: *mut GEmblem);
10826 pub fn g_emblemed_icon_clear_emblems(emblemed: *mut GEmblemedIcon);
10827 pub fn g_emblemed_icon_get_emblems(emblemed: *mut GEmblemedIcon) -> *mut glib::GList;
10828 pub fn g_emblemed_icon_get_icon(emblemed: *mut GEmblemedIcon) -> *mut GIcon;
10829
10830 pub fn g_file_enumerator_get_type() -> GType;
10834 pub fn g_file_enumerator_close(
10835 enumerator: *mut GFileEnumerator,
10836 cancellable: *mut GCancellable,
10837 error: *mut *mut glib::GError,
10838 ) -> gboolean;
10839 pub fn g_file_enumerator_close_async(
10840 enumerator: *mut GFileEnumerator,
10841 io_priority: c_int,
10842 cancellable: *mut GCancellable,
10843 callback: GAsyncReadyCallback,
10844 user_data: gpointer,
10845 );
10846 pub fn g_file_enumerator_close_finish(
10847 enumerator: *mut GFileEnumerator,
10848 result: *mut GAsyncResult,
10849 error: *mut *mut glib::GError,
10850 ) -> gboolean;
10851 pub fn g_file_enumerator_get_child(
10852 enumerator: *mut GFileEnumerator,
10853 info: *mut GFileInfo,
10854 ) -> *mut GFile;
10855 pub fn g_file_enumerator_get_container(enumerator: *mut GFileEnumerator) -> *mut GFile;
10856 pub fn g_file_enumerator_has_pending(enumerator: *mut GFileEnumerator) -> gboolean;
10857 pub fn g_file_enumerator_is_closed(enumerator: *mut GFileEnumerator) -> gboolean;
10858 #[cfg(any(feature = "v2_44", feature = "dox"))]
10859 pub fn g_file_enumerator_iterate(
10860 direnum: *mut GFileEnumerator,
10861 out_info: *mut *mut GFileInfo,
10862 out_child: *mut *mut GFile,
10863 cancellable: *mut GCancellable,
10864 error: *mut *mut glib::GError,
10865 ) -> gboolean;
10866 pub fn g_file_enumerator_next_file(
10867 enumerator: *mut GFileEnumerator,
10868 cancellable: *mut GCancellable,
10869 error: *mut *mut glib::GError,
10870 ) -> *mut GFileInfo;
10871 pub fn g_file_enumerator_next_files_async(
10872 enumerator: *mut GFileEnumerator,
10873 num_files: c_int,
10874 io_priority: c_int,
10875 cancellable: *mut GCancellable,
10876 callback: GAsyncReadyCallback,
10877 user_data: gpointer,
10878 );
10879 pub fn g_file_enumerator_next_files_finish(
10880 enumerator: *mut GFileEnumerator,
10881 result: *mut GAsyncResult,
10882 error: *mut *mut glib::GError,
10883 ) -> *mut glib::GList;
10884 pub fn g_file_enumerator_set_pending(enumerator: *mut GFileEnumerator, pending: gboolean);
10885
10886 pub fn g_file_io_stream_get_type() -> GType;
10890 pub fn g_file_io_stream_get_etag(stream: *mut GFileIOStream) -> *mut c_char;
10891 pub fn g_file_io_stream_query_info(
10892 stream: *mut GFileIOStream,
10893 attributes: *const c_char,
10894 cancellable: *mut GCancellable,
10895 error: *mut *mut glib::GError,
10896 ) -> *mut GFileInfo;
10897 pub fn g_file_io_stream_query_info_async(
10898 stream: *mut GFileIOStream,
10899 attributes: *const c_char,
10900 io_priority: c_int,
10901 cancellable: *mut GCancellable,
10902 callback: GAsyncReadyCallback,
10903 user_data: gpointer,
10904 );
10905 pub fn g_file_io_stream_query_info_finish(
10906 stream: *mut GFileIOStream,
10907 result: *mut GAsyncResult,
10908 error: *mut *mut glib::GError,
10909 ) -> *mut GFileInfo;
10910
10911 pub fn g_file_icon_get_type() -> GType;
10915 pub fn g_file_icon_new(file: *mut GFile) -> *mut GFileIcon;
10916 pub fn g_file_icon_get_file(icon: *mut GFileIcon) -> *mut GFile;
10917
10918 pub fn g_file_info_get_type() -> GType;
10922 pub fn g_file_info_new() -> *mut GFileInfo;
10923 pub fn g_file_info_clear_status(info: *mut GFileInfo);
10924 pub fn g_file_info_copy_into(src_info: *mut GFileInfo, dest_info: *mut GFileInfo);
10925 pub fn g_file_info_dup(other: *mut GFileInfo) -> *mut GFileInfo;
10926 pub fn g_file_info_get_attribute_as_string(
10927 info: *mut GFileInfo,
10928 attribute: *const c_char,
10929 ) -> *mut c_char;
10930 pub fn g_file_info_get_attribute_boolean(
10931 info: *mut GFileInfo,
10932 attribute: *const c_char,
10933 ) -> gboolean;
10934 pub fn g_file_info_get_attribute_byte_string(
10935 info: *mut GFileInfo,
10936 attribute: *const c_char,
10937 ) -> *const c_char;
10938 pub fn g_file_info_get_attribute_data(
10939 info: *mut GFileInfo,
10940 attribute: *const c_char,
10941 type_: *mut GFileAttributeType,
10942 value_pp: *mut gpointer,
10943 status: *mut GFileAttributeStatus,
10944 ) -> gboolean;
10945 pub fn g_file_info_get_attribute_int32(info: *mut GFileInfo, attribute: *const c_char) -> i32;
10946 pub fn g_file_info_get_attribute_int64(info: *mut GFileInfo, attribute: *const c_char) -> i64;
10947 pub fn g_file_info_get_attribute_object(
10948 info: *mut GFileInfo,
10949 attribute: *const c_char,
10950 ) -> *mut gobject::GObject;
10951 pub fn g_file_info_get_attribute_status(
10952 info: *mut GFileInfo,
10953 attribute: *const c_char,
10954 ) -> GFileAttributeStatus;
10955 pub fn g_file_info_get_attribute_string(
10956 info: *mut GFileInfo,
10957 attribute: *const c_char,
10958 ) -> *const c_char;
10959 pub fn g_file_info_get_attribute_stringv(
10960 info: *mut GFileInfo,
10961 attribute: *const c_char,
10962 ) -> *mut *mut c_char;
10963 pub fn g_file_info_get_attribute_type(
10964 info: *mut GFileInfo,
10965 attribute: *const c_char,
10966 ) -> GFileAttributeType;
10967 pub fn g_file_info_get_attribute_uint32(info: *mut GFileInfo, attribute: *const c_char) -> u32;
10968 pub fn g_file_info_get_attribute_uint64(info: *mut GFileInfo, attribute: *const c_char) -> u64;
10969 pub fn g_file_info_get_content_type(info: *mut GFileInfo) -> *const c_char;
10970 pub fn g_file_info_get_deletion_date(info: *mut GFileInfo) -> *mut glib::GDateTime;
10971 pub fn g_file_info_get_display_name(info: *mut GFileInfo) -> *const c_char;
10972 pub fn g_file_info_get_edit_name(info: *mut GFileInfo) -> *const c_char;
10973 pub fn g_file_info_get_etag(info: *mut GFileInfo) -> *const c_char;
10974 pub fn g_file_info_get_file_type(info: *mut GFileInfo) -> GFileType;
10975 pub fn g_file_info_get_icon(info: *mut GFileInfo) -> *mut GIcon;
10976 pub fn g_file_info_get_is_backup(info: *mut GFileInfo) -> gboolean;
10977 pub fn g_file_info_get_is_hidden(info: *mut GFileInfo) -> gboolean;
10978 pub fn g_file_info_get_is_symlink(info: *mut GFileInfo) -> gboolean;
10979 pub fn g_file_info_get_modification_time(info: *mut GFileInfo, result: *mut glib::GTimeVal);
10980 pub fn g_file_info_get_name(info: *mut GFileInfo) -> *const c_char;
10981 pub fn g_file_info_get_size(info: *mut GFileInfo) -> i64;
10982 pub fn g_file_info_get_sort_order(info: *mut GFileInfo) -> i32;
10983 pub fn g_file_info_get_symbolic_icon(info: *mut GFileInfo) -> *mut GIcon;
10984 pub fn g_file_info_get_symlink_target(info: *mut GFileInfo) -> *const c_char;
10985 pub fn g_file_info_has_attribute(info: *mut GFileInfo, attribute: *const c_char) -> gboolean;
10986 pub fn g_file_info_has_namespace(info: *mut GFileInfo, name_space: *const c_char) -> gboolean;
10987 pub fn g_file_info_list_attributes(
10988 info: *mut GFileInfo,
10989 name_space: *const c_char,
10990 ) -> *mut *mut c_char;
10991 pub fn g_file_info_remove_attribute(info: *mut GFileInfo, attribute: *const c_char);
10992 pub fn g_file_info_set_attribute(
10993 info: *mut GFileInfo,
10994 attribute: *const c_char,
10995 type_: GFileAttributeType,
10996 value_p: gpointer,
10997 );
10998 pub fn g_file_info_set_attribute_boolean(
10999 info: *mut GFileInfo,
11000 attribute: *const c_char,
11001 attr_value: gboolean,
11002 );
11003 pub fn g_file_info_set_attribute_byte_string(
11004 info: *mut GFileInfo,
11005 attribute: *const c_char,
11006 attr_value: *const c_char,
11007 );
11008 pub fn g_file_info_set_attribute_int32(
11009 info: *mut GFileInfo,
11010 attribute: *const c_char,
11011 attr_value: i32,
11012 );
11013 pub fn g_file_info_set_attribute_int64(
11014 info: *mut GFileInfo,
11015 attribute: *const c_char,
11016 attr_value: i64,
11017 );
11018 pub fn g_file_info_set_attribute_mask(info: *mut GFileInfo, mask: *mut GFileAttributeMatcher);
11019 pub fn g_file_info_set_attribute_object(
11020 info: *mut GFileInfo,
11021 attribute: *const c_char,
11022 attr_value: *mut gobject::GObject,
11023 );
11024 pub fn g_file_info_set_attribute_status(
11025 info: *mut GFileInfo,
11026 attribute: *const c_char,
11027 status: GFileAttributeStatus,
11028 ) -> gboolean;
11029 pub fn g_file_info_set_attribute_string(
11030 info: *mut GFileInfo,
11031 attribute: *const c_char,
11032 attr_value: *const c_char,
11033 );
11034 pub fn g_file_info_set_attribute_stringv(
11035 info: *mut GFileInfo,
11036 attribute: *const c_char,
11037 attr_value: *mut *mut c_char,
11038 );
11039 pub fn g_file_info_set_attribute_uint32(
11040 info: *mut GFileInfo,
11041 attribute: *const c_char,
11042 attr_value: u32,
11043 );
11044 pub fn g_file_info_set_attribute_uint64(
11045 info: *mut GFileInfo,
11046 attribute: *const c_char,
11047 attr_value: u64,
11048 );
11049 pub fn g_file_info_set_content_type(info: *mut GFileInfo, content_type: *const c_char);
11050 pub fn g_file_info_set_display_name(info: *mut GFileInfo, display_name: *const c_char);
11051 pub fn g_file_info_set_edit_name(info: *mut GFileInfo, edit_name: *const c_char);
11052 pub fn g_file_info_set_file_type(info: *mut GFileInfo, type_: GFileType);
11053 pub fn g_file_info_set_icon(info: *mut GFileInfo, icon: *mut GIcon);
11054 pub fn g_file_info_set_is_hidden(info: *mut GFileInfo, is_hidden: gboolean);
11055 pub fn g_file_info_set_is_symlink(info: *mut GFileInfo, is_symlink: gboolean);
11056 pub fn g_file_info_set_modification_time(info: *mut GFileInfo, mtime: *mut glib::GTimeVal);
11057 pub fn g_file_info_set_name(info: *mut GFileInfo, name: *const c_char);
11058 pub fn g_file_info_set_size(info: *mut GFileInfo, size: i64);
11059 pub fn g_file_info_set_sort_order(info: *mut GFileInfo, sort_order: i32);
11060 pub fn g_file_info_set_symbolic_icon(info: *mut GFileInfo, icon: *mut GIcon);
11061 pub fn g_file_info_set_symlink_target(info: *mut GFileInfo, symlink_target: *const c_char);
11062 pub fn g_file_info_unset_attribute_mask(info: *mut GFileInfo);
11063
11064 pub fn g_file_input_stream_get_type() -> GType;
11068 pub fn g_file_input_stream_query_info(
11069 stream: *mut GFileInputStream,
11070 attributes: *const c_char,
11071 cancellable: *mut GCancellable,
11072 error: *mut *mut glib::GError,
11073 ) -> *mut GFileInfo;
11074 pub fn g_file_input_stream_query_info_async(
11075 stream: *mut GFileInputStream,
11076 attributes: *const c_char,
11077 io_priority: c_int,
11078 cancellable: *mut GCancellable,
11079 callback: GAsyncReadyCallback,
11080 user_data: gpointer,
11081 );
11082 pub fn g_file_input_stream_query_info_finish(
11083 stream: *mut GFileInputStream,
11084 result: *mut GAsyncResult,
11085 error: *mut *mut glib::GError,
11086 ) -> *mut GFileInfo;
11087
11088 pub fn g_file_monitor_get_type() -> GType;
11092 pub fn g_file_monitor_cancel(monitor: *mut GFileMonitor) -> gboolean;
11093 pub fn g_file_monitor_emit_event(
11094 monitor: *mut GFileMonitor,
11095 child: *mut GFile,
11096 other_file: *mut GFile,
11097 event_type: GFileMonitorEvent,
11098 );
11099 pub fn g_file_monitor_is_cancelled(monitor: *mut GFileMonitor) -> gboolean;
11100 pub fn g_file_monitor_set_rate_limit(monitor: *mut GFileMonitor, limit_msecs: c_int);
11101
11102 pub fn g_file_output_stream_get_type() -> GType;
11106 pub fn g_file_output_stream_get_etag(stream: *mut GFileOutputStream) -> *mut c_char;
11107 pub fn g_file_output_stream_query_info(
11108 stream: *mut GFileOutputStream,
11109 attributes: *const c_char,
11110 cancellable: *mut GCancellable,
11111 error: *mut *mut glib::GError,
11112 ) -> *mut GFileInfo;
11113 pub fn g_file_output_stream_query_info_async(
11114 stream: *mut GFileOutputStream,
11115 attributes: *const c_char,
11116 io_priority: c_int,
11117 cancellable: *mut GCancellable,
11118 callback: GAsyncReadyCallback,
11119 user_data: gpointer,
11120 );
11121 pub fn g_file_output_stream_query_info_finish(
11122 stream: *mut GFileOutputStream,
11123 result: *mut GAsyncResult,
11124 error: *mut *mut glib::GError,
11125 ) -> *mut GFileInfo;
11126
11127 pub fn g_filename_completer_get_type() -> GType;
11131 pub fn g_filename_completer_new() -> *mut GFilenameCompleter;
11132 pub fn g_filename_completer_get_completion_suffix(
11133 completer: *mut GFilenameCompleter,
11134 initial_text: *const c_char,
11135 ) -> *mut c_char;
11136 pub fn g_filename_completer_get_completions(
11137 completer: *mut GFilenameCompleter,
11138 initial_text: *const c_char,
11139 ) -> *mut *mut c_char;
11140 pub fn g_filename_completer_set_dirs_only(
11141 completer: *mut GFilenameCompleter,
11142 dirs_only: gboolean,
11143 );
11144
11145 pub fn g_filter_input_stream_get_type() -> GType;
11149 pub fn g_filter_input_stream_get_base_stream(
11150 stream: *mut GFilterInputStream,
11151 ) -> *mut GInputStream;
11152 pub fn g_filter_input_stream_get_close_base_stream(stream: *mut GFilterInputStream)
11153 -> gboolean;
11154 pub fn g_filter_input_stream_set_close_base_stream(
11155 stream: *mut GFilterInputStream,
11156 close_base: gboolean,
11157 );
11158
11159 pub fn g_filter_output_stream_get_type() -> GType;
11163 pub fn g_filter_output_stream_get_base_stream(
11164 stream: *mut GFilterOutputStream,
11165 ) -> *mut GOutputStream;
11166 pub fn g_filter_output_stream_get_close_base_stream(
11167 stream: *mut GFilterOutputStream,
11168 ) -> gboolean;
11169 pub fn g_filter_output_stream_set_close_base_stream(
11170 stream: *mut GFilterOutputStream,
11171 close_base: gboolean,
11172 );
11173
11174 pub fn g_io_module_get_type() -> GType;
11178 pub fn g_io_module_new(filename: *const c_char) -> *mut GIOModule;
11179 pub fn g_io_module_query() -> *mut *mut c_char;
11180 pub fn g_io_module_load(module: *mut GIOModule);
11181 pub fn g_io_module_unload(module: *mut GIOModule);
11182
11183 pub fn g_io_stream_get_type() -> GType;
11187 pub fn g_io_stream_splice_finish(
11188 result: *mut GAsyncResult,
11189 error: *mut *mut glib::GError,
11190 ) -> gboolean;
11191 pub fn g_io_stream_clear_pending(stream: *mut GIOStream);
11192 pub fn g_io_stream_close(
11193 stream: *mut GIOStream,
11194 cancellable: *mut GCancellable,
11195 error: *mut *mut glib::GError,
11196 ) -> gboolean;
11197 pub fn g_io_stream_close_async(
11198 stream: *mut GIOStream,
11199 io_priority: c_int,
11200 cancellable: *mut GCancellable,
11201 callback: GAsyncReadyCallback,
11202 user_data: gpointer,
11203 );
11204 pub fn g_io_stream_close_finish(
11205 stream: *mut GIOStream,
11206 result: *mut GAsyncResult,
11207 error: *mut *mut glib::GError,
11208 ) -> gboolean;
11209 pub fn g_io_stream_get_input_stream(stream: *mut GIOStream) -> *mut GInputStream;
11210 pub fn g_io_stream_get_output_stream(stream: *mut GIOStream) -> *mut GOutputStream;
11211 pub fn g_io_stream_has_pending(stream: *mut GIOStream) -> gboolean;
11212 pub fn g_io_stream_is_closed(stream: *mut GIOStream) -> gboolean;
11213 pub fn g_io_stream_set_pending(
11214 stream: *mut GIOStream,
11215 error: *mut *mut glib::GError,
11216 ) -> gboolean;
11217 pub fn g_io_stream_splice_async(
11218 stream1: *mut GIOStream,
11219 stream2: *mut GIOStream,
11220 flags: GIOStreamSpliceFlags,
11221 io_priority: c_int,
11222 cancellable: *mut GCancellable,
11223 callback: GAsyncReadyCallback,
11224 user_data: gpointer,
11225 );
11226
11227 pub fn g_inet_address_get_type() -> GType;
11231 pub fn g_inet_address_new_any(family: GSocketFamily) -> *mut GInetAddress;
11232 pub fn g_inet_address_new_from_bytes(
11233 bytes: *const u8,
11234 family: GSocketFamily,
11235 ) -> *mut GInetAddress;
11236 pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress;
11237 pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
11238 pub fn g_inet_address_equal(
11239 address: *mut GInetAddress,
11240 other_address: *mut GInetAddress,
11241 ) -> gboolean;
11242 pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
11243 pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
11244 pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
11245 pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
11246 pub fn g_inet_address_get_is_mc_global(address: *mut GInetAddress) -> gboolean;
11247 pub fn g_inet_address_get_is_mc_link_local(address: *mut GInetAddress) -> gboolean;
11248 pub fn g_inet_address_get_is_mc_node_local(address: *mut GInetAddress) -> gboolean;
11249 pub fn g_inet_address_get_is_mc_org_local(address: *mut GInetAddress) -> gboolean;
11250 pub fn g_inet_address_get_is_mc_site_local(address: *mut GInetAddress) -> gboolean;
11251 pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
11252 pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
11253 pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t;
11254 pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8;
11255 pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char;
11256
11257 pub fn g_inet_address_mask_get_type() -> GType;
11261 pub fn g_inet_address_mask_new(
11262 addr: *mut GInetAddress,
11263 length: c_uint,
11264 error: *mut *mut glib::GError,
11265 ) -> *mut GInetAddressMask;
11266 pub fn g_inet_address_mask_new_from_string(
11267 mask_string: *const c_char,
11268 error: *mut *mut glib::GError,
11269 ) -> *mut GInetAddressMask;
11270 pub fn g_inet_address_mask_equal(
11271 mask: *mut GInetAddressMask,
11272 mask2: *mut GInetAddressMask,
11273 ) -> gboolean;
11274 pub fn g_inet_address_mask_get_address(mask: *mut GInetAddressMask) -> *mut GInetAddress;
11275 pub fn g_inet_address_mask_get_family(mask: *mut GInetAddressMask) -> GSocketFamily;
11276 pub fn g_inet_address_mask_get_length(mask: *mut GInetAddressMask) -> c_uint;
11277 pub fn g_inet_address_mask_matches(
11278 mask: *mut GInetAddressMask,
11279 address: *mut GInetAddress,
11280 ) -> gboolean;
11281 pub fn g_inet_address_mask_to_string(mask: *mut GInetAddressMask) -> *mut c_char;
11282
11283 pub fn g_inet_socket_address_get_type() -> GType;
11287 pub fn g_inet_socket_address_new(address: *mut GInetAddress, port: u16) -> *mut GSocketAddress;
11288 pub fn g_inet_socket_address_new_from_string(
11289 address: *const c_char,
11290 port: c_uint,
11291 ) -> *mut GSocketAddress;
11292 pub fn g_inet_socket_address_get_address(address: *mut GInetSocketAddress)
11293 -> *mut GInetAddress;
11294 pub fn g_inet_socket_address_get_flowinfo(address: *mut GInetSocketAddress) -> u32;
11295 pub fn g_inet_socket_address_get_port(address: *mut GInetSocketAddress) -> u16;
11296 pub fn g_inet_socket_address_get_scope_id(address: *mut GInetSocketAddress) -> u32;
11297
11298 pub fn g_input_stream_get_type() -> GType;
11302 pub fn g_input_stream_clear_pending(stream: *mut GInputStream);
11303 pub fn g_input_stream_close(
11304 stream: *mut GInputStream,
11305 cancellable: *mut GCancellable,
11306 error: *mut *mut glib::GError,
11307 ) -> gboolean;
11308 pub fn g_input_stream_close_async(
11309 stream: *mut GInputStream,
11310 io_priority: c_int,
11311 cancellable: *mut GCancellable,
11312 callback: GAsyncReadyCallback,
11313 user_data: gpointer,
11314 );
11315 pub fn g_input_stream_close_finish(
11316 stream: *mut GInputStream,
11317 result: *mut GAsyncResult,
11318 error: *mut *mut glib::GError,
11319 ) -> gboolean;
11320 pub fn g_input_stream_has_pending(stream: *mut GInputStream) -> gboolean;
11321 pub fn g_input_stream_is_closed(stream: *mut GInputStream) -> gboolean;
11322 pub fn g_input_stream_read(
11323 stream: *mut GInputStream,
11324 buffer: *mut u8,
11325 count: size_t,
11326 cancellable: *mut GCancellable,
11327 error: *mut *mut glib::GError,
11328 ) -> ssize_t;
11329 pub fn g_input_stream_read_all(
11330 stream: *mut GInputStream,
11331 buffer: *mut u8,
11332 count: size_t,
11333 bytes_read: *mut size_t,
11334 cancellable: *mut GCancellable,
11335 error: *mut *mut glib::GError,
11336 ) -> gboolean;
11337 #[cfg(any(feature = "v2_44", feature = "dox"))]
11338 pub fn g_input_stream_read_all_async(
11339 stream: *mut GInputStream,
11340 buffer: *mut u8,
11341 count: size_t,
11342 io_priority: c_int,
11343 cancellable: *mut GCancellable,
11344 callback: GAsyncReadyCallback,
11345 user_data: gpointer,
11346 );
11347 #[cfg(any(feature = "v2_44", feature = "dox"))]
11348 pub fn g_input_stream_read_all_finish(
11349 stream: *mut GInputStream,
11350 result: *mut GAsyncResult,
11351 bytes_read: *mut size_t,
11352 error: *mut *mut glib::GError,
11353 ) -> gboolean;
11354 pub fn g_input_stream_read_async(
11355 stream: *mut GInputStream,
11356 buffer: *mut u8,
11357 count: size_t,
11358 io_priority: c_int,
11359 cancellable: *mut GCancellable,
11360 callback: GAsyncReadyCallback,
11361 user_data: gpointer,
11362 );
11363 pub fn g_input_stream_read_bytes(
11364 stream: *mut GInputStream,
11365 count: size_t,
11366 cancellable: *mut GCancellable,
11367 error: *mut *mut glib::GError,
11368 ) -> *mut glib::GBytes;
11369 pub fn g_input_stream_read_bytes_async(
11370 stream: *mut GInputStream,
11371 count: size_t,
11372 io_priority: c_int,
11373 cancellable: *mut GCancellable,
11374 callback: GAsyncReadyCallback,
11375 user_data: gpointer,
11376 );
11377 pub fn g_input_stream_read_bytes_finish(
11378 stream: *mut GInputStream,
11379 result: *mut GAsyncResult,
11380 error: *mut *mut glib::GError,
11381 ) -> *mut glib::GBytes;
11382 pub fn g_input_stream_read_finish(
11383 stream: *mut GInputStream,
11384 result: *mut GAsyncResult,
11385 error: *mut *mut glib::GError,
11386 ) -> ssize_t;
11387 pub fn g_input_stream_set_pending(
11388 stream: *mut GInputStream,
11389 error: *mut *mut glib::GError,
11390 ) -> gboolean;
11391 pub fn g_input_stream_skip(
11392 stream: *mut GInputStream,
11393 count: size_t,
11394 cancellable: *mut GCancellable,
11395 error: *mut *mut glib::GError,
11396 ) -> ssize_t;
11397 pub fn g_input_stream_skip_async(
11398 stream: *mut GInputStream,
11399 count: size_t,
11400 io_priority: c_int,
11401 cancellable: *mut GCancellable,
11402 callback: GAsyncReadyCallback,
11403 user_data: gpointer,
11404 );
11405 pub fn g_input_stream_skip_finish(
11406 stream: *mut GInputStream,
11407 result: *mut GAsyncResult,
11408 error: *mut *mut glib::GError,
11409 ) -> ssize_t;
11410
11411 pub fn g_list_store_get_type() -> GType;
11415 #[cfg(any(feature = "v2_44", feature = "dox"))]
11416 pub fn g_list_store_new(item_type: GType) -> *mut GListStore;
11417 #[cfg(any(feature = "v2_44", feature = "dox"))]
11418 pub fn g_list_store_append(store: *mut GListStore, item: *mut gobject::GObject);
11419 #[cfg(any(feature = "v2_44", feature = "dox"))]
11420 pub fn g_list_store_insert(
11421 store: *mut GListStore,
11422 position: c_uint,
11423 item: *mut gobject::GObject,
11424 );
11425 #[cfg(any(feature = "v2_44", feature = "dox"))]
11426 pub fn g_list_store_insert_sorted(
11427 store: *mut GListStore,
11428 item: *mut gobject::GObject,
11429 compare_func: glib::GCompareDataFunc,
11430 user_data: gpointer,
11431 ) -> c_uint;
11432 #[cfg(any(feature = "v2_44", feature = "dox"))]
11433 pub fn g_list_store_remove(store: *mut GListStore, position: c_uint);
11434 #[cfg(any(feature = "v2_44", feature = "dox"))]
11435 pub fn g_list_store_remove_all(store: *mut GListStore);
11436 #[cfg(any(feature = "v2_46", feature = "dox"))]
11437 pub fn g_list_store_sort(
11438 store: *mut GListStore,
11439 compare_func: glib::GCompareDataFunc,
11440 user_data: gpointer,
11441 );
11442 #[cfg(any(feature = "v2_44", feature = "dox"))]
11443 pub fn g_list_store_splice(
11444 store: *mut GListStore,
11445 position: c_uint,
11446 n_removals: c_uint,
11447 additions: *mut *mut gobject::GObject,
11448 n_additions: c_uint,
11449 );
11450
11451 pub fn g_memory_input_stream_get_type() -> GType;
11455 pub fn g_memory_input_stream_new() -> *mut GInputStream;
11456 pub fn g_memory_input_stream_new_from_bytes(bytes: *mut glib::GBytes) -> *mut GInputStream;
11457 pub fn g_memory_input_stream_new_from_data(
11458 data: *mut u8,
11459 len: ssize_t,
11460 destroy: glib::GDestroyNotify,
11461 ) -> *mut GInputStream;
11462 pub fn g_memory_input_stream_add_bytes(
11463 stream: *mut GMemoryInputStream,
11464 bytes: *mut glib::GBytes,
11465 );
11466 pub fn g_memory_input_stream_add_data(
11467 stream: *mut GMemoryInputStream,
11468 data: *mut u8,
11469 len: ssize_t,
11470 destroy: glib::GDestroyNotify,
11471 );
11472
11473 pub fn g_memory_output_stream_get_type() -> GType;
11477 pub fn g_memory_output_stream_new(
11478 data: gpointer,
11479 size: size_t,
11480 realloc_function: GReallocFunc,
11481 destroy_function: glib::GDestroyNotify,
11482 ) -> *mut GOutputStream;
11483 pub fn g_memory_output_stream_new_resizable() -> *mut GOutputStream;
11484 pub fn g_memory_output_stream_get_data(ostream: *mut GMemoryOutputStream) -> gpointer;
11485 pub fn g_memory_output_stream_get_data_size(ostream: *mut GMemoryOutputStream) -> size_t;
11486 pub fn g_memory_output_stream_get_size(ostream: *mut GMemoryOutputStream) -> size_t;
11487 pub fn g_memory_output_stream_steal_as_bytes(
11488 ostream: *mut GMemoryOutputStream,
11489 ) -> *mut glib::GBytes;
11490 pub fn g_memory_output_stream_steal_data(ostream: *mut GMemoryOutputStream) -> gpointer;
11491
11492 pub fn g_menu_get_type() -> GType;
11496 pub fn g_menu_new() -> *mut GMenu;
11497 pub fn g_menu_append(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
11498 pub fn g_menu_append_item(menu: *mut GMenu, item: *mut GMenuItem);
11499 pub fn g_menu_append_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
11500 pub fn g_menu_append_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
11501 pub fn g_menu_freeze(menu: *mut GMenu);
11502 pub fn g_menu_insert(
11503 menu: *mut GMenu,
11504 position: c_int,
11505 label: *const c_char,
11506 detailed_action: *const c_char,
11507 );
11508 pub fn g_menu_insert_item(menu: *mut GMenu, position: c_int, item: *mut GMenuItem);
11509 pub fn g_menu_insert_section(
11510 menu: *mut GMenu,
11511 position: c_int,
11512 label: *const c_char,
11513 section: *mut GMenuModel,
11514 );
11515 pub fn g_menu_insert_submenu(
11516 menu: *mut GMenu,
11517 position: c_int,
11518 label: *const c_char,
11519 submenu: *mut GMenuModel,
11520 );
11521 pub fn g_menu_prepend(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
11522 pub fn g_menu_prepend_item(menu: *mut GMenu, item: *mut GMenuItem);
11523 pub fn g_menu_prepend_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
11524 pub fn g_menu_prepend_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
11525 pub fn g_menu_remove(menu: *mut GMenu, position: c_int);
11526 pub fn g_menu_remove_all(menu: *mut GMenu);
11527
11528 pub fn g_menu_attribute_iter_get_type() -> GType;
11532 pub fn g_menu_attribute_iter_get_name(iter: *mut GMenuAttributeIter) -> *const c_char;
11533 pub fn g_menu_attribute_iter_get_next(
11534 iter: *mut GMenuAttributeIter,
11535 out_name: *mut *const c_char,
11536 value: *mut *mut glib::GVariant,
11537 ) -> gboolean;
11538 pub fn g_menu_attribute_iter_get_value(iter: *mut GMenuAttributeIter) -> *mut glib::GVariant;
11539 pub fn g_menu_attribute_iter_next(iter: *mut GMenuAttributeIter) -> gboolean;
11540
11541 pub fn g_menu_item_get_type() -> GType;
11545 pub fn g_menu_item_new(label: *const c_char, detailed_action: *const c_char) -> *mut GMenuItem;
11546 pub fn g_menu_item_new_from_model(model: *mut GMenuModel, item_index: c_int) -> *mut GMenuItem;
11547 pub fn g_menu_item_new_section(
11548 label: *const c_char,
11549 section: *mut GMenuModel,
11550 ) -> *mut GMenuItem;
11551 pub fn g_menu_item_new_submenu(
11552 label: *const c_char,
11553 submenu: *mut GMenuModel,
11554 ) -> *mut GMenuItem;
11555 pub fn g_menu_item_get_attribute(
11556 menu_item: *mut GMenuItem,
11557 attribute: *const c_char,
11558 format_string: *const c_char,
11559 ...
11560 ) -> gboolean;
11561 pub fn g_menu_item_get_attribute_value(
11562 menu_item: *mut GMenuItem,
11563 attribute: *const c_char,
11564 expected_type: *const glib::GVariantType,
11565 ) -> *mut glib::GVariant;
11566 pub fn g_menu_item_get_link(menu_item: *mut GMenuItem, link: *const c_char) -> *mut GMenuModel;
11567 pub fn g_menu_item_set_action_and_target(
11568 menu_item: *mut GMenuItem,
11569 action: *const c_char,
11570 format_string: *const c_char,
11571 ...
11572 );
11573 pub fn g_menu_item_set_action_and_target_value(
11574 menu_item: *mut GMenuItem,
11575 action: *const c_char,
11576 target_value: *mut glib::GVariant,
11577 );
11578 pub fn g_menu_item_set_attribute(
11579 menu_item: *mut GMenuItem,
11580 attribute: *const c_char,
11581 format_string: *const c_char,
11582 ...
11583 );
11584 pub fn g_menu_item_set_attribute_value(
11585 menu_item: *mut GMenuItem,
11586 attribute: *const c_char,
11587 value: *mut glib::GVariant,
11588 );
11589 pub fn g_menu_item_set_detailed_action(
11590 menu_item: *mut GMenuItem,
11591 detailed_action: *const c_char,
11592 );
11593 pub fn g_menu_item_set_icon(menu_item: *mut GMenuItem, icon: *mut GIcon);
11594 pub fn g_menu_item_set_label(menu_item: *mut GMenuItem, label: *const c_char);
11595 pub fn g_menu_item_set_link(
11596 menu_item: *mut GMenuItem,
11597 link: *const c_char,
11598 model: *mut GMenuModel,
11599 );
11600 pub fn g_menu_item_set_section(menu_item: *mut GMenuItem, section: *mut GMenuModel);
11601 pub fn g_menu_item_set_submenu(menu_item: *mut GMenuItem, submenu: *mut GMenuModel);
11602
11603 pub fn g_menu_link_iter_get_type() -> GType;
11607 pub fn g_menu_link_iter_get_name(iter: *mut GMenuLinkIter) -> *const c_char;
11608 pub fn g_menu_link_iter_get_next(
11609 iter: *mut GMenuLinkIter,
11610 out_link: *mut *const c_char,
11611 value: *mut *mut GMenuModel,
11612 ) -> gboolean;
11613 pub fn g_menu_link_iter_get_value(iter: *mut GMenuLinkIter) -> *mut GMenuModel;
11614 pub fn g_menu_link_iter_next(iter: *mut GMenuLinkIter) -> gboolean;
11615
11616 pub fn g_menu_model_get_type() -> GType;
11620 pub fn g_menu_model_get_item_attribute(
11621 model: *mut GMenuModel,
11622 item_index: c_int,
11623 attribute: *const c_char,
11624 format_string: *const c_char,
11625 ...
11626 ) -> gboolean;
11627 pub fn g_menu_model_get_item_attribute_value(
11628 model: *mut GMenuModel,
11629 item_index: c_int,
11630 attribute: *const c_char,
11631 expected_type: *const glib::GVariantType,
11632 ) -> *mut glib::GVariant;
11633 pub fn g_menu_model_get_item_link(
11634 model: *mut GMenuModel,
11635 item_index: c_int,
11636 link: *const c_char,
11637 ) -> *mut GMenuModel;
11638 pub fn g_menu_model_get_n_items(model: *mut GMenuModel) -> c_int;
11639 pub fn g_menu_model_is_mutable(model: *mut GMenuModel) -> gboolean;
11640 pub fn g_menu_model_items_changed(
11641 model: *mut GMenuModel,
11642 position: c_int,
11643 removed: c_int,
11644 added: c_int,
11645 );
11646 pub fn g_menu_model_iterate_item_attributes(
11647 model: *mut GMenuModel,
11648 item_index: c_int,
11649 ) -> *mut GMenuAttributeIter;
11650 pub fn g_menu_model_iterate_item_links(
11651 model: *mut GMenuModel,
11652 item_index: c_int,
11653 ) -> *mut GMenuLinkIter;
11654
11655 pub fn g_mount_operation_get_type() -> GType;
11659 pub fn g_mount_operation_new() -> *mut GMountOperation;
11660 pub fn g_mount_operation_get_anonymous(op: *mut GMountOperation) -> gboolean;
11661 pub fn g_mount_operation_get_choice(op: *mut GMountOperation) -> c_int;
11662 pub fn g_mount_operation_get_domain(op: *mut GMountOperation) -> *const c_char;
11663 #[cfg(any(feature = "v2_58", feature = "dox"))]
11664 pub fn g_mount_operation_get_is_tcrypt_hidden_volume(op: *mut GMountOperation) -> gboolean;
11665 #[cfg(any(feature = "v2_58", feature = "dox"))]
11666 pub fn g_mount_operation_get_is_tcrypt_system_volume(op: *mut GMountOperation) -> gboolean;
11667 pub fn g_mount_operation_get_password(op: *mut GMountOperation) -> *const c_char;
11668 pub fn g_mount_operation_get_password_save(op: *mut GMountOperation) -> GPasswordSave;
11669 #[cfg(any(feature = "v2_58", feature = "dox"))]
11670 pub fn g_mount_operation_get_pim(op: *mut GMountOperation) -> c_uint;
11671 pub fn g_mount_operation_get_username(op: *mut GMountOperation) -> *const c_char;
11672 pub fn g_mount_operation_reply(op: *mut GMountOperation, result: GMountOperationResult);
11673 pub fn g_mount_operation_set_anonymous(op: *mut GMountOperation, anonymous: gboolean);
11674 pub fn g_mount_operation_set_choice(op: *mut GMountOperation, choice: c_int);
11675 pub fn g_mount_operation_set_domain(op: *mut GMountOperation, domain: *const c_char);
11676 #[cfg(any(feature = "v2_58", feature = "dox"))]
11677 pub fn g_mount_operation_set_is_tcrypt_hidden_volume(
11678 op: *mut GMountOperation,
11679 hidden_volume: gboolean,
11680 );
11681 #[cfg(any(feature = "v2_58", feature = "dox"))]
11682 pub fn g_mount_operation_set_is_tcrypt_system_volume(
11683 op: *mut GMountOperation,
11684 system_volume: gboolean,
11685 );
11686 pub fn g_mount_operation_set_password(op: *mut GMountOperation, password: *const c_char);
11687 pub fn g_mount_operation_set_password_save(op: *mut GMountOperation, save: GPasswordSave);
11688 #[cfg(any(feature = "v2_58", feature = "dox"))]
11689 pub fn g_mount_operation_set_pim(op: *mut GMountOperation, pim: c_uint);
11690 pub fn g_mount_operation_set_username(op: *mut GMountOperation, username: *const c_char);
11691
11692 pub fn g_native_volume_monitor_get_type() -> GType;
11696
11697 pub fn g_network_address_get_type() -> GType;
11701 pub fn g_network_address_new(hostname: *const c_char, port: u16) -> *mut GNetworkAddress;
11702 #[cfg(any(feature = "v2_44", feature = "dox"))]
11703 pub fn g_network_address_new_loopback(port: u16) -> *mut GNetworkAddress;
11704 pub fn g_network_address_parse(
11705 host_and_port: *const c_char,
11706 default_port: u16,
11707 error: *mut *mut glib::GError,
11708 ) -> *mut GNetworkAddress;
11709 pub fn g_network_address_parse_uri(
11710 uri: *const c_char,
11711 default_port: u16,
11712 error: *mut *mut glib::GError,
11713 ) -> *mut GNetworkAddress;
11714 pub fn g_network_address_get_hostname(addr: *mut GNetworkAddress) -> *const c_char;
11715 pub fn g_network_address_get_port(addr: *mut GNetworkAddress) -> u16;
11716 pub fn g_network_address_get_scheme(addr: *mut GNetworkAddress) -> *const c_char;
11717
11718 pub fn g_network_service_get_type() -> GType;
11722 pub fn g_network_service_new(
11723 service: *const c_char,
11724 protocol: *const c_char,
11725 domain: *const c_char,
11726 ) -> *mut GNetworkService;
11727 pub fn g_network_service_get_domain(srv: *mut GNetworkService) -> *const c_char;
11728 pub fn g_network_service_get_protocol(srv: *mut GNetworkService) -> *const c_char;
11729 pub fn g_network_service_get_scheme(srv: *mut GNetworkService) -> *const c_char;
11730 pub fn g_network_service_get_service(srv: *mut GNetworkService) -> *const c_char;
11731 pub fn g_network_service_set_scheme(srv: *mut GNetworkService, scheme: *const c_char);
11732
11733 pub fn g_notification_get_type() -> GType;
11737 pub fn g_notification_new(title: *const c_char) -> *mut GNotification;
11738 pub fn g_notification_add_button(
11739 notification: *mut GNotification,
11740 label: *const c_char,
11741 detailed_action: *const c_char,
11742 );
11743 pub fn g_notification_add_button_with_target(
11744 notification: *mut GNotification,
11745 label: *const c_char,
11746 action: *const c_char,
11747 target_format: *const c_char,
11748 ...
11749 );
11750 pub fn g_notification_add_button_with_target_value(
11751 notification: *mut GNotification,
11752 label: *const c_char,
11753 action: *const c_char,
11754 target: *mut glib::GVariant,
11755 );
11756 pub fn g_notification_set_body(notification: *mut GNotification, body: *const c_char);
11757 pub fn g_notification_set_default_action(
11758 notification: *mut GNotification,
11759 detailed_action: *const c_char,
11760 );
11761 pub fn g_notification_set_default_action_and_target(
11762 notification: *mut GNotification,
11763 action: *const c_char,
11764 target_format: *const c_char,
11765 ...
11766 );
11767 pub fn g_notification_set_default_action_and_target_value(
11768 notification: *mut GNotification,
11769 action: *const c_char,
11770 target: *mut glib::GVariant,
11771 );
11772 pub fn g_notification_set_icon(notification: *mut GNotification, icon: *mut GIcon);
11773 pub fn g_notification_set_priority(
11774 notification: *mut GNotification,
11775 priority: GNotificationPriority,
11776 );
11777 pub fn g_notification_set_title(notification: *mut GNotification, title: *const c_char);
11778 pub fn g_notification_set_urgent(notification: *mut GNotification, urgent: gboolean);
11779
11780 pub fn g_output_stream_get_type() -> GType;
11784 pub fn g_output_stream_clear_pending(stream: *mut GOutputStream);
11785 pub fn g_output_stream_close(
11786 stream: *mut GOutputStream,
11787 cancellable: *mut GCancellable,
11788 error: *mut *mut glib::GError,
11789 ) -> gboolean;
11790 pub fn g_output_stream_close_async(
11791 stream: *mut GOutputStream,
11792 io_priority: c_int,
11793 cancellable: *mut GCancellable,
11794 callback: GAsyncReadyCallback,
11795 user_data: gpointer,
11796 );
11797 pub fn g_output_stream_close_finish(
11798 stream: *mut GOutputStream,
11799 result: *mut GAsyncResult,
11800 error: *mut *mut glib::GError,
11801 ) -> gboolean;
11802 pub fn g_output_stream_flush(
11803 stream: *mut GOutputStream,
11804 cancellable: *mut GCancellable,
11805 error: *mut *mut glib::GError,
11806 ) -> gboolean;
11807 pub fn g_output_stream_flush_async(
11808 stream: *mut GOutputStream,
11809 io_priority: c_int,
11810 cancellable: *mut GCancellable,
11811 callback: GAsyncReadyCallback,
11812 user_data: gpointer,
11813 );
11814 pub fn g_output_stream_flush_finish(
11815 stream: *mut GOutputStream,
11816 result: *mut GAsyncResult,
11817 error: *mut *mut glib::GError,
11818 ) -> gboolean;
11819 pub fn g_output_stream_has_pending(stream: *mut GOutputStream) -> gboolean;
11820 pub fn g_output_stream_is_closed(stream: *mut GOutputStream) -> gboolean;
11821 pub fn g_output_stream_is_closing(stream: *mut GOutputStream) -> gboolean;
11822 pub fn g_output_stream_printf(
11823 stream: *mut GOutputStream,
11824 bytes_written: *mut size_t,
11825 cancellable: *mut GCancellable,
11826 error: *mut *mut glib::GError,
11827 format: *const c_char,
11828 ...
11829 ) -> gboolean;
11830 pub fn g_output_stream_set_pending(
11831 stream: *mut GOutputStream,
11832 error: *mut *mut glib::GError,
11833 ) -> gboolean;
11834 pub fn g_output_stream_splice(
11835 stream: *mut GOutputStream,
11836 source: *mut GInputStream,
11837 flags: GOutputStreamSpliceFlags,
11838 cancellable: *mut GCancellable,
11839 error: *mut *mut glib::GError,
11840 ) -> ssize_t;
11841 pub fn g_output_stream_splice_async(
11842 stream: *mut GOutputStream,
11843 source: *mut GInputStream,
11844 flags: GOutputStreamSpliceFlags,
11845 io_priority: c_int,
11846 cancellable: *mut GCancellable,
11847 callback: GAsyncReadyCallback,
11848 user_data: gpointer,
11849 );
11850 pub fn g_output_stream_splice_finish(
11851 stream: *mut GOutputStream,
11852 result: *mut GAsyncResult,
11853 error: *mut *mut glib::GError,
11854 ) -> ssize_t;
11855 pub fn g_output_stream_write(
11857 stream: *mut GOutputStream,
11858 buffer: *mut u8,
11859 count: size_t,
11860 cancellable: *mut GCancellable,
11861 error: *mut *mut glib::GError,
11862 ) -> ssize_t;
11863 pub fn g_output_stream_write_all(
11864 stream: *mut GOutputStream,
11865 buffer: *mut u8,
11866 count: size_t,
11867 bytes_written: *mut size_t,
11868 cancellable: *mut GCancellable,
11869 error: *mut *mut glib::GError,
11870 ) -> gboolean;
11871 #[cfg(any(feature = "v2_44", feature = "dox"))]
11872 pub fn g_output_stream_write_all_async(
11873 stream: *mut GOutputStream,
11874 buffer: *mut u8,
11875 count: size_t,
11876 io_priority: c_int,
11877 cancellable: *mut GCancellable,
11878 callback: GAsyncReadyCallback,
11879 user_data: gpointer,
11880 );
11881 #[cfg(any(feature = "v2_44", feature = "dox"))]
11882 pub fn g_output_stream_write_all_finish(
11883 stream: *mut GOutputStream,
11884 result: *mut GAsyncResult,
11885 bytes_written: *mut size_t,
11886 error: *mut *mut glib::GError,
11887 ) -> gboolean;
11888 pub fn g_output_stream_write_async(
11889 stream: *mut GOutputStream,
11890 buffer: *mut u8,
11891 count: size_t,
11892 io_priority: c_int,
11893 cancellable: *mut GCancellable,
11894 callback: GAsyncReadyCallback,
11895 user_data: gpointer,
11896 );
11897 pub fn g_output_stream_write_bytes(
11898 stream: *mut GOutputStream,
11899 bytes: *mut glib::GBytes,
11900 cancellable: *mut GCancellable,
11901 error: *mut *mut glib::GError,
11902 ) -> ssize_t;
11903 pub fn g_output_stream_write_bytes_async(
11904 stream: *mut GOutputStream,
11905 bytes: *mut glib::GBytes,
11906 io_priority: c_int,
11907 cancellable: *mut GCancellable,
11908 callback: GAsyncReadyCallback,
11909 user_data: gpointer,
11910 );
11911 pub fn g_output_stream_write_bytes_finish(
11912 stream: *mut GOutputStream,
11913 result: *mut GAsyncResult,
11914 error: *mut *mut glib::GError,
11915 ) -> ssize_t;
11916 pub fn g_output_stream_write_finish(
11917 stream: *mut GOutputStream,
11918 result: *mut GAsyncResult,
11919 error: *mut *mut glib::GError,
11920 ) -> ssize_t;
11921
11922 pub fn g_permission_get_type() -> GType;
11926 pub fn g_permission_acquire(
11927 permission: *mut GPermission,
11928 cancellable: *mut GCancellable,
11929 error: *mut *mut glib::GError,
11930 ) -> gboolean;
11931 pub fn g_permission_acquire_async(
11932 permission: *mut GPermission,
11933 cancellable: *mut GCancellable,
11934 callback: GAsyncReadyCallback,
11935 user_data: gpointer,
11936 );
11937 pub fn g_permission_acquire_finish(
11938 permission: *mut GPermission,
11939 result: *mut GAsyncResult,
11940 error: *mut *mut glib::GError,
11941 ) -> gboolean;
11942 pub fn g_permission_get_allowed(permission: *mut GPermission) -> gboolean;
11943 pub fn g_permission_get_can_acquire(permission: *mut GPermission) -> gboolean;
11944 pub fn g_permission_get_can_release(permission: *mut GPermission) -> gboolean;
11945 pub fn g_permission_impl_update(
11946 permission: *mut GPermission,
11947 allowed: gboolean,
11948 can_acquire: gboolean,
11949 can_release: gboolean,
11950 );
11951 pub fn g_permission_release(
11952 permission: *mut GPermission,
11953 cancellable: *mut GCancellable,
11954 error: *mut *mut glib::GError,
11955 ) -> gboolean;
11956 pub fn g_permission_release_async(
11957 permission: *mut GPermission,
11958 cancellable: *mut GCancellable,
11959 callback: GAsyncReadyCallback,
11960 user_data: gpointer,
11961 );
11962 pub fn g_permission_release_finish(
11963 permission: *mut GPermission,
11964 result: *mut GAsyncResult,
11965 error: *mut *mut glib::GError,
11966 ) -> gboolean;
11967
11968 pub fn g_property_action_get_type() -> GType;
11972 pub fn g_property_action_new(
11973 name: *const c_char,
11974 object: *mut gobject::GObject,
11975 property_name: *const c_char,
11976 ) -> *mut GPropertyAction;
11977
11978 pub fn g_proxy_address_get_type() -> GType;
11982 pub fn g_proxy_address_new(
11983 inetaddr: *mut GInetAddress,
11984 port: u16,
11985 protocol: *const c_char,
11986 dest_hostname: *const c_char,
11987 dest_port: u16,
11988 username: *const c_char,
11989 password: *const c_char,
11990 ) -> *mut GSocketAddress;
11991 pub fn g_proxy_address_get_destination_hostname(proxy: *mut GProxyAddress) -> *const c_char;
11992 pub fn g_proxy_address_get_destination_port(proxy: *mut GProxyAddress) -> u16;
11993 pub fn g_proxy_address_get_destination_protocol(proxy: *mut GProxyAddress) -> *const c_char;
11994 pub fn g_proxy_address_get_password(proxy: *mut GProxyAddress) -> *const c_char;
11995 pub fn g_proxy_address_get_protocol(proxy: *mut GProxyAddress) -> *const c_char;
11996 pub fn g_proxy_address_get_uri(proxy: *mut GProxyAddress) -> *const c_char;
11997 pub fn g_proxy_address_get_username(proxy: *mut GProxyAddress) -> *const c_char;
11998
11999 pub fn g_proxy_address_enumerator_get_type() -> GType;
12003
12004 pub fn g_resolver_get_type() -> GType;
12008 pub fn g_resolver_free_addresses(addresses: *mut glib::GList);
12009 pub fn g_resolver_free_targets(targets: *mut glib::GList);
12010 pub fn g_resolver_get_default() -> *mut GResolver;
12011 pub fn g_resolver_lookup_by_address(
12012 resolver: *mut GResolver,
12013 address: *mut GInetAddress,
12014 cancellable: *mut GCancellable,
12015 error: *mut *mut glib::GError,
12016 ) -> *mut c_char;
12017 pub fn g_resolver_lookup_by_address_async(
12018 resolver: *mut GResolver,
12019 address: *mut GInetAddress,
12020 cancellable: *mut GCancellable,
12021 callback: GAsyncReadyCallback,
12022 user_data: gpointer,
12023 );
12024 pub fn g_resolver_lookup_by_address_finish(
12025 resolver: *mut GResolver,
12026 result: *mut GAsyncResult,
12027 error: *mut *mut glib::GError,
12028 ) -> *mut c_char;
12029 pub fn g_resolver_lookup_by_name(
12030 resolver: *mut GResolver,
12031 hostname: *const c_char,
12032 cancellable: *mut GCancellable,
12033 error: *mut *mut glib::GError,
12034 ) -> *mut glib::GList;
12035 pub fn g_resolver_lookup_by_name_async(
12036 resolver: *mut GResolver,
12037 hostname: *const c_char,
12038 cancellable: *mut GCancellable,
12039 callback: GAsyncReadyCallback,
12040 user_data: gpointer,
12041 );
12042 pub fn g_resolver_lookup_by_name_finish(
12043 resolver: *mut GResolver,
12044 result: *mut GAsyncResult,
12045 error: *mut *mut glib::GError,
12046 ) -> *mut glib::GList;
12047 pub fn g_resolver_lookup_records(
12048 resolver: *mut GResolver,
12049 rrname: *const c_char,
12050 record_type: GResolverRecordType,
12051 cancellable: *mut GCancellable,
12052 error: *mut *mut glib::GError,
12053 ) -> *mut glib::GList;
12054 pub fn g_resolver_lookup_records_async(
12055 resolver: *mut GResolver,
12056 rrname: *const c_char,
12057 record_type: GResolverRecordType,
12058 cancellable: *mut GCancellable,
12059 callback: GAsyncReadyCallback,
12060 user_data: gpointer,
12061 );
12062 pub fn g_resolver_lookup_records_finish(
12063 resolver: *mut GResolver,
12064 result: *mut GAsyncResult,
12065 error: *mut *mut glib::GError,
12066 ) -> *mut glib::GList;
12067 pub fn g_resolver_lookup_service(
12068 resolver: *mut GResolver,
12069 service: *const c_char,
12070 protocol: *const c_char,
12071 domain: *const c_char,
12072 cancellable: *mut GCancellable,
12073 error: *mut *mut glib::GError,
12074 ) -> *mut glib::GList;
12075 pub fn g_resolver_lookup_service_async(
12076 resolver: *mut GResolver,
12077 service: *const c_char,
12078 protocol: *const c_char,
12079 domain: *const c_char,
12080 cancellable: *mut GCancellable,
12081 callback: GAsyncReadyCallback,
12082 user_data: gpointer,
12083 );
12084 pub fn g_resolver_lookup_service_finish(
12085 resolver: *mut GResolver,
12086 result: *mut GAsyncResult,
12087 error: *mut *mut glib::GError,
12088 ) -> *mut glib::GList;
12089 pub fn g_resolver_set_default(resolver: *mut GResolver);
12090
12091 pub fn g_settings_get_type() -> GType;
12095 pub fn g_settings_new(schema_id: *const c_char) -> *mut GSettings;
12096 pub fn g_settings_new_full(
12097 schema: *mut GSettingsSchema,
12098 backend: *mut GSettingsBackend,
12099 path: *const c_char,
12100 ) -> *mut GSettings;
12101 pub fn g_settings_new_with_backend(
12102 schema_id: *const c_char,
12103 backend: *mut GSettingsBackend,
12104 ) -> *mut GSettings;
12105 pub fn g_settings_new_with_backend_and_path(
12106 schema_id: *const c_char,
12107 backend: *mut GSettingsBackend,
12108 path: *const c_char,
12109 ) -> *mut GSettings;
12110 pub fn g_settings_new_with_path(
12111 schema_id: *const c_char,
12112 path: *const c_char,
12113 ) -> *mut GSettings;
12114 pub fn g_settings_list_relocatable_schemas() -> *const *const c_char;
12115 pub fn g_settings_list_schemas() -> *const *const c_char;
12116 pub fn g_settings_sync();
12117 pub fn g_settings_unbind(object: *mut gobject::GObject, property: *const c_char);
12118 pub fn g_settings_apply(settings: *mut GSettings);
12119 pub fn g_settings_bind(
12120 settings: *mut GSettings,
12121 key: *const c_char,
12122 object: *mut gobject::GObject,
12123 property: *const c_char,
12124 flags: GSettingsBindFlags,
12125 );
12126 pub fn g_settings_bind_with_mapping(
12127 settings: *mut GSettings,
12128 key: *const c_char,
12129 object: *mut gobject::GObject,
12130 property: *const c_char,
12131 flags: GSettingsBindFlags,
12132 get_mapping: GSettingsBindGetMapping,
12133 set_mapping: GSettingsBindSetMapping,
12134 user_data: gpointer,
12135 destroy: glib::GDestroyNotify,
12136 );
12137 pub fn g_settings_bind_writable(
12138 settings: *mut GSettings,
12139 key: *const c_char,
12140 object: *mut gobject::GObject,
12141 property: *const c_char,
12142 inverted: gboolean,
12143 );
12144 pub fn g_settings_create_action(settings: *mut GSettings, key: *const c_char) -> *mut GAction;
12145 pub fn g_settings_delay(settings: *mut GSettings);
12146 pub fn g_settings_get(settings: *mut GSettings, key: *const c_char, format: *const c_char, ...);
12147 pub fn g_settings_get_boolean(settings: *mut GSettings, key: *const c_char) -> gboolean;
12148 pub fn g_settings_get_child(settings: *mut GSettings, name: *const c_char) -> *mut GSettings;
12149 pub fn g_settings_get_default_value(
12150 settings: *mut GSettings,
12151 key: *const c_char,
12152 ) -> *mut glib::GVariant;
12153 pub fn g_settings_get_double(settings: *mut GSettings, key: *const c_char) -> c_double;
12154 pub fn g_settings_get_enum(settings: *mut GSettings, key: *const c_char) -> c_int;
12155 pub fn g_settings_get_flags(settings: *mut GSettings, key: *const c_char) -> c_uint;
12156 pub fn g_settings_get_has_unapplied(settings: *mut GSettings) -> gboolean;
12157 pub fn g_settings_get_int(settings: *mut GSettings, key: *const c_char) -> c_int;
12158 #[cfg(any(feature = "v2_50", feature = "dox"))]
12159 pub fn g_settings_get_int64(settings: *mut GSettings, key: *const c_char) -> i64;
12160 pub fn g_settings_get_mapped(
12161 settings: *mut GSettings,
12162 key: *const c_char,
12163 mapping: GSettingsGetMapping,
12164 user_data: gpointer,
12165 ) -> gpointer;
12166 pub fn g_settings_get_range(
12167 settings: *mut GSettings,
12168 key: *const c_char,
12169 ) -> *mut glib::GVariant;
12170 pub fn g_settings_get_string(settings: *mut GSettings, key: *const c_char) -> *mut c_char;
12171 pub fn g_settings_get_strv(settings: *mut GSettings, key: *const c_char) -> *mut *mut c_char;
12172 pub fn g_settings_get_uint(settings: *mut GSettings, key: *const c_char) -> c_uint;
12173 #[cfg(any(feature = "v2_50", feature = "dox"))]
12174 pub fn g_settings_get_uint64(settings: *mut GSettings, key: *const c_char) -> u64;
12175 pub fn g_settings_get_user_value(
12176 settings: *mut GSettings,
12177 key: *const c_char,
12178 ) -> *mut glib::GVariant;
12179 pub fn g_settings_get_value(
12180 settings: *mut GSettings,
12181 key: *const c_char,
12182 ) -> *mut glib::GVariant;
12183 pub fn g_settings_is_writable(settings: *mut GSettings, name: *const c_char) -> gboolean;
12184 pub fn g_settings_list_children(settings: *mut GSettings) -> *mut *mut c_char;
12185 pub fn g_settings_list_keys(settings: *mut GSettings) -> *mut *mut c_char;
12186 pub fn g_settings_range_check(
12187 settings: *mut GSettings,
12188 key: *const c_char,
12189 value: *mut glib::GVariant,
12190 ) -> gboolean;
12191 pub fn g_settings_reset(settings: *mut GSettings, key: *const c_char);
12192 pub fn g_settings_revert(settings: *mut GSettings);
12193 pub fn g_settings_set(
12194 settings: *mut GSettings,
12195 key: *const c_char,
12196 format: *const c_char,
12197 ...
12198 ) -> gboolean;
12199 pub fn g_settings_set_boolean(
12200 settings: *mut GSettings,
12201 key: *const c_char,
12202 value: gboolean,
12203 ) -> gboolean;
12204 pub fn g_settings_set_double(
12205 settings: *mut GSettings,
12206 key: *const c_char,
12207 value: c_double,
12208 ) -> gboolean;
12209 pub fn g_settings_set_enum(
12210 settings: *mut GSettings,
12211 key: *const c_char,
12212 value: c_int,
12213 ) -> gboolean;
12214 pub fn g_settings_set_flags(
12215 settings: *mut GSettings,
12216 key: *const c_char,
12217 value: c_uint,
12218 ) -> gboolean;
12219 pub fn g_settings_set_int(
12220 settings: *mut GSettings,
12221 key: *const c_char,
12222 value: c_int,
12223 ) -> gboolean;
12224 #[cfg(any(feature = "v2_50", feature = "dox"))]
12225 pub fn g_settings_set_int64(
12226 settings: *mut GSettings,
12227 key: *const c_char,
12228 value: i64,
12229 ) -> gboolean;
12230 pub fn g_settings_set_string(
12231 settings: *mut GSettings,
12232 key: *const c_char,
12233 value: *const c_char,
12234 ) -> gboolean;
12235 pub fn g_settings_set_strv(
12236 settings: *mut GSettings,
12237 key: *const c_char,
12238 value: *const *const c_char,
12239 ) -> gboolean;
12240 pub fn g_settings_set_uint(
12241 settings: *mut GSettings,
12242 key: *const c_char,
12243 value: c_uint,
12244 ) -> gboolean;
12245 #[cfg(any(feature = "v2_50", feature = "dox"))]
12246 pub fn g_settings_set_uint64(
12247 settings: *mut GSettings,
12248 key: *const c_char,
12249 value: u64,
12250 ) -> gboolean;
12251 pub fn g_settings_set_value(
12252 settings: *mut GSettings,
12253 key: *const c_char,
12254 value: *mut glib::GVariant,
12255 ) -> gboolean;
12256
12257 pub fn g_settings_backend_get_type() -> GType;
12261 pub fn g_settings_backend_flatten_tree(
12262 tree: *mut glib::GTree,
12263 path: *mut *mut c_char,
12264 keys: *mut *mut *const c_char,
12265 values: *mut *mut *mut glib::GVariant,
12266 );
12267 pub fn g_settings_backend_get_default() -> *mut GSettingsBackend;
12268 pub fn g_settings_backend_changed(
12269 backend: *mut GSettingsBackend,
12270 key: *const c_char,
12271 origin_tag: gpointer,
12272 );
12273 pub fn g_settings_backend_changed_tree(
12274 backend: *mut GSettingsBackend,
12275 tree: *mut glib::GTree,
12276 origin_tag: gpointer,
12277 );
12278 pub fn g_settings_backend_keys_changed(
12279 backend: *mut GSettingsBackend,
12280 path: *const c_char,
12281 items: *const *const c_char,
12282 origin_tag: gpointer,
12283 );
12284 pub fn g_settings_backend_path_changed(
12285 backend: *mut GSettingsBackend,
12286 path: *const c_char,
12287 origin_tag: gpointer,
12288 );
12289 pub fn g_settings_backend_path_writable_changed(
12290 backend: *mut GSettingsBackend,
12291 path: *const c_char,
12292 );
12293 pub fn g_settings_backend_writable_changed(backend: *mut GSettingsBackend, key: *const c_char);
12294
12295 pub fn g_simple_action_get_type() -> GType;
12299 pub fn g_simple_action_new(
12300 name: *const c_char,
12301 parameter_type: *const glib::GVariantType,
12302 ) -> *mut GSimpleAction;
12303 pub fn g_simple_action_new_stateful(
12304 name: *const c_char,
12305 parameter_type: *const glib::GVariantType,
12306 state: *mut glib::GVariant,
12307 ) -> *mut GSimpleAction;
12308 pub fn g_simple_action_set_enabled(simple: *mut GSimpleAction, enabled: gboolean);
12309 pub fn g_simple_action_set_state(simple: *mut GSimpleAction, value: *mut glib::GVariant);
12310 #[cfg(any(feature = "v2_44", feature = "dox"))]
12311 pub fn g_simple_action_set_state_hint(
12312 simple: *mut GSimpleAction,
12313 state_hint: *mut glib::GVariant,
12314 );
12315
12316 pub fn g_simple_action_group_get_type() -> GType;
12320 pub fn g_simple_action_group_new() -> *mut GSimpleActionGroup;
12321 pub fn g_simple_action_group_add_entries(
12322 simple: *mut GSimpleActionGroup,
12323 entries: *const GActionEntry,
12324 n_entries: c_int,
12325 user_data: gpointer,
12326 );
12327 pub fn g_simple_action_group_insert(simple: *mut GSimpleActionGroup, action: *mut GAction);
12328 pub fn g_simple_action_group_lookup(
12329 simple: *mut GSimpleActionGroup,
12330 action_name: *const c_char,
12331 ) -> *mut GAction;
12332 pub fn g_simple_action_group_remove(
12333 simple: *mut GSimpleActionGroup,
12334 action_name: *const c_char,
12335 );
12336
12337 pub fn g_simple_async_result_get_type() -> GType;
12341 pub fn g_simple_async_result_new(
12342 source_object: *mut gobject::GObject,
12343 callback: GAsyncReadyCallback,
12344 user_data: gpointer,
12345 source_tag: gpointer,
12346 ) -> *mut GSimpleAsyncResult;
12347 pub fn g_simple_async_result_new_error(
12348 source_object: *mut gobject::GObject,
12349 callback: GAsyncReadyCallback,
12350 user_data: gpointer,
12351 domain: glib::GQuark,
12352 code: c_int,
12353 format: *const c_char,
12354 ...
12355 ) -> *mut GSimpleAsyncResult;
12356 pub fn g_simple_async_result_new_from_error(
12357 source_object: *mut gobject::GObject,
12358 callback: GAsyncReadyCallback,
12359 user_data: gpointer,
12360 error: *const glib::GError,
12361 ) -> *mut GSimpleAsyncResult;
12362 pub fn g_simple_async_result_new_take_error(
12363 source_object: *mut gobject::GObject,
12364 callback: GAsyncReadyCallback,
12365 user_data: gpointer,
12366 error: *mut glib::GError,
12367 ) -> *mut GSimpleAsyncResult;
12368 pub fn g_simple_async_result_is_valid(
12369 result: *mut GAsyncResult,
12370 source: *mut gobject::GObject,
12371 source_tag: gpointer,
12372 ) -> gboolean;
12373 pub fn g_simple_async_result_complete(simple: *mut GSimpleAsyncResult);
12374 pub fn g_simple_async_result_complete_in_idle(simple: *mut GSimpleAsyncResult);
12375 pub fn g_simple_async_result_get_op_res_gboolean(simple: *mut GSimpleAsyncResult) -> gboolean;
12376 pub fn g_simple_async_result_get_op_res_gpointer(simple: *mut GSimpleAsyncResult) -> gpointer;
12377 pub fn g_simple_async_result_get_op_res_gssize(simple: *mut GSimpleAsyncResult) -> ssize_t;
12378 pub fn g_simple_async_result_get_source_tag(simple: *mut GSimpleAsyncResult) -> gpointer;
12379 pub fn g_simple_async_result_propagate_error(
12380 simple: *mut GSimpleAsyncResult,
12381 error: *mut *mut glib::GError,
12382 ) -> gboolean;
12383 pub fn g_simple_async_result_run_in_thread(
12384 simple: *mut GSimpleAsyncResult,
12385 func: GSimpleAsyncThreadFunc,
12386 io_priority: c_int,
12387 cancellable: *mut GCancellable,
12388 );
12389 pub fn g_simple_async_result_set_check_cancellable(
12390 simple: *mut GSimpleAsyncResult,
12391 check_cancellable: *mut GCancellable,
12392 );
12393 pub fn g_simple_async_result_set_error(
12394 simple: *mut GSimpleAsyncResult,
12395 domain: glib::GQuark,
12396 code: c_int,
12397 format: *const c_char,
12398 ...
12399 );
12400 pub fn g_simple_async_result_set_from_error(
12402 simple: *mut GSimpleAsyncResult,
12403 error: *const glib::GError,
12404 );
12405 pub fn g_simple_async_result_set_handle_cancellation(
12406 simple: *mut GSimpleAsyncResult,
12407 handle_cancellation: gboolean,
12408 );
12409 pub fn g_simple_async_result_set_op_res_gboolean(
12410 simple: *mut GSimpleAsyncResult,
12411 op_res: gboolean,
12412 );
12413 pub fn g_simple_async_result_set_op_res_gpointer(
12414 simple: *mut GSimpleAsyncResult,
12415 op_res: gpointer,
12416 destroy_op_res: glib::GDestroyNotify,
12417 );
12418 pub fn g_simple_async_result_set_op_res_gssize(
12419 simple: *mut GSimpleAsyncResult,
12420 op_res: ssize_t,
12421 );
12422 pub fn g_simple_async_result_take_error(
12423 simple: *mut GSimpleAsyncResult,
12424 error: *mut glib::GError,
12425 );
12426
12427 pub fn g_simple_io_stream_get_type() -> GType;
12431 #[cfg(any(feature = "v2_44", feature = "dox"))]
12432 pub fn g_simple_io_stream_new(
12433 input_stream: *mut GInputStream,
12434 output_stream: *mut GOutputStream,
12435 ) -> *mut GIOStream;
12436
12437 pub fn g_simple_permission_get_type() -> GType;
12441 pub fn g_simple_permission_new(allowed: gboolean) -> *mut GPermission;
12442
12443 pub fn g_simple_proxy_resolver_get_type() -> GType;
12447 pub fn g_simple_proxy_resolver_new(
12448 default_proxy: *const c_char,
12449 ignore_hosts: *mut *mut c_char,
12450 ) -> *mut GProxyResolver;
12451 pub fn g_simple_proxy_resolver_set_default_proxy(
12452 resolver: *mut GSimpleProxyResolver,
12453 default_proxy: *const c_char,
12454 );
12455 pub fn g_simple_proxy_resolver_set_ignore_hosts(
12456 resolver: *mut GSimpleProxyResolver,
12457 ignore_hosts: *mut *mut c_char,
12458 );
12459 pub fn g_simple_proxy_resolver_set_uri_proxy(
12460 resolver: *mut GSimpleProxyResolver,
12461 uri_scheme: *const c_char,
12462 proxy: *const c_char,
12463 );
12464
12465 pub fn g_socket_get_type() -> GType;
12469 pub fn g_socket_new(
12470 family: GSocketFamily,
12471 type_: GSocketType,
12472 protocol: GSocketProtocol,
12473 error: *mut *mut glib::GError,
12474 ) -> *mut GSocket;
12475 pub fn g_socket_new_from_fd(fd: c_int, error: *mut *mut glib::GError) -> *mut GSocket;
12476 pub fn g_socket_accept(
12477 socket: *mut GSocket,
12478 cancellable: *mut GCancellable,
12479 error: *mut *mut glib::GError,
12480 ) -> *mut GSocket;
12481 pub fn g_socket_bind(
12482 socket: *mut GSocket,
12483 address: *mut GSocketAddress,
12484 allow_reuse: gboolean,
12485 error: *mut *mut glib::GError,
12486 ) -> gboolean;
12487 pub fn g_socket_check_connect_result(
12488 socket: *mut GSocket,
12489 error: *mut *mut glib::GError,
12490 ) -> gboolean;
12491 pub fn g_socket_close(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
12492 pub fn g_socket_condition_check(
12493 socket: *mut GSocket,
12494 condition: glib::GIOCondition,
12495 ) -> glib::GIOCondition;
12496 pub fn g_socket_condition_timed_wait(
12497 socket: *mut GSocket,
12498 condition: glib::GIOCondition,
12499 timeout: i64,
12500 cancellable: *mut GCancellable,
12501 error: *mut *mut glib::GError,
12502 ) -> gboolean;
12503 pub fn g_socket_condition_wait(
12504 socket: *mut GSocket,
12505 condition: glib::GIOCondition,
12506 cancellable: *mut GCancellable,
12507 error: *mut *mut glib::GError,
12508 ) -> gboolean;
12509 pub fn g_socket_connect(
12510 socket: *mut GSocket,
12511 address: *mut GSocketAddress,
12512 cancellable: *mut GCancellable,
12513 error: *mut *mut glib::GError,
12514 ) -> gboolean;
12515 pub fn g_socket_connection_factory_create_connection(
12516 socket: *mut GSocket,
12517 ) -> *mut GSocketConnection;
12518 pub fn g_socket_create_source(
12519 socket: *mut GSocket,
12520 condition: glib::GIOCondition,
12521 cancellable: *mut GCancellable,
12522 ) -> *mut glib::GSource;
12523 pub fn g_socket_get_available_bytes(socket: *mut GSocket) -> ssize_t;
12524 pub fn g_socket_get_blocking(socket: *mut GSocket) -> gboolean;
12525 pub fn g_socket_get_broadcast(socket: *mut GSocket) -> gboolean;
12526 pub fn g_socket_get_credentials(
12527 socket: *mut GSocket,
12528 error: *mut *mut glib::GError,
12529 ) -> *mut GCredentials;
12530 pub fn g_socket_get_family(socket: *mut GSocket) -> GSocketFamily;
12531 pub fn g_socket_get_fd(socket: *mut GSocket) -> c_int;
12532 pub fn g_socket_get_keepalive(socket: *mut GSocket) -> gboolean;
12533 pub fn g_socket_get_listen_backlog(socket: *mut GSocket) -> c_int;
12534 pub fn g_socket_get_local_address(
12535 socket: *mut GSocket,
12536 error: *mut *mut glib::GError,
12537 ) -> *mut GSocketAddress;
12538 pub fn g_socket_get_multicast_loopback(socket: *mut GSocket) -> gboolean;
12539 pub fn g_socket_get_multicast_ttl(socket: *mut GSocket) -> c_uint;
12540 pub fn g_socket_get_option(
12541 socket: *mut GSocket,
12542 level: c_int,
12543 optname: c_int,
12544 value: *mut c_int,
12545 error: *mut *mut glib::GError,
12546 ) -> gboolean;
12547 pub fn g_socket_get_protocol(socket: *mut GSocket) -> GSocketProtocol;
12548 pub fn g_socket_get_remote_address(
12549 socket: *mut GSocket,
12550 error: *mut *mut glib::GError,
12551 ) -> *mut GSocketAddress;
12552 pub fn g_socket_get_socket_type(socket: *mut GSocket) -> GSocketType;
12553 pub fn g_socket_get_timeout(socket: *mut GSocket) -> c_uint;
12554 pub fn g_socket_get_ttl(socket: *mut GSocket) -> c_uint;
12555 pub fn g_socket_is_closed(socket: *mut GSocket) -> gboolean;
12556 pub fn g_socket_is_connected(socket: *mut GSocket) -> gboolean;
12557 pub fn g_socket_join_multicast_group(
12558 socket: *mut GSocket,
12559 group: *mut GInetAddress,
12560 source_specific: gboolean,
12561 iface: *const c_char,
12562 error: *mut *mut glib::GError,
12563 ) -> gboolean;
12564 #[cfg(any(feature = "v2_56", feature = "dox"))]
12565 pub fn g_socket_join_multicast_group_ssm(
12566 socket: *mut GSocket,
12567 group: *mut GInetAddress,
12568 source_specific: *mut GInetAddress,
12569 iface: *const c_char,
12570 error: *mut *mut glib::GError,
12571 ) -> gboolean;
12572 pub fn g_socket_leave_multicast_group(
12573 socket: *mut GSocket,
12574 group: *mut GInetAddress,
12575 source_specific: gboolean,
12576 iface: *const c_char,
12577 error: *mut *mut glib::GError,
12578 ) -> gboolean;
12579 #[cfg(any(feature = "v2_56", feature = "dox"))]
12580 pub fn g_socket_leave_multicast_group_ssm(
12581 socket: *mut GSocket,
12582 group: *mut GInetAddress,
12583 source_specific: *mut GInetAddress,
12584 iface: *const c_char,
12585 error: *mut *mut glib::GError,
12586 ) -> gboolean;
12587 pub fn g_socket_listen(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
12588 pub fn g_socket_receive(
12589 socket: *mut GSocket,
12590 buffer: *mut u8,
12591 size: size_t,
12592 cancellable: *mut GCancellable,
12593 error: *mut *mut glib::GError,
12594 ) -> ssize_t;
12595 pub fn g_socket_receive_from(
12596 socket: *mut GSocket,
12597 address: *mut *mut GSocketAddress,
12598 buffer: *mut u8,
12599 size: size_t,
12600 cancellable: *mut GCancellable,
12601 error: *mut *mut glib::GError,
12602 ) -> ssize_t;
12603 pub fn g_socket_receive_message(
12604 socket: *mut GSocket,
12605 address: *mut *mut GSocketAddress,
12606 vectors: *mut GInputVector,
12607 num_vectors: c_int,
12608 messages: *mut *mut *mut GSocketControlMessage,
12609 num_messages: *mut c_int,
12610 flags: *mut c_int,
12611 cancellable: *mut GCancellable,
12612 error: *mut *mut glib::GError,
12613 ) -> ssize_t;
12614 #[cfg(any(feature = "v2_48", feature = "dox"))]
12615 pub fn g_socket_receive_messages(
12616 socket: *mut GSocket,
12617 messages: *mut GInputMessage,
12618 num_messages: c_uint,
12619 flags: c_int,
12620 cancellable: *mut GCancellable,
12621 error: *mut *mut glib::GError,
12622 ) -> c_int;
12623 pub fn g_socket_receive_with_blocking(
12624 socket: *mut GSocket,
12625 buffer: *mut u8,
12626 size: size_t,
12627 blocking: gboolean,
12628 cancellable: *mut GCancellable,
12629 error: *mut *mut glib::GError,
12630 ) -> ssize_t;
12631 pub fn g_socket_send(
12632 socket: *mut GSocket,
12633 buffer: *const u8,
12634 size: size_t,
12635 cancellable: *mut GCancellable,
12636 error: *mut *mut glib::GError,
12637 ) -> ssize_t;
12638 pub fn g_socket_send_message(
12639 socket: *mut GSocket,
12640 address: *mut GSocketAddress,
12641 vectors: *mut GOutputVector,
12642 num_vectors: c_int,
12643 messages: *mut *mut GSocketControlMessage,
12644 num_messages: c_int,
12645 flags: c_int,
12646 cancellable: *mut GCancellable,
12647 error: *mut *mut glib::GError,
12648 ) -> ssize_t;
12649 #[cfg(any(feature = "v2_44", feature = "dox"))]
12650 pub fn g_socket_send_messages(
12651 socket: *mut GSocket,
12652 messages: *mut GOutputMessage,
12653 num_messages: c_uint,
12654 flags: c_int,
12655 cancellable: *mut GCancellable,
12656 error: *mut *mut glib::GError,
12657 ) -> c_int;
12658 pub fn g_socket_send_to(
12659 socket: *mut GSocket,
12660 address: *mut GSocketAddress,
12661 buffer: *const u8,
12662 size: size_t,
12663 cancellable: *mut GCancellable,
12664 error: *mut *mut glib::GError,
12665 ) -> ssize_t;
12666 pub fn g_socket_send_with_blocking(
12667 socket: *mut GSocket,
12668 buffer: *const u8,
12669 size: size_t,
12670 blocking: gboolean,
12671 cancellable: *mut GCancellable,
12672 error: *mut *mut glib::GError,
12673 ) -> ssize_t;
12674 pub fn g_socket_set_blocking(socket: *mut GSocket, blocking: gboolean);
12675 pub fn g_socket_set_broadcast(socket: *mut GSocket, broadcast: gboolean);
12676 pub fn g_socket_set_keepalive(socket: *mut GSocket, keepalive: gboolean);
12677 pub fn g_socket_set_listen_backlog(socket: *mut GSocket, backlog: c_int);
12678 pub fn g_socket_set_multicast_loopback(socket: *mut GSocket, loopback: gboolean);
12679 pub fn g_socket_set_multicast_ttl(socket: *mut GSocket, ttl: c_uint);
12680 pub fn g_socket_set_option(
12681 socket: *mut GSocket,
12682 level: c_int,
12683 optname: c_int,
12684 value: c_int,
12685 error: *mut *mut glib::GError,
12686 ) -> gboolean;
12687 pub fn g_socket_set_timeout(socket: *mut GSocket, timeout: c_uint);
12688 pub fn g_socket_set_ttl(socket: *mut GSocket, ttl: c_uint);
12689 pub fn g_socket_shutdown(
12690 socket: *mut GSocket,
12691 shutdown_read: gboolean,
12692 shutdown_write: gboolean,
12693 error: *mut *mut glib::GError,
12694 ) -> gboolean;
12695 pub fn g_socket_speaks_ipv4(socket: *mut GSocket) -> gboolean;
12696
12697 pub fn g_socket_address_get_type() -> GType;
12701 pub fn g_socket_address_new_from_native(native: gpointer, len: size_t) -> *mut GSocketAddress;
12702 pub fn g_socket_address_get_family(address: *mut GSocketAddress) -> GSocketFamily;
12703 pub fn g_socket_address_get_native_size(address: *mut GSocketAddress) -> ssize_t;
12704 pub fn g_socket_address_to_native(
12705 address: *mut GSocketAddress,
12706 dest: gpointer,
12707 destlen: size_t,
12708 error: *mut *mut glib::GError,
12709 ) -> gboolean;
12710
12711 pub fn g_socket_address_enumerator_get_type() -> GType;
12715 pub fn g_socket_address_enumerator_next(
12716 enumerator: *mut GSocketAddressEnumerator,
12717 cancellable: *mut GCancellable,
12718 error: *mut *mut glib::GError,
12719 ) -> *mut GSocketAddress;
12720 pub fn g_socket_address_enumerator_next_async(
12721 enumerator: *mut GSocketAddressEnumerator,
12722 cancellable: *mut GCancellable,
12723 callback: GAsyncReadyCallback,
12724 user_data: gpointer,
12725 );
12726 pub fn g_socket_address_enumerator_next_finish(
12727 enumerator: *mut GSocketAddressEnumerator,
12728 result: *mut GAsyncResult,
12729 error: *mut *mut glib::GError,
12730 ) -> *mut GSocketAddress;
12731
12732 pub fn g_socket_client_get_type() -> GType;
12736 pub fn g_socket_client_new() -> *mut GSocketClient;
12737 pub fn g_socket_client_add_application_proxy(
12738 client: *mut GSocketClient,
12739 protocol: *const c_char,
12740 );
12741 pub fn g_socket_client_connect(
12742 client: *mut GSocketClient,
12743 connectable: *mut GSocketConnectable,
12744 cancellable: *mut GCancellable,
12745 error: *mut *mut glib::GError,
12746 ) -> *mut GSocketConnection;
12747 pub fn g_socket_client_connect_async(
12748 client: *mut GSocketClient,
12749 connectable: *mut GSocketConnectable,
12750 cancellable: *mut GCancellable,
12751 callback: GAsyncReadyCallback,
12752 user_data: gpointer,
12753 );
12754 pub fn g_socket_client_connect_finish(
12755 client: *mut GSocketClient,
12756 result: *mut GAsyncResult,
12757 error: *mut *mut glib::GError,
12758 ) -> *mut GSocketConnection;
12759 pub fn g_socket_client_connect_to_host(
12760 client: *mut GSocketClient,
12761 host_and_port: *const c_char,
12762 default_port: u16,
12763 cancellable: *mut GCancellable,
12764 error: *mut *mut glib::GError,
12765 ) -> *mut GSocketConnection;
12766 pub fn g_socket_client_connect_to_host_async(
12767 client: *mut GSocketClient,
12768 host_and_port: *const c_char,
12769 default_port: u16,
12770 cancellable: *mut GCancellable,
12771 callback: GAsyncReadyCallback,
12772 user_data: gpointer,
12773 );
12774 pub fn g_socket_client_connect_to_host_finish(
12775 client: *mut GSocketClient,
12776 result: *mut GAsyncResult,
12777 error: *mut *mut glib::GError,
12778 ) -> *mut GSocketConnection;
12779 pub fn g_socket_client_connect_to_service(
12780 client: *mut GSocketClient,
12781 domain: *const c_char,
12782 service: *const c_char,
12783 cancellable: *mut GCancellable,
12784 error: *mut *mut glib::GError,
12785 ) -> *mut GSocketConnection;
12786 pub fn g_socket_client_connect_to_service_async(
12787 client: *mut GSocketClient,
12788 domain: *const c_char,
12789 service: *const c_char,
12790 cancellable: *mut GCancellable,
12791 callback: GAsyncReadyCallback,
12792 user_data: gpointer,
12793 );
12794 pub fn g_socket_client_connect_to_service_finish(
12795 client: *mut GSocketClient,
12796 result: *mut GAsyncResult,
12797 error: *mut *mut glib::GError,
12798 ) -> *mut GSocketConnection;
12799 pub fn g_socket_client_connect_to_uri(
12800 client: *mut GSocketClient,
12801 uri: *const c_char,
12802 default_port: u16,
12803 cancellable: *mut GCancellable,
12804 error: *mut *mut glib::GError,
12805 ) -> *mut GSocketConnection;
12806 pub fn g_socket_client_connect_to_uri_async(
12807 client: *mut GSocketClient,
12808 uri: *const c_char,
12809 default_port: u16,
12810 cancellable: *mut GCancellable,
12811 callback: GAsyncReadyCallback,
12812 user_data: gpointer,
12813 );
12814 pub fn g_socket_client_connect_to_uri_finish(
12815 client: *mut GSocketClient,
12816 result: *mut GAsyncResult,
12817 error: *mut *mut glib::GError,
12818 ) -> *mut GSocketConnection;
12819 pub fn g_socket_client_get_enable_proxy(client: *mut GSocketClient) -> gboolean;
12820 pub fn g_socket_client_get_family(client: *mut GSocketClient) -> GSocketFamily;
12821 pub fn g_socket_client_get_local_address(client: *mut GSocketClient) -> *mut GSocketAddress;
12822 pub fn g_socket_client_get_protocol(client: *mut GSocketClient) -> GSocketProtocol;
12823 pub fn g_socket_client_get_proxy_resolver(client: *mut GSocketClient) -> *mut GProxyResolver;
12824 pub fn g_socket_client_get_socket_type(client: *mut GSocketClient) -> GSocketType;
12825 pub fn g_socket_client_get_timeout(client: *mut GSocketClient) -> c_uint;
12826 pub fn g_socket_client_get_tls(client: *mut GSocketClient) -> gboolean;
12827 pub fn g_socket_client_get_tls_validation_flags(
12828 client: *mut GSocketClient,
12829 ) -> GTlsCertificateFlags;
12830 pub fn g_socket_client_set_enable_proxy(client: *mut GSocketClient, enable: gboolean);
12831 pub fn g_socket_client_set_family(client: *mut GSocketClient, family: GSocketFamily);
12832 pub fn g_socket_client_set_local_address(
12833 client: *mut GSocketClient,
12834 address: *mut GSocketAddress,
12835 );
12836 pub fn g_socket_client_set_protocol(client: *mut GSocketClient, protocol: GSocketProtocol);
12837 pub fn g_socket_client_set_proxy_resolver(
12838 client: *mut GSocketClient,
12839 proxy_resolver: *mut GProxyResolver,
12840 );
12841 pub fn g_socket_client_set_socket_type(client: *mut GSocketClient, type_: GSocketType);
12842 pub fn g_socket_client_set_timeout(client: *mut GSocketClient, timeout: c_uint);
12843 pub fn g_socket_client_set_tls(client: *mut GSocketClient, tls: gboolean);
12844 pub fn g_socket_client_set_tls_validation_flags(
12845 client: *mut GSocketClient,
12846 flags: GTlsCertificateFlags,
12847 );
12848
12849 pub fn g_socket_connection_get_type() -> GType;
12853 pub fn g_socket_connection_factory_lookup_type(
12854 family: GSocketFamily,
12855 type_: GSocketType,
12856 protocol_id: c_int,
12857 ) -> GType;
12858 pub fn g_socket_connection_factory_register_type(
12859 g_type: GType,
12860 family: GSocketFamily,
12861 type_: GSocketType,
12862 protocol: c_int,
12863 );
12864 pub fn g_socket_connection_connect(
12865 connection: *mut GSocketConnection,
12866 address: *mut GSocketAddress,
12867 cancellable: *mut GCancellable,
12868 error: *mut *mut glib::GError,
12869 ) -> gboolean;
12870 pub fn g_socket_connection_connect_async(
12871 connection: *mut GSocketConnection,
12872 address: *mut GSocketAddress,
12873 cancellable: *mut GCancellable,
12874 callback: GAsyncReadyCallback,
12875 user_data: gpointer,
12876 );
12877 pub fn g_socket_connection_connect_finish(
12878 connection: *mut GSocketConnection,
12879 result: *mut GAsyncResult,
12880 error: *mut *mut glib::GError,
12881 ) -> gboolean;
12882 pub fn g_socket_connection_get_local_address(
12883 connection: *mut GSocketConnection,
12884 error: *mut *mut glib::GError,
12885 ) -> *mut GSocketAddress;
12886 pub fn g_socket_connection_get_remote_address(
12887 connection: *mut GSocketConnection,
12888 error: *mut *mut glib::GError,
12889 ) -> *mut GSocketAddress;
12890 pub fn g_socket_connection_get_socket(connection: *mut GSocketConnection) -> *mut GSocket;
12891 pub fn g_socket_connection_is_connected(connection: *mut GSocketConnection) -> gboolean;
12892
12893 pub fn g_socket_control_message_get_type() -> GType;
12897 pub fn g_socket_control_message_deserialize(
12898 level: c_int,
12899 type_: c_int,
12900 size: size_t,
12901 data: gpointer,
12902 ) -> *mut GSocketControlMessage;
12903 pub fn g_socket_control_message_get_level(message: *mut GSocketControlMessage) -> c_int;
12904 pub fn g_socket_control_message_get_msg_type(message: *mut GSocketControlMessage) -> c_int;
12905 pub fn g_socket_control_message_get_size(message: *mut GSocketControlMessage) -> size_t;
12906 pub fn g_socket_control_message_serialize(message: *mut GSocketControlMessage, data: gpointer);
12907
12908 pub fn g_socket_listener_get_type() -> GType;
12912 pub fn g_socket_listener_new() -> *mut GSocketListener;
12913 pub fn g_socket_listener_accept(
12914 listener: *mut GSocketListener,
12915 source_object: *mut *mut gobject::GObject,
12916 cancellable: *mut GCancellable,
12917 error: *mut *mut glib::GError,
12918 ) -> *mut GSocketConnection;
12919 pub fn g_socket_listener_accept_async(
12920 listener: *mut GSocketListener,
12921 cancellable: *mut GCancellable,
12922 callback: GAsyncReadyCallback,
12923 user_data: gpointer,
12924 );
12925 pub fn g_socket_listener_accept_finish(
12926 listener: *mut GSocketListener,
12927 result: *mut GAsyncResult,
12928 source_object: *mut *mut gobject::GObject,
12929 error: *mut *mut glib::GError,
12930 ) -> *mut GSocketConnection;
12931 pub fn g_socket_listener_accept_socket(
12932 listener: *mut GSocketListener,
12933 source_object: *mut *mut gobject::GObject,
12934 cancellable: *mut GCancellable,
12935 error: *mut *mut glib::GError,
12936 ) -> *mut GSocket;
12937 pub fn g_socket_listener_accept_socket_async(
12938 listener: *mut GSocketListener,
12939 cancellable: *mut GCancellable,
12940 callback: GAsyncReadyCallback,
12941 user_data: gpointer,
12942 );
12943 pub fn g_socket_listener_accept_socket_finish(
12944 listener: *mut GSocketListener,
12945 result: *mut GAsyncResult,
12946 source_object: *mut *mut gobject::GObject,
12947 error: *mut *mut glib::GError,
12948 ) -> *mut GSocket;
12949 pub fn g_socket_listener_add_address(
12950 listener: *mut GSocketListener,
12951 address: *mut GSocketAddress,
12952 type_: GSocketType,
12953 protocol: GSocketProtocol,
12954 source_object: *mut gobject::GObject,
12955 effective_address: *mut *mut GSocketAddress,
12956 error: *mut *mut glib::GError,
12957 ) -> gboolean;
12958 pub fn g_socket_listener_add_any_inet_port(
12959 listener: *mut GSocketListener,
12960 source_object: *mut gobject::GObject,
12961 error: *mut *mut glib::GError,
12962 ) -> u16;
12963 pub fn g_socket_listener_add_inet_port(
12964 listener: *mut GSocketListener,
12965 port: u16,
12966 source_object: *mut gobject::GObject,
12967 error: *mut *mut glib::GError,
12968 ) -> gboolean;
12969 pub fn g_socket_listener_add_socket(
12970 listener: *mut GSocketListener,
12971 socket: *mut GSocket,
12972 source_object: *mut gobject::GObject,
12973 error: *mut *mut glib::GError,
12974 ) -> gboolean;
12975 pub fn g_socket_listener_close(listener: *mut GSocketListener);
12976 pub fn g_socket_listener_set_backlog(listener: *mut GSocketListener, listen_backlog: c_int);
12977
12978 pub fn g_socket_service_get_type() -> GType;
12982 pub fn g_socket_service_new() -> *mut GSocketService;
12983 pub fn g_socket_service_is_active(service: *mut GSocketService) -> gboolean;
12984 pub fn g_socket_service_start(service: *mut GSocketService);
12985 pub fn g_socket_service_stop(service: *mut GSocketService);
12986
12987 pub fn g_subprocess_get_type() -> GType;
12991 pub fn g_subprocess_new(
12992 flags: GSubprocessFlags,
12993 error: *mut *mut glib::GError,
12994 argv0: *const c_char,
12995 ...
12996 ) -> *mut GSubprocess;
12997 pub fn g_subprocess_newv(
12998 argv: *const *const c_char,
12999 flags: GSubprocessFlags,
13000 error: *mut *mut glib::GError,
13001 ) -> *mut GSubprocess;
13002 pub fn g_subprocess_communicate(
13003 subprocess: *mut GSubprocess,
13004 stdin_buf: *mut glib::GBytes,
13005 cancellable: *mut GCancellable,
13006 stdout_buf: *mut *mut glib::GBytes,
13007 stderr_buf: *mut *mut glib::GBytes,
13008 error: *mut *mut glib::GError,
13009 ) -> gboolean;
13010 pub fn g_subprocess_communicate_async(
13011 subprocess: *mut GSubprocess,
13012 stdin_buf: *mut glib::GBytes,
13013 cancellable: *mut GCancellable,
13014 callback: GAsyncReadyCallback,
13015 user_data: gpointer,
13016 );
13017 pub fn g_subprocess_communicate_finish(
13018 subprocess: *mut GSubprocess,
13019 result: *mut GAsyncResult,
13020 stdout_buf: *mut *mut glib::GBytes,
13021 stderr_buf: *mut *mut glib::GBytes,
13022 error: *mut *mut glib::GError,
13023 ) -> gboolean;
13024 pub fn g_subprocess_communicate_utf8(
13025 subprocess: *mut GSubprocess,
13026 stdin_buf: *const c_char,
13027 cancellable: *mut GCancellable,
13028 stdout_buf: *mut *mut c_char,
13029 stderr_buf: *mut *mut c_char,
13030 error: *mut *mut glib::GError,
13031 ) -> gboolean;
13032 pub fn g_subprocess_communicate_utf8_async(
13033 subprocess: *mut GSubprocess,
13034 stdin_buf: *const c_char,
13035 cancellable: *mut GCancellable,
13036 callback: GAsyncReadyCallback,
13037 user_data: gpointer,
13038 );
13039 pub fn g_subprocess_communicate_utf8_finish(
13040 subprocess: *mut GSubprocess,
13041 result: *mut GAsyncResult,
13042 stdout_buf: *mut *mut c_char,
13043 stderr_buf: *mut *mut c_char,
13044 error: *mut *mut glib::GError,
13045 ) -> gboolean;
13046 pub fn g_subprocess_force_exit(subprocess: *mut GSubprocess);
13047 pub fn g_subprocess_get_exit_status(subprocess: *mut GSubprocess) -> c_int;
13048 pub fn g_subprocess_get_identifier(subprocess: *mut GSubprocess) -> *const c_char;
13049 pub fn g_subprocess_get_if_exited(subprocess: *mut GSubprocess) -> gboolean;
13050 pub fn g_subprocess_get_if_signaled(subprocess: *mut GSubprocess) -> gboolean;
13051 pub fn g_subprocess_get_status(subprocess: *mut GSubprocess) -> c_int;
13052 pub fn g_subprocess_get_stderr_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
13053 pub fn g_subprocess_get_stdin_pipe(subprocess: *mut GSubprocess) -> *mut GOutputStream;
13054 pub fn g_subprocess_get_stdout_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
13055 pub fn g_subprocess_get_successful(subprocess: *mut GSubprocess) -> gboolean;
13056 pub fn g_subprocess_get_term_sig(subprocess: *mut GSubprocess) -> c_int;
13057 pub fn g_subprocess_send_signal(subprocess: *mut GSubprocess, signal_num: c_int);
13058 pub fn g_subprocess_wait(
13059 subprocess: *mut GSubprocess,
13060 cancellable: *mut GCancellable,
13061 error: *mut *mut glib::GError,
13062 ) -> gboolean;
13063 pub fn g_subprocess_wait_async(
13064 subprocess: *mut GSubprocess,
13065 cancellable: *mut GCancellable,
13066 callback: GAsyncReadyCallback,
13067 user_data: gpointer,
13068 );
13069 pub fn g_subprocess_wait_check(
13070 subprocess: *mut GSubprocess,
13071 cancellable: *mut GCancellable,
13072 error: *mut *mut glib::GError,
13073 ) -> gboolean;
13074 pub fn g_subprocess_wait_check_async(
13075 subprocess: *mut GSubprocess,
13076 cancellable: *mut GCancellable,
13077 callback: GAsyncReadyCallback,
13078 user_data: gpointer,
13079 );
13080 pub fn g_subprocess_wait_check_finish(
13081 subprocess: *mut GSubprocess,
13082 result: *mut GAsyncResult,
13083 error: *mut *mut glib::GError,
13084 ) -> gboolean;
13085 pub fn g_subprocess_wait_finish(
13086 subprocess: *mut GSubprocess,
13087 result: *mut GAsyncResult,
13088 error: *mut *mut glib::GError,
13089 ) -> gboolean;
13090
13091 pub fn g_subprocess_launcher_get_type() -> GType;
13095 pub fn g_subprocess_launcher_new(flags: GSubprocessFlags) -> *mut GSubprocessLauncher;
13096 pub fn g_subprocess_launcher_getenv(
13097 self_: *mut GSubprocessLauncher,
13098 variable: *const c_char,
13099 ) -> *const c_char;
13100 pub fn g_subprocess_launcher_set_child_setup(
13101 self_: *mut GSubprocessLauncher,
13102 child_setup: glib::GSpawnChildSetupFunc,
13103 user_data: gpointer,
13104 destroy_notify: glib::GDestroyNotify,
13105 );
13106 pub fn g_subprocess_launcher_set_cwd(self_: *mut GSubprocessLauncher, cwd: *const c_char);
13107 pub fn g_subprocess_launcher_set_environ(
13108 self_: *mut GSubprocessLauncher,
13109 env: *mut *mut c_char,
13110 );
13111 pub fn g_subprocess_launcher_set_flags(
13112 self_: *mut GSubprocessLauncher,
13113 flags: GSubprocessFlags,
13114 );
13115 pub fn g_subprocess_launcher_set_stderr_file_path(
13116 self_: *mut GSubprocessLauncher,
13117 path: *const c_char,
13118 );
13119 pub fn g_subprocess_launcher_set_stdin_file_path(
13120 self_: *mut GSubprocessLauncher,
13121 path: *const c_char,
13122 );
13123 pub fn g_subprocess_launcher_set_stdout_file_path(
13124 self_: *mut GSubprocessLauncher,
13125 path: *const c_char,
13126 );
13127 pub fn g_subprocess_launcher_setenv(
13128 self_: *mut GSubprocessLauncher,
13129 variable: *const c_char,
13130 value: *const c_char,
13131 overwrite: gboolean,
13132 );
13133 pub fn g_subprocess_launcher_spawn(
13134 self_: *mut GSubprocessLauncher,
13135 error: *mut *mut glib::GError,
13136 argv0: *const c_char,
13137 ...
13138 ) -> *mut GSubprocess;
13139 pub fn g_subprocess_launcher_spawnv(
13140 self_: *mut GSubprocessLauncher,
13141 argv: *const *const c_char,
13142 error: *mut *mut glib::GError,
13143 ) -> *mut GSubprocess;
13144 pub fn g_subprocess_launcher_take_fd(
13145 self_: *mut GSubprocessLauncher,
13146 source_fd: c_int,
13147 target_fd: c_int,
13148 );
13149 pub fn g_subprocess_launcher_take_stderr_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13150 pub fn g_subprocess_launcher_take_stdin_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13151 pub fn g_subprocess_launcher_take_stdout_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13152 pub fn g_subprocess_launcher_unsetenv(self_: *mut GSubprocessLauncher, variable: *const c_char);
13153
13154 pub fn g_task_get_type() -> GType;
13158 pub fn g_task_new(
13159 source_object: *mut gobject::GObject,
13160 cancellable: *mut GCancellable,
13161 callback: GAsyncReadyCallback,
13162 callback_data: gpointer,
13163 ) -> *mut GTask;
13164 pub fn g_task_is_valid(
13165 result: *mut GAsyncResult,
13166 source_object: *mut gobject::GObject,
13167 ) -> gboolean;
13168 pub fn g_task_report_error(
13169 source_object: *mut gobject::GObject,
13170 callback: GAsyncReadyCallback,
13171 callback_data: gpointer,
13172 source_tag: gpointer,
13173 error: *mut glib::GError,
13174 );
13175 pub fn g_task_report_new_error(
13176 source_object: *mut gobject::GObject,
13177 callback: GAsyncReadyCallback,
13178 callback_data: gpointer,
13179 source_tag: gpointer,
13180 domain: glib::GQuark,
13181 code: c_int,
13182 format: *const c_char,
13183 ...
13184 );
13185 pub fn g_task_attach_source(
13186 task: *mut GTask,
13187 source: *mut glib::GSource,
13188 callback: glib::GSourceFunc,
13189 );
13190 pub fn g_task_get_cancellable(task: *mut GTask) -> *mut GCancellable;
13191 pub fn g_task_get_check_cancellable(task: *mut GTask) -> gboolean;
13192 #[cfg(any(feature = "v2_44", feature = "dox"))]
13193 pub fn g_task_get_completed(task: *mut GTask) -> gboolean;
13194 pub fn g_task_get_context(task: *mut GTask) -> *mut glib::GMainContext;
13195 pub fn g_task_get_priority(task: *mut GTask) -> c_int;
13196 pub fn g_task_get_return_on_cancel(task: *mut GTask) -> gboolean;
13197 pub fn g_task_get_source_object(task: *mut GTask) -> *mut gobject::GObject;
13198 pub fn g_task_get_source_tag(task: *mut GTask) -> gpointer;
13199 pub fn g_task_get_task_data(task: *mut GTask) -> gpointer;
13200 pub fn g_task_had_error(task: *mut GTask) -> gboolean;
13201 pub fn g_task_propagate_boolean(task: *mut GTask, error: *mut *mut glib::GError) -> gboolean;
13202 pub fn g_task_propagate_int(task: *mut GTask, error: *mut *mut glib::GError) -> ssize_t;
13203 pub fn g_task_propagate_pointer(task: *mut GTask, error: *mut *mut glib::GError) -> gpointer;
13204 pub fn g_task_return_boolean(task: *mut GTask, result: gboolean);
13205 pub fn g_task_return_error(task: *mut GTask, error: *mut glib::GError);
13206 pub fn g_task_return_error_if_cancelled(task: *mut GTask) -> gboolean;
13207 pub fn g_task_return_int(task: *mut GTask, result: ssize_t);
13208 pub fn g_task_return_new_error(
13209 task: *mut GTask,
13210 domain: glib::GQuark,
13211 code: c_int,
13212 format: *const c_char,
13213 ...
13214 );
13215 pub fn g_task_return_pointer(
13216 task: *mut GTask,
13217 result: gpointer,
13218 result_destroy: glib::GDestroyNotify,
13219 );
13220 pub fn g_task_run_in_thread(task: *mut GTask, task_func: GTaskThreadFunc);
13221 pub fn g_task_run_in_thread_sync(task: *mut GTask, task_func: GTaskThreadFunc);
13222 pub fn g_task_set_check_cancellable(task: *mut GTask, check_cancellable: gboolean);
13223 pub fn g_task_set_priority(task: *mut GTask, priority: c_int);
13224 pub fn g_task_set_return_on_cancel(task: *mut GTask, return_on_cancel: gboolean) -> gboolean;
13225 pub fn g_task_set_source_tag(task: *mut GTask, source_tag: gpointer);
13226 pub fn g_task_set_task_data(
13227 task: *mut GTask,
13228 task_data: gpointer,
13229 task_data_destroy: glib::GDestroyNotify,
13230 );
13231
13232 pub fn g_tcp_connection_get_type() -> GType;
13236 pub fn g_tcp_connection_get_graceful_disconnect(connection: *mut GTcpConnection) -> gboolean;
13237 pub fn g_tcp_connection_set_graceful_disconnect(
13238 connection: *mut GTcpConnection,
13239 graceful_disconnect: gboolean,
13240 );
13241
13242 pub fn g_tcp_wrapper_connection_get_type() -> GType;
13246 pub fn g_tcp_wrapper_connection_new(
13247 base_io_stream: *mut GIOStream,
13248 socket: *mut GSocket,
13249 ) -> *mut GSocketConnection;
13250 pub fn g_tcp_wrapper_connection_get_base_io_stream(
13251 conn: *mut GTcpWrapperConnection,
13252 ) -> *mut GIOStream;
13253
13254 pub fn g_test_dbus_get_type() -> GType;
13258 pub fn g_test_dbus_new(flags: GTestDBusFlags) -> *mut GTestDBus;
13259 pub fn g_test_dbus_unset();
13260 pub fn g_test_dbus_add_service_dir(self_: *mut GTestDBus, path: *const c_char);
13261 pub fn g_test_dbus_down(self_: *mut GTestDBus);
13262 pub fn g_test_dbus_get_bus_address(self_: *mut GTestDBus) -> *const c_char;
13263 pub fn g_test_dbus_get_flags(self_: *mut GTestDBus) -> GTestDBusFlags;
13264 pub fn g_test_dbus_stop(self_: *mut GTestDBus);
13265 pub fn g_test_dbus_up(self_: *mut GTestDBus);
13266
13267 pub fn g_themed_icon_get_type() -> GType;
13271 pub fn g_themed_icon_new(iconname: *const c_char) -> *mut GThemedIcon;
13272 pub fn g_themed_icon_new_from_names(
13273 iconnames: *mut *mut c_char,
13274 len: c_int,
13275 ) -> *mut GThemedIcon;
13276 pub fn g_themed_icon_new_with_default_fallbacks(iconname: *const c_char) -> *mut GThemedIcon;
13277 pub fn g_themed_icon_append_name(icon: *mut GThemedIcon, iconname: *const c_char);
13278 pub fn g_themed_icon_get_names(icon: *mut GThemedIcon) -> *const *const c_char;
13279 pub fn g_themed_icon_prepend_name(icon: *mut GThemedIcon, iconname: *const c_char);
13280
13281 pub fn g_threaded_socket_service_get_type() -> GType;
13285 pub fn g_threaded_socket_service_new(max_threads: c_int) -> *mut GSocketService;
13286
13287 pub fn g_tls_certificate_get_type() -> GType;
13291 pub fn g_tls_certificate_new_from_file(
13292 file: *const c_char,
13293 error: *mut *mut glib::GError,
13294 ) -> *mut GTlsCertificate;
13295 pub fn g_tls_certificate_new_from_files(
13296 cert_file: *const c_char,
13297 key_file: *const c_char,
13298 error: *mut *mut glib::GError,
13299 ) -> *mut GTlsCertificate;
13300 pub fn g_tls_certificate_new_from_pem(
13301 data: *const c_char,
13302 length: ssize_t,
13303 error: *mut *mut glib::GError,
13304 ) -> *mut GTlsCertificate;
13305 pub fn g_tls_certificate_list_new_from_file(
13306 file: *const c_char,
13307 error: *mut *mut glib::GError,
13308 ) -> *mut glib::GList;
13309 pub fn g_tls_certificate_get_issuer(cert: *mut GTlsCertificate) -> *mut GTlsCertificate;
13310 pub fn g_tls_certificate_is_same(
13311 cert_one: *mut GTlsCertificate,
13312 cert_two: *mut GTlsCertificate,
13313 ) -> gboolean;
13314 pub fn g_tls_certificate_verify(
13315 cert: *mut GTlsCertificate,
13316 identity: *mut GSocketConnectable,
13317 trusted_ca: *mut GTlsCertificate,
13318 ) -> GTlsCertificateFlags;
13319
13320 pub fn g_tls_connection_get_type() -> GType;
13324 pub fn g_tls_connection_emit_accept_certificate(
13325 conn: *mut GTlsConnection,
13326 peer_cert: *mut GTlsCertificate,
13327 errors: GTlsCertificateFlags,
13328 ) -> gboolean;
13329 pub fn g_tls_connection_get_certificate(conn: *mut GTlsConnection) -> *mut GTlsCertificate;
13330 pub fn g_tls_connection_get_database(conn: *mut GTlsConnection) -> *mut GTlsDatabase;
13331 pub fn g_tls_connection_get_interaction(conn: *mut GTlsConnection) -> *mut GTlsInteraction;
13332 pub fn g_tls_connection_get_peer_certificate(conn: *mut GTlsConnection)
13333 -> *mut GTlsCertificate;
13334 pub fn g_tls_connection_get_peer_certificate_errors(
13335 conn: *mut GTlsConnection,
13336 ) -> GTlsCertificateFlags;
13337 pub fn g_tls_connection_get_rehandshake_mode(conn: *mut GTlsConnection) -> GTlsRehandshakeMode;
13338 pub fn g_tls_connection_get_require_close_notify(conn: *mut GTlsConnection) -> gboolean;
13339 pub fn g_tls_connection_get_use_system_certdb(conn: *mut GTlsConnection) -> gboolean;
13340 pub fn g_tls_connection_handshake(
13341 conn: *mut GTlsConnection,
13342 cancellable: *mut GCancellable,
13343 error: *mut *mut glib::GError,
13344 ) -> gboolean;
13345 pub fn g_tls_connection_handshake_async(
13346 conn: *mut GTlsConnection,
13347 io_priority: c_int,
13348 cancellable: *mut GCancellable,
13349 callback: GAsyncReadyCallback,
13350 user_data: gpointer,
13351 );
13352 pub fn g_tls_connection_handshake_finish(
13353 conn: *mut GTlsConnection,
13354 result: *mut GAsyncResult,
13355 error: *mut *mut glib::GError,
13356 ) -> gboolean;
13357 pub fn g_tls_connection_set_certificate(
13358 conn: *mut GTlsConnection,
13359 certificate: *mut GTlsCertificate,
13360 );
13361 pub fn g_tls_connection_set_database(conn: *mut GTlsConnection, database: *mut GTlsDatabase);
13362 pub fn g_tls_connection_set_interaction(
13363 conn: *mut GTlsConnection,
13364 interaction: *mut GTlsInteraction,
13365 );
13366 pub fn g_tls_connection_set_rehandshake_mode(
13367 conn: *mut GTlsConnection,
13368 mode: GTlsRehandshakeMode,
13369 );
13370 pub fn g_tls_connection_set_require_close_notify(
13371 conn: *mut GTlsConnection,
13372 require_close_notify: gboolean,
13373 );
13374 pub fn g_tls_connection_set_use_system_certdb(
13375 conn: *mut GTlsConnection,
13376 use_system_certdb: gboolean,
13377 );
13378
13379 pub fn g_tls_database_get_type() -> GType;
13383 pub fn g_tls_database_create_certificate_handle(
13384 self_: *mut GTlsDatabase,
13385 certificate: *mut GTlsCertificate,
13386 ) -> *mut c_char;
13387 pub fn g_tls_database_lookup_certificate_for_handle(
13388 self_: *mut GTlsDatabase,
13389 handle: *const c_char,
13390 interaction: *mut GTlsInteraction,
13391 flags: GTlsDatabaseLookupFlags,
13392 cancellable: *mut GCancellable,
13393 error: *mut *mut glib::GError,
13394 ) -> *mut GTlsCertificate;
13395 pub fn g_tls_database_lookup_certificate_for_handle_async(
13396 self_: *mut GTlsDatabase,
13397 handle: *const c_char,
13398 interaction: *mut GTlsInteraction,
13399 flags: GTlsDatabaseLookupFlags,
13400 cancellable: *mut GCancellable,
13401 callback: GAsyncReadyCallback,
13402 user_data: gpointer,
13403 );
13404 pub fn g_tls_database_lookup_certificate_for_handle_finish(
13405 self_: *mut GTlsDatabase,
13406 result: *mut GAsyncResult,
13407 error: *mut *mut glib::GError,
13408 ) -> *mut GTlsCertificate;
13409 pub fn g_tls_database_lookup_certificate_issuer(
13410 self_: *mut GTlsDatabase,
13411 certificate: *mut GTlsCertificate,
13412 interaction: *mut GTlsInteraction,
13413 flags: GTlsDatabaseLookupFlags,
13414 cancellable: *mut GCancellable,
13415 error: *mut *mut glib::GError,
13416 ) -> *mut GTlsCertificate;
13417 pub fn g_tls_database_lookup_certificate_issuer_async(
13418 self_: *mut GTlsDatabase,
13419 certificate: *mut GTlsCertificate,
13420 interaction: *mut GTlsInteraction,
13421 flags: GTlsDatabaseLookupFlags,
13422 cancellable: *mut GCancellable,
13423 callback: GAsyncReadyCallback,
13424 user_data: gpointer,
13425 );
13426 pub fn g_tls_database_lookup_certificate_issuer_finish(
13427 self_: *mut GTlsDatabase,
13428 result: *mut GAsyncResult,
13429 error: *mut *mut glib::GError,
13430 ) -> *mut GTlsCertificate;
13431 pub fn g_tls_database_lookup_certificates_issued_by(
13432 self_: *mut GTlsDatabase,
13433 issuer_raw_dn: *mut glib::GByteArray,
13434 interaction: *mut GTlsInteraction,
13435 flags: GTlsDatabaseLookupFlags,
13436 cancellable: *mut GCancellable,
13437 error: *mut *mut glib::GError,
13438 ) -> *mut glib::GList;
13439 pub fn g_tls_database_lookup_certificates_issued_by_async(
13440 self_: *mut GTlsDatabase,
13441 issuer_raw_dn: *mut glib::GByteArray,
13442 interaction: *mut GTlsInteraction,
13443 flags: GTlsDatabaseLookupFlags,
13444 cancellable: *mut GCancellable,
13445 callback: GAsyncReadyCallback,
13446 user_data: gpointer,
13447 );
13448 pub fn g_tls_database_lookup_certificates_issued_by_finish(
13449 self_: *mut GTlsDatabase,
13450 result: *mut GAsyncResult,
13451 error: *mut *mut glib::GError,
13452 ) -> *mut glib::GList;
13453 pub fn g_tls_database_verify_chain(
13454 self_: *mut GTlsDatabase,
13455 chain: *mut GTlsCertificate,
13456 purpose: *const c_char,
13457 identity: *mut GSocketConnectable,
13458 interaction: *mut GTlsInteraction,
13459 flags: GTlsDatabaseVerifyFlags,
13460 cancellable: *mut GCancellable,
13461 error: *mut *mut glib::GError,
13462 ) -> GTlsCertificateFlags;
13463 pub fn g_tls_database_verify_chain_async(
13464 self_: *mut GTlsDatabase,
13465 chain: *mut GTlsCertificate,
13466 purpose: *const c_char,
13467 identity: *mut GSocketConnectable,
13468 interaction: *mut GTlsInteraction,
13469 flags: GTlsDatabaseVerifyFlags,
13470 cancellable: *mut GCancellable,
13471 callback: GAsyncReadyCallback,
13472 user_data: gpointer,
13473 );
13474 pub fn g_tls_database_verify_chain_finish(
13475 self_: *mut GTlsDatabase,
13476 result: *mut GAsyncResult,
13477 error: *mut *mut glib::GError,
13478 ) -> GTlsCertificateFlags;
13479
13480 pub fn g_tls_interaction_get_type() -> GType;
13484 pub fn g_tls_interaction_ask_password(
13485 interaction: *mut GTlsInteraction,
13486 password: *mut GTlsPassword,
13487 cancellable: *mut GCancellable,
13488 error: *mut *mut glib::GError,
13489 ) -> GTlsInteractionResult;
13490 pub fn g_tls_interaction_ask_password_async(
13491 interaction: *mut GTlsInteraction,
13492 password: *mut GTlsPassword,
13493 cancellable: *mut GCancellable,
13494 callback: GAsyncReadyCallback,
13495 user_data: gpointer,
13496 );
13497 pub fn g_tls_interaction_ask_password_finish(
13498 interaction: *mut GTlsInteraction,
13499 result: *mut GAsyncResult,
13500 error: *mut *mut glib::GError,
13501 ) -> GTlsInteractionResult;
13502 pub fn g_tls_interaction_invoke_ask_password(
13503 interaction: *mut GTlsInteraction,
13504 password: *mut GTlsPassword,
13505 cancellable: *mut GCancellable,
13506 error: *mut *mut glib::GError,
13507 ) -> GTlsInteractionResult;
13508 pub fn g_tls_interaction_invoke_request_certificate(
13509 interaction: *mut GTlsInteraction,
13510 connection: *mut GTlsConnection,
13511 flags: GTlsCertificateRequestFlags,
13512 cancellable: *mut GCancellable,
13513 error: *mut *mut glib::GError,
13514 ) -> GTlsInteractionResult;
13515 pub fn g_tls_interaction_request_certificate(
13516 interaction: *mut GTlsInteraction,
13517 connection: *mut GTlsConnection,
13518 flags: GTlsCertificateRequestFlags,
13519 cancellable: *mut GCancellable,
13520 error: *mut *mut glib::GError,
13521 ) -> GTlsInteractionResult;
13522 pub fn g_tls_interaction_request_certificate_async(
13523 interaction: *mut GTlsInteraction,
13524 connection: *mut GTlsConnection,
13525 flags: GTlsCertificateRequestFlags,
13526 cancellable: *mut GCancellable,
13527 callback: GAsyncReadyCallback,
13528 user_data: gpointer,
13529 );
13530 pub fn g_tls_interaction_request_certificate_finish(
13531 interaction: *mut GTlsInteraction,
13532 result: *mut GAsyncResult,
13533 error: *mut *mut glib::GError,
13534 ) -> GTlsInteractionResult;
13535
13536 pub fn g_tls_password_get_type() -> GType;
13540 pub fn g_tls_password_new(
13541 flags: GTlsPasswordFlags,
13542 description: *const c_char,
13543 ) -> *mut GTlsPassword;
13544 pub fn g_tls_password_get_description(password: *mut GTlsPassword) -> *const c_char;
13545 pub fn g_tls_password_get_flags(password: *mut GTlsPassword) -> GTlsPasswordFlags;
13546 pub fn g_tls_password_get_value(password: *mut GTlsPassword, length: *mut size_t) -> *const u8;
13547 pub fn g_tls_password_get_warning(password: *mut GTlsPassword) -> *const c_char;
13548 pub fn g_tls_password_set_description(password: *mut GTlsPassword, description: *const c_char);
13549 pub fn g_tls_password_set_flags(password: *mut GTlsPassword, flags: GTlsPasswordFlags);
13550 pub fn g_tls_password_set_value(password: *mut GTlsPassword, value: *const u8, length: ssize_t);
13551 pub fn g_tls_password_set_value_full(
13552 password: *mut GTlsPassword,
13553 value: *mut u8,
13554 length: ssize_t,
13555 destroy: glib::GDestroyNotify,
13556 );
13557 pub fn g_tls_password_set_warning(password: *mut GTlsPassword, warning: *const c_char);
13558
13559 pub fn g_unix_connection_get_type() -> GType;
13563 pub fn g_unix_connection_receive_credentials(
13564 connection: *mut GUnixConnection,
13565 cancellable: *mut GCancellable,
13566 error: *mut *mut glib::GError,
13567 ) -> *mut GCredentials;
13568 pub fn g_unix_connection_receive_credentials_async(
13569 connection: *mut GUnixConnection,
13570 cancellable: *mut GCancellable,
13571 callback: GAsyncReadyCallback,
13572 user_data: gpointer,
13573 );
13574 pub fn g_unix_connection_receive_credentials_finish(
13575 connection: *mut GUnixConnection,
13576 result: *mut GAsyncResult,
13577 error: *mut *mut glib::GError,
13578 ) -> *mut GCredentials;
13579 pub fn g_unix_connection_receive_fd(
13580 connection: *mut GUnixConnection,
13581 cancellable: *mut GCancellable,
13582 error: *mut *mut glib::GError,
13583 ) -> c_int;
13584 pub fn g_unix_connection_send_credentials(
13585 connection: *mut GUnixConnection,
13586 cancellable: *mut GCancellable,
13587 error: *mut *mut glib::GError,
13588 ) -> gboolean;
13589 pub fn g_unix_connection_send_credentials_async(
13590 connection: *mut GUnixConnection,
13591 cancellable: *mut GCancellable,
13592 callback: GAsyncReadyCallback,
13593 user_data: gpointer,
13594 );
13595 pub fn g_unix_connection_send_credentials_finish(
13596 connection: *mut GUnixConnection,
13597 result: *mut GAsyncResult,
13598 error: *mut *mut glib::GError,
13599 ) -> gboolean;
13600 pub fn g_unix_connection_send_fd(
13601 connection: *mut GUnixConnection,
13602 fd: c_int,
13603 cancellable: *mut GCancellable,
13604 error: *mut *mut glib::GError,
13605 ) -> gboolean;
13606
13607 pub fn g_unix_credentials_message_get_type() -> GType;
13611 pub fn g_unix_credentials_message_new() -> *mut GSocketControlMessage;
13612 pub fn g_unix_credentials_message_new_with_credentials(
13613 credentials: *mut GCredentials,
13614 ) -> *mut GSocketControlMessage;
13615 pub fn g_unix_credentials_message_is_supported() -> gboolean;
13616 pub fn g_unix_credentials_message_get_credentials(
13617 message: *mut GUnixCredentialsMessage,
13618 ) -> *mut GCredentials;
13619
13620 pub fn g_unix_fd_list_get_type() -> GType;
13624 pub fn g_unix_fd_list_new() -> *mut GUnixFDList;
13625 pub fn g_unix_fd_list_new_from_array(fds: *const c_int, n_fds: c_int) -> *mut GUnixFDList;
13626 pub fn g_unix_fd_list_append(
13627 list: *mut GUnixFDList,
13628 fd: c_int,
13629 error: *mut *mut glib::GError,
13630 ) -> c_int;
13631 pub fn g_unix_fd_list_get(
13632 list: *mut GUnixFDList,
13633 index_: c_int,
13634 error: *mut *mut glib::GError,
13635 ) -> c_int;
13636 pub fn g_unix_fd_list_get_length(list: *mut GUnixFDList) -> c_int;
13637 pub fn g_unix_fd_list_peek_fds(list: *mut GUnixFDList, length: *mut c_int) -> *const c_int;
13638 pub fn g_unix_fd_list_steal_fds(list: *mut GUnixFDList, length: *mut c_int) -> *mut c_int;
13639
13640 pub fn g_unix_fd_message_get_type() -> GType;
13644 pub fn g_unix_fd_message_new() -> *mut GSocketControlMessage;
13645 pub fn g_unix_fd_message_new_with_fd_list(
13646 fd_list: *mut GUnixFDList,
13647 ) -> *mut GSocketControlMessage;
13648 pub fn g_unix_fd_message_append_fd(
13649 message: *mut GUnixFDMessage,
13650 fd: c_int,
13651 error: *mut *mut glib::GError,
13652 ) -> gboolean;
13653 pub fn g_unix_fd_message_get_fd_list(message: *mut GUnixFDMessage) -> *mut GUnixFDList;
13654 pub fn g_unix_fd_message_steal_fds(
13655 message: *mut GUnixFDMessage,
13656 length: *mut c_int,
13657 ) -> *mut c_int;
13658
13659 pub fn g_unix_input_stream_get_type() -> GType;
13663 pub fn g_unix_input_stream_new(fd: c_int, close_fd: gboolean) -> *mut GInputStream;
13664 pub fn g_unix_input_stream_get_close_fd(stream: *mut GUnixInputStream) -> gboolean;
13665 pub fn g_unix_input_stream_get_fd(stream: *mut GUnixInputStream) -> c_int;
13666 pub fn g_unix_input_stream_set_close_fd(stream: *mut GUnixInputStream, close_fd: gboolean);
13667
13668 pub fn g_unix_mount_monitor_get_type() -> GType;
13672 pub fn g_unix_mount_monitor_new() -> *mut GUnixMountMonitor;
13673 #[cfg(any(feature = "v2_44", feature = "dox"))]
13674 pub fn g_unix_mount_monitor_get() -> *mut GUnixMountMonitor;
13675 pub fn g_unix_mount_monitor_set_rate_limit(
13676 mount_monitor: *mut GUnixMountMonitor,
13677 limit_msec: c_int,
13678 );
13679
13680 pub fn g_unix_output_stream_get_type() -> GType;
13684 pub fn g_unix_output_stream_new(fd: c_int, close_fd: gboolean) -> *mut GOutputStream;
13685 pub fn g_unix_output_stream_get_close_fd(stream: *mut GUnixOutputStream) -> gboolean;
13686 pub fn g_unix_output_stream_get_fd(stream: *mut GUnixOutputStream) -> c_int;
13687 pub fn g_unix_output_stream_set_close_fd(stream: *mut GUnixOutputStream, close_fd: gboolean);
13688
13689 pub fn g_unix_socket_address_get_type() -> GType;
13693 pub fn g_unix_socket_address_new(path: *const c_char) -> *mut GSocketAddress;
13694 pub fn g_unix_socket_address_new_abstract(
13695 path: *const c_char,
13696 path_len: c_int,
13697 ) -> *mut GSocketAddress;
13698 pub fn g_unix_socket_address_new_with_type(
13699 path: *const c_char,
13700 path_len: c_int,
13701 type_: GUnixSocketAddressType,
13702 ) -> *mut GSocketAddress;
13703 pub fn g_unix_socket_address_abstract_names_supported() -> gboolean;
13704 pub fn g_unix_socket_address_get_address_type(
13705 address: *mut GUnixSocketAddress,
13706 ) -> GUnixSocketAddressType;
13707 pub fn g_unix_socket_address_get_is_abstract(address: *mut GUnixSocketAddress) -> gboolean;
13708 pub fn g_unix_socket_address_get_path(address: *mut GUnixSocketAddress) -> *const c_char;
13709 pub fn g_unix_socket_address_get_path_len(address: *mut GUnixSocketAddress) -> size_t;
13710
13711 pub fn g_vfs_get_type() -> GType;
13715 pub fn g_vfs_get_default() -> *mut GVfs;
13716 pub fn g_vfs_get_local() -> *mut GVfs;
13717 pub fn g_vfs_get_file_for_path(vfs: *mut GVfs, path: *const c_char) -> *mut GFile;
13718 pub fn g_vfs_get_file_for_uri(vfs: *mut GVfs, uri: *const c_char) -> *mut GFile;
13719 pub fn g_vfs_get_supported_uri_schemes(vfs: *mut GVfs) -> *const *const c_char;
13720 pub fn g_vfs_is_active(vfs: *mut GVfs) -> gboolean;
13721 pub fn g_vfs_parse_name(vfs: *mut GVfs, parse_name: *const c_char) -> *mut GFile;
13722 #[cfg(any(feature = "v2_50", feature = "dox"))]
13723 pub fn g_vfs_register_uri_scheme(
13724 vfs: *mut GVfs,
13725 scheme: *const c_char,
13726 uri_func: GVfsFileLookupFunc,
13727 uri_data: gpointer,
13728 uri_destroy: glib::GDestroyNotify,
13729 parse_name_func: GVfsFileLookupFunc,
13730 parse_name_data: gpointer,
13731 parse_name_destroy: glib::GDestroyNotify,
13732 ) -> gboolean;
13733 #[cfg(any(feature = "v2_50", feature = "dox"))]
13734 pub fn g_vfs_unregister_uri_scheme(vfs: *mut GVfs, scheme: *const c_char) -> gboolean;
13735
13736 pub fn g_volume_monitor_get_type() -> GType;
13740 pub fn g_volume_monitor_adopt_orphan_mount(mount: *mut GMount) -> *mut GVolume;
13741 pub fn g_volume_monitor_get() -> *mut GVolumeMonitor;
13742 pub fn g_volume_monitor_get_connected_drives(
13743 volume_monitor: *mut GVolumeMonitor,
13744 ) -> *mut glib::GList;
13745 pub fn g_volume_monitor_get_mount_for_uuid(
13746 volume_monitor: *mut GVolumeMonitor,
13747 uuid: *const c_char,
13748 ) -> *mut GMount;
13749 pub fn g_volume_monitor_get_mounts(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
13750 pub fn g_volume_monitor_get_volume_for_uuid(
13751 volume_monitor: *mut GVolumeMonitor,
13752 uuid: *const c_char,
13753 ) -> *mut GVolume;
13754 pub fn g_volume_monitor_get_volumes(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
13755
13756 pub fn g_zlib_compressor_get_type() -> GType;
13760 pub fn g_zlib_compressor_new(
13761 format: GZlibCompressorFormat,
13762 level: c_int,
13763 ) -> *mut GZlibCompressor;
13764 pub fn g_zlib_compressor_get_file_info(compressor: *mut GZlibCompressor) -> *mut GFileInfo;
13765 pub fn g_zlib_compressor_set_file_info(
13766 compressor: *mut GZlibCompressor,
13767 file_info: *mut GFileInfo,
13768 );
13769
13770 pub fn g_zlib_decompressor_get_type() -> GType;
13774 pub fn g_zlib_decompressor_new(format: GZlibCompressorFormat) -> *mut GZlibDecompressor;
13775 pub fn g_zlib_decompressor_get_file_info(
13776 decompressor: *mut GZlibDecompressor,
13777 ) -> *mut GFileInfo;
13778
13779 pub fn g_action_get_type() -> GType;
13783 pub fn g_action_name_is_valid(action_name: *const c_char) -> gboolean;
13784 pub fn g_action_parse_detailed_name(
13785 detailed_name: *const c_char,
13786 action_name: *mut *mut c_char,
13787 target_value: *mut *mut glib::GVariant,
13788 error: *mut *mut glib::GError,
13789 ) -> gboolean;
13790 pub fn g_action_print_detailed_name(
13791 action_name: *const c_char,
13792 target_value: *mut glib::GVariant,
13793 ) -> *mut c_char;
13794 pub fn g_action_activate(action: *mut GAction, parameter: *mut glib::GVariant);
13795 pub fn g_action_change_state(action: *mut GAction, value: *mut glib::GVariant);
13796 pub fn g_action_get_enabled(action: *mut GAction) -> gboolean;
13797 pub fn g_action_get_name(action: *mut GAction) -> *const c_char;
13798 pub fn g_action_get_parameter_type(action: *mut GAction) -> *const glib::GVariantType;
13799 pub fn g_action_get_state(action: *mut GAction) -> *mut glib::GVariant;
13800 pub fn g_action_get_state_hint(action: *mut GAction) -> *mut glib::GVariant;
13801 pub fn g_action_get_state_type(action: *mut GAction) -> *const glib::GVariantType;
13802
13803 pub fn g_action_group_get_type() -> GType;
13807 pub fn g_action_group_action_added(action_group: *mut GActionGroup, action_name: *const c_char);
13808 pub fn g_action_group_action_enabled_changed(
13809 action_group: *mut GActionGroup,
13810 action_name: *const c_char,
13811 enabled: gboolean,
13812 );
13813 pub fn g_action_group_action_removed(
13814 action_group: *mut GActionGroup,
13815 action_name: *const c_char,
13816 );
13817 pub fn g_action_group_action_state_changed(
13818 action_group: *mut GActionGroup,
13819 action_name: *const c_char,
13820 state: *mut glib::GVariant,
13821 );
13822 pub fn g_action_group_activate_action(
13823 action_group: *mut GActionGroup,
13824 action_name: *const c_char,
13825 parameter: *mut glib::GVariant,
13826 );
13827 pub fn g_action_group_change_action_state(
13828 action_group: *mut GActionGroup,
13829 action_name: *const c_char,
13830 value: *mut glib::GVariant,
13831 );
13832 pub fn g_action_group_get_action_enabled(
13833 action_group: *mut GActionGroup,
13834 action_name: *const c_char,
13835 ) -> gboolean;
13836 pub fn g_action_group_get_action_parameter_type(
13837 action_group: *mut GActionGroup,
13838 action_name: *const c_char,
13839 ) -> *const glib::GVariantType;
13840 pub fn g_action_group_get_action_state(
13841 action_group: *mut GActionGroup,
13842 action_name: *const c_char,
13843 ) -> *mut glib::GVariant;
13844 pub fn g_action_group_get_action_state_hint(
13845 action_group: *mut GActionGroup,
13846 action_name: *const c_char,
13847 ) -> *mut glib::GVariant;
13848 pub fn g_action_group_get_action_state_type(
13849 action_group: *mut GActionGroup,
13850 action_name: *const c_char,
13851 ) -> *const glib::GVariantType;
13852 pub fn g_action_group_has_action(
13853 action_group: *mut GActionGroup,
13854 action_name: *const c_char,
13855 ) -> gboolean;
13856 pub fn g_action_group_list_actions(action_group: *mut GActionGroup) -> *mut *mut c_char;
13857 pub fn g_action_group_query_action(
13858 action_group: *mut GActionGroup,
13859 action_name: *const c_char,
13860 enabled: *mut gboolean,
13861 parameter_type: *mut *const glib::GVariantType,
13862 state_type: *mut *const glib::GVariantType,
13863 state_hint: *mut *mut glib::GVariant,
13864 state: *mut *mut glib::GVariant,
13865 ) -> gboolean;
13866
13867 pub fn g_action_map_get_type() -> GType;
13871 pub fn g_action_map_add_action(action_map: *mut GActionMap, action: *mut GAction);
13872 pub fn g_action_map_add_action_entries(
13873 action_map: *mut GActionMap,
13874 entries: *const GActionEntry,
13875 n_entries: c_int,
13876 user_data: gpointer,
13877 );
13878 pub fn g_action_map_lookup_action(
13879 action_map: *mut GActionMap,
13880 action_name: *const c_char,
13881 ) -> *mut GAction;
13882 pub fn g_action_map_remove_action(action_map: *mut GActionMap, action_name: *const c_char);
13883
13884 pub fn g_app_info_get_type() -> GType;
13888 pub fn g_app_info_create_from_commandline(
13889 commandline: *const c_char,
13890 application_name: *const c_char,
13891 flags: GAppInfoCreateFlags,
13892 error: *mut *mut glib::GError,
13893 ) -> *mut GAppInfo;
13894 pub fn g_app_info_get_all() -> *mut glib::GList;
13895 pub fn g_app_info_get_all_for_type(content_type: *const c_char) -> *mut glib::GList;
13896 pub fn g_app_info_get_default_for_type(
13897 content_type: *const c_char,
13898 must_support_uris: gboolean,
13899 ) -> *mut GAppInfo;
13900 pub fn g_app_info_get_default_for_uri_scheme(uri_scheme: *const c_char) -> *mut GAppInfo;
13901 pub fn g_app_info_get_fallback_for_type(content_type: *const c_char) -> *mut glib::GList;
13902 pub fn g_app_info_get_recommended_for_type(content_type: *const c_char) -> *mut glib::GList;
13903 pub fn g_app_info_launch_default_for_uri(
13904 uri: *const c_char,
13905 context: *mut GAppLaunchContext,
13906 error: *mut *mut glib::GError,
13907 ) -> gboolean;
13908 #[cfg(any(feature = "v2_50", feature = "dox"))]
13909 pub fn g_app_info_launch_default_for_uri_async(
13910 uri: *const c_char,
13911 context: *mut GAppLaunchContext,
13912 cancellable: *mut GCancellable,
13913 callback: GAsyncReadyCallback,
13914 user_data: gpointer,
13915 );
13916 #[cfg(any(feature = "v2_50", feature = "dox"))]
13917 pub fn g_app_info_launch_default_for_uri_finish(
13918 result: *mut GAsyncResult,
13919 error: *mut *mut glib::GError,
13920 ) -> gboolean;
13921 pub fn g_app_info_reset_type_associations(content_type: *const c_char);
13922 pub fn g_app_info_add_supports_type(
13923 appinfo: *mut GAppInfo,
13924 content_type: *const c_char,
13925 error: *mut *mut glib::GError,
13926 ) -> gboolean;
13927 pub fn g_app_info_can_delete(appinfo: *mut GAppInfo) -> gboolean;
13928 pub fn g_app_info_can_remove_supports_type(appinfo: *mut GAppInfo) -> gboolean;
13929 pub fn g_app_info_delete(appinfo: *mut GAppInfo) -> gboolean;
13930 pub fn g_app_info_dup(appinfo: *mut GAppInfo) -> *mut GAppInfo;
13931 pub fn g_app_info_equal(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean;
13932 pub fn g_app_info_get_commandline(appinfo: *mut GAppInfo) -> *const c_char;
13933 pub fn g_app_info_get_description(appinfo: *mut GAppInfo) -> *const c_char;
13934 pub fn g_app_info_get_display_name(appinfo: *mut GAppInfo) -> *const c_char;
13935 pub fn g_app_info_get_executable(appinfo: *mut GAppInfo) -> *const c_char;
13936 pub fn g_app_info_get_icon(appinfo: *mut GAppInfo) -> *mut GIcon;
13937 pub fn g_app_info_get_id(appinfo: *mut GAppInfo) -> *const c_char;
13938 pub fn g_app_info_get_name(appinfo: *mut GAppInfo) -> *const c_char;
13939 pub fn g_app_info_get_supported_types(appinfo: *mut GAppInfo) -> *mut *const c_char;
13940 pub fn g_app_info_launch(
13941 appinfo: *mut GAppInfo,
13942 files: *mut glib::GList,
13943 context: *mut GAppLaunchContext,
13944 error: *mut *mut glib::GError,
13945 ) -> gboolean;
13946 pub fn g_app_info_launch_uris(
13947 appinfo: *mut GAppInfo,
13948 uris: *mut glib::GList,
13949 context: *mut GAppLaunchContext,
13950 error: *mut *mut glib::GError,
13951 ) -> gboolean;
13952 pub fn g_app_info_remove_supports_type(
13953 appinfo: *mut GAppInfo,
13954 content_type: *const c_char,
13955 error: *mut *mut glib::GError,
13956 ) -> gboolean;
13957 pub fn g_app_info_set_as_default_for_extension(
13958 appinfo: *mut GAppInfo,
13959 extension: *const c_char,
13960 error: *mut *mut glib::GError,
13961 ) -> gboolean;
13962 pub fn g_app_info_set_as_default_for_type(
13963 appinfo: *mut GAppInfo,
13964 content_type: *const c_char,
13965 error: *mut *mut glib::GError,
13966 ) -> gboolean;
13967 pub fn g_app_info_set_as_last_used_for_type(
13968 appinfo: *mut GAppInfo,
13969 content_type: *const c_char,
13970 error: *mut *mut glib::GError,
13971 ) -> gboolean;
13972 pub fn g_app_info_should_show(appinfo: *mut GAppInfo) -> gboolean;
13973 pub fn g_app_info_supports_files(appinfo: *mut GAppInfo) -> gboolean;
13974 pub fn g_app_info_supports_uris(appinfo: *mut GAppInfo) -> gboolean;
13975
13976 pub fn g_async_initable_get_type() -> GType;
13980 pub fn g_async_initable_new_async(
13981 object_type: GType,
13982 io_priority: c_int,
13983 cancellable: *mut GCancellable,
13984 callback: GAsyncReadyCallback,
13985 user_data: gpointer,
13986 first_property_name: *const c_char,
13987 ...
13988 );
13989 pub fn g_async_initable_newv_async(
13991 object_type: GType,
13992 n_parameters: c_uint,
13993 parameters: *mut gobject::GParameter,
13994 io_priority: c_int,
13995 cancellable: *mut GCancellable,
13996 callback: GAsyncReadyCallback,
13997 user_data: gpointer,
13998 );
13999 pub fn g_async_initable_init_async(
14000 initable: *mut GAsyncInitable,
14001 io_priority: c_int,
14002 cancellable: *mut GCancellable,
14003 callback: GAsyncReadyCallback,
14004 user_data: gpointer,
14005 );
14006 pub fn g_async_initable_init_finish(
14007 initable: *mut GAsyncInitable,
14008 res: *mut GAsyncResult,
14009 error: *mut *mut glib::GError,
14010 ) -> gboolean;
14011 pub fn g_async_initable_new_finish(
14012 initable: *mut GAsyncInitable,
14013 res: *mut GAsyncResult,
14014 error: *mut *mut glib::GError,
14015 ) -> *mut gobject::GObject;
14016
14017 pub fn g_async_result_get_type() -> GType;
14021 pub fn g_async_result_get_source_object(res: *mut GAsyncResult) -> *mut gobject::GObject;
14022 pub fn g_async_result_get_user_data(res: *mut GAsyncResult) -> gpointer;
14023 pub fn g_async_result_is_tagged(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean;
14024 pub fn g_async_result_legacy_propagate_error(
14025 res: *mut GAsyncResult,
14026 error: *mut *mut glib::GError,
14027 ) -> gboolean;
14028
14029 pub fn g_converter_get_type() -> GType;
14033 pub fn g_converter_convert(
14034 converter: *mut GConverter,
14035 inbuf: *mut u8,
14036 inbuf_size: size_t,
14037 outbuf: *mut u8,
14038 outbuf_size: size_t,
14039 flags: GConverterFlags,
14040 bytes_read: *mut size_t,
14041 bytes_written: *mut size_t,
14042 error: *mut *mut glib::GError,
14043 ) -> GConverterResult;
14044 pub fn g_converter_reset(converter: *mut GConverter);
14045
14046 pub fn g_dbus_interface_get_type() -> GType;
14050 pub fn g_dbus_interface_dup_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
14051 pub fn g_dbus_interface_get_info(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo;
14052 pub fn g_dbus_interface_get_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
14053 pub fn g_dbus_interface_set_object(interface_: *mut GDBusInterface, object: *mut GDBusObject);
14054
14055 pub fn g_dbus_object_get_type() -> GType;
14059 pub fn g_dbus_object_get_interface(
14060 object: *mut GDBusObject,
14061 interface_name: *const c_char,
14062 ) -> *mut GDBusInterface;
14063 pub fn g_dbus_object_get_interfaces(object: *mut GDBusObject) -> *mut glib::GList;
14064 pub fn g_dbus_object_get_object_path(object: *mut GDBusObject) -> *const c_char;
14065
14066 pub fn g_dbus_object_manager_get_type() -> GType;
14070 pub fn g_dbus_object_manager_get_interface(
14071 manager: *mut GDBusObjectManager,
14072 object_path: *const c_char,
14073 interface_name: *const c_char,
14074 ) -> *mut GDBusInterface;
14075 pub fn g_dbus_object_manager_get_object(
14076 manager: *mut GDBusObjectManager,
14077 object_path: *const c_char,
14078 ) -> *mut GDBusObject;
14079 pub fn g_dbus_object_manager_get_object_path(manager: *mut GDBusObjectManager)
14080 -> *const c_char;
14081 pub fn g_dbus_object_manager_get_objects(manager: *mut GDBusObjectManager) -> *mut glib::GList;
14082
14083 pub fn g_datagram_based_get_type() -> GType;
14087 #[cfg(any(feature = "v2_48", feature = "dox"))]
14088 pub fn g_datagram_based_condition_check(
14089 datagram_based: *mut GDatagramBased,
14090 condition: glib::GIOCondition,
14091 ) -> glib::GIOCondition;
14092 #[cfg(any(feature = "v2_48", feature = "dox"))]
14093 pub fn g_datagram_based_condition_wait(
14094 datagram_based: *mut GDatagramBased,
14095 condition: glib::GIOCondition,
14096 timeout: i64,
14097 cancellable: *mut GCancellable,
14098 error: *mut *mut glib::GError,
14099 ) -> gboolean;
14100 #[cfg(any(feature = "v2_48", feature = "dox"))]
14101 pub fn g_datagram_based_create_source(
14102 datagram_based: *mut GDatagramBased,
14103 condition: glib::GIOCondition,
14104 cancellable: *mut GCancellable,
14105 ) -> *mut glib::GSource;
14106 #[cfg(any(feature = "v2_48", feature = "dox"))]
14107 pub fn g_datagram_based_receive_messages(
14108 datagram_based: *mut GDatagramBased,
14109 messages: *mut GInputMessage,
14110 num_messages: c_uint,
14111 flags: c_int,
14112 timeout: i64,
14113 cancellable: *mut GCancellable,
14114 error: *mut *mut glib::GError,
14115 ) -> c_int;
14116 #[cfg(any(feature = "v2_48", feature = "dox"))]
14117 pub fn g_datagram_based_send_messages(
14118 datagram_based: *mut GDatagramBased,
14119 messages: *mut GOutputMessage,
14120 num_messages: c_uint,
14121 flags: c_int,
14122 timeout: i64,
14123 cancellable: *mut GCancellable,
14124 error: *mut *mut glib::GError,
14125 ) -> c_int;
14126
14127 pub fn g_desktop_app_info_lookup_get_type() -> GType;
14131 pub fn g_desktop_app_info_lookup_get_default_for_uri_scheme(
14132 lookup: *mut GDesktopAppInfoLookup,
14133 uri_scheme: *const c_char,
14134 ) -> *mut GAppInfo;
14135
14136 pub fn g_drive_get_type() -> GType;
14140 pub fn g_drive_can_eject(drive: *mut GDrive) -> gboolean;
14141 pub fn g_drive_can_poll_for_media(drive: *mut GDrive) -> gboolean;
14142 pub fn g_drive_can_start(drive: *mut GDrive) -> gboolean;
14143 pub fn g_drive_can_start_degraded(drive: *mut GDrive) -> gboolean;
14144 pub fn g_drive_can_stop(drive: *mut GDrive) -> gboolean;
14145 pub fn g_drive_eject(
14146 drive: *mut GDrive,
14147 flags: GMountUnmountFlags,
14148 cancellable: *mut GCancellable,
14149 callback: GAsyncReadyCallback,
14150 user_data: gpointer,
14151 );
14152 pub fn g_drive_eject_finish(
14153 drive: *mut GDrive,
14154 result: *mut GAsyncResult,
14155 error: *mut *mut glib::GError,
14156 ) -> gboolean;
14157 pub fn g_drive_eject_with_operation(
14158 drive: *mut GDrive,
14159 flags: GMountUnmountFlags,
14160 mount_operation: *mut GMountOperation,
14161 cancellable: *mut GCancellable,
14162 callback: GAsyncReadyCallback,
14163 user_data: gpointer,
14164 );
14165 pub fn g_drive_eject_with_operation_finish(
14166 drive: *mut GDrive,
14167 result: *mut GAsyncResult,
14168 error: *mut *mut glib::GError,
14169 ) -> gboolean;
14170 pub fn g_drive_enumerate_identifiers(drive: *mut GDrive) -> *mut *mut c_char;
14171 pub fn g_drive_get_icon(drive: *mut GDrive) -> *mut GIcon;
14172 pub fn g_drive_get_identifier(drive: *mut GDrive, kind: *const c_char) -> *mut c_char;
14173 pub fn g_drive_get_name(drive: *mut GDrive) -> *mut c_char;
14174 pub fn g_drive_get_sort_key(drive: *mut GDrive) -> *const c_char;
14175 pub fn g_drive_get_start_stop_type(drive: *mut GDrive) -> GDriveStartStopType;
14176 pub fn g_drive_get_symbolic_icon(drive: *mut GDrive) -> *mut GIcon;
14177 pub fn g_drive_get_volumes(drive: *mut GDrive) -> *mut glib::GList;
14178 pub fn g_drive_has_media(drive: *mut GDrive) -> gboolean;
14179 pub fn g_drive_has_volumes(drive: *mut GDrive) -> gboolean;
14180 pub fn g_drive_is_media_check_automatic(drive: *mut GDrive) -> gboolean;
14181 pub fn g_drive_is_media_removable(drive: *mut GDrive) -> gboolean;
14182 #[cfg(any(feature = "v2_50", feature = "dox"))]
14183 pub fn g_drive_is_removable(drive: *mut GDrive) -> gboolean;
14184 pub fn g_drive_poll_for_media(
14185 drive: *mut GDrive,
14186 cancellable: *mut GCancellable,
14187 callback: GAsyncReadyCallback,
14188 user_data: gpointer,
14189 );
14190 pub fn g_drive_poll_for_media_finish(
14191 drive: *mut GDrive,
14192 result: *mut GAsyncResult,
14193 error: *mut *mut glib::GError,
14194 ) -> gboolean;
14195 pub fn g_drive_start(
14196 drive: *mut GDrive,
14197 flags: GDriveStartFlags,
14198 mount_operation: *mut GMountOperation,
14199 cancellable: *mut GCancellable,
14200 callback: GAsyncReadyCallback,
14201 user_data: gpointer,
14202 );
14203 pub fn g_drive_start_finish(
14204 drive: *mut GDrive,
14205 result: *mut GAsyncResult,
14206 error: *mut *mut glib::GError,
14207 ) -> gboolean;
14208 pub fn g_drive_stop(
14209 drive: *mut GDrive,
14210 flags: GMountUnmountFlags,
14211 mount_operation: *mut GMountOperation,
14212 cancellable: *mut GCancellable,
14213 callback: GAsyncReadyCallback,
14214 user_data: gpointer,
14215 );
14216 pub fn g_drive_stop_finish(
14217 drive: *mut GDrive,
14218 result: *mut GAsyncResult,
14219 error: *mut *mut glib::GError,
14220 ) -> gboolean;
14221
14222 pub fn g_dtls_client_connection_get_type() -> GType;
14226 #[cfg(any(feature = "v2_48", feature = "dox"))]
14227 pub fn g_dtls_client_connection_new(
14228 base_socket: *mut GDatagramBased,
14229 server_identity: *mut GSocketConnectable,
14230 error: *mut *mut glib::GError,
14231 ) -> *mut GDtlsClientConnection;
14232 #[cfg(any(feature = "v2_48", feature = "dox"))]
14233 pub fn g_dtls_client_connection_get_accepted_cas(
14234 conn: *mut GDtlsClientConnection,
14235 ) -> *mut glib::GList;
14236 #[cfg(any(feature = "v2_48", feature = "dox"))]
14237 pub fn g_dtls_client_connection_get_server_identity(
14238 conn: *mut GDtlsClientConnection,
14239 ) -> *mut GSocketConnectable;
14240 #[cfg(any(feature = "v2_48", feature = "dox"))]
14241 pub fn g_dtls_client_connection_get_validation_flags(
14242 conn: *mut GDtlsClientConnection,
14243 ) -> GTlsCertificateFlags;
14244 #[cfg(any(feature = "v2_48", feature = "dox"))]
14245 pub fn g_dtls_client_connection_set_server_identity(
14246 conn: *mut GDtlsClientConnection,
14247 identity: *mut GSocketConnectable,
14248 );
14249 #[cfg(any(feature = "v2_48", feature = "dox"))]
14250 pub fn g_dtls_client_connection_set_validation_flags(
14251 conn: *mut GDtlsClientConnection,
14252 flags: GTlsCertificateFlags,
14253 );
14254
14255 pub fn g_dtls_connection_get_type() -> GType;
14259 #[cfg(any(feature = "v2_48", feature = "dox"))]
14260 pub fn g_dtls_connection_close(
14261 conn: *mut GDtlsConnection,
14262 cancellable: *mut GCancellable,
14263 error: *mut *mut glib::GError,
14264 ) -> gboolean;
14265 #[cfg(any(feature = "v2_48", feature = "dox"))]
14266 pub fn g_dtls_connection_close_async(
14267 conn: *mut GDtlsConnection,
14268 io_priority: c_int,
14269 cancellable: *mut GCancellable,
14270 callback: GAsyncReadyCallback,
14271 user_data: gpointer,
14272 );
14273 #[cfg(any(feature = "v2_48", feature = "dox"))]
14274 pub fn g_dtls_connection_close_finish(
14275 conn: *mut GDtlsConnection,
14276 result: *mut GAsyncResult,
14277 error: *mut *mut glib::GError,
14278 ) -> gboolean;
14279 #[cfg(any(feature = "v2_48", feature = "dox"))]
14280 pub fn g_dtls_connection_emit_accept_certificate(
14281 conn: *mut GDtlsConnection,
14282 peer_cert: *mut GTlsCertificate,
14283 errors: GTlsCertificateFlags,
14284 ) -> gboolean;
14285 #[cfg(any(feature = "v2_48", feature = "dox"))]
14286 pub fn g_dtls_connection_get_certificate(conn: *mut GDtlsConnection) -> *mut GTlsCertificate;
14287 #[cfg(any(feature = "v2_48", feature = "dox"))]
14288 pub fn g_dtls_connection_get_database(conn: *mut GDtlsConnection) -> *mut GTlsDatabase;
14289 #[cfg(any(feature = "v2_48", feature = "dox"))]
14290 pub fn g_dtls_connection_get_interaction(conn: *mut GDtlsConnection) -> *mut GTlsInteraction;
14291 #[cfg(any(feature = "v2_48", feature = "dox"))]
14292 pub fn g_dtls_connection_get_peer_certificate(
14293 conn: *mut GDtlsConnection,
14294 ) -> *mut GTlsCertificate;
14295 #[cfg(any(feature = "v2_48", feature = "dox"))]
14296 pub fn g_dtls_connection_get_peer_certificate_errors(
14297 conn: *mut GDtlsConnection,
14298 ) -> GTlsCertificateFlags;
14299 #[cfg(any(feature = "v2_48", feature = "dox"))]
14300 pub fn g_dtls_connection_get_rehandshake_mode(
14301 conn: *mut GDtlsConnection,
14302 ) -> GTlsRehandshakeMode;
14303 #[cfg(any(feature = "v2_48", feature = "dox"))]
14304 pub fn g_dtls_connection_get_require_close_notify(conn: *mut GDtlsConnection) -> gboolean;
14305 #[cfg(any(feature = "v2_48", feature = "dox"))]
14306 pub fn g_dtls_connection_handshake(
14307 conn: *mut GDtlsConnection,
14308 cancellable: *mut GCancellable,
14309 error: *mut *mut glib::GError,
14310 ) -> gboolean;
14311 #[cfg(any(feature = "v2_48", feature = "dox"))]
14312 pub fn g_dtls_connection_handshake_async(
14313 conn: *mut GDtlsConnection,
14314 io_priority: c_int,
14315 cancellable: *mut GCancellable,
14316 callback: GAsyncReadyCallback,
14317 user_data: gpointer,
14318 );
14319 #[cfg(any(feature = "v2_48", feature = "dox"))]
14320 pub fn g_dtls_connection_handshake_finish(
14321 conn: *mut GDtlsConnection,
14322 result: *mut GAsyncResult,
14323 error: *mut *mut glib::GError,
14324 ) -> gboolean;
14325 #[cfg(any(feature = "v2_48", feature = "dox"))]
14326 pub fn g_dtls_connection_set_certificate(
14327 conn: *mut GDtlsConnection,
14328 certificate: *mut GTlsCertificate,
14329 );
14330 #[cfg(any(feature = "v2_48", feature = "dox"))]
14331 pub fn g_dtls_connection_set_database(conn: *mut GDtlsConnection, database: *mut GTlsDatabase);
14332 #[cfg(any(feature = "v2_48", feature = "dox"))]
14333 pub fn g_dtls_connection_set_interaction(
14334 conn: *mut GDtlsConnection,
14335 interaction: *mut GTlsInteraction,
14336 );
14337 #[cfg(any(feature = "v2_48", feature = "dox"))]
14338 pub fn g_dtls_connection_set_rehandshake_mode(
14339 conn: *mut GDtlsConnection,
14340 mode: GTlsRehandshakeMode,
14341 );
14342 #[cfg(any(feature = "v2_48", feature = "dox"))]
14343 pub fn g_dtls_connection_set_require_close_notify(
14344 conn: *mut GDtlsConnection,
14345 require_close_notify: gboolean,
14346 );
14347 #[cfg(any(feature = "v2_48", feature = "dox"))]
14348 pub fn g_dtls_connection_shutdown(
14349 conn: *mut GDtlsConnection,
14350 shutdown_read: gboolean,
14351 shutdown_write: gboolean,
14352 cancellable: *mut GCancellable,
14353 error: *mut *mut glib::GError,
14354 ) -> gboolean;
14355 #[cfg(any(feature = "v2_48", feature = "dox"))]
14356 pub fn g_dtls_connection_shutdown_async(
14357 conn: *mut GDtlsConnection,
14358 shutdown_read: gboolean,
14359 shutdown_write: gboolean,
14360 io_priority: c_int,
14361 cancellable: *mut GCancellable,
14362 callback: GAsyncReadyCallback,
14363 user_data: gpointer,
14364 );
14365 #[cfg(any(feature = "v2_48", feature = "dox"))]
14366 pub fn g_dtls_connection_shutdown_finish(
14367 conn: *mut GDtlsConnection,
14368 result: *mut GAsyncResult,
14369 error: *mut *mut glib::GError,
14370 ) -> gboolean;
14371
14372 pub fn g_dtls_server_connection_get_type() -> GType;
14376 #[cfg(any(feature = "v2_48", feature = "dox"))]
14377 pub fn g_dtls_server_connection_new(
14378 base_socket: *mut GDatagramBased,
14379 certificate: *mut GTlsCertificate,
14380 error: *mut *mut glib::GError,
14381 ) -> *mut GDtlsServerConnection;
14382
14383 pub fn g_file_get_type() -> GType;
14387 #[cfg(any(feature = "v2_56", feature = "dox"))]
14388 pub fn g_file_new_build_filename(first_element: *const c_char, ...) -> *mut GFile;
14389 pub fn g_file_new_for_commandline_arg(arg: *const c_char) -> *mut GFile;
14390 pub fn g_file_new_for_commandline_arg_and_cwd(
14391 arg: *const c_char,
14392 cwd: *const c_char,
14393 ) -> *mut GFile;
14394 pub fn g_file_new_for_path(path: *const c_char) -> *mut GFile;
14395 pub fn g_file_new_for_uri(uri: *const c_char) -> *mut GFile;
14396 pub fn g_file_new_tmp(
14397 tmpl: *const c_char,
14398 iostream: *mut *mut GFileIOStream,
14399 error: *mut *mut glib::GError,
14400 ) -> *mut GFile;
14401 pub fn g_file_parse_name(parse_name: *const c_char) -> *mut GFile;
14402 pub fn g_file_append_to(
14403 file: *mut GFile,
14404 flags: GFileCreateFlags,
14405 cancellable: *mut GCancellable,
14406 error: *mut *mut glib::GError,
14407 ) -> *mut GFileOutputStream;
14408 pub fn g_file_append_to_async(
14409 file: *mut GFile,
14410 flags: GFileCreateFlags,
14411 io_priority: c_int,
14412 cancellable: *mut GCancellable,
14413 callback: GAsyncReadyCallback,
14414 user_data: gpointer,
14415 );
14416 pub fn g_file_append_to_finish(
14417 file: *mut GFile,
14418 res: *mut GAsyncResult,
14419 error: *mut *mut glib::GError,
14420 ) -> *mut GFileOutputStream;
14421 pub fn g_file_copy(
14422 source: *mut GFile,
14423 destination: *mut GFile,
14424 flags: GFileCopyFlags,
14425 cancellable: *mut GCancellable,
14426 progress_callback: GFileProgressCallback,
14427 progress_callback_data: gpointer,
14428 error: *mut *mut glib::GError,
14429 ) -> gboolean;
14430 pub fn g_file_copy_async(
14431 source: *mut GFile,
14432 destination: *mut GFile,
14433 flags: GFileCopyFlags,
14434 io_priority: c_int,
14435 cancellable: *mut GCancellable,
14436 progress_callback: GFileProgressCallback,
14437 progress_callback_data: gpointer,
14438 callback: GAsyncReadyCallback,
14439 user_data: gpointer,
14440 );
14441 pub fn g_file_copy_attributes(
14442 source: *mut GFile,
14443 destination: *mut GFile,
14444 flags: GFileCopyFlags,
14445 cancellable: *mut GCancellable,
14446 error: *mut *mut glib::GError,
14447 ) -> gboolean;
14448 pub fn g_file_copy_finish(
14449 file: *mut GFile,
14450 res: *mut GAsyncResult,
14451 error: *mut *mut glib::GError,
14452 ) -> gboolean;
14453 pub fn g_file_create(
14454 file: *mut GFile,
14455 flags: GFileCreateFlags,
14456 cancellable: *mut GCancellable,
14457 error: *mut *mut glib::GError,
14458 ) -> *mut GFileOutputStream;
14459 pub fn g_file_create_async(
14460 file: *mut GFile,
14461 flags: GFileCreateFlags,
14462 io_priority: c_int,
14463 cancellable: *mut GCancellable,
14464 callback: GAsyncReadyCallback,
14465 user_data: gpointer,
14466 );
14467 pub fn g_file_create_finish(
14468 file: *mut GFile,
14469 res: *mut GAsyncResult,
14470 error: *mut *mut glib::GError,
14471 ) -> *mut GFileOutputStream;
14472 pub fn g_file_create_readwrite(
14473 file: *mut GFile,
14474 flags: GFileCreateFlags,
14475 cancellable: *mut GCancellable,
14476 error: *mut *mut glib::GError,
14477 ) -> *mut GFileIOStream;
14478 pub fn g_file_create_readwrite_async(
14479 file: *mut GFile,
14480 flags: GFileCreateFlags,
14481 io_priority: c_int,
14482 cancellable: *mut GCancellable,
14483 callback: GAsyncReadyCallback,
14484 user_data: gpointer,
14485 );
14486 pub fn g_file_create_readwrite_finish(
14487 file: *mut GFile,
14488 res: *mut GAsyncResult,
14489 error: *mut *mut glib::GError,
14490 ) -> *mut GFileIOStream;
14491 pub fn g_file_delete(
14492 file: *mut GFile,
14493 cancellable: *mut GCancellable,
14494 error: *mut *mut glib::GError,
14495 ) -> gboolean;
14496 pub fn g_file_delete_async(
14497 file: *mut GFile,
14498 io_priority: c_int,
14499 cancellable: *mut GCancellable,
14500 callback: GAsyncReadyCallback,
14501 user_data: gpointer,
14502 );
14503 pub fn g_file_delete_finish(
14504 file: *mut GFile,
14505 result: *mut GAsyncResult,
14506 error: *mut *mut glib::GError,
14507 ) -> gboolean;
14508 pub fn g_file_dup(file: *mut GFile) -> *mut GFile;
14509 pub fn g_file_eject_mountable(
14510 file: *mut GFile,
14511 flags: GMountUnmountFlags,
14512 cancellable: *mut GCancellable,
14513 callback: GAsyncReadyCallback,
14514 user_data: gpointer,
14515 );
14516 pub fn g_file_eject_mountable_finish(
14517 file: *mut GFile,
14518 result: *mut GAsyncResult,
14519 error: *mut *mut glib::GError,
14520 ) -> gboolean;
14521 pub fn g_file_eject_mountable_with_operation(
14522 file: *mut GFile,
14523 flags: GMountUnmountFlags,
14524 mount_operation: *mut GMountOperation,
14525 cancellable: *mut GCancellable,
14526 callback: GAsyncReadyCallback,
14527 user_data: gpointer,
14528 );
14529 pub fn g_file_eject_mountable_with_operation_finish(
14530 file: *mut GFile,
14531 result: *mut GAsyncResult,
14532 error: *mut *mut glib::GError,
14533 ) -> gboolean;
14534 pub fn g_file_enumerate_children(
14535 file: *mut GFile,
14536 attributes: *const c_char,
14537 flags: GFileQueryInfoFlags,
14538 cancellable: *mut GCancellable,
14539 error: *mut *mut glib::GError,
14540 ) -> *mut GFileEnumerator;
14541 pub fn g_file_enumerate_children_async(
14542 file: *mut GFile,
14543 attributes: *const c_char,
14544 flags: GFileQueryInfoFlags,
14545 io_priority: c_int,
14546 cancellable: *mut GCancellable,
14547 callback: GAsyncReadyCallback,
14548 user_data: gpointer,
14549 );
14550 pub fn g_file_enumerate_children_finish(
14551 file: *mut GFile,
14552 res: *mut GAsyncResult,
14553 error: *mut *mut glib::GError,
14554 ) -> *mut GFileEnumerator;
14555 pub fn g_file_equal(file1: *mut GFile, file2: *mut GFile) -> gboolean;
14556 pub fn g_file_find_enclosing_mount(
14557 file: *mut GFile,
14558 cancellable: *mut GCancellable,
14559 error: *mut *mut glib::GError,
14560 ) -> *mut GMount;
14561 pub fn g_file_find_enclosing_mount_async(
14562 file: *mut GFile,
14563 io_priority: c_int,
14564 cancellable: *mut GCancellable,
14565 callback: GAsyncReadyCallback,
14566 user_data: gpointer,
14567 );
14568 pub fn g_file_find_enclosing_mount_finish(
14569 file: *mut GFile,
14570 res: *mut GAsyncResult,
14571 error: *mut *mut glib::GError,
14572 ) -> *mut GMount;
14573 pub fn g_file_get_basename(file: *mut GFile) -> *mut c_char;
14574 pub fn g_file_get_child(file: *mut GFile, name: *const c_char) -> *mut GFile;
14575 pub fn g_file_get_child_for_display_name(
14576 file: *mut GFile,
14577 display_name: *const c_char,
14578 error: *mut *mut glib::GError,
14579 ) -> *mut GFile;
14580 pub fn g_file_get_parent(file: *mut GFile) -> *mut GFile;
14581 pub fn g_file_get_parse_name(file: *mut GFile) -> *mut c_char;
14582 pub fn g_file_get_path(file: *mut GFile) -> *mut c_char;
14583 pub fn g_file_get_relative_path(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char;
14584 pub fn g_file_get_uri(file: *mut GFile) -> *mut c_char;
14585 pub fn g_file_get_uri_scheme(file: *mut GFile) -> *mut c_char;
14586 pub fn g_file_has_parent(file: *mut GFile, parent: *mut GFile) -> gboolean;
14587 pub fn g_file_has_prefix(file: *mut GFile, prefix: *mut GFile) -> gboolean;
14588 pub fn g_file_has_uri_scheme(file: *mut GFile, uri_scheme: *const c_char) -> gboolean;
14589 pub fn g_file_hash(file: gconstpointer) -> c_uint;
14590 pub fn g_file_is_native(file: *mut GFile) -> gboolean;
14591 #[cfg(any(feature = "v2_56", feature = "dox"))]
14592 pub fn g_file_load_bytes(
14593 file: *mut GFile,
14594 cancellable: *mut GCancellable,
14595 etag_out: *mut *mut c_char,
14596 error: *mut *mut glib::GError,
14597 ) -> *mut glib::GBytes;
14598 #[cfg(any(feature = "v2_56", feature = "dox"))]
14599 pub fn g_file_load_bytes_async(
14600 file: *mut GFile,
14601 cancellable: *mut GCancellable,
14602 callback: GAsyncReadyCallback,
14603 user_data: gpointer,
14604 );
14605 #[cfg(any(feature = "v2_56", feature = "dox"))]
14606 pub fn g_file_load_bytes_finish(
14607 file: *mut GFile,
14608 result: *mut GAsyncResult,
14609 etag_out: *mut *mut c_char,
14610 error: *mut *mut glib::GError,
14611 ) -> *mut glib::GBytes;
14612 pub fn g_file_load_contents(
14613 file: *mut GFile,
14614 cancellable: *mut GCancellable,
14615 contents: *mut *mut u8,
14616 length: *mut size_t,
14617 etag_out: *mut *mut c_char,
14618 error: *mut *mut glib::GError,
14619 ) -> gboolean;
14620 pub fn g_file_load_contents_async(
14621 file: *mut GFile,
14622 cancellable: *mut GCancellable,
14623 callback: GAsyncReadyCallback,
14624 user_data: gpointer,
14625 );
14626 pub fn g_file_load_contents_finish(
14627 file: *mut GFile,
14628 res: *mut GAsyncResult,
14629 contents: *mut *mut u8,
14630 length: *mut size_t,
14631 etag_out: *mut *mut c_char,
14632 error: *mut *mut glib::GError,
14633 ) -> gboolean;
14634 pub fn g_file_load_partial_contents_async(
14635 file: *mut GFile,
14636 cancellable: *mut GCancellable,
14637 read_more_callback: GFileReadMoreCallback,
14638 callback: GAsyncReadyCallback,
14639 user_data: gpointer,
14640 );
14641 pub fn g_file_load_partial_contents_finish(
14642 file: *mut GFile,
14643 res: *mut GAsyncResult,
14644 contents: *mut *mut u8,
14645 length: *mut size_t,
14646 etag_out: *mut *mut c_char,
14647 error: *mut *mut glib::GError,
14648 ) -> gboolean;
14649 pub fn g_file_make_directory(
14650 file: *mut GFile,
14651 cancellable: *mut GCancellable,
14652 error: *mut *mut glib::GError,
14653 ) -> gboolean;
14654 pub fn g_file_make_directory_async(
14655 file: *mut GFile,
14656 io_priority: c_int,
14657 cancellable: *mut GCancellable,
14658 callback: GAsyncReadyCallback,
14659 user_data: gpointer,
14660 );
14661 pub fn g_file_make_directory_finish(
14662 file: *mut GFile,
14663 result: *mut GAsyncResult,
14664 error: *mut *mut glib::GError,
14665 ) -> gboolean;
14666 pub fn g_file_make_directory_with_parents(
14667 file: *mut GFile,
14668 cancellable: *mut GCancellable,
14669 error: *mut *mut glib::GError,
14670 ) -> gboolean;
14671 pub fn g_file_make_symbolic_link(
14672 file: *mut GFile,
14673 symlink_value: *const c_char,
14674 cancellable: *mut GCancellable,
14675 error: *mut *mut glib::GError,
14676 ) -> gboolean;
14677 pub fn g_file_measure_disk_usage(
14678 file: *mut GFile,
14679 flags: GFileMeasureFlags,
14680 cancellable: *mut GCancellable,
14681 progress_callback: GFileMeasureProgressCallback,
14682 progress_data: gpointer,
14683 disk_usage: *mut u64,
14684 num_dirs: *mut u64,
14685 num_files: *mut u64,
14686 error: *mut *mut glib::GError,
14687 ) -> gboolean;
14688 pub fn g_file_measure_disk_usage_async(
14689 file: *mut GFile,
14690 flags: GFileMeasureFlags,
14691 io_priority: c_int,
14692 cancellable: *mut GCancellable,
14693 progress_callback: GFileMeasureProgressCallback,
14694 progress_data: gpointer,
14695 callback: GAsyncReadyCallback,
14696 user_data: gpointer,
14697 );
14698 pub fn g_file_measure_disk_usage_finish(
14699 file: *mut GFile,
14700 result: *mut GAsyncResult,
14701 disk_usage: *mut u64,
14702 num_dirs: *mut u64,
14703 num_files: *mut u64,
14704 error: *mut *mut glib::GError,
14705 ) -> gboolean;
14706 pub fn g_file_monitor(
14707 file: *mut GFile,
14708 flags: GFileMonitorFlags,
14709 cancellable: *mut GCancellable,
14710 error: *mut *mut glib::GError,
14711 ) -> *mut GFileMonitor;
14712 pub fn g_file_monitor_directory(
14713 file: *mut GFile,
14714 flags: GFileMonitorFlags,
14715 cancellable: *mut GCancellable,
14716 error: *mut *mut glib::GError,
14717 ) -> *mut GFileMonitor;
14718 pub fn g_file_monitor_file(
14719 file: *mut GFile,
14720 flags: GFileMonitorFlags,
14721 cancellable: *mut GCancellable,
14722 error: *mut *mut glib::GError,
14723 ) -> *mut GFileMonitor;
14724 pub fn g_file_mount_enclosing_volume(
14725 location: *mut GFile,
14726 flags: GMountMountFlags,
14727 mount_operation: *mut GMountOperation,
14728 cancellable: *mut GCancellable,
14729 callback: GAsyncReadyCallback,
14730 user_data: gpointer,
14731 );
14732 pub fn g_file_mount_enclosing_volume_finish(
14733 location: *mut GFile,
14734 result: *mut GAsyncResult,
14735 error: *mut *mut glib::GError,
14736 ) -> gboolean;
14737 pub fn g_file_mount_mountable(
14738 file: *mut GFile,
14739 flags: GMountMountFlags,
14740 mount_operation: *mut GMountOperation,
14741 cancellable: *mut GCancellable,
14742 callback: GAsyncReadyCallback,
14743 user_data: gpointer,
14744 );
14745 pub fn g_file_mount_mountable_finish(
14746 file: *mut GFile,
14747 result: *mut GAsyncResult,
14748 error: *mut *mut glib::GError,
14749 ) -> *mut GFile;
14750 pub fn g_file_move(
14751 source: *mut GFile,
14752 destination: *mut GFile,
14753 flags: GFileCopyFlags,
14754 cancellable: *mut GCancellable,
14755 progress_callback: GFileProgressCallback,
14756 progress_callback_data: gpointer,
14757 error: *mut *mut glib::GError,
14758 ) -> gboolean;
14759 pub fn g_file_open_readwrite(
14760 file: *mut GFile,
14761 cancellable: *mut GCancellable,
14762 error: *mut *mut glib::GError,
14763 ) -> *mut GFileIOStream;
14764 pub fn g_file_open_readwrite_async(
14765 file: *mut GFile,
14766 io_priority: c_int,
14767 cancellable: *mut GCancellable,
14768 callback: GAsyncReadyCallback,
14769 user_data: gpointer,
14770 );
14771 pub fn g_file_open_readwrite_finish(
14772 file: *mut GFile,
14773 res: *mut GAsyncResult,
14774 error: *mut *mut glib::GError,
14775 ) -> *mut GFileIOStream;
14776 #[cfg(any(feature = "v2_56", feature = "dox"))]
14777 pub fn g_file_peek_path(file: *mut GFile) -> *const c_char;
14778 pub fn g_file_poll_mountable(
14779 file: *mut GFile,
14780 cancellable: *mut GCancellable,
14781 callback: GAsyncReadyCallback,
14782 user_data: gpointer,
14783 );
14784 pub fn g_file_poll_mountable_finish(
14785 file: *mut GFile,
14786 result: *mut GAsyncResult,
14787 error: *mut *mut glib::GError,
14788 ) -> gboolean;
14789 pub fn g_file_query_default_handler(
14790 file: *mut GFile,
14791 cancellable: *mut GCancellable,
14792 error: *mut *mut glib::GError,
14793 ) -> *mut GAppInfo;
14794 pub fn g_file_query_exists(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean;
14795 pub fn g_file_query_file_type(
14796 file: *mut GFile,
14797 flags: GFileQueryInfoFlags,
14798 cancellable: *mut GCancellable,
14799 ) -> GFileType;
14800 pub fn g_file_query_filesystem_info(
14801 file: *mut GFile,
14802 attributes: *const c_char,
14803 cancellable: *mut GCancellable,
14804 error: *mut *mut glib::GError,
14805 ) -> *mut GFileInfo;
14806 pub fn g_file_query_filesystem_info_async(
14807 file: *mut GFile,
14808 attributes: *const c_char,
14809 io_priority: c_int,
14810 cancellable: *mut GCancellable,
14811 callback: GAsyncReadyCallback,
14812 user_data: gpointer,
14813 );
14814 pub fn g_file_query_filesystem_info_finish(
14815 file: *mut GFile,
14816 res: *mut GAsyncResult,
14817 error: *mut *mut glib::GError,
14818 ) -> *mut GFileInfo;
14819 pub fn g_file_query_info(
14820 file: *mut GFile,
14821 attributes: *const c_char,
14822 flags: GFileQueryInfoFlags,
14823 cancellable: *mut GCancellable,
14824 error: *mut *mut glib::GError,
14825 ) -> *mut GFileInfo;
14826 pub fn g_file_query_info_async(
14827 file: *mut GFile,
14828 attributes: *const c_char,
14829 flags: GFileQueryInfoFlags,
14830 io_priority: c_int,
14831 cancellable: *mut GCancellable,
14832 callback: GAsyncReadyCallback,
14833 user_data: gpointer,
14834 );
14835 pub fn g_file_query_info_finish(
14836 file: *mut GFile,
14837 res: *mut GAsyncResult,
14838 error: *mut *mut glib::GError,
14839 ) -> *mut GFileInfo;
14840 pub fn g_file_query_settable_attributes(
14841 file: *mut GFile,
14842 cancellable: *mut GCancellable,
14843 error: *mut *mut glib::GError,
14844 ) -> *mut GFileAttributeInfoList;
14845 pub fn g_file_query_writable_namespaces(
14846 file: *mut GFile,
14847 cancellable: *mut GCancellable,
14848 error: *mut *mut glib::GError,
14849 ) -> *mut GFileAttributeInfoList;
14850 pub fn g_file_read(
14851 file: *mut GFile,
14852 cancellable: *mut GCancellable,
14853 error: *mut *mut glib::GError,
14854 ) -> *mut GFileInputStream;
14855 pub fn g_file_read_async(
14856 file: *mut GFile,
14857 io_priority: c_int,
14858 cancellable: *mut GCancellable,
14859 callback: GAsyncReadyCallback,
14860 user_data: gpointer,
14861 );
14862 pub fn g_file_read_finish(
14863 file: *mut GFile,
14864 res: *mut GAsyncResult,
14865 error: *mut *mut glib::GError,
14866 ) -> *mut GFileInputStream;
14867 pub fn g_file_replace(
14868 file: *mut GFile,
14869 etag: *const c_char,
14870 make_backup: gboolean,
14871 flags: GFileCreateFlags,
14872 cancellable: *mut GCancellable,
14873 error: *mut *mut glib::GError,
14874 ) -> *mut GFileOutputStream;
14875 pub fn g_file_replace_async(
14876 file: *mut GFile,
14877 etag: *const c_char,
14878 make_backup: gboolean,
14879 flags: GFileCreateFlags,
14880 io_priority: c_int,
14881 cancellable: *mut GCancellable,
14882 callback: GAsyncReadyCallback,
14883 user_data: gpointer,
14884 );
14885 pub fn g_file_replace_contents(
14886 file: *mut GFile,
14887 contents: *const u8,
14888 length: size_t,
14889 etag: *const c_char,
14890 make_backup: gboolean,
14891 flags: GFileCreateFlags,
14892 new_etag: *mut *mut c_char,
14893 cancellable: *mut GCancellable,
14894 error: *mut *mut glib::GError,
14895 ) -> gboolean;
14896 pub fn g_file_replace_contents_async(
14897 file: *mut GFile,
14898 contents: *const u8,
14899 length: size_t,
14900 etag: *const c_char,
14901 make_backup: gboolean,
14902 flags: GFileCreateFlags,
14903 cancellable: *mut GCancellable,
14904 callback: GAsyncReadyCallback,
14905 user_data: gpointer,
14906 );
14907 pub fn g_file_replace_contents_bytes_async(
14908 file: *mut GFile,
14909 contents: *mut glib::GBytes,
14910 etag: *const c_char,
14911 make_backup: gboolean,
14912 flags: GFileCreateFlags,
14913 cancellable: *mut GCancellable,
14914 callback: GAsyncReadyCallback,
14915 user_data: gpointer,
14916 );
14917 pub fn g_file_replace_contents_finish(
14918 file: *mut GFile,
14919 res: *mut GAsyncResult,
14920 new_etag: *mut *mut c_char,
14921 error: *mut *mut glib::GError,
14922 ) -> gboolean;
14923 pub fn g_file_replace_finish(
14924 file: *mut GFile,
14925 res: *mut GAsyncResult,
14926 error: *mut *mut glib::GError,
14927 ) -> *mut GFileOutputStream;
14928 pub fn g_file_replace_readwrite(
14929 file: *mut GFile,
14930 etag: *const c_char,
14931 make_backup: gboolean,
14932 flags: GFileCreateFlags,
14933 cancellable: *mut GCancellable,
14934 error: *mut *mut glib::GError,
14935 ) -> *mut GFileIOStream;
14936 pub fn g_file_replace_readwrite_async(
14937 file: *mut GFile,
14938 etag: *const c_char,
14939 make_backup: gboolean,
14940 flags: GFileCreateFlags,
14941 io_priority: c_int,
14942 cancellable: *mut GCancellable,
14943 callback: GAsyncReadyCallback,
14944 user_data: gpointer,
14945 );
14946 pub fn g_file_replace_readwrite_finish(
14947 file: *mut GFile,
14948 res: *mut GAsyncResult,
14949 error: *mut *mut glib::GError,
14950 ) -> *mut GFileIOStream;
14951 pub fn g_file_resolve_relative_path(
14952 file: *mut GFile,
14953 relative_path: *const c_char,
14954 ) -> *mut GFile;
14955 pub fn g_file_set_attribute(
14956 file: *mut GFile,
14957 attribute: *const c_char,
14958 type_: GFileAttributeType,
14959 value_p: gpointer,
14960 flags: GFileQueryInfoFlags,
14961 cancellable: *mut GCancellable,
14962 error: *mut *mut glib::GError,
14963 ) -> gboolean;
14964 pub fn g_file_set_attribute_byte_string(
14965 file: *mut GFile,
14966 attribute: *const c_char,
14967 value: *const c_char,
14968 flags: GFileQueryInfoFlags,
14969 cancellable: *mut GCancellable,
14970 error: *mut *mut glib::GError,
14971 ) -> gboolean;
14972 pub fn g_file_set_attribute_int32(
14973 file: *mut GFile,
14974 attribute: *const c_char,
14975 value: i32,
14976 flags: GFileQueryInfoFlags,
14977 cancellable: *mut GCancellable,
14978 error: *mut *mut glib::GError,
14979 ) -> gboolean;
14980 pub fn g_file_set_attribute_int64(
14981 file: *mut GFile,
14982 attribute: *const c_char,
14983 value: i64,
14984 flags: GFileQueryInfoFlags,
14985 cancellable: *mut GCancellable,
14986 error: *mut *mut glib::GError,
14987 ) -> gboolean;
14988 pub fn g_file_set_attribute_string(
14989 file: *mut GFile,
14990 attribute: *const c_char,
14991 value: *const c_char,
14992 flags: GFileQueryInfoFlags,
14993 cancellable: *mut GCancellable,
14994 error: *mut *mut glib::GError,
14995 ) -> gboolean;
14996 pub fn g_file_set_attribute_uint32(
14997 file: *mut GFile,
14998 attribute: *const c_char,
14999 value: u32,
15000 flags: GFileQueryInfoFlags,
15001 cancellable: *mut GCancellable,
15002 error: *mut *mut glib::GError,
15003 ) -> gboolean;
15004 pub fn g_file_set_attribute_uint64(
15005 file: *mut GFile,
15006 attribute: *const c_char,
15007 value: u64,
15008 flags: GFileQueryInfoFlags,
15009 cancellable: *mut GCancellable,
15010 error: *mut *mut glib::GError,
15011 ) -> gboolean;
15012 pub fn g_file_set_attributes_async(
15013 file: *mut GFile,
15014 info: *mut GFileInfo,
15015 flags: GFileQueryInfoFlags,
15016 io_priority: c_int,
15017 cancellable: *mut GCancellable,
15018 callback: GAsyncReadyCallback,
15019 user_data: gpointer,
15020 );
15021 pub fn g_file_set_attributes_finish(
15022 file: *mut GFile,
15023 result: *mut GAsyncResult,
15024 info: *mut *mut GFileInfo,
15025 error: *mut *mut glib::GError,
15026 ) -> gboolean;
15027 pub fn g_file_set_attributes_from_info(
15028 file: *mut GFile,
15029 info: *mut GFileInfo,
15030 flags: GFileQueryInfoFlags,
15031 cancellable: *mut GCancellable,
15032 error: *mut *mut glib::GError,
15033 ) -> gboolean;
15034 pub fn g_file_set_display_name(
15035 file: *mut GFile,
15036 display_name: *const c_char,
15037 cancellable: *mut GCancellable,
15038 error: *mut *mut glib::GError,
15039 ) -> *mut GFile;
15040 pub fn g_file_set_display_name_async(
15041 file: *mut GFile,
15042 display_name: *const c_char,
15043 io_priority: c_int,
15044 cancellable: *mut GCancellable,
15045 callback: GAsyncReadyCallback,
15046 user_data: gpointer,
15047 );
15048 pub fn g_file_set_display_name_finish(
15049 file: *mut GFile,
15050 res: *mut GAsyncResult,
15051 error: *mut *mut glib::GError,
15052 ) -> *mut GFile;
15053 pub fn g_file_start_mountable(
15054 file: *mut GFile,
15055 flags: GDriveStartFlags,
15056 start_operation: *mut GMountOperation,
15057 cancellable: *mut GCancellable,
15058 callback: GAsyncReadyCallback,
15059 user_data: gpointer,
15060 );
15061 pub fn g_file_start_mountable_finish(
15062 file: *mut GFile,
15063 result: *mut GAsyncResult,
15064 error: *mut *mut glib::GError,
15065 ) -> gboolean;
15066 pub fn g_file_stop_mountable(
15067 file: *mut GFile,
15068 flags: GMountUnmountFlags,
15069 mount_operation: *mut GMountOperation,
15070 cancellable: *mut GCancellable,
15071 callback: GAsyncReadyCallback,
15072 user_data: gpointer,
15073 );
15074 pub fn g_file_stop_mountable_finish(
15075 file: *mut GFile,
15076 result: *mut GAsyncResult,
15077 error: *mut *mut glib::GError,
15078 ) -> gboolean;
15079 pub fn g_file_supports_thread_contexts(file: *mut GFile) -> gboolean;
15080 pub fn g_file_trash(
15081 file: *mut GFile,
15082 cancellable: *mut GCancellable,
15083 error: *mut *mut glib::GError,
15084 ) -> gboolean;
15085 pub fn g_file_trash_async(
15086 file: *mut GFile,
15087 io_priority: c_int,
15088 cancellable: *mut GCancellable,
15089 callback: GAsyncReadyCallback,
15090 user_data: gpointer,
15091 );
15092 pub fn g_file_trash_finish(
15093 file: *mut GFile,
15094 result: *mut GAsyncResult,
15095 error: *mut *mut glib::GError,
15096 ) -> gboolean;
15097 pub fn g_file_unmount_mountable(
15098 file: *mut GFile,
15099 flags: GMountUnmountFlags,
15100 cancellable: *mut GCancellable,
15101 callback: GAsyncReadyCallback,
15102 user_data: gpointer,
15103 );
15104 pub fn g_file_unmount_mountable_finish(
15105 file: *mut GFile,
15106 result: *mut GAsyncResult,
15107 error: *mut *mut glib::GError,
15108 ) -> gboolean;
15109 pub fn g_file_unmount_mountable_with_operation(
15110 file: *mut GFile,
15111 flags: GMountUnmountFlags,
15112 mount_operation: *mut GMountOperation,
15113 cancellable: *mut GCancellable,
15114 callback: GAsyncReadyCallback,
15115 user_data: gpointer,
15116 );
15117 pub fn g_file_unmount_mountable_with_operation_finish(
15118 file: *mut GFile,
15119 result: *mut GAsyncResult,
15120 error: *mut *mut glib::GError,
15121 ) -> gboolean;
15122
15123 pub fn g_file_descriptor_based_get_type() -> GType;
15127 pub fn g_file_descriptor_based_get_fd(fd_based: *mut GFileDescriptorBased) -> c_int;
15128
15129 pub fn g_icon_get_type() -> GType;
15133 pub fn g_icon_deserialize(value: *mut glib::GVariant) -> *mut GIcon;
15134 pub fn g_icon_hash(icon: gconstpointer) -> c_uint;
15135 pub fn g_icon_new_for_string(str: *const c_char, error: *mut *mut glib::GError) -> *mut GIcon;
15136 pub fn g_icon_equal(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean;
15137 pub fn g_icon_serialize(icon: *mut GIcon) -> *mut glib::GVariant;
15138 pub fn g_icon_to_string(icon: *mut GIcon) -> *mut c_char;
15139
15140 pub fn g_initable_get_type() -> GType;
15144 pub fn g_initable_new(
15145 object_type: GType,
15146 cancellable: *mut GCancellable,
15147 error: *mut *mut glib::GError,
15148 first_property_name: *const c_char,
15149 ...
15150 ) -> *mut gobject::GObject;
15151 pub fn g_initable_newv(
15153 object_type: GType,
15154 n_parameters: c_uint,
15155 parameters: *mut gobject::GParameter,
15156 cancellable: *mut GCancellable,
15157 error: *mut *mut glib::GError,
15158 ) -> *mut gobject::GObject;
15159 pub fn g_initable_init(
15160 initable: *mut GInitable,
15161 cancellable: *mut GCancellable,
15162 error: *mut *mut glib::GError,
15163 ) -> gboolean;
15164
15165 pub fn g_list_model_get_type() -> GType;
15169 #[cfg(any(feature = "v2_44", feature = "dox"))]
15170 pub fn g_list_model_get_item(list: *mut GListModel, position: c_uint) -> gpointer;
15171 #[cfg(any(feature = "v2_44", feature = "dox"))]
15172 pub fn g_list_model_get_item_type(list: *mut GListModel) -> GType;
15173 #[cfg(any(feature = "v2_44", feature = "dox"))]
15174 pub fn g_list_model_get_n_items(list: *mut GListModel) -> c_uint;
15175 #[cfg(any(feature = "v2_44", feature = "dox"))]
15176 pub fn g_list_model_get_object(
15177 list: *mut GListModel,
15178 position: c_uint,
15179 ) -> *mut gobject::GObject;
15180 #[cfg(any(feature = "v2_44", feature = "dox"))]
15181 pub fn g_list_model_items_changed(
15182 list: *mut GListModel,
15183 position: c_uint,
15184 removed: c_uint,
15185 added: c_uint,
15186 );
15187
15188 pub fn g_loadable_icon_get_type() -> GType;
15192 pub fn g_loadable_icon_load(
15193 icon: *mut GLoadableIcon,
15194 size: c_int,
15195 type_: *mut *mut c_char,
15196 cancellable: *mut GCancellable,
15197 error: *mut *mut glib::GError,
15198 ) -> *mut GInputStream;
15199 pub fn g_loadable_icon_load_async(
15200 icon: *mut GLoadableIcon,
15201 size: c_int,
15202 cancellable: *mut GCancellable,
15203 callback: GAsyncReadyCallback,
15204 user_data: gpointer,
15205 );
15206 pub fn g_loadable_icon_load_finish(
15207 icon: *mut GLoadableIcon,
15208 res: *mut GAsyncResult,
15209 type_: *mut *mut c_char,
15210 error: *mut *mut glib::GError,
15211 ) -> *mut GInputStream;
15212
15213 pub fn g_mount_get_type() -> GType;
15217 pub fn g_mount_can_eject(mount: *mut GMount) -> gboolean;
15218 pub fn g_mount_can_unmount(mount: *mut GMount) -> gboolean;
15219 pub fn g_mount_eject(
15220 mount: *mut GMount,
15221 flags: GMountUnmountFlags,
15222 cancellable: *mut GCancellable,
15223 callback: GAsyncReadyCallback,
15224 user_data: gpointer,
15225 );
15226 pub fn g_mount_eject_finish(
15227 mount: *mut GMount,
15228 result: *mut GAsyncResult,
15229 error: *mut *mut glib::GError,
15230 ) -> gboolean;
15231 pub fn g_mount_eject_with_operation(
15232 mount: *mut GMount,
15233 flags: GMountUnmountFlags,
15234 mount_operation: *mut GMountOperation,
15235 cancellable: *mut GCancellable,
15236 callback: GAsyncReadyCallback,
15237 user_data: gpointer,
15238 );
15239 pub fn g_mount_eject_with_operation_finish(
15240 mount: *mut GMount,
15241 result: *mut GAsyncResult,
15242 error: *mut *mut glib::GError,
15243 ) -> gboolean;
15244 pub fn g_mount_get_default_location(mount: *mut GMount) -> *mut GFile;
15245 pub fn g_mount_get_drive(mount: *mut GMount) -> *mut GDrive;
15246 pub fn g_mount_get_icon(mount: *mut GMount) -> *mut GIcon;
15247 pub fn g_mount_get_name(mount: *mut GMount) -> *mut c_char;
15248 pub fn g_mount_get_root(mount: *mut GMount) -> *mut GFile;
15249 pub fn g_mount_get_sort_key(mount: *mut GMount) -> *const c_char;
15250 pub fn g_mount_get_symbolic_icon(mount: *mut GMount) -> *mut GIcon;
15251 pub fn g_mount_get_uuid(mount: *mut GMount) -> *mut c_char;
15252 pub fn g_mount_get_volume(mount: *mut GMount) -> *mut GVolume;
15253 pub fn g_mount_guess_content_type(
15254 mount: *mut GMount,
15255 force_rescan: gboolean,
15256 cancellable: *mut GCancellable,
15257 callback: GAsyncReadyCallback,
15258 user_data: gpointer,
15259 );
15260 pub fn g_mount_guess_content_type_finish(
15261 mount: *mut GMount,
15262 result: *mut GAsyncResult,
15263 error: *mut *mut glib::GError,
15264 ) -> *mut *mut c_char;
15265 pub fn g_mount_guess_content_type_sync(
15266 mount: *mut GMount,
15267 force_rescan: gboolean,
15268 cancellable: *mut GCancellable,
15269 error: *mut *mut glib::GError,
15270 ) -> *mut *mut c_char;
15271 pub fn g_mount_is_shadowed(mount: *mut GMount) -> gboolean;
15272 pub fn g_mount_remount(
15273 mount: *mut GMount,
15274 flags: GMountMountFlags,
15275 mount_operation: *mut GMountOperation,
15276 cancellable: *mut GCancellable,
15277 callback: GAsyncReadyCallback,
15278 user_data: gpointer,
15279 );
15280 pub fn g_mount_remount_finish(
15281 mount: *mut GMount,
15282 result: *mut GAsyncResult,
15283 error: *mut *mut glib::GError,
15284 ) -> gboolean;
15285 pub fn g_mount_shadow(mount: *mut GMount);
15286 pub fn g_mount_unmount(
15287 mount: *mut GMount,
15288 flags: GMountUnmountFlags,
15289 cancellable: *mut GCancellable,
15290 callback: GAsyncReadyCallback,
15291 user_data: gpointer,
15292 );
15293 pub fn g_mount_unmount_finish(
15294 mount: *mut GMount,
15295 result: *mut GAsyncResult,
15296 error: *mut *mut glib::GError,
15297 ) -> gboolean;
15298 pub fn g_mount_unmount_with_operation(
15299 mount: *mut GMount,
15300 flags: GMountUnmountFlags,
15301 mount_operation: *mut GMountOperation,
15302 cancellable: *mut GCancellable,
15303 callback: GAsyncReadyCallback,
15304 user_data: gpointer,
15305 );
15306 pub fn g_mount_unmount_with_operation_finish(
15307 mount: *mut GMount,
15308 result: *mut GAsyncResult,
15309 error: *mut *mut glib::GError,
15310 ) -> gboolean;
15311 pub fn g_mount_unshadow(mount: *mut GMount);
15312
15313 pub fn g_network_monitor_get_type() -> GType;
15317 pub fn g_network_monitor_get_default() -> *mut GNetworkMonitor;
15318 pub fn g_network_monitor_can_reach(
15319 monitor: *mut GNetworkMonitor,
15320 connectable: *mut GSocketConnectable,
15321 cancellable: *mut GCancellable,
15322 error: *mut *mut glib::GError,
15323 ) -> gboolean;
15324 pub fn g_network_monitor_can_reach_async(
15325 monitor: *mut GNetworkMonitor,
15326 connectable: *mut GSocketConnectable,
15327 cancellable: *mut GCancellable,
15328 callback: GAsyncReadyCallback,
15329 user_data: gpointer,
15330 );
15331 pub fn g_network_monitor_can_reach_finish(
15332 monitor: *mut GNetworkMonitor,
15333 result: *mut GAsyncResult,
15334 error: *mut *mut glib::GError,
15335 ) -> gboolean;
15336 #[cfg(any(feature = "v2_44", feature = "dox"))]
15337 pub fn g_network_monitor_get_connectivity(
15338 monitor: *mut GNetworkMonitor,
15339 ) -> GNetworkConnectivity;
15340 pub fn g_network_monitor_get_network_available(monitor: *mut GNetworkMonitor) -> gboolean;
15341 #[cfg(any(feature = "v2_46", feature = "dox"))]
15342 pub fn g_network_monitor_get_network_metered(monitor: *mut GNetworkMonitor) -> gboolean;
15343
15344 pub fn g_pollable_input_stream_get_type() -> GType;
15348 pub fn g_pollable_input_stream_can_poll(stream: *mut GPollableInputStream) -> gboolean;
15349 pub fn g_pollable_input_stream_create_source(
15350 stream: *mut GPollableInputStream,
15351 cancellable: *mut GCancellable,
15352 ) -> *mut glib::GSource;
15353 pub fn g_pollable_input_stream_is_readable(stream: *mut GPollableInputStream) -> gboolean;
15354 pub fn g_pollable_input_stream_read_nonblocking(
15355 stream: *mut GPollableInputStream,
15356 buffer: *mut u8,
15357 count: size_t,
15358 cancellable: *mut GCancellable,
15359 error: *mut *mut glib::GError,
15360 ) -> ssize_t;
15361
15362 pub fn g_pollable_output_stream_get_type() -> GType;
15366 pub fn g_pollable_output_stream_can_poll(stream: *mut GPollableOutputStream) -> gboolean;
15367 pub fn g_pollable_output_stream_create_source(
15368 stream: *mut GPollableOutputStream,
15369 cancellable: *mut GCancellable,
15370 ) -> *mut glib::GSource;
15371 pub fn g_pollable_output_stream_is_writable(stream: *mut GPollableOutputStream) -> gboolean;
15372 pub fn g_pollable_output_stream_write_nonblocking(
15373 stream: *mut GPollableOutputStream,
15374 buffer: *mut u8,
15375 count: size_t,
15376 cancellable: *mut GCancellable,
15377 error: *mut *mut glib::GError,
15378 ) -> ssize_t;
15379
15380 pub fn g_proxy_get_type() -> GType;
15384 pub fn g_proxy_get_default_for_protocol(protocol: *const c_char) -> *mut GProxy;
15385 pub fn g_proxy_connect(
15386 proxy: *mut GProxy,
15387 connection: *mut GIOStream,
15388 proxy_address: *mut GProxyAddress,
15389 cancellable: *mut GCancellable,
15390 error: *mut *mut glib::GError,
15391 ) -> *mut GIOStream;
15392 pub fn g_proxy_connect_async(
15393 proxy: *mut GProxy,
15394 connection: *mut GIOStream,
15395 proxy_address: *mut GProxyAddress,
15396 cancellable: *mut GCancellable,
15397 callback: GAsyncReadyCallback,
15398 user_data: gpointer,
15399 );
15400 pub fn g_proxy_connect_finish(
15401 proxy: *mut GProxy,
15402 result: *mut GAsyncResult,
15403 error: *mut *mut glib::GError,
15404 ) -> *mut GIOStream;
15405 pub fn g_proxy_supports_hostname(proxy: *mut GProxy) -> gboolean;
15406
15407 pub fn g_proxy_resolver_get_type() -> GType;
15411 pub fn g_proxy_resolver_get_default() -> *mut GProxyResolver;
15412 pub fn g_proxy_resolver_is_supported(resolver: *mut GProxyResolver) -> gboolean;
15413 pub fn g_proxy_resolver_lookup(
15414 resolver: *mut GProxyResolver,
15415 uri: *const c_char,
15416 cancellable: *mut GCancellable,
15417 error: *mut *mut glib::GError,
15418 ) -> *mut *mut c_char;
15419 pub fn g_proxy_resolver_lookup_async(
15420 resolver: *mut GProxyResolver,
15421 uri: *const c_char,
15422 cancellable: *mut GCancellable,
15423 callback: GAsyncReadyCallback,
15424 user_data: gpointer,
15425 );
15426 pub fn g_proxy_resolver_lookup_finish(
15427 resolver: *mut GProxyResolver,
15428 result: *mut GAsyncResult,
15429 error: *mut *mut glib::GError,
15430 ) -> *mut *mut c_char;
15431
15432 pub fn g_remote_action_group_get_type() -> GType;
15436 pub fn g_remote_action_group_activate_action_full(
15437 remote: *mut GRemoteActionGroup,
15438 action_name: *const c_char,
15439 parameter: *mut glib::GVariant,
15440 platform_data: *mut glib::GVariant,
15441 );
15442 pub fn g_remote_action_group_change_action_state_full(
15443 remote: *mut GRemoteActionGroup,
15444 action_name: *const c_char,
15445 value: *mut glib::GVariant,
15446 platform_data: *mut glib::GVariant,
15447 );
15448
15449 pub fn g_seekable_get_type() -> GType;
15453 pub fn g_seekable_can_seek(seekable: *mut GSeekable) -> gboolean;
15454 pub fn g_seekable_can_truncate(seekable: *mut GSeekable) -> gboolean;
15455 pub fn g_seekable_seek(
15456 seekable: *mut GSeekable,
15457 offset: i64,
15458 type_: glib::GSeekType,
15459 cancellable: *mut GCancellable,
15460 error: *mut *mut glib::GError,
15461 ) -> gboolean;
15462 pub fn g_seekable_tell(seekable: *mut GSeekable) -> i64;
15463 pub fn g_seekable_truncate(
15464 seekable: *mut GSeekable,
15465 offset: i64,
15466 cancellable: *mut GCancellable,
15467 error: *mut *mut glib::GError,
15468 ) -> gboolean;
15469
15470 pub fn g_socket_connectable_get_type() -> GType;
15474 pub fn g_socket_connectable_enumerate(
15475 connectable: *mut GSocketConnectable,
15476 ) -> *mut GSocketAddressEnumerator;
15477 pub fn g_socket_connectable_proxy_enumerate(
15478 connectable: *mut GSocketConnectable,
15479 ) -> *mut GSocketAddressEnumerator;
15480 #[cfg(any(feature = "v2_48", feature = "dox"))]
15481 pub fn g_socket_connectable_to_string(connectable: *mut GSocketConnectable) -> *mut c_char;
15482
15483 pub fn g_tls_backend_get_type() -> GType;
15487 pub fn g_tls_backend_get_default() -> *mut GTlsBackend;
15488 pub fn g_tls_backend_get_certificate_type(backend: *mut GTlsBackend) -> GType;
15489 pub fn g_tls_backend_get_client_connection_type(backend: *mut GTlsBackend) -> GType;
15490 pub fn g_tls_backend_get_default_database(backend: *mut GTlsBackend) -> *mut GTlsDatabase;
15491 #[cfg(any(feature = "v2_48", feature = "dox"))]
15492 pub fn g_tls_backend_get_dtls_client_connection_type(backend: *mut GTlsBackend) -> GType;
15493 #[cfg(any(feature = "v2_48", feature = "dox"))]
15494 pub fn g_tls_backend_get_dtls_server_connection_type(backend: *mut GTlsBackend) -> GType;
15495 pub fn g_tls_backend_get_file_database_type(backend: *mut GTlsBackend) -> GType;
15496 pub fn g_tls_backend_get_server_connection_type(backend: *mut GTlsBackend) -> GType;
15497 #[cfg(any(feature = "v2_48", feature = "dox"))]
15498 pub fn g_tls_backend_supports_dtls(backend: *mut GTlsBackend) -> gboolean;
15499 pub fn g_tls_backend_supports_tls(backend: *mut GTlsBackend) -> gboolean;
15500
15501 pub fn g_tls_client_connection_get_type() -> GType;
15505 pub fn g_tls_client_connection_new(
15506 base_io_stream: *mut GIOStream,
15507 server_identity: *mut GSocketConnectable,
15508 error: *mut *mut glib::GError,
15509 ) -> *mut GTlsClientConnection;
15510 #[cfg(any(feature = "v2_46", feature = "dox"))]
15511 pub fn g_tls_client_connection_copy_session_state(
15512 conn: *mut GTlsClientConnection,
15513 source: *mut GTlsClientConnection,
15514 );
15515 pub fn g_tls_client_connection_get_accepted_cas(
15516 conn: *mut GTlsClientConnection,
15517 ) -> *mut glib::GList;
15518 pub fn g_tls_client_connection_get_server_identity(
15519 conn: *mut GTlsClientConnection,
15520 ) -> *mut GSocketConnectable;
15521 pub fn g_tls_client_connection_get_use_ssl3(conn: *mut GTlsClientConnection) -> gboolean;
15522 pub fn g_tls_client_connection_get_validation_flags(
15523 conn: *mut GTlsClientConnection,
15524 ) -> GTlsCertificateFlags;
15525 pub fn g_tls_client_connection_set_server_identity(
15526 conn: *mut GTlsClientConnection,
15527 identity: *mut GSocketConnectable,
15528 );
15529 pub fn g_tls_client_connection_set_use_ssl3(
15530 conn: *mut GTlsClientConnection,
15531 use_ssl3: gboolean,
15532 );
15533 pub fn g_tls_client_connection_set_validation_flags(
15534 conn: *mut GTlsClientConnection,
15535 flags: GTlsCertificateFlags,
15536 );
15537
15538 pub fn g_tls_file_database_get_type() -> GType;
15542 pub fn g_tls_file_database_new(
15543 anchors: *const c_char,
15544 error: *mut *mut glib::GError,
15545 ) -> *mut GTlsFileDatabase;
15546
15547 pub fn g_tls_server_connection_get_type() -> GType;
15551 pub fn g_tls_server_connection_new(
15552 base_io_stream: *mut GIOStream,
15553 certificate: *mut GTlsCertificate,
15554 error: *mut *mut glib::GError,
15555 ) -> *mut GTlsServerConnection;
15556
15557 pub fn g_volume_get_type() -> GType;
15561 pub fn g_volume_can_eject(volume: *mut GVolume) -> gboolean;
15562 pub fn g_volume_can_mount(volume: *mut GVolume) -> gboolean;
15563 pub fn g_volume_eject(
15564 volume: *mut GVolume,
15565 flags: GMountUnmountFlags,
15566 cancellable: *mut GCancellable,
15567 callback: GAsyncReadyCallback,
15568 user_data: gpointer,
15569 );
15570 pub fn g_volume_eject_finish(
15571 volume: *mut GVolume,
15572 result: *mut GAsyncResult,
15573 error: *mut *mut glib::GError,
15574 ) -> gboolean;
15575 pub fn g_volume_eject_with_operation(
15576 volume: *mut GVolume,
15577 flags: GMountUnmountFlags,
15578 mount_operation: *mut GMountOperation,
15579 cancellable: *mut GCancellable,
15580 callback: GAsyncReadyCallback,
15581 user_data: gpointer,
15582 );
15583 pub fn g_volume_eject_with_operation_finish(
15584 volume: *mut GVolume,
15585 result: *mut GAsyncResult,
15586 error: *mut *mut glib::GError,
15587 ) -> gboolean;
15588 pub fn g_volume_enumerate_identifiers(volume: *mut GVolume) -> *mut *mut c_char;
15589 pub fn g_volume_get_activation_root(volume: *mut GVolume) -> *mut GFile;
15590 pub fn g_volume_get_drive(volume: *mut GVolume) -> *mut GDrive;
15591 pub fn g_volume_get_icon(volume: *mut GVolume) -> *mut GIcon;
15592 pub fn g_volume_get_identifier(volume: *mut GVolume, kind: *const c_char) -> *mut c_char;
15593 pub fn g_volume_get_mount(volume: *mut GVolume) -> *mut GMount;
15594 pub fn g_volume_get_name(volume: *mut GVolume) -> *mut c_char;
15595 pub fn g_volume_get_sort_key(volume: *mut GVolume) -> *const c_char;
15596 pub fn g_volume_get_symbolic_icon(volume: *mut GVolume) -> *mut GIcon;
15597 pub fn g_volume_get_uuid(volume: *mut GVolume) -> *mut c_char;
15598 pub fn g_volume_mount(
15599 volume: *mut GVolume,
15600 flags: GMountMountFlags,
15601 mount_operation: *mut GMountOperation,
15602 cancellable: *mut GCancellable,
15603 callback: GAsyncReadyCallback,
15604 user_data: gpointer,
15605 );
15606 pub fn g_volume_mount_finish(
15607 volume: *mut GVolume,
15608 result: *mut GAsyncResult,
15609 error: *mut *mut glib::GError,
15610 ) -> gboolean;
15611 pub fn g_volume_should_automount(volume: *mut GVolume) -> gboolean;
15612
15613 pub fn g_bus_get(
15617 bus_type: GBusType,
15618 cancellable: *mut GCancellable,
15619 callback: GAsyncReadyCallback,
15620 user_data: gpointer,
15621 );
15622 pub fn g_bus_get_finish(
15623 res: *mut GAsyncResult,
15624 error: *mut *mut glib::GError,
15625 ) -> *mut GDBusConnection;
15626 pub fn g_bus_get_sync(
15627 bus_type: GBusType,
15628 cancellable: *mut GCancellable,
15629 error: *mut *mut glib::GError,
15630 ) -> *mut GDBusConnection;
15631 pub fn g_bus_own_name(
15632 bus_type: GBusType,
15633 name: *const c_char,
15634 flags: GBusNameOwnerFlags,
15635 bus_acquired_handler: GBusAcquiredCallback,
15636 name_acquired_handler: GBusNameAcquiredCallback,
15637 name_lost_handler: GBusNameLostCallback,
15638 user_data: gpointer,
15639 user_data_free_func: glib::GDestroyNotify,
15640 ) -> c_uint;
15641 pub fn g_bus_own_name_on_connection(
15642 connection: *mut GDBusConnection,
15643 name: *const c_char,
15644 flags: GBusNameOwnerFlags,
15645 name_acquired_handler: GBusNameAcquiredCallback,
15646 name_lost_handler: GBusNameLostCallback,
15647 user_data: gpointer,
15648 user_data_free_func: glib::GDestroyNotify,
15649 ) -> c_uint;
15650 pub fn g_bus_own_name_on_connection_with_closures(
15651 connection: *mut GDBusConnection,
15652 name: *const c_char,
15653 flags: GBusNameOwnerFlags,
15654 name_acquired_closure: *mut gobject::GClosure,
15655 name_lost_closure: *mut gobject::GClosure,
15656 ) -> c_uint;
15657 pub fn g_bus_own_name_with_closures(
15658 bus_type: GBusType,
15659 name: *const c_char,
15660 flags: GBusNameOwnerFlags,
15661 bus_acquired_closure: *mut gobject::GClosure,
15662 name_acquired_closure: *mut gobject::GClosure,
15663 name_lost_closure: *mut gobject::GClosure,
15664 ) -> c_uint;
15665 pub fn g_bus_unown_name(owner_id: c_uint);
15666 pub fn g_bus_unwatch_name(watcher_id: c_uint);
15667 pub fn g_bus_watch_name(
15668 bus_type: GBusType,
15669 name: *const c_char,
15670 flags: GBusNameWatcherFlags,
15671 name_appeared_handler: GBusNameAppearedCallback,
15672 name_vanished_handler: GBusNameVanishedCallback,
15673 user_data: gpointer,
15674 user_data_free_func: glib::GDestroyNotify,
15675 ) -> c_uint;
15676 pub fn g_bus_watch_name_on_connection(
15677 connection: *mut GDBusConnection,
15678 name: *const c_char,
15679 flags: GBusNameWatcherFlags,
15680 name_appeared_handler: GBusNameAppearedCallback,
15681 name_vanished_handler: GBusNameVanishedCallback,
15682 user_data: gpointer,
15683 user_data_free_func: glib::GDestroyNotify,
15684 ) -> c_uint;
15685 pub fn g_bus_watch_name_on_connection_with_closures(
15686 connection: *mut GDBusConnection,
15687 name: *const c_char,
15688 flags: GBusNameWatcherFlags,
15689 name_appeared_closure: *mut gobject::GClosure,
15690 name_vanished_closure: *mut gobject::GClosure,
15691 ) -> c_uint;
15692 pub fn g_bus_watch_name_with_closures(
15693 bus_type: GBusType,
15694 name: *const c_char,
15695 flags: GBusNameWatcherFlags,
15696 name_appeared_closure: *mut gobject::GClosure,
15697 name_vanished_closure: *mut gobject::GClosure,
15698 ) -> c_uint;
15699 pub fn g_content_type_can_be_executable(type_: *const c_char) -> gboolean;
15700 pub fn g_content_type_equals(type1: *const c_char, type2: *const c_char) -> gboolean;
15701 pub fn g_content_type_from_mime_type(mime_type: *const c_char) -> *mut c_char;
15702 pub fn g_content_type_get_description(type_: *const c_char) -> *mut c_char;
15703 pub fn g_content_type_get_generic_icon_name(type_: *const c_char) -> *mut c_char;
15704 pub fn g_content_type_get_icon(type_: *const c_char) -> *mut GIcon;
15705 pub fn g_content_type_get_mime_type(type_: *const c_char) -> *mut c_char;
15706 pub fn g_content_type_get_symbolic_icon(type_: *const c_char) -> *mut GIcon;
15707 pub fn g_content_type_guess(
15708 filename: *const c_char,
15709 data: *const u8,
15710 data_size: size_t,
15711 result_uncertain: *mut gboolean,
15712 ) -> *mut c_char;
15713 pub fn g_content_type_guess_for_tree(root: *mut GFile) -> *mut *mut c_char;
15714 pub fn g_content_type_is_a(type_: *const c_char, supertype: *const c_char) -> gboolean;
15715 #[cfg(any(feature = "v2_52", feature = "dox"))]
15716 pub fn g_content_type_is_mime_type(type_: *const c_char, mime_type: *const c_char) -> gboolean;
15717 pub fn g_content_type_is_unknown(type_: *const c_char) -> gboolean;
15718 pub fn g_content_types_get_registered() -> *mut glib::GList;
15719 pub fn g_dbus_address_escape_value(string: *const c_char) -> *mut c_char;
15720 pub fn g_dbus_address_get_for_bus_sync(
15721 bus_type: GBusType,
15722 cancellable: *mut GCancellable,
15723 error: *mut *mut glib::GError,
15724 ) -> *mut c_char;
15725 pub fn g_dbus_address_get_stream(
15726 address: *const c_char,
15727 cancellable: *mut GCancellable,
15728 callback: GAsyncReadyCallback,
15729 user_data: gpointer,
15730 );
15731 pub fn g_dbus_address_get_stream_finish(
15732 res: *mut GAsyncResult,
15733 out_guid: *mut *mut c_char,
15734 error: *mut *mut glib::GError,
15735 ) -> *mut GIOStream;
15736 pub fn g_dbus_address_get_stream_sync(
15737 address: *const c_char,
15738 out_guid: *mut *mut c_char,
15739 cancellable: *mut GCancellable,
15740 error: *mut *mut glib::GError,
15741 ) -> *mut GIOStream;
15742 pub fn g_dbus_generate_guid() -> *mut c_char;
15743 pub fn g_dbus_gvalue_to_gvariant(
15744 gvalue: *const gobject::GValue,
15745 type_: *const glib::GVariantType,
15746 ) -> *mut glib::GVariant;
15747 pub fn g_dbus_gvariant_to_gvalue(value: *mut glib::GVariant, out_gvalue: *mut gobject::GValue);
15748 pub fn g_dbus_is_address(string: *const c_char) -> gboolean;
15749 pub fn g_dbus_is_guid(string: *const c_char) -> gboolean;
15750 pub fn g_dbus_is_interface_name(string: *const c_char) -> gboolean;
15751 pub fn g_dbus_is_member_name(string: *const c_char) -> gboolean;
15752 pub fn g_dbus_is_name(string: *const c_char) -> gboolean;
15753 pub fn g_dbus_is_supported_address(
15754 string: *const c_char,
15755 error: *mut *mut glib::GError,
15756 ) -> gboolean;
15757 pub fn g_dbus_is_unique_name(string: *const c_char) -> gboolean;
15758 pub fn g_io_error_from_errno(err_no: c_int) -> GIOErrorEnum;
15759 pub fn g_io_error_quark() -> glib::GQuark;
15760 pub fn g_io_modules_load_all_in_directory(dirname: *const c_char) -> *mut glib::GList;
15761 pub fn g_io_modules_load_all_in_directory_with_scope(
15762 dirname: *const c_char,
15763 scope: *mut GIOModuleScope,
15764 ) -> *mut glib::GList;
15765 pub fn g_io_modules_scan_all_in_directory(dirname: *const c_char);
15766 pub fn g_io_modules_scan_all_in_directory_with_scope(
15767 dirname: *const c_char,
15768 scope: *mut GIOModuleScope,
15769 );
15770 pub fn g_io_scheduler_cancel_all_jobs();
15771 pub fn g_io_scheduler_push_job(
15772 job_func: GIOSchedulerJobFunc,
15773 user_data: gpointer,
15774 notify: glib::GDestroyNotify,
15775 io_priority: c_int,
15776 cancellable: *mut GCancellable,
15777 );
15778 pub fn g_keyfile_settings_backend_new(
15779 filename: *const c_char,
15780 root_path: *const c_char,
15781 root_group: *const c_char,
15782 ) -> *mut GSettingsBackend;
15783 pub fn g_memory_settings_backend_new() -> *mut GSettingsBackend;
15784 pub fn g_networking_init();
15785 pub fn g_null_settings_backend_new() -> *mut GSettingsBackend;
15786 pub fn g_pollable_source_new(pollable_stream: *mut gobject::GObject) -> *mut glib::GSource;
15787 pub fn g_pollable_source_new_full(
15788 pollable_stream: *mut gobject::GObject,
15789 child_source: *mut glib::GSource,
15790 cancellable: *mut GCancellable,
15791 ) -> *mut glib::GSource;
15792 pub fn g_pollable_stream_read(
15793 stream: *mut GInputStream,
15794 buffer: *mut u8,
15795 count: size_t,
15796 blocking: gboolean,
15797 cancellable: *mut GCancellable,
15798 error: *mut *mut glib::GError,
15799 ) -> ssize_t;
15800 pub fn g_pollable_stream_write(
15801 stream: *mut GOutputStream,
15802 buffer: *mut u8,
15803 count: size_t,
15804 blocking: gboolean,
15805 cancellable: *mut GCancellable,
15806 error: *mut *mut glib::GError,
15807 ) -> ssize_t;
15808 pub fn g_pollable_stream_write_all(
15809 stream: *mut GOutputStream,
15810 buffer: *mut u8,
15811 count: size_t,
15812 blocking: gboolean,
15813 bytes_written: *mut size_t,
15814 cancellable: *mut GCancellable,
15815 error: *mut *mut glib::GError,
15816 ) -> gboolean;
15817 pub fn g_resources_enumerate_children(
15818 path: *const c_char,
15819 lookup_flags: GResourceLookupFlags,
15820 error: *mut *mut glib::GError,
15821 ) -> *mut *mut c_char;
15822 pub fn g_resources_get_info(
15823 path: *const c_char,
15824 lookup_flags: GResourceLookupFlags,
15825 size: *mut size_t,
15826 flags: *mut u32,
15827 error: *mut *mut glib::GError,
15828 ) -> gboolean;
15829 pub fn g_resources_lookup_data(
15830 path: *const c_char,
15831 lookup_flags: GResourceLookupFlags,
15832 error: *mut *mut glib::GError,
15833 ) -> *mut glib::GBytes;
15834 pub fn g_resources_open_stream(
15835 path: *const c_char,
15836 lookup_flags: GResourceLookupFlags,
15837 error: *mut *mut glib::GError,
15838 ) -> *mut GInputStream;
15839 pub fn g_resources_register(resource: *mut GResource);
15840 pub fn g_resources_unregister(resource: *mut GResource);
15841 pub fn g_simple_async_report_error_in_idle(
15842 object: *mut gobject::GObject,
15843 callback: GAsyncReadyCallback,
15844 user_data: gpointer,
15845 domain: glib::GQuark,
15846 code: c_int,
15847 format: *const c_char,
15848 ...
15849 );
15850 pub fn g_simple_async_report_gerror_in_idle(
15851 object: *mut gobject::GObject,
15852 callback: GAsyncReadyCallback,
15853 user_data: gpointer,
15854 error: *const glib::GError,
15855 );
15856 pub fn g_simple_async_report_take_gerror_in_idle(
15857 object: *mut gobject::GObject,
15858 callback: GAsyncReadyCallback,
15859 user_data: gpointer,
15860 error: *mut glib::GError,
15861 );
15862 pub fn g_unix_is_mount_path_system_internal(mount_path: *const c_char) -> gboolean;
15863 #[cfg(any(feature = "v2_56", feature = "dox"))]
15864 pub fn g_unix_is_system_device_path(device_path: *const c_char) -> gboolean;
15865 #[cfg(any(feature = "v2_56", feature = "dox"))]
15866 pub fn g_unix_is_system_fs_type(fs_type: *const c_char) -> gboolean;
15867 pub fn g_unix_mount_at(mount_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
15868 pub fn g_unix_mount_compare(
15869 mount1: *mut GUnixMountEntry,
15870 mount2: *mut GUnixMountEntry,
15871 ) -> c_int;
15872 #[cfg(any(feature = "v2_54", feature = "dox"))]
15873 pub fn g_unix_mount_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
15874 #[cfg(any(feature = "v2_52", feature = "dox"))]
15875 pub fn g_unix_mount_for(file_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
15876 pub fn g_unix_mount_free(mount_entry: *mut GUnixMountEntry);
15877 pub fn g_unix_mount_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
15878 pub fn g_unix_mount_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char;
15879 pub fn g_unix_mount_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
15880 #[cfg(any(feature = "v2_58", feature = "dox"))]
15881 pub fn g_unix_mount_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char;
15882 pub fn g_unix_mount_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean;
15883 pub fn g_unix_mount_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
15884 pub fn g_unix_mount_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char;
15885 pub fn g_unix_mount_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean;
15886 pub fn g_unix_mount_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
15887 pub fn g_unix_mount_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean;
15888 pub fn g_unix_mount_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean;
15889 pub fn g_unix_mount_points_changed_since(time: u64) -> gboolean;
15890 pub fn g_unix_mount_points_get(time_read: *mut u64) -> *mut glib::GList;
15891 pub fn g_unix_mounts_changed_since(time: u64) -> gboolean;
15892 pub fn g_unix_mounts_get(time_read: *mut u64) -> *mut glib::GList;
15893
15894}