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 clippy::upper_case_acronyms
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14use glib_sys as glib;
15use gobject_sys as gobject;
16
17mod manual;
18
19pub use manual::*;
20
21#[cfg(unix)]
22#[allow(unused_imports)]
23use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
24#[allow(unused_imports)]
25use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE};
26#[allow(unused_imports)]
27use std::ffi::{
28 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
29};
30
31#[allow(unused_imports)]
32use glib::{gboolean, gconstpointer, gpointer, GType};
33
34pub type GBusType = c_int;
36pub const G_BUS_TYPE_STARTER: GBusType = -1;
37pub const G_BUS_TYPE_NONE: GBusType = 0;
38pub const G_BUS_TYPE_SYSTEM: GBusType = 1;
39pub const G_BUS_TYPE_SESSION: GBusType = 2;
40
41pub type GConverterResult = c_int;
42pub const G_CONVERTER_ERROR: GConverterResult = 0;
43pub const G_CONVERTER_CONVERTED: GConverterResult = 1;
44pub const G_CONVERTER_FINISHED: GConverterResult = 2;
45pub const G_CONVERTER_FLUSHED: GConverterResult = 3;
46
47pub type GCredentialsType = c_int;
48pub const G_CREDENTIALS_TYPE_INVALID: GCredentialsType = 0;
49pub const G_CREDENTIALS_TYPE_LINUX_UCRED: GCredentialsType = 1;
50pub const G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: GCredentialsType = 2;
51pub const G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: GCredentialsType = 3;
52pub const G_CREDENTIALS_TYPE_SOLARIS_UCRED: GCredentialsType = 4;
53pub const G_CREDENTIALS_TYPE_NETBSD_UNPCBID: GCredentialsType = 5;
54pub const G_CREDENTIALS_TYPE_APPLE_XUCRED: GCredentialsType = 6;
55pub const G_CREDENTIALS_TYPE_WIN32_PID: GCredentialsType = 7;
56
57pub type GDBusError = c_int;
58pub const G_DBUS_ERROR_FAILED: GDBusError = 0;
59pub const G_DBUS_ERROR_NO_MEMORY: GDBusError = 1;
60pub const G_DBUS_ERROR_SERVICE_UNKNOWN: GDBusError = 2;
61pub const G_DBUS_ERROR_NAME_HAS_NO_OWNER: GDBusError = 3;
62pub const G_DBUS_ERROR_NO_REPLY: GDBusError = 4;
63pub const G_DBUS_ERROR_IO_ERROR: GDBusError = 5;
64pub const G_DBUS_ERROR_BAD_ADDRESS: GDBusError = 6;
65pub const G_DBUS_ERROR_NOT_SUPPORTED: GDBusError = 7;
66pub const G_DBUS_ERROR_LIMITS_EXCEEDED: GDBusError = 8;
67pub const G_DBUS_ERROR_ACCESS_DENIED: GDBusError = 9;
68pub const G_DBUS_ERROR_AUTH_FAILED: GDBusError = 10;
69pub const G_DBUS_ERROR_NO_SERVER: GDBusError = 11;
70pub const G_DBUS_ERROR_TIMEOUT: GDBusError = 12;
71pub const G_DBUS_ERROR_NO_NETWORK: GDBusError = 13;
72pub const G_DBUS_ERROR_ADDRESS_IN_USE: GDBusError = 14;
73pub const G_DBUS_ERROR_DISCONNECTED: GDBusError = 15;
74pub const G_DBUS_ERROR_INVALID_ARGS: GDBusError = 16;
75pub const G_DBUS_ERROR_FILE_NOT_FOUND: GDBusError = 17;
76pub const G_DBUS_ERROR_FILE_EXISTS: GDBusError = 18;
77pub const G_DBUS_ERROR_UNKNOWN_METHOD: GDBusError = 19;
78pub const G_DBUS_ERROR_TIMED_OUT: GDBusError = 20;
79pub const G_DBUS_ERROR_MATCH_RULE_NOT_FOUND: GDBusError = 21;
80pub const G_DBUS_ERROR_MATCH_RULE_INVALID: GDBusError = 22;
81pub const G_DBUS_ERROR_SPAWN_EXEC_FAILED: GDBusError = 23;
82pub const G_DBUS_ERROR_SPAWN_FORK_FAILED: GDBusError = 24;
83pub const G_DBUS_ERROR_SPAWN_CHILD_EXITED: GDBusError = 25;
84pub const G_DBUS_ERROR_SPAWN_CHILD_SIGNALED: GDBusError = 26;
85pub const G_DBUS_ERROR_SPAWN_FAILED: GDBusError = 27;
86pub const G_DBUS_ERROR_SPAWN_SETUP_FAILED: GDBusError = 28;
87pub const G_DBUS_ERROR_SPAWN_CONFIG_INVALID: GDBusError = 29;
88pub const G_DBUS_ERROR_SPAWN_SERVICE_INVALID: GDBusError = 30;
89pub const G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND: GDBusError = 31;
90pub const G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID: GDBusError = 32;
91pub const G_DBUS_ERROR_SPAWN_FILE_INVALID: GDBusError = 33;
92pub const G_DBUS_ERROR_SPAWN_NO_MEMORY: GDBusError = 34;
93pub const G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN: GDBusError = 35;
94pub const G_DBUS_ERROR_INVALID_SIGNATURE: GDBusError = 36;
95pub const G_DBUS_ERROR_INVALID_FILE_CONTENT: GDBusError = 37;
96pub const G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN: GDBusError = 38;
97pub const G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN: GDBusError = 39;
98pub const G_DBUS_ERROR_OBJECT_PATH_IN_USE: GDBusError = 40;
99pub const G_DBUS_ERROR_UNKNOWN_OBJECT: GDBusError = 41;
100pub const G_DBUS_ERROR_UNKNOWN_INTERFACE: GDBusError = 42;
101pub const G_DBUS_ERROR_UNKNOWN_PROPERTY: GDBusError = 43;
102pub const G_DBUS_ERROR_PROPERTY_READ_ONLY: GDBusError = 44;
103
104pub type GDBusMessageByteOrder = c_int;
105pub const G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: GDBusMessageByteOrder = 66;
106pub const G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: GDBusMessageByteOrder = 108;
107
108pub type GDBusMessageHeaderField = c_int;
109pub const G_DBUS_MESSAGE_HEADER_FIELD_INVALID: GDBusMessageHeaderField = 0;
110pub const G_DBUS_MESSAGE_HEADER_FIELD_PATH: GDBusMessageHeaderField = 1;
111pub const G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: GDBusMessageHeaderField = 2;
112pub const G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: GDBusMessageHeaderField = 3;
113pub const G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: GDBusMessageHeaderField = 4;
114pub const G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: GDBusMessageHeaderField = 5;
115pub const G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: GDBusMessageHeaderField = 6;
116pub const G_DBUS_MESSAGE_HEADER_FIELD_SENDER: GDBusMessageHeaderField = 7;
117pub const G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: GDBusMessageHeaderField = 8;
118pub const G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: GDBusMessageHeaderField = 9;
119
120pub type GDBusMessageType = c_int;
121pub const G_DBUS_MESSAGE_TYPE_INVALID: GDBusMessageType = 0;
122pub const G_DBUS_MESSAGE_TYPE_METHOD_CALL: GDBusMessageType = 1;
123pub const G_DBUS_MESSAGE_TYPE_METHOD_RETURN: GDBusMessageType = 2;
124pub const G_DBUS_MESSAGE_TYPE_ERROR: GDBusMessageType = 3;
125pub const G_DBUS_MESSAGE_TYPE_SIGNAL: GDBusMessageType = 4;
126
127pub type GDataStreamByteOrder = c_int;
128pub const G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: GDataStreamByteOrder = 0;
129pub const G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: GDataStreamByteOrder = 1;
130pub const G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: GDataStreamByteOrder = 2;
131
132pub type GDataStreamNewlineType = c_int;
133pub const G_DATA_STREAM_NEWLINE_TYPE_LF: GDataStreamNewlineType = 0;
134pub const G_DATA_STREAM_NEWLINE_TYPE_CR: GDataStreamNewlineType = 1;
135pub const G_DATA_STREAM_NEWLINE_TYPE_CR_LF: GDataStreamNewlineType = 2;
136pub const G_DATA_STREAM_NEWLINE_TYPE_ANY: GDataStreamNewlineType = 3;
137
138pub type GDriveStartStopType = c_int;
139pub const G_DRIVE_START_STOP_TYPE_UNKNOWN: GDriveStartStopType = 0;
140pub const G_DRIVE_START_STOP_TYPE_SHUTDOWN: GDriveStartStopType = 1;
141pub const G_DRIVE_START_STOP_TYPE_NETWORK: GDriveStartStopType = 2;
142pub const G_DRIVE_START_STOP_TYPE_MULTIDISK: GDriveStartStopType = 3;
143pub const G_DRIVE_START_STOP_TYPE_PASSWORD: GDriveStartStopType = 4;
144
145pub type GEmblemOrigin = c_int;
146pub const G_EMBLEM_ORIGIN_UNKNOWN: GEmblemOrigin = 0;
147pub const G_EMBLEM_ORIGIN_DEVICE: GEmblemOrigin = 1;
148pub const G_EMBLEM_ORIGIN_LIVEMETADATA: GEmblemOrigin = 2;
149pub const G_EMBLEM_ORIGIN_TAG: GEmblemOrigin = 3;
150
151pub type GFileAttributeStatus = c_int;
152pub const G_FILE_ATTRIBUTE_STATUS_UNSET: GFileAttributeStatus = 0;
153pub const G_FILE_ATTRIBUTE_STATUS_SET: GFileAttributeStatus = 1;
154pub const G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: GFileAttributeStatus = 2;
155
156pub type GFileAttributeType = c_int;
157pub const G_FILE_ATTRIBUTE_TYPE_INVALID: GFileAttributeType = 0;
158pub const G_FILE_ATTRIBUTE_TYPE_STRING: GFileAttributeType = 1;
159pub const G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: GFileAttributeType = 2;
160pub const G_FILE_ATTRIBUTE_TYPE_BOOLEAN: GFileAttributeType = 3;
161pub const G_FILE_ATTRIBUTE_TYPE_UINT32: GFileAttributeType = 4;
162pub const G_FILE_ATTRIBUTE_TYPE_INT32: GFileAttributeType = 5;
163pub const G_FILE_ATTRIBUTE_TYPE_UINT64: GFileAttributeType = 6;
164pub const G_FILE_ATTRIBUTE_TYPE_INT64: GFileAttributeType = 7;
165pub const G_FILE_ATTRIBUTE_TYPE_OBJECT: GFileAttributeType = 8;
166pub const G_FILE_ATTRIBUTE_TYPE_STRINGV: GFileAttributeType = 9;
167
168pub type GFileMonitorEvent = c_int;
169pub const G_FILE_MONITOR_EVENT_CHANGED: GFileMonitorEvent = 0;
170pub const G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: GFileMonitorEvent = 1;
171pub const G_FILE_MONITOR_EVENT_DELETED: GFileMonitorEvent = 2;
172pub const G_FILE_MONITOR_EVENT_CREATED: GFileMonitorEvent = 3;
173pub const G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: GFileMonitorEvent = 4;
174pub const G_FILE_MONITOR_EVENT_PRE_UNMOUNT: GFileMonitorEvent = 5;
175pub const G_FILE_MONITOR_EVENT_UNMOUNTED: GFileMonitorEvent = 6;
176pub const G_FILE_MONITOR_EVENT_MOVED: GFileMonitorEvent = 7;
177pub const G_FILE_MONITOR_EVENT_RENAMED: GFileMonitorEvent = 8;
178pub const G_FILE_MONITOR_EVENT_MOVED_IN: GFileMonitorEvent = 9;
179pub const G_FILE_MONITOR_EVENT_MOVED_OUT: GFileMonitorEvent = 10;
180
181pub type GFileType = c_int;
182pub const G_FILE_TYPE_UNKNOWN: GFileType = 0;
183pub const G_FILE_TYPE_REGULAR: GFileType = 1;
184pub const G_FILE_TYPE_DIRECTORY: GFileType = 2;
185pub const G_FILE_TYPE_SYMBOLIC_LINK: GFileType = 3;
186pub const G_FILE_TYPE_SPECIAL: GFileType = 4;
187pub const G_FILE_TYPE_SHORTCUT: GFileType = 5;
188pub const G_FILE_TYPE_MOUNTABLE: GFileType = 6;
189
190pub type GFilesystemPreviewType = c_int;
191pub const G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: GFilesystemPreviewType = 0;
192pub const G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: GFilesystemPreviewType = 1;
193pub const G_FILESYSTEM_PREVIEW_TYPE_NEVER: GFilesystemPreviewType = 2;
194
195pub type GIOErrorEnum = c_int;
196pub const G_IO_ERROR_FAILED: GIOErrorEnum = 0;
197pub const G_IO_ERROR_NOT_FOUND: GIOErrorEnum = 1;
198pub const G_IO_ERROR_EXISTS: GIOErrorEnum = 2;
199pub const G_IO_ERROR_IS_DIRECTORY: GIOErrorEnum = 3;
200pub const G_IO_ERROR_NOT_DIRECTORY: GIOErrorEnum = 4;
201pub const G_IO_ERROR_NOT_EMPTY: GIOErrorEnum = 5;
202pub const G_IO_ERROR_NOT_REGULAR_FILE: GIOErrorEnum = 6;
203pub const G_IO_ERROR_NOT_SYMBOLIC_LINK: GIOErrorEnum = 7;
204pub const G_IO_ERROR_NOT_MOUNTABLE_FILE: GIOErrorEnum = 8;
205pub const G_IO_ERROR_FILENAME_TOO_LONG: GIOErrorEnum = 9;
206pub const G_IO_ERROR_INVALID_FILENAME: GIOErrorEnum = 10;
207pub const G_IO_ERROR_TOO_MANY_LINKS: GIOErrorEnum = 11;
208pub const G_IO_ERROR_NO_SPACE: GIOErrorEnum = 12;
209pub const G_IO_ERROR_INVALID_ARGUMENT: GIOErrorEnum = 13;
210pub const G_IO_ERROR_PERMISSION_DENIED: GIOErrorEnum = 14;
211pub const G_IO_ERROR_NOT_SUPPORTED: GIOErrorEnum = 15;
212pub const G_IO_ERROR_NOT_MOUNTED: GIOErrorEnum = 16;
213pub const G_IO_ERROR_ALREADY_MOUNTED: GIOErrorEnum = 17;
214pub const G_IO_ERROR_CLOSED: GIOErrorEnum = 18;
215pub const G_IO_ERROR_CANCELLED: GIOErrorEnum = 19;
216pub const G_IO_ERROR_PENDING: GIOErrorEnum = 20;
217pub const G_IO_ERROR_READ_ONLY: GIOErrorEnum = 21;
218pub const G_IO_ERROR_CANT_CREATE_BACKUP: GIOErrorEnum = 22;
219pub const G_IO_ERROR_WRONG_ETAG: GIOErrorEnum = 23;
220pub const G_IO_ERROR_TIMED_OUT: GIOErrorEnum = 24;
221pub const G_IO_ERROR_WOULD_RECURSE: GIOErrorEnum = 25;
222pub const G_IO_ERROR_BUSY: GIOErrorEnum = 26;
223pub const G_IO_ERROR_WOULD_BLOCK: GIOErrorEnum = 27;
224pub const G_IO_ERROR_HOST_NOT_FOUND: GIOErrorEnum = 28;
225pub const G_IO_ERROR_WOULD_MERGE: GIOErrorEnum = 29;
226pub const G_IO_ERROR_FAILED_HANDLED: GIOErrorEnum = 30;
227pub const G_IO_ERROR_TOO_MANY_OPEN_FILES: GIOErrorEnum = 31;
228pub const G_IO_ERROR_NOT_INITIALIZED: GIOErrorEnum = 32;
229pub const G_IO_ERROR_ADDRESS_IN_USE: GIOErrorEnum = 33;
230pub const G_IO_ERROR_PARTIAL_INPUT: GIOErrorEnum = 34;
231pub const G_IO_ERROR_INVALID_DATA: GIOErrorEnum = 35;
232pub const G_IO_ERROR_DBUS_ERROR: GIOErrorEnum = 36;
233pub const G_IO_ERROR_HOST_UNREACHABLE: GIOErrorEnum = 37;
234pub const G_IO_ERROR_NETWORK_UNREACHABLE: GIOErrorEnum = 38;
235pub const G_IO_ERROR_CONNECTION_REFUSED: GIOErrorEnum = 39;
236pub const G_IO_ERROR_PROXY_FAILED: GIOErrorEnum = 40;
237pub const G_IO_ERROR_PROXY_AUTH_FAILED: GIOErrorEnum = 41;
238pub const G_IO_ERROR_PROXY_NEED_AUTH: GIOErrorEnum = 42;
239pub const G_IO_ERROR_PROXY_NOT_ALLOWED: GIOErrorEnum = 43;
240pub const G_IO_ERROR_BROKEN_PIPE: GIOErrorEnum = 44;
241pub const G_IO_ERROR_CONNECTION_CLOSED: GIOErrorEnum = 44;
242pub const G_IO_ERROR_NOT_CONNECTED: GIOErrorEnum = 45;
243pub const G_IO_ERROR_MESSAGE_TOO_LARGE: GIOErrorEnum = 46;
244pub const G_IO_ERROR_NO_SUCH_DEVICE: GIOErrorEnum = 47;
245pub const G_IO_ERROR_DESTINATION_UNSET: GIOErrorEnum = 48;
246
247pub type GIOModuleScopeFlags = c_int;
248pub const G_IO_MODULE_SCOPE_NONE: GIOModuleScopeFlags = 0;
249pub const G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: GIOModuleScopeFlags = 1;
250
251pub type GMemoryMonitorWarningLevel = c_int;
252pub const G_MEMORY_MONITOR_WARNING_LEVEL_LOW: GMemoryMonitorWarningLevel = 50;
253pub const G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM: GMemoryMonitorWarningLevel = 100;
254pub const G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL: GMemoryMonitorWarningLevel = 255;
255
256pub type GMountOperationResult = c_int;
257pub const G_MOUNT_OPERATION_HANDLED: GMountOperationResult = 0;
258pub const G_MOUNT_OPERATION_ABORTED: GMountOperationResult = 1;
259pub const G_MOUNT_OPERATION_UNHANDLED: GMountOperationResult = 2;
260
261pub type GNetworkConnectivity = c_int;
262pub const G_NETWORK_CONNECTIVITY_LOCAL: GNetworkConnectivity = 1;
263pub const G_NETWORK_CONNECTIVITY_LIMITED: GNetworkConnectivity = 2;
264pub const G_NETWORK_CONNECTIVITY_PORTAL: GNetworkConnectivity = 3;
265pub const G_NETWORK_CONNECTIVITY_FULL: GNetworkConnectivity = 4;
266
267pub type GNotificationPriority = c_int;
268pub const G_NOTIFICATION_PRIORITY_NORMAL: GNotificationPriority = 0;
269pub const G_NOTIFICATION_PRIORITY_LOW: GNotificationPriority = 1;
270pub const G_NOTIFICATION_PRIORITY_HIGH: GNotificationPriority = 2;
271pub const G_NOTIFICATION_PRIORITY_URGENT: GNotificationPriority = 3;
272
273pub type GPasswordSave = c_int;
274pub const G_PASSWORD_SAVE_NEVER: GPasswordSave = 0;
275pub const G_PASSWORD_SAVE_FOR_SESSION: GPasswordSave = 1;
276pub const G_PASSWORD_SAVE_PERMANENTLY: GPasswordSave = 2;
277
278pub type GPollableReturn = c_int;
279pub const G_POLLABLE_RETURN_FAILED: GPollableReturn = 0;
280pub const G_POLLABLE_RETURN_OK: GPollableReturn = 1;
281pub const G_POLLABLE_RETURN_WOULD_BLOCK: GPollableReturn = -27;
282
283pub type GResolverError = c_int;
284pub const G_RESOLVER_ERROR_NOT_FOUND: GResolverError = 0;
285pub const G_RESOLVER_ERROR_TEMPORARY_FAILURE: GResolverError = 1;
286pub const G_RESOLVER_ERROR_INTERNAL: GResolverError = 2;
287
288pub type GResolverRecordType = c_int;
289pub const G_RESOLVER_RECORD_SRV: GResolverRecordType = 1;
290pub const G_RESOLVER_RECORD_MX: GResolverRecordType = 2;
291pub const G_RESOLVER_RECORD_TXT: GResolverRecordType = 3;
292pub const G_RESOLVER_RECORD_SOA: GResolverRecordType = 4;
293pub const G_RESOLVER_RECORD_NS: GResolverRecordType = 5;
294
295pub type GResourceError = c_int;
296pub const G_RESOURCE_ERROR_NOT_FOUND: GResourceError = 0;
297pub const G_RESOURCE_ERROR_INTERNAL: GResourceError = 1;
298
299pub type GSocketClientEvent = c_int;
300pub const G_SOCKET_CLIENT_RESOLVING: GSocketClientEvent = 0;
301pub const G_SOCKET_CLIENT_RESOLVED: GSocketClientEvent = 1;
302pub const G_SOCKET_CLIENT_CONNECTING: GSocketClientEvent = 2;
303pub const G_SOCKET_CLIENT_CONNECTED: GSocketClientEvent = 3;
304pub const G_SOCKET_CLIENT_PROXY_NEGOTIATING: GSocketClientEvent = 4;
305pub const G_SOCKET_CLIENT_PROXY_NEGOTIATED: GSocketClientEvent = 5;
306pub const G_SOCKET_CLIENT_TLS_HANDSHAKING: GSocketClientEvent = 6;
307pub const G_SOCKET_CLIENT_TLS_HANDSHAKED: GSocketClientEvent = 7;
308pub const G_SOCKET_CLIENT_COMPLETE: GSocketClientEvent = 8;
309
310pub type GSocketListenerEvent = c_int;
311pub const G_SOCKET_LISTENER_BINDING: GSocketListenerEvent = 0;
312pub const G_SOCKET_LISTENER_BOUND: GSocketListenerEvent = 1;
313pub const G_SOCKET_LISTENER_LISTENING: GSocketListenerEvent = 2;
314pub const G_SOCKET_LISTENER_LISTENED: GSocketListenerEvent = 3;
315
316pub type GSocketProtocol = c_int;
317pub const G_SOCKET_PROTOCOL_UNKNOWN: GSocketProtocol = -1;
318pub const G_SOCKET_PROTOCOL_DEFAULT: GSocketProtocol = 0;
319pub const G_SOCKET_PROTOCOL_TCP: GSocketProtocol = 6;
320pub const G_SOCKET_PROTOCOL_UDP: GSocketProtocol = 17;
321pub const G_SOCKET_PROTOCOL_SCTP: GSocketProtocol = 132;
322
323pub type GSocketType = c_int;
324pub const G_SOCKET_TYPE_INVALID: GSocketType = 0;
325pub const G_SOCKET_TYPE_STREAM: GSocketType = 1;
326pub const G_SOCKET_TYPE_DATAGRAM: GSocketType = 2;
327pub const G_SOCKET_TYPE_SEQPACKET: GSocketType = 3;
328
329pub type GTlsAuthenticationMode = c_int;
330pub const G_TLS_AUTHENTICATION_NONE: GTlsAuthenticationMode = 0;
331pub const G_TLS_AUTHENTICATION_REQUESTED: GTlsAuthenticationMode = 1;
332pub const G_TLS_AUTHENTICATION_REQUIRED: GTlsAuthenticationMode = 2;
333
334pub type GTlsCertificateRequestFlags = c_int;
335pub const G_TLS_CERTIFICATE_REQUEST_NONE: GTlsCertificateRequestFlags = 0;
336
337pub type GTlsChannelBindingError = c_int;
338pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_IMPLEMENTED: GTlsChannelBindingError = 0;
339pub const G_TLS_CHANNEL_BINDING_ERROR_INVALID_STATE: GTlsChannelBindingError = 1;
340pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_AVAILABLE: GTlsChannelBindingError = 2;
341pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_SUPPORTED: GTlsChannelBindingError = 3;
342pub const G_TLS_CHANNEL_BINDING_ERROR_GENERAL_ERROR: GTlsChannelBindingError = 4;
343
344pub type GTlsChannelBindingType = c_int;
345pub const G_TLS_CHANNEL_BINDING_TLS_UNIQUE: GTlsChannelBindingType = 0;
346pub const G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT: GTlsChannelBindingType = 1;
347pub const G_TLS_CHANNEL_BINDING_TLS_EXPORTER: GTlsChannelBindingType = 2;
348
349pub type GTlsDatabaseLookupFlags = c_int;
350pub const G_TLS_DATABASE_LOOKUP_NONE: GTlsDatabaseLookupFlags = 0;
351pub const G_TLS_DATABASE_LOOKUP_KEYPAIR: GTlsDatabaseLookupFlags = 1;
352
353pub type GTlsError = c_int;
354pub const G_TLS_ERROR_UNAVAILABLE: GTlsError = 0;
355pub const G_TLS_ERROR_MISC: GTlsError = 1;
356pub const G_TLS_ERROR_BAD_CERTIFICATE: GTlsError = 2;
357pub const G_TLS_ERROR_NOT_TLS: GTlsError = 3;
358pub const G_TLS_ERROR_HANDSHAKE: GTlsError = 4;
359pub const G_TLS_ERROR_CERTIFICATE_REQUIRED: GTlsError = 5;
360pub const G_TLS_ERROR_EOF: GTlsError = 6;
361pub const G_TLS_ERROR_INAPPROPRIATE_FALLBACK: GTlsError = 7;
362pub const G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD: GTlsError = 8;
363
364pub type GTlsInteractionResult = c_int;
365pub const G_TLS_INTERACTION_UNHANDLED: GTlsInteractionResult = 0;
366pub const G_TLS_INTERACTION_HANDLED: GTlsInteractionResult = 1;
367pub const G_TLS_INTERACTION_FAILED: GTlsInteractionResult = 2;
368
369pub type GTlsProtocolVersion = c_int;
370pub const G_TLS_PROTOCOL_VERSION_UNKNOWN: GTlsProtocolVersion = 0;
371pub const G_TLS_PROTOCOL_VERSION_SSL_3_0: GTlsProtocolVersion = 1;
372pub const G_TLS_PROTOCOL_VERSION_TLS_1_0: GTlsProtocolVersion = 2;
373pub const G_TLS_PROTOCOL_VERSION_TLS_1_1: GTlsProtocolVersion = 3;
374pub const G_TLS_PROTOCOL_VERSION_TLS_1_2: GTlsProtocolVersion = 4;
375pub const G_TLS_PROTOCOL_VERSION_TLS_1_3: GTlsProtocolVersion = 5;
376pub const G_TLS_PROTOCOL_VERSION_DTLS_1_0: GTlsProtocolVersion = 201;
377pub const G_TLS_PROTOCOL_VERSION_DTLS_1_2: GTlsProtocolVersion = 202;
378
379pub type GTlsRehandshakeMode = c_int;
380pub const G_TLS_REHANDSHAKE_NEVER: GTlsRehandshakeMode = 0;
381pub const G_TLS_REHANDSHAKE_SAFELY: GTlsRehandshakeMode = 1;
382pub const G_TLS_REHANDSHAKE_UNSAFELY: GTlsRehandshakeMode = 2;
383
384pub type GUnixSocketAddressType = c_int;
385pub const G_UNIX_SOCKET_ADDRESS_INVALID: GUnixSocketAddressType = 0;
386pub const G_UNIX_SOCKET_ADDRESS_ANONYMOUS: GUnixSocketAddressType = 1;
387pub const G_UNIX_SOCKET_ADDRESS_PATH: GUnixSocketAddressType = 2;
388pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT: GUnixSocketAddressType = 3;
389pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: GUnixSocketAddressType = 4;
390
391pub type GZlibCompressorFormat = c_int;
392pub const G_ZLIB_COMPRESSOR_FORMAT_ZLIB: GZlibCompressorFormat = 0;
393pub const G_ZLIB_COMPRESSOR_FORMAT_GZIP: GZlibCompressorFormat = 1;
394pub const G_ZLIB_COMPRESSOR_FORMAT_RAW: GZlibCompressorFormat = 2;
395
396pub const G_DBUS_METHOD_INVOCATION_HANDLED: gboolean = glib::GTRUE;
398pub const G_DBUS_METHOD_INVOCATION_UNHANDLED: gboolean = glib::GFALSE;
399pub const G_DEBUG_CONTROLLER_EXTENSION_POINT_NAME: &[u8] = b"gio-debug-controller\0";
400pub const G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: &[u8] = b"gio-desktop-app-info-lookup\0";
401pub const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device\0";
402pub const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: &[u8] = b"access::can-delete\0";
403pub const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: &[u8] = b"access::can-execute\0";
404pub const G_FILE_ATTRIBUTE_ACCESS_CAN_READ: &[u8] = b"access::can-read\0";
405pub const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: &[u8] = b"access::can-rename\0";
406pub const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: &[u8] = b"access::can-trash\0";
407pub const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: &[u8] = b"access::can-write\0";
408pub const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: &[u8] = b"dos::is-archive\0";
409pub const G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: &[u8] = b"dos::is-mountpoint\0";
410pub const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: &[u8] = b"dos::is-system\0";
411pub const G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: &[u8] = b"dos::reparse-point-tag\0";
412pub const G_FILE_ATTRIBUTE_ETAG_VALUE: &[u8] = b"etag::value\0";
413pub const G_FILE_ATTRIBUTE_FILESYSTEM_FREE: &[u8] = b"filesystem::free\0";
414pub const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: &[u8] = b"filesystem::readonly\0";
415pub const G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE: &[u8] = b"filesystem::remote\0";
416pub const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: &[u8] = b"filesystem::size\0";
417pub const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: &[u8] = b"filesystem::type\0";
418pub const G_FILE_ATTRIBUTE_FILESYSTEM_USED: &[u8] = b"filesystem::used\0";
419pub const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: &[u8] = b"filesystem::use-preview\0";
420pub const G_FILE_ATTRIBUTE_GVFS_BACKEND: &[u8] = b"gvfs::backend\0";
421pub const G_FILE_ATTRIBUTE_ID_FILE: &[u8] = b"id::file\0";
422pub const G_FILE_ATTRIBUTE_ID_FILESYSTEM: &[u8] = b"id::filesystem\0";
423pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: &[u8] = b"mountable::can-eject\0";
424pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: &[u8] = b"mountable::can-mount\0";
425pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: &[u8] = b"mountable::can-poll\0";
426pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START: &[u8] = b"mountable::can-start\0";
427pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: &[u8] = b"mountable::can-start-degraded\0";
428pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: &[u8] = b"mountable::can-stop\0";
429pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: &[u8] = b"mountable::can-unmount\0";
430pub const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: &[u8] = b"mountable::hal-udi\0";
431pub const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: &[u8] =
432 b"mountable::is-media-check-automatic\0";
433pub const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: &[u8] = b"mountable::start-stop-type\0";
434pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: &[u8] = b"mountable::unix-device\0";
435pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: &[u8] = b"mountable::unix-device-file\0";
436pub const G_FILE_ATTRIBUTE_OWNER_GROUP: &[u8] = b"owner::group\0";
437pub const G_FILE_ATTRIBUTE_OWNER_USER: &[u8] = b"owner::user\0";
438pub const G_FILE_ATTRIBUTE_OWNER_USER_REAL: &[u8] = b"owner::user-real\0";
439pub const G_FILE_ATTRIBUTE_PREVIEW_ICON: &[u8] = b"preview::icon\0";
440pub const G_FILE_ATTRIBUTE_RECENT_MODIFIED: &[u8] = b"recent::modified\0";
441pub const G_FILE_ATTRIBUTE_SELINUX_CONTEXT: &[u8] = b"selinux::context\0";
442pub const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: &[u8] = b"standard::allocated-size\0";
443pub const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: &[u8] = b"standard::content-type\0";
444pub const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: &[u8] = b"standard::copy-name\0";
445pub const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: &[u8] = b"standard::description\0";
446pub const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: &[u8] = b"standard::display-name\0";
447pub const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: &[u8] = b"standard::edit-name\0";
448pub const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: &[u8] = b"standard::fast-content-type\0";
449pub const G_FILE_ATTRIBUTE_STANDARD_ICON: &[u8] = b"standard::icon\0";
450pub const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: &[u8] = b"standard::is-backup\0";
451pub const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: &[u8] = b"standard::is-hidden\0";
452pub const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: &[u8] = b"standard::is-symlink\0";
453pub const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: &[u8] = b"standard::is-virtual\0";
454pub const G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: &[u8] = b"standard::is-volatile\0";
455pub const G_FILE_ATTRIBUTE_STANDARD_NAME: &[u8] = b"standard::name\0";
456pub const G_FILE_ATTRIBUTE_STANDARD_SIZE: &[u8] = b"standard::size\0";
457pub const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: &[u8] = b"standard::sort-order\0";
458pub const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: &[u8] = b"standard::symbolic-icon\0";
459pub const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: &[u8] = b"standard::symlink-target\0";
460pub const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: &[u8] = b"standard::target-uri\0";
461pub const G_FILE_ATTRIBUTE_STANDARD_TYPE: &[u8] = b"standard::type\0";
462pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: &[u8] = b"thumbnail::failed\0";
463pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE: &[u8] = b"thumbnail::failed-large\0";
464pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL: &[u8] = b"thumbnail::failed-normal\0";
465pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE: &[u8] = b"thumbnail::failed-xlarge\0";
466pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE: &[u8] = b"thumbnail::failed-xxlarge\0";
467pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: &[u8] = b"thumbnail::is-valid\0";
468pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE: &[u8] = b"thumbnail::is-valid-large\0";
469pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL: &[u8] = b"thumbnail::is-valid-normal\0";
470pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE: &[u8] = b"thumbnail::is-valid-xlarge\0";
471pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE: &[u8] = b"thumbnail::is-valid-xxlarge\0";
472pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH: &[u8] = b"thumbnail::path\0";
473pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE: &[u8] = b"thumbnail::path-large\0";
474pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL: &[u8] = b"thumbnail::path-normal\0";
475pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE: &[u8] = b"thumbnail::path-xlarge\0";
476pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE: &[u8] = b"thumbnail::path-xxlarge\0";
477pub const G_FILE_ATTRIBUTE_TIME_ACCESS: &[u8] = b"time::access\0";
478pub const G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC: &[u8] = b"time::access-nsec\0";
479pub const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: &[u8] = b"time::access-usec\0";
480pub const G_FILE_ATTRIBUTE_TIME_CHANGED: &[u8] = b"time::changed\0";
481pub const G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC: &[u8] = b"time::changed-nsec\0";
482pub const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: &[u8] = b"time::changed-usec\0";
483pub const G_FILE_ATTRIBUTE_TIME_CREATED: &[u8] = b"time::created\0";
484pub const G_FILE_ATTRIBUTE_TIME_CREATED_NSEC: &[u8] = b"time::created-nsec\0";
485pub const G_FILE_ATTRIBUTE_TIME_CREATED_USEC: &[u8] = b"time::created-usec\0";
486pub const G_FILE_ATTRIBUTE_TIME_MODIFIED: &[u8] = b"time::modified\0";
487pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC: &[u8] = b"time::modified-nsec\0";
488pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: &[u8] = b"time::modified-usec\0";
489pub const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: &[u8] = b"trash::deletion-date\0";
490pub const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: &[u8] = b"trash::item-count\0";
491pub const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH: &[u8] = b"trash::orig-path\0";
492pub const G_FILE_ATTRIBUTE_UNIX_BLOCKS: &[u8] = b"unix::blocks\0";
493pub const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: &[u8] = b"unix::block-size\0";
494pub const G_FILE_ATTRIBUTE_UNIX_DEVICE: &[u8] = b"unix::device\0";
495pub const G_FILE_ATTRIBUTE_UNIX_GID: &[u8] = b"unix::gid\0";
496pub const G_FILE_ATTRIBUTE_UNIX_INODE: &[u8] = b"unix::inode\0";
497pub const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: &[u8] = b"unix::is-mountpoint\0";
498pub const G_FILE_ATTRIBUTE_UNIX_MODE: &[u8] = b"unix::mode\0";
499pub const G_FILE_ATTRIBUTE_UNIX_NLINK: &[u8] = b"unix::nlink\0";
500pub const G_FILE_ATTRIBUTE_UNIX_RDEV: &[u8] = b"unix::rdev\0";
501pub const G_FILE_ATTRIBUTE_UNIX_UID: &[u8] = b"unix::uid\0";
502pub const G_MEMORY_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-memory-monitor\0";
503pub const G_MENU_ATTRIBUTE_ACTION: &[u8] = b"action\0";
504pub const G_MENU_ATTRIBUTE_ACTION_NAMESPACE: &[u8] = b"action-namespace\0";
505pub const G_MENU_ATTRIBUTE_ICON: &[u8] = b"icon\0";
506pub const G_MENU_ATTRIBUTE_LABEL: &[u8] = b"label\0";
507pub const G_MENU_ATTRIBUTE_TARGET: &[u8] = b"target\0";
508pub const G_MENU_EXPORTER_MAX_SECTION_SIZE: c_int = 1000;
509pub const G_MENU_LINK_SECTION: &[u8] = b"section\0";
510pub const G_MENU_LINK_SUBMENU: &[u8] = b"submenu\0";
511pub const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-native-volume-monitor\0";
512pub const G_NETWORK_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-network-monitor\0";
513pub const G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-power-profile-monitor\0";
514pub const G_PROXY_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy\0";
515pub const G_PROXY_RESOLVER_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy-resolver\0";
516pub const G_SETTINGS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gsettings-backend\0";
517pub const G_TLS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gio-tls-backend\0";
518pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: &[u8] = b"1.3.6.1.5.5.7.3.2\0";
519pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: &[u8] = b"1.3.6.1.5.5.7.3.1\0";
520pub const G_VFS_EXTENSION_POINT_NAME: &[u8] = b"gio-vfs\0";
521pub const G_VOLUME_IDENTIFIER_KIND_CLASS: &[u8] = b"class\0";
522pub const G_VOLUME_IDENTIFIER_KIND_HAL_UDI: &[u8] = b"hal-udi\0";
523pub const G_VOLUME_IDENTIFIER_KIND_LABEL: &[u8] = b"label\0";
524pub const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: &[u8] = b"nfs-mount\0";
525pub const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device\0";
526pub const G_VOLUME_IDENTIFIER_KIND_UUID: &[u8] = b"uuid\0";
527pub const G_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-volume-monitor\0";
528
529pub type GAppInfoCreateFlags = c_uint;
531pub const G_APP_INFO_CREATE_NONE: GAppInfoCreateFlags = 0;
532pub const G_APP_INFO_CREATE_NEEDS_TERMINAL: GAppInfoCreateFlags = 1;
533pub const G_APP_INFO_CREATE_SUPPORTS_URIS: GAppInfoCreateFlags = 2;
534pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags = 4;
535
536pub type GApplicationFlags = c_uint;
537pub const G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0;
538#[cfg(feature = "v2_74")]
539#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
540pub const G_APPLICATION_DEFAULT_FLAGS: GApplicationFlags = 0;
541pub const G_APPLICATION_IS_SERVICE: GApplicationFlags = 1;
542pub const G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2;
543pub const G_APPLICATION_HANDLES_OPEN: GApplicationFlags = 4;
544pub const G_APPLICATION_HANDLES_COMMAND_LINE: GApplicationFlags = 8;
545pub const G_APPLICATION_SEND_ENVIRONMENT: GApplicationFlags = 16;
546pub const G_APPLICATION_NON_UNIQUE: GApplicationFlags = 32;
547pub const G_APPLICATION_CAN_OVERRIDE_APP_ID: GApplicationFlags = 64;
548pub const G_APPLICATION_ALLOW_REPLACEMENT: GApplicationFlags = 128;
549pub const G_APPLICATION_REPLACE: GApplicationFlags = 256;
550
551pub type GAskPasswordFlags = c_uint;
552pub const G_ASK_PASSWORD_NEED_PASSWORD: GAskPasswordFlags = 1;
553pub const G_ASK_PASSWORD_NEED_USERNAME: GAskPasswordFlags = 2;
554pub const G_ASK_PASSWORD_NEED_DOMAIN: GAskPasswordFlags = 4;
555pub const G_ASK_PASSWORD_SAVING_SUPPORTED: GAskPasswordFlags = 8;
556pub const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: GAskPasswordFlags = 16;
557pub const G_ASK_PASSWORD_TCRYPT: GAskPasswordFlags = 32;
558
559pub type GBusNameOwnerFlags = c_uint;
560pub const G_BUS_NAME_OWNER_FLAGS_NONE: GBusNameOwnerFlags = 0;
561pub const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: GBusNameOwnerFlags = 1;
562pub const G_BUS_NAME_OWNER_FLAGS_REPLACE: GBusNameOwnerFlags = 2;
563pub const G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: GBusNameOwnerFlags = 4;
564
565pub type GBusNameWatcherFlags = c_uint;
566pub const G_BUS_NAME_WATCHER_FLAGS_NONE: GBusNameWatcherFlags = 0;
567pub const G_BUS_NAME_WATCHER_FLAGS_AUTO_START: GBusNameWatcherFlags = 1;
568
569pub type GConverterFlags = c_uint;
570pub const G_CONVERTER_NO_FLAGS: GConverterFlags = 0;
571pub const G_CONVERTER_INPUT_AT_END: GConverterFlags = 1;
572pub const G_CONVERTER_FLUSH: GConverterFlags = 2;
573
574pub type GDBusCallFlags = c_uint;
575pub const G_DBUS_CALL_FLAGS_NONE: GDBusCallFlags = 0;
576pub const G_DBUS_CALL_FLAGS_NO_AUTO_START: GDBusCallFlags = 1;
577pub const G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusCallFlags = 2;
578
579pub type GDBusCapabilityFlags = c_uint;
580pub const G_DBUS_CAPABILITY_FLAGS_NONE: GDBusCapabilityFlags = 0;
581pub const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: GDBusCapabilityFlags = 1;
582
583pub type GDBusConnectionFlags = c_uint;
584pub const G_DBUS_CONNECTION_FLAGS_NONE: GDBusConnectionFlags = 0;
585pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: GDBusConnectionFlags = 1;
586pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: GDBusConnectionFlags = 2;
587pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusConnectionFlags = 4;
588pub const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: GDBusConnectionFlags = 8;
589pub const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: GDBusConnectionFlags = 16;
590pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusConnectionFlags = 32;
591pub const G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE: GDBusConnectionFlags = 64;
592
593pub type GDBusInterfaceSkeletonFlags = c_uint;
594pub const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: GDBusInterfaceSkeletonFlags = 0;
595pub const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD:
596 GDBusInterfaceSkeletonFlags = 1;
597
598pub type GDBusMessageFlags = c_uint;
599pub const G_DBUS_MESSAGE_FLAGS_NONE: GDBusMessageFlags = 0;
600pub const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: GDBusMessageFlags = 1;
601pub const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: GDBusMessageFlags = 2;
602pub const G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusMessageFlags = 4;
603
604pub type GDBusObjectManagerClientFlags = c_uint;
605pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: GDBusObjectManagerClientFlags = 0;
606pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: GDBusObjectManagerClientFlags = 1;
607
608pub type GDBusPropertyInfoFlags = c_uint;
609pub const G_DBUS_PROPERTY_INFO_FLAGS_NONE: GDBusPropertyInfoFlags = 0;
610pub const G_DBUS_PROPERTY_INFO_FLAGS_READABLE: GDBusPropertyInfoFlags = 1;
611pub const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: GDBusPropertyInfoFlags = 2;
612
613pub type GDBusProxyFlags = c_uint;
614pub const G_DBUS_PROXY_FLAGS_NONE: GDBusProxyFlags = 0;
615pub const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: GDBusProxyFlags = 1;
616pub const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: GDBusProxyFlags = 2;
617pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: GDBusProxyFlags = 4;
618pub const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: GDBusProxyFlags = 8;
619pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: GDBusProxyFlags = 16;
620pub const G_DBUS_PROXY_FLAGS_NO_MATCH_RULE: GDBusProxyFlags = 32;
621
622pub type GDBusSendMessageFlags = c_uint;
623pub const G_DBUS_SEND_MESSAGE_FLAGS_NONE: GDBusSendMessageFlags = 0;
624pub const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: GDBusSendMessageFlags = 1;
625
626pub type GDBusServerFlags = c_uint;
627pub const G_DBUS_SERVER_FLAGS_NONE: GDBusServerFlags = 0;
628pub const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: GDBusServerFlags = 1;
629pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusServerFlags = 2;
630pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusServerFlags = 4;
631
632pub type GDBusSignalFlags = c_uint;
633pub const G_DBUS_SIGNAL_FLAGS_NONE: GDBusSignalFlags = 0;
634pub const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: GDBusSignalFlags = 1;
635pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: GDBusSignalFlags = 2;
636pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: GDBusSignalFlags = 4;
637
638pub type GDBusSubtreeFlags = c_uint;
639pub const G_DBUS_SUBTREE_FLAGS_NONE: GDBusSubtreeFlags = 0;
640pub const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: GDBusSubtreeFlags = 1;
641
642pub type GDriveStartFlags = c_uint;
643pub const G_DRIVE_START_NONE: GDriveStartFlags = 0;
644
645pub type GFileAttributeInfoFlags = c_uint;
646pub const G_FILE_ATTRIBUTE_INFO_NONE: GFileAttributeInfoFlags = 0;
647pub const G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: GFileAttributeInfoFlags = 1;
648pub const G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: GFileAttributeInfoFlags = 2;
649
650pub type GFileCopyFlags = c_uint;
651pub const G_FILE_COPY_NONE: GFileCopyFlags = 0;
652pub const G_FILE_COPY_OVERWRITE: GFileCopyFlags = 1;
653pub const G_FILE_COPY_BACKUP: GFileCopyFlags = 2;
654pub const G_FILE_COPY_NOFOLLOW_SYMLINKS: GFileCopyFlags = 4;
655pub const G_FILE_COPY_ALL_METADATA: GFileCopyFlags = 8;
656pub const G_FILE_COPY_NO_FALLBACK_FOR_MOVE: GFileCopyFlags = 16;
657pub const G_FILE_COPY_TARGET_DEFAULT_PERMS: GFileCopyFlags = 32;
658pub const G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME: GFileCopyFlags = 64;
659
660pub type GFileCreateFlags = c_uint;
661pub const G_FILE_CREATE_NONE: GFileCreateFlags = 0;
662pub const G_FILE_CREATE_PRIVATE: GFileCreateFlags = 1;
663pub const G_FILE_CREATE_REPLACE_DESTINATION: GFileCreateFlags = 2;
664
665pub type GFileMeasureFlags = c_uint;
666pub const G_FILE_MEASURE_NONE: GFileMeasureFlags = 0;
667pub const G_FILE_MEASURE_REPORT_ANY_ERROR: GFileMeasureFlags = 2;
668pub const G_FILE_MEASURE_APPARENT_SIZE: GFileMeasureFlags = 4;
669pub const G_FILE_MEASURE_NO_XDEV: GFileMeasureFlags = 8;
670
671pub type GFileMonitorFlags = c_uint;
672pub const G_FILE_MONITOR_NONE: GFileMonitorFlags = 0;
673pub const G_FILE_MONITOR_WATCH_MOUNTS: GFileMonitorFlags = 1;
674pub const G_FILE_MONITOR_SEND_MOVED: GFileMonitorFlags = 2;
675pub const G_FILE_MONITOR_WATCH_HARD_LINKS: GFileMonitorFlags = 4;
676pub const G_FILE_MONITOR_WATCH_MOVES: GFileMonitorFlags = 8;
677
678pub type GFileQueryInfoFlags = c_uint;
679pub const G_FILE_QUERY_INFO_NONE: GFileQueryInfoFlags = 0;
680pub const G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: GFileQueryInfoFlags = 1;
681
682pub type GIOStreamSpliceFlags = c_uint;
683pub const G_IO_STREAM_SPLICE_NONE: GIOStreamSpliceFlags = 0;
684pub const G_IO_STREAM_SPLICE_CLOSE_STREAM1: GIOStreamSpliceFlags = 1;
685pub const G_IO_STREAM_SPLICE_CLOSE_STREAM2: GIOStreamSpliceFlags = 2;
686pub const G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: GIOStreamSpliceFlags = 4;
687
688pub type GMountMountFlags = c_uint;
689pub const G_MOUNT_MOUNT_NONE: GMountMountFlags = 0;
690
691pub type GMountUnmountFlags = c_uint;
692pub const G_MOUNT_UNMOUNT_NONE: GMountUnmountFlags = 0;
693pub const G_MOUNT_UNMOUNT_FORCE: GMountUnmountFlags = 1;
694
695pub type GOutputStreamSpliceFlags = c_uint;
696pub const G_OUTPUT_STREAM_SPLICE_NONE: GOutputStreamSpliceFlags = 0;
697pub const G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: GOutputStreamSpliceFlags = 1;
698pub const G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: GOutputStreamSpliceFlags = 2;
699
700pub type GResolverNameLookupFlags = c_uint;
701pub const G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT: GResolverNameLookupFlags = 0;
702pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY: GResolverNameLookupFlags = 1;
703pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY: GResolverNameLookupFlags = 2;
704
705pub type GResourceFlags = c_uint;
706pub const G_RESOURCE_FLAGS_NONE: GResourceFlags = 0;
707pub const G_RESOURCE_FLAGS_COMPRESSED: GResourceFlags = 1;
708
709pub type GResourceLookupFlags = c_uint;
710pub const G_RESOURCE_LOOKUP_FLAGS_NONE: GResourceLookupFlags = 0;
711
712pub type GSettingsBindFlags = c_uint;
713pub const G_SETTINGS_BIND_DEFAULT: GSettingsBindFlags = 0;
714pub const G_SETTINGS_BIND_GET: GSettingsBindFlags = 1;
715pub const G_SETTINGS_BIND_SET: GSettingsBindFlags = 2;
716pub const G_SETTINGS_BIND_NO_SENSITIVITY: GSettingsBindFlags = 4;
717pub const G_SETTINGS_BIND_GET_NO_CHANGES: GSettingsBindFlags = 8;
718pub const G_SETTINGS_BIND_INVERT_BOOLEAN: GSettingsBindFlags = 16;
719
720pub type GSubprocessFlags = c_uint;
721pub const G_SUBPROCESS_FLAGS_NONE: GSubprocessFlags = 0;
722pub const G_SUBPROCESS_FLAGS_STDIN_PIPE: GSubprocessFlags = 1;
723pub const G_SUBPROCESS_FLAGS_STDIN_INHERIT: GSubprocessFlags = 2;
724pub const G_SUBPROCESS_FLAGS_STDOUT_PIPE: GSubprocessFlags = 4;
725pub const G_SUBPROCESS_FLAGS_STDOUT_SILENCE: GSubprocessFlags = 8;
726pub const G_SUBPROCESS_FLAGS_STDERR_PIPE: GSubprocessFlags = 16;
727pub const G_SUBPROCESS_FLAGS_STDERR_SILENCE: GSubprocessFlags = 32;
728pub const G_SUBPROCESS_FLAGS_STDERR_MERGE: GSubprocessFlags = 64;
729pub const G_SUBPROCESS_FLAGS_INHERIT_FDS: GSubprocessFlags = 128;
730pub const G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP: GSubprocessFlags = 256;
731
732pub type GTestDBusFlags = c_uint;
733pub const G_TEST_DBUS_NONE: GTestDBusFlags = 0;
734
735pub type GTlsCertificateFlags = c_uint;
736pub const G_TLS_CERTIFICATE_NO_FLAGS: GTlsCertificateFlags = 0;
737pub const G_TLS_CERTIFICATE_UNKNOWN_CA: GTlsCertificateFlags = 1;
738pub const G_TLS_CERTIFICATE_BAD_IDENTITY: GTlsCertificateFlags = 2;
739pub const G_TLS_CERTIFICATE_NOT_ACTIVATED: GTlsCertificateFlags = 4;
740pub const G_TLS_CERTIFICATE_EXPIRED: GTlsCertificateFlags = 8;
741pub const G_TLS_CERTIFICATE_REVOKED: GTlsCertificateFlags = 16;
742pub const G_TLS_CERTIFICATE_INSECURE: GTlsCertificateFlags = 32;
743pub const G_TLS_CERTIFICATE_GENERIC_ERROR: GTlsCertificateFlags = 64;
744pub const G_TLS_CERTIFICATE_VALIDATE_ALL: GTlsCertificateFlags = 127;
745
746pub type GTlsDatabaseVerifyFlags = c_uint;
747pub const G_TLS_DATABASE_VERIFY_NONE: GTlsDatabaseVerifyFlags = 0;
748
749pub type GTlsPasswordFlags = c_uint;
750pub const G_TLS_PASSWORD_NONE: GTlsPasswordFlags = 0;
751pub const G_TLS_PASSWORD_RETRY: GTlsPasswordFlags = 2;
752pub const G_TLS_PASSWORD_MANY_TRIES: GTlsPasswordFlags = 4;
753pub const G_TLS_PASSWORD_FINAL_TRY: GTlsPasswordFlags = 8;
754pub const G_TLS_PASSWORD_PKCS11_USER: GTlsPasswordFlags = 16;
755pub const G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER: GTlsPasswordFlags = 32;
756pub const G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC: GTlsPasswordFlags = 64;
757
758pub type GAsyncReadyCallback =
760 Option<unsafe extern "C" fn(*mut gobject::GObject, *mut GAsyncResult, gpointer)>;
761pub type GBusAcquiredCallback =
762 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
763pub type GBusNameAcquiredCallback =
764 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
765pub type GBusNameAppearedCallback =
766 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, *const c_char, gpointer)>;
767pub type GBusNameLostCallback =
768 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
769pub type GBusNameVanishedCallback =
770 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
771pub type GCancellableSourceFunc =
772 Option<unsafe extern "C" fn(*mut GCancellable, gpointer) -> gboolean>;
773pub type GDBusInterfaceGetPropertyFunc = Option<
774 unsafe extern "C" fn(
775 *mut GDBusConnection,
776 *const c_char,
777 *const c_char,
778 *const c_char,
779 *const c_char,
780 *mut *mut glib::GError,
781 gpointer,
782 ) -> *mut glib::GVariant,
783>;
784pub type GDBusInterfaceMethodCallFunc = Option<
785 unsafe extern "C" fn(
786 *mut GDBusConnection,
787 *const c_char,
788 *const c_char,
789 *const c_char,
790 *const c_char,
791 *mut glib::GVariant,
792 *mut GDBusMethodInvocation,
793 gpointer,
794 ),
795>;
796pub type GDBusInterfaceSetPropertyFunc = Option<
797 unsafe extern "C" fn(
798 *mut GDBusConnection,
799 *const c_char,
800 *const c_char,
801 *const c_char,
802 *const c_char,
803 *mut glib::GVariant,
804 *mut *mut glib::GError,
805 gpointer,
806 ) -> gboolean,
807>;
808pub type GDBusMessageFilterFunction = Option<
809 unsafe extern "C" fn(
810 *mut GDBusConnection,
811 *mut GDBusMessage,
812 gboolean,
813 gpointer,
814 ) -> *mut GDBusMessage,
815>;
816pub type GDBusProxyTypeFunc = Option<
817 unsafe extern "C" fn(
818 *mut GDBusObjectManagerClient,
819 *const c_char,
820 *const c_char,
821 gpointer,
822 ) -> GType,
823>;
824pub type GDBusSignalCallback = Option<
825 unsafe extern "C" fn(
826 *mut GDBusConnection,
827 *const c_char,
828 *const c_char,
829 *const c_char,
830 *const c_char,
831 *mut glib::GVariant,
832 gpointer,
833 ),
834>;
835pub type GDBusSubtreeDispatchFunc = Option<
836 unsafe extern "C" fn(
837 *mut GDBusConnection,
838 *const c_char,
839 *const c_char,
840 *const c_char,
841 *const c_char,
842 *mut gpointer,
843 gpointer,
844 ) -> *const GDBusInterfaceVTable,
845>;
846pub type GDBusSubtreeEnumerateFunc = Option<
847 unsafe extern "C" fn(
848 *mut GDBusConnection,
849 *const c_char,
850 *const c_char,
851 gpointer,
852 ) -> *mut *mut c_char,
853>;
854pub type GDBusSubtreeIntrospectFunc = Option<
855 unsafe extern "C" fn(
856 *mut GDBusConnection,
857 *const c_char,
858 *const c_char,
859 *const c_char,
860 gpointer,
861 ) -> *mut *mut GDBusInterfaceInfo,
862>;
863pub type GDatagramBasedSourceFunc =
864 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition, gpointer) -> gboolean>;
865pub type GDesktopAppLaunchCallback =
866 Option<unsafe extern "C" fn(*mut GDesktopAppInfo, glib::GPid, gpointer)>;
867pub type GFileMeasureProgressCallback =
868 Option<unsafe extern "C" fn(gboolean, u64, u64, u64, gpointer)>;
869pub type GFileProgressCallback = Option<unsafe extern "C" fn(i64, i64, gpointer)>;
870pub type GFileReadMoreCallback =
871 Option<unsafe extern "C" fn(*const c_char, i64, gpointer) -> gboolean>;
872pub type GIOSchedulerJobFunc =
873 Option<unsafe extern "C" fn(*mut GIOSchedulerJob, *mut GCancellable, gpointer) -> gboolean>;
874pub type GPollableSourceFunc =
875 Option<unsafe extern "C" fn(*mut gobject::GObject, gpointer) -> gboolean>;
876pub type GReallocFunc = Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>;
877pub type GSettingsBindGetMapping =
878 Option<unsafe extern "C" fn(*mut gobject::GValue, *mut glib::GVariant, gpointer) -> gboolean>;
879pub type GSettingsBindSetMapping = Option<
880 unsafe extern "C" fn(
881 *const gobject::GValue,
882 *const glib::GVariantType,
883 gpointer,
884 ) -> *mut glib::GVariant,
885>;
886pub type GSettingsGetMapping =
887 Option<unsafe extern "C" fn(*mut glib::GVariant, *mut gpointer, gpointer) -> gboolean>;
888pub type GSimpleAsyncThreadFunc =
889 Option<unsafe extern "C" fn(*mut GSimpleAsyncResult, *mut gobject::GObject, *mut GCancellable)>;
890pub type GSocketSourceFunc =
891 Option<unsafe extern "C" fn(*mut GSocket, glib::GIOCondition, gpointer) -> gboolean>;
892pub type GTaskThreadFunc =
893 Option<unsafe extern "C" fn(*mut GTask, *mut gobject::GObject, gpointer, *mut GCancellable)>;
894pub type GVfsFileLookupFunc =
895 Option<unsafe extern "C" fn(*mut GVfs, *const c_char, gpointer) -> *mut GFile>;
896
897#[derive(Copy, Clone)]
899#[repr(C)]
900pub struct GActionEntry {
901 pub name: *const c_char,
902 pub activate: Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
903 pub parameter_type: *const c_char,
904 pub state: *const c_char,
905 pub change_state:
906 Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
907 pub padding: [size_t; 3],
908}
909
910impl ::std::fmt::Debug for GActionEntry {
911 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
912 f.debug_struct(&format!("GActionEntry @ {self:p}"))
913 .field("name", &self.name)
914 .field("activate", &self.activate)
915 .field("parameter_type", &self.parameter_type)
916 .field("state", &self.state)
917 .field("change_state", &self.change_state)
918 .finish()
919 }
920}
921
922#[derive(Copy, Clone)]
923#[repr(C)]
924pub struct GActionGroupInterface {
925 pub g_iface: gobject::GTypeInterface,
926 pub has_action: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
927 pub list_actions: Option<unsafe extern "C" fn(*mut GActionGroup) -> *mut *mut c_char>,
928 pub get_action_enabled:
929 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
930 pub get_action_parameter_type:
931 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
932 pub get_action_state_type:
933 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
934 pub get_action_state_hint:
935 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
936 pub get_action_state:
937 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
938 pub change_action_state:
939 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
940 pub activate_action:
941 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
942 pub action_added: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
943 pub action_removed: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
944 pub action_enabled_changed:
945 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, gboolean)>,
946 pub action_state_changed:
947 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
948 pub query_action: Option<
949 unsafe extern "C" fn(
950 *mut GActionGroup,
951 *const c_char,
952 *mut gboolean,
953 *mut *const glib::GVariantType,
954 *mut *const glib::GVariantType,
955 *mut *mut glib::GVariant,
956 *mut *mut glib::GVariant,
957 ) -> gboolean,
958 >,
959}
960
961impl ::std::fmt::Debug for GActionGroupInterface {
962 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
963 f.debug_struct(&format!("GActionGroupInterface @ {self:p}"))
964 .field("g_iface", &self.g_iface)
965 .field("has_action", &self.has_action)
966 .field("list_actions", &self.list_actions)
967 .field("get_action_enabled", &self.get_action_enabled)
968 .field("get_action_parameter_type", &self.get_action_parameter_type)
969 .field("get_action_state_type", &self.get_action_state_type)
970 .field("get_action_state_hint", &self.get_action_state_hint)
971 .field("get_action_state", &self.get_action_state)
972 .field("change_action_state", &self.change_action_state)
973 .field("activate_action", &self.activate_action)
974 .field("action_added", &self.action_added)
975 .field("action_removed", &self.action_removed)
976 .field("action_enabled_changed", &self.action_enabled_changed)
977 .field("action_state_changed", &self.action_state_changed)
978 .field("query_action", &self.query_action)
979 .finish()
980 }
981}
982
983#[derive(Copy, Clone)]
984#[repr(C)]
985pub struct GActionInterface {
986 pub g_iface: gobject::GTypeInterface,
987 pub get_name: Option<unsafe extern "C" fn(*mut GAction) -> *const c_char>,
988 pub get_parameter_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
989 pub get_state_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
990 pub get_state_hint: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
991 pub get_enabled: Option<unsafe extern "C" fn(*mut GAction) -> gboolean>,
992 pub get_state: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
993 pub change_state: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
994 pub activate: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
995}
996
997impl ::std::fmt::Debug for GActionInterface {
998 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
999 f.debug_struct(&format!("GActionInterface @ {self:p}"))
1000 .field("g_iface", &self.g_iface)
1001 .field("get_name", &self.get_name)
1002 .field("get_parameter_type", &self.get_parameter_type)
1003 .field("get_state_type", &self.get_state_type)
1004 .field("get_state_hint", &self.get_state_hint)
1005 .field("get_enabled", &self.get_enabled)
1006 .field("get_state", &self.get_state)
1007 .field("change_state", &self.change_state)
1008 .field("activate", &self.activate)
1009 .finish()
1010 }
1011}
1012
1013#[derive(Copy, Clone)]
1014#[repr(C)]
1015pub struct GActionMapInterface {
1016 pub g_iface: gobject::GTypeInterface,
1017 pub lookup_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char) -> *mut GAction>,
1018 pub add_action: Option<unsafe extern "C" fn(*mut GActionMap, *mut GAction)>,
1019 pub remove_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char)>,
1020}
1021
1022impl ::std::fmt::Debug for GActionMapInterface {
1023 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1024 f.debug_struct(&format!("GActionMapInterface @ {self:p}"))
1025 .field("g_iface", &self.g_iface)
1026 .field("lookup_action", &self.lookup_action)
1027 .field("add_action", &self.add_action)
1028 .field("remove_action", &self.remove_action)
1029 .finish()
1030 }
1031}
1032
1033#[derive(Copy, Clone)]
1034#[repr(C)]
1035pub struct GAppInfoIface {
1036 pub g_iface: gobject::GTypeInterface,
1037 pub dup: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GAppInfo>,
1038 pub equal: Option<unsafe extern "C" fn(*mut GAppInfo, *mut GAppInfo) -> gboolean>,
1039 pub get_id: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1040 pub get_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1041 pub get_description: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1042 pub get_executable: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1043 pub get_icon: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GIcon>,
1044 pub launch: Option<
1045 unsafe extern "C" fn(
1046 *mut GAppInfo,
1047 *mut glib::GList,
1048 *mut GAppLaunchContext,
1049 *mut *mut glib::GError,
1050 ) -> gboolean,
1051 >,
1052 pub supports_uris: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1053 pub supports_files: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1054 pub launch_uris: 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 should_show: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1063 pub set_as_default_for_type: Option<
1064 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1065 >,
1066 pub set_as_default_for_extension: Option<
1067 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1068 >,
1069 pub add_supports_type: Option<
1070 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1071 >,
1072 pub can_remove_supports_type: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1073 pub remove_supports_type: Option<
1074 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1075 >,
1076 pub can_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1077 pub do_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1078 pub get_commandline: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1079 pub get_display_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1080 pub set_as_last_used_for_type: Option<
1081 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1082 >,
1083 pub get_supported_types: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut *const c_char>,
1084 pub launch_uris_async: Option<
1085 unsafe extern "C" fn(
1086 *mut GAppInfo,
1087 *mut glib::GList,
1088 *mut GAppLaunchContext,
1089 *mut GCancellable,
1090 GAsyncReadyCallback,
1091 gpointer,
1092 ),
1093 >,
1094 pub launch_uris_finish: Option<
1095 unsafe extern "C" fn(*mut GAppInfo, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
1096 >,
1097}
1098
1099impl ::std::fmt::Debug for GAppInfoIface {
1100 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1101 f.debug_struct(&format!("GAppInfoIface @ {self:p}"))
1102 .field("g_iface", &self.g_iface)
1103 .field("dup", &self.dup)
1104 .field("equal", &self.equal)
1105 .field("get_id", &self.get_id)
1106 .field("get_name", &self.get_name)
1107 .field("get_description", &self.get_description)
1108 .field("get_executable", &self.get_executable)
1109 .field("get_icon", &self.get_icon)
1110 .field("launch", &self.launch)
1111 .field("supports_uris", &self.supports_uris)
1112 .field("supports_files", &self.supports_files)
1113 .field("launch_uris", &self.launch_uris)
1114 .field("should_show", &self.should_show)
1115 .field("set_as_default_for_type", &self.set_as_default_for_type)
1116 .field(
1117 "set_as_default_for_extension",
1118 &self.set_as_default_for_extension,
1119 )
1120 .field("add_supports_type", &self.add_supports_type)
1121 .field("can_remove_supports_type", &self.can_remove_supports_type)
1122 .field("remove_supports_type", &self.remove_supports_type)
1123 .field("can_delete", &self.can_delete)
1124 .field("do_delete", &self.do_delete)
1125 .field("get_commandline", &self.get_commandline)
1126 .field("get_display_name", &self.get_display_name)
1127 .field("set_as_last_used_for_type", &self.set_as_last_used_for_type)
1128 .field("get_supported_types", &self.get_supported_types)
1129 .field("launch_uris_async", &self.launch_uris_async)
1130 .field("launch_uris_finish", &self.launch_uris_finish)
1131 .finish()
1132 }
1133}
1134
1135#[derive(Copy, Clone)]
1136#[repr(C)]
1137pub struct GAppLaunchContextClass {
1138 pub parent_class: gobject::GObjectClass,
1139 pub get_display: Option<
1140 unsafe extern "C" fn(
1141 *mut GAppLaunchContext,
1142 *mut GAppInfo,
1143 *mut glib::GList,
1144 ) -> *mut c_char,
1145 >,
1146 pub get_startup_notify_id: Option<
1147 unsafe extern "C" fn(
1148 *mut GAppLaunchContext,
1149 *mut GAppInfo,
1150 *mut glib::GList,
1151 ) -> *mut c_char,
1152 >,
1153 pub launch_failed: Option<unsafe extern "C" fn(*mut GAppLaunchContext, *const c_char)>,
1154 pub launched:
1155 Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
1156 pub launch_started:
1157 Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
1158 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1159 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1160 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1161}
1162
1163impl ::std::fmt::Debug for GAppLaunchContextClass {
1164 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1165 f.debug_struct(&format!("GAppLaunchContextClass @ {self:p}"))
1166 .field("parent_class", &self.parent_class)
1167 .field("get_display", &self.get_display)
1168 .field("get_startup_notify_id", &self.get_startup_notify_id)
1169 .field("launch_failed", &self.launch_failed)
1170 .field("launched", &self.launched)
1171 .field("launch_started", &self.launch_started)
1172 .field("_g_reserved1", &self._g_reserved1)
1173 .field("_g_reserved2", &self._g_reserved2)
1174 .field("_g_reserved3", &self._g_reserved3)
1175 .finish()
1176 }
1177}
1178
1179#[repr(C)]
1180#[allow(dead_code)]
1181pub struct _GAppLaunchContextPrivate {
1182 _data: [u8; 0],
1183 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1184}
1185
1186pub type GAppLaunchContextPrivate = _GAppLaunchContextPrivate;
1187
1188#[derive(Copy, Clone)]
1189#[repr(C)]
1190pub struct GApplicationClass {
1191 pub parent_class: gobject::GObjectClass,
1192 pub startup: Option<unsafe extern "C" fn(*mut GApplication)>,
1193 pub activate: Option<unsafe extern "C" fn(*mut GApplication)>,
1194 pub open:
1195 Option<unsafe extern "C" fn(*mut GApplication, *mut *mut GFile, c_int, *const c_char)>,
1196 pub command_line:
1197 Option<unsafe extern "C" fn(*mut GApplication, *mut GApplicationCommandLine) -> c_int>,
1198 pub local_command_line: Option<
1199 unsafe extern "C" fn(*mut GApplication, *mut *mut *mut c_char, *mut c_int) -> gboolean,
1200 >,
1201 pub before_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1202 pub after_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1203 pub add_platform_data:
1204 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantBuilder)>,
1205 pub quit_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1206 pub run_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1207 pub shutdown: Option<unsafe extern "C" fn(*mut GApplication)>,
1208 pub dbus_register: Option<
1209 unsafe extern "C" fn(
1210 *mut GApplication,
1211 *mut GDBusConnection,
1212 *const c_char,
1213 *mut *mut glib::GError,
1214 ) -> gboolean,
1215 >,
1216 pub dbus_unregister:
1217 Option<unsafe extern "C" fn(*mut GApplication, *mut GDBusConnection, *const c_char)>,
1218 pub handle_local_options:
1219 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantDict) -> c_int>,
1220 pub name_lost: Option<unsafe extern "C" fn(*mut GApplication) -> gboolean>,
1221 pub padding: [gpointer; 7],
1222}
1223
1224impl ::std::fmt::Debug for GApplicationClass {
1225 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1226 f.debug_struct(&format!("GApplicationClass @ {self:p}"))
1227 .field("startup", &self.startup)
1228 .field("activate", &self.activate)
1229 .field("open", &self.open)
1230 .field("command_line", &self.command_line)
1231 .field("local_command_line", &self.local_command_line)
1232 .field("before_emit", &self.before_emit)
1233 .field("after_emit", &self.after_emit)
1234 .field("add_platform_data", &self.add_platform_data)
1235 .field("quit_mainloop", &self.quit_mainloop)
1236 .field("run_mainloop", &self.run_mainloop)
1237 .field("shutdown", &self.shutdown)
1238 .field("dbus_register", &self.dbus_register)
1239 .field("dbus_unregister", &self.dbus_unregister)
1240 .field("handle_local_options", &self.handle_local_options)
1241 .field("name_lost", &self.name_lost)
1242 .finish()
1243 }
1244}
1245
1246#[derive(Copy, Clone)]
1247#[repr(C)]
1248pub struct GApplicationCommandLineClass {
1249 pub parent_class: gobject::GObjectClass,
1250 pub print_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1251 pub printerr_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1252 pub get_stdin: Option<unsafe extern "C" fn(*mut GApplicationCommandLine) -> *mut GInputStream>,
1253 pub done: Option<unsafe extern "C" fn(*mut GApplicationCommandLine)>,
1254 pub padding: [gpointer; 10],
1255}
1256
1257impl ::std::fmt::Debug for GApplicationCommandLineClass {
1258 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1259 f.debug_struct(&format!("GApplicationCommandLineClass @ {self:p}"))
1260 .field("print_literal", &self.print_literal)
1261 .field("printerr_literal", &self.printerr_literal)
1262 .field("get_stdin", &self.get_stdin)
1263 .field("done", &self.done)
1264 .finish()
1265 }
1266}
1267
1268#[repr(C)]
1269#[allow(dead_code)]
1270pub struct _GApplicationCommandLinePrivate {
1271 _data: [u8; 0],
1272 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1273}
1274
1275pub type GApplicationCommandLinePrivate = _GApplicationCommandLinePrivate;
1276
1277#[repr(C)]
1278#[allow(dead_code)]
1279pub struct _GApplicationPrivate {
1280 _data: [u8; 0],
1281 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1282}
1283
1284pub type GApplicationPrivate = _GApplicationPrivate;
1285
1286#[derive(Copy, Clone)]
1287#[repr(C)]
1288pub struct GAsyncInitableIface {
1289 pub g_iface: gobject::GTypeInterface,
1290 pub init_async: Option<
1291 unsafe extern "C" fn(
1292 *mut GAsyncInitable,
1293 c_int,
1294 *mut GCancellable,
1295 GAsyncReadyCallback,
1296 gpointer,
1297 ),
1298 >,
1299 pub init_finish: Option<
1300 unsafe extern "C" fn(
1301 *mut GAsyncInitable,
1302 *mut GAsyncResult,
1303 *mut *mut glib::GError,
1304 ) -> gboolean,
1305 >,
1306}
1307
1308impl ::std::fmt::Debug for GAsyncInitableIface {
1309 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1310 f.debug_struct(&format!("GAsyncInitableIface @ {self:p}"))
1311 .field("g_iface", &self.g_iface)
1312 .field("init_async", &self.init_async)
1313 .field("init_finish", &self.init_finish)
1314 .finish()
1315 }
1316}
1317
1318#[derive(Copy, Clone)]
1319#[repr(C)]
1320pub struct GAsyncResultIface {
1321 pub g_iface: gobject::GTypeInterface,
1322 pub get_user_data: Option<unsafe extern "C" fn(*mut GAsyncResult) -> gpointer>,
1323 pub get_source_object: Option<unsafe extern "C" fn(*mut GAsyncResult) -> *mut gobject::GObject>,
1324 pub is_tagged: Option<unsafe extern "C" fn(*mut GAsyncResult, gpointer) -> gboolean>,
1325}
1326
1327impl ::std::fmt::Debug for GAsyncResultIface {
1328 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1329 f.debug_struct(&format!("GAsyncResultIface @ {self:p}"))
1330 .field("g_iface", &self.g_iface)
1331 .field("get_user_data", &self.get_user_data)
1332 .field("get_source_object", &self.get_source_object)
1333 .field("is_tagged", &self.is_tagged)
1334 .finish()
1335 }
1336}
1337
1338#[derive(Copy, Clone)]
1339#[repr(C)]
1340pub struct GBufferedInputStreamClass {
1341 pub parent_class: GFilterInputStreamClass,
1342 pub fill: Option<
1343 unsafe extern "C" fn(
1344 *mut GBufferedInputStream,
1345 ssize_t,
1346 *mut GCancellable,
1347 *mut *mut glib::GError,
1348 ) -> ssize_t,
1349 >,
1350 pub fill_async: Option<
1351 unsafe extern "C" fn(
1352 *mut GBufferedInputStream,
1353 ssize_t,
1354 c_int,
1355 *mut GCancellable,
1356 GAsyncReadyCallback,
1357 gpointer,
1358 ),
1359 >,
1360 pub fill_finish: Option<
1361 unsafe extern "C" fn(
1362 *mut GBufferedInputStream,
1363 *mut GAsyncResult,
1364 *mut *mut glib::GError,
1365 ) -> ssize_t,
1366 >,
1367 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1368 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1369 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1370 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1371 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1372}
1373
1374impl ::std::fmt::Debug for GBufferedInputStreamClass {
1375 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1376 f.debug_struct(&format!("GBufferedInputStreamClass @ {self:p}"))
1377 .field("parent_class", &self.parent_class)
1378 .field("fill", &self.fill)
1379 .field("fill_async", &self.fill_async)
1380 .field("fill_finish", &self.fill_finish)
1381 .field("_g_reserved1", &self._g_reserved1)
1382 .field("_g_reserved2", &self._g_reserved2)
1383 .field("_g_reserved3", &self._g_reserved3)
1384 .field("_g_reserved4", &self._g_reserved4)
1385 .field("_g_reserved5", &self._g_reserved5)
1386 .finish()
1387 }
1388}
1389
1390#[repr(C)]
1391#[allow(dead_code)]
1392pub struct _GBufferedInputStreamPrivate {
1393 _data: [u8; 0],
1394 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1395}
1396
1397pub type GBufferedInputStreamPrivate = _GBufferedInputStreamPrivate;
1398
1399#[derive(Copy, Clone)]
1400#[repr(C)]
1401pub struct GBufferedOutputStreamClass {
1402 pub parent_class: GFilterOutputStreamClass,
1403 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1404 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1405}
1406
1407impl ::std::fmt::Debug for GBufferedOutputStreamClass {
1408 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1409 f.debug_struct(&format!("GBufferedOutputStreamClass @ {self:p}"))
1410 .field("parent_class", &self.parent_class)
1411 .field("_g_reserved1", &self._g_reserved1)
1412 .field("_g_reserved2", &self._g_reserved2)
1413 .finish()
1414 }
1415}
1416
1417#[repr(C)]
1418#[allow(dead_code)]
1419pub struct _GBufferedOutputStreamPrivate {
1420 _data: [u8; 0],
1421 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1422}
1423
1424pub type GBufferedOutputStreamPrivate = _GBufferedOutputStreamPrivate;
1425
1426#[derive(Copy, Clone)]
1427#[repr(C)]
1428pub struct GCancellableClass {
1429 pub parent_class: gobject::GObjectClass,
1430 pub cancelled: Option<unsafe extern "C" fn(*mut GCancellable)>,
1431 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1432 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1433 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1434 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1435 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1436}
1437
1438impl ::std::fmt::Debug for GCancellableClass {
1439 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1440 f.debug_struct(&format!("GCancellableClass @ {self:p}"))
1441 .field("parent_class", &self.parent_class)
1442 .field("cancelled", &self.cancelled)
1443 .field("_g_reserved1", &self._g_reserved1)
1444 .field("_g_reserved2", &self._g_reserved2)
1445 .field("_g_reserved3", &self._g_reserved3)
1446 .field("_g_reserved4", &self._g_reserved4)
1447 .field("_g_reserved5", &self._g_reserved5)
1448 .finish()
1449 }
1450}
1451
1452#[repr(C)]
1453#[allow(dead_code)]
1454pub struct _GCancellablePrivate {
1455 _data: [u8; 0],
1456 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1457}
1458
1459pub type GCancellablePrivate = _GCancellablePrivate;
1460
1461#[derive(Copy, Clone)]
1462#[repr(C)]
1463pub struct GCharsetConverterClass {
1464 pub parent_class: gobject::GObjectClass,
1465}
1466
1467impl ::std::fmt::Debug for GCharsetConverterClass {
1468 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1469 f.debug_struct(&format!("GCharsetConverterClass @ {self:p}"))
1470 .field("parent_class", &self.parent_class)
1471 .finish()
1472 }
1473}
1474
1475#[derive(Copy, Clone)]
1476#[repr(C)]
1477pub struct GConverterIface {
1478 pub g_iface: gobject::GTypeInterface,
1479 pub convert: Option<
1480 unsafe extern "C" fn(
1481 *mut GConverter,
1482 *mut u8,
1483 size_t,
1484 *mut u8,
1485 size_t,
1486 GConverterFlags,
1487 *mut size_t,
1488 *mut size_t,
1489 *mut *mut glib::GError,
1490 ) -> GConverterResult,
1491 >,
1492 pub reset: Option<unsafe extern "C" fn(*mut GConverter)>,
1493}
1494
1495impl ::std::fmt::Debug for GConverterIface {
1496 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1497 f.debug_struct(&format!("GConverterIface @ {self:p}"))
1498 .field("g_iface", &self.g_iface)
1499 .field("convert", &self.convert)
1500 .field("reset", &self.reset)
1501 .finish()
1502 }
1503}
1504
1505#[derive(Copy, Clone)]
1506#[repr(C)]
1507pub struct GConverterInputStreamClass {
1508 pub parent_class: GFilterInputStreamClass,
1509 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1510 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1511 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1512 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1513 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1514}
1515
1516impl ::std::fmt::Debug for GConverterInputStreamClass {
1517 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1518 f.debug_struct(&format!("GConverterInputStreamClass @ {self:p}"))
1519 .field("parent_class", &self.parent_class)
1520 .field("_g_reserved1", &self._g_reserved1)
1521 .field("_g_reserved2", &self._g_reserved2)
1522 .field("_g_reserved3", &self._g_reserved3)
1523 .field("_g_reserved4", &self._g_reserved4)
1524 .field("_g_reserved5", &self._g_reserved5)
1525 .finish()
1526 }
1527}
1528
1529#[repr(C)]
1530#[allow(dead_code)]
1531pub struct _GConverterInputStreamPrivate {
1532 _data: [u8; 0],
1533 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1534}
1535
1536pub type GConverterInputStreamPrivate = _GConverterInputStreamPrivate;
1537
1538#[derive(Copy, Clone)]
1539#[repr(C)]
1540pub struct GConverterOutputStreamClass {
1541 pub parent_class: GFilterOutputStreamClass,
1542 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1543 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1544 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1545 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1546 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1547}
1548
1549impl ::std::fmt::Debug for GConverterOutputStreamClass {
1550 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1551 f.debug_struct(&format!("GConverterOutputStreamClass @ {self:p}"))
1552 .field("parent_class", &self.parent_class)
1553 .field("_g_reserved1", &self._g_reserved1)
1554 .field("_g_reserved2", &self._g_reserved2)
1555 .field("_g_reserved3", &self._g_reserved3)
1556 .field("_g_reserved4", &self._g_reserved4)
1557 .field("_g_reserved5", &self._g_reserved5)
1558 .finish()
1559 }
1560}
1561
1562#[repr(C)]
1563#[allow(dead_code)]
1564pub struct _GConverterOutputStreamPrivate {
1565 _data: [u8; 0],
1566 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1567}
1568
1569pub type GConverterOutputStreamPrivate = _GConverterOutputStreamPrivate;
1570
1571#[repr(C)]
1572#[allow(dead_code)]
1573pub struct _GCredentialsClass {
1574 _data: [u8; 0],
1575 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1576}
1577
1578pub type GCredentialsClass = _GCredentialsClass;
1579
1580#[derive(Copy, Clone)]
1581#[repr(C)]
1582pub struct GDBusAnnotationInfo {
1583 pub ref_count: c_int,
1584 pub key: *mut c_char,
1585 pub value: *mut c_char,
1586 pub annotations: *mut *mut GDBusAnnotationInfo,
1587}
1588
1589impl ::std::fmt::Debug for GDBusAnnotationInfo {
1590 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1591 f.debug_struct(&format!("GDBusAnnotationInfo @ {self:p}"))
1592 .field("ref_count", &self.ref_count)
1593 .field("key", &self.key)
1594 .field("value", &self.value)
1595 .field("annotations", &self.annotations)
1596 .finish()
1597 }
1598}
1599
1600#[derive(Copy, Clone)]
1601#[repr(C)]
1602pub struct GDBusArgInfo {
1603 pub ref_count: c_int,
1604 pub name: *mut c_char,
1605 pub signature: *mut c_char,
1606 pub annotations: *mut *mut GDBusAnnotationInfo,
1607}
1608
1609impl ::std::fmt::Debug for GDBusArgInfo {
1610 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1611 f.debug_struct(&format!("GDBusArgInfo @ {self:p}"))
1612 .field("ref_count", &self.ref_count)
1613 .field("name", &self.name)
1614 .field("signature", &self.signature)
1615 .field("annotations", &self.annotations)
1616 .finish()
1617 }
1618}
1619
1620#[derive(Copy, Clone)]
1621#[repr(C)]
1622pub struct GDBusErrorEntry {
1623 pub error_code: c_int,
1624 pub dbus_error_name: *const c_char,
1625}
1626
1627impl ::std::fmt::Debug for GDBusErrorEntry {
1628 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1629 f.debug_struct(&format!("GDBusErrorEntry @ {self:p}"))
1630 .field("error_code", &self.error_code)
1631 .field("dbus_error_name", &self.dbus_error_name)
1632 .finish()
1633 }
1634}
1635
1636#[derive(Copy, Clone)]
1637#[repr(C)]
1638pub struct GDBusInterfaceIface {
1639 pub parent_iface: gobject::GTypeInterface,
1640 pub get_info: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusInterfaceInfo>,
1641 pub get_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1642 pub set_object: Option<unsafe extern "C" fn(*mut GDBusInterface, *mut GDBusObject)>,
1643 pub dup_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1644}
1645
1646impl ::std::fmt::Debug for GDBusInterfaceIface {
1647 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1648 f.debug_struct(&format!("GDBusInterfaceIface @ {self:p}"))
1649 .field("parent_iface", &self.parent_iface)
1650 .field("get_info", &self.get_info)
1651 .field("get_object", &self.get_object)
1652 .field("set_object", &self.set_object)
1653 .field("dup_object", &self.dup_object)
1654 .finish()
1655 }
1656}
1657
1658#[derive(Copy, Clone)]
1659#[repr(C)]
1660pub struct GDBusInterfaceInfo {
1661 pub ref_count: c_int,
1662 pub name: *mut c_char,
1663 pub methods: *mut *mut GDBusMethodInfo,
1664 pub signals: *mut *mut GDBusSignalInfo,
1665 pub properties: *mut *mut GDBusPropertyInfo,
1666 pub annotations: *mut *mut GDBusAnnotationInfo,
1667}
1668
1669impl ::std::fmt::Debug for GDBusInterfaceInfo {
1670 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1671 f.debug_struct(&format!("GDBusInterfaceInfo @ {self:p}"))
1672 .field("ref_count", &self.ref_count)
1673 .field("name", &self.name)
1674 .field("methods", &self.methods)
1675 .field("signals", &self.signals)
1676 .field("properties", &self.properties)
1677 .field("annotations", &self.annotations)
1678 .finish()
1679 }
1680}
1681
1682#[derive(Copy, Clone)]
1683#[repr(C)]
1684pub struct GDBusInterfaceSkeletonClass {
1685 pub parent_class: gobject::GObjectClass,
1686 pub get_info:
1687 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo>,
1688 pub get_vtable:
1689 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable>,
1690 pub get_properties:
1691 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut glib::GVariant>,
1692 pub flush: Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton)>,
1693 pub vfunc_padding: [gpointer; 8],
1694 pub g_authorize_method: Option<
1695 unsafe extern "C" fn(*mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean,
1696 >,
1697 pub signal_padding: [gpointer; 8],
1698}
1699
1700impl ::std::fmt::Debug for GDBusInterfaceSkeletonClass {
1701 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1702 f.debug_struct(&format!("GDBusInterfaceSkeletonClass @ {self:p}"))
1703 .field("parent_class", &self.parent_class)
1704 .field("get_info", &self.get_info)
1705 .field("get_vtable", &self.get_vtable)
1706 .field("get_properties", &self.get_properties)
1707 .field("flush", &self.flush)
1708 .field("g_authorize_method", &self.g_authorize_method)
1709 .finish()
1710 }
1711}
1712
1713#[repr(C)]
1714#[allow(dead_code)]
1715pub struct _GDBusInterfaceSkeletonPrivate {
1716 _data: [u8; 0],
1717 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1718}
1719
1720pub type GDBusInterfaceSkeletonPrivate = _GDBusInterfaceSkeletonPrivate;
1721
1722#[derive(Copy, Clone)]
1723#[repr(C)]
1724pub struct GDBusInterfaceVTable {
1725 pub method_call: GDBusInterfaceMethodCallFunc,
1726 pub get_property: GDBusInterfaceGetPropertyFunc,
1727 pub set_property: GDBusInterfaceSetPropertyFunc,
1728 pub padding: [gpointer; 8],
1729}
1730
1731impl ::std::fmt::Debug for GDBusInterfaceVTable {
1732 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1733 f.debug_struct(&format!("GDBusInterfaceVTable @ {self:p}"))
1734 .field("method_call", &self.method_call)
1735 .field("get_property", &self.get_property)
1736 .field("set_property", &self.set_property)
1737 .finish()
1738 }
1739}
1740
1741#[derive(Copy, Clone)]
1742#[repr(C)]
1743pub struct GDBusMethodInfo {
1744 pub ref_count: c_int,
1745 pub name: *mut c_char,
1746 pub in_args: *mut *mut GDBusArgInfo,
1747 pub out_args: *mut *mut GDBusArgInfo,
1748 pub annotations: *mut *mut GDBusAnnotationInfo,
1749}
1750
1751impl ::std::fmt::Debug for GDBusMethodInfo {
1752 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1753 f.debug_struct(&format!("GDBusMethodInfo @ {self:p}"))
1754 .field("ref_count", &self.ref_count)
1755 .field("name", &self.name)
1756 .field("in_args", &self.in_args)
1757 .field("out_args", &self.out_args)
1758 .field("annotations", &self.annotations)
1759 .finish()
1760 }
1761}
1762
1763#[derive(Copy, Clone)]
1764#[repr(C)]
1765pub struct GDBusNodeInfo {
1766 pub ref_count: c_int,
1767 pub path: *mut c_char,
1768 pub interfaces: *mut *mut GDBusInterfaceInfo,
1769 pub nodes: *mut *mut GDBusNodeInfo,
1770 pub annotations: *mut *mut GDBusAnnotationInfo,
1771}
1772
1773impl ::std::fmt::Debug for GDBusNodeInfo {
1774 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1775 f.debug_struct(&format!("GDBusNodeInfo @ {self:p}"))
1776 .field("ref_count", &self.ref_count)
1777 .field("path", &self.path)
1778 .field("interfaces", &self.interfaces)
1779 .field("nodes", &self.nodes)
1780 .field("annotations", &self.annotations)
1781 .finish()
1782 }
1783}
1784
1785#[derive(Copy, Clone)]
1786#[repr(C)]
1787pub struct GDBusObjectIface {
1788 pub parent_iface: gobject::GTypeInterface,
1789 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObject) -> *const c_char>,
1790 pub get_interfaces: Option<unsafe extern "C" fn(*mut GDBusObject) -> *mut glib::GList>,
1791 pub get_interface:
1792 Option<unsafe extern "C" fn(*mut GDBusObject, *const c_char) -> *mut GDBusInterface>,
1793 pub interface_added: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1794 pub interface_removed: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1795}
1796
1797impl ::std::fmt::Debug for GDBusObjectIface {
1798 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1799 f.debug_struct(&format!("GDBusObjectIface @ {self:p}"))
1800 .field("parent_iface", &self.parent_iface)
1801 .field("get_object_path", &self.get_object_path)
1802 .field("get_interfaces", &self.get_interfaces)
1803 .field("get_interface", &self.get_interface)
1804 .field("interface_added", &self.interface_added)
1805 .field("interface_removed", &self.interface_removed)
1806 .finish()
1807 }
1808}
1809
1810#[derive(Copy, Clone)]
1811#[repr(C)]
1812pub struct GDBusObjectManagerClientClass {
1813 pub parent_class: gobject::GObjectClass,
1814 pub interface_proxy_signal: Option<
1815 unsafe extern "C" fn(
1816 *mut GDBusObjectManagerClient,
1817 *mut GDBusObjectProxy,
1818 *mut GDBusProxy,
1819 *const c_char,
1820 *const c_char,
1821 *mut glib::GVariant,
1822 ),
1823 >,
1824 pub interface_proxy_properties_changed: Option<
1825 unsafe extern "C" fn(
1826 *mut GDBusObjectManagerClient,
1827 *mut GDBusObjectProxy,
1828 *mut GDBusProxy,
1829 *mut glib::GVariant,
1830 *const *const c_char,
1831 ),
1832 >,
1833 pub padding: [gpointer; 8],
1834}
1835
1836impl ::std::fmt::Debug for GDBusObjectManagerClientClass {
1837 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1838 f.debug_struct(&format!("GDBusObjectManagerClientClass @ {self:p}"))
1839 .field("parent_class", &self.parent_class)
1840 .field("interface_proxy_signal", &self.interface_proxy_signal)
1841 .field(
1842 "interface_proxy_properties_changed",
1843 &self.interface_proxy_properties_changed,
1844 )
1845 .finish()
1846 }
1847}
1848
1849#[repr(C)]
1850#[allow(dead_code)]
1851pub struct _GDBusObjectManagerClientPrivate {
1852 _data: [u8; 0],
1853 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1854}
1855
1856pub type GDBusObjectManagerClientPrivate = _GDBusObjectManagerClientPrivate;
1857
1858#[derive(Copy, Clone)]
1859#[repr(C)]
1860pub struct GDBusObjectManagerIface {
1861 pub parent_iface: gobject::GTypeInterface,
1862 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *const c_char>,
1863 pub get_objects: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *mut glib::GList>,
1864 pub get_object:
1865 Option<unsafe extern "C" fn(*mut GDBusObjectManager, *const c_char) -> *mut GDBusObject>,
1866 pub get_interface: Option<
1867 unsafe extern "C" fn(
1868 *mut GDBusObjectManager,
1869 *const c_char,
1870 *const c_char,
1871 ) -> *mut GDBusInterface,
1872 >,
1873 pub object_added: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1874 pub object_removed: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1875 pub interface_added: Option<
1876 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1877 >,
1878 pub interface_removed: Option<
1879 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1880 >,
1881}
1882
1883impl ::std::fmt::Debug for GDBusObjectManagerIface {
1884 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1885 f.debug_struct(&format!("GDBusObjectManagerIface @ {self:p}"))
1886 .field("parent_iface", &self.parent_iface)
1887 .field("get_object_path", &self.get_object_path)
1888 .field("get_objects", &self.get_objects)
1889 .field("get_object", &self.get_object)
1890 .field("get_interface", &self.get_interface)
1891 .field("object_added", &self.object_added)
1892 .field("object_removed", &self.object_removed)
1893 .field("interface_added", &self.interface_added)
1894 .field("interface_removed", &self.interface_removed)
1895 .finish()
1896 }
1897}
1898
1899#[derive(Copy, Clone)]
1900#[repr(C)]
1901pub struct GDBusObjectManagerServerClass {
1902 pub parent_class: gobject::GObjectClass,
1903 pub padding: [gpointer; 8],
1904}
1905
1906impl ::std::fmt::Debug for GDBusObjectManagerServerClass {
1907 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1908 f.debug_struct(&format!("GDBusObjectManagerServerClass @ {self:p}"))
1909 .field("parent_class", &self.parent_class)
1910 .finish()
1911 }
1912}
1913
1914#[repr(C)]
1915#[allow(dead_code)]
1916pub struct _GDBusObjectManagerServerPrivate {
1917 _data: [u8; 0],
1918 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1919}
1920
1921pub type GDBusObjectManagerServerPrivate = _GDBusObjectManagerServerPrivate;
1922
1923#[derive(Copy, Clone)]
1924#[repr(C)]
1925pub struct GDBusObjectProxyClass {
1926 pub parent_class: gobject::GObjectClass,
1927 pub padding: [gpointer; 8],
1928}
1929
1930impl ::std::fmt::Debug for GDBusObjectProxyClass {
1931 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1932 f.debug_struct(&format!("GDBusObjectProxyClass @ {self:p}"))
1933 .field("parent_class", &self.parent_class)
1934 .finish()
1935 }
1936}
1937
1938#[repr(C)]
1939#[allow(dead_code)]
1940pub struct _GDBusObjectProxyPrivate {
1941 _data: [u8; 0],
1942 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1943}
1944
1945pub type GDBusObjectProxyPrivate = _GDBusObjectProxyPrivate;
1946
1947#[derive(Copy, Clone)]
1948#[repr(C)]
1949pub struct GDBusObjectSkeletonClass {
1950 pub parent_class: gobject::GObjectClass,
1951 pub authorize_method: Option<
1952 unsafe extern "C" fn(
1953 *mut GDBusObjectSkeleton,
1954 *mut GDBusInterfaceSkeleton,
1955 *mut GDBusMethodInvocation,
1956 ) -> gboolean,
1957 >,
1958 pub padding: [gpointer; 8],
1959}
1960
1961impl ::std::fmt::Debug for GDBusObjectSkeletonClass {
1962 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1963 f.debug_struct(&format!("GDBusObjectSkeletonClass @ {self:p}"))
1964 .field("parent_class", &self.parent_class)
1965 .field("authorize_method", &self.authorize_method)
1966 .finish()
1967 }
1968}
1969
1970#[repr(C)]
1971#[allow(dead_code)]
1972pub struct _GDBusObjectSkeletonPrivate {
1973 _data: [u8; 0],
1974 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1975}
1976
1977pub type GDBusObjectSkeletonPrivate = _GDBusObjectSkeletonPrivate;
1978
1979#[derive(Copy, Clone)]
1980#[repr(C)]
1981pub struct GDBusPropertyInfo {
1982 pub ref_count: c_int,
1983 pub name: *mut c_char,
1984 pub signature: *mut c_char,
1985 pub flags: GDBusPropertyInfoFlags,
1986 pub annotations: *mut *mut GDBusAnnotationInfo,
1987}
1988
1989impl ::std::fmt::Debug for GDBusPropertyInfo {
1990 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1991 f.debug_struct(&format!("GDBusPropertyInfo @ {self:p}"))
1992 .field("ref_count", &self.ref_count)
1993 .field("name", &self.name)
1994 .field("signature", &self.signature)
1995 .field("flags", &self.flags)
1996 .field("annotations", &self.annotations)
1997 .finish()
1998 }
1999}
2000
2001#[derive(Copy, Clone)]
2002#[repr(C)]
2003pub struct GDBusProxyClass {
2004 pub parent_class: gobject::GObjectClass,
2005 pub g_properties_changed:
2006 Option<unsafe extern "C" fn(*mut GDBusProxy, *mut glib::GVariant, *const *const c_char)>,
2007 pub g_signal: Option<
2008 unsafe extern "C" fn(*mut GDBusProxy, *const c_char, *const c_char, *mut glib::GVariant),
2009 >,
2010 pub padding: [gpointer; 32],
2011}
2012
2013impl ::std::fmt::Debug for GDBusProxyClass {
2014 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2015 f.debug_struct(&format!("GDBusProxyClass @ {self:p}"))
2016 .field("g_properties_changed", &self.g_properties_changed)
2017 .field("g_signal", &self.g_signal)
2018 .finish()
2019 }
2020}
2021
2022#[repr(C)]
2023#[allow(dead_code)]
2024pub struct _GDBusProxyPrivate {
2025 _data: [u8; 0],
2026 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2027}
2028
2029pub type GDBusProxyPrivate = _GDBusProxyPrivate;
2030
2031#[derive(Copy, Clone)]
2032#[repr(C)]
2033pub struct GDBusSignalInfo {
2034 pub ref_count: c_int,
2035 pub name: *mut c_char,
2036 pub args: *mut *mut GDBusArgInfo,
2037 pub annotations: *mut *mut GDBusAnnotationInfo,
2038}
2039
2040impl ::std::fmt::Debug for GDBusSignalInfo {
2041 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2042 f.debug_struct(&format!("GDBusSignalInfo @ {self:p}"))
2043 .field("ref_count", &self.ref_count)
2044 .field("name", &self.name)
2045 .field("args", &self.args)
2046 .field("annotations", &self.annotations)
2047 .finish()
2048 }
2049}
2050
2051#[derive(Copy, Clone)]
2052#[repr(C)]
2053pub struct GDBusSubtreeVTable {
2054 pub enumerate: GDBusSubtreeEnumerateFunc,
2055 pub introspect: GDBusSubtreeIntrospectFunc,
2056 pub dispatch: GDBusSubtreeDispatchFunc,
2057 pub padding: [gpointer; 8],
2058}
2059
2060impl ::std::fmt::Debug for GDBusSubtreeVTable {
2061 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2062 f.debug_struct(&format!("GDBusSubtreeVTable @ {self:p}"))
2063 .field("enumerate", &self.enumerate)
2064 .field("introspect", &self.introspect)
2065 .field("dispatch", &self.dispatch)
2066 .finish()
2067 }
2068}
2069
2070#[derive(Copy, Clone)]
2071#[repr(C)]
2072pub struct GDataInputStreamClass {
2073 pub parent_class: GBufferedInputStreamClass,
2074 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2075 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2076 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2077 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2078 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2079}
2080
2081impl ::std::fmt::Debug for GDataInputStreamClass {
2082 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2083 f.debug_struct(&format!("GDataInputStreamClass @ {self:p}"))
2084 .field("parent_class", &self.parent_class)
2085 .field("_g_reserved1", &self._g_reserved1)
2086 .field("_g_reserved2", &self._g_reserved2)
2087 .field("_g_reserved3", &self._g_reserved3)
2088 .field("_g_reserved4", &self._g_reserved4)
2089 .field("_g_reserved5", &self._g_reserved5)
2090 .finish()
2091 }
2092}
2093
2094#[repr(C)]
2095#[allow(dead_code)]
2096pub struct _GDataInputStreamPrivate {
2097 _data: [u8; 0],
2098 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2099}
2100
2101pub type GDataInputStreamPrivate = _GDataInputStreamPrivate;
2102
2103#[derive(Copy, Clone)]
2104#[repr(C)]
2105pub struct GDataOutputStreamClass {
2106 pub parent_class: GFilterOutputStreamClass,
2107 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2108 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2109 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2110 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2111 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2112}
2113
2114impl ::std::fmt::Debug for GDataOutputStreamClass {
2115 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2116 f.debug_struct(&format!("GDataOutputStreamClass @ {self:p}"))
2117 .field("parent_class", &self.parent_class)
2118 .field("_g_reserved1", &self._g_reserved1)
2119 .field("_g_reserved2", &self._g_reserved2)
2120 .field("_g_reserved3", &self._g_reserved3)
2121 .field("_g_reserved4", &self._g_reserved4)
2122 .field("_g_reserved5", &self._g_reserved5)
2123 .finish()
2124 }
2125}
2126
2127#[repr(C)]
2128#[allow(dead_code)]
2129pub struct _GDataOutputStreamPrivate {
2130 _data: [u8; 0],
2131 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2132}
2133
2134pub type GDataOutputStreamPrivate = _GDataOutputStreamPrivate;
2135
2136#[derive(Copy, Clone)]
2137#[repr(C)]
2138pub struct GDatagramBasedInterface {
2139 pub g_iface: gobject::GTypeInterface,
2140 pub receive_messages: Option<
2141 unsafe extern "C" fn(
2142 *mut GDatagramBased,
2143 *mut GInputMessage,
2144 c_uint,
2145 c_int,
2146 i64,
2147 *mut GCancellable,
2148 *mut *mut glib::GError,
2149 ) -> c_int,
2150 >,
2151 pub send_messages: Option<
2152 unsafe extern "C" fn(
2153 *mut GDatagramBased,
2154 *mut GOutputMessage,
2155 c_uint,
2156 c_int,
2157 i64,
2158 *mut GCancellable,
2159 *mut *mut glib::GError,
2160 ) -> c_int,
2161 >,
2162 pub create_source: Option<
2163 unsafe extern "C" fn(
2164 *mut GDatagramBased,
2165 glib::GIOCondition,
2166 *mut GCancellable,
2167 ) -> *mut glib::GSource,
2168 >,
2169 pub condition_check:
2170 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition) -> glib::GIOCondition>,
2171 pub condition_wait: Option<
2172 unsafe extern "C" fn(
2173 *mut GDatagramBased,
2174 glib::GIOCondition,
2175 i64,
2176 *mut GCancellable,
2177 *mut *mut glib::GError,
2178 ) -> gboolean,
2179 >,
2180}
2181
2182impl ::std::fmt::Debug for GDatagramBasedInterface {
2183 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2184 f.debug_struct(&format!("GDatagramBasedInterface @ {self:p}"))
2185 .field("g_iface", &self.g_iface)
2186 .field("receive_messages", &self.receive_messages)
2187 .field("send_messages", &self.send_messages)
2188 .field("create_source", &self.create_source)
2189 .field("condition_check", &self.condition_check)
2190 .field("condition_wait", &self.condition_wait)
2191 .finish()
2192 }
2193}
2194
2195#[derive(Copy, Clone)]
2196#[repr(C)]
2197pub struct GDebugControllerDBusClass {
2198 pub parent_class: gobject::GObjectClass,
2199 pub authorize: Option<
2200 unsafe extern "C" fn(*mut GDebugControllerDBus, *mut GDBusMethodInvocation) -> gboolean,
2201 >,
2202 pub padding: [gpointer; 12],
2203}
2204
2205impl ::std::fmt::Debug for GDebugControllerDBusClass {
2206 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2207 f.debug_struct(&format!("GDebugControllerDBusClass @ {self:p}"))
2208 .field("parent_class", &self.parent_class)
2209 .field("authorize", &self.authorize)
2210 .field("padding", &self.padding)
2211 .finish()
2212 }
2213}
2214
2215#[derive(Copy, Clone)]
2216#[repr(C)]
2217pub struct GDebugControllerInterface {
2218 pub g_iface: gobject::GTypeInterface,
2219}
2220
2221impl ::std::fmt::Debug for GDebugControllerInterface {
2222 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2223 f.debug_struct(&format!("GDebugControllerInterface @ {self:p}"))
2224 .finish()
2225 }
2226}
2227
2228#[derive(Copy, Clone)]
2229#[repr(C)]
2230pub struct GDesktopAppInfoClass {
2231 pub parent_class: gobject::GObjectClass,
2232}
2233
2234impl ::std::fmt::Debug for GDesktopAppInfoClass {
2235 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2236 f.debug_struct(&format!("GDesktopAppInfoClass @ {self:p}"))
2237 .field("parent_class", &self.parent_class)
2238 .finish()
2239 }
2240}
2241
2242#[derive(Copy, Clone)]
2243#[repr(C)]
2244pub struct GDesktopAppInfoLookupIface {
2245 pub g_iface: gobject::GTypeInterface,
2246 pub get_default_for_uri_scheme:
2247 Option<unsafe extern "C" fn(*mut GDesktopAppInfoLookup, *const c_char) -> *mut GAppInfo>,
2248}
2249
2250impl ::std::fmt::Debug for GDesktopAppInfoLookupIface {
2251 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2252 f.debug_struct(&format!("GDesktopAppInfoLookupIface @ {self:p}"))
2253 .field("g_iface", &self.g_iface)
2254 .field(
2255 "get_default_for_uri_scheme",
2256 &self.get_default_for_uri_scheme,
2257 )
2258 .finish()
2259 }
2260}
2261
2262#[derive(Copy, Clone)]
2263#[repr(C)]
2264pub struct GDriveIface {
2265 pub g_iface: gobject::GTypeInterface,
2266 pub changed: Option<unsafe extern "C" fn(*mut GDrive)>,
2267 pub disconnected: Option<unsafe extern "C" fn(*mut GDrive)>,
2268 pub eject_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2269 pub get_name: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2270 pub get_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2271 pub has_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2272 pub get_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> *mut glib::GList>,
2273 pub is_media_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2274 pub has_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2275 pub is_media_check_automatic: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2276 pub can_eject: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2277 pub can_poll_for_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2278 pub eject: Option<
2279 unsafe extern "C" fn(
2280 *mut GDrive,
2281 GMountUnmountFlags,
2282 *mut GCancellable,
2283 GAsyncReadyCallback,
2284 gpointer,
2285 ),
2286 >,
2287 pub eject_finish: Option<
2288 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2289 >,
2290 pub poll_for_media:
2291 Option<unsafe extern "C" fn(*mut GDrive, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
2292 pub poll_for_media_finish: Option<
2293 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2294 >,
2295 pub get_identifier: Option<unsafe extern "C" fn(*mut GDrive, *const c_char) -> *mut c_char>,
2296 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GDrive) -> *mut *mut c_char>,
2297 pub get_start_stop_type: Option<unsafe extern "C" fn(*mut GDrive) -> GDriveStartStopType>,
2298 pub can_start: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2299 pub can_start_degraded: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2300 pub start: Option<
2301 unsafe extern "C" fn(
2302 *mut GDrive,
2303 GDriveStartFlags,
2304 *mut GMountOperation,
2305 *mut GCancellable,
2306 GAsyncReadyCallback,
2307 gpointer,
2308 ),
2309 >,
2310 pub start_finish: Option<
2311 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2312 >,
2313 pub can_stop: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2314 pub stop: Option<
2315 unsafe extern "C" fn(
2316 *mut GDrive,
2317 GMountUnmountFlags,
2318 *mut GMountOperation,
2319 *mut GCancellable,
2320 GAsyncReadyCallback,
2321 gpointer,
2322 ),
2323 >,
2324 pub stop_finish: Option<
2325 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2326 >,
2327 pub stop_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2328 pub eject_with_operation: Option<
2329 unsafe extern "C" fn(
2330 *mut GDrive,
2331 GMountUnmountFlags,
2332 *mut GMountOperation,
2333 *mut GCancellable,
2334 GAsyncReadyCallback,
2335 gpointer,
2336 ),
2337 >,
2338 pub eject_with_operation_finish: Option<
2339 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2340 >,
2341 pub get_sort_key: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2342 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2343 pub is_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2344}
2345
2346impl ::std::fmt::Debug for GDriveIface {
2347 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2348 f.debug_struct(&format!("GDriveIface @ {self:p}"))
2349 .field("g_iface", &self.g_iface)
2350 .field("changed", &self.changed)
2351 .field("disconnected", &self.disconnected)
2352 .field("eject_button", &self.eject_button)
2353 .field("get_name", &self.get_name)
2354 .field("get_icon", &self.get_icon)
2355 .field("has_volumes", &self.has_volumes)
2356 .field("get_volumes", &self.get_volumes)
2357 .field("is_media_removable", &self.is_media_removable)
2358 .field("has_media", &self.has_media)
2359 .field("is_media_check_automatic", &self.is_media_check_automatic)
2360 .field("can_eject", &self.can_eject)
2361 .field("can_poll_for_media", &self.can_poll_for_media)
2362 .field("eject", &self.eject)
2363 .field("eject_finish", &self.eject_finish)
2364 .field("poll_for_media", &self.poll_for_media)
2365 .field("poll_for_media_finish", &self.poll_for_media_finish)
2366 .field("get_identifier", &self.get_identifier)
2367 .field("enumerate_identifiers", &self.enumerate_identifiers)
2368 .field("get_start_stop_type", &self.get_start_stop_type)
2369 .field("can_start", &self.can_start)
2370 .field("can_start_degraded", &self.can_start_degraded)
2371 .field("start", &self.start)
2372 .field("start_finish", &self.start_finish)
2373 .field("can_stop", &self.can_stop)
2374 .field("stop", &self.stop)
2375 .field("stop_finish", &self.stop_finish)
2376 .field("stop_button", &self.stop_button)
2377 .field("eject_with_operation", &self.eject_with_operation)
2378 .field(
2379 "eject_with_operation_finish",
2380 &self.eject_with_operation_finish,
2381 )
2382 .field("get_sort_key", &self.get_sort_key)
2383 .field("get_symbolic_icon", &self.get_symbolic_icon)
2384 .field("is_removable", &self.is_removable)
2385 .finish()
2386 }
2387}
2388
2389#[derive(Copy, Clone)]
2390#[repr(C)]
2391pub struct GDtlsClientConnectionInterface {
2392 pub g_iface: gobject::GTypeInterface,
2393}
2394
2395impl ::std::fmt::Debug for GDtlsClientConnectionInterface {
2396 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2397 f.debug_struct(&format!("GDtlsClientConnectionInterface @ {self:p}"))
2398 .field("g_iface", &self.g_iface)
2399 .finish()
2400 }
2401}
2402
2403#[derive(Copy, Clone)]
2404#[repr(C)]
2405pub struct GDtlsConnectionInterface {
2406 pub g_iface: gobject::GTypeInterface,
2407 pub accept_certificate: Option<
2408 unsafe extern "C" fn(
2409 *mut GDtlsConnection,
2410 *mut GTlsCertificate,
2411 GTlsCertificateFlags,
2412 ) -> gboolean,
2413 >,
2414 pub handshake: Option<
2415 unsafe extern "C" fn(
2416 *mut GDtlsConnection,
2417 *mut GCancellable,
2418 *mut *mut glib::GError,
2419 ) -> gboolean,
2420 >,
2421 pub handshake_async: Option<
2422 unsafe extern "C" fn(
2423 *mut GDtlsConnection,
2424 c_int,
2425 *mut GCancellable,
2426 GAsyncReadyCallback,
2427 gpointer,
2428 ),
2429 >,
2430 pub handshake_finish: Option<
2431 unsafe extern "C" fn(
2432 *mut GDtlsConnection,
2433 *mut GAsyncResult,
2434 *mut *mut glib::GError,
2435 ) -> gboolean,
2436 >,
2437 pub shutdown: Option<
2438 unsafe extern "C" fn(
2439 *mut GDtlsConnection,
2440 gboolean,
2441 gboolean,
2442 *mut GCancellable,
2443 *mut *mut glib::GError,
2444 ) -> gboolean,
2445 >,
2446 pub shutdown_async: Option<
2447 unsafe extern "C" fn(
2448 *mut GDtlsConnection,
2449 gboolean,
2450 gboolean,
2451 c_int,
2452 *mut GCancellable,
2453 GAsyncReadyCallback,
2454 gpointer,
2455 ),
2456 >,
2457 pub shutdown_finish: Option<
2458 unsafe extern "C" fn(
2459 *mut GDtlsConnection,
2460 *mut GAsyncResult,
2461 *mut *mut glib::GError,
2462 ) -> gboolean,
2463 >,
2464 pub set_advertised_protocols:
2465 Option<unsafe extern "C" fn(*mut GDtlsConnection, *const *const c_char)>,
2466 pub get_negotiated_protocol:
2467 Option<unsafe extern "C" fn(*mut GDtlsConnection) -> *const c_char>,
2468 pub get_binding_data: Option<
2469 unsafe extern "C" fn(
2470 *mut GDtlsConnection,
2471 GTlsChannelBindingType,
2472 *mut glib::GByteArray,
2473 *mut *mut glib::GError,
2474 ) -> gboolean,
2475 >,
2476}
2477
2478impl ::std::fmt::Debug for GDtlsConnectionInterface {
2479 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2480 f.debug_struct(&format!("GDtlsConnectionInterface @ {self:p}"))
2481 .field("g_iface", &self.g_iface)
2482 .field("accept_certificate", &self.accept_certificate)
2483 .field("handshake", &self.handshake)
2484 .field("handshake_async", &self.handshake_async)
2485 .field("handshake_finish", &self.handshake_finish)
2486 .field("shutdown", &self.shutdown)
2487 .field("shutdown_async", &self.shutdown_async)
2488 .field("shutdown_finish", &self.shutdown_finish)
2489 .field("set_advertised_protocols", &self.set_advertised_protocols)
2490 .field("get_negotiated_protocol", &self.get_negotiated_protocol)
2491 .field("get_binding_data", &self.get_binding_data)
2492 .finish()
2493 }
2494}
2495
2496#[derive(Copy, Clone)]
2497#[repr(C)]
2498pub struct GDtlsServerConnectionInterface {
2499 pub g_iface: gobject::GTypeInterface,
2500}
2501
2502impl ::std::fmt::Debug for GDtlsServerConnectionInterface {
2503 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2504 f.debug_struct(&format!("GDtlsServerConnectionInterface @ {self:p}"))
2505 .field("g_iface", &self.g_iface)
2506 .finish()
2507 }
2508}
2509
2510#[repr(C)]
2511#[allow(dead_code)]
2512pub struct _GEmblemClass {
2513 _data: [u8; 0],
2514 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2515}
2516
2517pub type GEmblemClass = _GEmblemClass;
2518
2519#[derive(Copy, Clone)]
2520#[repr(C)]
2521pub struct GEmblemedIconClass {
2522 pub parent_class: gobject::GObjectClass,
2523}
2524
2525impl ::std::fmt::Debug for GEmblemedIconClass {
2526 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2527 f.debug_struct(&format!("GEmblemedIconClass @ {self:p}"))
2528 .field("parent_class", &self.parent_class)
2529 .finish()
2530 }
2531}
2532
2533#[repr(C)]
2534#[allow(dead_code)]
2535pub struct _GEmblemedIconPrivate {
2536 _data: [u8; 0],
2537 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2538}
2539
2540pub type GEmblemedIconPrivate = _GEmblemedIconPrivate;
2541
2542#[derive(Copy, Clone)]
2543#[repr(C)]
2544pub struct GFileAttributeInfo {
2545 pub name: *mut c_char,
2546 pub type_: GFileAttributeType,
2547 pub flags: GFileAttributeInfoFlags,
2548}
2549
2550impl ::std::fmt::Debug for GFileAttributeInfo {
2551 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2552 f.debug_struct(&format!("GFileAttributeInfo @ {self:p}"))
2553 .field("name", &self.name)
2554 .field("type_", &self.type_)
2555 .field("flags", &self.flags)
2556 .finish()
2557 }
2558}
2559
2560#[derive(Copy, Clone)]
2561#[repr(C)]
2562pub struct GFileAttributeInfoList {
2563 pub infos: *mut GFileAttributeInfo,
2564 pub n_infos: c_int,
2565}
2566
2567impl ::std::fmt::Debug for GFileAttributeInfoList {
2568 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2569 f.debug_struct(&format!("GFileAttributeInfoList @ {self:p}"))
2570 .field("infos", &self.infos)
2571 .field("n_infos", &self.n_infos)
2572 .finish()
2573 }
2574}
2575
2576#[repr(C)]
2577#[allow(dead_code)]
2578pub struct GFileAttributeMatcher {
2579 _data: [u8; 0],
2580 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2581}
2582
2583impl ::std::fmt::Debug for GFileAttributeMatcher {
2584 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2585 f.debug_struct(&format!("GFileAttributeMatcher @ {self:p}"))
2586 .finish()
2587 }
2588}
2589
2590#[derive(Copy, Clone)]
2591#[repr(C)]
2592pub struct GFileDescriptorBasedIface {
2593 pub g_iface: gobject::GTypeInterface,
2594 pub get_fd: Option<unsafe extern "C" fn(*mut GFileDescriptorBased) -> c_int>,
2595}
2596
2597impl ::std::fmt::Debug for GFileDescriptorBasedIface {
2598 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2599 f.debug_struct(&format!("GFileDescriptorBasedIface @ {self:p}"))
2600 .field("g_iface", &self.g_iface)
2601 .field("get_fd", &self.get_fd)
2602 .finish()
2603 }
2604}
2605
2606#[derive(Copy, Clone)]
2607#[repr(C)]
2608pub struct GFileEnumeratorClass {
2609 pub parent_class: gobject::GObjectClass,
2610 pub next_file: Option<
2611 unsafe extern "C" fn(
2612 *mut GFileEnumerator,
2613 *mut GCancellable,
2614 *mut *mut glib::GError,
2615 ) -> *mut GFileInfo,
2616 >,
2617 pub close_fn: Option<
2618 unsafe extern "C" fn(
2619 *mut GFileEnumerator,
2620 *mut GCancellable,
2621 *mut *mut glib::GError,
2622 ) -> gboolean,
2623 >,
2624 pub next_files_async: Option<
2625 unsafe extern "C" fn(
2626 *mut GFileEnumerator,
2627 c_int,
2628 c_int,
2629 *mut GCancellable,
2630 GAsyncReadyCallback,
2631 gpointer,
2632 ),
2633 >,
2634 pub next_files_finish: Option<
2635 unsafe extern "C" fn(
2636 *mut GFileEnumerator,
2637 *mut GAsyncResult,
2638 *mut *mut glib::GError,
2639 ) -> *mut glib::GList,
2640 >,
2641 pub close_async: Option<
2642 unsafe extern "C" fn(
2643 *mut GFileEnumerator,
2644 c_int,
2645 *mut GCancellable,
2646 GAsyncReadyCallback,
2647 gpointer,
2648 ),
2649 >,
2650 pub close_finish: Option<
2651 unsafe extern "C" fn(
2652 *mut GFileEnumerator,
2653 *mut GAsyncResult,
2654 *mut *mut glib::GError,
2655 ) -> gboolean,
2656 >,
2657 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2658 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2659 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2660 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2661 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2662 pub _g_reserved6: Option<unsafe extern "C" fn()>,
2663 pub _g_reserved7: Option<unsafe extern "C" fn()>,
2664}
2665
2666impl ::std::fmt::Debug for GFileEnumeratorClass {
2667 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2668 f.debug_struct(&format!("GFileEnumeratorClass @ {self:p}"))
2669 .field("parent_class", &self.parent_class)
2670 .field("next_file", &self.next_file)
2671 .field("close_fn", &self.close_fn)
2672 .field("next_files_async", &self.next_files_async)
2673 .field("next_files_finish", &self.next_files_finish)
2674 .field("close_async", &self.close_async)
2675 .field("close_finish", &self.close_finish)
2676 .field("_g_reserved1", &self._g_reserved1)
2677 .field("_g_reserved2", &self._g_reserved2)
2678 .field("_g_reserved3", &self._g_reserved3)
2679 .field("_g_reserved4", &self._g_reserved4)
2680 .field("_g_reserved5", &self._g_reserved5)
2681 .field("_g_reserved6", &self._g_reserved6)
2682 .field("_g_reserved7", &self._g_reserved7)
2683 .finish()
2684 }
2685}
2686
2687#[repr(C)]
2688#[allow(dead_code)]
2689pub struct _GFileEnumeratorPrivate {
2690 _data: [u8; 0],
2691 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2692}
2693
2694pub type GFileEnumeratorPrivate = _GFileEnumeratorPrivate;
2695
2696#[derive(Copy, Clone)]
2697#[repr(C)]
2698pub struct GFileIOStreamClass {
2699 pub parent_class: GIOStreamClass,
2700 pub tell: Option<unsafe extern "C" fn(*mut GFileIOStream) -> i64>,
2701 pub can_seek: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2702 pub seek: Option<
2703 unsafe extern "C" fn(
2704 *mut GFileIOStream,
2705 i64,
2706 glib::GSeekType,
2707 *mut GCancellable,
2708 *mut *mut glib::GError,
2709 ) -> gboolean,
2710 >,
2711 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2712 pub truncate_fn: Option<
2713 unsafe extern "C" fn(
2714 *mut GFileIOStream,
2715 i64,
2716 *mut GCancellable,
2717 *mut *mut glib::GError,
2718 ) -> gboolean,
2719 >,
2720 pub query_info: Option<
2721 unsafe extern "C" fn(
2722 *mut GFileIOStream,
2723 *const c_char,
2724 *mut GCancellable,
2725 *mut *mut glib::GError,
2726 ) -> *mut GFileInfo,
2727 >,
2728 pub query_info_async: Option<
2729 unsafe extern "C" fn(
2730 *mut GFileIOStream,
2731 *const c_char,
2732 c_int,
2733 *mut GCancellable,
2734 GAsyncReadyCallback,
2735 gpointer,
2736 ),
2737 >,
2738 pub query_info_finish: Option<
2739 unsafe extern "C" fn(
2740 *mut GFileIOStream,
2741 *mut GAsyncResult,
2742 *mut *mut glib::GError,
2743 ) -> *mut GFileInfo,
2744 >,
2745 pub get_etag: Option<unsafe extern "C" fn(*mut GFileIOStream) -> *mut c_char>,
2746 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2747 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2748 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2749 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2750 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2751}
2752
2753impl ::std::fmt::Debug for GFileIOStreamClass {
2754 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2755 f.debug_struct(&format!("GFileIOStreamClass @ {self:p}"))
2756 .field("parent_class", &self.parent_class)
2757 .field("tell", &self.tell)
2758 .field("can_seek", &self.can_seek)
2759 .field("seek", &self.seek)
2760 .field("can_truncate", &self.can_truncate)
2761 .field("truncate_fn", &self.truncate_fn)
2762 .field("query_info", &self.query_info)
2763 .field("query_info_async", &self.query_info_async)
2764 .field("query_info_finish", &self.query_info_finish)
2765 .field("get_etag", &self.get_etag)
2766 .field("_g_reserved1", &self._g_reserved1)
2767 .field("_g_reserved2", &self._g_reserved2)
2768 .field("_g_reserved3", &self._g_reserved3)
2769 .field("_g_reserved4", &self._g_reserved4)
2770 .field("_g_reserved5", &self._g_reserved5)
2771 .finish()
2772 }
2773}
2774
2775#[repr(C)]
2776#[allow(dead_code)]
2777pub struct _GFileIOStreamPrivate {
2778 _data: [u8; 0],
2779 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2780}
2781
2782pub type GFileIOStreamPrivate = _GFileIOStreamPrivate;
2783
2784#[repr(C)]
2785#[allow(dead_code)]
2786pub struct _GFileIconClass {
2787 _data: [u8; 0],
2788 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2789}
2790
2791pub type GFileIconClass = _GFileIconClass;
2792
2793#[derive(Copy, Clone)]
2794#[repr(C)]
2795pub struct GFileIface {
2796 pub g_iface: gobject::GTypeInterface,
2797 pub dup: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2798 pub hash: Option<unsafe extern "C" fn(*mut GFile) -> c_uint>,
2799 pub equal: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2800 pub is_native: Option<unsafe extern "C" fn(*mut GFile) -> gboolean>,
2801 pub has_uri_scheme: Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> gboolean>,
2802 pub get_uri_scheme: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2803 pub get_basename: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2804 pub get_path: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2805 pub get_uri: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2806 pub get_parse_name: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2807 pub get_parent: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2808 pub prefix_matches: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2809 pub get_relative_path: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> *mut c_char>,
2810 pub resolve_relative_path:
2811 Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> *mut GFile>,
2812 pub get_child_for_display_name: Option<
2813 unsafe extern "C" fn(*mut GFile, *const c_char, *mut *mut glib::GError) -> *mut GFile,
2814 >,
2815 pub enumerate_children: Option<
2816 unsafe extern "C" fn(
2817 *mut GFile,
2818 *const c_char,
2819 GFileQueryInfoFlags,
2820 *mut GCancellable,
2821 *mut *mut glib::GError,
2822 ) -> *mut GFileEnumerator,
2823 >,
2824 pub enumerate_children_async: Option<
2825 unsafe extern "C" fn(
2826 *mut GFile,
2827 *const c_char,
2828 GFileQueryInfoFlags,
2829 c_int,
2830 *mut GCancellable,
2831 GAsyncReadyCallback,
2832 gpointer,
2833 ),
2834 >,
2835 pub enumerate_children_finish: Option<
2836 unsafe extern "C" fn(
2837 *mut GFile,
2838 *mut GAsyncResult,
2839 *mut *mut glib::GError,
2840 ) -> *mut GFileEnumerator,
2841 >,
2842 pub query_info: Option<
2843 unsafe extern "C" fn(
2844 *mut GFile,
2845 *const c_char,
2846 GFileQueryInfoFlags,
2847 *mut GCancellable,
2848 *mut *mut glib::GError,
2849 ) -> *mut GFileInfo,
2850 >,
2851 pub query_info_async: Option<
2852 unsafe extern "C" fn(
2853 *mut GFile,
2854 *const c_char,
2855 GFileQueryInfoFlags,
2856 c_int,
2857 *mut GCancellable,
2858 GAsyncReadyCallback,
2859 gpointer,
2860 ),
2861 >,
2862 pub query_info_finish: Option<
2863 unsafe extern "C" fn(
2864 *mut GFile,
2865 *mut GAsyncResult,
2866 *mut *mut glib::GError,
2867 ) -> *mut GFileInfo,
2868 >,
2869 pub query_filesystem_info: Option<
2870 unsafe extern "C" fn(
2871 *mut GFile,
2872 *const c_char,
2873 *mut GCancellable,
2874 *mut *mut glib::GError,
2875 ) -> *mut GFileInfo,
2876 >,
2877 pub query_filesystem_info_async: Option<
2878 unsafe extern "C" fn(
2879 *mut GFile,
2880 *const c_char,
2881 c_int,
2882 *mut GCancellable,
2883 GAsyncReadyCallback,
2884 gpointer,
2885 ),
2886 >,
2887 pub query_filesystem_info_finish: Option<
2888 unsafe extern "C" fn(
2889 *mut GFile,
2890 *mut GAsyncResult,
2891 *mut *mut glib::GError,
2892 ) -> *mut GFileInfo,
2893 >,
2894 pub find_enclosing_mount: Option<
2895 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> *mut GMount,
2896 >,
2897 pub find_enclosing_mount_async: Option<
2898 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2899 >,
2900 pub find_enclosing_mount_finish: Option<
2901 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GMount,
2902 >,
2903 pub set_display_name: Option<
2904 unsafe extern "C" fn(
2905 *mut GFile,
2906 *const c_char,
2907 *mut GCancellable,
2908 *mut *mut glib::GError,
2909 ) -> *mut GFile,
2910 >,
2911 pub set_display_name_async: Option<
2912 unsafe extern "C" fn(
2913 *mut GFile,
2914 *const c_char,
2915 c_int,
2916 *mut GCancellable,
2917 GAsyncReadyCallback,
2918 gpointer,
2919 ),
2920 >,
2921 pub set_display_name_finish: Option<
2922 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
2923 >,
2924 pub query_settable_attributes: Option<
2925 unsafe extern "C" fn(
2926 *mut GFile,
2927 *mut GCancellable,
2928 *mut *mut glib::GError,
2929 ) -> *mut GFileAttributeInfoList,
2930 >,
2931 pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>,
2932 pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>,
2933 pub query_writable_namespaces: Option<
2934 unsafe extern "C" fn(
2935 *mut GFile,
2936 *mut GCancellable,
2937 *mut *mut glib::GError,
2938 ) -> *mut GFileAttributeInfoList,
2939 >,
2940 pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>,
2941 pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>,
2942 pub set_attribute: Option<
2943 unsafe extern "C" fn(
2944 *mut GFile,
2945 *const c_char,
2946 GFileAttributeType,
2947 gpointer,
2948 GFileQueryInfoFlags,
2949 *mut GCancellable,
2950 *mut *mut glib::GError,
2951 ) -> gboolean,
2952 >,
2953 pub set_attributes_from_info: Option<
2954 unsafe extern "C" fn(
2955 *mut GFile,
2956 *mut GFileInfo,
2957 GFileQueryInfoFlags,
2958 *mut GCancellable,
2959 *mut *mut glib::GError,
2960 ) -> gboolean,
2961 >,
2962 pub set_attributes_async: Option<
2963 unsafe extern "C" fn(
2964 *mut GFile,
2965 *mut GFileInfo,
2966 GFileQueryInfoFlags,
2967 c_int,
2968 *mut GCancellable,
2969 GAsyncReadyCallback,
2970 gpointer,
2971 ),
2972 >,
2973 pub set_attributes_finish: Option<
2974 unsafe extern "C" fn(
2975 *mut GFile,
2976 *mut GAsyncResult,
2977 *mut *mut GFileInfo,
2978 *mut *mut glib::GError,
2979 ) -> gboolean,
2980 >,
2981 pub read_fn: Option<
2982 unsafe extern "C" fn(
2983 *mut GFile,
2984 *mut GCancellable,
2985 *mut *mut glib::GError,
2986 ) -> *mut GFileInputStream,
2987 >,
2988 pub read_async: Option<
2989 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2990 >,
2991 pub read_finish: Option<
2992 unsafe extern "C" fn(
2993 *mut GFile,
2994 *mut GAsyncResult,
2995 *mut *mut glib::GError,
2996 ) -> *mut GFileInputStream,
2997 >,
2998 pub append_to: Option<
2999 unsafe extern "C" fn(
3000 *mut GFile,
3001 GFileCreateFlags,
3002 *mut GCancellable,
3003 *mut *mut glib::GError,
3004 ) -> *mut GFileOutputStream,
3005 >,
3006 pub append_to_async: Option<
3007 unsafe extern "C" fn(
3008 *mut GFile,
3009 GFileCreateFlags,
3010 c_int,
3011 *mut GCancellable,
3012 GAsyncReadyCallback,
3013 gpointer,
3014 ),
3015 >,
3016 pub append_to_finish: Option<
3017 unsafe extern "C" fn(
3018 *mut GFile,
3019 *mut GAsyncResult,
3020 *mut *mut glib::GError,
3021 ) -> *mut GFileOutputStream,
3022 >,
3023 pub create: Option<
3024 unsafe extern "C" fn(
3025 *mut GFile,
3026 GFileCreateFlags,
3027 *mut GCancellable,
3028 *mut *mut glib::GError,
3029 ) -> *mut GFileOutputStream,
3030 >,
3031 pub create_async: Option<
3032 unsafe extern "C" fn(
3033 *mut GFile,
3034 GFileCreateFlags,
3035 c_int,
3036 *mut GCancellable,
3037 GAsyncReadyCallback,
3038 gpointer,
3039 ),
3040 >,
3041 pub create_finish: Option<
3042 unsafe extern "C" fn(
3043 *mut GFile,
3044 *mut GAsyncResult,
3045 *mut *mut glib::GError,
3046 ) -> *mut GFileOutputStream,
3047 >,
3048 pub replace: Option<
3049 unsafe extern "C" fn(
3050 *mut GFile,
3051 *const c_char,
3052 gboolean,
3053 GFileCreateFlags,
3054 *mut GCancellable,
3055 *mut *mut glib::GError,
3056 ) -> *mut GFileOutputStream,
3057 >,
3058 pub replace_async: Option<
3059 unsafe extern "C" fn(
3060 *mut GFile,
3061 *const c_char,
3062 gboolean,
3063 GFileCreateFlags,
3064 c_int,
3065 *mut GCancellable,
3066 GAsyncReadyCallback,
3067 gpointer,
3068 ),
3069 >,
3070 pub replace_finish: Option<
3071 unsafe extern "C" fn(
3072 *mut GFile,
3073 *mut GAsyncResult,
3074 *mut *mut glib::GError,
3075 ) -> *mut GFileOutputStream,
3076 >,
3077 pub delete_file: Option<
3078 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3079 >,
3080 pub delete_file_async: Option<
3081 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3082 >,
3083 pub delete_file_finish: Option<
3084 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3085 >,
3086 pub trash: Option<
3087 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3088 >,
3089 pub trash_async: Option<
3090 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3091 >,
3092 pub trash_finish: Option<
3093 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3094 >,
3095 pub make_directory: Option<
3096 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3097 >,
3098 pub make_directory_async: Option<
3099 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3100 >,
3101 pub make_directory_finish: Option<
3102 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3103 >,
3104 pub make_symbolic_link: Option<
3105 unsafe extern "C" fn(
3106 *mut GFile,
3107 *const c_char,
3108 *mut GCancellable,
3109 *mut *mut glib::GError,
3110 ) -> gboolean,
3111 >,
3112 pub make_symbolic_link_async: Option<
3113 unsafe extern "C" fn(
3114 *mut GFile,
3115 *const c_char,
3116 c_int,
3117 *mut GCancellable,
3118 GAsyncReadyCallback,
3119 gpointer,
3120 ),
3121 >,
3122 pub make_symbolic_link_finish: Option<
3123 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3124 >,
3125 pub copy: Option<
3126 unsafe extern "C" fn(
3127 *mut GFile,
3128 *mut GFile,
3129 GFileCopyFlags,
3130 *mut GCancellable,
3131 GFileProgressCallback,
3132 gpointer,
3133 *mut *mut glib::GError,
3134 ) -> gboolean,
3135 >,
3136 pub copy_async: Option<
3137 unsafe extern "C" fn(
3138 *mut GFile,
3139 *mut GFile,
3140 GFileCopyFlags,
3141 c_int,
3142 *mut GCancellable,
3143 GFileProgressCallback,
3144 gpointer,
3145 GAsyncReadyCallback,
3146 gpointer,
3147 ),
3148 >,
3149 pub copy_finish: Option<
3150 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3151 >,
3152 pub move_: Option<
3153 unsafe extern "C" fn(
3154 *mut GFile,
3155 *mut GFile,
3156 GFileCopyFlags,
3157 *mut GCancellable,
3158 GFileProgressCallback,
3159 gpointer,
3160 *mut *mut glib::GError,
3161 ) -> gboolean,
3162 >,
3163 pub move_async: Option<
3164 unsafe extern "C" fn(
3165 *mut GFile,
3166 *mut GFile,
3167 GFileCopyFlags,
3168 c_int,
3169 *mut GCancellable,
3170 GFileProgressCallback,
3171 gpointer,
3172 GAsyncReadyCallback,
3173 gpointer,
3174 ),
3175 >,
3176 pub move_finish: Option<
3177 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3178 >,
3179 pub mount_mountable: Option<
3180 unsafe extern "C" fn(
3181 *mut GFile,
3182 GMountMountFlags,
3183 *mut GMountOperation,
3184 *mut GCancellable,
3185 GAsyncReadyCallback,
3186 gpointer,
3187 ),
3188 >,
3189 pub mount_mountable_finish: Option<
3190 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
3191 >,
3192 pub unmount_mountable: Option<
3193 unsafe extern "C" fn(
3194 *mut GFile,
3195 GMountUnmountFlags,
3196 *mut GCancellable,
3197 GAsyncReadyCallback,
3198 gpointer,
3199 ),
3200 >,
3201 pub unmount_mountable_finish: Option<
3202 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3203 >,
3204 pub eject_mountable: Option<
3205 unsafe extern "C" fn(
3206 *mut GFile,
3207 GMountUnmountFlags,
3208 *mut GCancellable,
3209 GAsyncReadyCallback,
3210 gpointer,
3211 ),
3212 >,
3213 pub eject_mountable_finish: Option<
3214 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3215 >,
3216 pub mount_enclosing_volume: Option<
3217 unsafe extern "C" fn(
3218 *mut GFile,
3219 GMountMountFlags,
3220 *mut GMountOperation,
3221 *mut GCancellable,
3222 GAsyncReadyCallback,
3223 gpointer,
3224 ),
3225 >,
3226 pub mount_enclosing_volume_finish: Option<
3227 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3228 >,
3229 pub monitor_dir: Option<
3230 unsafe extern "C" fn(
3231 *mut GFile,
3232 GFileMonitorFlags,
3233 *mut GCancellable,
3234 *mut *mut glib::GError,
3235 ) -> *mut GFileMonitor,
3236 >,
3237 pub monitor_file: Option<
3238 unsafe extern "C" fn(
3239 *mut GFile,
3240 GFileMonitorFlags,
3241 *mut GCancellable,
3242 *mut *mut glib::GError,
3243 ) -> *mut GFileMonitor,
3244 >,
3245 pub open_readwrite: Option<
3246 unsafe extern "C" fn(
3247 *mut GFile,
3248 *mut GCancellable,
3249 *mut *mut glib::GError,
3250 ) -> *mut GFileIOStream,
3251 >,
3252 pub open_readwrite_async: Option<
3253 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3254 >,
3255 pub open_readwrite_finish: Option<
3256 unsafe extern "C" fn(
3257 *mut GFile,
3258 *mut GAsyncResult,
3259 *mut *mut glib::GError,
3260 ) -> *mut GFileIOStream,
3261 >,
3262 pub create_readwrite: Option<
3263 unsafe extern "C" fn(
3264 *mut GFile,
3265 GFileCreateFlags,
3266 *mut GCancellable,
3267 *mut *mut glib::GError,
3268 ) -> *mut GFileIOStream,
3269 >,
3270 pub create_readwrite_async: Option<
3271 unsafe extern "C" fn(
3272 *mut GFile,
3273 GFileCreateFlags,
3274 c_int,
3275 *mut GCancellable,
3276 GAsyncReadyCallback,
3277 gpointer,
3278 ),
3279 >,
3280 pub create_readwrite_finish: Option<
3281 unsafe extern "C" fn(
3282 *mut GFile,
3283 *mut GAsyncResult,
3284 *mut *mut glib::GError,
3285 ) -> *mut GFileIOStream,
3286 >,
3287 pub replace_readwrite: Option<
3288 unsafe extern "C" fn(
3289 *mut GFile,
3290 *const c_char,
3291 gboolean,
3292 GFileCreateFlags,
3293 *mut GCancellable,
3294 *mut *mut glib::GError,
3295 ) -> *mut GFileIOStream,
3296 >,
3297 pub replace_readwrite_async: Option<
3298 unsafe extern "C" fn(
3299 *mut GFile,
3300 *const c_char,
3301 gboolean,
3302 GFileCreateFlags,
3303 c_int,
3304 *mut GCancellable,
3305 GAsyncReadyCallback,
3306 gpointer,
3307 ),
3308 >,
3309 pub replace_readwrite_finish: Option<
3310 unsafe extern "C" fn(
3311 *mut GFile,
3312 *mut GAsyncResult,
3313 *mut *mut glib::GError,
3314 ) -> *mut GFileIOStream,
3315 >,
3316 pub start_mountable: Option<
3317 unsafe extern "C" fn(
3318 *mut GFile,
3319 GDriveStartFlags,
3320 *mut GMountOperation,
3321 *mut GCancellable,
3322 GAsyncReadyCallback,
3323 gpointer,
3324 ),
3325 >,
3326 pub start_mountable_finish: Option<
3327 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3328 >,
3329 pub stop_mountable: Option<
3330 unsafe extern "C" fn(
3331 *mut GFile,
3332 GMountUnmountFlags,
3333 *mut GMountOperation,
3334 *mut GCancellable,
3335 GAsyncReadyCallback,
3336 gpointer,
3337 ),
3338 >,
3339 pub stop_mountable_finish: Option<
3340 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3341 >,
3342 pub supports_thread_contexts: gboolean,
3343 pub unmount_mountable_with_operation: Option<
3344 unsafe extern "C" fn(
3345 *mut GFile,
3346 GMountUnmountFlags,
3347 *mut GMountOperation,
3348 *mut GCancellable,
3349 GAsyncReadyCallback,
3350 gpointer,
3351 ),
3352 >,
3353 pub unmount_mountable_with_operation_finish: Option<
3354 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3355 >,
3356 pub eject_mountable_with_operation: Option<
3357 unsafe extern "C" fn(
3358 *mut GFile,
3359 GMountUnmountFlags,
3360 *mut GMountOperation,
3361 *mut GCancellable,
3362 GAsyncReadyCallback,
3363 gpointer,
3364 ),
3365 >,
3366 pub eject_mountable_with_operation_finish: Option<
3367 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3368 >,
3369 pub poll_mountable:
3370 Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
3371 pub poll_mountable_finish: Option<
3372 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3373 >,
3374 pub measure_disk_usage: Option<
3375 unsafe extern "C" fn(
3376 *mut GFile,
3377 GFileMeasureFlags,
3378 *mut GCancellable,
3379 GFileMeasureProgressCallback,
3380 gpointer,
3381 *mut u64,
3382 *mut u64,
3383 *mut u64,
3384 *mut *mut glib::GError,
3385 ) -> gboolean,
3386 >,
3387 pub measure_disk_usage_async: Option<
3388 unsafe extern "C" fn(
3389 *mut GFile,
3390 GFileMeasureFlags,
3391 c_int,
3392 *mut GCancellable,
3393 GFileMeasureProgressCallback,
3394 gpointer,
3395 GAsyncReadyCallback,
3396 gpointer,
3397 ),
3398 >,
3399 pub measure_disk_usage_finish: Option<
3400 unsafe extern "C" fn(
3401 *mut GFile,
3402 *mut GAsyncResult,
3403 *mut u64,
3404 *mut u64,
3405 *mut u64,
3406 *mut *mut glib::GError,
3407 ) -> gboolean,
3408 >,
3409 pub query_exists: Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable) -> gboolean>,
3410}
3411
3412impl ::std::fmt::Debug for GFileIface {
3413 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3414 f.debug_struct(&format!("GFileIface @ {self:p}"))
3415 .field("g_iface", &self.g_iface)
3416 .field("dup", &self.dup)
3417 .field("hash", &self.hash)
3418 .field("equal", &self.equal)
3419 .field("is_native", &self.is_native)
3420 .field("has_uri_scheme", &self.has_uri_scheme)
3421 .field("get_uri_scheme", &self.get_uri_scheme)
3422 .field("get_basename", &self.get_basename)
3423 .field("get_path", &self.get_path)
3424 .field("get_uri", &self.get_uri)
3425 .field("get_parse_name", &self.get_parse_name)
3426 .field("get_parent", &self.get_parent)
3427 .field("prefix_matches", &self.prefix_matches)
3428 .field("get_relative_path", &self.get_relative_path)
3429 .field("resolve_relative_path", &self.resolve_relative_path)
3430 .field(
3431 "get_child_for_display_name",
3432 &self.get_child_for_display_name,
3433 )
3434 .field("enumerate_children", &self.enumerate_children)
3435 .field("enumerate_children_async", &self.enumerate_children_async)
3436 .field("enumerate_children_finish", &self.enumerate_children_finish)
3437 .field("query_info", &self.query_info)
3438 .field("query_info_async", &self.query_info_async)
3439 .field("query_info_finish", &self.query_info_finish)
3440 .field("query_filesystem_info", &self.query_filesystem_info)
3441 .field(
3442 "query_filesystem_info_async",
3443 &self.query_filesystem_info_async,
3444 )
3445 .field(
3446 "query_filesystem_info_finish",
3447 &self.query_filesystem_info_finish,
3448 )
3449 .field("find_enclosing_mount", &self.find_enclosing_mount)
3450 .field(
3451 "find_enclosing_mount_async",
3452 &self.find_enclosing_mount_async,
3453 )
3454 .field(
3455 "find_enclosing_mount_finish",
3456 &self.find_enclosing_mount_finish,
3457 )
3458 .field("set_display_name", &self.set_display_name)
3459 .field("set_display_name_async", &self.set_display_name_async)
3460 .field("set_display_name_finish", &self.set_display_name_finish)
3461 .field("query_settable_attributes", &self.query_settable_attributes)
3462 .field(
3463 "_query_settable_attributes_async",
3464 &self._query_settable_attributes_async,
3465 )
3466 .field(
3467 "_query_settable_attributes_finish",
3468 &self._query_settable_attributes_finish,
3469 )
3470 .field("query_writable_namespaces", &self.query_writable_namespaces)
3471 .field(
3472 "_query_writable_namespaces_async",
3473 &self._query_writable_namespaces_async,
3474 )
3475 .field(
3476 "_query_writable_namespaces_finish",
3477 &self._query_writable_namespaces_finish,
3478 )
3479 .field("set_attribute", &self.set_attribute)
3480 .field("set_attributes_from_info", &self.set_attributes_from_info)
3481 .field("set_attributes_async", &self.set_attributes_async)
3482 .field("set_attributes_finish", &self.set_attributes_finish)
3483 .field("read_fn", &self.read_fn)
3484 .field("read_async", &self.read_async)
3485 .field("read_finish", &self.read_finish)
3486 .field("append_to", &self.append_to)
3487 .field("append_to_async", &self.append_to_async)
3488 .field("append_to_finish", &self.append_to_finish)
3489 .field("create", &self.create)
3490 .field("create_async", &self.create_async)
3491 .field("create_finish", &self.create_finish)
3492 .field("replace", &self.replace)
3493 .field("replace_async", &self.replace_async)
3494 .field("replace_finish", &self.replace_finish)
3495 .field("delete_file", &self.delete_file)
3496 .field("delete_file_async", &self.delete_file_async)
3497 .field("delete_file_finish", &self.delete_file_finish)
3498 .field("trash", &self.trash)
3499 .field("trash_async", &self.trash_async)
3500 .field("trash_finish", &self.trash_finish)
3501 .field("make_directory", &self.make_directory)
3502 .field("make_directory_async", &self.make_directory_async)
3503 .field("make_directory_finish", &self.make_directory_finish)
3504 .field("make_symbolic_link", &self.make_symbolic_link)
3505 .field("make_symbolic_link_async", &self.make_symbolic_link_async)
3506 .field("make_symbolic_link_finish", &self.make_symbolic_link_finish)
3507 .field("copy", &self.copy)
3508 .field("copy_async", &self.copy_async)
3509 .field("copy_finish", &self.copy_finish)
3510 .field("move_", &self.move_)
3511 .field("move_async", &self.move_async)
3512 .field("move_finish", &self.move_finish)
3513 .field("mount_mountable", &self.mount_mountable)
3514 .field("mount_mountable_finish", &self.mount_mountable_finish)
3515 .field("unmount_mountable", &self.unmount_mountable)
3516 .field("unmount_mountable_finish", &self.unmount_mountable_finish)
3517 .field("eject_mountable", &self.eject_mountable)
3518 .field("eject_mountable_finish", &self.eject_mountable_finish)
3519 .field("mount_enclosing_volume", &self.mount_enclosing_volume)
3520 .field(
3521 "mount_enclosing_volume_finish",
3522 &self.mount_enclosing_volume_finish,
3523 )
3524 .field("monitor_dir", &self.monitor_dir)
3525 .field("monitor_file", &self.monitor_file)
3526 .field("open_readwrite", &self.open_readwrite)
3527 .field("open_readwrite_async", &self.open_readwrite_async)
3528 .field("open_readwrite_finish", &self.open_readwrite_finish)
3529 .field("create_readwrite", &self.create_readwrite)
3530 .field("create_readwrite_async", &self.create_readwrite_async)
3531 .field("create_readwrite_finish", &self.create_readwrite_finish)
3532 .field("replace_readwrite", &self.replace_readwrite)
3533 .field("replace_readwrite_async", &self.replace_readwrite_async)
3534 .field("replace_readwrite_finish", &self.replace_readwrite_finish)
3535 .field("start_mountable", &self.start_mountable)
3536 .field("start_mountable_finish", &self.start_mountable_finish)
3537 .field("stop_mountable", &self.stop_mountable)
3538 .field("stop_mountable_finish", &self.stop_mountable_finish)
3539 .field("supports_thread_contexts", &self.supports_thread_contexts)
3540 .field(
3541 "unmount_mountable_with_operation",
3542 &self.unmount_mountable_with_operation,
3543 )
3544 .field(
3545 "unmount_mountable_with_operation_finish",
3546 &self.unmount_mountable_with_operation_finish,
3547 )
3548 .field(
3549 "eject_mountable_with_operation",
3550 &self.eject_mountable_with_operation,
3551 )
3552 .field(
3553 "eject_mountable_with_operation_finish",
3554 &self.eject_mountable_with_operation_finish,
3555 )
3556 .field("poll_mountable", &self.poll_mountable)
3557 .field("poll_mountable_finish", &self.poll_mountable_finish)
3558 .field("measure_disk_usage", &self.measure_disk_usage)
3559 .field("measure_disk_usage_async", &self.measure_disk_usage_async)
3560 .field("measure_disk_usage_finish", &self.measure_disk_usage_finish)
3561 .field("query_exists", &self.query_exists)
3562 .finish()
3563 }
3564}
3565
3566#[repr(C)]
3567#[allow(dead_code)]
3568pub struct _GFileInfoClass {
3569 _data: [u8; 0],
3570 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3571}
3572
3573pub type GFileInfoClass = _GFileInfoClass;
3574
3575#[derive(Copy, Clone)]
3576#[repr(C)]
3577pub struct GFileInputStreamClass {
3578 pub parent_class: GInputStreamClass,
3579 pub tell: Option<unsafe extern "C" fn(*mut GFileInputStream) -> i64>,
3580 pub can_seek: Option<unsafe extern "C" fn(*mut GFileInputStream) -> gboolean>,
3581 pub seek: Option<
3582 unsafe extern "C" fn(
3583 *mut GFileInputStream,
3584 i64,
3585 glib::GSeekType,
3586 *mut GCancellable,
3587 *mut *mut glib::GError,
3588 ) -> gboolean,
3589 >,
3590 pub query_info: Option<
3591 unsafe extern "C" fn(
3592 *mut GFileInputStream,
3593 *const c_char,
3594 *mut GCancellable,
3595 *mut *mut glib::GError,
3596 ) -> *mut GFileInfo,
3597 >,
3598 pub query_info_async: Option<
3599 unsafe extern "C" fn(
3600 *mut GFileInputStream,
3601 *const c_char,
3602 c_int,
3603 *mut GCancellable,
3604 GAsyncReadyCallback,
3605 gpointer,
3606 ),
3607 >,
3608 pub query_info_finish: Option<
3609 unsafe extern "C" fn(
3610 *mut GFileInputStream,
3611 *mut GAsyncResult,
3612 *mut *mut glib::GError,
3613 ) -> *mut GFileInfo,
3614 >,
3615 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3616 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3617 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3618 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3619 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3620}
3621
3622impl ::std::fmt::Debug for GFileInputStreamClass {
3623 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3624 f.debug_struct(&format!("GFileInputStreamClass @ {self:p}"))
3625 .field("parent_class", &self.parent_class)
3626 .field("tell", &self.tell)
3627 .field("can_seek", &self.can_seek)
3628 .field("seek", &self.seek)
3629 .field("query_info", &self.query_info)
3630 .field("query_info_async", &self.query_info_async)
3631 .field("query_info_finish", &self.query_info_finish)
3632 .field("_g_reserved1", &self._g_reserved1)
3633 .field("_g_reserved2", &self._g_reserved2)
3634 .field("_g_reserved3", &self._g_reserved3)
3635 .field("_g_reserved4", &self._g_reserved4)
3636 .field("_g_reserved5", &self._g_reserved5)
3637 .finish()
3638 }
3639}
3640
3641#[repr(C)]
3642#[allow(dead_code)]
3643pub struct _GFileInputStreamPrivate {
3644 _data: [u8; 0],
3645 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3646}
3647
3648pub type GFileInputStreamPrivate = _GFileInputStreamPrivate;
3649
3650#[derive(Copy, Clone)]
3651#[repr(C)]
3652pub struct GFileMonitorClass {
3653 pub parent_class: gobject::GObjectClass,
3654 pub changed:
3655 Option<unsafe extern "C" fn(*mut GFileMonitor, *mut GFile, *mut GFile, GFileMonitorEvent)>,
3656 pub cancel: Option<unsafe extern "C" fn(*mut GFileMonitor) -> gboolean>,
3657 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3658 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3659 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3660 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3661 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3662}
3663
3664impl ::std::fmt::Debug for GFileMonitorClass {
3665 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3666 f.debug_struct(&format!("GFileMonitorClass @ {self:p}"))
3667 .field("parent_class", &self.parent_class)
3668 .field("changed", &self.changed)
3669 .field("cancel", &self.cancel)
3670 .field("_g_reserved1", &self._g_reserved1)
3671 .field("_g_reserved2", &self._g_reserved2)
3672 .field("_g_reserved3", &self._g_reserved3)
3673 .field("_g_reserved4", &self._g_reserved4)
3674 .field("_g_reserved5", &self._g_reserved5)
3675 .finish()
3676 }
3677}
3678
3679#[repr(C)]
3680#[allow(dead_code)]
3681pub struct _GFileMonitorPrivate {
3682 _data: [u8; 0],
3683 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3684}
3685
3686pub type GFileMonitorPrivate = _GFileMonitorPrivate;
3687
3688#[derive(Copy, Clone)]
3689#[repr(C)]
3690pub struct GFileOutputStreamClass {
3691 pub parent_class: GOutputStreamClass,
3692 pub tell: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> i64>,
3693 pub can_seek: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3694 pub seek: Option<
3695 unsafe extern "C" fn(
3696 *mut GFileOutputStream,
3697 i64,
3698 glib::GSeekType,
3699 *mut GCancellable,
3700 *mut *mut glib::GError,
3701 ) -> gboolean,
3702 >,
3703 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3704 pub truncate_fn: Option<
3705 unsafe extern "C" fn(
3706 *mut GFileOutputStream,
3707 i64,
3708 *mut GCancellable,
3709 *mut *mut glib::GError,
3710 ) -> gboolean,
3711 >,
3712 pub query_info: Option<
3713 unsafe extern "C" fn(
3714 *mut GFileOutputStream,
3715 *const c_char,
3716 *mut GCancellable,
3717 *mut *mut glib::GError,
3718 ) -> *mut GFileInfo,
3719 >,
3720 pub query_info_async: Option<
3721 unsafe extern "C" fn(
3722 *mut GFileOutputStream,
3723 *const c_char,
3724 c_int,
3725 *mut GCancellable,
3726 GAsyncReadyCallback,
3727 gpointer,
3728 ),
3729 >,
3730 pub query_info_finish: Option<
3731 unsafe extern "C" fn(
3732 *mut GFileOutputStream,
3733 *mut GAsyncResult,
3734 *mut *mut glib::GError,
3735 ) -> *mut GFileInfo,
3736 >,
3737 pub get_etag: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> *mut c_char>,
3738 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3739 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3740 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3741 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3742 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3743}
3744
3745impl ::std::fmt::Debug for GFileOutputStreamClass {
3746 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3747 f.debug_struct(&format!("GFileOutputStreamClass @ {self:p}"))
3748 .field("parent_class", &self.parent_class)
3749 .field("tell", &self.tell)
3750 .field("can_seek", &self.can_seek)
3751 .field("seek", &self.seek)
3752 .field("can_truncate", &self.can_truncate)
3753 .field("truncate_fn", &self.truncate_fn)
3754 .field("query_info", &self.query_info)
3755 .field("query_info_async", &self.query_info_async)
3756 .field("query_info_finish", &self.query_info_finish)
3757 .field("get_etag", &self.get_etag)
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 .finish()
3764 }
3765}
3766
3767#[repr(C)]
3768#[allow(dead_code)]
3769pub struct _GFileOutputStreamPrivate {
3770 _data: [u8; 0],
3771 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3772}
3773
3774pub type GFileOutputStreamPrivate = _GFileOutputStreamPrivate;
3775
3776#[derive(Copy, Clone)]
3777#[repr(C)]
3778pub struct GFilenameCompleterClass {
3779 pub parent_class: gobject::GObjectClass,
3780 pub got_completion_data: Option<unsafe extern "C" fn(*mut GFilenameCompleter)>,
3781 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3782 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3783 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3784}
3785
3786impl ::std::fmt::Debug for GFilenameCompleterClass {
3787 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3788 f.debug_struct(&format!("GFilenameCompleterClass @ {self:p}"))
3789 .field("parent_class", &self.parent_class)
3790 .field("got_completion_data", &self.got_completion_data)
3791 .field("_g_reserved1", &self._g_reserved1)
3792 .field("_g_reserved2", &self._g_reserved2)
3793 .field("_g_reserved3", &self._g_reserved3)
3794 .finish()
3795 }
3796}
3797
3798#[derive(Copy, Clone)]
3799#[repr(C)]
3800pub struct GFilterInputStreamClass {
3801 pub parent_class: GInputStreamClass,
3802 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3803 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3804 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3805}
3806
3807impl ::std::fmt::Debug for GFilterInputStreamClass {
3808 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3809 f.debug_struct(&format!("GFilterInputStreamClass @ {self:p}"))
3810 .field("parent_class", &self.parent_class)
3811 .field("_g_reserved1", &self._g_reserved1)
3812 .field("_g_reserved2", &self._g_reserved2)
3813 .field("_g_reserved3", &self._g_reserved3)
3814 .finish()
3815 }
3816}
3817
3818#[derive(Copy, Clone)]
3819#[repr(C)]
3820pub struct GFilterOutputStreamClass {
3821 pub parent_class: GOutputStreamClass,
3822 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3823 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3824 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3825}
3826
3827impl ::std::fmt::Debug for GFilterOutputStreamClass {
3828 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3829 f.debug_struct(&format!("GFilterOutputStreamClass @ {self:p}"))
3830 .field("parent_class", &self.parent_class)
3831 .field("_g_reserved1", &self._g_reserved1)
3832 .field("_g_reserved2", &self._g_reserved2)
3833 .field("_g_reserved3", &self._g_reserved3)
3834 .finish()
3835 }
3836}
3837
3838#[repr(C)]
3839#[allow(dead_code)]
3840pub struct _GIOExtension {
3841 _data: [u8; 0],
3842 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3843}
3844
3845pub type GIOExtension = _GIOExtension;
3846
3847#[repr(C)]
3848#[allow(dead_code)]
3849pub struct _GIOExtensionPoint {
3850 _data: [u8; 0],
3851 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3852}
3853
3854pub type GIOExtensionPoint = _GIOExtensionPoint;
3855
3856#[repr(C)]
3857#[allow(dead_code)]
3858pub struct _GIOModuleClass {
3859 _data: [u8; 0],
3860 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3861}
3862
3863pub type GIOModuleClass = _GIOModuleClass;
3864
3865#[repr(C)]
3866#[allow(dead_code)]
3867pub struct _GIOModuleScope {
3868 _data: [u8; 0],
3869 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3870}
3871
3872pub type GIOModuleScope = _GIOModuleScope;
3873
3874#[repr(C)]
3875#[allow(dead_code)]
3876pub struct _GIOSchedulerJob {
3877 _data: [u8; 0],
3878 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3879}
3880
3881pub type GIOSchedulerJob = _GIOSchedulerJob;
3882
3883#[repr(C)]
3884#[allow(dead_code)]
3885pub struct _GIOStreamAdapter {
3886 _data: [u8; 0],
3887 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3888}
3889
3890pub type GIOStreamAdapter = _GIOStreamAdapter;
3891
3892#[derive(Copy, Clone)]
3893#[repr(C)]
3894pub struct GIOStreamClass {
3895 pub parent_class: gobject::GObjectClass,
3896 pub get_input_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GInputStream>,
3897 pub get_output_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GOutputStream>,
3898 pub close_fn: Option<
3899 unsafe extern "C" fn(*mut GIOStream, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3900 >,
3901 pub close_async: Option<
3902 unsafe extern "C" fn(
3903 *mut GIOStream,
3904 c_int,
3905 *mut GCancellable,
3906 GAsyncReadyCallback,
3907 gpointer,
3908 ),
3909 >,
3910 pub close_finish: Option<
3911 unsafe extern "C" fn(*mut GIOStream, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3912 >,
3913 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3914 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3915 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3916 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3917 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3918 pub _g_reserved6: Option<unsafe extern "C" fn()>,
3919 pub _g_reserved7: Option<unsafe extern "C" fn()>,
3920 pub _g_reserved8: Option<unsafe extern "C" fn()>,
3921 pub _g_reserved9: Option<unsafe extern "C" fn()>,
3922 pub _g_reserved10: Option<unsafe extern "C" fn()>,
3923}
3924
3925impl ::std::fmt::Debug for GIOStreamClass {
3926 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3927 f.debug_struct(&format!("GIOStreamClass @ {self:p}"))
3928 .field("parent_class", &self.parent_class)
3929 .field("get_input_stream", &self.get_input_stream)
3930 .field("get_output_stream", &self.get_output_stream)
3931 .field("close_fn", &self.close_fn)
3932 .field("close_async", &self.close_async)
3933 .field("close_finish", &self.close_finish)
3934 .field("_g_reserved1", &self._g_reserved1)
3935 .field("_g_reserved2", &self._g_reserved2)
3936 .field("_g_reserved3", &self._g_reserved3)
3937 .field("_g_reserved4", &self._g_reserved4)
3938 .field("_g_reserved5", &self._g_reserved5)
3939 .field("_g_reserved6", &self._g_reserved6)
3940 .field("_g_reserved7", &self._g_reserved7)
3941 .field("_g_reserved8", &self._g_reserved8)
3942 .field("_g_reserved9", &self._g_reserved9)
3943 .field("_g_reserved10", &self._g_reserved10)
3944 .finish()
3945 }
3946}
3947
3948#[repr(C)]
3949#[allow(dead_code)]
3950pub struct _GIOStreamPrivate {
3951 _data: [u8; 0],
3952 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3953}
3954
3955pub type GIOStreamPrivate = _GIOStreamPrivate;
3956
3957#[derive(Copy, Clone)]
3958#[repr(C)]
3959pub struct GIconIface {
3960 pub g_iface: gobject::GTypeInterface,
3961 pub hash: Option<unsafe extern "C" fn(*mut GIcon) -> c_uint>,
3962 pub equal: Option<unsafe extern "C" fn(*mut GIcon, *mut GIcon) -> gboolean>,
3963 pub to_tokens:
3964 Option<unsafe extern "C" fn(*mut GIcon, *mut glib::GPtrArray, *mut c_int) -> gboolean>,
3965 pub from_tokens: Option<
3966 unsafe extern "C" fn(*mut *mut c_char, c_int, c_int, *mut *mut glib::GError) -> *mut GIcon,
3967 >,
3968 pub serialize: Option<unsafe extern "C" fn(*mut GIcon) -> *mut glib::GVariant>,
3969}
3970
3971impl ::std::fmt::Debug for GIconIface {
3972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3973 f.debug_struct(&format!("GIconIface @ {self:p}"))
3974 .field("g_iface", &self.g_iface)
3975 .field("hash", &self.hash)
3976 .field("equal", &self.equal)
3977 .field("to_tokens", &self.to_tokens)
3978 .field("from_tokens", &self.from_tokens)
3979 .field("serialize", &self.serialize)
3980 .finish()
3981 }
3982}
3983
3984#[derive(Copy, Clone)]
3985#[repr(C)]
3986pub struct GInetAddressClass {
3987 pub parent_class: gobject::GObjectClass,
3988 pub to_string: Option<unsafe extern "C" fn(*mut GInetAddress) -> *mut c_char>,
3989 pub to_bytes: Option<unsafe extern "C" fn(*mut GInetAddress) -> *const u8>,
3990}
3991
3992impl ::std::fmt::Debug for GInetAddressClass {
3993 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3994 f.debug_struct(&format!("GInetAddressClass @ {self:p}"))
3995 .field("parent_class", &self.parent_class)
3996 .field("to_string", &self.to_string)
3997 .field("to_bytes", &self.to_bytes)
3998 .finish()
3999 }
4000}
4001
4002#[derive(Copy, Clone)]
4003#[repr(C)]
4004pub struct GInetAddressMaskClass {
4005 pub parent_class: gobject::GObjectClass,
4006}
4007
4008impl ::std::fmt::Debug for GInetAddressMaskClass {
4009 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4010 f.debug_struct(&format!("GInetAddressMaskClass @ {self:p}"))
4011 .field("parent_class", &self.parent_class)
4012 .finish()
4013 }
4014}
4015
4016#[repr(C)]
4017#[allow(dead_code)]
4018pub struct _GInetAddressMaskPrivate {
4019 _data: [u8; 0],
4020 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4021}
4022
4023pub type GInetAddressMaskPrivate = _GInetAddressMaskPrivate;
4024
4025#[repr(C)]
4026#[allow(dead_code)]
4027pub struct _GInetAddressPrivate {
4028 _data: [u8; 0],
4029 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4030}
4031
4032pub type GInetAddressPrivate = _GInetAddressPrivate;
4033
4034#[derive(Copy, Clone)]
4035#[repr(C)]
4036pub struct GInetSocketAddressClass {
4037 pub parent_class: GSocketAddressClass,
4038}
4039
4040impl ::std::fmt::Debug for GInetSocketAddressClass {
4041 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4042 f.debug_struct(&format!("GInetSocketAddressClass @ {self:p}"))
4043 .field("parent_class", &self.parent_class)
4044 .finish()
4045 }
4046}
4047
4048#[repr(C)]
4049#[allow(dead_code)]
4050pub struct _GInetSocketAddressPrivate {
4051 _data: [u8; 0],
4052 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4053}
4054
4055pub type GInetSocketAddressPrivate = _GInetSocketAddressPrivate;
4056
4057#[derive(Copy, Clone)]
4058#[repr(C)]
4059pub struct GInitableIface {
4060 pub g_iface: gobject::GTypeInterface,
4061 pub init: Option<
4062 unsafe extern "C" fn(*mut GInitable, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
4063 >,
4064}
4065
4066impl ::std::fmt::Debug for GInitableIface {
4067 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4068 f.debug_struct(&format!("GInitableIface @ {self:p}"))
4069 .field("g_iface", &self.g_iface)
4070 .field("init", &self.init)
4071 .finish()
4072 }
4073}
4074
4075#[derive(Copy, Clone)]
4076#[repr(C)]
4077pub struct GInputMessage {
4078 pub address: *mut *mut GSocketAddress,
4079 pub vectors: *mut GInputVector,
4080 pub num_vectors: c_uint,
4081 pub bytes_received: size_t,
4082 pub flags: c_int,
4083 pub control_messages: *mut *mut *mut GSocketControlMessage,
4084 pub num_control_messages: *mut c_uint,
4085}
4086
4087impl ::std::fmt::Debug for GInputMessage {
4088 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4089 f.debug_struct(&format!("GInputMessage @ {self:p}"))
4090 .field("address", &self.address)
4091 .field("vectors", &self.vectors)
4092 .field("num_vectors", &self.num_vectors)
4093 .field("bytes_received", &self.bytes_received)
4094 .field("flags", &self.flags)
4095 .field("control_messages", &self.control_messages)
4096 .field("num_control_messages", &self.num_control_messages)
4097 .finish()
4098 }
4099}
4100
4101#[derive(Copy, Clone)]
4102#[repr(C)]
4103pub struct GInputStreamClass {
4104 pub parent_class: gobject::GObjectClass,
4105 pub read_fn: Option<
4106 unsafe extern "C" fn(
4107 *mut GInputStream,
4108 *mut c_void,
4109 size_t,
4110 *mut GCancellable,
4111 *mut *mut glib::GError,
4112 ) -> ssize_t,
4113 >,
4114 pub skip: Option<
4115 unsafe extern "C" fn(
4116 *mut GInputStream,
4117 size_t,
4118 *mut GCancellable,
4119 *mut *mut glib::GError,
4120 ) -> ssize_t,
4121 >,
4122 pub close_fn: Option<
4123 unsafe extern "C" fn(
4124 *mut GInputStream,
4125 *mut GCancellable,
4126 *mut *mut glib::GError,
4127 ) -> gboolean,
4128 >,
4129 pub read_async: Option<
4130 unsafe extern "C" fn(
4131 *mut GInputStream,
4132 *mut u8,
4133 size_t,
4134 c_int,
4135 *mut GCancellable,
4136 GAsyncReadyCallback,
4137 gpointer,
4138 ),
4139 >,
4140 pub read_finish: Option<
4141 unsafe extern "C" fn(
4142 *mut GInputStream,
4143 *mut GAsyncResult,
4144 *mut *mut glib::GError,
4145 ) -> ssize_t,
4146 >,
4147 pub skip_async: Option<
4148 unsafe extern "C" fn(
4149 *mut GInputStream,
4150 size_t,
4151 c_int,
4152 *mut GCancellable,
4153 GAsyncReadyCallback,
4154 gpointer,
4155 ),
4156 >,
4157 pub skip_finish: Option<
4158 unsafe extern "C" fn(
4159 *mut GInputStream,
4160 *mut GAsyncResult,
4161 *mut *mut glib::GError,
4162 ) -> ssize_t,
4163 >,
4164 pub close_async: Option<
4165 unsafe extern "C" fn(
4166 *mut GInputStream,
4167 c_int,
4168 *mut GCancellable,
4169 GAsyncReadyCallback,
4170 gpointer,
4171 ),
4172 >,
4173 pub close_finish: Option<
4174 unsafe extern "C" fn(
4175 *mut GInputStream,
4176 *mut GAsyncResult,
4177 *mut *mut glib::GError,
4178 ) -> gboolean,
4179 >,
4180 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4181 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4182 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4183 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4184 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4185}
4186
4187impl ::std::fmt::Debug for GInputStreamClass {
4188 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4189 f.debug_struct(&format!("GInputStreamClass @ {self:p}"))
4190 .field("parent_class", &self.parent_class)
4191 .field("read_fn", &self.read_fn)
4192 .field("skip", &self.skip)
4193 .field("close_fn", &self.close_fn)
4194 .field("read_async", &self.read_async)
4195 .field("read_finish", &self.read_finish)
4196 .field("skip_async", &self.skip_async)
4197 .field("skip_finish", &self.skip_finish)
4198 .field("close_async", &self.close_async)
4199 .field("close_finish", &self.close_finish)
4200 .field("_g_reserved1", &self._g_reserved1)
4201 .field("_g_reserved2", &self._g_reserved2)
4202 .field("_g_reserved3", &self._g_reserved3)
4203 .field("_g_reserved4", &self._g_reserved4)
4204 .field("_g_reserved5", &self._g_reserved5)
4205 .finish()
4206 }
4207}
4208
4209#[repr(C)]
4210#[allow(dead_code)]
4211pub struct _GInputStreamPrivate {
4212 _data: [u8; 0],
4213 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4214}
4215
4216pub type GInputStreamPrivate = _GInputStreamPrivate;
4217
4218#[derive(Copy, Clone)]
4219#[repr(C)]
4220pub struct GInputVector {
4221 pub buffer: gpointer,
4222 pub size: size_t,
4223}
4224
4225impl ::std::fmt::Debug for GInputVector {
4226 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4227 f.debug_struct(&format!("GInputVector @ {self:p}"))
4228 .field("buffer", &self.buffer)
4229 .field("size", &self.size)
4230 .finish()
4231 }
4232}
4233
4234#[derive(Copy, Clone)]
4235#[repr(C)]
4236pub struct GListModelInterface {
4237 pub g_iface: gobject::GTypeInterface,
4238 pub get_item_type: Option<unsafe extern "C" fn(*mut GListModel) -> GType>,
4239 pub get_n_items: Option<unsafe extern "C" fn(*mut GListModel) -> c_uint>,
4240 pub get_item: Option<unsafe extern "C" fn(*mut GListModel, c_uint) -> *mut gobject::GObject>,
4241}
4242
4243impl ::std::fmt::Debug for GListModelInterface {
4244 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4245 f.debug_struct(&format!("GListModelInterface @ {self:p}"))
4246 .field("g_iface", &self.g_iface)
4247 .field("get_item_type", &self.get_item_type)
4248 .field("get_n_items", &self.get_n_items)
4249 .field("get_item", &self.get_item)
4250 .finish()
4251 }
4252}
4253
4254#[derive(Copy, Clone)]
4255#[repr(C)]
4256pub struct GListStoreClass {
4257 pub parent_class: gobject::GObjectClass,
4258}
4259
4260impl ::std::fmt::Debug for GListStoreClass {
4261 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4262 f.debug_struct(&format!("GListStoreClass @ {self:p}"))
4263 .field("parent_class", &self.parent_class)
4264 .finish()
4265 }
4266}
4267
4268#[derive(Copy, Clone)]
4269#[repr(C)]
4270pub struct GLoadableIconIface {
4271 pub g_iface: gobject::GTypeInterface,
4272 pub load: Option<
4273 unsafe extern "C" fn(
4274 *mut GLoadableIcon,
4275 c_int,
4276 *mut *mut c_char,
4277 *mut GCancellable,
4278 *mut *mut glib::GError,
4279 ) -> *mut GInputStream,
4280 >,
4281 pub load_async: Option<
4282 unsafe extern "C" fn(
4283 *mut GLoadableIcon,
4284 c_int,
4285 *mut GCancellable,
4286 GAsyncReadyCallback,
4287 gpointer,
4288 ),
4289 >,
4290 pub load_finish: Option<
4291 unsafe extern "C" fn(
4292 *mut GLoadableIcon,
4293 *mut GAsyncResult,
4294 *mut *mut c_char,
4295 *mut *mut glib::GError,
4296 ) -> *mut GInputStream,
4297 >,
4298}
4299
4300impl ::std::fmt::Debug for GLoadableIconIface {
4301 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4302 f.debug_struct(&format!("GLoadableIconIface @ {self:p}"))
4303 .field("g_iface", &self.g_iface)
4304 .field("load", &self.load)
4305 .field("load_async", &self.load_async)
4306 .field("load_finish", &self.load_finish)
4307 .finish()
4308 }
4309}
4310
4311#[derive(Copy, Clone)]
4312#[repr(C)]
4313pub struct GMemoryInputStreamClass {
4314 pub parent_class: GInputStreamClass,
4315 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4316 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4317 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4318 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4319 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4320}
4321
4322impl ::std::fmt::Debug for GMemoryInputStreamClass {
4323 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4324 f.debug_struct(&format!("GMemoryInputStreamClass @ {self:p}"))
4325 .field("parent_class", &self.parent_class)
4326 .field("_g_reserved1", &self._g_reserved1)
4327 .field("_g_reserved2", &self._g_reserved2)
4328 .field("_g_reserved3", &self._g_reserved3)
4329 .field("_g_reserved4", &self._g_reserved4)
4330 .field("_g_reserved5", &self._g_reserved5)
4331 .finish()
4332 }
4333}
4334
4335#[repr(C)]
4336#[allow(dead_code)]
4337pub struct _GMemoryInputStreamPrivate {
4338 _data: [u8; 0],
4339 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4340}
4341
4342pub type GMemoryInputStreamPrivate = _GMemoryInputStreamPrivate;
4343
4344#[derive(Copy, Clone)]
4345#[repr(C)]
4346pub struct GMemoryMonitorInterface {
4347 pub g_iface: gobject::GTypeInterface,
4348 pub low_memory_warning:
4349 Option<unsafe extern "C" fn(*mut GMemoryMonitor, GMemoryMonitorWarningLevel)>,
4350}
4351
4352impl ::std::fmt::Debug for GMemoryMonitorInterface {
4353 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4354 f.debug_struct(&format!("GMemoryMonitorInterface @ {self:p}"))
4355 .field("low_memory_warning", &self.low_memory_warning)
4356 .finish()
4357 }
4358}
4359
4360#[derive(Copy, Clone)]
4361#[repr(C)]
4362pub struct GMemoryOutputStreamClass {
4363 pub parent_class: GOutputStreamClass,
4364 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4365 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4366 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4367 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4368 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4369}
4370
4371impl ::std::fmt::Debug for GMemoryOutputStreamClass {
4372 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4373 f.debug_struct(&format!("GMemoryOutputStreamClass @ {self:p}"))
4374 .field("parent_class", &self.parent_class)
4375 .field("_g_reserved1", &self._g_reserved1)
4376 .field("_g_reserved2", &self._g_reserved2)
4377 .field("_g_reserved3", &self._g_reserved3)
4378 .field("_g_reserved4", &self._g_reserved4)
4379 .field("_g_reserved5", &self._g_reserved5)
4380 .finish()
4381 }
4382}
4383
4384#[repr(C)]
4385#[allow(dead_code)]
4386pub struct _GMemoryOutputStreamPrivate {
4387 _data: [u8; 0],
4388 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4389}
4390
4391pub type GMemoryOutputStreamPrivate = _GMemoryOutputStreamPrivate;
4392
4393#[derive(Copy, Clone)]
4394#[repr(C)]
4395pub struct GMenuAttributeIterClass {
4396 pub parent_class: gobject::GObjectClass,
4397 pub get_next: Option<
4398 unsafe extern "C" fn(
4399 *mut GMenuAttributeIter,
4400 *mut *const c_char,
4401 *mut *mut glib::GVariant,
4402 ) -> gboolean,
4403 >,
4404}
4405
4406impl ::std::fmt::Debug for GMenuAttributeIterClass {
4407 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4408 f.debug_struct(&format!("GMenuAttributeIterClass @ {self:p}"))
4409 .field("parent_class", &self.parent_class)
4410 .field("get_next", &self.get_next)
4411 .finish()
4412 }
4413}
4414
4415#[repr(C)]
4416#[allow(dead_code)]
4417pub struct _GMenuAttributeIterPrivate {
4418 _data: [u8; 0],
4419 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4420}
4421
4422pub type GMenuAttributeIterPrivate = _GMenuAttributeIterPrivate;
4423
4424#[derive(Copy, Clone)]
4425#[repr(C)]
4426pub struct GMenuLinkIterClass {
4427 pub parent_class: gobject::GObjectClass,
4428 pub get_next: Option<
4429 unsafe extern "C" fn(
4430 *mut GMenuLinkIter,
4431 *mut *const c_char,
4432 *mut *mut GMenuModel,
4433 ) -> gboolean,
4434 >,
4435}
4436
4437impl ::std::fmt::Debug for GMenuLinkIterClass {
4438 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4439 f.debug_struct(&format!("GMenuLinkIterClass @ {self:p}"))
4440 .field("parent_class", &self.parent_class)
4441 .field("get_next", &self.get_next)
4442 .finish()
4443 }
4444}
4445
4446#[repr(C)]
4447#[allow(dead_code)]
4448pub struct _GMenuLinkIterPrivate {
4449 _data: [u8; 0],
4450 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4451}
4452
4453pub type GMenuLinkIterPrivate = _GMenuLinkIterPrivate;
4454
4455#[derive(Copy, Clone)]
4456#[repr(C)]
4457pub struct GMenuModelClass {
4458 pub parent_class: gobject::GObjectClass,
4459 pub is_mutable: Option<unsafe extern "C" fn(*mut GMenuModel) -> gboolean>,
4460 pub get_n_items: Option<unsafe extern "C" fn(*mut GMenuModel) -> c_int>,
4461 pub get_item_attributes:
4462 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4463 pub iterate_item_attributes:
4464 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuAttributeIter>,
4465 pub get_item_attribute_value: Option<
4466 unsafe extern "C" fn(
4467 *mut GMenuModel,
4468 c_int,
4469 *const c_char,
4470 *const glib::GVariantType,
4471 ) -> *mut glib::GVariant,
4472 >,
4473 pub get_item_links:
4474 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4475 pub iterate_item_links:
4476 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuLinkIter>,
4477 pub get_item_link:
4478 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *const c_char) -> *mut GMenuModel>,
4479}
4480
4481impl ::std::fmt::Debug for GMenuModelClass {
4482 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4483 f.debug_struct(&format!("GMenuModelClass @ {self:p}"))
4484 .field("parent_class", &self.parent_class)
4485 .field("is_mutable", &self.is_mutable)
4486 .field("get_n_items", &self.get_n_items)
4487 .field("get_item_attributes", &self.get_item_attributes)
4488 .field("iterate_item_attributes", &self.iterate_item_attributes)
4489 .field("get_item_attribute_value", &self.get_item_attribute_value)
4490 .field("get_item_links", &self.get_item_links)
4491 .field("iterate_item_links", &self.iterate_item_links)
4492 .field("get_item_link", &self.get_item_link)
4493 .finish()
4494 }
4495}
4496
4497#[repr(C)]
4498#[allow(dead_code)]
4499pub struct _GMenuModelPrivate {
4500 _data: [u8; 0],
4501 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4502}
4503
4504pub type GMenuModelPrivate = _GMenuModelPrivate;
4505
4506#[derive(Copy, Clone)]
4507#[repr(C)]
4508pub struct GMountIface {
4509 pub g_iface: gobject::GTypeInterface,
4510 pub changed: Option<unsafe extern "C" fn(*mut GMount)>,
4511 pub unmounted: Option<unsafe extern "C" fn(*mut GMount)>,
4512 pub get_root: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4513 pub get_name: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4514 pub get_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4515 pub get_uuid: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4516 pub get_volume: Option<unsafe extern "C" fn(*mut GMount) -> *mut GVolume>,
4517 pub get_drive: Option<unsafe extern "C" fn(*mut GMount) -> *mut GDrive>,
4518 pub can_unmount: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4519 pub can_eject: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4520 pub unmount: Option<
4521 unsafe extern "C" fn(
4522 *mut GMount,
4523 GMountUnmountFlags,
4524 *mut GCancellable,
4525 GAsyncReadyCallback,
4526 gpointer,
4527 ),
4528 >,
4529 pub unmount_finish: Option<
4530 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4531 >,
4532 pub eject: Option<
4533 unsafe extern "C" fn(
4534 *mut GMount,
4535 GMountUnmountFlags,
4536 *mut GCancellable,
4537 GAsyncReadyCallback,
4538 gpointer,
4539 ),
4540 >,
4541 pub eject_finish: Option<
4542 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4543 >,
4544 pub remount: Option<
4545 unsafe extern "C" fn(
4546 *mut GMount,
4547 GMountMountFlags,
4548 *mut GMountOperation,
4549 *mut GCancellable,
4550 GAsyncReadyCallback,
4551 gpointer,
4552 ),
4553 >,
4554 pub remount_finish: Option<
4555 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4556 >,
4557 pub guess_content_type: Option<
4558 unsafe extern "C" fn(
4559 *mut GMount,
4560 gboolean,
4561 *mut GCancellable,
4562 GAsyncReadyCallback,
4563 gpointer,
4564 ),
4565 >,
4566 pub guess_content_type_finish: Option<
4567 unsafe extern "C" fn(
4568 *mut GMount,
4569 *mut GAsyncResult,
4570 *mut *mut glib::GError,
4571 ) -> *mut *mut c_char,
4572 >,
4573 pub guess_content_type_sync: Option<
4574 unsafe extern "C" fn(
4575 *mut GMount,
4576 gboolean,
4577 *mut GCancellable,
4578 *mut *mut glib::GError,
4579 ) -> *mut *mut c_char,
4580 >,
4581 pub pre_unmount: Option<unsafe extern "C" fn(*mut GMount)>,
4582 pub unmount_with_operation: Option<
4583 unsafe extern "C" fn(
4584 *mut GMount,
4585 GMountUnmountFlags,
4586 *mut GMountOperation,
4587 *mut GCancellable,
4588 GAsyncReadyCallback,
4589 gpointer,
4590 ),
4591 >,
4592 pub unmount_with_operation_finish: Option<
4593 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4594 >,
4595 pub eject_with_operation: Option<
4596 unsafe extern "C" fn(
4597 *mut GMount,
4598 GMountUnmountFlags,
4599 *mut GMountOperation,
4600 *mut GCancellable,
4601 GAsyncReadyCallback,
4602 gpointer,
4603 ),
4604 >,
4605 pub eject_with_operation_finish: Option<
4606 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4607 >,
4608 pub get_default_location: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4609 pub get_sort_key: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4610 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4611}
4612
4613impl ::std::fmt::Debug for GMountIface {
4614 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4615 f.debug_struct(&format!("GMountIface @ {self:p}"))
4616 .field("g_iface", &self.g_iface)
4617 .field("changed", &self.changed)
4618 .field("unmounted", &self.unmounted)
4619 .field("get_root", &self.get_root)
4620 .field("get_name", &self.get_name)
4621 .field("get_icon", &self.get_icon)
4622 .field("get_uuid", &self.get_uuid)
4623 .field("get_volume", &self.get_volume)
4624 .field("get_drive", &self.get_drive)
4625 .field("can_unmount", &self.can_unmount)
4626 .field("can_eject", &self.can_eject)
4627 .field("unmount", &self.unmount)
4628 .field("unmount_finish", &self.unmount_finish)
4629 .field("eject", &self.eject)
4630 .field("eject_finish", &self.eject_finish)
4631 .field("remount", &self.remount)
4632 .field("remount_finish", &self.remount_finish)
4633 .field("guess_content_type", &self.guess_content_type)
4634 .field("guess_content_type_finish", &self.guess_content_type_finish)
4635 .field("guess_content_type_sync", &self.guess_content_type_sync)
4636 .field("pre_unmount", &self.pre_unmount)
4637 .field("unmount_with_operation", &self.unmount_with_operation)
4638 .field(
4639 "unmount_with_operation_finish",
4640 &self.unmount_with_operation_finish,
4641 )
4642 .field("eject_with_operation", &self.eject_with_operation)
4643 .field(
4644 "eject_with_operation_finish",
4645 &self.eject_with_operation_finish,
4646 )
4647 .field("get_default_location", &self.get_default_location)
4648 .field("get_sort_key", &self.get_sort_key)
4649 .field("get_symbolic_icon", &self.get_symbolic_icon)
4650 .finish()
4651 }
4652}
4653
4654#[derive(Copy, Clone)]
4655#[repr(C)]
4656pub struct GMountOperationClass {
4657 pub parent_class: gobject::GObjectClass,
4658 pub ask_password: Option<
4659 unsafe extern "C" fn(
4660 *mut GMountOperation,
4661 *const c_char,
4662 *const c_char,
4663 *const c_char,
4664 GAskPasswordFlags,
4665 ),
4666 >,
4667 pub ask_question:
4668 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, *mut *const c_char)>,
4669 pub reply: Option<unsafe extern "C" fn(*mut GMountOperation, GMountOperationResult)>,
4670 pub aborted: Option<unsafe extern "C" fn(*mut GMountOperation)>,
4671 pub show_processes: Option<
4672 unsafe extern "C" fn(
4673 *mut GMountOperation,
4674 *const c_char,
4675 *mut glib::GArray,
4676 *mut *const c_char,
4677 ),
4678 >,
4679 pub show_unmount_progress:
4680 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, i64, i64)>,
4681 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4682 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4683 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4684 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4685 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4686 pub _g_reserved6: Option<unsafe extern "C" fn()>,
4687 pub _g_reserved7: Option<unsafe extern "C" fn()>,
4688 pub _g_reserved8: Option<unsafe extern "C" fn()>,
4689 pub _g_reserved9: Option<unsafe extern "C" fn()>,
4690}
4691
4692impl ::std::fmt::Debug for GMountOperationClass {
4693 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4694 f.debug_struct(&format!("GMountOperationClass @ {self:p}"))
4695 .field("parent_class", &self.parent_class)
4696 .field("ask_password", &self.ask_password)
4697 .field("ask_question", &self.ask_question)
4698 .field("reply", &self.reply)
4699 .field("aborted", &self.aborted)
4700 .field("show_processes", &self.show_processes)
4701 .field("show_unmount_progress", &self.show_unmount_progress)
4702 .field("_g_reserved1", &self._g_reserved1)
4703 .field("_g_reserved2", &self._g_reserved2)
4704 .field("_g_reserved3", &self._g_reserved3)
4705 .field("_g_reserved4", &self._g_reserved4)
4706 .field("_g_reserved5", &self._g_reserved5)
4707 .field("_g_reserved6", &self._g_reserved6)
4708 .field("_g_reserved7", &self._g_reserved7)
4709 .field("_g_reserved8", &self._g_reserved8)
4710 .field("_g_reserved9", &self._g_reserved9)
4711 .finish()
4712 }
4713}
4714
4715#[repr(C)]
4716#[allow(dead_code)]
4717pub struct _GMountOperationPrivate {
4718 _data: [u8; 0],
4719 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4720}
4721
4722pub type GMountOperationPrivate = _GMountOperationPrivate;
4723
4724#[derive(Copy, Clone)]
4725#[repr(C)]
4726pub struct GNativeSocketAddressClass {
4727 pub parent_class: GSocketAddressClass,
4728}
4729
4730impl ::std::fmt::Debug for GNativeSocketAddressClass {
4731 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4732 f.debug_struct(&format!("GNativeSocketAddressClass @ {self:p}"))
4733 .field("parent_class", &self.parent_class)
4734 .finish()
4735 }
4736}
4737
4738#[repr(C)]
4739#[allow(dead_code)]
4740pub struct _GNativeSocketAddressPrivate {
4741 _data: [u8; 0],
4742 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4743}
4744
4745pub type GNativeSocketAddressPrivate = _GNativeSocketAddressPrivate;
4746
4747#[derive(Copy, Clone)]
4748#[repr(C)]
4749pub struct GNativeVolumeMonitorClass {
4750 pub parent_class: GVolumeMonitorClass,
4751 pub get_mount_for_mount_path:
4752 Option<unsafe extern "C" fn(*const c_char, *mut GCancellable) -> *mut GMount>,
4753}
4754
4755impl ::std::fmt::Debug for GNativeVolumeMonitorClass {
4756 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4757 f.debug_struct(&format!("GNativeVolumeMonitorClass @ {self:p}"))
4758 .field("parent_class", &self.parent_class)
4759 .field("get_mount_for_mount_path", &self.get_mount_for_mount_path)
4760 .finish()
4761 }
4762}
4763
4764#[derive(Copy, Clone)]
4765#[repr(C)]
4766pub struct GNetworkAddressClass {
4767 pub parent_class: gobject::GObjectClass,
4768}
4769
4770impl ::std::fmt::Debug for GNetworkAddressClass {
4771 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4772 f.debug_struct(&format!("GNetworkAddressClass @ {self:p}"))
4773 .field("parent_class", &self.parent_class)
4774 .finish()
4775 }
4776}
4777
4778#[repr(C)]
4779#[allow(dead_code)]
4780pub struct _GNetworkAddressPrivate {
4781 _data: [u8; 0],
4782 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4783}
4784
4785pub type GNetworkAddressPrivate = _GNetworkAddressPrivate;
4786
4787#[derive(Copy, Clone)]
4788#[repr(C)]
4789pub struct GNetworkMonitorInterface {
4790 pub g_iface: gobject::GTypeInterface,
4791 pub network_changed: Option<unsafe extern "C" fn(*mut GNetworkMonitor, gboolean)>,
4792 pub can_reach: Option<
4793 unsafe extern "C" fn(
4794 *mut GNetworkMonitor,
4795 *mut GSocketConnectable,
4796 *mut GCancellable,
4797 *mut *mut glib::GError,
4798 ) -> gboolean,
4799 >,
4800 pub can_reach_async: Option<
4801 unsafe extern "C" fn(
4802 *mut GNetworkMonitor,
4803 *mut GSocketConnectable,
4804 *mut GCancellable,
4805 GAsyncReadyCallback,
4806 gpointer,
4807 ),
4808 >,
4809 pub can_reach_finish: Option<
4810 unsafe extern "C" fn(
4811 *mut GNetworkMonitor,
4812 *mut GAsyncResult,
4813 *mut *mut glib::GError,
4814 ) -> gboolean,
4815 >,
4816}
4817
4818impl ::std::fmt::Debug for GNetworkMonitorInterface {
4819 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4820 f.debug_struct(&format!("GNetworkMonitorInterface @ {self:p}"))
4821 .field("g_iface", &self.g_iface)
4822 .field("network_changed", &self.network_changed)
4823 .field("can_reach", &self.can_reach)
4824 .field("can_reach_async", &self.can_reach_async)
4825 .field("can_reach_finish", &self.can_reach_finish)
4826 .finish()
4827 }
4828}
4829
4830#[derive(Copy, Clone)]
4831#[repr(C)]
4832pub struct GNetworkServiceClass {
4833 pub parent_class: gobject::GObjectClass,
4834}
4835
4836impl ::std::fmt::Debug for GNetworkServiceClass {
4837 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4838 f.debug_struct(&format!("GNetworkServiceClass @ {self:p}"))
4839 .field("parent_class", &self.parent_class)
4840 .finish()
4841 }
4842}
4843
4844#[repr(C)]
4845#[allow(dead_code)]
4846pub struct _GNetworkServicePrivate {
4847 _data: [u8; 0],
4848 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4849}
4850
4851pub type GNetworkServicePrivate = _GNetworkServicePrivate;
4852
4853#[derive(Copy, Clone)]
4854#[repr(C)]
4855pub struct GOutputMessage {
4856 pub address: *mut GSocketAddress,
4857 pub vectors: *mut GOutputVector,
4858 pub num_vectors: c_uint,
4859 pub bytes_sent: c_uint,
4860 pub control_messages: *mut *mut GSocketControlMessage,
4861 pub num_control_messages: c_uint,
4862}
4863
4864impl ::std::fmt::Debug for GOutputMessage {
4865 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4866 f.debug_struct(&format!("GOutputMessage @ {self:p}"))
4867 .field("address", &self.address)
4868 .field("vectors", &self.vectors)
4869 .field("num_vectors", &self.num_vectors)
4870 .field("bytes_sent", &self.bytes_sent)
4871 .field("control_messages", &self.control_messages)
4872 .field("num_control_messages", &self.num_control_messages)
4873 .finish()
4874 }
4875}
4876
4877#[derive(Copy, Clone)]
4878#[repr(C)]
4879pub struct GOutputStreamClass {
4880 pub parent_class: gobject::GObjectClass,
4881 pub write_fn: Option<
4882 unsafe extern "C" fn(
4883 *mut GOutputStream,
4884 *mut u8,
4885 size_t,
4886 *mut GCancellable,
4887 *mut *mut glib::GError,
4888 ) -> ssize_t,
4889 >,
4890 pub splice: Option<
4891 unsafe extern "C" fn(
4892 *mut GOutputStream,
4893 *mut GInputStream,
4894 GOutputStreamSpliceFlags,
4895 *mut GCancellable,
4896 *mut *mut glib::GError,
4897 ) -> ssize_t,
4898 >,
4899 pub flush: Option<
4900 unsafe extern "C" fn(
4901 *mut GOutputStream,
4902 *mut GCancellable,
4903 *mut *mut glib::GError,
4904 ) -> gboolean,
4905 >,
4906 pub close_fn: Option<
4907 unsafe extern "C" fn(
4908 *mut GOutputStream,
4909 *mut GCancellable,
4910 *mut *mut glib::GError,
4911 ) -> gboolean,
4912 >,
4913 pub write_async: Option<
4914 unsafe extern "C" fn(
4915 *mut GOutputStream,
4916 *mut u8,
4917 size_t,
4918 c_int,
4919 *mut GCancellable,
4920 GAsyncReadyCallback,
4921 gpointer,
4922 ),
4923 >,
4924 pub write_finish: Option<
4925 unsafe extern "C" fn(
4926 *mut GOutputStream,
4927 *mut GAsyncResult,
4928 *mut *mut glib::GError,
4929 ) -> ssize_t,
4930 >,
4931 pub splice_async: Option<
4932 unsafe extern "C" fn(
4933 *mut GOutputStream,
4934 *mut GInputStream,
4935 GOutputStreamSpliceFlags,
4936 c_int,
4937 *mut GCancellable,
4938 GAsyncReadyCallback,
4939 gpointer,
4940 ),
4941 >,
4942 pub splice_finish: Option<
4943 unsafe extern "C" fn(
4944 *mut GOutputStream,
4945 *mut GAsyncResult,
4946 *mut *mut glib::GError,
4947 ) -> ssize_t,
4948 >,
4949 pub flush_async: Option<
4950 unsafe extern "C" fn(
4951 *mut GOutputStream,
4952 c_int,
4953 *mut GCancellable,
4954 GAsyncReadyCallback,
4955 gpointer,
4956 ),
4957 >,
4958 pub flush_finish: Option<
4959 unsafe extern "C" fn(
4960 *mut GOutputStream,
4961 *mut GAsyncResult,
4962 *mut *mut glib::GError,
4963 ) -> gboolean,
4964 >,
4965 pub close_async: Option<
4966 unsafe extern "C" fn(
4967 *mut GOutputStream,
4968 c_int,
4969 *mut GCancellable,
4970 GAsyncReadyCallback,
4971 gpointer,
4972 ),
4973 >,
4974 pub close_finish: Option<
4975 unsafe extern "C" fn(
4976 *mut GOutputStream,
4977 *mut GAsyncResult,
4978 *mut *mut glib::GError,
4979 ) -> gboolean,
4980 >,
4981 pub writev_fn: Option<
4982 unsafe extern "C" fn(
4983 *mut GOutputStream,
4984 *const GOutputVector,
4985 size_t,
4986 *mut size_t,
4987 *mut GCancellable,
4988 *mut *mut glib::GError,
4989 ) -> gboolean,
4990 >,
4991 pub writev_async: Option<
4992 unsafe extern "C" fn(
4993 *mut GOutputStream,
4994 *const GOutputVector,
4995 size_t,
4996 c_int,
4997 *mut GCancellable,
4998 GAsyncReadyCallback,
4999 gpointer,
5000 ),
5001 >,
5002 pub writev_finish: Option<
5003 unsafe extern "C" fn(
5004 *mut GOutputStream,
5005 *mut GAsyncResult,
5006 *mut size_t,
5007 *mut *mut glib::GError,
5008 ) -> gboolean,
5009 >,
5010 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5011 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5012 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5013 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5014 pub _g_reserved8: Option<unsafe extern "C" fn()>,
5015}
5016
5017impl ::std::fmt::Debug for GOutputStreamClass {
5018 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5019 f.debug_struct(&format!("GOutputStreamClass @ {self:p}"))
5020 .field("parent_class", &self.parent_class)
5021 .field("write_fn", &self.write_fn)
5022 .field("splice", &self.splice)
5023 .field("flush", &self.flush)
5024 .field("close_fn", &self.close_fn)
5025 .field("write_async", &self.write_async)
5026 .field("write_finish", &self.write_finish)
5027 .field("splice_async", &self.splice_async)
5028 .field("splice_finish", &self.splice_finish)
5029 .field("flush_async", &self.flush_async)
5030 .field("flush_finish", &self.flush_finish)
5031 .field("close_async", &self.close_async)
5032 .field("close_finish", &self.close_finish)
5033 .field("writev_fn", &self.writev_fn)
5034 .field("writev_async", &self.writev_async)
5035 .field("writev_finish", &self.writev_finish)
5036 .field("_g_reserved4", &self._g_reserved4)
5037 .field("_g_reserved5", &self._g_reserved5)
5038 .field("_g_reserved6", &self._g_reserved6)
5039 .field("_g_reserved7", &self._g_reserved7)
5040 .field("_g_reserved8", &self._g_reserved8)
5041 .finish()
5042 }
5043}
5044
5045#[repr(C)]
5046#[allow(dead_code)]
5047pub struct _GOutputStreamPrivate {
5048 _data: [u8; 0],
5049 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5050}
5051
5052pub type GOutputStreamPrivate = _GOutputStreamPrivate;
5053
5054#[derive(Copy, Clone)]
5055#[repr(C)]
5056pub struct GOutputVector {
5057 pub buffer: gconstpointer,
5058 pub size: size_t,
5059}
5060
5061impl ::std::fmt::Debug for GOutputVector {
5062 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5063 f.debug_struct(&format!("GOutputVector @ {self:p}"))
5064 .field("buffer", &self.buffer)
5065 .field("size", &self.size)
5066 .finish()
5067 }
5068}
5069
5070#[derive(Copy, Clone)]
5071#[repr(C)]
5072pub struct GPermissionClass {
5073 pub parent_class: gobject::GObjectClass,
5074 pub acquire: Option<
5075 unsafe extern "C" fn(
5076 *mut GPermission,
5077 *mut GCancellable,
5078 *mut *mut glib::GError,
5079 ) -> gboolean,
5080 >,
5081 pub acquire_async: Option<
5082 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
5083 >,
5084 pub acquire_finish: Option<
5085 unsafe extern "C" fn(
5086 *mut GPermission,
5087 *mut GAsyncResult,
5088 *mut *mut glib::GError,
5089 ) -> gboolean,
5090 >,
5091 pub release: Option<
5092 unsafe extern "C" fn(
5093 *mut GPermission,
5094 *mut GCancellable,
5095 *mut *mut glib::GError,
5096 ) -> gboolean,
5097 >,
5098 pub release_async: Option<
5099 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
5100 >,
5101 pub release_finish: Option<
5102 unsafe extern "C" fn(
5103 *mut GPermission,
5104 *mut GAsyncResult,
5105 *mut *mut glib::GError,
5106 ) -> gboolean,
5107 >,
5108 pub reserved: [gpointer; 16],
5109}
5110
5111impl ::std::fmt::Debug for GPermissionClass {
5112 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5113 f.debug_struct(&format!("GPermissionClass @ {self:p}"))
5114 .field("parent_class", &self.parent_class)
5115 .field("acquire", &self.acquire)
5116 .field("acquire_async", &self.acquire_async)
5117 .field("acquire_finish", &self.acquire_finish)
5118 .field("release", &self.release)
5119 .field("release_async", &self.release_async)
5120 .field("release_finish", &self.release_finish)
5121 .field("reserved", &self.reserved)
5122 .finish()
5123 }
5124}
5125
5126#[repr(C)]
5127#[allow(dead_code)]
5128pub struct _GPermissionPrivate {
5129 _data: [u8; 0],
5130 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5131}
5132
5133pub type GPermissionPrivate = _GPermissionPrivate;
5134
5135#[derive(Copy, Clone)]
5136#[repr(C)]
5137pub struct GPollableInputStreamInterface {
5138 pub g_iface: gobject::GTypeInterface,
5139 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
5140 pub is_readable: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
5141 pub create_source: Option<
5142 unsafe extern "C" fn(*mut GPollableInputStream, *mut GCancellable) -> *mut glib::GSource,
5143 >,
5144 pub read_nonblocking: Option<
5145 unsafe extern "C" fn(
5146 *mut GPollableInputStream,
5147 *mut u8,
5148 size_t,
5149 *mut *mut glib::GError,
5150 ) -> ssize_t,
5151 >,
5152}
5153
5154impl ::std::fmt::Debug for GPollableInputStreamInterface {
5155 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5156 f.debug_struct(&format!("GPollableInputStreamInterface @ {self:p}"))
5157 .field("g_iface", &self.g_iface)
5158 .field("can_poll", &self.can_poll)
5159 .field("is_readable", &self.is_readable)
5160 .field("create_source", &self.create_source)
5161 .field("read_nonblocking", &self.read_nonblocking)
5162 .finish()
5163 }
5164}
5165
5166#[derive(Copy, Clone)]
5167#[repr(C)]
5168pub struct GPollableOutputStreamInterface {
5169 pub g_iface: gobject::GTypeInterface,
5170 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
5171 pub is_writable: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
5172 pub create_source: Option<
5173 unsafe extern "C" fn(*mut GPollableOutputStream, *mut GCancellable) -> *mut glib::GSource,
5174 >,
5175 pub write_nonblocking: Option<
5176 unsafe extern "C" fn(
5177 *mut GPollableOutputStream,
5178 *mut u8,
5179 size_t,
5180 *mut *mut glib::GError,
5181 ) -> ssize_t,
5182 >,
5183 pub writev_nonblocking: Option<
5184 unsafe extern "C" fn(
5185 *mut GPollableOutputStream,
5186 *const GOutputVector,
5187 size_t,
5188 *mut size_t,
5189 *mut *mut glib::GError,
5190 ) -> GPollableReturn,
5191 >,
5192}
5193
5194impl ::std::fmt::Debug for GPollableOutputStreamInterface {
5195 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5196 f.debug_struct(&format!("GPollableOutputStreamInterface @ {self:p}"))
5197 .field("g_iface", &self.g_iface)
5198 .field("can_poll", &self.can_poll)
5199 .field("is_writable", &self.is_writable)
5200 .field("create_source", &self.create_source)
5201 .field("write_nonblocking", &self.write_nonblocking)
5202 .field("writev_nonblocking", &self.writev_nonblocking)
5203 .finish()
5204 }
5205}
5206
5207#[derive(Copy, Clone)]
5208#[repr(C)]
5209pub struct GPowerProfileMonitorInterface {
5210 pub g_iface: gobject::GTypeInterface,
5211}
5212
5213impl ::std::fmt::Debug for GPowerProfileMonitorInterface {
5214 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5215 f.debug_struct(&format!("GPowerProfileMonitorInterface @ {self:p}"))
5216 .finish()
5217 }
5218}
5219
5220#[derive(Copy, Clone)]
5221#[repr(C)]
5222pub struct GProxyAddressClass {
5223 pub parent_class: GInetSocketAddressClass,
5224}
5225
5226impl ::std::fmt::Debug for GProxyAddressClass {
5227 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5228 f.debug_struct(&format!("GProxyAddressClass @ {self:p}"))
5229 .field("parent_class", &self.parent_class)
5230 .finish()
5231 }
5232}
5233
5234#[derive(Copy, Clone)]
5235#[repr(C)]
5236pub struct GProxyAddressEnumeratorClass {
5237 pub parent_class: GSocketAddressEnumeratorClass,
5238 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5239 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5240 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5241 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5242 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5243 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5244 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5245}
5246
5247impl ::std::fmt::Debug for GProxyAddressEnumeratorClass {
5248 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5249 f.debug_struct(&format!("GProxyAddressEnumeratorClass @ {self:p}"))
5250 .field("_g_reserved1", &self._g_reserved1)
5251 .field("_g_reserved2", &self._g_reserved2)
5252 .field("_g_reserved3", &self._g_reserved3)
5253 .field("_g_reserved4", &self._g_reserved4)
5254 .field("_g_reserved5", &self._g_reserved5)
5255 .field("_g_reserved6", &self._g_reserved6)
5256 .field("_g_reserved7", &self._g_reserved7)
5257 .finish()
5258 }
5259}
5260
5261#[repr(C)]
5262#[allow(dead_code)]
5263pub struct _GProxyAddressEnumeratorPrivate {
5264 _data: [u8; 0],
5265 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5266}
5267
5268pub type GProxyAddressEnumeratorPrivate = _GProxyAddressEnumeratorPrivate;
5269
5270#[repr(C)]
5271#[allow(dead_code)]
5272pub struct _GProxyAddressPrivate {
5273 _data: [u8; 0],
5274 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5275}
5276
5277pub type GProxyAddressPrivate = _GProxyAddressPrivate;
5278
5279#[derive(Copy, Clone)]
5280#[repr(C)]
5281pub struct GProxyInterface {
5282 pub g_iface: gobject::GTypeInterface,
5283 pub connect: Option<
5284 unsafe extern "C" fn(
5285 *mut GProxy,
5286 *mut GIOStream,
5287 *mut GProxyAddress,
5288 *mut GCancellable,
5289 *mut *mut glib::GError,
5290 ) -> *mut GIOStream,
5291 >,
5292 pub connect_async: Option<
5293 unsafe extern "C" fn(
5294 *mut GProxy,
5295 *mut GIOStream,
5296 *mut GProxyAddress,
5297 *mut GCancellable,
5298 GAsyncReadyCallback,
5299 gpointer,
5300 ),
5301 >,
5302 pub connect_finish: Option<
5303 unsafe extern "C" fn(
5304 *mut GProxy,
5305 *mut GAsyncResult,
5306 *mut *mut glib::GError,
5307 ) -> *mut GIOStream,
5308 >,
5309 pub supports_hostname: Option<unsafe extern "C" fn(*mut GProxy) -> gboolean>,
5310}
5311
5312impl ::std::fmt::Debug for GProxyInterface {
5313 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5314 f.debug_struct(&format!("GProxyInterface @ {self:p}"))
5315 .field("g_iface", &self.g_iface)
5316 .field("connect", &self.connect)
5317 .field("connect_async", &self.connect_async)
5318 .field("connect_finish", &self.connect_finish)
5319 .field("supports_hostname", &self.supports_hostname)
5320 .finish()
5321 }
5322}
5323
5324#[derive(Copy, Clone)]
5325#[repr(C)]
5326pub struct GProxyResolverInterface {
5327 pub g_iface: gobject::GTypeInterface,
5328 pub is_supported: Option<unsafe extern "C" fn(*mut GProxyResolver) -> gboolean>,
5329 pub lookup: Option<
5330 unsafe extern "C" fn(
5331 *mut GProxyResolver,
5332 *const c_char,
5333 *mut GCancellable,
5334 *mut *mut glib::GError,
5335 ) -> *mut *mut c_char,
5336 >,
5337 pub lookup_async: Option<
5338 unsafe extern "C" fn(
5339 *mut GProxyResolver,
5340 *const c_char,
5341 *mut GCancellable,
5342 GAsyncReadyCallback,
5343 gpointer,
5344 ),
5345 >,
5346 pub lookup_finish: Option<
5347 unsafe extern "C" fn(
5348 *mut GProxyResolver,
5349 *mut GAsyncResult,
5350 *mut *mut glib::GError,
5351 ) -> *mut *mut c_char,
5352 >,
5353}
5354
5355impl ::std::fmt::Debug for GProxyResolverInterface {
5356 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5357 f.debug_struct(&format!("GProxyResolverInterface @ {self:p}"))
5358 .field("g_iface", &self.g_iface)
5359 .field("is_supported", &self.is_supported)
5360 .field("lookup", &self.lookup)
5361 .field("lookup_async", &self.lookup_async)
5362 .field("lookup_finish", &self.lookup_finish)
5363 .finish()
5364 }
5365}
5366
5367#[derive(Copy, Clone)]
5368#[repr(C)]
5369pub struct GRemoteActionGroupInterface {
5370 pub g_iface: gobject::GTypeInterface,
5371 pub activate_action_full: Option<
5372 unsafe extern "C" fn(
5373 *mut GRemoteActionGroup,
5374 *const c_char,
5375 *mut glib::GVariant,
5376 *mut glib::GVariant,
5377 ),
5378 >,
5379 pub change_action_state_full: Option<
5380 unsafe extern "C" fn(
5381 *mut GRemoteActionGroup,
5382 *const c_char,
5383 *mut glib::GVariant,
5384 *mut glib::GVariant,
5385 ),
5386 >,
5387}
5388
5389impl ::std::fmt::Debug for GRemoteActionGroupInterface {
5390 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5391 f.debug_struct(&format!("GRemoteActionGroupInterface @ {self:p}"))
5392 .field("g_iface", &self.g_iface)
5393 .field("activate_action_full", &self.activate_action_full)
5394 .field("change_action_state_full", &self.change_action_state_full)
5395 .finish()
5396 }
5397}
5398
5399#[derive(Copy, Clone)]
5400#[repr(C)]
5401pub struct GResolverClass {
5402 pub parent_class: gobject::GObjectClass,
5403 pub reload: Option<unsafe extern "C" fn(*mut GResolver)>,
5404 pub lookup_by_name: Option<
5405 unsafe extern "C" fn(
5406 *mut GResolver,
5407 *const c_char,
5408 *mut GCancellable,
5409 *mut *mut glib::GError,
5410 ) -> *mut glib::GList,
5411 >,
5412 pub lookup_by_name_async: Option<
5413 unsafe extern "C" fn(
5414 *mut GResolver,
5415 *const c_char,
5416 *mut GCancellable,
5417 GAsyncReadyCallback,
5418 gpointer,
5419 ),
5420 >,
5421 pub lookup_by_name_finish: Option<
5422 unsafe extern "C" fn(
5423 *mut GResolver,
5424 *mut GAsyncResult,
5425 *mut *mut glib::GError,
5426 ) -> *mut glib::GList,
5427 >,
5428 pub lookup_by_address: Option<
5429 unsafe extern "C" fn(
5430 *mut GResolver,
5431 *mut GInetAddress,
5432 *mut GCancellable,
5433 *mut *mut glib::GError,
5434 ) -> *mut c_char,
5435 >,
5436 pub lookup_by_address_async: Option<
5437 unsafe extern "C" fn(
5438 *mut GResolver,
5439 *mut GInetAddress,
5440 *mut GCancellable,
5441 GAsyncReadyCallback,
5442 gpointer,
5443 ),
5444 >,
5445 pub lookup_by_address_finish: Option<
5446 unsafe extern "C" fn(
5447 *mut GResolver,
5448 *mut GAsyncResult,
5449 *mut *mut glib::GError,
5450 ) -> *mut c_char,
5451 >,
5452 pub lookup_service: Option<
5453 unsafe extern "C" fn(
5454 *mut GResolver,
5455 *const c_char,
5456 *mut GCancellable,
5457 *mut *mut glib::GError,
5458 ) -> *mut glib::GList,
5459 >,
5460 pub lookup_service_async: Option<
5461 unsafe extern "C" fn(
5462 *mut GResolver,
5463 *const c_char,
5464 *mut GCancellable,
5465 GAsyncReadyCallback,
5466 gpointer,
5467 ),
5468 >,
5469 pub lookup_service_finish: Option<
5470 unsafe extern "C" fn(
5471 *mut GResolver,
5472 *mut GAsyncResult,
5473 *mut *mut glib::GError,
5474 ) -> *mut glib::GList,
5475 >,
5476 pub lookup_records: Option<
5477 unsafe extern "C" fn(
5478 *mut GResolver,
5479 *const c_char,
5480 GResolverRecordType,
5481 *mut GCancellable,
5482 *mut *mut glib::GError,
5483 ) -> *mut glib::GList,
5484 >,
5485 pub lookup_records_async: Option<
5486 unsafe extern "C" fn(
5487 *mut GResolver,
5488 *const c_char,
5489 GResolverRecordType,
5490 *mut GCancellable,
5491 GAsyncReadyCallback,
5492 gpointer,
5493 ),
5494 >,
5495 pub lookup_records_finish: Option<
5496 unsafe extern "C" fn(
5497 *mut GResolver,
5498 *mut GAsyncResult,
5499 *mut *mut glib::GError,
5500 ) -> *mut glib::GList,
5501 >,
5502 pub lookup_by_name_with_flags_async: Option<
5503 unsafe extern "C" fn(
5504 *mut GResolver,
5505 *const c_char,
5506 GResolverNameLookupFlags,
5507 *mut GCancellable,
5508 GAsyncReadyCallback,
5509 gpointer,
5510 ),
5511 >,
5512 pub lookup_by_name_with_flags_finish: Option<
5513 unsafe extern "C" fn(
5514 *mut GResolver,
5515 *mut GAsyncResult,
5516 *mut *mut glib::GError,
5517 ) -> *mut glib::GList,
5518 >,
5519 pub lookup_by_name_with_flags: Option<
5520 unsafe extern "C" fn(
5521 *mut GResolver,
5522 *const c_char,
5523 GResolverNameLookupFlags,
5524 *mut GCancellable,
5525 *mut *mut glib::GError,
5526 ) -> *mut glib::GList,
5527 >,
5528}
5529
5530impl ::std::fmt::Debug for GResolverClass {
5531 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5532 f.debug_struct(&format!("GResolverClass @ {self:p}"))
5533 .field("parent_class", &self.parent_class)
5534 .field("reload", &self.reload)
5535 .field("lookup_by_name", &self.lookup_by_name)
5536 .field("lookup_by_name_async", &self.lookup_by_name_async)
5537 .field("lookup_by_name_finish", &self.lookup_by_name_finish)
5538 .field("lookup_by_address", &self.lookup_by_address)
5539 .field("lookup_by_address_async", &self.lookup_by_address_async)
5540 .field("lookup_by_address_finish", &self.lookup_by_address_finish)
5541 .field("lookup_service", &self.lookup_service)
5542 .field("lookup_service_async", &self.lookup_service_async)
5543 .field("lookup_service_finish", &self.lookup_service_finish)
5544 .field("lookup_records", &self.lookup_records)
5545 .field("lookup_records_async", &self.lookup_records_async)
5546 .field("lookup_records_finish", &self.lookup_records_finish)
5547 .field(
5548 "lookup_by_name_with_flags_async",
5549 &self.lookup_by_name_with_flags_async,
5550 )
5551 .field(
5552 "lookup_by_name_with_flags_finish",
5553 &self.lookup_by_name_with_flags_finish,
5554 )
5555 .field("lookup_by_name_with_flags", &self.lookup_by_name_with_flags)
5556 .finish()
5557 }
5558}
5559
5560#[repr(C)]
5561#[allow(dead_code)]
5562pub struct _GResolverPrivate {
5563 _data: [u8; 0],
5564 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5565}
5566
5567pub type GResolverPrivate = _GResolverPrivate;
5568
5569#[repr(C)]
5570#[allow(dead_code)]
5571pub struct GResource {
5572 _data: [u8; 0],
5573 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5574}
5575
5576impl ::std::fmt::Debug for GResource {
5577 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5578 f.debug_struct(&format!("GResource @ {self:p}")).finish()
5579 }
5580}
5581
5582#[derive(Copy, Clone)]
5583#[repr(C)]
5584pub struct GSeekableIface {
5585 pub g_iface: gobject::GTypeInterface,
5586 pub tell: Option<unsafe extern "C" fn(*mut GSeekable) -> i64>,
5587 pub can_seek: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5588 pub seek: Option<
5589 unsafe extern "C" fn(
5590 *mut GSeekable,
5591 i64,
5592 glib::GSeekType,
5593 *mut GCancellable,
5594 *mut *mut glib::GError,
5595 ) -> gboolean,
5596 >,
5597 pub can_truncate: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5598 pub truncate_fn: Option<
5599 unsafe extern "C" fn(
5600 *mut GSeekable,
5601 i64,
5602 *mut GCancellable,
5603 *mut *mut glib::GError,
5604 ) -> gboolean,
5605 >,
5606}
5607
5608impl ::std::fmt::Debug for GSeekableIface {
5609 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5610 f.debug_struct(&format!("GSeekableIface @ {self:p}"))
5611 .field("g_iface", &self.g_iface)
5612 .field("tell", &self.tell)
5613 .field("can_seek", &self.can_seek)
5614 .field("seek", &self.seek)
5615 .field("can_truncate", &self.can_truncate)
5616 .field("truncate_fn", &self.truncate_fn)
5617 .finish()
5618 }
5619}
5620
5621#[derive(Copy, Clone)]
5622#[repr(C)]
5623pub struct GSettingsBackendClass {
5624 pub parent_class: gobject::GObjectClass,
5625 pub read: Option<
5626 unsafe extern "C" fn(
5627 *mut GSettingsBackend,
5628 *const c_char,
5629 *const glib::GVariantType,
5630 gboolean,
5631 ) -> *mut glib::GVariant,
5632 >,
5633 pub get_writable:
5634 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> gboolean>,
5635 pub write: Option<
5636 unsafe extern "C" fn(
5637 *mut GSettingsBackend,
5638 *const c_char,
5639 *mut glib::GVariant,
5640 gpointer,
5641 ) -> gboolean,
5642 >,
5643 pub write_tree:
5644 Option<unsafe extern "C" fn(*mut GSettingsBackend, *mut glib::GTree, gpointer) -> gboolean>,
5645 pub reset: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char, gpointer)>,
5646 pub subscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5647 pub unsubscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5648 pub sync: Option<unsafe extern "C" fn(*mut GSettingsBackend)>,
5649 pub get_permission:
5650 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> *mut GPermission>,
5651 pub read_user_value: Option<
5652 unsafe extern "C" fn(
5653 *mut GSettingsBackend,
5654 *const c_char,
5655 *const glib::GVariantType,
5656 ) -> *mut glib::GVariant,
5657 >,
5658 pub padding: [gpointer; 23],
5659}
5660
5661impl ::std::fmt::Debug for GSettingsBackendClass {
5662 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5663 f.debug_struct(&format!("GSettingsBackendClass @ {self:p}"))
5664 .field("parent_class", &self.parent_class)
5665 .field("read", &self.read)
5666 .field("get_writable", &self.get_writable)
5667 .field("write", &self.write)
5668 .field("write_tree", &self.write_tree)
5669 .field("reset", &self.reset)
5670 .field("subscribe", &self.subscribe)
5671 .field("unsubscribe", &self.unsubscribe)
5672 .field("sync", &self.sync)
5673 .field("get_permission", &self.get_permission)
5674 .field("read_user_value", &self.read_user_value)
5675 .finish()
5676 }
5677}
5678
5679#[repr(C)]
5680#[allow(dead_code)]
5681pub struct _GSettingsBackendPrivate {
5682 _data: [u8; 0],
5683 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5684}
5685
5686pub type GSettingsBackendPrivate = _GSettingsBackendPrivate;
5687
5688#[derive(Copy, Clone)]
5689#[repr(C)]
5690pub struct GSettingsClass {
5691 pub parent_class: gobject::GObjectClass,
5692 pub writable_changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5693 pub changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5694 pub writable_change_event:
5695 Option<unsafe extern "C" fn(*mut GSettings, glib::GQuark) -> gboolean>,
5696 pub change_event:
5697 Option<unsafe extern "C" fn(*mut GSettings, *const glib::GQuark, c_int) -> gboolean>,
5698 pub padding: [gpointer; 20],
5699}
5700
5701impl ::std::fmt::Debug for GSettingsClass {
5702 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5703 f.debug_struct(&format!("GSettingsClass @ {self:p}"))
5704 .field("parent_class", &self.parent_class)
5705 .field("writable_changed", &self.writable_changed)
5706 .field("changed", &self.changed)
5707 .field("writable_change_event", &self.writable_change_event)
5708 .field("change_event", &self.change_event)
5709 .field("padding", &self.padding)
5710 .finish()
5711 }
5712}
5713
5714#[repr(C)]
5715#[allow(dead_code)]
5716pub struct _GSettingsPrivate {
5717 _data: [u8; 0],
5718 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5719}
5720
5721pub type GSettingsPrivate = _GSettingsPrivate;
5722
5723#[repr(C)]
5724#[allow(dead_code)]
5725pub struct GSettingsSchema {
5726 _data: [u8; 0],
5727 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5728}
5729
5730impl ::std::fmt::Debug for GSettingsSchema {
5731 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5732 f.debug_struct(&format!("GSettingsSchema @ {self:p}"))
5733 .finish()
5734 }
5735}
5736
5737#[repr(C)]
5738#[allow(dead_code)]
5739pub struct GSettingsSchemaKey {
5740 _data: [u8; 0],
5741 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5742}
5743
5744impl ::std::fmt::Debug for GSettingsSchemaKey {
5745 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5746 f.debug_struct(&format!("GSettingsSchemaKey @ {self:p}"))
5747 .finish()
5748 }
5749}
5750
5751#[repr(C)]
5752#[allow(dead_code)]
5753pub struct GSettingsSchemaSource {
5754 _data: [u8; 0],
5755 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5756}
5757
5758impl ::std::fmt::Debug for GSettingsSchemaSource {
5759 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5760 f.debug_struct(&format!("GSettingsSchemaSource @ {self:p}"))
5761 .finish()
5762 }
5763}
5764
5765#[derive(Copy, Clone)]
5766#[repr(C)]
5767pub struct GSimpleActionGroupClass {
5768 pub parent_class: gobject::GObjectClass,
5769 pub padding: [gpointer; 12],
5770}
5771
5772impl ::std::fmt::Debug for GSimpleActionGroupClass {
5773 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5774 f.debug_struct(&format!("GSimpleActionGroupClass @ {self:p}"))
5775 .finish()
5776 }
5777}
5778
5779#[repr(C)]
5780#[allow(dead_code)]
5781pub struct _GSimpleActionGroupPrivate {
5782 _data: [u8; 0],
5783 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5784}
5785
5786pub type GSimpleActionGroupPrivate = _GSimpleActionGroupPrivate;
5787
5788#[repr(C)]
5789#[allow(dead_code)]
5790pub struct _GSimpleAsyncResultClass {
5791 _data: [u8; 0],
5792 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5793}
5794
5795pub type GSimpleAsyncResultClass = _GSimpleAsyncResultClass;
5796
5797#[derive(Copy, Clone)]
5798#[repr(C)]
5799pub struct GSimpleProxyResolverClass {
5800 pub parent_class: gobject::GObjectClass,
5801 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5802 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5803 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5804 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5805 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5806}
5807
5808impl ::std::fmt::Debug for GSimpleProxyResolverClass {
5809 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5810 f.debug_struct(&format!("GSimpleProxyResolverClass @ {self:p}"))
5811 .field("parent_class", &self.parent_class)
5812 .field("_g_reserved1", &self._g_reserved1)
5813 .field("_g_reserved2", &self._g_reserved2)
5814 .field("_g_reserved3", &self._g_reserved3)
5815 .field("_g_reserved4", &self._g_reserved4)
5816 .field("_g_reserved5", &self._g_reserved5)
5817 .finish()
5818 }
5819}
5820
5821#[repr(C)]
5822#[allow(dead_code)]
5823pub struct _GSimpleProxyResolverPrivate {
5824 _data: [u8; 0],
5825 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5826}
5827
5828pub type GSimpleProxyResolverPrivate = _GSimpleProxyResolverPrivate;
5829
5830#[derive(Copy, Clone)]
5831#[repr(C)]
5832pub struct GSocketAddressClass {
5833 pub parent_class: gobject::GObjectClass,
5834 pub get_family: Option<unsafe extern "C" fn(*mut GSocketAddress) -> GSocketFamily>,
5835 pub get_native_size: Option<unsafe extern "C" fn(*mut GSocketAddress) -> ssize_t>,
5836 pub to_native: Option<
5837 unsafe extern "C" fn(
5838 *mut GSocketAddress,
5839 gpointer,
5840 size_t,
5841 *mut *mut glib::GError,
5842 ) -> gboolean,
5843 >,
5844}
5845
5846impl ::std::fmt::Debug for GSocketAddressClass {
5847 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5848 f.debug_struct(&format!("GSocketAddressClass @ {self:p}"))
5849 .field("parent_class", &self.parent_class)
5850 .field("get_family", &self.get_family)
5851 .field("get_native_size", &self.get_native_size)
5852 .field("to_native", &self.to_native)
5853 .finish()
5854 }
5855}
5856
5857#[derive(Copy, Clone)]
5858#[repr(C)]
5859pub struct GSocketAddressEnumeratorClass {
5860 pub parent_class: gobject::GObjectClass,
5861 pub next: Option<
5862 unsafe extern "C" fn(
5863 *mut GSocketAddressEnumerator,
5864 *mut GCancellable,
5865 *mut *mut glib::GError,
5866 ) -> *mut GSocketAddress,
5867 >,
5868 pub next_async: Option<
5869 unsafe extern "C" fn(
5870 *mut GSocketAddressEnumerator,
5871 *mut GCancellable,
5872 GAsyncReadyCallback,
5873 gpointer,
5874 ),
5875 >,
5876 pub next_finish: Option<
5877 unsafe extern "C" fn(
5878 *mut GSocketAddressEnumerator,
5879 *mut GAsyncResult,
5880 *mut *mut glib::GError,
5881 ) -> *mut GSocketAddress,
5882 >,
5883}
5884
5885impl ::std::fmt::Debug for GSocketAddressEnumeratorClass {
5886 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5887 f.debug_struct(&format!("GSocketAddressEnumeratorClass @ {self:p}"))
5888 .field("next", &self.next)
5889 .field("next_async", &self.next_async)
5890 .field("next_finish", &self.next_finish)
5891 .finish()
5892 }
5893}
5894
5895#[derive(Copy, Clone)]
5896#[repr(C)]
5897pub struct GSocketClass {
5898 pub parent_class: gobject::GObjectClass,
5899 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5900 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5901 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5902 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5903 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5904 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5905 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5906 pub _g_reserved8: Option<unsafe extern "C" fn()>,
5907 pub _g_reserved9: Option<unsafe extern "C" fn()>,
5908 pub _g_reserved10: Option<unsafe extern "C" fn()>,
5909}
5910
5911impl ::std::fmt::Debug for GSocketClass {
5912 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5913 f.debug_struct(&format!("GSocketClass @ {self:p}"))
5914 .field("parent_class", &self.parent_class)
5915 .field("_g_reserved1", &self._g_reserved1)
5916 .field("_g_reserved2", &self._g_reserved2)
5917 .field("_g_reserved3", &self._g_reserved3)
5918 .field("_g_reserved4", &self._g_reserved4)
5919 .field("_g_reserved5", &self._g_reserved5)
5920 .field("_g_reserved6", &self._g_reserved6)
5921 .field("_g_reserved7", &self._g_reserved7)
5922 .field("_g_reserved8", &self._g_reserved8)
5923 .field("_g_reserved9", &self._g_reserved9)
5924 .field("_g_reserved10", &self._g_reserved10)
5925 .finish()
5926 }
5927}
5928
5929#[derive(Copy, Clone)]
5930#[repr(C)]
5931pub struct GSocketClientClass {
5932 pub parent_class: gobject::GObjectClass,
5933 pub event: Option<
5934 unsafe extern "C" fn(
5935 *mut GSocketClient,
5936 GSocketClientEvent,
5937 *mut GSocketConnectable,
5938 *mut GIOStream,
5939 ),
5940 >,
5941 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5942 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5943 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5944 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5945}
5946
5947impl ::std::fmt::Debug for GSocketClientClass {
5948 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5949 f.debug_struct(&format!("GSocketClientClass @ {self:p}"))
5950 .field("parent_class", &self.parent_class)
5951 .field("event", &self.event)
5952 .field("_g_reserved1", &self._g_reserved1)
5953 .field("_g_reserved2", &self._g_reserved2)
5954 .field("_g_reserved3", &self._g_reserved3)
5955 .field("_g_reserved4", &self._g_reserved4)
5956 .finish()
5957 }
5958}
5959
5960#[repr(C)]
5961#[allow(dead_code)]
5962pub struct _GSocketClientPrivate {
5963 _data: [u8; 0],
5964 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5965}
5966
5967pub type GSocketClientPrivate = _GSocketClientPrivate;
5968
5969#[derive(Copy, Clone)]
5970#[repr(C)]
5971pub struct GSocketConnectableIface {
5972 pub g_iface: gobject::GTypeInterface,
5973 pub enumerate:
5974 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5975 pub proxy_enumerate:
5976 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5977 pub to_string: Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut c_char>,
5978}
5979
5980impl ::std::fmt::Debug for GSocketConnectableIface {
5981 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5982 f.debug_struct(&format!("GSocketConnectableIface @ {self:p}"))
5983 .field("g_iface", &self.g_iface)
5984 .field("enumerate", &self.enumerate)
5985 .field("proxy_enumerate", &self.proxy_enumerate)
5986 .field("to_string", &self.to_string)
5987 .finish()
5988 }
5989}
5990
5991#[derive(Copy, Clone)]
5992#[repr(C)]
5993pub struct GSocketConnectionClass {
5994 pub parent_class: GIOStreamClass,
5995 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5996 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5997 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5998 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5999 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6000 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6001}
6002
6003impl ::std::fmt::Debug for GSocketConnectionClass {
6004 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6005 f.debug_struct(&format!("GSocketConnectionClass @ {self:p}"))
6006 .field("parent_class", &self.parent_class)
6007 .field("_g_reserved1", &self._g_reserved1)
6008 .field("_g_reserved2", &self._g_reserved2)
6009 .field("_g_reserved3", &self._g_reserved3)
6010 .field("_g_reserved4", &self._g_reserved4)
6011 .field("_g_reserved5", &self._g_reserved5)
6012 .field("_g_reserved6", &self._g_reserved6)
6013 .finish()
6014 }
6015}
6016
6017#[repr(C)]
6018#[allow(dead_code)]
6019pub struct _GSocketConnectionPrivate {
6020 _data: [u8; 0],
6021 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6022}
6023
6024pub type GSocketConnectionPrivate = _GSocketConnectionPrivate;
6025
6026#[derive(Copy, Clone)]
6027#[repr(C)]
6028pub struct GSocketControlMessageClass {
6029 pub parent_class: gobject::GObjectClass,
6030 pub get_size: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> size_t>,
6031 pub get_level: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
6032 pub get_type: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
6033 pub serialize: Option<unsafe extern "C" fn(*mut GSocketControlMessage, gpointer)>,
6034 pub deserialize:
6035 Option<unsafe extern "C" fn(c_int, c_int, size_t, gpointer) -> *mut GSocketControlMessage>,
6036 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6037 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6038 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6039 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6040 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6041}
6042
6043impl ::std::fmt::Debug for GSocketControlMessageClass {
6044 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6045 f.debug_struct(&format!("GSocketControlMessageClass @ {self:p}"))
6046 .field("parent_class", &self.parent_class)
6047 .field("get_size", &self.get_size)
6048 .field("get_level", &self.get_level)
6049 .field("get_type", &self.get_type)
6050 .field("serialize", &self.serialize)
6051 .field("deserialize", &self.deserialize)
6052 .field("_g_reserved1", &self._g_reserved1)
6053 .field("_g_reserved2", &self._g_reserved2)
6054 .field("_g_reserved3", &self._g_reserved3)
6055 .field("_g_reserved4", &self._g_reserved4)
6056 .field("_g_reserved5", &self._g_reserved5)
6057 .finish()
6058 }
6059}
6060
6061#[repr(C)]
6062#[allow(dead_code)]
6063pub struct _GSocketControlMessagePrivate {
6064 _data: [u8; 0],
6065 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6066}
6067
6068pub type GSocketControlMessagePrivate = _GSocketControlMessagePrivate;
6069
6070#[derive(Copy, Clone)]
6071#[repr(C)]
6072pub struct GSocketListenerClass {
6073 pub parent_class: gobject::GObjectClass,
6074 pub changed: Option<unsafe extern "C" fn(*mut GSocketListener)>,
6075 pub event:
6076 Option<unsafe extern "C" fn(*mut GSocketListener, GSocketListenerEvent, *mut GSocket)>,
6077 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6078 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6079 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6080 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6081 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6082}
6083
6084impl ::std::fmt::Debug for GSocketListenerClass {
6085 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6086 f.debug_struct(&format!("GSocketListenerClass @ {self:p}"))
6087 .field("parent_class", &self.parent_class)
6088 .field("changed", &self.changed)
6089 .field("event", &self.event)
6090 .field("_g_reserved2", &self._g_reserved2)
6091 .field("_g_reserved3", &self._g_reserved3)
6092 .field("_g_reserved4", &self._g_reserved4)
6093 .field("_g_reserved5", &self._g_reserved5)
6094 .field("_g_reserved6", &self._g_reserved6)
6095 .finish()
6096 }
6097}
6098
6099#[repr(C)]
6100#[allow(dead_code)]
6101pub struct _GSocketListenerPrivate {
6102 _data: [u8; 0],
6103 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6104}
6105
6106pub type GSocketListenerPrivate = _GSocketListenerPrivate;
6107
6108#[repr(C)]
6109#[allow(dead_code)]
6110pub struct _GSocketPrivate {
6111 _data: [u8; 0],
6112 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6113}
6114
6115pub type GSocketPrivate = _GSocketPrivate;
6116
6117#[derive(Copy, Clone)]
6118#[repr(C)]
6119pub struct GSocketServiceClass {
6120 pub parent_class: GSocketListenerClass,
6121 pub incoming: Option<
6122 unsafe extern "C" fn(
6123 *mut GSocketService,
6124 *mut GSocketConnection,
6125 *mut gobject::GObject,
6126 ) -> gboolean,
6127 >,
6128 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6129 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6130 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6131 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6132 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6133 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6134}
6135
6136impl ::std::fmt::Debug for GSocketServiceClass {
6137 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6138 f.debug_struct(&format!("GSocketServiceClass @ {self:p}"))
6139 .field("parent_class", &self.parent_class)
6140 .field("incoming", &self.incoming)
6141 .field("_g_reserved1", &self._g_reserved1)
6142 .field("_g_reserved2", &self._g_reserved2)
6143 .field("_g_reserved3", &self._g_reserved3)
6144 .field("_g_reserved4", &self._g_reserved4)
6145 .field("_g_reserved5", &self._g_reserved5)
6146 .field("_g_reserved6", &self._g_reserved6)
6147 .finish()
6148 }
6149}
6150
6151#[repr(C)]
6152#[allow(dead_code)]
6153pub struct _GSocketServicePrivate {
6154 _data: [u8; 0],
6155 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6156}
6157
6158pub type GSocketServicePrivate = _GSocketServicePrivate;
6159
6160#[repr(C)]
6161#[allow(dead_code)]
6162pub struct GSrvTarget {
6163 _data: [u8; 0],
6164 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6165}
6166
6167impl ::std::fmt::Debug for GSrvTarget {
6168 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6169 f.debug_struct(&format!("GSrvTarget @ {self:p}")).finish()
6170 }
6171}
6172
6173#[derive(Copy, Clone)]
6174#[repr(C)]
6175pub struct GStaticResource {
6176 pub data: *const u8,
6177 pub data_len: size_t,
6178 pub resource: *mut GResource,
6179 pub next: *mut GStaticResource,
6180 pub padding: gpointer,
6181}
6182
6183impl ::std::fmt::Debug for GStaticResource {
6184 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6185 f.debug_struct(&format!("GStaticResource @ {self:p}"))
6186 .finish()
6187 }
6188}
6189
6190#[repr(C)]
6191#[allow(dead_code)]
6192pub struct _GTaskClass {
6193 _data: [u8; 0],
6194 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6195}
6196
6197pub type GTaskClass = _GTaskClass;
6198
6199#[derive(Copy, Clone)]
6200#[repr(C)]
6201pub struct GTcpConnectionClass {
6202 pub parent_class: GSocketConnectionClass,
6203}
6204
6205impl ::std::fmt::Debug for GTcpConnectionClass {
6206 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6207 f.debug_struct(&format!("GTcpConnectionClass @ {self:p}"))
6208 .field("parent_class", &self.parent_class)
6209 .finish()
6210 }
6211}
6212
6213#[repr(C)]
6214#[allow(dead_code)]
6215pub struct _GTcpConnectionPrivate {
6216 _data: [u8; 0],
6217 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6218}
6219
6220pub type GTcpConnectionPrivate = _GTcpConnectionPrivate;
6221
6222#[derive(Copy, Clone)]
6223#[repr(C)]
6224pub struct GTcpWrapperConnectionClass {
6225 pub parent_class: GTcpConnectionClass,
6226}
6227
6228impl ::std::fmt::Debug for GTcpWrapperConnectionClass {
6229 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6230 f.debug_struct(&format!("GTcpWrapperConnectionClass @ {self:p}"))
6231 .field("parent_class", &self.parent_class)
6232 .finish()
6233 }
6234}
6235
6236#[repr(C)]
6237#[allow(dead_code)]
6238pub struct _GTcpWrapperConnectionPrivate {
6239 _data: [u8; 0],
6240 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6241}
6242
6243pub type GTcpWrapperConnectionPrivate = _GTcpWrapperConnectionPrivate;
6244
6245#[repr(C)]
6246#[allow(dead_code)]
6247pub struct _GThemedIconClass {
6248 _data: [u8; 0],
6249 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6250}
6251
6252pub type GThemedIconClass = _GThemedIconClass;
6253
6254#[derive(Copy, Clone)]
6255#[repr(C)]
6256pub struct GThreadedSocketServiceClass {
6257 pub parent_class: GSocketServiceClass,
6258 pub run: Option<
6259 unsafe extern "C" fn(
6260 *mut GThreadedSocketService,
6261 *mut GSocketConnection,
6262 *mut gobject::GObject,
6263 ) -> gboolean,
6264 >,
6265 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6266 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6267 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6268 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6269 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6270}
6271
6272impl ::std::fmt::Debug for GThreadedSocketServiceClass {
6273 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6274 f.debug_struct(&format!("GThreadedSocketServiceClass @ {self:p}"))
6275 .field("parent_class", &self.parent_class)
6276 .field("run", &self.run)
6277 .field("_g_reserved1", &self._g_reserved1)
6278 .field("_g_reserved2", &self._g_reserved2)
6279 .field("_g_reserved3", &self._g_reserved3)
6280 .field("_g_reserved4", &self._g_reserved4)
6281 .field("_g_reserved5", &self._g_reserved5)
6282 .finish()
6283 }
6284}
6285
6286#[repr(C)]
6287#[allow(dead_code)]
6288pub struct _GThreadedSocketServicePrivate {
6289 _data: [u8; 0],
6290 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6291}
6292
6293pub type GThreadedSocketServicePrivate = _GThreadedSocketServicePrivate;
6294
6295#[derive(Copy, Clone)]
6296#[repr(C)]
6297pub struct GTlsBackendInterface {
6298 pub g_iface: gobject::GTypeInterface,
6299 pub supports_tls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
6300 pub get_certificate_type: Option<unsafe extern "C" fn() -> GType>,
6301 pub get_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
6302 pub get_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
6303 pub get_file_database_type: Option<unsafe extern "C" fn() -> GType>,
6304 pub get_default_database: Option<unsafe extern "C" fn(*mut GTlsBackend) -> *mut GTlsDatabase>,
6305 pub supports_dtls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
6306 pub get_dtls_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
6307 pub get_dtls_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
6308}
6309
6310impl ::std::fmt::Debug for GTlsBackendInterface {
6311 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6312 f.debug_struct(&format!("GTlsBackendInterface @ {self:p}"))
6313 .field("g_iface", &self.g_iface)
6314 .field("supports_tls", &self.supports_tls)
6315 .field("get_certificate_type", &self.get_certificate_type)
6316 .field(
6317 "get_client_connection_type",
6318 &self.get_client_connection_type,
6319 )
6320 .field(
6321 "get_server_connection_type",
6322 &self.get_server_connection_type,
6323 )
6324 .field("get_file_database_type", &self.get_file_database_type)
6325 .field("get_default_database", &self.get_default_database)
6326 .field("supports_dtls", &self.supports_dtls)
6327 .field(
6328 "get_dtls_client_connection_type",
6329 &self.get_dtls_client_connection_type,
6330 )
6331 .field(
6332 "get_dtls_server_connection_type",
6333 &self.get_dtls_server_connection_type,
6334 )
6335 .finish()
6336 }
6337}
6338
6339#[derive(Copy, Clone)]
6340#[repr(C)]
6341pub struct GTlsCertificateClass {
6342 pub parent_class: gobject::GObjectClass,
6343 pub verify: Option<
6344 unsafe extern "C" fn(
6345 *mut GTlsCertificate,
6346 *mut GSocketConnectable,
6347 *mut GTlsCertificate,
6348 ) -> GTlsCertificateFlags,
6349 >,
6350 pub padding: [gpointer; 8],
6351}
6352
6353impl ::std::fmt::Debug for GTlsCertificateClass {
6354 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6355 f.debug_struct(&format!("GTlsCertificateClass @ {self:p}"))
6356 .field("parent_class", &self.parent_class)
6357 .field("verify", &self.verify)
6358 .finish()
6359 }
6360}
6361
6362#[repr(C)]
6363#[allow(dead_code)]
6364pub struct _GTlsCertificatePrivate {
6365 _data: [u8; 0],
6366 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6367}
6368
6369pub type GTlsCertificatePrivate = _GTlsCertificatePrivate;
6370
6371#[derive(Copy, Clone)]
6372#[repr(C)]
6373pub struct GTlsClientConnectionInterface {
6374 pub g_iface: gobject::GTypeInterface,
6375 pub copy_session_state:
6376 Option<unsafe extern "C" fn(*mut GTlsClientConnection, *mut GTlsClientConnection)>,
6377}
6378
6379impl ::std::fmt::Debug for GTlsClientConnectionInterface {
6380 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6381 f.debug_struct(&format!("GTlsClientConnectionInterface @ {self:p}"))
6382 .field("g_iface", &self.g_iface)
6383 .field("copy_session_state", &self.copy_session_state)
6384 .finish()
6385 }
6386}
6387
6388#[derive(Copy, Clone)]
6389#[repr(C)]
6390pub struct GTlsConnectionClass {
6391 pub parent_class: GIOStreamClass,
6392 pub accept_certificate: Option<
6393 unsafe extern "C" fn(
6394 *mut GTlsConnection,
6395 *mut GTlsCertificate,
6396 GTlsCertificateFlags,
6397 ) -> gboolean,
6398 >,
6399 pub handshake: Option<
6400 unsafe extern "C" fn(
6401 *mut GTlsConnection,
6402 *mut GCancellable,
6403 *mut *mut glib::GError,
6404 ) -> gboolean,
6405 >,
6406 pub handshake_async: Option<
6407 unsafe extern "C" fn(
6408 *mut GTlsConnection,
6409 c_int,
6410 *mut GCancellable,
6411 GAsyncReadyCallback,
6412 gpointer,
6413 ),
6414 >,
6415 pub handshake_finish: Option<
6416 unsafe extern "C" fn(
6417 *mut GTlsConnection,
6418 *mut GAsyncResult,
6419 *mut *mut glib::GError,
6420 ) -> gboolean,
6421 >,
6422 pub get_binding_data: Option<
6423 unsafe extern "C" fn(
6424 *mut GTlsConnection,
6425 GTlsChannelBindingType,
6426 *mut glib::GByteArray,
6427 *mut *mut glib::GError,
6428 ) -> gboolean,
6429 >,
6430 pub get_negotiated_protocol: Option<unsafe extern "C" fn(*mut GTlsConnection) -> *const c_char>,
6431 pub padding: [gpointer; 6],
6432}
6433
6434impl ::std::fmt::Debug for GTlsConnectionClass {
6435 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6436 f.debug_struct(&format!("GTlsConnectionClass @ {self:p}"))
6437 .field("parent_class", &self.parent_class)
6438 .field("accept_certificate", &self.accept_certificate)
6439 .field("handshake", &self.handshake)
6440 .field("handshake_async", &self.handshake_async)
6441 .field("handshake_finish", &self.handshake_finish)
6442 .field("get_binding_data", &self.get_binding_data)
6443 .field("get_negotiated_protocol", &self.get_negotiated_protocol)
6444 .finish()
6445 }
6446}
6447
6448#[repr(C)]
6449#[allow(dead_code)]
6450pub struct _GTlsConnectionPrivate {
6451 _data: [u8; 0],
6452 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6453}
6454
6455pub type GTlsConnectionPrivate = _GTlsConnectionPrivate;
6456
6457#[derive(Copy, Clone)]
6458#[repr(C)]
6459pub struct GTlsDatabaseClass {
6460 pub parent_class: gobject::GObjectClass,
6461 pub verify_chain: Option<
6462 unsafe extern "C" fn(
6463 *mut GTlsDatabase,
6464 *mut GTlsCertificate,
6465 *const c_char,
6466 *mut GSocketConnectable,
6467 *mut GTlsInteraction,
6468 GTlsDatabaseVerifyFlags,
6469 *mut GCancellable,
6470 *mut *mut glib::GError,
6471 ) -> GTlsCertificateFlags,
6472 >,
6473 pub verify_chain_async: Option<
6474 unsafe extern "C" fn(
6475 *mut GTlsDatabase,
6476 *mut GTlsCertificate,
6477 *const c_char,
6478 *mut GSocketConnectable,
6479 *mut GTlsInteraction,
6480 GTlsDatabaseVerifyFlags,
6481 *mut GCancellable,
6482 GAsyncReadyCallback,
6483 gpointer,
6484 ),
6485 >,
6486 pub verify_chain_finish: Option<
6487 unsafe extern "C" fn(
6488 *mut GTlsDatabase,
6489 *mut GAsyncResult,
6490 *mut *mut glib::GError,
6491 ) -> GTlsCertificateFlags,
6492 >,
6493 pub create_certificate_handle:
6494 Option<unsafe extern "C" fn(*mut GTlsDatabase, *mut GTlsCertificate) -> *mut c_char>,
6495 pub lookup_certificate_for_handle: Option<
6496 unsafe extern "C" fn(
6497 *mut GTlsDatabase,
6498 *const c_char,
6499 *mut GTlsInteraction,
6500 GTlsDatabaseLookupFlags,
6501 *mut GCancellable,
6502 *mut *mut glib::GError,
6503 ) -> *mut GTlsCertificate,
6504 >,
6505 pub lookup_certificate_for_handle_async: Option<
6506 unsafe extern "C" fn(
6507 *mut GTlsDatabase,
6508 *const c_char,
6509 *mut GTlsInteraction,
6510 GTlsDatabaseLookupFlags,
6511 *mut GCancellable,
6512 GAsyncReadyCallback,
6513 gpointer,
6514 ),
6515 >,
6516 pub lookup_certificate_for_handle_finish: Option<
6517 unsafe extern "C" fn(
6518 *mut GTlsDatabase,
6519 *mut GAsyncResult,
6520 *mut *mut glib::GError,
6521 ) -> *mut GTlsCertificate,
6522 >,
6523 pub lookup_certificate_issuer: Option<
6524 unsafe extern "C" fn(
6525 *mut GTlsDatabase,
6526 *mut GTlsCertificate,
6527 *mut GTlsInteraction,
6528 GTlsDatabaseLookupFlags,
6529 *mut GCancellable,
6530 *mut *mut glib::GError,
6531 ) -> *mut GTlsCertificate,
6532 >,
6533 pub lookup_certificate_issuer_async: Option<
6534 unsafe extern "C" fn(
6535 *mut GTlsDatabase,
6536 *mut GTlsCertificate,
6537 *mut GTlsInteraction,
6538 GTlsDatabaseLookupFlags,
6539 *mut GCancellable,
6540 GAsyncReadyCallback,
6541 gpointer,
6542 ),
6543 >,
6544 pub lookup_certificate_issuer_finish: Option<
6545 unsafe extern "C" fn(
6546 *mut GTlsDatabase,
6547 *mut GAsyncResult,
6548 *mut *mut glib::GError,
6549 ) -> *mut GTlsCertificate,
6550 >,
6551 pub lookup_certificates_issued_by: Option<
6552 unsafe extern "C" fn(
6553 *mut GTlsDatabase,
6554 *mut glib::GByteArray,
6555 *mut GTlsInteraction,
6556 GTlsDatabaseLookupFlags,
6557 *mut GCancellable,
6558 *mut *mut glib::GError,
6559 ) -> *mut glib::GList,
6560 >,
6561 pub lookup_certificates_issued_by_async: Option<
6562 unsafe extern "C" fn(
6563 *mut GTlsDatabase,
6564 *mut glib::GByteArray,
6565 *mut GTlsInteraction,
6566 GTlsDatabaseLookupFlags,
6567 *mut GCancellable,
6568 GAsyncReadyCallback,
6569 gpointer,
6570 ),
6571 >,
6572 pub lookup_certificates_issued_by_finish: Option<
6573 unsafe extern "C" fn(
6574 *mut GTlsDatabase,
6575 *mut GAsyncResult,
6576 *mut *mut glib::GError,
6577 ) -> *mut glib::GList,
6578 >,
6579 pub padding: [gpointer; 16],
6580}
6581
6582impl ::std::fmt::Debug for GTlsDatabaseClass {
6583 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6584 f.debug_struct(&format!("GTlsDatabaseClass @ {self:p}"))
6585 .field("parent_class", &self.parent_class)
6586 .field("verify_chain", &self.verify_chain)
6587 .field("verify_chain_async", &self.verify_chain_async)
6588 .field("verify_chain_finish", &self.verify_chain_finish)
6589 .field("create_certificate_handle", &self.create_certificate_handle)
6590 .field(
6591 "lookup_certificate_for_handle",
6592 &self.lookup_certificate_for_handle,
6593 )
6594 .field(
6595 "lookup_certificate_for_handle_async",
6596 &self.lookup_certificate_for_handle_async,
6597 )
6598 .field(
6599 "lookup_certificate_for_handle_finish",
6600 &self.lookup_certificate_for_handle_finish,
6601 )
6602 .field("lookup_certificate_issuer", &self.lookup_certificate_issuer)
6603 .field(
6604 "lookup_certificate_issuer_async",
6605 &self.lookup_certificate_issuer_async,
6606 )
6607 .field(
6608 "lookup_certificate_issuer_finish",
6609 &self.lookup_certificate_issuer_finish,
6610 )
6611 .field(
6612 "lookup_certificates_issued_by",
6613 &self.lookup_certificates_issued_by,
6614 )
6615 .field(
6616 "lookup_certificates_issued_by_async",
6617 &self.lookup_certificates_issued_by_async,
6618 )
6619 .field(
6620 "lookup_certificates_issued_by_finish",
6621 &self.lookup_certificates_issued_by_finish,
6622 )
6623 .finish()
6624 }
6625}
6626
6627#[repr(C)]
6628#[allow(dead_code)]
6629pub struct _GTlsDatabasePrivate {
6630 _data: [u8; 0],
6631 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6632}
6633
6634pub type GTlsDatabasePrivate = _GTlsDatabasePrivate;
6635
6636#[derive(Copy, Clone)]
6637#[repr(C)]
6638pub struct GTlsFileDatabaseInterface {
6639 pub g_iface: gobject::GTypeInterface,
6640 pub padding: [gpointer; 8],
6641}
6642
6643impl ::std::fmt::Debug for GTlsFileDatabaseInterface {
6644 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6645 f.debug_struct(&format!("GTlsFileDatabaseInterface @ {self:p}"))
6646 .field("g_iface", &self.g_iface)
6647 .finish()
6648 }
6649}
6650
6651#[derive(Copy, Clone)]
6652#[repr(C)]
6653pub struct GTlsInteractionClass {
6654 pub parent_class: gobject::GObjectClass,
6655 pub ask_password: Option<
6656 unsafe extern "C" fn(
6657 *mut GTlsInteraction,
6658 *mut GTlsPassword,
6659 *mut GCancellable,
6660 *mut *mut glib::GError,
6661 ) -> GTlsInteractionResult,
6662 >,
6663 pub ask_password_async: Option<
6664 unsafe extern "C" fn(
6665 *mut GTlsInteraction,
6666 *mut GTlsPassword,
6667 *mut GCancellable,
6668 GAsyncReadyCallback,
6669 gpointer,
6670 ),
6671 >,
6672 pub ask_password_finish: Option<
6673 unsafe extern "C" fn(
6674 *mut GTlsInteraction,
6675 *mut GAsyncResult,
6676 *mut *mut glib::GError,
6677 ) -> GTlsInteractionResult,
6678 >,
6679 pub request_certificate: Option<
6680 unsafe extern "C" fn(
6681 *mut GTlsInteraction,
6682 *mut GTlsConnection,
6683 GTlsCertificateRequestFlags,
6684 *mut GCancellable,
6685 *mut *mut glib::GError,
6686 ) -> GTlsInteractionResult,
6687 >,
6688 pub request_certificate_async: Option<
6689 unsafe extern "C" fn(
6690 *mut GTlsInteraction,
6691 *mut GTlsConnection,
6692 GTlsCertificateRequestFlags,
6693 *mut GCancellable,
6694 GAsyncReadyCallback,
6695 gpointer,
6696 ),
6697 >,
6698 pub request_certificate_finish: Option<
6699 unsafe extern "C" fn(
6700 *mut GTlsInteraction,
6701 *mut GAsyncResult,
6702 *mut *mut glib::GError,
6703 ) -> GTlsInteractionResult,
6704 >,
6705 pub padding: [gpointer; 21],
6706}
6707
6708impl ::std::fmt::Debug for GTlsInteractionClass {
6709 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6710 f.debug_struct(&format!("GTlsInteractionClass @ {self:p}"))
6711 .field("ask_password", &self.ask_password)
6712 .field("ask_password_async", &self.ask_password_async)
6713 .field("ask_password_finish", &self.ask_password_finish)
6714 .field("request_certificate", &self.request_certificate)
6715 .field("request_certificate_async", &self.request_certificate_async)
6716 .field(
6717 "request_certificate_finish",
6718 &self.request_certificate_finish,
6719 )
6720 .finish()
6721 }
6722}
6723
6724#[repr(C)]
6725#[allow(dead_code)]
6726pub struct _GTlsInteractionPrivate {
6727 _data: [u8; 0],
6728 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6729}
6730
6731pub type GTlsInteractionPrivate = _GTlsInteractionPrivate;
6732
6733#[derive(Copy, Clone)]
6734#[repr(C)]
6735pub struct GTlsPasswordClass {
6736 pub parent_class: gobject::GObjectClass,
6737 pub get_value: Option<unsafe extern "C" fn(*mut GTlsPassword, *mut size_t) -> *const u8>,
6738 pub set_value:
6739 Option<unsafe extern "C" fn(*mut GTlsPassword, *mut u8, ssize_t, glib::GDestroyNotify)>,
6740 pub get_default_warning: Option<unsafe extern "C" fn(*mut GTlsPassword) -> *const c_char>,
6741 pub padding: [gpointer; 4],
6742}
6743
6744impl ::std::fmt::Debug for GTlsPasswordClass {
6745 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6746 f.debug_struct(&format!("GTlsPasswordClass @ {self:p}"))
6747 .field("parent_class", &self.parent_class)
6748 .field("get_value", &self.get_value)
6749 .field("set_value", &self.set_value)
6750 .field("get_default_warning", &self.get_default_warning)
6751 .finish()
6752 }
6753}
6754
6755#[repr(C)]
6756#[allow(dead_code)]
6757pub struct _GTlsPasswordPrivate {
6758 _data: [u8; 0],
6759 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6760}
6761
6762pub type GTlsPasswordPrivate = _GTlsPasswordPrivate;
6763
6764#[derive(Copy, Clone)]
6765#[repr(C)]
6766pub struct GTlsServerConnectionInterface {
6767 pub g_iface: gobject::GTypeInterface,
6768}
6769
6770impl ::std::fmt::Debug for GTlsServerConnectionInterface {
6771 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6772 f.debug_struct(&format!("GTlsServerConnectionInterface @ {self:p}"))
6773 .field("g_iface", &self.g_iface)
6774 .finish()
6775 }
6776}
6777
6778#[derive(Copy, Clone)]
6779#[repr(C)]
6780pub struct GUnixConnectionClass {
6781 pub parent_class: GSocketConnectionClass,
6782}
6783
6784impl ::std::fmt::Debug for GUnixConnectionClass {
6785 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6786 f.debug_struct(&format!("GUnixConnectionClass @ {self:p}"))
6787 .field("parent_class", &self.parent_class)
6788 .finish()
6789 }
6790}
6791
6792#[repr(C)]
6793#[allow(dead_code)]
6794pub struct _GUnixConnectionPrivate {
6795 _data: [u8; 0],
6796 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6797}
6798
6799pub type GUnixConnectionPrivate = _GUnixConnectionPrivate;
6800
6801#[derive(Copy, Clone)]
6802#[repr(C)]
6803pub struct GUnixCredentialsMessageClass {
6804 pub parent_class: GSocketControlMessageClass,
6805 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6806 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6807}
6808
6809impl ::std::fmt::Debug for GUnixCredentialsMessageClass {
6810 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6811 f.debug_struct(&format!("GUnixCredentialsMessageClass @ {self:p}"))
6812 .field("parent_class", &self.parent_class)
6813 .field("_g_reserved1", &self._g_reserved1)
6814 .field("_g_reserved2", &self._g_reserved2)
6815 .finish()
6816 }
6817}
6818
6819#[repr(C)]
6820#[allow(dead_code)]
6821pub struct _GUnixCredentialsMessagePrivate {
6822 _data: [u8; 0],
6823 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6824}
6825
6826pub type GUnixCredentialsMessagePrivate = _GUnixCredentialsMessagePrivate;
6827
6828#[derive(Copy, Clone)]
6829#[repr(C)]
6830pub struct GUnixFDListClass {
6831 pub parent_class: gobject::GObjectClass,
6832 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6833 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6834 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6835 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6836 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6837}
6838
6839impl ::std::fmt::Debug for GUnixFDListClass {
6840 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6841 f.debug_struct(&format!("GUnixFDListClass @ {self:p}"))
6842 .field("parent_class", &self.parent_class)
6843 .field("_g_reserved1", &self._g_reserved1)
6844 .field("_g_reserved2", &self._g_reserved2)
6845 .field("_g_reserved3", &self._g_reserved3)
6846 .field("_g_reserved4", &self._g_reserved4)
6847 .field("_g_reserved5", &self._g_reserved5)
6848 .finish()
6849 }
6850}
6851
6852#[repr(C)]
6853#[allow(dead_code)]
6854pub struct _GUnixFDListPrivate {
6855 _data: [u8; 0],
6856 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6857}
6858
6859pub type GUnixFDListPrivate = _GUnixFDListPrivate;
6860
6861#[derive(Copy, Clone)]
6862#[repr(C)]
6863pub struct GUnixFDMessageClass {
6864 pub parent_class: GSocketControlMessageClass,
6865 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6866 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6867}
6868
6869impl ::std::fmt::Debug for GUnixFDMessageClass {
6870 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6871 f.debug_struct(&format!("GUnixFDMessageClass @ {self:p}"))
6872 .field("parent_class", &self.parent_class)
6873 .field("_g_reserved1", &self._g_reserved1)
6874 .field("_g_reserved2", &self._g_reserved2)
6875 .finish()
6876 }
6877}
6878
6879#[repr(C)]
6880#[allow(dead_code)]
6881pub struct _GUnixFDMessagePrivate {
6882 _data: [u8; 0],
6883 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6884}
6885
6886pub type GUnixFDMessagePrivate = _GUnixFDMessagePrivate;
6887
6888#[derive(Copy, Clone)]
6889#[repr(C)]
6890pub struct GUnixInputStreamClass {
6891 pub parent_class: GInputStreamClass,
6892 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6893 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6894 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6895 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6896 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6897}
6898
6899impl ::std::fmt::Debug for GUnixInputStreamClass {
6900 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6901 f.debug_struct(&format!("GUnixInputStreamClass @ {self:p}"))
6902 .field("parent_class", &self.parent_class)
6903 .field("_g_reserved1", &self._g_reserved1)
6904 .field("_g_reserved2", &self._g_reserved2)
6905 .field("_g_reserved3", &self._g_reserved3)
6906 .field("_g_reserved4", &self._g_reserved4)
6907 .field("_g_reserved5", &self._g_reserved5)
6908 .finish()
6909 }
6910}
6911
6912#[repr(C)]
6913#[allow(dead_code)]
6914pub struct _GUnixInputStreamPrivate {
6915 _data: [u8; 0],
6916 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6917}
6918
6919pub type GUnixInputStreamPrivate = _GUnixInputStreamPrivate;
6920
6921#[repr(C)]
6922#[allow(dead_code)]
6923pub struct GUnixMountEntry {
6924 _data: [u8; 0],
6925 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6926}
6927
6928impl ::std::fmt::Debug for GUnixMountEntry {
6929 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6930 f.debug_struct(&format!("GUnixMountEntry @ {self:p}"))
6931 .finish()
6932 }
6933}
6934
6935#[repr(C)]
6936#[allow(dead_code)]
6937pub struct _GUnixMountMonitorClass {
6938 _data: [u8; 0],
6939 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6940}
6941
6942pub type GUnixMountMonitorClass = _GUnixMountMonitorClass;
6943
6944#[repr(C)]
6945#[allow(dead_code)]
6946pub struct GUnixMountPoint {
6947 _data: [u8; 0],
6948 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6949}
6950
6951impl ::std::fmt::Debug for GUnixMountPoint {
6952 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6953 f.debug_struct(&format!("GUnixMountPoint @ {self:p}"))
6954 .finish()
6955 }
6956}
6957
6958#[derive(Copy, Clone)]
6959#[repr(C)]
6960pub struct GUnixOutputStreamClass {
6961 pub parent_class: GOutputStreamClass,
6962 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6963 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6964 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6965 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6966 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6967}
6968
6969impl ::std::fmt::Debug for GUnixOutputStreamClass {
6970 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6971 f.debug_struct(&format!("GUnixOutputStreamClass @ {self:p}"))
6972 .field("parent_class", &self.parent_class)
6973 .field("_g_reserved1", &self._g_reserved1)
6974 .field("_g_reserved2", &self._g_reserved2)
6975 .field("_g_reserved3", &self._g_reserved3)
6976 .field("_g_reserved4", &self._g_reserved4)
6977 .field("_g_reserved5", &self._g_reserved5)
6978 .finish()
6979 }
6980}
6981
6982#[repr(C)]
6983#[allow(dead_code)]
6984pub struct _GUnixOutputStreamPrivate {
6985 _data: [u8; 0],
6986 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6987}
6988
6989pub type GUnixOutputStreamPrivate = _GUnixOutputStreamPrivate;
6990
6991#[derive(Copy, Clone)]
6992#[repr(C)]
6993pub struct GUnixSocketAddressClass {
6994 pub parent_class: GSocketAddressClass,
6995}
6996
6997impl ::std::fmt::Debug for GUnixSocketAddressClass {
6998 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6999 f.debug_struct(&format!("GUnixSocketAddressClass @ {self:p}"))
7000 .field("parent_class", &self.parent_class)
7001 .finish()
7002 }
7003}
7004
7005#[repr(C)]
7006#[allow(dead_code)]
7007pub struct _GUnixSocketAddressPrivate {
7008 _data: [u8; 0],
7009 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7010}
7011
7012pub type GUnixSocketAddressPrivate = _GUnixSocketAddressPrivate;
7013
7014#[derive(Copy, Clone)]
7015#[repr(C)]
7016pub struct GVfsClass {
7017 pub parent_class: gobject::GObjectClass,
7018 pub is_active: Option<unsafe extern "C" fn(*mut GVfs) -> gboolean>,
7019 pub get_file_for_path: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
7020 pub get_file_for_uri: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
7021 pub get_supported_uri_schemes: Option<unsafe extern "C" fn(*mut GVfs) -> *const *const c_char>,
7022 pub parse_name: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
7023 pub local_file_add_info: Option<
7024 unsafe extern "C" fn(
7025 *mut GVfs,
7026 *const c_char,
7027 u64,
7028 *mut GFileAttributeMatcher,
7029 *mut GFileInfo,
7030 *mut GCancellable,
7031 *mut gpointer,
7032 *mut glib::GDestroyNotify,
7033 ),
7034 >,
7035 pub add_writable_namespaces:
7036 Option<unsafe extern "C" fn(*mut GVfs, *mut GFileAttributeInfoList)>,
7037 pub local_file_set_attributes: Option<
7038 unsafe extern "C" fn(
7039 *mut GVfs,
7040 *const c_char,
7041 *mut GFileInfo,
7042 GFileQueryInfoFlags,
7043 *mut GCancellable,
7044 *mut *mut glib::GError,
7045 ) -> gboolean,
7046 >,
7047 pub local_file_removed: Option<unsafe extern "C" fn(*mut GVfs, *const c_char)>,
7048 pub local_file_moved: Option<unsafe extern "C" fn(*mut GVfs, *const c_char, *const c_char)>,
7049 pub deserialize_icon:
7050 Option<unsafe extern "C" fn(*mut GVfs, *mut glib::GVariant) -> *mut GIcon>,
7051 pub _g_reserved1: Option<unsafe extern "C" fn()>,
7052 pub _g_reserved2: Option<unsafe extern "C" fn()>,
7053 pub _g_reserved3: Option<unsafe extern "C" fn()>,
7054 pub _g_reserved4: Option<unsafe extern "C" fn()>,
7055 pub _g_reserved5: Option<unsafe extern "C" fn()>,
7056 pub _g_reserved6: Option<unsafe extern "C" fn()>,
7057}
7058
7059impl ::std::fmt::Debug for GVfsClass {
7060 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7061 f.debug_struct(&format!("GVfsClass @ {self:p}"))
7062 .field("parent_class", &self.parent_class)
7063 .field("is_active", &self.is_active)
7064 .field("get_file_for_path", &self.get_file_for_path)
7065 .field("get_file_for_uri", &self.get_file_for_uri)
7066 .field("get_supported_uri_schemes", &self.get_supported_uri_schemes)
7067 .field("parse_name", &self.parse_name)
7068 .field("local_file_add_info", &self.local_file_add_info)
7069 .field("add_writable_namespaces", &self.add_writable_namespaces)
7070 .field("local_file_set_attributes", &self.local_file_set_attributes)
7071 .field("local_file_removed", &self.local_file_removed)
7072 .field("local_file_moved", &self.local_file_moved)
7073 .field("deserialize_icon", &self.deserialize_icon)
7074 .field("_g_reserved1", &self._g_reserved1)
7075 .field("_g_reserved2", &self._g_reserved2)
7076 .field("_g_reserved3", &self._g_reserved3)
7077 .field("_g_reserved4", &self._g_reserved4)
7078 .field("_g_reserved5", &self._g_reserved5)
7079 .field("_g_reserved6", &self._g_reserved6)
7080 .finish()
7081 }
7082}
7083
7084#[derive(Copy, Clone)]
7085#[repr(C)]
7086pub struct GVolumeIface {
7087 pub g_iface: gobject::GTypeInterface,
7088 pub changed: Option<unsafe extern "C" fn(*mut GVolume)>,
7089 pub removed: Option<unsafe extern "C" fn(*mut GVolume)>,
7090 pub get_name: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
7091 pub get_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
7092 pub get_uuid: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
7093 pub get_drive: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GDrive>,
7094 pub get_mount: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GMount>,
7095 pub can_mount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
7096 pub can_eject: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
7097 pub mount_fn: Option<
7098 unsafe extern "C" fn(
7099 *mut GVolume,
7100 GMountMountFlags,
7101 *mut GMountOperation,
7102 *mut GCancellable,
7103 GAsyncReadyCallback,
7104 gpointer,
7105 ),
7106 >,
7107 pub mount_finish: Option<
7108 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
7109 >,
7110 pub eject: Option<
7111 unsafe extern "C" fn(
7112 *mut GVolume,
7113 GMountUnmountFlags,
7114 *mut GCancellable,
7115 GAsyncReadyCallback,
7116 gpointer,
7117 ),
7118 >,
7119 pub eject_finish: Option<
7120 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
7121 >,
7122 pub get_identifier: Option<unsafe extern "C" fn(*mut GVolume, *const c_char) -> *mut c_char>,
7123 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GVolume) -> *mut *mut c_char>,
7124 pub should_automount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
7125 pub get_activation_root: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GFile>,
7126 pub eject_with_operation: Option<
7127 unsafe extern "C" fn(
7128 *mut GVolume,
7129 GMountUnmountFlags,
7130 *mut GMountOperation,
7131 *mut GCancellable,
7132 GAsyncReadyCallback,
7133 gpointer,
7134 ),
7135 >,
7136 pub eject_with_operation_finish: Option<
7137 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
7138 >,
7139 pub get_sort_key: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
7140 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
7141}
7142
7143impl ::std::fmt::Debug for GVolumeIface {
7144 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7145 f.debug_struct(&format!("GVolumeIface @ {self:p}"))
7146 .field("g_iface", &self.g_iface)
7147 .field("changed", &self.changed)
7148 .field("removed", &self.removed)
7149 .field("get_name", &self.get_name)
7150 .field("get_icon", &self.get_icon)
7151 .field("get_uuid", &self.get_uuid)
7152 .field("get_drive", &self.get_drive)
7153 .field("get_mount", &self.get_mount)
7154 .field("can_mount", &self.can_mount)
7155 .field("can_eject", &self.can_eject)
7156 .field("mount_fn", &self.mount_fn)
7157 .field("mount_finish", &self.mount_finish)
7158 .field("eject", &self.eject)
7159 .field("eject_finish", &self.eject_finish)
7160 .field("get_identifier", &self.get_identifier)
7161 .field("enumerate_identifiers", &self.enumerate_identifiers)
7162 .field("should_automount", &self.should_automount)
7163 .field("get_activation_root", &self.get_activation_root)
7164 .field("eject_with_operation", &self.eject_with_operation)
7165 .field(
7166 "eject_with_operation_finish",
7167 &self.eject_with_operation_finish,
7168 )
7169 .field("get_sort_key", &self.get_sort_key)
7170 .field("get_symbolic_icon", &self.get_symbolic_icon)
7171 .finish()
7172 }
7173}
7174
7175#[derive(Copy, Clone)]
7176#[repr(C)]
7177pub struct GVolumeMonitorClass {
7178 pub parent_class: gobject::GObjectClass,
7179 pub volume_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7180 pub volume_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7181 pub volume_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7182 pub mount_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7183 pub mount_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7184 pub mount_pre_unmount: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7185 pub mount_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7186 pub drive_connected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7187 pub drive_disconnected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7188 pub drive_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7189 pub is_supported: Option<unsafe extern "C" fn() -> gboolean>,
7190 pub get_connected_drives: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7191 pub get_volumes: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7192 pub get_mounts: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7193 pub get_volume_for_uuid:
7194 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GVolume>,
7195 pub get_mount_for_uuid:
7196 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GMount>,
7197 pub adopt_orphan_mount:
7198 Option<unsafe extern "C" fn(*mut GMount, *mut GVolumeMonitor) -> *mut GVolume>,
7199 pub drive_eject_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7200 pub drive_stop_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7201 pub _g_reserved1: Option<unsafe extern "C" fn()>,
7202 pub _g_reserved2: Option<unsafe extern "C" fn()>,
7203 pub _g_reserved3: Option<unsafe extern "C" fn()>,
7204 pub _g_reserved4: Option<unsafe extern "C" fn()>,
7205 pub _g_reserved5: Option<unsafe extern "C" fn()>,
7206 pub _g_reserved6: Option<unsafe extern "C" fn()>,
7207}
7208
7209impl ::std::fmt::Debug for GVolumeMonitorClass {
7210 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7211 f.debug_struct(&format!("GVolumeMonitorClass @ {self:p}"))
7212 .field("parent_class", &self.parent_class)
7213 .field("volume_added", &self.volume_added)
7214 .field("volume_removed", &self.volume_removed)
7215 .field("volume_changed", &self.volume_changed)
7216 .field("mount_added", &self.mount_added)
7217 .field("mount_removed", &self.mount_removed)
7218 .field("mount_pre_unmount", &self.mount_pre_unmount)
7219 .field("mount_changed", &self.mount_changed)
7220 .field("drive_connected", &self.drive_connected)
7221 .field("drive_disconnected", &self.drive_disconnected)
7222 .field("drive_changed", &self.drive_changed)
7223 .field("is_supported", &self.is_supported)
7224 .field("get_connected_drives", &self.get_connected_drives)
7225 .field("get_volumes", &self.get_volumes)
7226 .field("get_mounts", &self.get_mounts)
7227 .field("get_volume_for_uuid", &self.get_volume_for_uuid)
7228 .field("get_mount_for_uuid", &self.get_mount_for_uuid)
7229 .field("adopt_orphan_mount", &self.adopt_orphan_mount)
7230 .field("drive_eject_button", &self.drive_eject_button)
7231 .field("drive_stop_button", &self.drive_stop_button)
7232 .field("_g_reserved1", &self._g_reserved1)
7233 .field("_g_reserved2", &self._g_reserved2)
7234 .field("_g_reserved3", &self._g_reserved3)
7235 .field("_g_reserved4", &self._g_reserved4)
7236 .field("_g_reserved5", &self._g_reserved5)
7237 .field("_g_reserved6", &self._g_reserved6)
7238 .finish()
7239 }
7240}
7241
7242#[derive(Copy, Clone)]
7243#[repr(C)]
7244pub struct GZlibCompressorClass {
7245 pub parent_class: gobject::GObjectClass,
7246}
7247
7248impl ::std::fmt::Debug for GZlibCompressorClass {
7249 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7250 f.debug_struct(&format!("GZlibCompressorClass @ {self:p}"))
7251 .field("parent_class", &self.parent_class)
7252 .finish()
7253 }
7254}
7255
7256#[derive(Copy, Clone)]
7257#[repr(C)]
7258pub struct GZlibDecompressorClass {
7259 pub parent_class: gobject::GObjectClass,
7260}
7261
7262impl ::std::fmt::Debug for GZlibDecompressorClass {
7263 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7264 f.debug_struct(&format!("GZlibDecompressorClass @ {self:p}"))
7265 .field("parent_class", &self.parent_class)
7266 .finish()
7267 }
7268}
7269
7270#[repr(C)]
7272#[allow(dead_code)]
7273pub struct GAppInfoMonitor {
7274 _data: [u8; 0],
7275 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7276}
7277
7278impl ::std::fmt::Debug for GAppInfoMonitor {
7279 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7280 f.debug_struct(&format!("GAppInfoMonitor @ {self:p}"))
7281 .finish()
7282 }
7283}
7284
7285#[derive(Copy, Clone)]
7286#[repr(C)]
7287pub struct GAppLaunchContext {
7288 pub parent_instance: gobject::GObject,
7289 pub priv_: *mut GAppLaunchContextPrivate,
7290}
7291
7292impl ::std::fmt::Debug for GAppLaunchContext {
7293 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7294 f.debug_struct(&format!("GAppLaunchContext @ {self:p}"))
7295 .field("parent_instance", &self.parent_instance)
7296 .finish()
7297 }
7298}
7299
7300#[derive(Copy, Clone)]
7301#[repr(C)]
7302pub struct GApplication {
7303 pub parent_instance: gobject::GObject,
7304 pub priv_: *mut GApplicationPrivate,
7305}
7306
7307impl ::std::fmt::Debug for GApplication {
7308 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7309 f.debug_struct(&format!("GApplication @ {self:p}")).finish()
7310 }
7311}
7312
7313#[derive(Copy, Clone)]
7314#[repr(C)]
7315pub struct GApplicationCommandLine {
7316 pub parent_instance: gobject::GObject,
7317 pub priv_: *mut GApplicationCommandLinePrivate,
7318}
7319
7320impl ::std::fmt::Debug for GApplicationCommandLine {
7321 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7322 f.debug_struct(&format!("GApplicationCommandLine @ {self:p}"))
7323 .finish()
7324 }
7325}
7326
7327#[derive(Copy, Clone)]
7328#[repr(C)]
7329pub struct GBufferedInputStream {
7330 pub parent_instance: GFilterInputStream,
7331 pub priv_: *mut GBufferedInputStreamPrivate,
7332}
7333
7334impl ::std::fmt::Debug for GBufferedInputStream {
7335 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7336 f.debug_struct(&format!("GBufferedInputStream @ {self:p}"))
7337 .field("parent_instance", &self.parent_instance)
7338 .finish()
7339 }
7340}
7341
7342#[derive(Copy, Clone)]
7343#[repr(C)]
7344pub struct GBufferedOutputStream {
7345 pub parent_instance: GFilterOutputStream,
7346 pub priv_: *mut GBufferedOutputStreamPrivate,
7347}
7348
7349impl ::std::fmt::Debug for GBufferedOutputStream {
7350 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7351 f.debug_struct(&format!("GBufferedOutputStream @ {self:p}"))
7352 .field("parent_instance", &self.parent_instance)
7353 .field("priv_", &self.priv_)
7354 .finish()
7355 }
7356}
7357
7358#[repr(C)]
7359#[allow(dead_code)]
7360pub struct GBytesIcon {
7361 _data: [u8; 0],
7362 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7363}
7364
7365impl ::std::fmt::Debug for GBytesIcon {
7366 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7367 f.debug_struct(&format!("GBytesIcon @ {self:p}")).finish()
7368 }
7369}
7370
7371#[derive(Copy, Clone)]
7372#[repr(C)]
7373pub struct GCancellable {
7374 pub parent_instance: gobject::GObject,
7375 pub priv_: *mut GCancellablePrivate,
7376}
7377
7378impl ::std::fmt::Debug for GCancellable {
7379 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7380 f.debug_struct(&format!("GCancellable @ {self:p}"))
7381 .field("parent_instance", &self.parent_instance)
7382 .finish()
7383 }
7384}
7385
7386#[repr(C)]
7387#[allow(dead_code)]
7388pub struct GCharsetConverter {
7389 _data: [u8; 0],
7390 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7391}
7392
7393impl ::std::fmt::Debug for GCharsetConverter {
7394 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7395 f.debug_struct(&format!("GCharsetConverter @ {self:p}"))
7396 .finish()
7397 }
7398}
7399
7400#[derive(Copy, Clone)]
7401#[repr(C)]
7402pub struct GConverterInputStream {
7403 pub parent_instance: GFilterInputStream,
7404 pub priv_: *mut GConverterInputStreamPrivate,
7405}
7406
7407impl ::std::fmt::Debug for GConverterInputStream {
7408 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7409 f.debug_struct(&format!("GConverterInputStream @ {self:p}"))
7410 .field("parent_instance", &self.parent_instance)
7411 .finish()
7412 }
7413}
7414
7415#[derive(Copy, Clone)]
7416#[repr(C)]
7417pub struct GConverterOutputStream {
7418 pub parent_instance: GFilterOutputStream,
7419 pub priv_: *mut GConverterOutputStreamPrivate,
7420}
7421
7422impl ::std::fmt::Debug for GConverterOutputStream {
7423 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7424 f.debug_struct(&format!("GConverterOutputStream @ {self:p}"))
7425 .field("parent_instance", &self.parent_instance)
7426 .finish()
7427 }
7428}
7429
7430#[repr(C)]
7431#[allow(dead_code)]
7432pub struct GCredentials {
7433 _data: [u8; 0],
7434 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7435}
7436
7437impl ::std::fmt::Debug for GCredentials {
7438 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7439 f.debug_struct(&format!("GCredentials @ {self:p}")).finish()
7440 }
7441}
7442
7443#[repr(C)]
7444#[allow(dead_code)]
7445pub struct GDBusActionGroup {
7446 _data: [u8; 0],
7447 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7448}
7449
7450impl ::std::fmt::Debug for GDBusActionGroup {
7451 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7452 f.debug_struct(&format!("GDBusActionGroup @ {self:p}"))
7453 .finish()
7454 }
7455}
7456
7457#[repr(C)]
7458#[allow(dead_code)]
7459pub struct GDBusAuthObserver {
7460 _data: [u8; 0],
7461 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7462}
7463
7464impl ::std::fmt::Debug for GDBusAuthObserver {
7465 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7466 f.debug_struct(&format!("GDBusAuthObserver @ {self:p}"))
7467 .finish()
7468 }
7469}
7470
7471#[repr(C)]
7472#[allow(dead_code)]
7473pub struct GDBusConnection {
7474 _data: [u8; 0],
7475 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7476}
7477
7478impl ::std::fmt::Debug for GDBusConnection {
7479 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7480 f.debug_struct(&format!("GDBusConnection @ {self:p}"))
7481 .finish()
7482 }
7483}
7484
7485#[derive(Copy, Clone)]
7486#[repr(C)]
7487pub struct GDBusInterfaceSkeleton {
7488 pub parent_instance: gobject::GObject,
7489 pub priv_: *mut GDBusInterfaceSkeletonPrivate,
7490}
7491
7492impl ::std::fmt::Debug for GDBusInterfaceSkeleton {
7493 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7494 f.debug_struct(&format!("GDBusInterfaceSkeleton @ {self:p}"))
7495 .finish()
7496 }
7497}
7498
7499#[repr(C)]
7500#[allow(dead_code)]
7501pub struct GDBusMenuModel {
7502 _data: [u8; 0],
7503 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7504}
7505
7506impl ::std::fmt::Debug for GDBusMenuModel {
7507 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7508 f.debug_struct(&format!("GDBusMenuModel @ {self:p}"))
7509 .finish()
7510 }
7511}
7512
7513#[repr(C)]
7514#[allow(dead_code)]
7515pub struct GDBusMessage {
7516 _data: [u8; 0],
7517 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7518}
7519
7520impl ::std::fmt::Debug for GDBusMessage {
7521 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7522 f.debug_struct(&format!("GDBusMessage @ {self:p}")).finish()
7523 }
7524}
7525
7526#[repr(C)]
7527#[allow(dead_code)]
7528pub struct GDBusMethodInvocation {
7529 _data: [u8; 0],
7530 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7531}
7532
7533impl ::std::fmt::Debug for GDBusMethodInvocation {
7534 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7535 f.debug_struct(&format!("GDBusMethodInvocation @ {self:p}"))
7536 .finish()
7537 }
7538}
7539
7540#[derive(Copy, Clone)]
7541#[repr(C)]
7542pub struct GDBusObjectManagerClient {
7543 pub parent_instance: gobject::GObject,
7544 pub priv_: *mut GDBusObjectManagerClientPrivate,
7545}
7546
7547impl ::std::fmt::Debug for GDBusObjectManagerClient {
7548 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7549 f.debug_struct(&format!("GDBusObjectManagerClient @ {self:p}"))
7550 .finish()
7551 }
7552}
7553
7554#[derive(Copy, Clone)]
7555#[repr(C)]
7556pub struct GDBusObjectManagerServer {
7557 pub parent_instance: gobject::GObject,
7558 pub priv_: *mut GDBusObjectManagerServerPrivate,
7559}
7560
7561impl ::std::fmt::Debug for GDBusObjectManagerServer {
7562 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7563 f.debug_struct(&format!("GDBusObjectManagerServer @ {self:p}"))
7564 .finish()
7565 }
7566}
7567
7568#[derive(Copy, Clone)]
7569#[repr(C)]
7570pub struct GDBusObjectProxy {
7571 pub parent_instance: gobject::GObject,
7572 pub priv_: *mut GDBusObjectProxyPrivate,
7573}
7574
7575impl ::std::fmt::Debug for GDBusObjectProxy {
7576 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7577 f.debug_struct(&format!("GDBusObjectProxy @ {self:p}"))
7578 .finish()
7579 }
7580}
7581
7582#[derive(Copy, Clone)]
7583#[repr(C)]
7584pub struct GDBusObjectSkeleton {
7585 pub parent_instance: gobject::GObject,
7586 pub priv_: *mut GDBusObjectSkeletonPrivate,
7587}
7588
7589impl ::std::fmt::Debug for GDBusObjectSkeleton {
7590 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7591 f.debug_struct(&format!("GDBusObjectSkeleton @ {self:p}"))
7592 .finish()
7593 }
7594}
7595
7596#[derive(Copy, Clone)]
7597#[repr(C)]
7598pub struct GDBusProxy {
7599 pub parent_instance: gobject::GObject,
7600 pub priv_: *mut GDBusProxyPrivate,
7601}
7602
7603impl ::std::fmt::Debug for GDBusProxy {
7604 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7605 f.debug_struct(&format!("GDBusProxy @ {self:p}")).finish()
7606 }
7607}
7608
7609#[repr(C)]
7610#[allow(dead_code)]
7611pub struct GDBusServer {
7612 _data: [u8; 0],
7613 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7614}
7615
7616impl ::std::fmt::Debug for GDBusServer {
7617 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7618 f.debug_struct(&format!("GDBusServer @ {self:p}")).finish()
7619 }
7620}
7621
7622#[derive(Copy, Clone)]
7623#[repr(C)]
7624pub struct GDataInputStream {
7625 pub parent_instance: GBufferedInputStream,
7626 pub priv_: *mut GDataInputStreamPrivate,
7627}
7628
7629impl ::std::fmt::Debug for GDataInputStream {
7630 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7631 f.debug_struct(&format!("GDataInputStream @ {self:p}"))
7632 .field("parent_instance", &self.parent_instance)
7633 .finish()
7634 }
7635}
7636
7637#[derive(Copy, Clone)]
7638#[repr(C)]
7639pub struct GDataOutputStream {
7640 pub parent_instance: GFilterOutputStream,
7641 pub priv_: *mut GDataOutputStreamPrivate,
7642}
7643
7644impl ::std::fmt::Debug for GDataOutputStream {
7645 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7646 f.debug_struct(&format!("GDataOutputStream @ {self:p}"))
7647 .field("parent_instance", &self.parent_instance)
7648 .finish()
7649 }
7650}
7651
7652#[derive(Copy, Clone)]
7653#[repr(C)]
7654pub struct GDebugControllerDBus {
7655 pub parent_instance: gobject::GObject,
7656}
7657
7658impl ::std::fmt::Debug for GDebugControllerDBus {
7659 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7660 f.debug_struct(&format!("GDebugControllerDBus @ {self:p}"))
7661 .field("parent_instance", &self.parent_instance)
7662 .finish()
7663 }
7664}
7665
7666#[repr(C)]
7667#[allow(dead_code)]
7668pub struct GDesktopAppInfo {
7669 _data: [u8; 0],
7670 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7671}
7672
7673impl ::std::fmt::Debug for GDesktopAppInfo {
7674 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7675 f.debug_struct(&format!("GDesktopAppInfo @ {self:p}"))
7676 .finish()
7677 }
7678}
7679
7680#[repr(C)]
7681#[allow(dead_code)]
7682pub struct GEmblem {
7683 _data: [u8; 0],
7684 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7685}
7686
7687impl ::std::fmt::Debug for GEmblem {
7688 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7689 f.debug_struct(&format!("GEmblem @ {self:p}")).finish()
7690 }
7691}
7692
7693#[derive(Copy, Clone)]
7694#[repr(C)]
7695pub struct GEmblemedIcon {
7696 pub parent_instance: gobject::GObject,
7697 pub priv_: *mut GEmblemedIconPrivate,
7698}
7699
7700impl ::std::fmt::Debug for GEmblemedIcon {
7701 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7702 f.debug_struct(&format!("GEmblemedIcon @ {self:p}"))
7703 .field("parent_instance", &self.parent_instance)
7704 .finish()
7705 }
7706}
7707
7708#[derive(Copy, Clone)]
7709#[repr(C)]
7710pub struct GFileEnumerator {
7711 pub parent_instance: gobject::GObject,
7712 pub priv_: *mut GFileEnumeratorPrivate,
7713}
7714
7715impl ::std::fmt::Debug for GFileEnumerator {
7716 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7717 f.debug_struct(&format!("GFileEnumerator @ {self:p}"))
7718 .field("parent_instance", &self.parent_instance)
7719 .finish()
7720 }
7721}
7722
7723#[derive(Copy, Clone)]
7724#[repr(C)]
7725pub struct GFileIOStream {
7726 pub parent_instance: GIOStream,
7727 pub priv_: *mut GFileIOStreamPrivate,
7728}
7729
7730impl ::std::fmt::Debug for GFileIOStream {
7731 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7732 f.debug_struct(&format!("GFileIOStream @ {self:p}"))
7733 .field("parent_instance", &self.parent_instance)
7734 .finish()
7735 }
7736}
7737
7738#[repr(C)]
7739#[allow(dead_code)]
7740pub struct GFileIcon {
7741 _data: [u8; 0],
7742 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7743}
7744
7745impl ::std::fmt::Debug for GFileIcon {
7746 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7747 f.debug_struct(&format!("GFileIcon @ {self:p}")).finish()
7748 }
7749}
7750
7751#[repr(C)]
7752#[allow(dead_code)]
7753pub struct GFileInfo {
7754 _data: [u8; 0],
7755 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7756}
7757
7758impl ::std::fmt::Debug for GFileInfo {
7759 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7760 f.debug_struct(&format!("GFileInfo @ {self:p}")).finish()
7761 }
7762}
7763
7764#[derive(Copy, Clone)]
7765#[repr(C)]
7766pub struct GFileInputStream {
7767 pub parent_instance: GInputStream,
7768 pub priv_: *mut GFileInputStreamPrivate,
7769}
7770
7771impl ::std::fmt::Debug for GFileInputStream {
7772 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7773 f.debug_struct(&format!("GFileInputStream @ {self:p}"))
7774 .field("parent_instance", &self.parent_instance)
7775 .finish()
7776 }
7777}
7778
7779#[derive(Copy, Clone)]
7780#[repr(C)]
7781pub struct GFileMonitor {
7782 pub parent_instance: gobject::GObject,
7783 pub priv_: *mut GFileMonitorPrivate,
7784}
7785
7786impl ::std::fmt::Debug for GFileMonitor {
7787 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7788 f.debug_struct(&format!("GFileMonitor @ {self:p}"))
7789 .field("parent_instance", &self.parent_instance)
7790 .finish()
7791 }
7792}
7793
7794#[derive(Copy, Clone)]
7795#[repr(C)]
7796pub struct GFileOutputStream {
7797 pub parent_instance: GOutputStream,
7798 pub priv_: *mut GFileOutputStreamPrivate,
7799}
7800
7801impl ::std::fmt::Debug for GFileOutputStream {
7802 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7803 f.debug_struct(&format!("GFileOutputStream @ {self:p}"))
7804 .field("parent_instance", &self.parent_instance)
7805 .finish()
7806 }
7807}
7808
7809#[repr(C)]
7810#[allow(dead_code)]
7811pub struct GFilenameCompleter {
7812 _data: [u8; 0],
7813 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7814}
7815
7816impl ::std::fmt::Debug for GFilenameCompleter {
7817 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7818 f.debug_struct(&format!("GFilenameCompleter @ {self:p}"))
7819 .finish()
7820 }
7821}
7822
7823#[derive(Copy, Clone)]
7824#[repr(C)]
7825pub struct GFilterInputStream {
7826 pub parent_instance: GInputStream,
7827 pub base_stream: *mut GInputStream,
7828}
7829
7830impl ::std::fmt::Debug for GFilterInputStream {
7831 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7832 f.debug_struct(&format!("GFilterInputStream @ {self:p}"))
7833 .field("parent_instance", &self.parent_instance)
7834 .field("base_stream", &self.base_stream)
7835 .finish()
7836 }
7837}
7838
7839#[derive(Copy, Clone)]
7840#[repr(C)]
7841pub struct GFilterOutputStream {
7842 pub parent_instance: GOutputStream,
7843 pub base_stream: *mut GOutputStream,
7844}
7845
7846impl ::std::fmt::Debug for GFilterOutputStream {
7847 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7848 f.debug_struct(&format!("GFilterOutputStream @ {self:p}"))
7849 .field("parent_instance", &self.parent_instance)
7850 .field("base_stream", &self.base_stream)
7851 .finish()
7852 }
7853}
7854
7855#[repr(C)]
7856#[allow(dead_code)]
7857pub struct GIOModule {
7858 _data: [u8; 0],
7859 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7860}
7861
7862impl ::std::fmt::Debug for GIOModule {
7863 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7864 f.debug_struct(&format!("GIOModule @ {self:p}")).finish()
7865 }
7866}
7867
7868#[derive(Copy, Clone)]
7869#[repr(C)]
7870pub struct GIOStream {
7871 pub parent_instance: gobject::GObject,
7872 pub priv_: *mut GIOStreamPrivate,
7873}
7874
7875impl ::std::fmt::Debug for GIOStream {
7876 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7877 f.debug_struct(&format!("GIOStream @ {self:p}"))
7878 .field("parent_instance", &self.parent_instance)
7879 .finish()
7880 }
7881}
7882
7883#[derive(Copy, Clone)]
7884#[repr(C)]
7885pub struct GInetAddress {
7886 pub parent_instance: gobject::GObject,
7887 pub priv_: *mut GInetAddressPrivate,
7888}
7889
7890impl ::std::fmt::Debug for GInetAddress {
7891 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7892 f.debug_struct(&format!("GInetAddress @ {self:p}"))
7893 .field("parent_instance", &self.parent_instance)
7894 .finish()
7895 }
7896}
7897
7898#[derive(Copy, Clone)]
7899#[repr(C)]
7900pub struct GInetAddressMask {
7901 pub parent_instance: gobject::GObject,
7902 pub priv_: *mut GInetAddressMaskPrivate,
7903}
7904
7905impl ::std::fmt::Debug for GInetAddressMask {
7906 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7907 f.debug_struct(&format!("GInetAddressMask @ {self:p}"))
7908 .field("parent_instance", &self.parent_instance)
7909 .finish()
7910 }
7911}
7912
7913#[derive(Copy, Clone)]
7914#[repr(C)]
7915pub struct GInetSocketAddress {
7916 pub parent_instance: GSocketAddress,
7917 pub priv_: *mut GInetSocketAddressPrivate,
7918}
7919
7920impl ::std::fmt::Debug for GInetSocketAddress {
7921 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7922 f.debug_struct(&format!("GInetSocketAddress @ {self:p}"))
7923 .field("parent_instance", &self.parent_instance)
7924 .finish()
7925 }
7926}
7927
7928#[derive(Copy, Clone)]
7929#[repr(C)]
7930pub struct GInputStream {
7931 pub parent_instance: gobject::GObject,
7932 pub priv_: *mut GInputStreamPrivate,
7933}
7934
7935impl ::std::fmt::Debug for GInputStream {
7936 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7937 f.debug_struct(&format!("GInputStream @ {self:p}"))
7938 .field("parent_instance", &self.parent_instance)
7939 .finish()
7940 }
7941}
7942
7943#[repr(C)]
7944#[allow(dead_code)]
7945pub struct GListStore {
7946 _data: [u8; 0],
7947 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7948}
7949
7950impl ::std::fmt::Debug for GListStore {
7951 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7952 f.debug_struct(&format!("GListStore @ {self:p}")).finish()
7953 }
7954}
7955
7956#[derive(Copy, Clone)]
7957#[repr(C)]
7958pub struct GMemoryInputStream {
7959 pub parent_instance: GInputStream,
7960 pub priv_: *mut GMemoryInputStreamPrivate,
7961}
7962
7963impl ::std::fmt::Debug for GMemoryInputStream {
7964 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7965 f.debug_struct(&format!("GMemoryInputStream @ {self:p}"))
7966 .field("parent_instance", &self.parent_instance)
7967 .finish()
7968 }
7969}
7970
7971#[derive(Copy, Clone)]
7972#[repr(C)]
7973pub struct GMemoryOutputStream {
7974 pub parent_instance: GOutputStream,
7975 pub priv_: *mut GMemoryOutputStreamPrivate,
7976}
7977
7978impl ::std::fmt::Debug for GMemoryOutputStream {
7979 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7980 f.debug_struct(&format!("GMemoryOutputStream @ {self:p}"))
7981 .field("parent_instance", &self.parent_instance)
7982 .finish()
7983 }
7984}
7985
7986#[repr(C)]
7987#[allow(dead_code)]
7988pub struct GMenu {
7989 _data: [u8; 0],
7990 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7991}
7992
7993impl ::std::fmt::Debug for GMenu {
7994 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7995 f.debug_struct(&format!("GMenu @ {self:p}")).finish()
7996 }
7997}
7998
7999#[derive(Copy, Clone)]
8000#[repr(C)]
8001pub struct GMenuAttributeIter {
8002 pub parent_instance: gobject::GObject,
8003 pub priv_: *mut GMenuAttributeIterPrivate,
8004}
8005
8006impl ::std::fmt::Debug for GMenuAttributeIter {
8007 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8008 f.debug_struct(&format!("GMenuAttributeIter @ {self:p}"))
8009 .field("parent_instance", &self.parent_instance)
8010 .field("priv_", &self.priv_)
8011 .finish()
8012 }
8013}
8014
8015#[repr(C)]
8016#[allow(dead_code)]
8017pub struct GMenuItem {
8018 _data: [u8; 0],
8019 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8020}
8021
8022impl ::std::fmt::Debug for GMenuItem {
8023 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8024 f.debug_struct(&format!("GMenuItem @ {self:p}")).finish()
8025 }
8026}
8027
8028#[derive(Copy, Clone)]
8029#[repr(C)]
8030pub struct GMenuLinkIter {
8031 pub parent_instance: gobject::GObject,
8032 pub priv_: *mut GMenuLinkIterPrivate,
8033}
8034
8035impl ::std::fmt::Debug for GMenuLinkIter {
8036 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8037 f.debug_struct(&format!("GMenuLinkIter @ {self:p}"))
8038 .field("parent_instance", &self.parent_instance)
8039 .field("priv_", &self.priv_)
8040 .finish()
8041 }
8042}
8043
8044#[derive(Copy, Clone)]
8045#[repr(C)]
8046pub struct GMenuModel {
8047 pub parent_instance: gobject::GObject,
8048 pub priv_: *mut GMenuModelPrivate,
8049}
8050
8051impl ::std::fmt::Debug for GMenuModel {
8052 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8053 f.debug_struct(&format!("GMenuModel @ {self:p}"))
8054 .field("parent_instance", &self.parent_instance)
8055 .field("priv_", &self.priv_)
8056 .finish()
8057 }
8058}
8059
8060#[derive(Copy, Clone)]
8061#[repr(C)]
8062pub struct GMountOperation {
8063 pub parent_instance: gobject::GObject,
8064 pub priv_: *mut GMountOperationPrivate,
8065}
8066
8067impl ::std::fmt::Debug for GMountOperation {
8068 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8069 f.debug_struct(&format!("GMountOperation @ {self:p}"))
8070 .field("parent_instance", &self.parent_instance)
8071 .field("priv_", &self.priv_)
8072 .finish()
8073 }
8074}
8075
8076#[derive(Copy, Clone)]
8077#[repr(C)]
8078pub struct GNativeSocketAddress {
8079 pub parent_instance: GSocketAddress,
8080 pub priv_: *mut GNativeSocketAddressPrivate,
8081}
8082
8083impl ::std::fmt::Debug for GNativeSocketAddress {
8084 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8085 f.debug_struct(&format!("GNativeSocketAddress @ {self:p}"))
8086 .field("parent_instance", &self.parent_instance)
8087 .finish()
8088 }
8089}
8090
8091#[derive(Copy, Clone)]
8092#[repr(C)]
8093pub struct GNativeVolumeMonitor {
8094 pub parent_instance: GVolumeMonitor,
8095}
8096
8097impl ::std::fmt::Debug for GNativeVolumeMonitor {
8098 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8099 f.debug_struct(&format!("GNativeVolumeMonitor @ {self:p}"))
8100 .field("parent_instance", &self.parent_instance)
8101 .finish()
8102 }
8103}
8104
8105#[derive(Copy, Clone)]
8106#[repr(C)]
8107pub struct GNetworkAddress {
8108 pub parent_instance: gobject::GObject,
8109 pub priv_: *mut GNetworkAddressPrivate,
8110}
8111
8112impl ::std::fmt::Debug for GNetworkAddress {
8113 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8114 f.debug_struct(&format!("GNetworkAddress @ {self:p}"))
8115 .field("parent_instance", &self.parent_instance)
8116 .finish()
8117 }
8118}
8119
8120#[derive(Copy, Clone)]
8121#[repr(C)]
8122pub struct GNetworkService {
8123 pub parent_instance: gobject::GObject,
8124 pub priv_: *mut GNetworkServicePrivate,
8125}
8126
8127impl ::std::fmt::Debug for GNetworkService {
8128 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8129 f.debug_struct(&format!("GNetworkService @ {self:p}"))
8130 .field("parent_instance", &self.parent_instance)
8131 .finish()
8132 }
8133}
8134
8135#[repr(C)]
8136#[allow(dead_code)]
8137pub struct GNotification {
8138 _data: [u8; 0],
8139 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8140}
8141
8142impl ::std::fmt::Debug for GNotification {
8143 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8144 f.debug_struct(&format!("GNotification @ {self:p}"))
8145 .finish()
8146 }
8147}
8148
8149#[derive(Copy, Clone)]
8150#[repr(C)]
8151pub struct GOutputStream {
8152 pub parent_instance: gobject::GObject,
8153 pub priv_: *mut GOutputStreamPrivate,
8154}
8155
8156impl ::std::fmt::Debug for GOutputStream {
8157 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8158 f.debug_struct(&format!("GOutputStream @ {self:p}"))
8159 .field("parent_instance", &self.parent_instance)
8160 .finish()
8161 }
8162}
8163
8164#[derive(Copy, Clone)]
8165#[repr(C)]
8166pub struct GPermission {
8167 pub parent_instance: gobject::GObject,
8168 pub priv_: *mut GPermissionPrivate,
8169}
8170
8171impl ::std::fmt::Debug for GPermission {
8172 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8173 f.debug_struct(&format!("GPermission @ {self:p}"))
8174 .field("parent_instance", &self.parent_instance)
8175 .finish()
8176 }
8177}
8178
8179#[repr(C)]
8180#[allow(dead_code)]
8181pub struct GPropertyAction {
8182 _data: [u8; 0],
8183 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8184}
8185
8186impl ::std::fmt::Debug for GPropertyAction {
8187 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8188 f.debug_struct(&format!("GPropertyAction @ {self:p}"))
8189 .finish()
8190 }
8191}
8192
8193#[derive(Copy, Clone)]
8194#[repr(C)]
8195pub struct GProxyAddress {
8196 pub parent_instance: GInetSocketAddress,
8197 pub priv_: *mut GProxyAddressPrivate,
8198}
8199
8200impl ::std::fmt::Debug for GProxyAddress {
8201 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8202 f.debug_struct(&format!("GProxyAddress @ {self:p}"))
8203 .field("parent_instance", &self.parent_instance)
8204 .finish()
8205 }
8206}
8207
8208#[derive(Copy, Clone)]
8209#[repr(C)]
8210pub struct GProxyAddressEnumerator {
8211 pub parent_instance: GSocketAddressEnumerator,
8212 pub priv_: *mut GProxyAddressEnumeratorPrivate,
8213}
8214
8215impl ::std::fmt::Debug for GProxyAddressEnumerator {
8216 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8217 f.debug_struct(&format!("GProxyAddressEnumerator @ {self:p}"))
8218 .finish()
8219 }
8220}
8221
8222#[derive(Copy, Clone)]
8223#[repr(C)]
8224pub struct GResolver {
8225 pub parent_instance: gobject::GObject,
8226 pub priv_: *mut GResolverPrivate,
8227}
8228
8229impl ::std::fmt::Debug for GResolver {
8230 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8231 f.debug_struct(&format!("GResolver @ {self:p}"))
8232 .field("parent_instance", &self.parent_instance)
8233 .field("priv_", &self.priv_)
8234 .finish()
8235 }
8236}
8237
8238#[derive(Copy, Clone)]
8239#[repr(C)]
8240pub struct GSettings {
8241 pub parent_instance: gobject::GObject,
8242 pub priv_: *mut GSettingsPrivate,
8243}
8244
8245impl ::std::fmt::Debug for GSettings {
8246 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8247 f.debug_struct(&format!("GSettings @ {self:p}"))
8248 .field("parent_instance", &self.parent_instance)
8249 .field("priv_", &self.priv_)
8250 .finish()
8251 }
8252}
8253
8254#[derive(Copy, Clone)]
8255#[repr(C)]
8256pub struct GSettingsBackend {
8257 pub parent_instance: gobject::GObject,
8258 pub priv_: *mut GSettingsBackendPrivate,
8259}
8260
8261impl ::std::fmt::Debug for GSettingsBackend {
8262 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8263 f.debug_struct(&format!("GSettingsBackend @ {self:p}"))
8264 .field("parent_instance", &self.parent_instance)
8265 .finish()
8266 }
8267}
8268
8269#[repr(C)]
8270#[allow(dead_code)]
8271pub struct GSimpleAction {
8272 _data: [u8; 0],
8273 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8274}
8275
8276impl ::std::fmt::Debug for GSimpleAction {
8277 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8278 f.debug_struct(&format!("GSimpleAction @ {self:p}"))
8279 .finish()
8280 }
8281}
8282
8283#[derive(Copy, Clone)]
8284#[repr(C)]
8285pub struct GSimpleActionGroup {
8286 pub parent_instance: gobject::GObject,
8287 pub priv_: *mut GSimpleActionGroupPrivate,
8288}
8289
8290impl ::std::fmt::Debug for GSimpleActionGroup {
8291 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8292 f.debug_struct(&format!("GSimpleActionGroup @ {self:p}"))
8293 .finish()
8294 }
8295}
8296
8297#[repr(C)]
8298#[allow(dead_code)]
8299pub struct GSimpleAsyncResult {
8300 _data: [u8; 0],
8301 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8302}
8303
8304impl ::std::fmt::Debug for GSimpleAsyncResult {
8305 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8306 f.debug_struct(&format!("GSimpleAsyncResult @ {self:p}"))
8307 .finish()
8308 }
8309}
8310
8311#[repr(C)]
8312#[allow(dead_code)]
8313pub struct GSimpleIOStream {
8314 _data: [u8; 0],
8315 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8316}
8317
8318impl ::std::fmt::Debug for GSimpleIOStream {
8319 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8320 f.debug_struct(&format!("GSimpleIOStream @ {self:p}"))
8321 .finish()
8322 }
8323}
8324
8325#[repr(C)]
8326#[allow(dead_code)]
8327pub struct GSimplePermission {
8328 _data: [u8; 0],
8329 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8330}
8331
8332impl ::std::fmt::Debug for GSimplePermission {
8333 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8334 f.debug_struct(&format!("GSimplePermission @ {self:p}"))
8335 .finish()
8336 }
8337}
8338
8339#[derive(Copy, Clone)]
8340#[repr(C)]
8341pub struct GSimpleProxyResolver {
8342 pub parent_instance: gobject::GObject,
8343 pub priv_: *mut GSimpleProxyResolverPrivate,
8344}
8345
8346impl ::std::fmt::Debug for GSimpleProxyResolver {
8347 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8348 f.debug_struct(&format!("GSimpleProxyResolver @ {self:p}"))
8349 .field("parent_instance", &self.parent_instance)
8350 .finish()
8351 }
8352}
8353
8354#[derive(Copy, Clone)]
8355#[repr(C)]
8356pub struct GSocket {
8357 pub parent_instance: gobject::GObject,
8358 pub priv_: *mut GSocketPrivate,
8359}
8360
8361impl ::std::fmt::Debug for GSocket {
8362 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8363 f.debug_struct(&format!("GSocket @ {self:p}"))
8364 .field("parent_instance", &self.parent_instance)
8365 .field("priv_", &self.priv_)
8366 .finish()
8367 }
8368}
8369
8370#[derive(Copy, Clone)]
8371#[repr(C)]
8372pub struct GSocketAddress {
8373 pub parent_instance: gobject::GObject,
8374}
8375
8376impl ::std::fmt::Debug for GSocketAddress {
8377 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8378 f.debug_struct(&format!("GSocketAddress @ {self:p}"))
8379 .field("parent_instance", &self.parent_instance)
8380 .finish()
8381 }
8382}
8383
8384#[derive(Copy, Clone)]
8385#[repr(C)]
8386pub struct GSocketAddressEnumerator {
8387 pub parent_instance: gobject::GObject,
8388}
8389
8390impl ::std::fmt::Debug for GSocketAddressEnumerator {
8391 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8392 f.debug_struct(&format!("GSocketAddressEnumerator @ {self:p}"))
8393 .finish()
8394 }
8395}
8396
8397#[derive(Copy, Clone)]
8398#[repr(C)]
8399pub struct GSocketClient {
8400 pub parent_instance: gobject::GObject,
8401 pub priv_: *mut GSocketClientPrivate,
8402}
8403
8404impl ::std::fmt::Debug for GSocketClient {
8405 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8406 f.debug_struct(&format!("GSocketClient @ {self:p}"))
8407 .field("parent_instance", &self.parent_instance)
8408 .field("priv_", &self.priv_)
8409 .finish()
8410 }
8411}
8412
8413#[derive(Copy, Clone)]
8414#[repr(C)]
8415pub struct GSocketConnection {
8416 pub parent_instance: GIOStream,
8417 pub priv_: *mut GSocketConnectionPrivate,
8418}
8419
8420impl ::std::fmt::Debug for GSocketConnection {
8421 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8422 f.debug_struct(&format!("GSocketConnection @ {self:p}"))
8423 .field("parent_instance", &self.parent_instance)
8424 .field("priv_", &self.priv_)
8425 .finish()
8426 }
8427}
8428
8429#[derive(Copy, Clone)]
8430#[repr(C)]
8431pub struct GSocketControlMessage {
8432 pub parent_instance: gobject::GObject,
8433 pub priv_: *mut GSocketControlMessagePrivate,
8434}
8435
8436impl ::std::fmt::Debug for GSocketControlMessage {
8437 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8438 f.debug_struct(&format!("GSocketControlMessage @ {self:p}"))
8439 .field("parent_instance", &self.parent_instance)
8440 .field("priv_", &self.priv_)
8441 .finish()
8442 }
8443}
8444
8445#[derive(Copy, Clone)]
8446#[repr(C)]
8447pub struct GSocketListener {
8448 pub parent_instance: gobject::GObject,
8449 pub priv_: *mut GSocketListenerPrivate,
8450}
8451
8452impl ::std::fmt::Debug for GSocketListener {
8453 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8454 f.debug_struct(&format!("GSocketListener @ {self:p}"))
8455 .field("parent_instance", &self.parent_instance)
8456 .field("priv_", &self.priv_)
8457 .finish()
8458 }
8459}
8460
8461#[derive(Copy, Clone)]
8462#[repr(C)]
8463pub struct GSocketService {
8464 pub parent_instance: GSocketListener,
8465 pub priv_: *mut GSocketServicePrivate,
8466}
8467
8468impl ::std::fmt::Debug for GSocketService {
8469 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8470 f.debug_struct(&format!("GSocketService @ {self:p}"))
8471 .field("parent_instance", &self.parent_instance)
8472 .field("priv_", &self.priv_)
8473 .finish()
8474 }
8475}
8476
8477#[repr(C)]
8478#[allow(dead_code)]
8479pub struct GSubprocess {
8480 _data: [u8; 0],
8481 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8482}
8483
8484impl ::std::fmt::Debug for GSubprocess {
8485 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8486 f.debug_struct(&format!("GSubprocess @ {self:p}")).finish()
8487 }
8488}
8489
8490#[repr(C)]
8491#[allow(dead_code)]
8492pub struct GSubprocessLauncher {
8493 _data: [u8; 0],
8494 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8495}
8496
8497impl ::std::fmt::Debug for GSubprocessLauncher {
8498 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8499 f.debug_struct(&format!("GSubprocessLauncher @ {self:p}"))
8500 .finish()
8501 }
8502}
8503
8504#[repr(C)]
8505#[allow(dead_code)]
8506pub struct GTask {
8507 _data: [u8; 0],
8508 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8509}
8510
8511impl ::std::fmt::Debug for GTask {
8512 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8513 f.debug_struct(&format!("GTask @ {self:p}")).finish()
8514 }
8515}
8516
8517#[derive(Copy, Clone)]
8518#[repr(C)]
8519pub struct GTcpConnection {
8520 pub parent_instance: GSocketConnection,
8521 pub priv_: *mut GTcpConnectionPrivate,
8522}
8523
8524impl ::std::fmt::Debug for GTcpConnection {
8525 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8526 f.debug_struct(&format!("GTcpConnection @ {self:p}"))
8527 .field("parent_instance", &self.parent_instance)
8528 .field("priv_", &self.priv_)
8529 .finish()
8530 }
8531}
8532
8533#[derive(Copy, Clone)]
8534#[repr(C)]
8535pub struct GTcpWrapperConnection {
8536 pub parent_instance: GTcpConnection,
8537 pub priv_: *mut GTcpWrapperConnectionPrivate,
8538}
8539
8540impl ::std::fmt::Debug for GTcpWrapperConnection {
8541 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8542 f.debug_struct(&format!("GTcpWrapperConnection @ {self:p}"))
8543 .field("parent_instance", &self.parent_instance)
8544 .field("priv_", &self.priv_)
8545 .finish()
8546 }
8547}
8548
8549#[repr(C)]
8550#[allow(dead_code)]
8551pub struct GTestDBus {
8552 _data: [u8; 0],
8553 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8554}
8555
8556impl ::std::fmt::Debug for GTestDBus {
8557 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8558 f.debug_struct(&format!("GTestDBus @ {self:p}")).finish()
8559 }
8560}
8561
8562#[repr(C)]
8563#[allow(dead_code)]
8564pub struct GThemedIcon {
8565 _data: [u8; 0],
8566 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8567}
8568
8569impl ::std::fmt::Debug for GThemedIcon {
8570 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8571 f.debug_struct(&format!("GThemedIcon @ {self:p}")).finish()
8572 }
8573}
8574
8575#[repr(C)]
8576#[allow(dead_code)]
8577pub struct GThreadedResolver {
8578 _data: [u8; 0],
8579 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8580}
8581
8582impl ::std::fmt::Debug for GThreadedResolver {
8583 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8584 f.debug_struct(&format!("GThreadedResolver @ {self:p}"))
8585 .finish()
8586 }
8587}
8588
8589#[derive(Copy, Clone)]
8590#[repr(C)]
8591pub struct GThreadedSocketService {
8592 pub parent_instance: GSocketService,
8593 pub priv_: *mut GThreadedSocketServicePrivate,
8594}
8595
8596impl ::std::fmt::Debug for GThreadedSocketService {
8597 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8598 f.debug_struct(&format!("GThreadedSocketService @ {self:p}"))
8599 .field("parent_instance", &self.parent_instance)
8600 .field("priv_", &self.priv_)
8601 .finish()
8602 }
8603}
8604
8605#[derive(Copy, Clone)]
8606#[repr(C)]
8607pub struct GTlsCertificate {
8608 pub parent_instance: gobject::GObject,
8609 pub priv_: *mut GTlsCertificatePrivate,
8610}
8611
8612impl ::std::fmt::Debug for GTlsCertificate {
8613 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8614 f.debug_struct(&format!("GTlsCertificate @ {self:p}"))
8615 .field("parent_instance", &self.parent_instance)
8616 .field("priv_", &self.priv_)
8617 .finish()
8618 }
8619}
8620
8621#[derive(Copy, Clone)]
8622#[repr(C)]
8623pub struct GTlsConnection {
8624 pub parent_instance: GIOStream,
8625 pub priv_: *mut GTlsConnectionPrivate,
8626}
8627
8628impl ::std::fmt::Debug for GTlsConnection {
8629 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8630 f.debug_struct(&format!("GTlsConnection @ {self:p}"))
8631 .field("parent_instance", &self.parent_instance)
8632 .field("priv_", &self.priv_)
8633 .finish()
8634 }
8635}
8636
8637#[derive(Copy, Clone)]
8638#[repr(C)]
8639pub struct GTlsDatabase {
8640 pub parent_instance: gobject::GObject,
8641 pub priv_: *mut GTlsDatabasePrivate,
8642}
8643
8644impl ::std::fmt::Debug for GTlsDatabase {
8645 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8646 f.debug_struct(&format!("GTlsDatabase @ {self:p}"))
8647 .field("parent_instance", &self.parent_instance)
8648 .field("priv_", &self.priv_)
8649 .finish()
8650 }
8651}
8652
8653#[derive(Copy, Clone)]
8654#[repr(C)]
8655pub struct GTlsInteraction {
8656 pub parent_instance: gobject::GObject,
8657 pub priv_: *mut GTlsInteractionPrivate,
8658}
8659
8660impl ::std::fmt::Debug for GTlsInteraction {
8661 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8662 f.debug_struct(&format!("GTlsInteraction @ {self:p}"))
8663 .finish()
8664 }
8665}
8666
8667#[derive(Copy, Clone)]
8668#[repr(C)]
8669pub struct GTlsPassword {
8670 pub parent_instance: gobject::GObject,
8671 pub priv_: *mut GTlsPasswordPrivate,
8672}
8673
8674impl ::std::fmt::Debug for GTlsPassword {
8675 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8676 f.debug_struct(&format!("GTlsPassword @ {self:p}"))
8677 .field("parent_instance", &self.parent_instance)
8678 .field("priv_", &self.priv_)
8679 .finish()
8680 }
8681}
8682
8683#[derive(Copy, Clone)]
8684#[repr(C)]
8685pub struct GUnixConnection {
8686 pub parent_instance: GSocketConnection,
8687 pub priv_: *mut GUnixConnectionPrivate,
8688}
8689
8690impl ::std::fmt::Debug for GUnixConnection {
8691 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8692 f.debug_struct(&format!("GUnixConnection @ {self:p}"))
8693 .field("parent_instance", &self.parent_instance)
8694 .field("priv_", &self.priv_)
8695 .finish()
8696 }
8697}
8698
8699#[derive(Copy, Clone)]
8700#[repr(C)]
8701pub struct GUnixCredentialsMessage {
8702 pub parent_instance: GSocketControlMessage,
8703 pub priv_: *mut GUnixCredentialsMessagePrivate,
8704}
8705
8706impl ::std::fmt::Debug for GUnixCredentialsMessage {
8707 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8708 f.debug_struct(&format!("GUnixCredentialsMessage @ {self:p}"))
8709 .field("parent_instance", &self.parent_instance)
8710 .field("priv_", &self.priv_)
8711 .finish()
8712 }
8713}
8714
8715#[derive(Copy, Clone)]
8716#[repr(C)]
8717pub struct GUnixFDList {
8718 pub parent_instance: gobject::GObject,
8719 pub priv_: *mut GUnixFDListPrivate,
8720}
8721
8722impl ::std::fmt::Debug for GUnixFDList {
8723 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8724 f.debug_struct(&format!("GUnixFDList @ {self:p}"))
8725 .field("parent_instance", &self.parent_instance)
8726 .field("priv_", &self.priv_)
8727 .finish()
8728 }
8729}
8730
8731#[derive(Copy, Clone)]
8732#[repr(C)]
8733pub struct GUnixFDMessage {
8734 pub parent_instance: GSocketControlMessage,
8735 pub priv_: *mut GUnixFDMessagePrivate,
8736}
8737
8738impl ::std::fmt::Debug for GUnixFDMessage {
8739 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8740 f.debug_struct(&format!("GUnixFDMessage @ {self:p}"))
8741 .field("parent_instance", &self.parent_instance)
8742 .field("priv_", &self.priv_)
8743 .finish()
8744 }
8745}
8746
8747#[derive(Copy, Clone)]
8748#[repr(C)]
8749pub struct GUnixInputStream {
8750 pub parent_instance: GInputStream,
8751 pub priv_: *mut GUnixInputStreamPrivate,
8752}
8753
8754impl ::std::fmt::Debug for GUnixInputStream {
8755 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8756 f.debug_struct(&format!("GUnixInputStream @ {self:p}"))
8757 .field("parent_instance", &self.parent_instance)
8758 .finish()
8759 }
8760}
8761
8762#[repr(C)]
8763#[allow(dead_code)]
8764pub struct GUnixMountMonitor {
8765 _data: [u8; 0],
8766 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8767}
8768
8769impl ::std::fmt::Debug for GUnixMountMonitor {
8770 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8771 f.debug_struct(&format!("GUnixMountMonitor @ {self:p}"))
8772 .finish()
8773 }
8774}
8775
8776#[derive(Copy, Clone)]
8777#[repr(C)]
8778pub struct GUnixOutputStream {
8779 pub parent_instance: GOutputStream,
8780 pub priv_: *mut GUnixOutputStreamPrivate,
8781}
8782
8783impl ::std::fmt::Debug for GUnixOutputStream {
8784 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8785 f.debug_struct(&format!("GUnixOutputStream @ {self:p}"))
8786 .field("parent_instance", &self.parent_instance)
8787 .finish()
8788 }
8789}
8790
8791#[derive(Copy, Clone)]
8792#[repr(C)]
8793pub struct GUnixSocketAddress {
8794 pub parent_instance: GSocketAddress,
8795 pub priv_: *mut GUnixSocketAddressPrivate,
8796}
8797
8798impl ::std::fmt::Debug for GUnixSocketAddress {
8799 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8800 f.debug_struct(&format!("GUnixSocketAddress @ {self:p}"))
8801 .field("parent_instance", &self.parent_instance)
8802 .finish()
8803 }
8804}
8805
8806#[derive(Copy, Clone)]
8807#[repr(C)]
8808pub struct GVfs {
8809 pub parent_instance: gobject::GObject,
8810}
8811
8812impl ::std::fmt::Debug for GVfs {
8813 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8814 f.debug_struct(&format!("GVfs @ {self:p}"))
8815 .field("parent_instance", &self.parent_instance)
8816 .finish()
8817 }
8818}
8819
8820#[derive(Copy, Clone)]
8821#[repr(C)]
8822pub struct GVolumeMonitor {
8823 pub parent_instance: gobject::GObject,
8824 pub priv_: gpointer,
8825}
8826
8827impl ::std::fmt::Debug for GVolumeMonitor {
8828 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8829 f.debug_struct(&format!("GVolumeMonitor @ {self:p}"))
8830 .field("parent_instance", &self.parent_instance)
8831 .finish()
8832 }
8833}
8834
8835#[repr(C)]
8836#[allow(dead_code)]
8837pub struct GZlibCompressor {
8838 _data: [u8; 0],
8839 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8840}
8841
8842impl ::std::fmt::Debug for GZlibCompressor {
8843 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8844 f.debug_struct(&format!("GZlibCompressor @ {self:p}"))
8845 .finish()
8846 }
8847}
8848
8849#[repr(C)]
8850#[allow(dead_code)]
8851pub struct GZlibDecompressor {
8852 _data: [u8; 0],
8853 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8854}
8855
8856impl ::std::fmt::Debug for GZlibDecompressor {
8857 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8858 f.debug_struct(&format!("GZlibDecompressor @ {self:p}"))
8859 .finish()
8860 }
8861}
8862
8863#[repr(C)]
8865#[allow(dead_code)]
8866pub struct GAction {
8867 _data: [u8; 0],
8868 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8869}
8870
8871impl ::std::fmt::Debug for GAction {
8872 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8873 write!(f, "GAction @ {self:p}")
8874 }
8875}
8876
8877#[repr(C)]
8878#[allow(dead_code)]
8879pub struct GActionGroup {
8880 _data: [u8; 0],
8881 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8882}
8883
8884impl ::std::fmt::Debug for GActionGroup {
8885 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8886 write!(f, "GActionGroup @ {self:p}")
8887 }
8888}
8889
8890#[repr(C)]
8891#[allow(dead_code)]
8892pub struct GActionMap {
8893 _data: [u8; 0],
8894 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8895}
8896
8897impl ::std::fmt::Debug for GActionMap {
8898 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8899 write!(f, "GActionMap @ {self:p}")
8900 }
8901}
8902
8903#[repr(C)]
8904#[allow(dead_code)]
8905pub struct GAppInfo {
8906 _data: [u8; 0],
8907 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8908}
8909
8910impl ::std::fmt::Debug for GAppInfo {
8911 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8912 write!(f, "GAppInfo @ {self:p}")
8913 }
8914}
8915
8916#[repr(C)]
8917#[allow(dead_code)]
8918pub struct GAsyncInitable {
8919 _data: [u8; 0],
8920 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8921}
8922
8923impl ::std::fmt::Debug for GAsyncInitable {
8924 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8925 write!(f, "GAsyncInitable @ {self:p}")
8926 }
8927}
8928
8929#[repr(C)]
8930#[allow(dead_code)]
8931pub struct GAsyncResult {
8932 _data: [u8; 0],
8933 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8934}
8935
8936impl ::std::fmt::Debug for GAsyncResult {
8937 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8938 write!(f, "GAsyncResult @ {self:p}")
8939 }
8940}
8941
8942#[repr(C)]
8943#[allow(dead_code)]
8944pub struct GConverter {
8945 _data: [u8; 0],
8946 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8947}
8948
8949impl ::std::fmt::Debug for GConverter {
8950 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8951 write!(f, "GConverter @ {self:p}")
8952 }
8953}
8954
8955#[repr(C)]
8956#[allow(dead_code)]
8957pub struct GDBusInterface {
8958 _data: [u8; 0],
8959 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8960}
8961
8962impl ::std::fmt::Debug for GDBusInterface {
8963 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8964 write!(f, "GDBusInterface @ {self:p}")
8965 }
8966}
8967
8968#[repr(C)]
8969#[allow(dead_code)]
8970pub struct GDBusObject {
8971 _data: [u8; 0],
8972 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8973}
8974
8975impl ::std::fmt::Debug for GDBusObject {
8976 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8977 write!(f, "GDBusObject @ {self:p}")
8978 }
8979}
8980
8981#[repr(C)]
8982#[allow(dead_code)]
8983pub struct GDBusObjectManager {
8984 _data: [u8; 0],
8985 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8986}
8987
8988impl ::std::fmt::Debug for GDBusObjectManager {
8989 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8990 write!(f, "GDBusObjectManager @ {self:p}")
8991 }
8992}
8993
8994#[repr(C)]
8995#[allow(dead_code)]
8996pub struct GDatagramBased {
8997 _data: [u8; 0],
8998 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8999}
9000
9001impl ::std::fmt::Debug for GDatagramBased {
9002 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9003 write!(f, "GDatagramBased @ {self:p}")
9004 }
9005}
9006
9007#[repr(C)]
9008#[allow(dead_code)]
9009pub struct GDebugController {
9010 _data: [u8; 0],
9011 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9012}
9013
9014impl ::std::fmt::Debug for GDebugController {
9015 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9016 write!(f, "GDebugController @ {self:p}")
9017 }
9018}
9019
9020#[repr(C)]
9021#[allow(dead_code)]
9022pub struct GDesktopAppInfoLookup {
9023 _data: [u8; 0],
9024 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9025}
9026
9027impl ::std::fmt::Debug for GDesktopAppInfoLookup {
9028 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9029 write!(f, "GDesktopAppInfoLookup @ {self:p}")
9030 }
9031}
9032
9033#[repr(C)]
9034#[allow(dead_code)]
9035pub struct GDrive {
9036 _data: [u8; 0],
9037 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9038}
9039
9040impl ::std::fmt::Debug for GDrive {
9041 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9042 write!(f, "GDrive @ {self:p}")
9043 }
9044}
9045
9046#[repr(C)]
9047#[allow(dead_code)]
9048pub struct GDtlsClientConnection {
9049 _data: [u8; 0],
9050 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9051}
9052
9053impl ::std::fmt::Debug for GDtlsClientConnection {
9054 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9055 write!(f, "GDtlsClientConnection @ {self:p}")
9056 }
9057}
9058
9059#[repr(C)]
9060#[allow(dead_code)]
9061pub struct GDtlsConnection {
9062 _data: [u8; 0],
9063 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9064}
9065
9066impl ::std::fmt::Debug for GDtlsConnection {
9067 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9068 write!(f, "GDtlsConnection @ {self:p}")
9069 }
9070}
9071
9072#[repr(C)]
9073#[allow(dead_code)]
9074pub struct GDtlsServerConnection {
9075 _data: [u8; 0],
9076 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9077}
9078
9079impl ::std::fmt::Debug for GDtlsServerConnection {
9080 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9081 write!(f, "GDtlsServerConnection @ {self:p}")
9082 }
9083}
9084
9085#[repr(C)]
9086#[allow(dead_code)]
9087pub struct GFile {
9088 _data: [u8; 0],
9089 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9090}
9091
9092impl ::std::fmt::Debug for GFile {
9093 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9094 write!(f, "GFile @ {self:p}")
9095 }
9096}
9097
9098#[repr(C)]
9099#[allow(dead_code)]
9100pub struct GFileDescriptorBased {
9101 _data: [u8; 0],
9102 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9103}
9104
9105impl ::std::fmt::Debug for GFileDescriptorBased {
9106 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9107 write!(f, "GFileDescriptorBased @ {self:p}")
9108 }
9109}
9110
9111#[repr(C)]
9112#[allow(dead_code)]
9113pub struct GIcon {
9114 _data: [u8; 0],
9115 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9116}
9117
9118impl ::std::fmt::Debug for GIcon {
9119 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9120 write!(f, "GIcon @ {self:p}")
9121 }
9122}
9123
9124#[repr(C)]
9125#[allow(dead_code)]
9126pub struct GInitable {
9127 _data: [u8; 0],
9128 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9129}
9130
9131impl ::std::fmt::Debug for GInitable {
9132 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9133 write!(f, "GInitable @ {self:p}")
9134 }
9135}
9136
9137#[repr(C)]
9138#[allow(dead_code)]
9139pub struct GListModel {
9140 _data: [u8; 0],
9141 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9142}
9143
9144impl ::std::fmt::Debug for GListModel {
9145 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9146 write!(f, "GListModel @ {self:p}")
9147 }
9148}
9149
9150#[repr(C)]
9151#[allow(dead_code)]
9152pub struct GLoadableIcon {
9153 _data: [u8; 0],
9154 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9155}
9156
9157impl ::std::fmt::Debug for GLoadableIcon {
9158 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9159 write!(f, "GLoadableIcon @ {self:p}")
9160 }
9161}
9162
9163#[repr(C)]
9164#[allow(dead_code)]
9165pub struct GMemoryMonitor {
9166 _data: [u8; 0],
9167 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9168}
9169
9170impl ::std::fmt::Debug for GMemoryMonitor {
9171 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9172 write!(f, "GMemoryMonitor @ {self:p}")
9173 }
9174}
9175
9176#[repr(C)]
9177#[allow(dead_code)]
9178pub struct GMount {
9179 _data: [u8; 0],
9180 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9181}
9182
9183impl ::std::fmt::Debug for GMount {
9184 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9185 write!(f, "GMount @ {self:p}")
9186 }
9187}
9188
9189#[repr(C)]
9190#[allow(dead_code)]
9191pub struct GNetworkMonitor {
9192 _data: [u8; 0],
9193 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9194}
9195
9196impl ::std::fmt::Debug for GNetworkMonitor {
9197 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9198 write!(f, "GNetworkMonitor @ {self:p}")
9199 }
9200}
9201
9202#[repr(C)]
9203#[allow(dead_code)]
9204pub struct GPollableInputStream {
9205 _data: [u8; 0],
9206 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9207}
9208
9209impl ::std::fmt::Debug for GPollableInputStream {
9210 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9211 write!(f, "GPollableInputStream @ {self:p}")
9212 }
9213}
9214
9215#[repr(C)]
9216#[allow(dead_code)]
9217pub struct GPollableOutputStream {
9218 _data: [u8; 0],
9219 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9220}
9221
9222impl ::std::fmt::Debug for GPollableOutputStream {
9223 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9224 write!(f, "GPollableOutputStream @ {self:p}")
9225 }
9226}
9227
9228#[repr(C)]
9229#[allow(dead_code)]
9230pub struct GPowerProfileMonitor {
9231 _data: [u8; 0],
9232 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9233}
9234
9235impl ::std::fmt::Debug for GPowerProfileMonitor {
9236 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9237 write!(f, "GPowerProfileMonitor @ {self:p}")
9238 }
9239}
9240
9241#[repr(C)]
9242#[allow(dead_code)]
9243pub struct GProxy {
9244 _data: [u8; 0],
9245 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9246}
9247
9248impl ::std::fmt::Debug for GProxy {
9249 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9250 write!(f, "GProxy @ {self:p}")
9251 }
9252}
9253
9254#[repr(C)]
9255#[allow(dead_code)]
9256pub struct GProxyResolver {
9257 _data: [u8; 0],
9258 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9259}
9260
9261impl ::std::fmt::Debug for GProxyResolver {
9262 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9263 write!(f, "GProxyResolver @ {self:p}")
9264 }
9265}
9266
9267#[repr(C)]
9268#[allow(dead_code)]
9269pub struct GRemoteActionGroup {
9270 _data: [u8; 0],
9271 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9272}
9273
9274impl ::std::fmt::Debug for GRemoteActionGroup {
9275 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9276 write!(f, "GRemoteActionGroup @ {self:p}")
9277 }
9278}
9279
9280#[repr(C)]
9281#[allow(dead_code)]
9282pub struct GSeekable {
9283 _data: [u8; 0],
9284 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9285}
9286
9287impl ::std::fmt::Debug for GSeekable {
9288 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9289 write!(f, "GSeekable @ {self:p}")
9290 }
9291}
9292
9293#[repr(C)]
9294#[allow(dead_code)]
9295pub struct GSocketConnectable {
9296 _data: [u8; 0],
9297 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9298}
9299
9300impl ::std::fmt::Debug for GSocketConnectable {
9301 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9302 write!(f, "GSocketConnectable @ {self:p}")
9303 }
9304}
9305
9306#[repr(C)]
9307#[allow(dead_code)]
9308pub struct GTlsBackend {
9309 _data: [u8; 0],
9310 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9311}
9312
9313impl ::std::fmt::Debug for GTlsBackend {
9314 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9315 write!(f, "GTlsBackend @ {self:p}")
9316 }
9317}
9318
9319#[repr(C)]
9320#[allow(dead_code)]
9321pub struct GTlsClientConnection {
9322 _data: [u8; 0],
9323 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9324}
9325
9326impl ::std::fmt::Debug for GTlsClientConnection {
9327 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9328 write!(f, "GTlsClientConnection @ {self:p}")
9329 }
9330}
9331
9332#[repr(C)]
9333#[allow(dead_code)]
9334pub struct GTlsFileDatabase {
9335 _data: [u8; 0],
9336 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9337}
9338
9339impl ::std::fmt::Debug for GTlsFileDatabase {
9340 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9341 write!(f, "GTlsFileDatabase @ {self:p}")
9342 }
9343}
9344
9345#[repr(C)]
9346#[allow(dead_code)]
9347pub struct GTlsServerConnection {
9348 _data: [u8; 0],
9349 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9350}
9351
9352impl ::std::fmt::Debug for GTlsServerConnection {
9353 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9354 write!(f, "GTlsServerConnection @ {self:p}")
9355 }
9356}
9357
9358#[repr(C)]
9359#[allow(dead_code)]
9360pub struct GVolume {
9361 _data: [u8; 0],
9362 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9363}
9364
9365impl ::std::fmt::Debug for GVolume {
9366 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9367 write!(f, "GVolume @ {self:p}")
9368 }
9369}
9370
9371extern "C" {
9372
9373 pub fn g_bus_type_get_type() -> GType;
9377
9378 pub fn g_converter_result_get_type() -> GType;
9382
9383 pub fn g_credentials_type_get_type() -> GType;
9387
9388 pub fn g_dbus_error_get_type() -> GType;
9392 pub fn g_dbus_error_encode_gerror(error: *const glib::GError) -> *mut c_char;
9393 pub fn g_dbus_error_get_remote_error(error: *const glib::GError) -> *mut c_char;
9394 pub fn g_dbus_error_is_remote_error(error: *const glib::GError) -> gboolean;
9395 pub fn g_dbus_error_new_for_dbus_error(
9396 dbus_error_name: *const c_char,
9397 dbus_error_message: *const c_char,
9398 ) -> *mut glib::GError;
9399 pub fn g_dbus_error_quark() -> glib::GQuark;
9400 pub fn g_dbus_error_register_error(
9401 error_domain: glib::GQuark,
9402 error_code: c_int,
9403 dbus_error_name: *const c_char,
9404 ) -> gboolean;
9405 pub fn g_dbus_error_register_error_domain(
9406 error_domain_quark_name: *const c_char,
9407 quark_volatile: *mut size_t,
9408 entries: *const GDBusErrorEntry,
9409 num_entries: c_uint,
9410 );
9411 pub fn g_dbus_error_set_dbus_error(
9412 error: *mut *mut glib::GError,
9413 dbus_error_name: *const c_char,
9414 dbus_error_message: *const c_char,
9415 format: *const c_char,
9416 ...
9417 );
9418 pub fn g_dbus_error_strip_remote_error(error: *mut glib::GError) -> gboolean;
9420 pub fn g_dbus_error_unregister_error(
9421 error_domain: glib::GQuark,
9422 error_code: c_int,
9423 dbus_error_name: *const c_char,
9424 ) -> gboolean;
9425
9426 pub fn g_dbus_message_byte_order_get_type() -> GType;
9430
9431 pub fn g_dbus_message_header_field_get_type() -> GType;
9435
9436 pub fn g_dbus_message_type_get_type() -> GType;
9440
9441 pub fn g_data_stream_byte_order_get_type() -> GType;
9445
9446 pub fn g_data_stream_newline_type_get_type() -> GType;
9450
9451 pub fn g_drive_start_stop_type_get_type() -> GType;
9455
9456 pub fn g_emblem_origin_get_type() -> GType;
9460
9461 pub fn g_file_attribute_status_get_type() -> GType;
9465
9466 pub fn g_file_attribute_type_get_type() -> GType;
9470
9471 pub fn g_file_monitor_event_get_type() -> GType;
9475
9476 pub fn g_file_type_get_type() -> GType;
9480
9481 pub fn g_filesystem_preview_type_get_type() -> GType;
9485
9486 pub fn g_io_error_enum_get_type() -> GType;
9490
9491 pub fn g_io_module_scope_flags_get_type() -> GType;
9495
9496 #[cfg(feature = "v2_64")]
9500 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
9501 pub fn g_memory_monitor_warning_level_get_type() -> GType;
9502
9503 pub fn g_mount_operation_result_get_type() -> GType;
9507
9508 pub fn g_network_connectivity_get_type() -> GType;
9512
9513 pub fn g_notification_priority_get_type() -> GType;
9517
9518 pub fn g_password_save_get_type() -> GType;
9522
9523 #[cfg(feature = "v2_60")]
9527 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
9528 pub fn g_pollable_return_get_type() -> GType;
9529
9530 pub fn g_resolver_error_get_type() -> GType;
9534 pub fn g_resolver_error_quark() -> glib::GQuark;
9535
9536 pub fn g_resolver_record_type_get_type() -> GType;
9540
9541 pub fn g_resource_error_get_type() -> GType;
9545 pub fn g_resource_error_quark() -> glib::GQuark;
9546
9547 pub fn g_socket_client_event_get_type() -> GType;
9551
9552 pub fn g_socket_family_get_type() -> GType;
9556
9557 pub fn g_socket_listener_event_get_type() -> GType;
9561
9562 pub fn g_socket_protocol_get_type() -> GType;
9566
9567 pub fn g_socket_type_get_type() -> GType;
9571
9572 pub fn g_tls_authentication_mode_get_type() -> GType;
9576
9577 pub fn g_tls_certificate_request_flags_get_type() -> GType;
9581
9582 #[cfg(feature = "v2_66")]
9586 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9587 pub fn g_tls_channel_binding_error_get_type() -> GType;
9588 #[cfg(feature = "v2_66")]
9589 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9590 pub fn g_tls_channel_binding_error_quark() -> glib::GQuark;
9591
9592 #[cfg(feature = "v2_66")]
9596 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9597 pub fn g_tls_channel_binding_type_get_type() -> GType;
9598
9599 pub fn g_tls_database_lookup_flags_get_type() -> GType;
9603
9604 pub fn g_tls_error_get_type() -> GType;
9608 pub fn g_tls_error_quark() -> glib::GQuark;
9609
9610 pub fn g_tls_interaction_result_get_type() -> GType;
9614
9615 #[cfg(feature = "v2_70")]
9619 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
9620 pub fn g_tls_protocol_version_get_type() -> GType;
9621
9622 pub fn g_tls_rehandshake_mode_get_type() -> GType;
9626
9627 pub fn g_unix_socket_address_type_get_type() -> GType;
9631
9632 pub fn g_zlib_compressor_format_get_type() -> GType;
9636
9637 pub fn g_app_info_create_flags_get_type() -> GType;
9641
9642 pub fn g_application_flags_get_type() -> GType;
9646
9647 pub fn g_ask_password_flags_get_type() -> GType;
9651
9652 pub fn g_bus_name_owner_flags_get_type() -> GType;
9656
9657 pub fn g_bus_name_watcher_flags_get_type() -> GType;
9661
9662 pub fn g_converter_flags_get_type() -> GType;
9666
9667 pub fn g_dbus_call_flags_get_type() -> GType;
9671
9672 pub fn g_dbus_capability_flags_get_type() -> GType;
9676
9677 pub fn g_dbus_connection_flags_get_type() -> GType;
9681
9682 pub fn g_dbus_interface_skeleton_flags_get_type() -> GType;
9686
9687 pub fn g_dbus_message_flags_get_type() -> GType;
9691
9692 pub fn g_dbus_object_manager_client_flags_get_type() -> GType;
9696
9697 pub fn g_dbus_property_info_flags_get_type() -> GType;
9701
9702 pub fn g_dbus_proxy_flags_get_type() -> GType;
9706
9707 pub fn g_dbus_send_message_flags_get_type() -> GType;
9711
9712 pub fn g_dbus_server_flags_get_type() -> GType;
9716
9717 pub fn g_dbus_signal_flags_get_type() -> GType;
9721
9722 pub fn g_dbus_subtree_flags_get_type() -> GType;
9726
9727 pub fn g_drive_start_flags_get_type() -> GType;
9731
9732 pub fn g_file_attribute_info_flags_get_type() -> GType;
9736
9737 pub fn g_file_copy_flags_get_type() -> GType;
9741
9742 pub fn g_file_create_flags_get_type() -> GType;
9746
9747 pub fn g_file_measure_flags_get_type() -> GType;
9751
9752 pub fn g_file_monitor_flags_get_type() -> GType;
9756
9757 pub fn g_file_query_info_flags_get_type() -> GType;
9761
9762 pub fn g_io_stream_splice_flags_get_type() -> GType;
9766
9767 pub fn g_mount_mount_flags_get_type() -> GType;
9771
9772 pub fn g_mount_unmount_flags_get_type() -> GType;
9776
9777 pub fn g_output_stream_splice_flags_get_type() -> GType;
9781
9782 #[cfg(feature = "v2_60")]
9786 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
9787 pub fn g_resolver_name_lookup_flags_get_type() -> GType;
9788
9789 pub fn g_resource_flags_get_type() -> GType;
9793
9794 pub fn g_resource_lookup_flags_get_type() -> GType;
9798
9799 pub fn g_settings_bind_flags_get_type() -> GType;
9803
9804 pub fn g_socket_msg_flags_get_type() -> GType;
9808
9809 pub fn g_subprocess_flags_get_type() -> GType;
9813
9814 pub fn g_test_dbus_flags_get_type() -> GType;
9818
9819 pub fn g_tls_certificate_flags_get_type() -> GType;
9823
9824 pub fn g_tls_database_verify_flags_get_type() -> GType;
9828
9829 pub fn g_tls_password_flags_get_type() -> GType;
9833
9834 pub fn g_dbus_annotation_info_get_type() -> GType;
9838 pub fn g_dbus_annotation_info_ref(info: *mut GDBusAnnotationInfo) -> *mut GDBusAnnotationInfo;
9839 pub fn g_dbus_annotation_info_unref(info: *mut GDBusAnnotationInfo);
9840 pub fn g_dbus_annotation_info_lookup(
9841 annotations: *mut *mut GDBusAnnotationInfo,
9842 name: *const c_char,
9843 ) -> *const c_char;
9844
9845 pub fn g_dbus_arg_info_get_type() -> GType;
9849 pub fn g_dbus_arg_info_ref(info: *mut GDBusArgInfo) -> *mut GDBusArgInfo;
9850 pub fn g_dbus_arg_info_unref(info: *mut GDBusArgInfo);
9851
9852 pub fn g_dbus_interface_info_get_type() -> GType;
9856 pub fn g_dbus_interface_info_cache_build(info: *mut GDBusInterfaceInfo);
9857 pub fn g_dbus_interface_info_cache_release(info: *mut GDBusInterfaceInfo);
9858 pub fn g_dbus_interface_info_generate_xml(
9859 info: *mut GDBusInterfaceInfo,
9860 indent: c_uint,
9861 string_builder: *mut glib::GString,
9862 );
9863 pub fn g_dbus_interface_info_lookup_method(
9864 info: *mut GDBusInterfaceInfo,
9865 name: *const c_char,
9866 ) -> *mut GDBusMethodInfo;
9867 pub fn g_dbus_interface_info_lookup_property(
9868 info: *mut GDBusInterfaceInfo,
9869 name: *const c_char,
9870 ) -> *mut GDBusPropertyInfo;
9871 pub fn g_dbus_interface_info_lookup_signal(
9872 info: *mut GDBusInterfaceInfo,
9873 name: *const c_char,
9874 ) -> *mut GDBusSignalInfo;
9875 pub fn g_dbus_interface_info_ref(info: *mut GDBusInterfaceInfo) -> *mut GDBusInterfaceInfo;
9876 pub fn g_dbus_interface_info_unref(info: *mut GDBusInterfaceInfo);
9877
9878 pub fn g_dbus_method_info_get_type() -> GType;
9882 pub fn g_dbus_method_info_ref(info: *mut GDBusMethodInfo) -> *mut GDBusMethodInfo;
9883 pub fn g_dbus_method_info_unref(info: *mut GDBusMethodInfo);
9884
9885 pub fn g_dbus_node_info_get_type() -> GType;
9889 pub fn g_dbus_node_info_new_for_xml(
9890 xml_data: *const c_char,
9891 error: *mut *mut glib::GError,
9892 ) -> *mut GDBusNodeInfo;
9893 pub fn g_dbus_node_info_generate_xml(
9894 info: *mut GDBusNodeInfo,
9895 indent: c_uint,
9896 string_builder: *mut glib::GString,
9897 );
9898 pub fn g_dbus_node_info_lookup_interface(
9899 info: *mut GDBusNodeInfo,
9900 name: *const c_char,
9901 ) -> *mut GDBusInterfaceInfo;
9902 pub fn g_dbus_node_info_ref(info: *mut GDBusNodeInfo) -> *mut GDBusNodeInfo;
9903 pub fn g_dbus_node_info_unref(info: *mut GDBusNodeInfo);
9904
9905 pub fn g_dbus_property_info_get_type() -> GType;
9909 pub fn g_dbus_property_info_ref(info: *mut GDBusPropertyInfo) -> *mut GDBusPropertyInfo;
9910 pub fn g_dbus_property_info_unref(info: *mut GDBusPropertyInfo);
9911
9912 pub fn g_dbus_signal_info_get_type() -> GType;
9916 pub fn g_dbus_signal_info_ref(info: *mut GDBusSignalInfo) -> *mut GDBusSignalInfo;
9917 pub fn g_dbus_signal_info_unref(info: *mut GDBusSignalInfo);
9918
9919 pub fn g_file_attribute_info_list_get_type() -> GType;
9923 pub fn g_file_attribute_info_list_new() -> *mut GFileAttributeInfoList;
9924 pub fn g_file_attribute_info_list_add(
9925 list: *mut GFileAttributeInfoList,
9926 name: *const c_char,
9927 type_: GFileAttributeType,
9928 flags: GFileAttributeInfoFlags,
9929 );
9930 pub fn g_file_attribute_info_list_dup(
9931 list: *mut GFileAttributeInfoList,
9932 ) -> *mut GFileAttributeInfoList;
9933 pub fn g_file_attribute_info_list_lookup(
9934 list: *mut GFileAttributeInfoList,
9935 name: *const c_char,
9936 ) -> *const GFileAttributeInfo;
9937 pub fn g_file_attribute_info_list_ref(
9938 list: *mut GFileAttributeInfoList,
9939 ) -> *mut GFileAttributeInfoList;
9940 pub fn g_file_attribute_info_list_unref(list: *mut GFileAttributeInfoList);
9941
9942 pub fn g_file_attribute_matcher_get_type() -> GType;
9946 pub fn g_file_attribute_matcher_new(attributes: *const c_char) -> *mut GFileAttributeMatcher;
9947 pub fn g_file_attribute_matcher_enumerate_namespace(
9948 matcher: *mut GFileAttributeMatcher,
9949 ns: *const c_char,
9950 ) -> gboolean;
9951 pub fn g_file_attribute_matcher_enumerate_next(
9952 matcher: *mut GFileAttributeMatcher,
9953 ) -> *const c_char;
9954 pub fn g_file_attribute_matcher_matches(
9955 matcher: *mut GFileAttributeMatcher,
9956 attribute: *const c_char,
9957 ) -> gboolean;
9958 pub fn g_file_attribute_matcher_matches_only(
9959 matcher: *mut GFileAttributeMatcher,
9960 attribute: *const c_char,
9961 ) -> gboolean;
9962 pub fn g_file_attribute_matcher_ref(
9963 matcher: *mut GFileAttributeMatcher,
9964 ) -> *mut GFileAttributeMatcher;
9965 pub fn g_file_attribute_matcher_subtract(
9966 matcher: *mut GFileAttributeMatcher,
9967 subtract: *mut GFileAttributeMatcher,
9968 ) -> *mut GFileAttributeMatcher;
9969 pub fn g_file_attribute_matcher_to_string(matcher: *mut GFileAttributeMatcher) -> *mut c_char;
9970 pub fn g_file_attribute_matcher_unref(matcher: *mut GFileAttributeMatcher);
9971
9972 pub fn g_io_extension_get_name(extension: *mut GIOExtension) -> *const c_char;
9976 pub fn g_io_extension_get_priority(extension: *mut GIOExtension) -> c_int;
9977 pub fn g_io_extension_get_type(extension: *mut GIOExtension) -> GType;
9978 pub fn g_io_extension_ref_class(extension: *mut GIOExtension) -> *mut gobject::GTypeClass;
9979
9980 pub fn g_io_extension_point_get_extension_by_name(
9984 extension_point: *mut GIOExtensionPoint,
9985 name: *const c_char,
9986 ) -> *mut GIOExtension;
9987 pub fn g_io_extension_point_get_extensions(
9988 extension_point: *mut GIOExtensionPoint,
9989 ) -> *mut glib::GList;
9990 pub fn g_io_extension_point_get_required_type(extension_point: *mut GIOExtensionPoint)
9991 -> GType;
9992 pub fn g_io_extension_point_set_required_type(
9993 extension_point: *mut GIOExtensionPoint,
9994 type_: GType,
9995 );
9996 pub fn g_io_extension_point_implement(
9997 extension_point_name: *const c_char,
9998 type_: GType,
9999 extension_name: *const c_char,
10000 priority: c_int,
10001 ) -> *mut GIOExtension;
10002 pub fn g_io_extension_point_lookup(name: *const c_char) -> *mut GIOExtensionPoint;
10003 pub fn g_io_extension_point_register(name: *const c_char) -> *mut GIOExtensionPoint;
10004
10005 pub fn g_io_module_scope_block(scope: *mut GIOModuleScope, basename: *const c_char);
10009 pub fn g_io_module_scope_free(scope: *mut GIOModuleScope);
10010 pub fn g_io_module_scope_new(flags: GIOModuleScopeFlags) -> *mut GIOModuleScope;
10011
10012 pub fn g_io_scheduler_job_send_to_mainloop(
10016 job: *mut GIOSchedulerJob,
10017 func: glib::GSourceFunc,
10018 user_data: gpointer,
10019 notify: glib::GDestroyNotify,
10020 ) -> gboolean;
10021 pub fn g_io_scheduler_job_send_to_mainloop_async(
10022 job: *mut GIOSchedulerJob,
10023 func: glib::GSourceFunc,
10024 user_data: gpointer,
10025 notify: glib::GDestroyNotify,
10026 );
10027
10028 pub fn g_resource_get_type() -> GType;
10032 pub fn g_resource_new_from_data(
10033 data: *mut glib::GBytes,
10034 error: *mut *mut glib::GError,
10035 ) -> *mut GResource;
10036 pub fn g_resource_enumerate_children(
10037 resource: *mut GResource,
10038 path: *const c_char,
10039 lookup_flags: GResourceLookupFlags,
10040 error: *mut *mut glib::GError,
10041 ) -> *mut *mut c_char;
10042 pub fn g_resource_get_info(
10043 resource: *mut GResource,
10044 path: *const c_char,
10045 lookup_flags: GResourceLookupFlags,
10046 size: *mut size_t,
10047 flags: *mut u32,
10048 error: *mut *mut glib::GError,
10049 ) -> gboolean;
10050 #[cfg(feature = "v2_84")]
10051 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10052 pub fn g_resource_has_children(resource: *mut GResource, path: *const c_char) -> gboolean;
10053 pub fn g_resource_lookup_data(
10054 resource: *mut GResource,
10055 path: *const c_char,
10056 lookup_flags: GResourceLookupFlags,
10057 error: *mut *mut glib::GError,
10058 ) -> *mut glib::GBytes;
10059 pub fn g_resource_open_stream(
10060 resource: *mut GResource,
10061 path: *const c_char,
10062 lookup_flags: GResourceLookupFlags,
10063 error: *mut *mut glib::GError,
10064 ) -> *mut GInputStream;
10065 pub fn g_resource_ref(resource: *mut GResource) -> *mut GResource;
10066 pub fn g_resource_unref(resource: *mut GResource);
10067 pub fn g_resource_load(
10068 filename: *const c_char,
10069 error: *mut *mut glib::GError,
10070 ) -> *mut GResource;
10071
10072 pub fn g_settings_schema_get_type() -> GType;
10076 pub fn g_settings_schema_get_id(schema: *mut GSettingsSchema) -> *const c_char;
10077 pub fn g_settings_schema_get_key(
10078 schema: *mut GSettingsSchema,
10079 name: *const c_char,
10080 ) -> *mut GSettingsSchemaKey;
10081 pub fn g_settings_schema_get_path(schema: *mut GSettingsSchema) -> *const c_char;
10082 pub fn g_settings_schema_has_key(schema: *mut GSettingsSchema, name: *const c_char)
10083 -> gboolean;
10084 pub fn g_settings_schema_list_children(schema: *mut GSettingsSchema) -> *mut *mut c_char;
10085 pub fn g_settings_schema_list_keys(schema: *mut GSettingsSchema) -> *mut *mut c_char;
10086 pub fn g_settings_schema_ref(schema: *mut GSettingsSchema) -> *mut GSettingsSchema;
10087 pub fn g_settings_schema_unref(schema: *mut GSettingsSchema);
10088
10089 pub fn g_settings_schema_key_get_type() -> GType;
10093 pub fn g_settings_schema_key_get_default_value(
10094 key: *mut GSettingsSchemaKey,
10095 ) -> *mut glib::GVariant;
10096 pub fn g_settings_schema_key_get_description(key: *mut GSettingsSchemaKey) -> *const c_char;
10097 pub fn g_settings_schema_key_get_name(key: *mut GSettingsSchemaKey) -> *const c_char;
10098 pub fn g_settings_schema_key_get_range(key: *mut GSettingsSchemaKey) -> *mut glib::GVariant;
10099 pub fn g_settings_schema_key_get_summary(key: *mut GSettingsSchemaKey) -> *const c_char;
10100 pub fn g_settings_schema_key_get_value_type(
10101 key: *mut GSettingsSchemaKey,
10102 ) -> *const glib::GVariantType;
10103 pub fn g_settings_schema_key_range_check(
10104 key: *mut GSettingsSchemaKey,
10105 value: *mut glib::GVariant,
10106 ) -> gboolean;
10107 pub fn g_settings_schema_key_ref(key: *mut GSettingsSchemaKey) -> *mut GSettingsSchemaKey;
10108 pub fn g_settings_schema_key_unref(key: *mut GSettingsSchemaKey);
10109
10110 pub fn g_settings_schema_source_get_type() -> GType;
10114 pub fn g_settings_schema_source_new_from_directory(
10115 directory: *const c_char,
10116 parent: *mut GSettingsSchemaSource,
10117 trusted: gboolean,
10118 error: *mut *mut glib::GError,
10119 ) -> *mut GSettingsSchemaSource;
10120 pub fn g_settings_schema_source_list_schemas(
10121 source: *mut GSettingsSchemaSource,
10122 recursive: gboolean,
10123 non_relocatable: *mut *mut *mut c_char,
10124 relocatable: *mut *mut *mut c_char,
10125 );
10126 pub fn g_settings_schema_source_lookup(
10127 source: *mut GSettingsSchemaSource,
10128 schema_id: *const c_char,
10129 recursive: gboolean,
10130 ) -> *mut GSettingsSchema;
10131 pub fn g_settings_schema_source_ref(
10132 source: *mut GSettingsSchemaSource,
10133 ) -> *mut GSettingsSchemaSource;
10134 pub fn g_settings_schema_source_unref(source: *mut GSettingsSchemaSource);
10135 pub fn g_settings_schema_source_get_default() -> *mut GSettingsSchemaSource;
10136
10137 pub fn g_srv_target_get_type() -> GType;
10141 pub fn g_srv_target_new(
10142 hostname: *const c_char,
10143 port: u16,
10144 priority: u16,
10145 weight: u16,
10146 ) -> *mut GSrvTarget;
10147 pub fn g_srv_target_copy(target: *mut GSrvTarget) -> *mut GSrvTarget;
10148 pub fn g_srv_target_free(target: *mut GSrvTarget);
10149 pub fn g_srv_target_get_hostname(target: *mut GSrvTarget) -> *const c_char;
10150 pub fn g_srv_target_get_port(target: *mut GSrvTarget) -> u16;
10151 pub fn g_srv_target_get_priority(target: *mut GSrvTarget) -> u16;
10152 pub fn g_srv_target_get_weight(target: *mut GSrvTarget) -> u16;
10153 pub fn g_srv_target_list_sort(targets: *mut glib::GList) -> *mut glib::GList;
10154
10155 pub fn g_static_resource_fini(static_resource: *mut GStaticResource);
10159 pub fn g_static_resource_get_resource(static_resource: *mut GStaticResource) -> *mut GResource;
10160 pub fn g_static_resource_init(static_resource: *mut GStaticResource);
10161
10162 pub fn g_unix_mount_entry_get_type() -> GType;
10166 #[cfg(feature = "v2_84")]
10167 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10168 pub fn g_unix_mount_entry_compare(
10169 mount1: *mut GUnixMountEntry,
10170 mount2: *mut GUnixMountEntry,
10171 ) -> c_int;
10172 #[cfg(feature = "v2_84")]
10173 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10174 pub fn g_unix_mount_entry_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
10175 #[cfg(feature = "v2_84")]
10176 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10177 pub fn g_unix_mount_entry_free(mount_entry: *mut GUnixMountEntry);
10178 #[cfg(feature = "v2_84")]
10179 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10180 pub fn g_unix_mount_entry_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10181 #[cfg(feature = "v2_84")]
10182 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10183 pub fn g_unix_mount_entry_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10184 #[cfg(feature = "v2_84")]
10185 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10186 pub fn g_unix_mount_entry_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10187 #[cfg(feature = "v2_84")]
10188 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10189 pub fn g_unix_mount_entry_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10190 #[cfg(feature = "v2_84")]
10191 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10192 pub fn g_unix_mount_entry_get_root_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
10193 #[cfg(feature = "v2_84")]
10194 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10195 pub fn g_unix_mount_entry_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean;
10196 #[cfg(feature = "v2_84")]
10197 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10198 pub fn g_unix_mount_entry_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
10199 #[cfg(feature = "v2_84")]
10200 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10201 pub fn g_unix_mount_entry_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char;
10202 #[cfg(feature = "v2_84")]
10203 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10204 pub fn g_unix_mount_entry_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean;
10205 #[cfg(feature = "v2_84")]
10206 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10207 pub fn g_unix_mount_entry_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
10208 #[cfg(feature = "v2_84")]
10209 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10210 pub fn g_unix_mount_entry_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean;
10211 #[cfg(feature = "v2_84")]
10212 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10213 pub fn g_unix_mount_entry_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean;
10214 #[cfg(feature = "v2_84")]
10215 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10216 pub fn g_unix_mount_entry_at(
10217 mount_path: *const c_char,
10218 time_read: *mut u64,
10219 ) -> *mut GUnixMountEntry;
10220 #[cfg(feature = "v2_84")]
10221 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10222 pub fn g_unix_mount_entry_for(
10223 file_path: *const c_char,
10224 time_read: *mut u64,
10225 ) -> *mut GUnixMountEntry;
10226
10227 pub fn g_unix_mount_point_get_type() -> GType;
10231 pub fn g_unix_mount_point_compare(
10232 mount1: *mut GUnixMountPoint,
10233 mount2: *mut GUnixMountPoint,
10234 ) -> c_int;
10235 pub fn g_unix_mount_point_copy(mount_point: *mut GUnixMountPoint) -> *mut GUnixMountPoint;
10236 pub fn g_unix_mount_point_free(mount_point: *mut GUnixMountPoint);
10237 pub fn g_unix_mount_point_get_device_path(mount_point: *mut GUnixMountPoint) -> *const c_char;
10238 pub fn g_unix_mount_point_get_fs_type(mount_point: *mut GUnixMountPoint) -> *const c_char;
10239 pub fn g_unix_mount_point_get_mount_path(mount_point: *mut GUnixMountPoint) -> *const c_char;
10240 pub fn g_unix_mount_point_get_options(mount_point: *mut GUnixMountPoint) -> *const c_char;
10241 pub fn g_unix_mount_point_guess_can_eject(mount_point: *mut GUnixMountPoint) -> gboolean;
10242 pub fn g_unix_mount_point_guess_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon;
10243 pub fn g_unix_mount_point_guess_name(mount_point: *mut GUnixMountPoint) -> *mut c_char;
10244 pub fn g_unix_mount_point_guess_symbolic_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon;
10245 pub fn g_unix_mount_point_is_loopback(mount_point: *mut GUnixMountPoint) -> gboolean;
10246 pub fn g_unix_mount_point_is_readonly(mount_point: *mut GUnixMountPoint) -> gboolean;
10247 pub fn g_unix_mount_point_is_user_mountable(mount_point: *mut GUnixMountPoint) -> gboolean;
10248 #[cfg(feature = "v2_66")]
10249 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
10250 pub fn g_unix_mount_point_at(
10251 mount_path: *const c_char,
10252 time_read: *mut u64,
10253 ) -> *mut GUnixMountPoint;
10254
10255 pub fn g_app_info_monitor_get_type() -> GType;
10259 pub fn g_app_info_monitor_get() -> *mut GAppInfoMonitor;
10260
10261 pub fn g_app_launch_context_get_type() -> GType;
10265 pub fn g_app_launch_context_new() -> *mut GAppLaunchContext;
10266 pub fn g_app_launch_context_get_display(
10267 context: *mut GAppLaunchContext,
10268 info: *mut GAppInfo,
10269 files: *mut glib::GList,
10270 ) -> *mut c_char;
10271 pub fn g_app_launch_context_get_environment(
10272 context: *mut GAppLaunchContext,
10273 ) -> *mut *mut c_char;
10274 pub fn g_app_launch_context_get_startup_notify_id(
10275 context: *mut GAppLaunchContext,
10276 info: *mut GAppInfo,
10277 files: *mut glib::GList,
10278 ) -> *mut c_char;
10279 pub fn g_app_launch_context_launch_failed(
10280 context: *mut GAppLaunchContext,
10281 startup_notify_id: *const c_char,
10282 );
10283 pub fn g_app_launch_context_setenv(
10284 context: *mut GAppLaunchContext,
10285 variable: *const c_char,
10286 value: *const c_char,
10287 );
10288 pub fn g_app_launch_context_unsetenv(context: *mut GAppLaunchContext, variable: *const c_char);
10289
10290 pub fn g_application_get_type() -> GType;
10294 pub fn g_application_new(
10295 application_id: *const c_char,
10296 flags: GApplicationFlags,
10297 ) -> *mut GApplication;
10298 pub fn g_application_get_default() -> *mut GApplication;
10299 pub fn g_application_id_is_valid(application_id: *const c_char) -> gboolean;
10300 pub fn g_application_activate(application: *mut GApplication);
10301 pub fn g_application_add_main_option(
10302 application: *mut GApplication,
10303 long_name: *const c_char,
10304 short_name: c_char,
10305 flags: glib::GOptionFlags,
10306 arg: glib::GOptionArg,
10307 description: *const c_char,
10308 arg_description: *const c_char,
10309 );
10310 pub fn g_application_add_main_option_entries(
10311 application: *mut GApplication,
10312 entries: *const glib::GOptionEntry,
10313 );
10314 pub fn g_application_add_option_group(
10315 application: *mut GApplication,
10316 group: *mut glib::GOptionGroup,
10317 );
10318 pub fn g_application_bind_busy_property(
10319 application: *mut GApplication,
10320 object: *mut gobject::GObject,
10321 property: *const c_char,
10322 );
10323 pub fn g_application_get_application_id(application: *mut GApplication) -> *const c_char;
10324 pub fn g_application_get_dbus_connection(
10325 application: *mut GApplication,
10326 ) -> *mut GDBusConnection;
10327 pub fn g_application_get_dbus_object_path(application: *mut GApplication) -> *const c_char;
10328 pub fn g_application_get_flags(application: *mut GApplication) -> GApplicationFlags;
10329 pub fn g_application_get_inactivity_timeout(application: *mut GApplication) -> c_uint;
10330 pub fn g_application_get_is_busy(application: *mut GApplication) -> gboolean;
10331 pub fn g_application_get_is_registered(application: *mut GApplication) -> gboolean;
10332 pub fn g_application_get_is_remote(application: *mut GApplication) -> gboolean;
10333 pub fn g_application_get_resource_base_path(application: *mut GApplication) -> *const c_char;
10334 #[cfg(feature = "v2_80")]
10335 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10336 pub fn g_application_get_version(application: *mut GApplication) -> *const c_char;
10337 pub fn g_application_hold(application: *mut GApplication);
10338 pub fn g_application_mark_busy(application: *mut GApplication);
10339 pub fn g_application_open(
10340 application: *mut GApplication,
10341 files: *mut *mut GFile,
10342 n_files: c_int,
10343 hint: *const c_char,
10344 );
10345 pub fn g_application_quit(application: *mut GApplication);
10346 pub fn g_application_register(
10347 application: *mut GApplication,
10348 cancellable: *mut GCancellable,
10349 error: *mut *mut glib::GError,
10350 ) -> gboolean;
10351 pub fn g_application_release(application: *mut GApplication);
10352 pub fn g_application_run(
10353 application: *mut GApplication,
10354 argc: c_int,
10355 argv: *mut *mut c_char,
10356 ) -> c_int;
10357 pub fn g_application_send_notification(
10358 application: *mut GApplication,
10359 id: *const c_char,
10360 notification: *mut GNotification,
10361 );
10362 pub fn g_application_set_action_group(
10363 application: *mut GApplication,
10364 action_group: *mut GActionGroup,
10365 );
10366 pub fn g_application_set_application_id(
10367 application: *mut GApplication,
10368 application_id: *const c_char,
10369 );
10370 pub fn g_application_set_default(application: *mut GApplication);
10371 pub fn g_application_set_flags(application: *mut GApplication, flags: GApplicationFlags);
10372 pub fn g_application_set_inactivity_timeout(
10373 application: *mut GApplication,
10374 inactivity_timeout: c_uint,
10375 );
10376 pub fn g_application_set_option_context_description(
10377 application: *mut GApplication,
10378 description: *const c_char,
10379 );
10380 pub fn g_application_set_option_context_parameter_string(
10381 application: *mut GApplication,
10382 parameter_string: *const c_char,
10383 );
10384 pub fn g_application_set_option_context_summary(
10385 application: *mut GApplication,
10386 summary: *const c_char,
10387 );
10388 pub fn g_application_set_resource_base_path(
10389 application: *mut GApplication,
10390 resource_path: *const c_char,
10391 );
10392 #[cfg(feature = "v2_80")]
10393 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10394 pub fn g_application_set_version(application: *mut GApplication, version: *const c_char);
10395 pub fn g_application_unbind_busy_property(
10396 application: *mut GApplication,
10397 object: *mut gobject::GObject,
10398 property: *const c_char,
10399 );
10400 pub fn g_application_unmark_busy(application: *mut GApplication);
10401 pub fn g_application_withdraw_notification(application: *mut GApplication, id: *const c_char);
10402
10403 pub fn g_application_command_line_get_type() -> GType;
10407 pub fn g_application_command_line_create_file_for_arg(
10408 cmdline: *mut GApplicationCommandLine,
10409 arg: *const c_char,
10410 ) -> *mut GFile;
10411 #[cfg(feature = "v2_80")]
10412 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10413 pub fn g_application_command_line_done(cmdline: *mut GApplicationCommandLine);
10414 pub fn g_application_command_line_get_arguments(
10415 cmdline: *mut GApplicationCommandLine,
10416 argc: *mut c_int,
10417 ) -> *mut *mut c_char;
10418 pub fn g_application_command_line_get_cwd(
10419 cmdline: *mut GApplicationCommandLine,
10420 ) -> *const c_char;
10421 pub fn g_application_command_line_get_environ(
10422 cmdline: *mut GApplicationCommandLine,
10423 ) -> *const *const c_char;
10424 pub fn g_application_command_line_get_exit_status(
10425 cmdline: *mut GApplicationCommandLine,
10426 ) -> c_int;
10427 pub fn g_application_command_line_get_is_remote(
10428 cmdline: *mut GApplicationCommandLine,
10429 ) -> gboolean;
10430 pub fn g_application_command_line_get_options_dict(
10431 cmdline: *mut GApplicationCommandLine,
10432 ) -> *mut glib::GVariantDict;
10433 pub fn g_application_command_line_get_platform_data(
10434 cmdline: *mut GApplicationCommandLine,
10435 ) -> *mut glib::GVariant;
10436 pub fn g_application_command_line_get_stdin(
10437 cmdline: *mut GApplicationCommandLine,
10438 ) -> *mut GInputStream;
10439 pub fn g_application_command_line_getenv(
10440 cmdline: *mut GApplicationCommandLine,
10441 name: *const c_char,
10442 ) -> *const c_char;
10443 pub fn g_application_command_line_print(
10444 cmdline: *mut GApplicationCommandLine,
10445 format: *const c_char,
10446 ...
10447 );
10448 #[cfg(feature = "v2_80")]
10449 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10450 pub fn g_application_command_line_print_literal(
10451 cmdline: *mut GApplicationCommandLine,
10452 message: *const c_char,
10453 );
10454 pub fn g_application_command_line_printerr(
10455 cmdline: *mut GApplicationCommandLine,
10456 format: *const c_char,
10457 ...
10458 );
10459 #[cfg(feature = "v2_80")]
10460 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10461 pub fn g_application_command_line_printerr_literal(
10462 cmdline: *mut GApplicationCommandLine,
10463 message: *const c_char,
10464 );
10465 pub fn g_application_command_line_set_exit_status(
10466 cmdline: *mut GApplicationCommandLine,
10467 exit_status: c_int,
10468 );
10469
10470 pub fn g_buffered_input_stream_get_type() -> GType;
10474 pub fn g_buffered_input_stream_new(base_stream: *mut GInputStream) -> *mut GInputStream;
10475 pub fn g_buffered_input_stream_new_sized(
10476 base_stream: *mut GInputStream,
10477 size: size_t,
10478 ) -> *mut GInputStream;
10479 pub fn g_buffered_input_stream_fill(
10480 stream: *mut GBufferedInputStream,
10481 count: ssize_t,
10482 cancellable: *mut GCancellable,
10483 error: *mut *mut glib::GError,
10484 ) -> ssize_t;
10485 pub fn g_buffered_input_stream_fill_async(
10486 stream: *mut GBufferedInputStream,
10487 count: ssize_t,
10488 io_priority: c_int,
10489 cancellable: *mut GCancellable,
10490 callback: GAsyncReadyCallback,
10491 user_data: gpointer,
10492 );
10493 pub fn g_buffered_input_stream_fill_finish(
10494 stream: *mut GBufferedInputStream,
10495 result: *mut GAsyncResult,
10496 error: *mut *mut glib::GError,
10497 ) -> ssize_t;
10498 pub fn g_buffered_input_stream_get_available(stream: *mut GBufferedInputStream) -> size_t;
10499 pub fn g_buffered_input_stream_get_buffer_size(stream: *mut GBufferedInputStream) -> size_t;
10500 pub fn g_buffered_input_stream_peek(
10501 stream: *mut GBufferedInputStream,
10502 buffer: *mut u8,
10503 offset: size_t,
10504 count: size_t,
10505 ) -> size_t;
10506 pub fn g_buffered_input_stream_peek_buffer(
10507 stream: *mut GBufferedInputStream,
10508 count: *mut size_t,
10509 ) -> *mut u8;
10510 pub fn g_buffered_input_stream_read_byte(
10511 stream: *mut GBufferedInputStream,
10512 cancellable: *mut GCancellable,
10513 error: *mut *mut glib::GError,
10514 ) -> c_int;
10515 pub fn g_buffered_input_stream_set_buffer_size(stream: *mut GBufferedInputStream, size: size_t);
10516
10517 pub fn g_buffered_output_stream_get_type() -> GType;
10521 pub fn g_buffered_output_stream_new(base_stream: *mut GOutputStream) -> *mut GOutputStream;
10522 pub fn g_buffered_output_stream_new_sized(
10523 base_stream: *mut GOutputStream,
10524 size: size_t,
10525 ) -> *mut GOutputStream;
10526 pub fn g_buffered_output_stream_get_auto_grow(stream: *mut GBufferedOutputStream) -> gboolean;
10527 pub fn g_buffered_output_stream_get_buffer_size(stream: *mut GBufferedOutputStream) -> size_t;
10528 pub fn g_buffered_output_stream_set_auto_grow(
10529 stream: *mut GBufferedOutputStream,
10530 auto_grow: gboolean,
10531 );
10532 pub fn g_buffered_output_stream_set_buffer_size(
10533 stream: *mut GBufferedOutputStream,
10534 size: size_t,
10535 );
10536
10537 pub fn g_bytes_icon_get_type() -> GType;
10541 pub fn g_bytes_icon_new(bytes: *mut glib::GBytes) -> *mut GBytesIcon;
10542 pub fn g_bytes_icon_get_bytes(icon: *mut GBytesIcon) -> *mut glib::GBytes;
10543
10544 pub fn g_cancellable_get_type() -> GType;
10548 pub fn g_cancellable_new() -> *mut GCancellable;
10549 pub fn g_cancellable_get_current() -> *mut GCancellable;
10550 pub fn g_cancellable_cancel(cancellable: *mut GCancellable);
10551 pub fn g_cancellable_connect(
10552 cancellable: *mut GCancellable,
10553 callback: gobject::GCallback,
10554 data: gpointer,
10555 data_destroy_func: glib::GDestroyNotify,
10556 ) -> c_ulong;
10557 pub fn g_cancellable_disconnect(cancellable: *mut GCancellable, handler_id: c_ulong);
10558 pub fn g_cancellable_get_fd(cancellable: *mut GCancellable) -> c_int;
10559 pub fn g_cancellable_is_cancelled(cancellable: *mut GCancellable) -> gboolean;
10560 pub fn g_cancellable_make_pollfd(
10561 cancellable: *mut GCancellable,
10562 pollfd: *mut glib::GPollFD,
10563 ) -> gboolean;
10564 pub fn g_cancellable_pop_current(cancellable: *mut GCancellable);
10565 pub fn g_cancellable_push_current(cancellable: *mut GCancellable);
10566 pub fn g_cancellable_release_fd(cancellable: *mut GCancellable);
10567 pub fn g_cancellable_reset(cancellable: *mut GCancellable);
10568 pub fn g_cancellable_set_error_if_cancelled(
10569 cancellable: *mut GCancellable,
10570 error: *mut *mut glib::GError,
10571 ) -> gboolean;
10572 pub fn g_cancellable_source_new(cancellable: *mut GCancellable) -> *mut glib::GSource;
10573
10574 pub fn g_charset_converter_get_type() -> GType;
10578 pub fn g_charset_converter_new(
10579 to_charset: *const c_char,
10580 from_charset: *const c_char,
10581 error: *mut *mut glib::GError,
10582 ) -> *mut GCharsetConverter;
10583 pub fn g_charset_converter_get_num_fallbacks(converter: *mut GCharsetConverter) -> c_uint;
10584 pub fn g_charset_converter_get_use_fallback(converter: *mut GCharsetConverter) -> gboolean;
10585 pub fn g_charset_converter_set_use_fallback(
10586 converter: *mut GCharsetConverter,
10587 use_fallback: gboolean,
10588 );
10589
10590 pub fn g_converter_input_stream_get_type() -> GType;
10594 pub fn g_converter_input_stream_new(
10595 base_stream: *mut GInputStream,
10596 converter: *mut GConverter,
10597 ) -> *mut GInputStream;
10598 pub fn g_converter_input_stream_get_converter(
10599 converter_stream: *mut GConverterInputStream,
10600 ) -> *mut GConverter;
10601
10602 pub fn g_converter_output_stream_get_type() -> GType;
10606 pub fn g_converter_output_stream_new(
10607 base_stream: *mut GOutputStream,
10608 converter: *mut GConverter,
10609 ) -> *mut GOutputStream;
10610 pub fn g_converter_output_stream_get_converter(
10611 converter_stream: *mut GConverterOutputStream,
10612 ) -> *mut GConverter;
10613
10614 pub fn g_credentials_get_type() -> GType;
10618 pub fn g_credentials_new() -> *mut GCredentials;
10619 pub fn g_credentials_get_native(
10620 credentials: *mut GCredentials,
10621 native_type: GCredentialsType,
10622 ) -> gpointer;
10623 #[cfg(unix)]
10624 #[cfg_attr(docsrs, doc(cfg(unix)))]
10625 pub fn g_credentials_get_unix_pid(
10626 credentials: *mut GCredentials,
10627 error: *mut *mut glib::GError,
10628 ) -> pid_t;
10629 #[cfg(unix)]
10630 #[cfg_attr(docsrs, doc(cfg(unix)))]
10631 pub fn g_credentials_get_unix_user(
10632 credentials: *mut GCredentials,
10633 error: *mut *mut glib::GError,
10634 ) -> uid_t;
10635 pub fn g_credentials_is_same_user(
10636 credentials: *mut GCredentials,
10637 other_credentials: *mut GCredentials,
10638 error: *mut *mut glib::GError,
10639 ) -> gboolean;
10640 pub fn g_credentials_set_native(
10641 credentials: *mut GCredentials,
10642 native_type: GCredentialsType,
10643 native: gpointer,
10644 );
10645 #[cfg(unix)]
10646 #[cfg_attr(docsrs, doc(cfg(unix)))]
10647 pub fn g_credentials_set_unix_user(
10648 credentials: *mut GCredentials,
10649 uid: uid_t,
10650 error: *mut *mut glib::GError,
10651 ) -> gboolean;
10652 pub fn g_credentials_to_string(credentials: *mut GCredentials) -> *mut c_char;
10653
10654 pub fn g_dbus_action_group_get_type() -> GType;
10658 pub fn g_dbus_action_group_get(
10659 connection: *mut GDBusConnection,
10660 bus_name: *const c_char,
10661 object_path: *const c_char,
10662 ) -> *mut GDBusActionGroup;
10663
10664 pub fn g_dbus_auth_observer_get_type() -> GType;
10668 pub fn g_dbus_auth_observer_new() -> *mut GDBusAuthObserver;
10669 pub fn g_dbus_auth_observer_allow_mechanism(
10670 observer: *mut GDBusAuthObserver,
10671 mechanism: *const c_char,
10672 ) -> gboolean;
10673 pub fn g_dbus_auth_observer_authorize_authenticated_peer(
10674 observer: *mut GDBusAuthObserver,
10675 stream: *mut GIOStream,
10676 credentials: *mut GCredentials,
10677 ) -> gboolean;
10678
10679 pub fn g_dbus_connection_get_type() -> GType;
10683 pub fn g_dbus_connection_new_finish(
10684 res: *mut GAsyncResult,
10685 error: *mut *mut glib::GError,
10686 ) -> *mut GDBusConnection;
10687 pub fn g_dbus_connection_new_for_address_finish(
10688 res: *mut GAsyncResult,
10689 error: *mut *mut glib::GError,
10690 ) -> *mut GDBusConnection;
10691 pub fn g_dbus_connection_new_for_address_sync(
10692 address: *const c_char,
10693 flags: GDBusConnectionFlags,
10694 observer: *mut GDBusAuthObserver,
10695 cancellable: *mut GCancellable,
10696 error: *mut *mut glib::GError,
10697 ) -> *mut GDBusConnection;
10698 pub fn g_dbus_connection_new_sync(
10699 stream: *mut GIOStream,
10700 guid: *const c_char,
10701 flags: GDBusConnectionFlags,
10702 observer: *mut GDBusAuthObserver,
10703 cancellable: *mut GCancellable,
10704 error: *mut *mut glib::GError,
10705 ) -> *mut GDBusConnection;
10706 pub fn g_dbus_connection_new(
10707 stream: *mut GIOStream,
10708 guid: *const c_char,
10709 flags: GDBusConnectionFlags,
10710 observer: *mut GDBusAuthObserver,
10711 cancellable: *mut GCancellable,
10712 callback: GAsyncReadyCallback,
10713 user_data: gpointer,
10714 );
10715 pub fn g_dbus_connection_new_for_address(
10716 address: *const c_char,
10717 flags: GDBusConnectionFlags,
10718 observer: *mut GDBusAuthObserver,
10719 cancellable: *mut GCancellable,
10720 callback: GAsyncReadyCallback,
10721 user_data: gpointer,
10722 );
10723 pub fn g_dbus_connection_add_filter(
10724 connection: *mut GDBusConnection,
10725 filter_function: GDBusMessageFilterFunction,
10726 user_data: gpointer,
10727 user_data_free_func: glib::GDestroyNotify,
10728 ) -> c_uint;
10729 pub fn g_dbus_connection_call(
10730 connection: *mut GDBusConnection,
10731 bus_name: *const c_char,
10732 object_path: *const c_char,
10733 interface_name: *const c_char,
10734 method_name: *const c_char,
10735 parameters: *mut glib::GVariant,
10736 reply_type: *const glib::GVariantType,
10737 flags: GDBusCallFlags,
10738 timeout_msec: c_int,
10739 cancellable: *mut GCancellable,
10740 callback: GAsyncReadyCallback,
10741 user_data: gpointer,
10742 );
10743 pub fn g_dbus_connection_call_finish(
10744 connection: *mut GDBusConnection,
10745 res: *mut GAsyncResult,
10746 error: *mut *mut glib::GError,
10747 ) -> *mut glib::GVariant;
10748 pub fn g_dbus_connection_call_sync(
10749 connection: *mut GDBusConnection,
10750 bus_name: *const c_char,
10751 object_path: *const c_char,
10752 interface_name: *const c_char,
10753 method_name: *const c_char,
10754 parameters: *mut glib::GVariant,
10755 reply_type: *const glib::GVariantType,
10756 flags: GDBusCallFlags,
10757 timeout_msec: c_int,
10758 cancellable: *mut GCancellable,
10759 error: *mut *mut glib::GError,
10760 ) -> *mut glib::GVariant;
10761 pub fn g_dbus_connection_call_with_unix_fd_list(
10762 connection: *mut GDBusConnection,
10763 bus_name: *const c_char,
10764 object_path: *const c_char,
10765 interface_name: *const c_char,
10766 method_name: *const c_char,
10767 parameters: *mut glib::GVariant,
10768 reply_type: *const glib::GVariantType,
10769 flags: GDBusCallFlags,
10770 timeout_msec: c_int,
10771 fd_list: *mut GUnixFDList,
10772 cancellable: *mut GCancellable,
10773 callback: GAsyncReadyCallback,
10774 user_data: gpointer,
10775 );
10776 pub fn g_dbus_connection_call_with_unix_fd_list_finish(
10777 connection: *mut GDBusConnection,
10778 out_fd_list: *mut *mut GUnixFDList,
10779 res: *mut GAsyncResult,
10780 error: *mut *mut glib::GError,
10781 ) -> *mut glib::GVariant;
10782 pub fn g_dbus_connection_call_with_unix_fd_list_sync(
10783 connection: *mut GDBusConnection,
10784 bus_name: *const c_char,
10785 object_path: *const c_char,
10786 interface_name: *const c_char,
10787 method_name: *const c_char,
10788 parameters: *mut glib::GVariant,
10789 reply_type: *const glib::GVariantType,
10790 flags: GDBusCallFlags,
10791 timeout_msec: c_int,
10792 fd_list: *mut GUnixFDList,
10793 out_fd_list: *mut *mut GUnixFDList,
10794 cancellable: *mut GCancellable,
10795 error: *mut *mut glib::GError,
10796 ) -> *mut glib::GVariant;
10797 pub fn g_dbus_connection_close(
10798 connection: *mut GDBusConnection,
10799 cancellable: *mut GCancellable,
10800 callback: GAsyncReadyCallback,
10801 user_data: gpointer,
10802 );
10803 pub fn g_dbus_connection_close_finish(
10804 connection: *mut GDBusConnection,
10805 res: *mut GAsyncResult,
10806 error: *mut *mut glib::GError,
10807 ) -> gboolean;
10808 pub fn g_dbus_connection_close_sync(
10809 connection: *mut GDBusConnection,
10810 cancellable: *mut GCancellable,
10811 error: *mut *mut glib::GError,
10812 ) -> gboolean;
10813 pub fn g_dbus_connection_emit_signal(
10814 connection: *mut GDBusConnection,
10815 destination_bus_name: *const c_char,
10816 object_path: *const c_char,
10817 interface_name: *const c_char,
10818 signal_name: *const c_char,
10819 parameters: *mut glib::GVariant,
10820 error: *mut *mut glib::GError,
10821 ) -> gboolean;
10822 pub fn g_dbus_connection_export_action_group(
10823 connection: *mut GDBusConnection,
10824 object_path: *const c_char,
10825 action_group: *mut GActionGroup,
10826 error: *mut *mut glib::GError,
10827 ) -> c_uint;
10828 pub fn g_dbus_connection_export_menu_model(
10829 connection: *mut GDBusConnection,
10830 object_path: *const c_char,
10831 menu: *mut GMenuModel,
10832 error: *mut *mut glib::GError,
10833 ) -> c_uint;
10834 pub fn g_dbus_connection_flush(
10835 connection: *mut GDBusConnection,
10836 cancellable: *mut GCancellable,
10837 callback: GAsyncReadyCallback,
10838 user_data: gpointer,
10839 );
10840 pub fn g_dbus_connection_flush_finish(
10841 connection: *mut GDBusConnection,
10842 res: *mut GAsyncResult,
10843 error: *mut *mut glib::GError,
10844 ) -> gboolean;
10845 pub fn g_dbus_connection_flush_sync(
10846 connection: *mut GDBusConnection,
10847 cancellable: *mut GCancellable,
10848 error: *mut *mut glib::GError,
10849 ) -> gboolean;
10850 pub fn g_dbus_connection_get_capabilities(
10851 connection: *mut GDBusConnection,
10852 ) -> GDBusCapabilityFlags;
10853 pub fn g_dbus_connection_get_exit_on_close(connection: *mut GDBusConnection) -> gboolean;
10854 #[cfg(feature = "v2_60")]
10855 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
10856 pub fn g_dbus_connection_get_flags(connection: *mut GDBusConnection) -> GDBusConnectionFlags;
10857 pub fn g_dbus_connection_get_guid(connection: *mut GDBusConnection) -> *const c_char;
10858 pub fn g_dbus_connection_get_last_serial(connection: *mut GDBusConnection) -> u32;
10859 pub fn g_dbus_connection_get_peer_credentials(
10860 connection: *mut GDBusConnection,
10861 ) -> *mut GCredentials;
10862 pub fn g_dbus_connection_get_stream(connection: *mut GDBusConnection) -> *mut GIOStream;
10863 pub fn g_dbus_connection_get_unique_name(connection: *mut GDBusConnection) -> *const c_char;
10864 pub fn g_dbus_connection_is_closed(connection: *mut GDBusConnection) -> gboolean;
10865 pub fn g_dbus_connection_register_object(
10866 connection: *mut GDBusConnection,
10867 object_path: *const c_char,
10868 interface_info: *mut GDBusInterfaceInfo,
10869 vtable: *const GDBusInterfaceVTable,
10870 user_data: gpointer,
10871 user_data_free_func: glib::GDestroyNotify,
10872 error: *mut *mut glib::GError,
10873 ) -> c_uint;
10874 pub fn g_dbus_connection_register_object_with_closures(
10875 connection: *mut GDBusConnection,
10876 object_path: *const c_char,
10877 interface_info: *mut GDBusInterfaceInfo,
10878 method_call_closure: *mut gobject::GClosure,
10879 get_property_closure: *mut gobject::GClosure,
10880 set_property_closure: *mut gobject::GClosure,
10881 error: *mut *mut glib::GError,
10882 ) -> c_uint;
10883 #[cfg(feature = "v2_84")]
10884 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10885 pub fn g_dbus_connection_register_object_with_closures2(
10886 connection: *mut GDBusConnection,
10887 object_path: *const c_char,
10888 interface_info: *mut GDBusInterfaceInfo,
10889 method_call_closure: *mut gobject::GClosure,
10890 get_property_closure: *mut gobject::GClosure,
10891 set_property_closure: *mut gobject::GClosure,
10892 error: *mut *mut glib::GError,
10893 ) -> c_uint;
10894 pub fn g_dbus_connection_register_subtree(
10895 connection: *mut GDBusConnection,
10896 object_path: *const c_char,
10897 vtable: *const GDBusSubtreeVTable,
10898 flags: GDBusSubtreeFlags,
10899 user_data: gpointer,
10900 user_data_free_func: glib::GDestroyNotify,
10901 error: *mut *mut glib::GError,
10902 ) -> c_uint;
10903 pub fn g_dbus_connection_remove_filter(connection: *mut GDBusConnection, filter_id: c_uint);
10904 pub fn g_dbus_connection_send_message(
10905 connection: *mut GDBusConnection,
10906 message: *mut GDBusMessage,
10907 flags: GDBusSendMessageFlags,
10908 out_serial: *mut u32,
10909 error: *mut *mut glib::GError,
10910 ) -> gboolean;
10911 pub fn g_dbus_connection_send_message_with_reply(
10912 connection: *mut GDBusConnection,
10913 message: *mut GDBusMessage,
10914 flags: GDBusSendMessageFlags,
10915 timeout_msec: c_int,
10916 out_serial: *mut u32,
10917 cancellable: *mut GCancellable,
10918 callback: GAsyncReadyCallback,
10919 user_data: gpointer,
10920 );
10921 pub fn g_dbus_connection_send_message_with_reply_finish(
10922 connection: *mut GDBusConnection,
10923 res: *mut GAsyncResult,
10924 error: *mut *mut glib::GError,
10925 ) -> *mut GDBusMessage;
10926 pub fn g_dbus_connection_send_message_with_reply_sync(
10927 connection: *mut GDBusConnection,
10928 message: *mut GDBusMessage,
10929 flags: GDBusSendMessageFlags,
10930 timeout_msec: c_int,
10931 out_serial: *mut u32,
10932 cancellable: *mut GCancellable,
10933 error: *mut *mut glib::GError,
10934 ) -> *mut GDBusMessage;
10935 pub fn g_dbus_connection_set_exit_on_close(
10936 connection: *mut GDBusConnection,
10937 exit_on_close: gboolean,
10938 );
10939 pub fn g_dbus_connection_signal_subscribe(
10940 connection: *mut GDBusConnection,
10941 sender: *const c_char,
10942 interface_name: *const c_char,
10943 member: *const c_char,
10944 object_path: *const c_char,
10945 arg0: *const c_char,
10946 flags: GDBusSignalFlags,
10947 callback: GDBusSignalCallback,
10948 user_data: gpointer,
10949 user_data_free_func: glib::GDestroyNotify,
10950 ) -> c_uint;
10951 pub fn g_dbus_connection_signal_unsubscribe(
10952 connection: *mut GDBusConnection,
10953 subscription_id: c_uint,
10954 );
10955 pub fn g_dbus_connection_start_message_processing(connection: *mut GDBusConnection);
10956 pub fn g_dbus_connection_unexport_action_group(
10957 connection: *mut GDBusConnection,
10958 export_id: c_uint,
10959 );
10960 pub fn g_dbus_connection_unexport_menu_model(
10961 connection: *mut GDBusConnection,
10962 export_id: c_uint,
10963 );
10964 pub fn g_dbus_connection_unregister_object(
10965 connection: *mut GDBusConnection,
10966 registration_id: c_uint,
10967 ) -> gboolean;
10968 pub fn g_dbus_connection_unregister_subtree(
10969 connection: *mut GDBusConnection,
10970 registration_id: c_uint,
10971 ) -> gboolean;
10972
10973 pub fn g_dbus_interface_skeleton_get_type() -> GType;
10977 pub fn g_dbus_interface_skeleton_export(
10978 interface_: *mut GDBusInterfaceSkeleton,
10979 connection: *mut GDBusConnection,
10980 object_path: *const c_char,
10981 error: *mut *mut glib::GError,
10982 ) -> gboolean;
10983 pub fn g_dbus_interface_skeleton_flush(interface_: *mut GDBusInterfaceSkeleton);
10984 pub fn g_dbus_interface_skeleton_get_connection(
10985 interface_: *mut GDBusInterfaceSkeleton,
10986 ) -> *mut GDBusConnection;
10987 pub fn g_dbus_interface_skeleton_get_connections(
10988 interface_: *mut GDBusInterfaceSkeleton,
10989 ) -> *mut glib::GList;
10990 pub fn g_dbus_interface_skeleton_get_flags(
10991 interface_: *mut GDBusInterfaceSkeleton,
10992 ) -> GDBusInterfaceSkeletonFlags;
10993 pub fn g_dbus_interface_skeleton_get_info(
10994 interface_: *mut GDBusInterfaceSkeleton,
10995 ) -> *mut GDBusInterfaceInfo;
10996 pub fn g_dbus_interface_skeleton_get_object_path(
10997 interface_: *mut GDBusInterfaceSkeleton,
10998 ) -> *const c_char;
10999 pub fn g_dbus_interface_skeleton_get_properties(
11000 interface_: *mut GDBusInterfaceSkeleton,
11001 ) -> *mut glib::GVariant;
11002 pub fn g_dbus_interface_skeleton_get_vtable(
11003 interface_: *mut GDBusInterfaceSkeleton,
11004 ) -> *mut GDBusInterfaceVTable;
11005 pub fn g_dbus_interface_skeleton_has_connection(
11006 interface_: *mut GDBusInterfaceSkeleton,
11007 connection: *mut GDBusConnection,
11008 ) -> gboolean;
11009 pub fn g_dbus_interface_skeleton_set_flags(
11010 interface_: *mut GDBusInterfaceSkeleton,
11011 flags: GDBusInterfaceSkeletonFlags,
11012 );
11013 pub fn g_dbus_interface_skeleton_unexport(interface_: *mut GDBusInterfaceSkeleton);
11014 pub fn g_dbus_interface_skeleton_unexport_from_connection(
11015 interface_: *mut GDBusInterfaceSkeleton,
11016 connection: *mut GDBusConnection,
11017 );
11018
11019 pub fn g_dbus_menu_model_get_type() -> GType;
11023 pub fn g_dbus_menu_model_get(
11024 connection: *mut GDBusConnection,
11025 bus_name: *const c_char,
11026 object_path: *const c_char,
11027 ) -> *mut GDBusMenuModel;
11028
11029 pub fn g_dbus_message_get_type() -> GType;
11033 pub fn g_dbus_message_new() -> *mut GDBusMessage;
11034 pub fn g_dbus_message_new_from_blob(
11035 blob: *mut u8,
11036 blob_len: size_t,
11037 capabilities: GDBusCapabilityFlags,
11038 error: *mut *mut glib::GError,
11039 ) -> *mut GDBusMessage;
11040 pub fn g_dbus_message_new_method_call(
11041 name: *const c_char,
11042 path: *const c_char,
11043 interface_: *const c_char,
11044 method: *const c_char,
11045 ) -> *mut GDBusMessage;
11046 pub fn g_dbus_message_new_signal(
11047 path: *const c_char,
11048 interface_: *const c_char,
11049 signal: *const c_char,
11050 ) -> *mut GDBusMessage;
11051 pub fn g_dbus_message_bytes_needed(
11052 blob: *mut u8,
11053 blob_len: size_t,
11054 error: *mut *mut glib::GError,
11055 ) -> ssize_t;
11056 pub fn g_dbus_message_copy(
11057 message: *mut GDBusMessage,
11058 error: *mut *mut glib::GError,
11059 ) -> *mut GDBusMessage;
11060 pub fn g_dbus_message_get_arg0(message: *mut GDBusMessage) -> *const c_char;
11061 #[cfg(feature = "v2_80")]
11062 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
11063 pub fn g_dbus_message_get_arg0_path(message: *mut GDBusMessage) -> *const c_char;
11064 pub fn g_dbus_message_get_body(message: *mut GDBusMessage) -> *mut glib::GVariant;
11065 pub fn g_dbus_message_get_byte_order(message: *mut GDBusMessage) -> GDBusMessageByteOrder;
11066 pub fn g_dbus_message_get_destination(message: *mut GDBusMessage) -> *const c_char;
11067 pub fn g_dbus_message_get_error_name(message: *mut GDBusMessage) -> *const c_char;
11068 pub fn g_dbus_message_get_flags(message: *mut GDBusMessage) -> GDBusMessageFlags;
11069 pub fn g_dbus_message_get_header(
11070 message: *mut GDBusMessage,
11071 header_field: GDBusMessageHeaderField,
11072 ) -> *mut glib::GVariant;
11073 pub fn g_dbus_message_get_header_fields(message: *mut GDBusMessage) -> *mut u8;
11074 pub fn g_dbus_message_get_interface(message: *mut GDBusMessage) -> *const c_char;
11075 pub fn g_dbus_message_get_locked(message: *mut GDBusMessage) -> gboolean;
11076 pub fn g_dbus_message_get_member(message: *mut GDBusMessage) -> *const c_char;
11077 pub fn g_dbus_message_get_message_type(message: *mut GDBusMessage) -> GDBusMessageType;
11078 pub fn g_dbus_message_get_num_unix_fds(message: *mut GDBusMessage) -> u32;
11079 pub fn g_dbus_message_get_path(message: *mut GDBusMessage) -> *const c_char;
11080 pub fn g_dbus_message_get_reply_serial(message: *mut GDBusMessage) -> u32;
11081 pub fn g_dbus_message_get_sender(message: *mut GDBusMessage) -> *const c_char;
11082 pub fn g_dbus_message_get_serial(message: *mut GDBusMessage) -> u32;
11083 pub fn g_dbus_message_get_signature(message: *mut GDBusMessage) -> *const c_char;
11084 pub fn g_dbus_message_get_unix_fd_list(message: *mut GDBusMessage) -> *mut GUnixFDList;
11085 pub fn g_dbus_message_lock(message: *mut GDBusMessage);
11086 pub fn g_dbus_message_new_method_error(
11087 method_call_message: *mut GDBusMessage,
11088 error_name: *const c_char,
11089 error_message_format: *const c_char,
11090 ...
11091 ) -> *mut GDBusMessage;
11092 pub fn g_dbus_message_new_method_error_literal(
11093 method_call_message: *mut GDBusMessage,
11094 error_name: *const c_char,
11095 error_message: *const c_char,
11096 ) -> *mut GDBusMessage;
11097 pub fn g_dbus_message_new_method_reply(
11099 method_call_message: *mut GDBusMessage,
11100 ) -> *mut GDBusMessage;
11101 pub fn g_dbus_message_print(message: *mut GDBusMessage, indent: c_uint) -> *mut c_char;
11102 pub fn g_dbus_message_set_body(message: *mut GDBusMessage, body: *mut glib::GVariant);
11103 pub fn g_dbus_message_set_byte_order(
11104 message: *mut GDBusMessage,
11105 byte_order: GDBusMessageByteOrder,
11106 );
11107 pub fn g_dbus_message_set_destination(message: *mut GDBusMessage, value: *const c_char);
11108 pub fn g_dbus_message_set_error_name(message: *mut GDBusMessage, value: *const c_char);
11109 pub fn g_dbus_message_set_flags(message: *mut GDBusMessage, flags: GDBusMessageFlags);
11110 pub fn g_dbus_message_set_header(
11111 message: *mut GDBusMessage,
11112 header_field: GDBusMessageHeaderField,
11113 value: *mut glib::GVariant,
11114 );
11115 pub fn g_dbus_message_set_interface(message: *mut GDBusMessage, value: *const c_char);
11116 pub fn g_dbus_message_set_member(message: *mut GDBusMessage, value: *const c_char);
11117 pub fn g_dbus_message_set_message_type(message: *mut GDBusMessage, type_: GDBusMessageType);
11118 pub fn g_dbus_message_set_num_unix_fds(message: *mut GDBusMessage, value: u32);
11119 pub fn g_dbus_message_set_path(message: *mut GDBusMessage, value: *const c_char);
11120 pub fn g_dbus_message_set_reply_serial(message: *mut GDBusMessage, value: u32);
11121 pub fn g_dbus_message_set_sender(message: *mut GDBusMessage, value: *const c_char);
11122 pub fn g_dbus_message_set_serial(message: *mut GDBusMessage, serial: u32);
11123 pub fn g_dbus_message_set_signature(message: *mut GDBusMessage, value: *const c_char);
11124 pub fn g_dbus_message_set_unix_fd_list(message: *mut GDBusMessage, fd_list: *mut GUnixFDList);
11125 pub fn g_dbus_message_to_blob(
11126 message: *mut GDBusMessage,
11127 out_size: *mut size_t,
11128 capabilities: GDBusCapabilityFlags,
11129 error: *mut *mut glib::GError,
11130 ) -> *mut u8;
11131 pub fn g_dbus_message_to_gerror(
11132 message: *mut GDBusMessage,
11133 error: *mut *mut glib::GError,
11134 ) -> gboolean;
11135
11136 pub fn g_dbus_method_invocation_get_type() -> GType;
11140 pub fn g_dbus_method_invocation_get_connection(
11141 invocation: *mut GDBusMethodInvocation,
11142 ) -> *mut GDBusConnection;
11143 pub fn g_dbus_method_invocation_get_interface_name(
11144 invocation: *mut GDBusMethodInvocation,
11145 ) -> *const c_char;
11146 pub fn g_dbus_method_invocation_get_message(
11147 invocation: *mut GDBusMethodInvocation,
11148 ) -> *mut GDBusMessage;
11149 pub fn g_dbus_method_invocation_get_method_info(
11150 invocation: *mut GDBusMethodInvocation,
11151 ) -> *const GDBusMethodInfo;
11152 pub fn g_dbus_method_invocation_get_method_name(
11153 invocation: *mut GDBusMethodInvocation,
11154 ) -> *const c_char;
11155 pub fn g_dbus_method_invocation_get_object_path(
11156 invocation: *mut GDBusMethodInvocation,
11157 ) -> *const c_char;
11158 pub fn g_dbus_method_invocation_get_parameters(
11159 invocation: *mut GDBusMethodInvocation,
11160 ) -> *mut glib::GVariant;
11161 pub fn g_dbus_method_invocation_get_property_info(
11162 invocation: *mut GDBusMethodInvocation,
11163 ) -> *const GDBusPropertyInfo;
11164 pub fn g_dbus_method_invocation_get_sender(
11165 invocation: *mut GDBusMethodInvocation,
11166 ) -> *const c_char;
11167 pub fn g_dbus_method_invocation_get_user_data(
11168 invocation: *mut GDBusMethodInvocation,
11169 ) -> gpointer;
11170 pub fn g_dbus_method_invocation_return_dbus_error(
11171 invocation: *mut GDBusMethodInvocation,
11172 error_name: *const c_char,
11173 error_message: *const c_char,
11174 );
11175 pub fn g_dbus_method_invocation_return_error(
11176 invocation: *mut GDBusMethodInvocation,
11177 domain: glib::GQuark,
11178 code: c_int,
11179 format: *const c_char,
11180 ...
11181 );
11182 pub fn g_dbus_method_invocation_return_error_literal(
11183 invocation: *mut GDBusMethodInvocation,
11184 domain: glib::GQuark,
11185 code: c_int,
11186 message: *const c_char,
11187 );
11188 pub fn g_dbus_method_invocation_return_gerror(
11190 invocation: *mut GDBusMethodInvocation,
11191 error: *const glib::GError,
11192 );
11193 pub fn g_dbus_method_invocation_return_value(
11194 invocation: *mut GDBusMethodInvocation,
11195 parameters: *mut glib::GVariant,
11196 );
11197 pub fn g_dbus_method_invocation_return_value_with_unix_fd_list(
11198 invocation: *mut GDBusMethodInvocation,
11199 parameters: *mut glib::GVariant,
11200 fd_list: *mut GUnixFDList,
11201 );
11202 pub fn g_dbus_method_invocation_take_error(
11203 invocation: *mut GDBusMethodInvocation,
11204 error: *mut glib::GError,
11205 );
11206
11207 pub fn g_dbus_object_manager_client_get_type() -> GType;
11211 pub fn g_dbus_object_manager_client_new_finish(
11212 res: *mut GAsyncResult,
11213 error: *mut *mut glib::GError,
11214 ) -> *mut GDBusObjectManagerClient;
11215 pub fn g_dbus_object_manager_client_new_for_bus_finish(
11216 res: *mut GAsyncResult,
11217 error: *mut *mut glib::GError,
11218 ) -> *mut GDBusObjectManagerClient;
11219 pub fn g_dbus_object_manager_client_new_for_bus_sync(
11220 bus_type: GBusType,
11221 flags: GDBusObjectManagerClientFlags,
11222 name: *const c_char,
11223 object_path: *const c_char,
11224 get_proxy_type_func: GDBusProxyTypeFunc,
11225 get_proxy_type_user_data: gpointer,
11226 get_proxy_type_destroy_notify: glib::GDestroyNotify,
11227 cancellable: *mut GCancellable,
11228 error: *mut *mut glib::GError,
11229 ) -> *mut GDBusObjectManagerClient;
11230 pub fn g_dbus_object_manager_client_new_sync(
11231 connection: *mut GDBusConnection,
11232 flags: GDBusObjectManagerClientFlags,
11233 name: *const c_char,
11234 object_path: *const c_char,
11235 get_proxy_type_func: GDBusProxyTypeFunc,
11236 get_proxy_type_user_data: gpointer,
11237 get_proxy_type_destroy_notify: glib::GDestroyNotify,
11238 cancellable: *mut GCancellable,
11239 error: *mut *mut glib::GError,
11240 ) -> *mut GDBusObjectManagerClient;
11241 pub fn g_dbus_object_manager_client_new(
11242 connection: *mut GDBusConnection,
11243 flags: GDBusObjectManagerClientFlags,
11244 name: *const c_char,
11245 object_path: *const c_char,
11246 get_proxy_type_func: GDBusProxyTypeFunc,
11247 get_proxy_type_user_data: gpointer,
11248 get_proxy_type_destroy_notify: glib::GDestroyNotify,
11249 cancellable: *mut GCancellable,
11250 callback: GAsyncReadyCallback,
11251 user_data: gpointer,
11252 );
11253 pub fn g_dbus_object_manager_client_new_for_bus(
11254 bus_type: GBusType,
11255 flags: GDBusObjectManagerClientFlags,
11256 name: *const c_char,
11257 object_path: *const c_char,
11258 get_proxy_type_func: GDBusProxyTypeFunc,
11259 get_proxy_type_user_data: gpointer,
11260 get_proxy_type_destroy_notify: glib::GDestroyNotify,
11261 cancellable: *mut GCancellable,
11262 callback: GAsyncReadyCallback,
11263 user_data: gpointer,
11264 );
11265 pub fn g_dbus_object_manager_client_get_connection(
11266 manager: *mut GDBusObjectManagerClient,
11267 ) -> *mut GDBusConnection;
11268 pub fn g_dbus_object_manager_client_get_flags(
11269 manager: *mut GDBusObjectManagerClient,
11270 ) -> GDBusObjectManagerClientFlags;
11271 pub fn g_dbus_object_manager_client_get_name(
11272 manager: *mut GDBusObjectManagerClient,
11273 ) -> *const c_char;
11274 pub fn g_dbus_object_manager_client_get_name_owner(
11275 manager: *mut GDBusObjectManagerClient,
11276 ) -> *mut c_char;
11277
11278 pub fn g_dbus_object_manager_server_get_type() -> GType;
11282 pub fn g_dbus_object_manager_server_new(
11283 object_path: *const c_char,
11284 ) -> *mut GDBusObjectManagerServer;
11285 pub fn g_dbus_object_manager_server_export(
11286 manager: *mut GDBusObjectManagerServer,
11287 object: *mut GDBusObjectSkeleton,
11288 );
11289 pub fn g_dbus_object_manager_server_export_uniquely(
11290 manager: *mut GDBusObjectManagerServer,
11291 object: *mut GDBusObjectSkeleton,
11292 );
11293 pub fn g_dbus_object_manager_server_get_connection(
11294 manager: *mut GDBusObjectManagerServer,
11295 ) -> *mut GDBusConnection;
11296 pub fn g_dbus_object_manager_server_is_exported(
11297 manager: *mut GDBusObjectManagerServer,
11298 object: *mut GDBusObjectSkeleton,
11299 ) -> gboolean;
11300 pub fn g_dbus_object_manager_server_set_connection(
11301 manager: *mut GDBusObjectManagerServer,
11302 connection: *mut GDBusConnection,
11303 );
11304 pub fn g_dbus_object_manager_server_unexport(
11305 manager: *mut GDBusObjectManagerServer,
11306 object_path: *const c_char,
11307 ) -> gboolean;
11308
11309 pub fn g_dbus_object_proxy_get_type() -> GType;
11313 pub fn g_dbus_object_proxy_new(
11314 connection: *mut GDBusConnection,
11315 object_path: *const c_char,
11316 ) -> *mut GDBusObjectProxy;
11317 pub fn g_dbus_object_proxy_get_connection(proxy: *mut GDBusObjectProxy)
11318 -> *mut GDBusConnection;
11319
11320 pub fn g_dbus_object_skeleton_get_type() -> GType;
11324 pub fn g_dbus_object_skeleton_new(object_path: *const c_char) -> *mut GDBusObjectSkeleton;
11325 pub fn g_dbus_object_skeleton_add_interface(
11326 object: *mut GDBusObjectSkeleton,
11327 interface_: *mut GDBusInterfaceSkeleton,
11328 );
11329 pub fn g_dbus_object_skeleton_flush(object: *mut GDBusObjectSkeleton);
11330 pub fn g_dbus_object_skeleton_remove_interface(
11331 object: *mut GDBusObjectSkeleton,
11332 interface_: *mut GDBusInterfaceSkeleton,
11333 );
11334 pub fn g_dbus_object_skeleton_remove_interface_by_name(
11335 object: *mut GDBusObjectSkeleton,
11336 interface_name: *const c_char,
11337 );
11338 pub fn g_dbus_object_skeleton_set_object_path(
11339 object: *mut GDBusObjectSkeleton,
11340 object_path: *const c_char,
11341 );
11342
11343 pub fn g_dbus_proxy_get_type() -> GType;
11347 pub fn g_dbus_proxy_new_finish(
11348 res: *mut GAsyncResult,
11349 error: *mut *mut glib::GError,
11350 ) -> *mut GDBusProxy;
11351 pub fn g_dbus_proxy_new_for_bus_finish(
11352 res: *mut GAsyncResult,
11353 error: *mut *mut glib::GError,
11354 ) -> *mut GDBusProxy;
11355 pub fn g_dbus_proxy_new_for_bus_sync(
11356 bus_type: GBusType,
11357 flags: GDBusProxyFlags,
11358 info: *mut GDBusInterfaceInfo,
11359 name: *const c_char,
11360 object_path: *const c_char,
11361 interface_name: *const c_char,
11362 cancellable: *mut GCancellable,
11363 error: *mut *mut glib::GError,
11364 ) -> *mut GDBusProxy;
11365 pub fn g_dbus_proxy_new_sync(
11366 connection: *mut GDBusConnection,
11367 flags: GDBusProxyFlags,
11368 info: *mut GDBusInterfaceInfo,
11369 name: *const c_char,
11370 object_path: *const c_char,
11371 interface_name: *const c_char,
11372 cancellable: *mut GCancellable,
11373 error: *mut *mut glib::GError,
11374 ) -> *mut GDBusProxy;
11375 pub fn g_dbus_proxy_new(
11376 connection: *mut GDBusConnection,
11377 flags: GDBusProxyFlags,
11378 info: *mut GDBusInterfaceInfo,
11379 name: *const c_char,
11380 object_path: *const c_char,
11381 interface_name: *const c_char,
11382 cancellable: *mut GCancellable,
11383 callback: GAsyncReadyCallback,
11384 user_data: gpointer,
11385 );
11386 pub fn g_dbus_proxy_new_for_bus(
11387 bus_type: GBusType,
11388 flags: GDBusProxyFlags,
11389 info: *mut GDBusInterfaceInfo,
11390 name: *const c_char,
11391 object_path: *const c_char,
11392 interface_name: *const c_char,
11393 cancellable: *mut GCancellable,
11394 callback: GAsyncReadyCallback,
11395 user_data: gpointer,
11396 );
11397 pub fn g_dbus_proxy_call(
11398 proxy: *mut GDBusProxy,
11399 method_name: *const c_char,
11400 parameters: *mut glib::GVariant,
11401 flags: GDBusCallFlags,
11402 timeout_msec: c_int,
11403 cancellable: *mut GCancellable,
11404 callback: GAsyncReadyCallback,
11405 user_data: gpointer,
11406 );
11407 pub fn g_dbus_proxy_call_finish(
11408 proxy: *mut GDBusProxy,
11409 res: *mut GAsyncResult,
11410 error: *mut *mut glib::GError,
11411 ) -> *mut glib::GVariant;
11412 pub fn g_dbus_proxy_call_sync(
11413 proxy: *mut GDBusProxy,
11414 method_name: *const c_char,
11415 parameters: *mut glib::GVariant,
11416 flags: GDBusCallFlags,
11417 timeout_msec: c_int,
11418 cancellable: *mut GCancellable,
11419 error: *mut *mut glib::GError,
11420 ) -> *mut glib::GVariant;
11421 pub fn g_dbus_proxy_call_with_unix_fd_list(
11422 proxy: *mut GDBusProxy,
11423 method_name: *const c_char,
11424 parameters: *mut glib::GVariant,
11425 flags: GDBusCallFlags,
11426 timeout_msec: c_int,
11427 fd_list: *mut GUnixFDList,
11428 cancellable: *mut GCancellable,
11429 callback: GAsyncReadyCallback,
11430 user_data: gpointer,
11431 );
11432 pub fn g_dbus_proxy_call_with_unix_fd_list_finish(
11433 proxy: *mut GDBusProxy,
11434 out_fd_list: *mut *mut GUnixFDList,
11435 res: *mut GAsyncResult,
11436 error: *mut *mut glib::GError,
11437 ) -> *mut glib::GVariant;
11438 pub fn g_dbus_proxy_call_with_unix_fd_list_sync(
11439 proxy: *mut GDBusProxy,
11440 method_name: *const c_char,
11441 parameters: *mut glib::GVariant,
11442 flags: GDBusCallFlags,
11443 timeout_msec: c_int,
11444 fd_list: *mut GUnixFDList,
11445 out_fd_list: *mut *mut GUnixFDList,
11446 cancellable: *mut GCancellable,
11447 error: *mut *mut glib::GError,
11448 ) -> *mut glib::GVariant;
11449 pub fn g_dbus_proxy_get_cached_property(
11450 proxy: *mut GDBusProxy,
11451 property_name: *const c_char,
11452 ) -> *mut glib::GVariant;
11453 pub fn g_dbus_proxy_get_cached_property_names(proxy: *mut GDBusProxy) -> *mut *mut c_char;
11454 pub fn g_dbus_proxy_get_connection(proxy: *mut GDBusProxy) -> *mut GDBusConnection;
11455 pub fn g_dbus_proxy_get_default_timeout(proxy: *mut GDBusProxy) -> c_int;
11456 pub fn g_dbus_proxy_get_flags(proxy: *mut GDBusProxy) -> GDBusProxyFlags;
11457 pub fn g_dbus_proxy_get_interface_info(proxy: *mut GDBusProxy) -> *mut GDBusInterfaceInfo;
11458 pub fn g_dbus_proxy_get_interface_name(proxy: *mut GDBusProxy) -> *const c_char;
11459 pub fn g_dbus_proxy_get_name(proxy: *mut GDBusProxy) -> *const c_char;
11460 pub fn g_dbus_proxy_get_name_owner(proxy: *mut GDBusProxy) -> *mut c_char;
11461 pub fn g_dbus_proxy_get_object_path(proxy: *mut GDBusProxy) -> *const c_char;
11462 pub fn g_dbus_proxy_set_cached_property(
11463 proxy: *mut GDBusProxy,
11464 property_name: *const c_char,
11465 value: *mut glib::GVariant,
11466 );
11467 pub fn g_dbus_proxy_set_default_timeout(proxy: *mut GDBusProxy, timeout_msec: c_int);
11468 pub fn g_dbus_proxy_set_interface_info(proxy: *mut GDBusProxy, info: *mut GDBusInterfaceInfo);
11469
11470 pub fn g_dbus_server_get_type() -> GType;
11474 pub fn g_dbus_server_new_sync(
11475 address: *const c_char,
11476 flags: GDBusServerFlags,
11477 guid: *const c_char,
11478 observer: *mut GDBusAuthObserver,
11479 cancellable: *mut GCancellable,
11480 error: *mut *mut glib::GError,
11481 ) -> *mut GDBusServer;
11482 pub fn g_dbus_server_get_client_address(server: *mut GDBusServer) -> *const c_char;
11483 pub fn g_dbus_server_get_flags(server: *mut GDBusServer) -> GDBusServerFlags;
11484 pub fn g_dbus_server_get_guid(server: *mut GDBusServer) -> *const c_char;
11485 pub fn g_dbus_server_is_active(server: *mut GDBusServer) -> gboolean;
11486 pub fn g_dbus_server_start(server: *mut GDBusServer);
11487 pub fn g_dbus_server_stop(server: *mut GDBusServer);
11488
11489 pub fn g_data_input_stream_get_type() -> GType;
11493 pub fn g_data_input_stream_new(base_stream: *mut GInputStream) -> *mut GDataInputStream;
11494 pub fn g_data_input_stream_get_byte_order(
11495 stream: *mut GDataInputStream,
11496 ) -> GDataStreamByteOrder;
11497 pub fn g_data_input_stream_get_newline_type(
11498 stream: *mut GDataInputStream,
11499 ) -> GDataStreamNewlineType;
11500 pub fn g_data_input_stream_read_byte(
11501 stream: *mut GDataInputStream,
11502 cancellable: *mut GCancellable,
11503 error: *mut *mut glib::GError,
11504 ) -> c_uchar;
11505 pub fn g_data_input_stream_read_int16(
11506 stream: *mut GDataInputStream,
11507 cancellable: *mut GCancellable,
11508 error: *mut *mut glib::GError,
11509 ) -> i16;
11510 pub fn g_data_input_stream_read_int32(
11511 stream: *mut GDataInputStream,
11512 cancellable: *mut GCancellable,
11513 error: *mut *mut glib::GError,
11514 ) -> i32;
11515 pub fn g_data_input_stream_read_int64(
11516 stream: *mut GDataInputStream,
11517 cancellable: *mut GCancellable,
11518 error: *mut *mut glib::GError,
11519 ) -> i64;
11520 pub fn g_data_input_stream_read_line(
11521 stream: *mut GDataInputStream,
11522 length: *mut size_t,
11523 cancellable: *mut GCancellable,
11524 error: *mut *mut glib::GError,
11525 ) -> *mut u8;
11526 pub fn g_data_input_stream_read_line_async(
11527 stream: *mut GDataInputStream,
11528 io_priority: c_int,
11529 cancellable: *mut GCancellable,
11530 callback: GAsyncReadyCallback,
11531 user_data: gpointer,
11532 );
11533 pub fn g_data_input_stream_read_line_finish(
11534 stream: *mut GDataInputStream,
11535 result: *mut GAsyncResult,
11536 length: *mut size_t,
11537 error: *mut *mut glib::GError,
11538 ) -> *mut u8;
11539 pub fn g_data_input_stream_read_line_finish_utf8(
11540 stream: *mut GDataInputStream,
11541 result: *mut GAsyncResult,
11542 length: *mut size_t,
11543 error: *mut *mut glib::GError,
11544 ) -> *mut c_char;
11545 pub fn g_data_input_stream_read_line_utf8(
11546 stream: *mut GDataInputStream,
11547 length: *mut size_t,
11548 cancellable: *mut GCancellable,
11549 error: *mut *mut glib::GError,
11550 ) -> *mut c_char;
11551 pub fn g_data_input_stream_read_uint16(
11552 stream: *mut GDataInputStream,
11553 cancellable: *mut GCancellable,
11554 error: *mut *mut glib::GError,
11555 ) -> u16;
11556 pub fn g_data_input_stream_read_uint32(
11557 stream: *mut GDataInputStream,
11558 cancellable: *mut GCancellable,
11559 error: *mut *mut glib::GError,
11560 ) -> u32;
11561 pub fn g_data_input_stream_read_uint64(
11562 stream: *mut GDataInputStream,
11563 cancellable: *mut GCancellable,
11564 error: *mut *mut glib::GError,
11565 ) -> u64;
11566 pub fn g_data_input_stream_read_until(
11567 stream: *mut GDataInputStream,
11568 stop_chars: *const c_char,
11569 length: *mut size_t,
11570 cancellable: *mut GCancellable,
11571 error: *mut *mut glib::GError,
11572 ) -> *mut c_char;
11573 pub fn g_data_input_stream_read_until_async(
11574 stream: *mut GDataInputStream,
11575 stop_chars: *const c_char,
11576 io_priority: c_int,
11577 cancellable: *mut GCancellable,
11578 callback: GAsyncReadyCallback,
11579 user_data: gpointer,
11580 );
11581 pub fn g_data_input_stream_read_until_finish(
11582 stream: *mut GDataInputStream,
11583 result: *mut GAsyncResult,
11584 length: *mut size_t,
11585 error: *mut *mut glib::GError,
11586 ) -> *mut c_char;
11587 pub fn g_data_input_stream_read_upto(
11588 stream: *mut GDataInputStream,
11589 stop_chars: *const c_char,
11590 stop_chars_len: ssize_t,
11591 length: *mut size_t,
11592 cancellable: *mut GCancellable,
11593 error: *mut *mut glib::GError,
11594 ) -> *mut c_char;
11595 pub fn g_data_input_stream_read_upto_async(
11596 stream: *mut GDataInputStream,
11597 stop_chars: *const c_char,
11598 stop_chars_len: ssize_t,
11599 io_priority: c_int,
11600 cancellable: *mut GCancellable,
11601 callback: GAsyncReadyCallback,
11602 user_data: gpointer,
11603 );
11604 pub fn g_data_input_stream_read_upto_finish(
11605 stream: *mut GDataInputStream,
11606 result: *mut GAsyncResult,
11607 length: *mut size_t,
11608 error: *mut *mut glib::GError,
11609 ) -> *mut c_char;
11610 pub fn g_data_input_stream_set_byte_order(
11611 stream: *mut GDataInputStream,
11612 order: GDataStreamByteOrder,
11613 );
11614 pub fn g_data_input_stream_set_newline_type(
11615 stream: *mut GDataInputStream,
11616 type_: GDataStreamNewlineType,
11617 );
11618
11619 pub fn g_data_output_stream_get_type() -> GType;
11623 pub fn g_data_output_stream_new(base_stream: *mut GOutputStream) -> *mut GDataOutputStream;
11624 pub fn g_data_output_stream_get_byte_order(
11625 stream: *mut GDataOutputStream,
11626 ) -> GDataStreamByteOrder;
11627 pub fn g_data_output_stream_put_byte(
11628 stream: *mut GDataOutputStream,
11629 data: c_uchar,
11630 cancellable: *mut GCancellable,
11631 error: *mut *mut glib::GError,
11632 ) -> gboolean;
11633 pub fn g_data_output_stream_put_int16(
11634 stream: *mut GDataOutputStream,
11635 data: i16,
11636 cancellable: *mut GCancellable,
11637 error: *mut *mut glib::GError,
11638 ) -> gboolean;
11639 pub fn g_data_output_stream_put_int32(
11640 stream: *mut GDataOutputStream,
11641 data: i32,
11642 cancellable: *mut GCancellable,
11643 error: *mut *mut glib::GError,
11644 ) -> gboolean;
11645 pub fn g_data_output_stream_put_int64(
11646 stream: *mut GDataOutputStream,
11647 data: i64,
11648 cancellable: *mut GCancellable,
11649 error: *mut *mut glib::GError,
11650 ) -> gboolean;
11651 pub fn g_data_output_stream_put_string(
11652 stream: *mut GDataOutputStream,
11653 str: *const c_char,
11654 cancellable: *mut GCancellable,
11655 error: *mut *mut glib::GError,
11656 ) -> gboolean;
11657 pub fn g_data_output_stream_put_uint16(
11658 stream: *mut GDataOutputStream,
11659 data: u16,
11660 cancellable: *mut GCancellable,
11661 error: *mut *mut glib::GError,
11662 ) -> gboolean;
11663 pub fn g_data_output_stream_put_uint32(
11664 stream: *mut GDataOutputStream,
11665 data: u32,
11666 cancellable: *mut GCancellable,
11667 error: *mut *mut glib::GError,
11668 ) -> gboolean;
11669 pub fn g_data_output_stream_put_uint64(
11670 stream: *mut GDataOutputStream,
11671 data: u64,
11672 cancellable: *mut GCancellable,
11673 error: *mut *mut glib::GError,
11674 ) -> gboolean;
11675 pub fn g_data_output_stream_set_byte_order(
11676 stream: *mut GDataOutputStream,
11677 order: GDataStreamByteOrder,
11678 );
11679
11680 #[cfg(feature = "v2_72")]
11684 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11685 pub fn g_debug_controller_dbus_get_type() -> GType;
11686 #[cfg(feature = "v2_72")]
11687 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11688 pub fn g_debug_controller_dbus_new(
11689 connection: *mut GDBusConnection,
11690 cancellable: *mut GCancellable,
11691 error: *mut *mut glib::GError,
11692 ) -> *mut GDebugControllerDBus;
11693 #[cfg(feature = "v2_72")]
11694 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11695 pub fn g_debug_controller_dbus_stop(self_: *mut GDebugControllerDBus);
11696
11697 pub fn g_desktop_app_info_get_type() -> GType;
11701 pub fn g_desktop_app_info_new(desktop_id: *const c_char) -> *mut GDesktopAppInfo;
11702 pub fn g_desktop_app_info_new_from_filename(filename: *const c_char) -> *mut GDesktopAppInfo;
11703 pub fn g_desktop_app_info_new_from_keyfile(
11704 key_file: *mut glib::GKeyFile,
11705 ) -> *mut GDesktopAppInfo;
11706 pub fn g_desktop_app_info_get_implementations(interface: *const c_char) -> *mut glib::GList;
11707 pub fn g_desktop_app_info_search(search_string: *const c_char) -> *mut *mut *mut c_char;
11708 pub fn g_desktop_app_info_set_desktop_env(desktop_env: *const c_char);
11709 pub fn g_desktop_app_info_get_action_name(
11710 info: *mut GDesktopAppInfo,
11711 action_name: *const c_char,
11712 ) -> *mut c_char;
11713 pub fn g_desktop_app_info_get_boolean(
11714 info: *mut GDesktopAppInfo,
11715 key: *const c_char,
11716 ) -> gboolean;
11717 pub fn g_desktop_app_info_get_categories(info: *mut GDesktopAppInfo) -> *const c_char;
11718 pub fn g_desktop_app_info_get_filename(info: *mut GDesktopAppInfo) -> *const c_char;
11719 pub fn g_desktop_app_info_get_generic_name(info: *mut GDesktopAppInfo) -> *const c_char;
11720 pub fn g_desktop_app_info_get_is_hidden(info: *mut GDesktopAppInfo) -> gboolean;
11721 pub fn g_desktop_app_info_get_keywords(info: *mut GDesktopAppInfo) -> *const *const c_char;
11722 pub fn g_desktop_app_info_get_locale_string(
11723 info: *mut GDesktopAppInfo,
11724 key: *const c_char,
11725 ) -> *mut c_char;
11726 pub fn g_desktop_app_info_get_nodisplay(info: *mut GDesktopAppInfo) -> gboolean;
11727 pub fn g_desktop_app_info_get_show_in(
11728 info: *mut GDesktopAppInfo,
11729 desktop_env: *const c_char,
11730 ) -> gboolean;
11731 pub fn g_desktop_app_info_get_startup_wm_class(info: *mut GDesktopAppInfo) -> *const c_char;
11732 pub fn g_desktop_app_info_get_string(
11733 info: *mut GDesktopAppInfo,
11734 key: *const c_char,
11735 ) -> *mut c_char;
11736 #[cfg(feature = "v2_60")]
11737 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
11738 pub fn g_desktop_app_info_get_string_list(
11739 info: *mut GDesktopAppInfo,
11740 key: *const c_char,
11741 length: *mut size_t,
11742 ) -> *mut *mut c_char;
11743 pub fn g_desktop_app_info_has_key(info: *mut GDesktopAppInfo, key: *const c_char) -> gboolean;
11744 pub fn g_desktop_app_info_launch_action(
11745 info: *mut GDesktopAppInfo,
11746 action_name: *const c_char,
11747 launch_context: *mut GAppLaunchContext,
11748 );
11749 pub fn g_desktop_app_info_launch_uris_as_manager(
11750 appinfo: *mut GDesktopAppInfo,
11751 uris: *mut glib::GList,
11752 launch_context: *mut GAppLaunchContext,
11753 spawn_flags: glib::GSpawnFlags,
11754 user_setup: glib::GSpawnChildSetupFunc,
11755 user_setup_data: gpointer,
11756 pid_callback: GDesktopAppLaunchCallback,
11757 pid_callback_data: gpointer,
11758 error: *mut *mut glib::GError,
11759 ) -> gboolean;
11760 #[cfg(feature = "v2_58")]
11761 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
11762 pub fn g_desktop_app_info_launch_uris_as_manager_with_fds(
11763 appinfo: *mut GDesktopAppInfo,
11764 uris: *mut glib::GList,
11765 launch_context: *mut GAppLaunchContext,
11766 spawn_flags: glib::GSpawnFlags,
11767 user_setup: glib::GSpawnChildSetupFunc,
11768 user_setup_data: gpointer,
11769 pid_callback: GDesktopAppLaunchCallback,
11770 pid_callback_data: gpointer,
11771 stdin_fd: c_int,
11772 stdout_fd: c_int,
11773 stderr_fd: c_int,
11774 error: *mut *mut glib::GError,
11775 ) -> gboolean;
11776 pub fn g_desktop_app_info_list_actions(info: *mut GDesktopAppInfo) -> *const *const c_char;
11777
11778 pub fn g_emblem_get_type() -> GType;
11782 pub fn g_emblem_new(icon: *mut GIcon) -> *mut GEmblem;
11783 pub fn g_emblem_new_with_origin(icon: *mut GIcon, origin: GEmblemOrigin) -> *mut GEmblem;
11784 pub fn g_emblem_get_icon(emblem: *mut GEmblem) -> *mut GIcon;
11785 pub fn g_emblem_get_origin(emblem: *mut GEmblem) -> GEmblemOrigin;
11786
11787 pub fn g_emblemed_icon_get_type() -> GType;
11791 pub fn g_emblemed_icon_new(icon: *mut GIcon, emblem: *mut GEmblem) -> *mut GEmblemedIcon;
11792 pub fn g_emblemed_icon_add_emblem(emblemed: *mut GEmblemedIcon, emblem: *mut GEmblem);
11793 pub fn g_emblemed_icon_clear_emblems(emblemed: *mut GEmblemedIcon);
11794 pub fn g_emblemed_icon_get_emblems(emblemed: *mut GEmblemedIcon) -> *mut glib::GList;
11795 pub fn g_emblemed_icon_get_icon(emblemed: *mut GEmblemedIcon) -> *mut GIcon;
11796
11797 pub fn g_file_enumerator_get_type() -> GType;
11801 pub fn g_file_enumerator_close(
11802 enumerator: *mut GFileEnumerator,
11803 cancellable: *mut GCancellable,
11804 error: *mut *mut glib::GError,
11805 ) -> gboolean;
11806 pub fn g_file_enumerator_close_async(
11807 enumerator: *mut GFileEnumerator,
11808 io_priority: c_int,
11809 cancellable: *mut GCancellable,
11810 callback: GAsyncReadyCallback,
11811 user_data: gpointer,
11812 );
11813 pub fn g_file_enumerator_close_finish(
11814 enumerator: *mut GFileEnumerator,
11815 result: *mut GAsyncResult,
11816 error: *mut *mut glib::GError,
11817 ) -> gboolean;
11818 pub fn g_file_enumerator_get_child(
11819 enumerator: *mut GFileEnumerator,
11820 info: *mut GFileInfo,
11821 ) -> *mut GFile;
11822 pub fn g_file_enumerator_get_container(enumerator: *mut GFileEnumerator) -> *mut GFile;
11823 pub fn g_file_enumerator_has_pending(enumerator: *mut GFileEnumerator) -> gboolean;
11824 pub fn g_file_enumerator_is_closed(enumerator: *mut GFileEnumerator) -> gboolean;
11825 pub fn g_file_enumerator_iterate(
11826 direnum: *mut GFileEnumerator,
11827 out_info: *mut *mut GFileInfo,
11828 out_child: *mut *mut GFile,
11829 cancellable: *mut GCancellable,
11830 error: *mut *mut glib::GError,
11831 ) -> gboolean;
11832 pub fn g_file_enumerator_next_file(
11833 enumerator: *mut GFileEnumerator,
11834 cancellable: *mut GCancellable,
11835 error: *mut *mut glib::GError,
11836 ) -> *mut GFileInfo;
11837 pub fn g_file_enumerator_next_files_async(
11838 enumerator: *mut GFileEnumerator,
11839 num_files: c_int,
11840 io_priority: c_int,
11841 cancellable: *mut GCancellable,
11842 callback: GAsyncReadyCallback,
11843 user_data: gpointer,
11844 );
11845 pub fn g_file_enumerator_next_files_finish(
11846 enumerator: *mut GFileEnumerator,
11847 result: *mut GAsyncResult,
11848 error: *mut *mut glib::GError,
11849 ) -> *mut glib::GList;
11850 pub fn g_file_enumerator_set_pending(enumerator: *mut GFileEnumerator, pending: gboolean);
11851
11852 pub fn g_file_io_stream_get_type() -> GType;
11856 pub fn g_file_io_stream_get_etag(stream: *mut GFileIOStream) -> *mut c_char;
11857 pub fn g_file_io_stream_query_info(
11858 stream: *mut GFileIOStream,
11859 attributes: *const c_char,
11860 cancellable: *mut GCancellable,
11861 error: *mut *mut glib::GError,
11862 ) -> *mut GFileInfo;
11863 pub fn g_file_io_stream_query_info_async(
11864 stream: *mut GFileIOStream,
11865 attributes: *const c_char,
11866 io_priority: c_int,
11867 cancellable: *mut GCancellable,
11868 callback: GAsyncReadyCallback,
11869 user_data: gpointer,
11870 );
11871 pub fn g_file_io_stream_query_info_finish(
11872 stream: *mut GFileIOStream,
11873 result: *mut GAsyncResult,
11874 error: *mut *mut glib::GError,
11875 ) -> *mut GFileInfo;
11876
11877 pub fn g_file_icon_get_type() -> GType;
11881 pub fn g_file_icon_new(file: *mut GFile) -> *mut GFileIcon;
11882 pub fn g_file_icon_get_file(icon: *mut GFileIcon) -> *mut GFile;
11883
11884 pub fn g_file_info_get_type() -> GType;
11888 pub fn g_file_info_new() -> *mut GFileInfo;
11889 pub fn g_file_info_clear_status(info: *mut GFileInfo);
11890 pub fn g_file_info_copy_into(src_info: *mut GFileInfo, dest_info: *mut GFileInfo);
11891 pub fn g_file_info_dup(other: *mut GFileInfo) -> *mut GFileInfo;
11892 #[cfg(feature = "v2_70")]
11893 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11894 pub fn g_file_info_get_access_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11895 pub fn g_file_info_get_attribute_as_string(
11896 info: *mut GFileInfo,
11897 attribute: *const c_char,
11898 ) -> *mut c_char;
11899 pub fn g_file_info_get_attribute_boolean(
11900 info: *mut GFileInfo,
11901 attribute: *const c_char,
11902 ) -> gboolean;
11903 pub fn g_file_info_get_attribute_byte_string(
11904 info: *mut GFileInfo,
11905 attribute: *const c_char,
11906 ) -> *const c_char;
11907 pub fn g_file_info_get_attribute_data(
11908 info: *mut GFileInfo,
11909 attribute: *const c_char,
11910 type_: *mut GFileAttributeType,
11911 value_pp: *mut gpointer,
11912 status: *mut GFileAttributeStatus,
11913 ) -> gboolean;
11914 #[cfg(feature = "v2_78")]
11915 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
11916 pub fn g_file_info_get_attribute_file_path(
11917 info: *mut GFileInfo,
11918 attribute: *const c_char,
11919 ) -> *const c_char;
11920 pub fn g_file_info_get_attribute_int32(info: *mut GFileInfo, attribute: *const c_char) -> i32;
11921 pub fn g_file_info_get_attribute_int64(info: *mut GFileInfo, attribute: *const c_char) -> i64;
11922 pub fn g_file_info_get_attribute_object(
11923 info: *mut GFileInfo,
11924 attribute: *const c_char,
11925 ) -> *mut gobject::GObject;
11926 pub fn g_file_info_get_attribute_status(
11927 info: *mut GFileInfo,
11928 attribute: *const c_char,
11929 ) -> GFileAttributeStatus;
11930 pub fn g_file_info_get_attribute_string(
11931 info: *mut GFileInfo,
11932 attribute: *const c_char,
11933 ) -> *const c_char;
11934 pub fn g_file_info_get_attribute_stringv(
11935 info: *mut GFileInfo,
11936 attribute: *const c_char,
11937 ) -> *mut *mut c_char;
11938 pub fn g_file_info_get_attribute_type(
11939 info: *mut GFileInfo,
11940 attribute: *const c_char,
11941 ) -> GFileAttributeType;
11942 pub fn g_file_info_get_attribute_uint32(info: *mut GFileInfo, attribute: *const c_char) -> u32;
11943 pub fn g_file_info_get_attribute_uint64(info: *mut GFileInfo, attribute: *const c_char) -> u64;
11944 pub fn g_file_info_get_content_type(info: *mut GFileInfo) -> *const c_char;
11945 #[cfg(feature = "v2_70")]
11946 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11947 pub fn g_file_info_get_creation_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11948 pub fn g_file_info_get_deletion_date(info: *mut GFileInfo) -> *mut glib::GDateTime;
11949 pub fn g_file_info_get_display_name(info: *mut GFileInfo) -> *const c_char;
11950 pub fn g_file_info_get_edit_name(info: *mut GFileInfo) -> *const c_char;
11951 pub fn g_file_info_get_etag(info: *mut GFileInfo) -> *const c_char;
11952 pub fn g_file_info_get_file_type(info: *mut GFileInfo) -> GFileType;
11953 pub fn g_file_info_get_icon(info: *mut GFileInfo) -> *mut GIcon;
11954 pub fn g_file_info_get_is_backup(info: *mut GFileInfo) -> gboolean;
11955 pub fn g_file_info_get_is_hidden(info: *mut GFileInfo) -> gboolean;
11956 pub fn g_file_info_get_is_symlink(info: *mut GFileInfo) -> gboolean;
11957 #[cfg(feature = "v2_62")]
11958 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
11959 pub fn g_file_info_get_modification_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11960 pub fn g_file_info_get_modification_time(info: *mut GFileInfo, result: *mut glib::GTimeVal);
11961 pub fn g_file_info_get_name(info: *mut GFileInfo) -> *const c_char;
11962 pub fn g_file_info_get_size(info: *mut GFileInfo) -> i64;
11963 pub fn g_file_info_get_sort_order(info: *mut GFileInfo) -> i32;
11964 pub fn g_file_info_get_symbolic_icon(info: *mut GFileInfo) -> *mut GIcon;
11965 pub fn g_file_info_get_symlink_target(info: *mut GFileInfo) -> *const c_char;
11966 pub fn g_file_info_has_attribute(info: *mut GFileInfo, attribute: *const c_char) -> gboolean;
11967 pub fn g_file_info_has_namespace(info: *mut GFileInfo, name_space: *const c_char) -> gboolean;
11968 pub fn g_file_info_list_attributes(
11969 info: *mut GFileInfo,
11970 name_space: *const c_char,
11971 ) -> *mut *mut c_char;
11972 pub fn g_file_info_remove_attribute(info: *mut GFileInfo, attribute: *const c_char);
11973 #[cfg(feature = "v2_70")]
11974 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11975 pub fn g_file_info_set_access_date_time(info: *mut GFileInfo, atime: *mut glib::GDateTime);
11976 pub fn g_file_info_set_attribute(
11977 info: *mut GFileInfo,
11978 attribute: *const c_char,
11979 type_: GFileAttributeType,
11980 value_p: gpointer,
11981 );
11982 pub fn g_file_info_set_attribute_boolean(
11983 info: *mut GFileInfo,
11984 attribute: *const c_char,
11985 attr_value: gboolean,
11986 );
11987 pub fn g_file_info_set_attribute_byte_string(
11988 info: *mut GFileInfo,
11989 attribute: *const c_char,
11990 attr_value: *const c_char,
11991 );
11992 #[cfg(feature = "v2_78")]
11993 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
11994 pub fn g_file_info_set_attribute_file_path(
11995 info: *mut GFileInfo,
11996 attribute: *const c_char,
11997 attr_value: *const c_char,
11998 );
11999 pub fn g_file_info_set_attribute_int32(
12000 info: *mut GFileInfo,
12001 attribute: *const c_char,
12002 attr_value: i32,
12003 );
12004 pub fn g_file_info_set_attribute_int64(
12005 info: *mut GFileInfo,
12006 attribute: *const c_char,
12007 attr_value: i64,
12008 );
12009 pub fn g_file_info_set_attribute_mask(info: *mut GFileInfo, mask: *mut GFileAttributeMatcher);
12010 pub fn g_file_info_set_attribute_object(
12011 info: *mut GFileInfo,
12012 attribute: *const c_char,
12013 attr_value: *mut gobject::GObject,
12014 );
12015 pub fn g_file_info_set_attribute_status(
12016 info: *mut GFileInfo,
12017 attribute: *const c_char,
12018 status: GFileAttributeStatus,
12019 ) -> gboolean;
12020 pub fn g_file_info_set_attribute_string(
12021 info: *mut GFileInfo,
12022 attribute: *const c_char,
12023 attr_value: *const c_char,
12024 );
12025 pub fn g_file_info_set_attribute_stringv(
12026 info: *mut GFileInfo,
12027 attribute: *const c_char,
12028 attr_value: *mut *mut c_char,
12029 );
12030 pub fn g_file_info_set_attribute_uint32(
12031 info: *mut GFileInfo,
12032 attribute: *const c_char,
12033 attr_value: u32,
12034 );
12035 pub fn g_file_info_set_attribute_uint64(
12036 info: *mut GFileInfo,
12037 attribute: *const c_char,
12038 attr_value: u64,
12039 );
12040 pub fn g_file_info_set_content_type(info: *mut GFileInfo, content_type: *const c_char);
12041 #[cfg(feature = "v2_70")]
12042 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
12043 pub fn g_file_info_set_creation_date_time(
12044 info: *mut GFileInfo,
12045 creation_time: *mut glib::GDateTime,
12046 );
12047 pub fn g_file_info_set_display_name(info: *mut GFileInfo, display_name: *const c_char);
12048 pub fn g_file_info_set_edit_name(info: *mut GFileInfo, edit_name: *const c_char);
12049 pub fn g_file_info_set_file_type(info: *mut GFileInfo, type_: GFileType);
12050 pub fn g_file_info_set_icon(info: *mut GFileInfo, icon: *mut GIcon);
12051 pub fn g_file_info_set_is_hidden(info: *mut GFileInfo, is_hidden: gboolean);
12052 pub fn g_file_info_set_is_symlink(info: *mut GFileInfo, is_symlink: gboolean);
12053 #[cfg(feature = "v2_62")]
12054 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
12055 pub fn g_file_info_set_modification_date_time(
12056 info: *mut GFileInfo,
12057 mtime: *mut glib::GDateTime,
12058 );
12059 pub fn g_file_info_set_modification_time(info: *mut GFileInfo, mtime: *mut glib::GTimeVal);
12060 pub fn g_file_info_set_name(info: *mut GFileInfo, name: *const c_char);
12061 pub fn g_file_info_set_size(info: *mut GFileInfo, size: i64);
12062 pub fn g_file_info_set_sort_order(info: *mut GFileInfo, sort_order: i32);
12063 pub fn g_file_info_set_symbolic_icon(info: *mut GFileInfo, icon: *mut GIcon);
12064 pub fn g_file_info_set_symlink_target(info: *mut GFileInfo, symlink_target: *const c_char);
12065 pub fn g_file_info_unset_attribute_mask(info: *mut GFileInfo);
12066
12067 pub fn g_file_input_stream_get_type() -> GType;
12071 pub fn g_file_input_stream_query_info(
12072 stream: *mut GFileInputStream,
12073 attributes: *const c_char,
12074 cancellable: *mut GCancellable,
12075 error: *mut *mut glib::GError,
12076 ) -> *mut GFileInfo;
12077 pub fn g_file_input_stream_query_info_async(
12078 stream: *mut GFileInputStream,
12079 attributes: *const c_char,
12080 io_priority: c_int,
12081 cancellable: *mut GCancellable,
12082 callback: GAsyncReadyCallback,
12083 user_data: gpointer,
12084 );
12085 pub fn g_file_input_stream_query_info_finish(
12086 stream: *mut GFileInputStream,
12087 result: *mut GAsyncResult,
12088 error: *mut *mut glib::GError,
12089 ) -> *mut GFileInfo;
12090
12091 pub fn g_file_monitor_get_type() -> GType;
12095 pub fn g_file_monitor_cancel(monitor: *mut GFileMonitor) -> gboolean;
12096 pub fn g_file_monitor_emit_event(
12097 monitor: *mut GFileMonitor,
12098 child: *mut GFile,
12099 other_file: *mut GFile,
12100 event_type: GFileMonitorEvent,
12101 );
12102 pub fn g_file_monitor_is_cancelled(monitor: *mut GFileMonitor) -> gboolean;
12103 pub fn g_file_monitor_set_rate_limit(monitor: *mut GFileMonitor, limit_msecs: c_int);
12104
12105 pub fn g_file_output_stream_get_type() -> GType;
12109 pub fn g_file_output_stream_get_etag(stream: *mut GFileOutputStream) -> *mut c_char;
12110 pub fn g_file_output_stream_query_info(
12111 stream: *mut GFileOutputStream,
12112 attributes: *const c_char,
12113 cancellable: *mut GCancellable,
12114 error: *mut *mut glib::GError,
12115 ) -> *mut GFileInfo;
12116 pub fn g_file_output_stream_query_info_async(
12117 stream: *mut GFileOutputStream,
12118 attributes: *const c_char,
12119 io_priority: c_int,
12120 cancellable: *mut GCancellable,
12121 callback: GAsyncReadyCallback,
12122 user_data: gpointer,
12123 );
12124 pub fn g_file_output_stream_query_info_finish(
12125 stream: *mut GFileOutputStream,
12126 result: *mut GAsyncResult,
12127 error: *mut *mut glib::GError,
12128 ) -> *mut GFileInfo;
12129
12130 pub fn g_filename_completer_get_type() -> GType;
12134 pub fn g_filename_completer_new() -> *mut GFilenameCompleter;
12135 pub fn g_filename_completer_get_completion_suffix(
12136 completer: *mut GFilenameCompleter,
12137 initial_text: *const c_char,
12138 ) -> *mut c_char;
12139 pub fn g_filename_completer_get_completions(
12140 completer: *mut GFilenameCompleter,
12141 initial_text: *const c_char,
12142 ) -> *mut *mut c_char;
12143 pub fn g_filename_completer_set_dirs_only(
12144 completer: *mut GFilenameCompleter,
12145 dirs_only: gboolean,
12146 );
12147
12148 pub fn g_filter_input_stream_get_type() -> GType;
12152 pub fn g_filter_input_stream_get_base_stream(
12153 stream: *mut GFilterInputStream,
12154 ) -> *mut GInputStream;
12155 pub fn g_filter_input_stream_get_close_base_stream(stream: *mut GFilterInputStream)
12156 -> gboolean;
12157 pub fn g_filter_input_stream_set_close_base_stream(
12158 stream: *mut GFilterInputStream,
12159 close_base: gboolean,
12160 );
12161
12162 pub fn g_filter_output_stream_get_type() -> GType;
12166 pub fn g_filter_output_stream_get_base_stream(
12167 stream: *mut GFilterOutputStream,
12168 ) -> *mut GOutputStream;
12169 pub fn g_filter_output_stream_get_close_base_stream(
12170 stream: *mut GFilterOutputStream,
12171 ) -> gboolean;
12172 pub fn g_filter_output_stream_set_close_base_stream(
12173 stream: *mut GFilterOutputStream,
12174 close_base: gboolean,
12175 );
12176
12177 pub fn g_io_module_get_type() -> GType;
12181 pub fn g_io_module_new(filename: *const c_char) -> *mut GIOModule;
12182 pub fn g_io_module_query() -> *mut *mut c_char;
12183 pub fn g_io_module_load(module: *mut GIOModule);
12184 pub fn g_io_module_unload(module: *mut GIOModule);
12185
12186 pub fn g_io_stream_get_type() -> GType;
12190 pub fn g_io_stream_splice_finish(
12191 result: *mut GAsyncResult,
12192 error: *mut *mut glib::GError,
12193 ) -> gboolean;
12194 pub fn g_io_stream_clear_pending(stream: *mut GIOStream);
12195 pub fn g_io_stream_close(
12196 stream: *mut GIOStream,
12197 cancellable: *mut GCancellable,
12198 error: *mut *mut glib::GError,
12199 ) -> gboolean;
12200 pub fn g_io_stream_close_async(
12201 stream: *mut GIOStream,
12202 io_priority: c_int,
12203 cancellable: *mut GCancellable,
12204 callback: GAsyncReadyCallback,
12205 user_data: gpointer,
12206 );
12207 pub fn g_io_stream_close_finish(
12208 stream: *mut GIOStream,
12209 result: *mut GAsyncResult,
12210 error: *mut *mut glib::GError,
12211 ) -> gboolean;
12212 pub fn g_io_stream_get_input_stream(stream: *mut GIOStream) -> *mut GInputStream;
12213 pub fn g_io_stream_get_output_stream(stream: *mut GIOStream) -> *mut GOutputStream;
12214 pub fn g_io_stream_has_pending(stream: *mut GIOStream) -> gboolean;
12215 pub fn g_io_stream_is_closed(stream: *mut GIOStream) -> gboolean;
12216 pub fn g_io_stream_set_pending(
12217 stream: *mut GIOStream,
12218 error: *mut *mut glib::GError,
12219 ) -> gboolean;
12220 pub fn g_io_stream_splice_async(
12221 stream1: *mut GIOStream,
12222 stream2: *mut GIOStream,
12223 flags: GIOStreamSpliceFlags,
12224 io_priority: c_int,
12225 cancellable: *mut GCancellable,
12226 callback: GAsyncReadyCallback,
12227 user_data: gpointer,
12228 );
12229
12230 pub fn g_inet_address_get_type() -> GType;
12234 pub fn g_inet_address_new_any(family: GSocketFamily) -> *mut GInetAddress;
12235 pub fn g_inet_address_new_from_bytes(
12236 bytes: *const u8,
12237 family: GSocketFamily,
12238 ) -> *mut GInetAddress;
12239 #[cfg(feature = "v2_86")]
12240 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12241 pub fn g_inet_address_new_from_bytes_with_ipv6_info(
12242 bytes: *const u8,
12243 family: GSocketFamily,
12244 flowinfo: u32,
12245 scope_id: u32,
12246 ) -> *mut GInetAddress;
12247 pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress;
12248 pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
12249 pub fn g_inet_address_equal(
12250 address: *mut GInetAddress,
12251 other_address: *mut GInetAddress,
12252 ) -> gboolean;
12253 pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
12254 #[cfg(feature = "v2_86")]
12255 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12256 pub fn g_inet_address_get_flowinfo(address: *mut GInetAddress) -> u32;
12257 pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
12258 pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
12259 pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
12260 pub fn g_inet_address_get_is_mc_global(address: *mut GInetAddress) -> gboolean;
12261 pub fn g_inet_address_get_is_mc_link_local(address: *mut GInetAddress) -> gboolean;
12262 pub fn g_inet_address_get_is_mc_node_local(address: *mut GInetAddress) -> gboolean;
12263 pub fn g_inet_address_get_is_mc_org_local(address: *mut GInetAddress) -> gboolean;
12264 pub fn g_inet_address_get_is_mc_site_local(address: *mut GInetAddress) -> gboolean;
12265 pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
12266 pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
12267 pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t;
12268 #[cfg(feature = "v2_86")]
12269 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
12270 pub fn g_inet_address_get_scope_id(address: *mut GInetAddress) -> u32;
12271 pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8;
12272 pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char;
12273
12274 pub fn g_inet_address_mask_get_type() -> GType;
12278 pub fn g_inet_address_mask_new(
12279 addr: *mut GInetAddress,
12280 length: c_uint,
12281 error: *mut *mut glib::GError,
12282 ) -> *mut GInetAddressMask;
12283 pub fn g_inet_address_mask_new_from_string(
12284 mask_string: *const c_char,
12285 error: *mut *mut glib::GError,
12286 ) -> *mut GInetAddressMask;
12287 pub fn g_inet_address_mask_equal(
12288 mask: *mut GInetAddressMask,
12289 mask2: *mut GInetAddressMask,
12290 ) -> gboolean;
12291 pub fn g_inet_address_mask_get_address(mask: *mut GInetAddressMask) -> *mut GInetAddress;
12292 pub fn g_inet_address_mask_get_family(mask: *mut GInetAddressMask) -> GSocketFamily;
12293 pub fn g_inet_address_mask_get_length(mask: *mut GInetAddressMask) -> c_uint;
12294 pub fn g_inet_address_mask_matches(
12295 mask: *mut GInetAddressMask,
12296 address: *mut GInetAddress,
12297 ) -> gboolean;
12298 pub fn g_inet_address_mask_to_string(mask: *mut GInetAddressMask) -> *mut c_char;
12299
12300 pub fn g_inet_socket_address_get_type() -> GType;
12304 pub fn g_inet_socket_address_new(address: *mut GInetAddress, port: u16) -> *mut GSocketAddress;
12305 pub fn g_inet_socket_address_new_from_string(
12306 address: *const c_char,
12307 port: c_uint,
12308 ) -> *mut GSocketAddress;
12309 pub fn g_inet_socket_address_get_address(address: *mut GInetSocketAddress)
12310 -> *mut GInetAddress;
12311 pub fn g_inet_socket_address_get_flowinfo(address: *mut GInetSocketAddress) -> u32;
12312 pub fn g_inet_socket_address_get_port(address: *mut GInetSocketAddress) -> u16;
12313 pub fn g_inet_socket_address_get_scope_id(address: *mut GInetSocketAddress) -> u32;
12314
12315 pub fn g_input_stream_get_type() -> GType;
12319 pub fn g_input_stream_clear_pending(stream: *mut GInputStream);
12320 pub fn g_input_stream_close(
12321 stream: *mut GInputStream,
12322 cancellable: *mut GCancellable,
12323 error: *mut *mut glib::GError,
12324 ) -> gboolean;
12325 pub fn g_input_stream_close_async(
12326 stream: *mut GInputStream,
12327 io_priority: c_int,
12328 cancellable: *mut GCancellable,
12329 callback: GAsyncReadyCallback,
12330 user_data: gpointer,
12331 );
12332 pub fn g_input_stream_close_finish(
12333 stream: *mut GInputStream,
12334 result: *mut GAsyncResult,
12335 error: *mut *mut glib::GError,
12336 ) -> gboolean;
12337 pub fn g_input_stream_has_pending(stream: *mut GInputStream) -> gboolean;
12338 pub fn g_input_stream_is_closed(stream: *mut GInputStream) -> gboolean;
12339 pub fn g_input_stream_read(
12340 stream: *mut GInputStream,
12341 buffer: *mut u8,
12342 count: size_t,
12343 cancellable: *mut GCancellable,
12344 error: *mut *mut glib::GError,
12345 ) -> ssize_t;
12346 pub fn g_input_stream_read_all(
12347 stream: *mut GInputStream,
12348 buffer: *mut u8,
12349 count: size_t,
12350 bytes_read: *mut size_t,
12351 cancellable: *mut GCancellable,
12352 error: *mut *mut glib::GError,
12353 ) -> gboolean;
12354 pub fn g_input_stream_read_all_async(
12355 stream: *mut GInputStream,
12356 buffer: *mut u8,
12357 count: size_t,
12358 io_priority: c_int,
12359 cancellable: *mut GCancellable,
12360 callback: GAsyncReadyCallback,
12361 user_data: gpointer,
12362 );
12363 pub fn g_input_stream_read_all_finish(
12364 stream: *mut GInputStream,
12365 result: *mut GAsyncResult,
12366 bytes_read: *mut size_t,
12367 error: *mut *mut glib::GError,
12368 ) -> gboolean;
12369 pub fn g_input_stream_read_async(
12370 stream: *mut GInputStream,
12371 buffer: *mut u8,
12372 count: size_t,
12373 io_priority: c_int,
12374 cancellable: *mut GCancellable,
12375 callback: GAsyncReadyCallback,
12376 user_data: gpointer,
12377 );
12378 pub fn g_input_stream_read_bytes(
12379 stream: *mut GInputStream,
12380 count: size_t,
12381 cancellable: *mut GCancellable,
12382 error: *mut *mut glib::GError,
12383 ) -> *mut glib::GBytes;
12384 pub fn g_input_stream_read_bytes_async(
12385 stream: *mut GInputStream,
12386 count: size_t,
12387 io_priority: c_int,
12388 cancellable: *mut GCancellable,
12389 callback: GAsyncReadyCallback,
12390 user_data: gpointer,
12391 );
12392 pub fn g_input_stream_read_bytes_finish(
12393 stream: *mut GInputStream,
12394 result: *mut GAsyncResult,
12395 error: *mut *mut glib::GError,
12396 ) -> *mut glib::GBytes;
12397 pub fn g_input_stream_read_finish(
12398 stream: *mut GInputStream,
12399 result: *mut GAsyncResult,
12400 error: *mut *mut glib::GError,
12401 ) -> ssize_t;
12402 pub fn g_input_stream_set_pending(
12403 stream: *mut GInputStream,
12404 error: *mut *mut glib::GError,
12405 ) -> gboolean;
12406 pub fn g_input_stream_skip(
12407 stream: *mut GInputStream,
12408 count: size_t,
12409 cancellable: *mut GCancellable,
12410 error: *mut *mut glib::GError,
12411 ) -> ssize_t;
12412 pub fn g_input_stream_skip_async(
12413 stream: *mut GInputStream,
12414 count: size_t,
12415 io_priority: c_int,
12416 cancellable: *mut GCancellable,
12417 callback: GAsyncReadyCallback,
12418 user_data: gpointer,
12419 );
12420 pub fn g_input_stream_skip_finish(
12421 stream: *mut GInputStream,
12422 result: *mut GAsyncResult,
12423 error: *mut *mut glib::GError,
12424 ) -> ssize_t;
12425
12426 pub fn g_list_store_get_type() -> GType;
12430 pub fn g_list_store_new(item_type: GType) -> *mut GListStore;
12431 pub fn g_list_store_append(store: *mut GListStore, item: *mut gobject::GObject);
12432 #[cfg(feature = "v2_64")]
12433 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
12434 pub fn g_list_store_find(
12435 store: *mut GListStore,
12436 item: *mut gobject::GObject,
12437 position: *mut c_uint,
12438 ) -> gboolean;
12439 #[cfg(feature = "v2_64")]
12440 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
12441 pub fn g_list_store_find_with_equal_func(
12442 store: *mut GListStore,
12443 item: *mut gobject::GObject,
12444 equal_func: glib::GEqualFunc,
12445 position: *mut c_uint,
12446 ) -> gboolean;
12447 #[cfg(feature = "v2_74")]
12448 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
12449 pub fn g_list_store_find_with_equal_func_full(
12450 store: *mut GListStore,
12451 item: *mut gobject::GObject,
12452 equal_func: glib::GEqualFuncFull,
12453 user_data: gpointer,
12454 position: *mut c_uint,
12455 ) -> gboolean;
12456 pub fn g_list_store_insert(
12457 store: *mut GListStore,
12458 position: c_uint,
12459 item: *mut gobject::GObject,
12460 );
12461 pub fn g_list_store_insert_sorted(
12462 store: *mut GListStore,
12463 item: *mut gobject::GObject,
12464 compare_func: glib::GCompareDataFunc,
12465 user_data: gpointer,
12466 ) -> c_uint;
12467 pub fn g_list_store_remove(store: *mut GListStore, position: c_uint);
12468 pub fn g_list_store_remove_all(store: *mut GListStore);
12469 pub fn g_list_store_sort(
12470 store: *mut GListStore,
12471 compare_func: glib::GCompareDataFunc,
12472 user_data: gpointer,
12473 );
12474 pub fn g_list_store_splice(
12475 store: *mut GListStore,
12476 position: c_uint,
12477 n_removals: c_uint,
12478 additions: *mut *mut gobject::GObject,
12479 n_additions: c_uint,
12480 );
12481
12482 pub fn g_memory_input_stream_get_type() -> GType;
12486 pub fn g_memory_input_stream_new() -> *mut GInputStream;
12487 pub fn g_memory_input_stream_new_from_bytes(bytes: *mut glib::GBytes) -> *mut GInputStream;
12488 pub fn g_memory_input_stream_new_from_data(
12489 data: *mut u8,
12490 len: ssize_t,
12491 destroy: glib::GDestroyNotify,
12492 ) -> *mut GInputStream;
12493 pub fn g_memory_input_stream_add_bytes(
12494 stream: *mut GMemoryInputStream,
12495 bytes: *mut glib::GBytes,
12496 );
12497 pub fn g_memory_input_stream_add_data(
12498 stream: *mut GMemoryInputStream,
12499 data: *mut u8,
12500 len: ssize_t,
12501 destroy: glib::GDestroyNotify,
12502 );
12503
12504 pub fn g_memory_output_stream_get_type() -> GType;
12508 pub fn g_memory_output_stream_new(
12509 data: gpointer,
12510 size: size_t,
12511 realloc_function: GReallocFunc,
12512 destroy_function: glib::GDestroyNotify,
12513 ) -> *mut GOutputStream;
12514 pub fn g_memory_output_stream_new_resizable() -> *mut GOutputStream;
12515 pub fn g_memory_output_stream_get_data(ostream: *mut GMemoryOutputStream) -> gpointer;
12516 pub fn g_memory_output_stream_get_data_size(ostream: *mut GMemoryOutputStream) -> size_t;
12517 pub fn g_memory_output_stream_get_size(ostream: *mut GMemoryOutputStream) -> size_t;
12518 pub fn g_memory_output_stream_steal_as_bytes(
12519 ostream: *mut GMemoryOutputStream,
12520 ) -> *mut glib::GBytes;
12521 pub fn g_memory_output_stream_steal_data(ostream: *mut GMemoryOutputStream) -> gpointer;
12522
12523 pub fn g_menu_get_type() -> GType;
12527 pub fn g_menu_new() -> *mut GMenu;
12528 pub fn g_menu_append(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
12529 pub fn g_menu_append_item(menu: *mut GMenu, item: *mut GMenuItem);
12530 pub fn g_menu_append_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
12531 pub fn g_menu_append_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
12532 pub fn g_menu_freeze(menu: *mut GMenu);
12533 pub fn g_menu_insert(
12534 menu: *mut GMenu,
12535 position: c_int,
12536 label: *const c_char,
12537 detailed_action: *const c_char,
12538 );
12539 pub fn g_menu_insert_item(menu: *mut GMenu, position: c_int, item: *mut GMenuItem);
12540 pub fn g_menu_insert_section(
12541 menu: *mut GMenu,
12542 position: c_int,
12543 label: *const c_char,
12544 section: *mut GMenuModel,
12545 );
12546 pub fn g_menu_insert_submenu(
12547 menu: *mut GMenu,
12548 position: c_int,
12549 label: *const c_char,
12550 submenu: *mut GMenuModel,
12551 );
12552 pub fn g_menu_prepend(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
12553 pub fn g_menu_prepend_item(menu: *mut GMenu, item: *mut GMenuItem);
12554 pub fn g_menu_prepend_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
12555 pub fn g_menu_prepend_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
12556 pub fn g_menu_remove(menu: *mut GMenu, position: c_int);
12557 pub fn g_menu_remove_all(menu: *mut GMenu);
12558
12559 pub fn g_menu_attribute_iter_get_type() -> GType;
12563 pub fn g_menu_attribute_iter_get_name(iter: *mut GMenuAttributeIter) -> *const c_char;
12564 pub fn g_menu_attribute_iter_get_next(
12565 iter: *mut GMenuAttributeIter,
12566 out_name: *mut *const c_char,
12567 value: *mut *mut glib::GVariant,
12568 ) -> gboolean;
12569 pub fn g_menu_attribute_iter_get_value(iter: *mut GMenuAttributeIter) -> *mut glib::GVariant;
12570 pub fn g_menu_attribute_iter_next(iter: *mut GMenuAttributeIter) -> gboolean;
12571
12572 pub fn g_menu_item_get_type() -> GType;
12576 pub fn g_menu_item_new(label: *const c_char, detailed_action: *const c_char) -> *mut GMenuItem;
12577 pub fn g_menu_item_new_from_model(model: *mut GMenuModel, item_index: c_int) -> *mut GMenuItem;
12578 pub fn g_menu_item_new_section(
12579 label: *const c_char,
12580 section: *mut GMenuModel,
12581 ) -> *mut GMenuItem;
12582 pub fn g_menu_item_new_submenu(
12583 label: *const c_char,
12584 submenu: *mut GMenuModel,
12585 ) -> *mut GMenuItem;
12586 pub fn g_menu_item_get_attribute(
12587 menu_item: *mut GMenuItem,
12588 attribute: *const c_char,
12589 format_string: *const c_char,
12590 ...
12591 ) -> gboolean;
12592 pub fn g_menu_item_get_attribute_value(
12593 menu_item: *mut GMenuItem,
12594 attribute: *const c_char,
12595 expected_type: *const glib::GVariantType,
12596 ) -> *mut glib::GVariant;
12597 pub fn g_menu_item_get_link(menu_item: *mut GMenuItem, link: *const c_char) -> *mut GMenuModel;
12598 pub fn g_menu_item_set_action_and_target(
12599 menu_item: *mut GMenuItem,
12600 action: *const c_char,
12601 format_string: *const c_char,
12602 ...
12603 );
12604 pub fn g_menu_item_set_action_and_target_value(
12605 menu_item: *mut GMenuItem,
12606 action: *const c_char,
12607 target_value: *mut glib::GVariant,
12608 );
12609 pub fn g_menu_item_set_attribute(
12610 menu_item: *mut GMenuItem,
12611 attribute: *const c_char,
12612 format_string: *const c_char,
12613 ...
12614 );
12615 pub fn g_menu_item_set_attribute_value(
12616 menu_item: *mut GMenuItem,
12617 attribute: *const c_char,
12618 value: *mut glib::GVariant,
12619 );
12620 pub fn g_menu_item_set_detailed_action(
12621 menu_item: *mut GMenuItem,
12622 detailed_action: *const c_char,
12623 );
12624 pub fn g_menu_item_set_icon(menu_item: *mut GMenuItem, icon: *mut GIcon);
12625 pub fn g_menu_item_set_label(menu_item: *mut GMenuItem, label: *const c_char);
12626 pub fn g_menu_item_set_link(
12627 menu_item: *mut GMenuItem,
12628 link: *const c_char,
12629 model: *mut GMenuModel,
12630 );
12631 pub fn g_menu_item_set_section(menu_item: *mut GMenuItem, section: *mut GMenuModel);
12632 pub fn g_menu_item_set_submenu(menu_item: *mut GMenuItem, submenu: *mut GMenuModel);
12633
12634 pub fn g_menu_link_iter_get_type() -> GType;
12638 pub fn g_menu_link_iter_get_name(iter: *mut GMenuLinkIter) -> *const c_char;
12639 pub fn g_menu_link_iter_get_next(
12640 iter: *mut GMenuLinkIter,
12641 out_link: *mut *const c_char,
12642 value: *mut *mut GMenuModel,
12643 ) -> gboolean;
12644 pub fn g_menu_link_iter_get_value(iter: *mut GMenuLinkIter) -> *mut GMenuModel;
12645 pub fn g_menu_link_iter_next(iter: *mut GMenuLinkIter) -> gboolean;
12646
12647 pub fn g_menu_model_get_type() -> GType;
12651 pub fn g_menu_model_get_item_attribute(
12652 model: *mut GMenuModel,
12653 item_index: c_int,
12654 attribute: *const c_char,
12655 format_string: *const c_char,
12656 ...
12657 ) -> gboolean;
12658 pub fn g_menu_model_get_item_attribute_value(
12659 model: *mut GMenuModel,
12660 item_index: c_int,
12661 attribute: *const c_char,
12662 expected_type: *const glib::GVariantType,
12663 ) -> *mut glib::GVariant;
12664 pub fn g_menu_model_get_item_link(
12665 model: *mut GMenuModel,
12666 item_index: c_int,
12667 link: *const c_char,
12668 ) -> *mut GMenuModel;
12669 pub fn g_menu_model_get_n_items(model: *mut GMenuModel) -> c_int;
12670 pub fn g_menu_model_is_mutable(model: *mut GMenuModel) -> gboolean;
12671 pub fn g_menu_model_items_changed(
12672 model: *mut GMenuModel,
12673 position: c_int,
12674 removed: c_int,
12675 added: c_int,
12676 );
12677 pub fn g_menu_model_iterate_item_attributes(
12678 model: *mut GMenuModel,
12679 item_index: c_int,
12680 ) -> *mut GMenuAttributeIter;
12681 pub fn g_menu_model_iterate_item_links(
12682 model: *mut GMenuModel,
12683 item_index: c_int,
12684 ) -> *mut GMenuLinkIter;
12685
12686 pub fn g_mount_operation_get_type() -> GType;
12690 pub fn g_mount_operation_new() -> *mut GMountOperation;
12691 pub fn g_mount_operation_get_anonymous(op: *mut GMountOperation) -> gboolean;
12692 pub fn g_mount_operation_get_choice(op: *mut GMountOperation) -> c_int;
12693 pub fn g_mount_operation_get_domain(op: *mut GMountOperation) -> *const c_char;
12694 #[cfg(feature = "v2_58")]
12695 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12696 pub fn g_mount_operation_get_is_tcrypt_hidden_volume(op: *mut GMountOperation) -> gboolean;
12697 #[cfg(feature = "v2_58")]
12698 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12699 pub fn g_mount_operation_get_is_tcrypt_system_volume(op: *mut GMountOperation) -> gboolean;
12700 pub fn g_mount_operation_get_password(op: *mut GMountOperation) -> *const c_char;
12701 pub fn g_mount_operation_get_password_save(op: *mut GMountOperation) -> GPasswordSave;
12702 #[cfg(feature = "v2_58")]
12703 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12704 pub fn g_mount_operation_get_pim(op: *mut GMountOperation) -> c_uint;
12705 pub fn g_mount_operation_get_username(op: *mut GMountOperation) -> *const c_char;
12706 pub fn g_mount_operation_reply(op: *mut GMountOperation, result: GMountOperationResult);
12707 pub fn g_mount_operation_set_anonymous(op: *mut GMountOperation, anonymous: gboolean);
12708 pub fn g_mount_operation_set_choice(op: *mut GMountOperation, choice: c_int);
12709 pub fn g_mount_operation_set_domain(op: *mut GMountOperation, domain: *const c_char);
12710 #[cfg(feature = "v2_58")]
12711 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12712 pub fn g_mount_operation_set_is_tcrypt_hidden_volume(
12713 op: *mut GMountOperation,
12714 hidden_volume: gboolean,
12715 );
12716 #[cfg(feature = "v2_58")]
12717 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12718 pub fn g_mount_operation_set_is_tcrypt_system_volume(
12719 op: *mut GMountOperation,
12720 system_volume: gboolean,
12721 );
12722 pub fn g_mount_operation_set_password(op: *mut GMountOperation, password: *const c_char);
12723 pub fn g_mount_operation_set_password_save(op: *mut GMountOperation, save: GPasswordSave);
12724 #[cfg(feature = "v2_58")]
12725 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12726 pub fn g_mount_operation_set_pim(op: *mut GMountOperation, pim: c_uint);
12727 pub fn g_mount_operation_set_username(op: *mut GMountOperation, username: *const c_char);
12728
12729 pub fn g_native_socket_address_get_type() -> GType;
12733 pub fn g_native_socket_address_new(native: gpointer, len: size_t) -> *mut GSocketAddress;
12734
12735 pub fn g_native_volume_monitor_get_type() -> GType;
12739
12740 pub fn g_network_address_get_type() -> GType;
12744 pub fn g_network_address_new(hostname: *const c_char, port: u16) -> *mut GNetworkAddress;
12745 pub fn g_network_address_new_loopback(port: u16) -> *mut GNetworkAddress;
12746 pub fn g_network_address_parse(
12747 host_and_port: *const c_char,
12748 default_port: u16,
12749 error: *mut *mut glib::GError,
12750 ) -> *mut GNetworkAddress;
12751 pub fn g_network_address_parse_uri(
12752 uri: *const c_char,
12753 default_port: u16,
12754 error: *mut *mut glib::GError,
12755 ) -> *mut GNetworkAddress;
12756 pub fn g_network_address_get_hostname(addr: *mut GNetworkAddress) -> *const c_char;
12757 pub fn g_network_address_get_port(addr: *mut GNetworkAddress) -> u16;
12758 pub fn g_network_address_get_scheme(addr: *mut GNetworkAddress) -> *const c_char;
12759
12760 pub fn g_network_service_get_type() -> GType;
12764 pub fn g_network_service_new(
12765 service: *const c_char,
12766 protocol: *const c_char,
12767 domain: *const c_char,
12768 ) -> *mut GNetworkService;
12769 pub fn g_network_service_get_domain(srv: *mut GNetworkService) -> *const c_char;
12770 pub fn g_network_service_get_protocol(srv: *mut GNetworkService) -> *const c_char;
12771 pub fn g_network_service_get_scheme(srv: *mut GNetworkService) -> *const c_char;
12772 pub fn g_network_service_get_service(srv: *mut GNetworkService) -> *const c_char;
12773 pub fn g_network_service_set_scheme(srv: *mut GNetworkService, scheme: *const c_char);
12774
12775 pub fn g_notification_get_type() -> GType;
12779 pub fn g_notification_new(title: *const c_char) -> *mut GNotification;
12780 pub fn g_notification_add_button(
12781 notification: *mut GNotification,
12782 label: *const c_char,
12783 detailed_action: *const c_char,
12784 );
12785 pub fn g_notification_add_button_with_target(
12786 notification: *mut GNotification,
12787 label: *const c_char,
12788 action: *const c_char,
12789 target_format: *const c_char,
12790 ...
12791 );
12792 pub fn g_notification_add_button_with_target_value(
12793 notification: *mut GNotification,
12794 label: *const c_char,
12795 action: *const c_char,
12796 target: *mut glib::GVariant,
12797 );
12798 pub fn g_notification_set_body(notification: *mut GNotification, body: *const c_char);
12799 #[cfg(feature = "v2_70")]
12800 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
12801 pub fn g_notification_set_category(notification: *mut GNotification, category: *const c_char);
12802 pub fn g_notification_set_default_action(
12803 notification: *mut GNotification,
12804 detailed_action: *const c_char,
12805 );
12806 pub fn g_notification_set_default_action_and_target(
12807 notification: *mut GNotification,
12808 action: *const c_char,
12809 target_format: *const c_char,
12810 ...
12811 );
12812 pub fn g_notification_set_default_action_and_target_value(
12813 notification: *mut GNotification,
12814 action: *const c_char,
12815 target: *mut glib::GVariant,
12816 );
12817 pub fn g_notification_set_icon(notification: *mut GNotification, icon: *mut GIcon);
12818 pub fn g_notification_set_priority(
12819 notification: *mut GNotification,
12820 priority: GNotificationPriority,
12821 );
12822 pub fn g_notification_set_title(notification: *mut GNotification, title: *const c_char);
12823 pub fn g_notification_set_urgent(notification: *mut GNotification, urgent: gboolean);
12824
12825 pub fn g_output_stream_get_type() -> GType;
12829 pub fn g_output_stream_clear_pending(stream: *mut GOutputStream);
12830 pub fn g_output_stream_close(
12831 stream: *mut GOutputStream,
12832 cancellable: *mut GCancellable,
12833 error: *mut *mut glib::GError,
12834 ) -> gboolean;
12835 pub fn g_output_stream_close_async(
12836 stream: *mut GOutputStream,
12837 io_priority: c_int,
12838 cancellable: *mut GCancellable,
12839 callback: GAsyncReadyCallback,
12840 user_data: gpointer,
12841 );
12842 pub fn g_output_stream_close_finish(
12843 stream: *mut GOutputStream,
12844 result: *mut GAsyncResult,
12845 error: *mut *mut glib::GError,
12846 ) -> gboolean;
12847 pub fn g_output_stream_flush(
12848 stream: *mut GOutputStream,
12849 cancellable: *mut GCancellable,
12850 error: *mut *mut glib::GError,
12851 ) -> gboolean;
12852 pub fn g_output_stream_flush_async(
12853 stream: *mut GOutputStream,
12854 io_priority: c_int,
12855 cancellable: *mut GCancellable,
12856 callback: GAsyncReadyCallback,
12857 user_data: gpointer,
12858 );
12859 pub fn g_output_stream_flush_finish(
12860 stream: *mut GOutputStream,
12861 result: *mut GAsyncResult,
12862 error: *mut *mut glib::GError,
12863 ) -> gboolean;
12864 pub fn g_output_stream_has_pending(stream: *mut GOutputStream) -> gboolean;
12865 pub fn g_output_stream_is_closed(stream: *mut GOutputStream) -> gboolean;
12866 pub fn g_output_stream_is_closing(stream: *mut GOutputStream) -> gboolean;
12867 pub fn g_output_stream_printf(
12868 stream: *mut GOutputStream,
12869 bytes_written: *mut size_t,
12870 cancellable: *mut GCancellable,
12871 error: *mut *mut glib::GError,
12872 format: *const c_char,
12873 ...
12874 ) -> gboolean;
12875 pub fn g_output_stream_set_pending(
12876 stream: *mut GOutputStream,
12877 error: *mut *mut glib::GError,
12878 ) -> gboolean;
12879 pub fn g_output_stream_splice(
12880 stream: *mut GOutputStream,
12881 source: *mut GInputStream,
12882 flags: GOutputStreamSpliceFlags,
12883 cancellable: *mut GCancellable,
12884 error: *mut *mut glib::GError,
12885 ) -> ssize_t;
12886 pub fn g_output_stream_splice_async(
12887 stream: *mut GOutputStream,
12888 source: *mut GInputStream,
12889 flags: GOutputStreamSpliceFlags,
12890 io_priority: c_int,
12891 cancellable: *mut GCancellable,
12892 callback: GAsyncReadyCallback,
12893 user_data: gpointer,
12894 );
12895 pub fn g_output_stream_splice_finish(
12896 stream: *mut GOutputStream,
12897 result: *mut GAsyncResult,
12898 error: *mut *mut glib::GError,
12899 ) -> ssize_t;
12900 pub fn g_output_stream_write(
12902 stream: *mut GOutputStream,
12903 buffer: *mut u8,
12904 count: size_t,
12905 cancellable: *mut GCancellable,
12906 error: *mut *mut glib::GError,
12907 ) -> ssize_t;
12908 pub fn g_output_stream_write_all(
12909 stream: *mut GOutputStream,
12910 buffer: *mut u8,
12911 count: size_t,
12912 bytes_written: *mut size_t,
12913 cancellable: *mut GCancellable,
12914 error: *mut *mut glib::GError,
12915 ) -> gboolean;
12916 pub fn g_output_stream_write_all_async(
12917 stream: *mut GOutputStream,
12918 buffer: *mut u8,
12919 count: size_t,
12920 io_priority: c_int,
12921 cancellable: *mut GCancellable,
12922 callback: GAsyncReadyCallback,
12923 user_data: gpointer,
12924 );
12925 pub fn g_output_stream_write_all_finish(
12926 stream: *mut GOutputStream,
12927 result: *mut GAsyncResult,
12928 bytes_written: *mut size_t,
12929 error: *mut *mut glib::GError,
12930 ) -> gboolean;
12931 pub fn g_output_stream_write_async(
12932 stream: *mut GOutputStream,
12933 buffer: *mut u8,
12934 count: size_t,
12935 io_priority: c_int,
12936 cancellable: *mut GCancellable,
12937 callback: GAsyncReadyCallback,
12938 user_data: gpointer,
12939 );
12940 pub fn g_output_stream_write_bytes(
12941 stream: *mut GOutputStream,
12942 bytes: *mut glib::GBytes,
12943 cancellable: *mut GCancellable,
12944 error: *mut *mut glib::GError,
12945 ) -> ssize_t;
12946 pub fn g_output_stream_write_bytes_async(
12947 stream: *mut GOutputStream,
12948 bytes: *mut glib::GBytes,
12949 io_priority: c_int,
12950 cancellable: *mut GCancellable,
12951 callback: GAsyncReadyCallback,
12952 user_data: gpointer,
12953 );
12954 pub fn g_output_stream_write_bytes_finish(
12955 stream: *mut GOutputStream,
12956 result: *mut GAsyncResult,
12957 error: *mut *mut glib::GError,
12958 ) -> ssize_t;
12959 pub fn g_output_stream_write_finish(
12960 stream: *mut GOutputStream,
12961 result: *mut GAsyncResult,
12962 error: *mut *mut glib::GError,
12963 ) -> ssize_t;
12964 #[cfg(feature = "v2_60")]
12965 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12966 pub fn g_output_stream_writev(
12967 stream: *mut GOutputStream,
12968 vectors: *const GOutputVector,
12969 n_vectors: size_t,
12970 bytes_written: *mut size_t,
12971 cancellable: *mut GCancellable,
12972 error: *mut *mut glib::GError,
12973 ) -> gboolean;
12974 #[cfg(feature = "v2_60")]
12975 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12976 pub fn g_output_stream_writev_all(
12977 stream: *mut GOutputStream,
12978 vectors: *mut GOutputVector,
12979 n_vectors: size_t,
12980 bytes_written: *mut size_t,
12981 cancellable: *mut GCancellable,
12982 error: *mut *mut glib::GError,
12983 ) -> gboolean;
12984 #[cfg(feature = "v2_60")]
12985 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12986 pub fn g_output_stream_writev_all_async(
12987 stream: *mut GOutputStream,
12988 vectors: *mut GOutputVector,
12989 n_vectors: size_t,
12990 io_priority: c_int,
12991 cancellable: *mut GCancellable,
12992 callback: GAsyncReadyCallback,
12993 user_data: gpointer,
12994 );
12995 #[cfg(feature = "v2_60")]
12996 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12997 pub fn g_output_stream_writev_all_finish(
12998 stream: *mut GOutputStream,
12999 result: *mut GAsyncResult,
13000 bytes_written: *mut size_t,
13001 error: *mut *mut glib::GError,
13002 ) -> gboolean;
13003 #[cfg(feature = "v2_60")]
13004 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13005 pub fn g_output_stream_writev_async(
13006 stream: *mut GOutputStream,
13007 vectors: *const GOutputVector,
13008 n_vectors: size_t,
13009 io_priority: c_int,
13010 cancellable: *mut GCancellable,
13011 callback: GAsyncReadyCallback,
13012 user_data: gpointer,
13013 );
13014 #[cfg(feature = "v2_60")]
13015 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13016 pub fn g_output_stream_writev_finish(
13017 stream: *mut GOutputStream,
13018 result: *mut GAsyncResult,
13019 bytes_written: *mut size_t,
13020 error: *mut *mut glib::GError,
13021 ) -> gboolean;
13022
13023 pub fn g_permission_get_type() -> GType;
13027 pub fn g_permission_acquire(
13028 permission: *mut GPermission,
13029 cancellable: *mut GCancellable,
13030 error: *mut *mut glib::GError,
13031 ) -> gboolean;
13032 pub fn g_permission_acquire_async(
13033 permission: *mut GPermission,
13034 cancellable: *mut GCancellable,
13035 callback: GAsyncReadyCallback,
13036 user_data: gpointer,
13037 );
13038 pub fn g_permission_acquire_finish(
13039 permission: *mut GPermission,
13040 result: *mut GAsyncResult,
13041 error: *mut *mut glib::GError,
13042 ) -> gboolean;
13043 pub fn g_permission_get_allowed(permission: *mut GPermission) -> gboolean;
13044 pub fn g_permission_get_can_acquire(permission: *mut GPermission) -> gboolean;
13045 pub fn g_permission_get_can_release(permission: *mut GPermission) -> gboolean;
13046 pub fn g_permission_impl_update(
13047 permission: *mut GPermission,
13048 allowed: gboolean,
13049 can_acquire: gboolean,
13050 can_release: gboolean,
13051 );
13052 pub fn g_permission_release(
13053 permission: *mut GPermission,
13054 cancellable: *mut GCancellable,
13055 error: *mut *mut glib::GError,
13056 ) -> gboolean;
13057 pub fn g_permission_release_async(
13058 permission: *mut GPermission,
13059 cancellable: *mut GCancellable,
13060 callback: GAsyncReadyCallback,
13061 user_data: gpointer,
13062 );
13063 pub fn g_permission_release_finish(
13064 permission: *mut GPermission,
13065 result: *mut GAsyncResult,
13066 error: *mut *mut glib::GError,
13067 ) -> gboolean;
13068
13069 pub fn g_property_action_get_type() -> GType;
13073 pub fn g_property_action_new(
13074 name: *const c_char,
13075 object: *mut gobject::GObject,
13076 property_name: *const c_char,
13077 ) -> *mut GPropertyAction;
13078
13079 pub fn g_proxy_address_get_type() -> GType;
13083 pub fn g_proxy_address_new(
13084 inetaddr: *mut GInetAddress,
13085 port: u16,
13086 protocol: *const c_char,
13087 dest_hostname: *const c_char,
13088 dest_port: u16,
13089 username: *const c_char,
13090 password: *const c_char,
13091 ) -> *mut GSocketAddress;
13092 pub fn g_proxy_address_get_destination_hostname(proxy: *mut GProxyAddress) -> *const c_char;
13093 pub fn g_proxy_address_get_destination_port(proxy: *mut GProxyAddress) -> u16;
13094 pub fn g_proxy_address_get_destination_protocol(proxy: *mut GProxyAddress) -> *const c_char;
13095 pub fn g_proxy_address_get_password(proxy: *mut GProxyAddress) -> *const c_char;
13096 pub fn g_proxy_address_get_protocol(proxy: *mut GProxyAddress) -> *const c_char;
13097 pub fn g_proxy_address_get_uri(proxy: *mut GProxyAddress) -> *const c_char;
13098 pub fn g_proxy_address_get_username(proxy: *mut GProxyAddress) -> *const c_char;
13099
13100 pub fn g_proxy_address_enumerator_get_type() -> GType;
13104
13105 pub fn g_resolver_get_type() -> GType;
13109 pub fn g_resolver_free_addresses(addresses: *mut glib::GList);
13110 pub fn g_resolver_free_targets(targets: *mut glib::GList);
13111 pub fn g_resolver_get_default() -> *mut GResolver;
13112 #[cfg(feature = "v2_78")]
13113 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
13114 pub fn g_resolver_get_timeout(resolver: *mut GResolver) -> c_uint;
13115 pub fn g_resolver_lookup_by_address(
13116 resolver: *mut GResolver,
13117 address: *mut GInetAddress,
13118 cancellable: *mut GCancellable,
13119 error: *mut *mut glib::GError,
13120 ) -> *mut c_char;
13121 pub fn g_resolver_lookup_by_address_async(
13122 resolver: *mut GResolver,
13123 address: *mut GInetAddress,
13124 cancellable: *mut GCancellable,
13125 callback: GAsyncReadyCallback,
13126 user_data: gpointer,
13127 );
13128 pub fn g_resolver_lookup_by_address_finish(
13129 resolver: *mut GResolver,
13130 result: *mut GAsyncResult,
13131 error: *mut *mut glib::GError,
13132 ) -> *mut c_char;
13133 pub fn g_resolver_lookup_by_name(
13134 resolver: *mut GResolver,
13135 hostname: *const c_char,
13136 cancellable: *mut GCancellable,
13137 error: *mut *mut glib::GError,
13138 ) -> *mut glib::GList;
13139 pub fn g_resolver_lookup_by_name_async(
13140 resolver: *mut GResolver,
13141 hostname: *const c_char,
13142 cancellable: *mut GCancellable,
13143 callback: GAsyncReadyCallback,
13144 user_data: gpointer,
13145 );
13146 pub fn g_resolver_lookup_by_name_finish(
13147 resolver: *mut GResolver,
13148 result: *mut GAsyncResult,
13149 error: *mut *mut glib::GError,
13150 ) -> *mut glib::GList;
13151 #[cfg(feature = "v2_60")]
13152 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13153 pub fn g_resolver_lookup_by_name_with_flags(
13154 resolver: *mut GResolver,
13155 hostname: *const c_char,
13156 flags: GResolverNameLookupFlags,
13157 cancellable: *mut GCancellable,
13158 error: *mut *mut glib::GError,
13159 ) -> *mut glib::GList;
13160 #[cfg(feature = "v2_60")]
13161 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13162 pub fn g_resolver_lookup_by_name_with_flags_async(
13163 resolver: *mut GResolver,
13164 hostname: *const c_char,
13165 flags: GResolverNameLookupFlags,
13166 cancellable: *mut GCancellable,
13167 callback: GAsyncReadyCallback,
13168 user_data: gpointer,
13169 );
13170 #[cfg(feature = "v2_60")]
13171 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13172 pub fn g_resolver_lookup_by_name_with_flags_finish(
13173 resolver: *mut GResolver,
13174 result: *mut GAsyncResult,
13175 error: *mut *mut glib::GError,
13176 ) -> *mut glib::GList;
13177 pub fn g_resolver_lookup_records(
13178 resolver: *mut GResolver,
13179 rrname: *const c_char,
13180 record_type: GResolverRecordType,
13181 cancellable: *mut GCancellable,
13182 error: *mut *mut glib::GError,
13183 ) -> *mut glib::GList;
13184 pub fn g_resolver_lookup_records_async(
13185 resolver: *mut GResolver,
13186 rrname: *const c_char,
13187 record_type: GResolverRecordType,
13188 cancellable: *mut GCancellable,
13189 callback: GAsyncReadyCallback,
13190 user_data: gpointer,
13191 );
13192 pub fn g_resolver_lookup_records_finish(
13193 resolver: *mut GResolver,
13194 result: *mut GAsyncResult,
13195 error: *mut *mut glib::GError,
13196 ) -> *mut glib::GList;
13197 pub fn g_resolver_lookup_service(
13198 resolver: *mut GResolver,
13199 service: *const c_char,
13200 protocol: *const c_char,
13201 domain: *const c_char,
13202 cancellable: *mut GCancellable,
13203 error: *mut *mut glib::GError,
13204 ) -> *mut glib::GList;
13205 pub fn g_resolver_lookup_service_async(
13206 resolver: *mut GResolver,
13207 service: *const c_char,
13208 protocol: *const c_char,
13209 domain: *const c_char,
13210 cancellable: *mut GCancellable,
13211 callback: GAsyncReadyCallback,
13212 user_data: gpointer,
13213 );
13214 pub fn g_resolver_lookup_service_finish(
13215 resolver: *mut GResolver,
13216 result: *mut GAsyncResult,
13217 error: *mut *mut glib::GError,
13218 ) -> *mut glib::GList;
13219 pub fn g_resolver_set_default(resolver: *mut GResolver);
13220 #[cfg(feature = "v2_78")]
13221 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
13222 pub fn g_resolver_set_timeout(resolver: *mut GResolver, timeout_ms: c_uint);
13223
13224 pub fn g_settings_get_type() -> GType;
13228 pub fn g_settings_new(schema_id: *const c_char) -> *mut GSettings;
13229 pub fn g_settings_new_full(
13230 schema: *mut GSettingsSchema,
13231 backend: *mut GSettingsBackend,
13232 path: *const c_char,
13233 ) -> *mut GSettings;
13234 pub fn g_settings_new_with_backend(
13235 schema_id: *const c_char,
13236 backend: *mut GSettingsBackend,
13237 ) -> *mut GSettings;
13238 pub fn g_settings_new_with_backend_and_path(
13239 schema_id: *const c_char,
13240 backend: *mut GSettingsBackend,
13241 path: *const c_char,
13242 ) -> *mut GSettings;
13243 pub fn g_settings_new_with_path(
13244 schema_id: *const c_char,
13245 path: *const c_char,
13246 ) -> *mut GSettings;
13247 pub fn g_settings_list_relocatable_schemas() -> *const *const c_char;
13248 pub fn g_settings_list_schemas() -> *const *const c_char;
13249 pub fn g_settings_sync();
13250 pub fn g_settings_unbind(object: *mut gobject::GObject, property: *const c_char);
13251 pub fn g_settings_apply(settings: *mut GSettings);
13252 pub fn g_settings_bind(
13253 settings: *mut GSettings,
13254 key: *const c_char,
13255 object: *mut gobject::GObject,
13256 property: *const c_char,
13257 flags: GSettingsBindFlags,
13258 );
13259 pub fn g_settings_bind_with_mapping(
13260 settings: *mut GSettings,
13261 key: *const c_char,
13262 object: *mut gobject::GObject,
13263 property: *const c_char,
13264 flags: GSettingsBindFlags,
13265 get_mapping: GSettingsBindGetMapping,
13266 set_mapping: GSettingsBindSetMapping,
13267 user_data: gpointer,
13268 destroy: glib::GDestroyNotify,
13269 );
13270 #[cfg(feature = "v2_82")]
13271 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
13272 pub fn g_settings_bind_with_mapping_closures(
13273 settings: *mut GSettings,
13274 key: *const c_char,
13275 object: *mut gobject::GObject,
13276 property: *const c_char,
13277 flags: GSettingsBindFlags,
13278 get_mapping: *mut gobject::GClosure,
13279 set_mapping: *mut gobject::GClosure,
13280 );
13281 pub fn g_settings_bind_writable(
13282 settings: *mut GSettings,
13283 key: *const c_char,
13284 object: *mut gobject::GObject,
13285 property: *const c_char,
13286 inverted: gboolean,
13287 );
13288 pub fn g_settings_create_action(settings: *mut GSettings, key: *const c_char) -> *mut GAction;
13289 pub fn g_settings_delay(settings: *mut GSettings);
13290 pub fn g_settings_get(settings: *mut GSettings, key: *const c_char, format: *const c_char, ...);
13291 pub fn g_settings_get_boolean(settings: *mut GSettings, key: *const c_char) -> gboolean;
13292 pub fn g_settings_get_child(settings: *mut GSettings, name: *const c_char) -> *mut GSettings;
13293 pub fn g_settings_get_default_value(
13294 settings: *mut GSettings,
13295 key: *const c_char,
13296 ) -> *mut glib::GVariant;
13297 pub fn g_settings_get_double(settings: *mut GSettings, key: *const c_char) -> c_double;
13298 pub fn g_settings_get_enum(settings: *mut GSettings, key: *const c_char) -> c_int;
13299 pub fn g_settings_get_flags(settings: *mut GSettings, key: *const c_char) -> c_uint;
13300 pub fn g_settings_get_has_unapplied(settings: *mut GSettings) -> gboolean;
13301 pub fn g_settings_get_int(settings: *mut GSettings, key: *const c_char) -> c_int;
13302 pub fn g_settings_get_int64(settings: *mut GSettings, key: *const c_char) -> i64;
13303 pub fn g_settings_get_mapped(
13304 settings: *mut GSettings,
13305 key: *const c_char,
13306 mapping: GSettingsGetMapping,
13307 user_data: gpointer,
13308 ) -> gpointer;
13309 pub fn g_settings_get_range(
13310 settings: *mut GSettings,
13311 key: *const c_char,
13312 ) -> *mut glib::GVariant;
13313 pub fn g_settings_get_string(settings: *mut GSettings, key: *const c_char) -> *mut c_char;
13314 pub fn g_settings_get_strv(settings: *mut GSettings, key: *const c_char) -> *mut *mut c_char;
13315 pub fn g_settings_get_uint(settings: *mut GSettings, key: *const c_char) -> c_uint;
13316 pub fn g_settings_get_uint64(settings: *mut GSettings, key: *const c_char) -> u64;
13317 pub fn g_settings_get_user_value(
13318 settings: *mut GSettings,
13319 key: *const c_char,
13320 ) -> *mut glib::GVariant;
13321 pub fn g_settings_get_value(
13322 settings: *mut GSettings,
13323 key: *const c_char,
13324 ) -> *mut glib::GVariant;
13325 pub fn g_settings_is_writable(settings: *mut GSettings, name: *const c_char) -> gboolean;
13326 pub fn g_settings_list_children(settings: *mut GSettings) -> *mut *mut c_char;
13327 pub fn g_settings_list_keys(settings: *mut GSettings) -> *mut *mut c_char;
13328 pub fn g_settings_range_check(
13329 settings: *mut GSettings,
13330 key: *const c_char,
13331 value: *mut glib::GVariant,
13332 ) -> gboolean;
13333 pub fn g_settings_reset(settings: *mut GSettings, key: *const c_char);
13334 pub fn g_settings_revert(settings: *mut GSettings);
13335 pub fn g_settings_set(
13336 settings: *mut GSettings,
13337 key: *const c_char,
13338 format: *const c_char,
13339 ...
13340 ) -> gboolean;
13341 pub fn g_settings_set_boolean(
13342 settings: *mut GSettings,
13343 key: *const c_char,
13344 value: gboolean,
13345 ) -> gboolean;
13346 pub fn g_settings_set_double(
13347 settings: *mut GSettings,
13348 key: *const c_char,
13349 value: c_double,
13350 ) -> gboolean;
13351 pub fn g_settings_set_enum(
13352 settings: *mut GSettings,
13353 key: *const c_char,
13354 value: c_int,
13355 ) -> gboolean;
13356 pub fn g_settings_set_flags(
13357 settings: *mut GSettings,
13358 key: *const c_char,
13359 value: c_uint,
13360 ) -> gboolean;
13361 pub fn g_settings_set_int(
13362 settings: *mut GSettings,
13363 key: *const c_char,
13364 value: c_int,
13365 ) -> gboolean;
13366 pub fn g_settings_set_int64(
13367 settings: *mut GSettings,
13368 key: *const c_char,
13369 value: i64,
13370 ) -> gboolean;
13371 pub fn g_settings_set_string(
13372 settings: *mut GSettings,
13373 key: *const c_char,
13374 value: *const c_char,
13375 ) -> gboolean;
13376 pub fn g_settings_set_strv(
13377 settings: *mut GSettings,
13378 key: *const c_char,
13379 value: *const *const c_char,
13380 ) -> gboolean;
13381 pub fn g_settings_set_uint(
13382 settings: *mut GSettings,
13383 key: *const c_char,
13384 value: c_uint,
13385 ) -> gboolean;
13386 pub fn g_settings_set_uint64(
13387 settings: *mut GSettings,
13388 key: *const c_char,
13389 value: u64,
13390 ) -> gboolean;
13391 pub fn g_settings_set_value(
13392 settings: *mut GSettings,
13393 key: *const c_char,
13394 value: *mut glib::GVariant,
13395 ) -> gboolean;
13396
13397 pub fn g_settings_backend_get_type() -> GType;
13401 pub fn g_settings_backend_flatten_tree(
13402 tree: *mut glib::GTree,
13403 path: *mut *mut c_char,
13404 keys: *mut *mut *const c_char,
13405 values: *mut *mut *mut glib::GVariant,
13406 );
13407 pub fn g_settings_backend_get_default() -> *mut GSettingsBackend;
13408 pub fn g_settings_backend_changed(
13409 backend: *mut GSettingsBackend,
13410 key: *const c_char,
13411 origin_tag: gpointer,
13412 );
13413 pub fn g_settings_backend_changed_tree(
13414 backend: *mut GSettingsBackend,
13415 tree: *mut glib::GTree,
13416 origin_tag: gpointer,
13417 );
13418 pub fn g_settings_backend_keys_changed(
13419 backend: *mut GSettingsBackend,
13420 path: *const c_char,
13421 items: *const *const c_char,
13422 origin_tag: gpointer,
13423 );
13424 pub fn g_settings_backend_path_changed(
13425 backend: *mut GSettingsBackend,
13426 path: *const c_char,
13427 origin_tag: gpointer,
13428 );
13429 pub fn g_settings_backend_path_writable_changed(
13430 backend: *mut GSettingsBackend,
13431 path: *const c_char,
13432 );
13433 pub fn g_settings_backend_writable_changed(backend: *mut GSettingsBackend, key: *const c_char);
13434
13435 pub fn g_simple_action_get_type() -> GType;
13439 pub fn g_simple_action_new(
13440 name: *const c_char,
13441 parameter_type: *const glib::GVariantType,
13442 ) -> *mut GSimpleAction;
13443 pub fn g_simple_action_new_stateful(
13444 name: *const c_char,
13445 parameter_type: *const glib::GVariantType,
13446 state: *mut glib::GVariant,
13447 ) -> *mut GSimpleAction;
13448 pub fn g_simple_action_set_enabled(simple: *mut GSimpleAction, enabled: gboolean);
13449 pub fn g_simple_action_set_state(simple: *mut GSimpleAction, value: *mut glib::GVariant);
13450 pub fn g_simple_action_set_state_hint(
13451 simple: *mut GSimpleAction,
13452 state_hint: *mut glib::GVariant,
13453 );
13454
13455 pub fn g_simple_action_group_get_type() -> GType;
13459 pub fn g_simple_action_group_new() -> *mut GSimpleActionGroup;
13460 pub fn g_simple_action_group_add_entries(
13461 simple: *mut GSimpleActionGroup,
13462 entries: *const GActionEntry,
13463 n_entries: c_int,
13464 user_data: gpointer,
13465 );
13466 pub fn g_simple_action_group_insert(simple: *mut GSimpleActionGroup, action: *mut GAction);
13467 pub fn g_simple_action_group_lookup(
13468 simple: *mut GSimpleActionGroup,
13469 action_name: *const c_char,
13470 ) -> *mut GAction;
13471 pub fn g_simple_action_group_remove(
13472 simple: *mut GSimpleActionGroup,
13473 action_name: *const c_char,
13474 );
13475
13476 pub fn g_simple_async_result_get_type() -> GType;
13480 pub fn g_simple_async_result_new(
13481 source_object: *mut gobject::GObject,
13482 callback: GAsyncReadyCallback,
13483 user_data: gpointer,
13484 source_tag: gpointer,
13485 ) -> *mut GSimpleAsyncResult;
13486 pub fn g_simple_async_result_new_error(
13487 source_object: *mut gobject::GObject,
13488 callback: GAsyncReadyCallback,
13489 user_data: gpointer,
13490 domain: glib::GQuark,
13491 code: c_int,
13492 format: *const c_char,
13493 ...
13494 ) -> *mut GSimpleAsyncResult;
13495 pub fn g_simple_async_result_new_from_error(
13496 source_object: *mut gobject::GObject,
13497 callback: GAsyncReadyCallback,
13498 user_data: gpointer,
13499 error: *const glib::GError,
13500 ) -> *mut GSimpleAsyncResult;
13501 pub fn g_simple_async_result_new_take_error(
13502 source_object: *mut gobject::GObject,
13503 callback: GAsyncReadyCallback,
13504 user_data: gpointer,
13505 error: *mut glib::GError,
13506 ) -> *mut GSimpleAsyncResult;
13507 pub fn g_simple_async_result_is_valid(
13508 result: *mut GAsyncResult,
13509 source: *mut gobject::GObject,
13510 source_tag: gpointer,
13511 ) -> gboolean;
13512 pub fn g_simple_async_result_complete(simple: *mut GSimpleAsyncResult);
13513 pub fn g_simple_async_result_complete_in_idle(simple: *mut GSimpleAsyncResult);
13514 pub fn g_simple_async_result_get_op_res_gboolean(simple: *mut GSimpleAsyncResult) -> gboolean;
13515 pub fn g_simple_async_result_get_op_res_gpointer(simple: *mut GSimpleAsyncResult) -> gpointer;
13516 pub fn g_simple_async_result_get_op_res_gssize(simple: *mut GSimpleAsyncResult) -> ssize_t;
13517 pub fn g_simple_async_result_get_source_tag(simple: *mut GSimpleAsyncResult) -> gpointer;
13518 pub fn g_simple_async_result_propagate_error(
13519 simple: *mut GSimpleAsyncResult,
13520 error: *mut *mut glib::GError,
13521 ) -> gboolean;
13522 pub fn g_simple_async_result_run_in_thread(
13523 simple: *mut GSimpleAsyncResult,
13524 func: GSimpleAsyncThreadFunc,
13525 io_priority: c_int,
13526 cancellable: *mut GCancellable,
13527 );
13528 pub fn g_simple_async_result_set_check_cancellable(
13529 simple: *mut GSimpleAsyncResult,
13530 check_cancellable: *mut GCancellable,
13531 );
13532 pub fn g_simple_async_result_set_error(
13533 simple: *mut GSimpleAsyncResult,
13534 domain: glib::GQuark,
13535 code: c_int,
13536 format: *const c_char,
13537 ...
13538 );
13539 pub fn g_simple_async_result_set_from_error(
13541 simple: *mut GSimpleAsyncResult,
13542 error: *const glib::GError,
13543 );
13544 pub fn g_simple_async_result_set_handle_cancellation(
13545 simple: *mut GSimpleAsyncResult,
13546 handle_cancellation: gboolean,
13547 );
13548 pub fn g_simple_async_result_set_op_res_gboolean(
13549 simple: *mut GSimpleAsyncResult,
13550 op_res: gboolean,
13551 );
13552 pub fn g_simple_async_result_set_op_res_gpointer(
13553 simple: *mut GSimpleAsyncResult,
13554 op_res: gpointer,
13555 destroy_op_res: glib::GDestroyNotify,
13556 );
13557 pub fn g_simple_async_result_set_op_res_gssize(
13558 simple: *mut GSimpleAsyncResult,
13559 op_res: ssize_t,
13560 );
13561 pub fn g_simple_async_result_take_error(
13562 simple: *mut GSimpleAsyncResult,
13563 error: *mut glib::GError,
13564 );
13565
13566 pub fn g_simple_io_stream_get_type() -> GType;
13570 pub fn g_simple_io_stream_new(
13571 input_stream: *mut GInputStream,
13572 output_stream: *mut GOutputStream,
13573 ) -> *mut GIOStream;
13574
13575 pub fn g_simple_permission_get_type() -> GType;
13579 pub fn g_simple_permission_new(allowed: gboolean) -> *mut GPermission;
13580
13581 pub fn g_simple_proxy_resolver_get_type() -> GType;
13585 pub fn g_simple_proxy_resolver_new(
13586 default_proxy: *const c_char,
13587 ignore_hosts: *mut *mut c_char,
13588 ) -> *mut GProxyResolver;
13589 pub fn g_simple_proxy_resolver_set_default_proxy(
13590 resolver: *mut GSimpleProxyResolver,
13591 default_proxy: *const c_char,
13592 );
13593 pub fn g_simple_proxy_resolver_set_ignore_hosts(
13594 resolver: *mut GSimpleProxyResolver,
13595 ignore_hosts: *mut *mut c_char,
13596 );
13597 pub fn g_simple_proxy_resolver_set_uri_proxy(
13598 resolver: *mut GSimpleProxyResolver,
13599 uri_scheme: *const c_char,
13600 proxy: *const c_char,
13601 );
13602
13603 pub fn g_socket_get_type() -> GType;
13607 pub fn g_socket_new(
13608 family: GSocketFamily,
13609 type_: GSocketType,
13610 protocol: GSocketProtocol,
13611 error: *mut *mut glib::GError,
13612 ) -> *mut GSocket;
13613 pub fn g_socket_new_from_fd(fd: c_int, error: *mut *mut glib::GError) -> *mut GSocket;
13614 pub fn g_socket_accept(
13615 socket: *mut GSocket,
13616 cancellable: *mut GCancellable,
13617 error: *mut *mut glib::GError,
13618 ) -> *mut GSocket;
13619 pub fn g_socket_bind(
13620 socket: *mut GSocket,
13621 address: *mut GSocketAddress,
13622 allow_reuse: gboolean,
13623 error: *mut *mut glib::GError,
13624 ) -> gboolean;
13625 pub fn g_socket_check_connect_result(
13626 socket: *mut GSocket,
13627 error: *mut *mut glib::GError,
13628 ) -> gboolean;
13629 pub fn g_socket_close(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
13630 pub fn g_socket_condition_check(
13631 socket: *mut GSocket,
13632 condition: glib::GIOCondition,
13633 ) -> glib::GIOCondition;
13634 pub fn g_socket_condition_timed_wait(
13635 socket: *mut GSocket,
13636 condition: glib::GIOCondition,
13637 timeout_us: i64,
13638 cancellable: *mut GCancellable,
13639 error: *mut *mut glib::GError,
13640 ) -> gboolean;
13641 pub fn g_socket_condition_wait(
13642 socket: *mut GSocket,
13643 condition: glib::GIOCondition,
13644 cancellable: *mut GCancellable,
13645 error: *mut *mut glib::GError,
13646 ) -> gboolean;
13647 pub fn g_socket_connect(
13648 socket: *mut GSocket,
13649 address: *mut GSocketAddress,
13650 cancellable: *mut GCancellable,
13651 error: *mut *mut glib::GError,
13652 ) -> gboolean;
13653 pub fn g_socket_connection_factory_create_connection(
13654 socket: *mut GSocket,
13655 ) -> *mut GSocketConnection;
13656 pub fn g_socket_create_source(
13657 socket: *mut GSocket,
13658 condition: glib::GIOCondition,
13659 cancellable: *mut GCancellable,
13660 ) -> *mut glib::GSource;
13661 pub fn g_socket_get_available_bytes(socket: *mut GSocket) -> ssize_t;
13662 pub fn g_socket_get_blocking(socket: *mut GSocket) -> gboolean;
13663 pub fn g_socket_get_broadcast(socket: *mut GSocket) -> gboolean;
13664 pub fn g_socket_get_credentials(
13665 socket: *mut GSocket,
13666 error: *mut *mut glib::GError,
13667 ) -> *mut GCredentials;
13668 pub fn g_socket_get_family(socket: *mut GSocket) -> GSocketFamily;
13669 pub fn g_socket_get_fd(socket: *mut GSocket) -> c_int;
13670 pub fn g_socket_get_keepalive(socket: *mut GSocket) -> gboolean;
13671 pub fn g_socket_get_listen_backlog(socket: *mut GSocket) -> c_int;
13672 pub fn g_socket_get_local_address(
13673 socket: *mut GSocket,
13674 error: *mut *mut glib::GError,
13675 ) -> *mut GSocketAddress;
13676 pub fn g_socket_get_multicast_loopback(socket: *mut GSocket) -> gboolean;
13677 pub fn g_socket_get_multicast_ttl(socket: *mut GSocket) -> c_uint;
13678 pub fn g_socket_get_option(
13679 socket: *mut GSocket,
13680 level: c_int,
13681 optname: c_int,
13682 value: *mut c_int,
13683 error: *mut *mut glib::GError,
13684 ) -> gboolean;
13685 pub fn g_socket_get_protocol(socket: *mut GSocket) -> GSocketProtocol;
13686 pub fn g_socket_get_remote_address(
13687 socket: *mut GSocket,
13688 error: *mut *mut glib::GError,
13689 ) -> *mut GSocketAddress;
13690 pub fn g_socket_get_socket_type(socket: *mut GSocket) -> GSocketType;
13691 pub fn g_socket_get_timeout(socket: *mut GSocket) -> c_uint;
13692 pub fn g_socket_get_ttl(socket: *mut GSocket) -> c_uint;
13693 pub fn g_socket_is_closed(socket: *mut GSocket) -> gboolean;
13694 pub fn g_socket_is_connected(socket: *mut GSocket) -> gboolean;
13695 pub fn g_socket_join_multicast_group(
13696 socket: *mut GSocket,
13697 group: *mut GInetAddress,
13698 source_specific: gboolean,
13699 iface: *const c_char,
13700 error: *mut *mut glib::GError,
13701 ) -> gboolean;
13702 pub fn g_socket_join_multicast_group_ssm(
13703 socket: *mut GSocket,
13704 group: *mut GInetAddress,
13705 source_specific: *mut GInetAddress,
13706 iface: *const c_char,
13707 error: *mut *mut glib::GError,
13708 ) -> gboolean;
13709 pub fn g_socket_leave_multicast_group(
13710 socket: *mut GSocket,
13711 group: *mut GInetAddress,
13712 source_specific: gboolean,
13713 iface: *const c_char,
13714 error: *mut *mut glib::GError,
13715 ) -> gboolean;
13716 pub fn g_socket_leave_multicast_group_ssm(
13717 socket: *mut GSocket,
13718 group: *mut GInetAddress,
13719 source_specific: *mut GInetAddress,
13720 iface: *const c_char,
13721 error: *mut *mut glib::GError,
13722 ) -> gboolean;
13723 pub fn g_socket_listen(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
13724 pub fn g_socket_receive(
13725 socket: *mut GSocket,
13726 buffer: *mut u8,
13727 size: size_t,
13728 cancellable: *mut GCancellable,
13729 error: *mut *mut glib::GError,
13730 ) -> ssize_t;
13731 #[cfg(feature = "v2_80")]
13732 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
13733 pub fn g_socket_receive_bytes(
13734 socket: *mut GSocket,
13735 size: size_t,
13736 timeout_us: i64,
13737 cancellable: *mut GCancellable,
13738 error: *mut *mut glib::GError,
13739 ) -> *mut glib::GBytes;
13740 #[cfg(feature = "v2_80")]
13741 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
13742 pub fn g_socket_receive_bytes_from(
13743 socket: *mut GSocket,
13744 address: *mut *mut GSocketAddress,
13745 size: size_t,
13746 timeout_us: i64,
13747 cancellable: *mut GCancellable,
13748 error: *mut *mut glib::GError,
13749 ) -> *mut glib::GBytes;
13750 pub fn g_socket_receive_from(
13751 socket: *mut GSocket,
13752 address: *mut *mut GSocketAddress,
13753 buffer: *mut u8,
13754 size: size_t,
13755 cancellable: *mut GCancellable,
13756 error: *mut *mut glib::GError,
13757 ) -> ssize_t;
13758 pub fn g_socket_receive_message(
13759 socket: *mut GSocket,
13760 address: *mut *mut GSocketAddress,
13761 vectors: *mut GInputVector,
13762 num_vectors: c_int,
13763 messages: *mut *mut *mut GSocketControlMessage,
13764 num_messages: *mut c_int,
13765 flags: *mut c_int,
13766 cancellable: *mut GCancellable,
13767 error: *mut *mut glib::GError,
13768 ) -> ssize_t;
13769 pub fn g_socket_receive_messages(
13770 socket: *mut GSocket,
13771 messages: *mut GInputMessage,
13772 num_messages: c_uint,
13773 flags: c_int,
13774 cancellable: *mut GCancellable,
13775 error: *mut *mut glib::GError,
13776 ) -> c_int;
13777 pub fn g_socket_receive_with_blocking(
13778 socket: *mut GSocket,
13779 buffer: *mut u8,
13780 size: size_t,
13781 blocking: gboolean,
13782 cancellable: *mut GCancellable,
13783 error: *mut *mut glib::GError,
13784 ) -> ssize_t;
13785 pub fn g_socket_send(
13786 socket: *mut GSocket,
13787 buffer: *const u8,
13788 size: size_t,
13789 cancellable: *mut GCancellable,
13790 error: *mut *mut glib::GError,
13791 ) -> ssize_t;
13792 pub fn g_socket_send_message(
13793 socket: *mut GSocket,
13794 address: *mut GSocketAddress,
13795 vectors: *mut GOutputVector,
13796 num_vectors: c_int,
13797 messages: *mut *mut GSocketControlMessage,
13798 num_messages: c_int,
13799 flags: c_int,
13800 cancellable: *mut GCancellable,
13801 error: *mut *mut glib::GError,
13802 ) -> ssize_t;
13803 #[cfg(feature = "v2_60")]
13804 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13805 pub fn g_socket_send_message_with_timeout(
13806 socket: *mut GSocket,
13807 address: *mut GSocketAddress,
13808 vectors: *const GOutputVector,
13809 num_vectors: c_int,
13810 messages: *mut *mut GSocketControlMessage,
13811 num_messages: c_int,
13812 flags: c_int,
13813 timeout_us: i64,
13814 bytes_written: *mut size_t,
13815 cancellable: *mut GCancellable,
13816 error: *mut *mut glib::GError,
13817 ) -> GPollableReturn;
13818 pub fn g_socket_send_messages(
13819 socket: *mut GSocket,
13820 messages: *mut GOutputMessage,
13821 num_messages: c_uint,
13822 flags: c_int,
13823 cancellable: *mut GCancellable,
13824 error: *mut *mut glib::GError,
13825 ) -> c_int;
13826 pub fn g_socket_send_to(
13827 socket: *mut GSocket,
13828 address: *mut GSocketAddress,
13829 buffer: *const u8,
13830 size: size_t,
13831 cancellable: *mut GCancellable,
13832 error: *mut *mut glib::GError,
13833 ) -> ssize_t;
13834 pub fn g_socket_send_with_blocking(
13835 socket: *mut GSocket,
13836 buffer: *const u8,
13837 size: size_t,
13838 blocking: gboolean,
13839 cancellable: *mut GCancellable,
13840 error: *mut *mut glib::GError,
13841 ) -> ssize_t;
13842 pub fn g_socket_set_blocking(socket: *mut GSocket, blocking: gboolean);
13843 pub fn g_socket_set_broadcast(socket: *mut GSocket, broadcast: gboolean);
13844 pub fn g_socket_set_keepalive(socket: *mut GSocket, keepalive: gboolean);
13845 pub fn g_socket_set_listen_backlog(socket: *mut GSocket, backlog: c_int);
13846 pub fn g_socket_set_multicast_loopback(socket: *mut GSocket, loopback: gboolean);
13847 pub fn g_socket_set_multicast_ttl(socket: *mut GSocket, ttl: c_uint);
13848 pub fn g_socket_set_option(
13849 socket: *mut GSocket,
13850 level: c_int,
13851 optname: c_int,
13852 value: c_int,
13853 error: *mut *mut glib::GError,
13854 ) -> gboolean;
13855 pub fn g_socket_set_timeout(socket: *mut GSocket, timeout: c_uint);
13856 pub fn g_socket_set_ttl(socket: *mut GSocket, ttl: c_uint);
13857 pub fn g_socket_shutdown(
13858 socket: *mut GSocket,
13859 shutdown_read: gboolean,
13860 shutdown_write: gboolean,
13861 error: *mut *mut glib::GError,
13862 ) -> gboolean;
13863 pub fn g_socket_speaks_ipv4(socket: *mut GSocket) -> gboolean;
13864
13865 pub fn g_socket_address_get_type() -> GType;
13869 pub fn g_socket_address_new_from_native(native: gpointer, len: size_t) -> *mut GSocketAddress;
13870 pub fn g_socket_address_get_family(address: *mut GSocketAddress) -> GSocketFamily;
13871 pub fn g_socket_address_get_native_size(address: *mut GSocketAddress) -> ssize_t;
13872 pub fn g_socket_address_to_native(
13873 address: *mut GSocketAddress,
13874 dest: gpointer,
13875 destlen: size_t,
13876 error: *mut *mut glib::GError,
13877 ) -> gboolean;
13878
13879 pub fn g_socket_address_enumerator_get_type() -> GType;
13883 pub fn g_socket_address_enumerator_next(
13884 enumerator: *mut GSocketAddressEnumerator,
13885 cancellable: *mut GCancellable,
13886 error: *mut *mut glib::GError,
13887 ) -> *mut GSocketAddress;
13888 pub fn g_socket_address_enumerator_next_async(
13889 enumerator: *mut GSocketAddressEnumerator,
13890 cancellable: *mut GCancellable,
13891 callback: GAsyncReadyCallback,
13892 user_data: gpointer,
13893 );
13894 pub fn g_socket_address_enumerator_next_finish(
13895 enumerator: *mut GSocketAddressEnumerator,
13896 result: *mut GAsyncResult,
13897 error: *mut *mut glib::GError,
13898 ) -> *mut GSocketAddress;
13899
13900 pub fn g_socket_client_get_type() -> GType;
13904 pub fn g_socket_client_new() -> *mut GSocketClient;
13905 pub fn g_socket_client_add_application_proxy(
13906 client: *mut GSocketClient,
13907 protocol: *const c_char,
13908 );
13909 pub fn g_socket_client_connect(
13910 client: *mut GSocketClient,
13911 connectable: *mut GSocketConnectable,
13912 cancellable: *mut GCancellable,
13913 error: *mut *mut glib::GError,
13914 ) -> *mut GSocketConnection;
13915 pub fn g_socket_client_connect_async(
13916 client: *mut GSocketClient,
13917 connectable: *mut GSocketConnectable,
13918 cancellable: *mut GCancellable,
13919 callback: GAsyncReadyCallback,
13920 user_data: gpointer,
13921 );
13922 pub fn g_socket_client_connect_finish(
13923 client: *mut GSocketClient,
13924 result: *mut GAsyncResult,
13925 error: *mut *mut glib::GError,
13926 ) -> *mut GSocketConnection;
13927 pub fn g_socket_client_connect_to_host(
13928 client: *mut GSocketClient,
13929 host_and_port: *const c_char,
13930 default_port: u16,
13931 cancellable: *mut GCancellable,
13932 error: *mut *mut glib::GError,
13933 ) -> *mut GSocketConnection;
13934 pub fn g_socket_client_connect_to_host_async(
13935 client: *mut GSocketClient,
13936 host_and_port: *const c_char,
13937 default_port: u16,
13938 cancellable: *mut GCancellable,
13939 callback: GAsyncReadyCallback,
13940 user_data: gpointer,
13941 );
13942 pub fn g_socket_client_connect_to_host_finish(
13943 client: *mut GSocketClient,
13944 result: *mut GAsyncResult,
13945 error: *mut *mut glib::GError,
13946 ) -> *mut GSocketConnection;
13947 pub fn g_socket_client_connect_to_service(
13948 client: *mut GSocketClient,
13949 domain: *const c_char,
13950 service: *const c_char,
13951 cancellable: *mut GCancellable,
13952 error: *mut *mut glib::GError,
13953 ) -> *mut GSocketConnection;
13954 pub fn g_socket_client_connect_to_service_async(
13955 client: *mut GSocketClient,
13956 domain: *const c_char,
13957 service: *const c_char,
13958 cancellable: *mut GCancellable,
13959 callback: GAsyncReadyCallback,
13960 user_data: gpointer,
13961 );
13962 pub fn g_socket_client_connect_to_service_finish(
13963 client: *mut GSocketClient,
13964 result: *mut GAsyncResult,
13965 error: *mut *mut glib::GError,
13966 ) -> *mut GSocketConnection;
13967 pub fn g_socket_client_connect_to_uri(
13968 client: *mut GSocketClient,
13969 uri: *const c_char,
13970 default_port: u16,
13971 cancellable: *mut GCancellable,
13972 error: *mut *mut glib::GError,
13973 ) -> *mut GSocketConnection;
13974 pub fn g_socket_client_connect_to_uri_async(
13975 client: *mut GSocketClient,
13976 uri: *const c_char,
13977 default_port: u16,
13978 cancellable: *mut GCancellable,
13979 callback: GAsyncReadyCallback,
13980 user_data: gpointer,
13981 );
13982 pub fn g_socket_client_connect_to_uri_finish(
13983 client: *mut GSocketClient,
13984 result: *mut GAsyncResult,
13985 error: *mut *mut glib::GError,
13986 ) -> *mut GSocketConnection;
13987 pub fn g_socket_client_get_enable_proxy(client: *mut GSocketClient) -> gboolean;
13988 pub fn g_socket_client_get_family(client: *mut GSocketClient) -> GSocketFamily;
13989 pub fn g_socket_client_get_local_address(client: *mut GSocketClient) -> *mut GSocketAddress;
13990 pub fn g_socket_client_get_protocol(client: *mut GSocketClient) -> GSocketProtocol;
13991 pub fn g_socket_client_get_proxy_resolver(client: *mut GSocketClient) -> *mut GProxyResolver;
13992 pub fn g_socket_client_get_socket_type(client: *mut GSocketClient) -> GSocketType;
13993 pub fn g_socket_client_get_timeout(client: *mut GSocketClient) -> c_uint;
13994 pub fn g_socket_client_get_tls(client: *mut GSocketClient) -> gboolean;
13995 pub fn g_socket_client_get_tls_validation_flags(
13996 client: *mut GSocketClient,
13997 ) -> GTlsCertificateFlags;
13998 pub fn g_socket_client_set_enable_proxy(client: *mut GSocketClient, enable: gboolean);
13999 pub fn g_socket_client_set_family(client: *mut GSocketClient, family: GSocketFamily);
14000 pub fn g_socket_client_set_local_address(
14001 client: *mut GSocketClient,
14002 address: *mut GSocketAddress,
14003 );
14004 pub fn g_socket_client_set_protocol(client: *mut GSocketClient, protocol: GSocketProtocol);
14005 pub fn g_socket_client_set_proxy_resolver(
14006 client: *mut GSocketClient,
14007 proxy_resolver: *mut GProxyResolver,
14008 );
14009 pub fn g_socket_client_set_socket_type(client: *mut GSocketClient, type_: GSocketType);
14010 pub fn g_socket_client_set_timeout(client: *mut GSocketClient, timeout: c_uint);
14011 pub fn g_socket_client_set_tls(client: *mut GSocketClient, tls: gboolean);
14012 pub fn g_socket_client_set_tls_validation_flags(
14013 client: *mut GSocketClient,
14014 flags: GTlsCertificateFlags,
14015 );
14016
14017 pub fn g_socket_connection_get_type() -> GType;
14021 pub fn g_socket_connection_factory_lookup_type(
14022 family: GSocketFamily,
14023 type_: GSocketType,
14024 protocol_id: c_int,
14025 ) -> GType;
14026 pub fn g_socket_connection_factory_register_type(
14027 g_type: GType,
14028 family: GSocketFamily,
14029 type_: GSocketType,
14030 protocol: c_int,
14031 );
14032 pub fn g_socket_connection_connect(
14033 connection: *mut GSocketConnection,
14034 address: *mut GSocketAddress,
14035 cancellable: *mut GCancellable,
14036 error: *mut *mut glib::GError,
14037 ) -> gboolean;
14038 pub fn g_socket_connection_connect_async(
14039 connection: *mut GSocketConnection,
14040 address: *mut GSocketAddress,
14041 cancellable: *mut GCancellable,
14042 callback: GAsyncReadyCallback,
14043 user_data: gpointer,
14044 );
14045 pub fn g_socket_connection_connect_finish(
14046 connection: *mut GSocketConnection,
14047 result: *mut GAsyncResult,
14048 error: *mut *mut glib::GError,
14049 ) -> gboolean;
14050 pub fn g_socket_connection_get_local_address(
14051 connection: *mut GSocketConnection,
14052 error: *mut *mut glib::GError,
14053 ) -> *mut GSocketAddress;
14054 pub fn g_socket_connection_get_remote_address(
14055 connection: *mut GSocketConnection,
14056 error: *mut *mut glib::GError,
14057 ) -> *mut GSocketAddress;
14058 pub fn g_socket_connection_get_socket(connection: *mut GSocketConnection) -> *mut GSocket;
14059 pub fn g_socket_connection_is_connected(connection: *mut GSocketConnection) -> gboolean;
14060
14061 pub fn g_socket_control_message_get_type() -> GType;
14065 pub fn g_socket_control_message_deserialize(
14066 level: c_int,
14067 type_: c_int,
14068 size: size_t,
14069 data: gpointer,
14070 ) -> *mut GSocketControlMessage;
14071 pub fn g_socket_control_message_get_level(message: *mut GSocketControlMessage) -> c_int;
14072 pub fn g_socket_control_message_get_msg_type(message: *mut GSocketControlMessage) -> c_int;
14073 pub fn g_socket_control_message_get_size(message: *mut GSocketControlMessage) -> size_t;
14074 pub fn g_socket_control_message_serialize(message: *mut GSocketControlMessage, data: gpointer);
14075
14076 pub fn g_socket_listener_get_type() -> GType;
14080 pub fn g_socket_listener_new() -> *mut GSocketListener;
14081 pub fn g_socket_listener_accept(
14082 listener: *mut GSocketListener,
14083 source_object: *mut *mut gobject::GObject,
14084 cancellable: *mut GCancellable,
14085 error: *mut *mut glib::GError,
14086 ) -> *mut GSocketConnection;
14087 pub fn g_socket_listener_accept_async(
14088 listener: *mut GSocketListener,
14089 cancellable: *mut GCancellable,
14090 callback: GAsyncReadyCallback,
14091 user_data: gpointer,
14092 );
14093 pub fn g_socket_listener_accept_finish(
14094 listener: *mut GSocketListener,
14095 result: *mut GAsyncResult,
14096 source_object: *mut *mut gobject::GObject,
14097 error: *mut *mut glib::GError,
14098 ) -> *mut GSocketConnection;
14099 pub fn g_socket_listener_accept_socket(
14100 listener: *mut GSocketListener,
14101 source_object: *mut *mut gobject::GObject,
14102 cancellable: *mut GCancellable,
14103 error: *mut *mut glib::GError,
14104 ) -> *mut GSocket;
14105 pub fn g_socket_listener_accept_socket_async(
14106 listener: *mut GSocketListener,
14107 cancellable: *mut GCancellable,
14108 callback: GAsyncReadyCallback,
14109 user_data: gpointer,
14110 );
14111 pub fn g_socket_listener_accept_socket_finish(
14112 listener: *mut GSocketListener,
14113 result: *mut GAsyncResult,
14114 source_object: *mut *mut gobject::GObject,
14115 error: *mut *mut glib::GError,
14116 ) -> *mut GSocket;
14117 pub fn g_socket_listener_add_address(
14118 listener: *mut GSocketListener,
14119 address: *mut GSocketAddress,
14120 type_: GSocketType,
14121 protocol: GSocketProtocol,
14122 source_object: *mut gobject::GObject,
14123 effective_address: *mut *mut GSocketAddress,
14124 error: *mut *mut glib::GError,
14125 ) -> gboolean;
14126 pub fn g_socket_listener_add_any_inet_port(
14127 listener: *mut GSocketListener,
14128 source_object: *mut gobject::GObject,
14129 error: *mut *mut glib::GError,
14130 ) -> u16;
14131 pub fn g_socket_listener_add_inet_port(
14132 listener: *mut GSocketListener,
14133 port: u16,
14134 source_object: *mut gobject::GObject,
14135 error: *mut *mut glib::GError,
14136 ) -> gboolean;
14137 pub fn g_socket_listener_add_socket(
14138 listener: *mut GSocketListener,
14139 socket: *mut GSocket,
14140 source_object: *mut gobject::GObject,
14141 error: *mut *mut glib::GError,
14142 ) -> gboolean;
14143 pub fn g_socket_listener_close(listener: *mut GSocketListener);
14144 pub fn g_socket_listener_set_backlog(listener: *mut GSocketListener, listen_backlog: c_int);
14145
14146 pub fn g_socket_service_get_type() -> GType;
14150 pub fn g_socket_service_new() -> *mut GSocketService;
14151 pub fn g_socket_service_is_active(service: *mut GSocketService) -> gboolean;
14152 pub fn g_socket_service_start(service: *mut GSocketService);
14153 pub fn g_socket_service_stop(service: *mut GSocketService);
14154
14155 pub fn g_subprocess_get_type() -> GType;
14159 pub fn g_subprocess_new(
14160 flags: GSubprocessFlags,
14161 error: *mut *mut glib::GError,
14162 argv0: *const c_char,
14163 ...
14164 ) -> *mut GSubprocess;
14165 pub fn g_subprocess_newv(
14166 argv: *const *const c_char,
14167 flags: GSubprocessFlags,
14168 error: *mut *mut glib::GError,
14169 ) -> *mut GSubprocess;
14170 pub fn g_subprocess_communicate(
14171 subprocess: *mut GSubprocess,
14172 stdin_buf: *mut glib::GBytes,
14173 cancellable: *mut GCancellable,
14174 stdout_buf: *mut *mut glib::GBytes,
14175 stderr_buf: *mut *mut glib::GBytes,
14176 error: *mut *mut glib::GError,
14177 ) -> gboolean;
14178 pub fn g_subprocess_communicate_async(
14179 subprocess: *mut GSubprocess,
14180 stdin_buf: *mut glib::GBytes,
14181 cancellable: *mut GCancellable,
14182 callback: GAsyncReadyCallback,
14183 user_data: gpointer,
14184 );
14185 pub fn g_subprocess_communicate_finish(
14186 subprocess: *mut GSubprocess,
14187 result: *mut GAsyncResult,
14188 stdout_buf: *mut *mut glib::GBytes,
14189 stderr_buf: *mut *mut glib::GBytes,
14190 error: *mut *mut glib::GError,
14191 ) -> gboolean;
14192 pub fn g_subprocess_communicate_utf8(
14193 subprocess: *mut GSubprocess,
14194 stdin_buf: *const c_char,
14195 cancellable: *mut GCancellable,
14196 stdout_buf: *mut *mut c_char,
14197 stderr_buf: *mut *mut c_char,
14198 error: *mut *mut glib::GError,
14199 ) -> gboolean;
14200 pub fn g_subprocess_communicate_utf8_async(
14201 subprocess: *mut GSubprocess,
14202 stdin_buf: *const c_char,
14203 cancellable: *mut GCancellable,
14204 callback: GAsyncReadyCallback,
14205 user_data: gpointer,
14206 );
14207 pub fn g_subprocess_communicate_utf8_finish(
14208 subprocess: *mut GSubprocess,
14209 result: *mut GAsyncResult,
14210 stdout_buf: *mut *mut c_char,
14211 stderr_buf: *mut *mut c_char,
14212 error: *mut *mut glib::GError,
14213 ) -> gboolean;
14214 pub fn g_subprocess_force_exit(subprocess: *mut GSubprocess);
14215 pub fn g_subprocess_get_exit_status(subprocess: *mut GSubprocess) -> c_int;
14216 pub fn g_subprocess_get_identifier(subprocess: *mut GSubprocess) -> *const c_char;
14217 pub fn g_subprocess_get_if_exited(subprocess: *mut GSubprocess) -> gboolean;
14218 pub fn g_subprocess_get_if_signaled(subprocess: *mut GSubprocess) -> gboolean;
14219 pub fn g_subprocess_get_status(subprocess: *mut GSubprocess) -> c_int;
14220 pub fn g_subprocess_get_stderr_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
14221 pub fn g_subprocess_get_stdin_pipe(subprocess: *mut GSubprocess) -> *mut GOutputStream;
14222 pub fn g_subprocess_get_stdout_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
14223 pub fn g_subprocess_get_successful(subprocess: *mut GSubprocess) -> gboolean;
14224 pub fn g_subprocess_get_term_sig(subprocess: *mut GSubprocess) -> c_int;
14225 pub fn g_subprocess_send_signal(subprocess: *mut GSubprocess, signal_num: c_int);
14226 pub fn g_subprocess_wait(
14227 subprocess: *mut GSubprocess,
14228 cancellable: *mut GCancellable,
14229 error: *mut *mut glib::GError,
14230 ) -> gboolean;
14231 pub fn g_subprocess_wait_async(
14232 subprocess: *mut GSubprocess,
14233 cancellable: *mut GCancellable,
14234 callback: GAsyncReadyCallback,
14235 user_data: gpointer,
14236 );
14237 pub fn g_subprocess_wait_check(
14238 subprocess: *mut GSubprocess,
14239 cancellable: *mut GCancellable,
14240 error: *mut *mut glib::GError,
14241 ) -> gboolean;
14242 pub fn g_subprocess_wait_check_async(
14243 subprocess: *mut GSubprocess,
14244 cancellable: *mut GCancellable,
14245 callback: GAsyncReadyCallback,
14246 user_data: gpointer,
14247 );
14248 pub fn g_subprocess_wait_check_finish(
14249 subprocess: *mut GSubprocess,
14250 result: *mut GAsyncResult,
14251 error: *mut *mut glib::GError,
14252 ) -> gboolean;
14253 pub fn g_subprocess_wait_finish(
14254 subprocess: *mut GSubprocess,
14255 result: *mut GAsyncResult,
14256 error: *mut *mut glib::GError,
14257 ) -> gboolean;
14258
14259 pub fn g_subprocess_launcher_get_type() -> GType;
14263 pub fn g_subprocess_launcher_new(flags: GSubprocessFlags) -> *mut GSubprocessLauncher;
14264 #[cfg(feature = "v2_68")]
14265 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
14266 #[cfg(unix)]
14267 #[cfg_attr(docsrs, doc(cfg(unix)))]
14268 pub fn g_subprocess_launcher_close(self_: *mut GSubprocessLauncher);
14269 pub fn g_subprocess_launcher_getenv(
14270 self_: *mut GSubprocessLauncher,
14271 variable: *const c_char,
14272 ) -> *const c_char;
14273 #[cfg(unix)]
14274 #[cfg_attr(docsrs, doc(cfg(unix)))]
14275 pub fn g_subprocess_launcher_set_child_setup(
14276 self_: *mut GSubprocessLauncher,
14277 child_setup: glib::GSpawnChildSetupFunc,
14278 user_data: gpointer,
14279 destroy_notify: glib::GDestroyNotify,
14280 );
14281 pub fn g_subprocess_launcher_set_cwd(self_: *mut GSubprocessLauncher, cwd: *const c_char);
14282 pub fn g_subprocess_launcher_set_environ(
14283 self_: *mut GSubprocessLauncher,
14284 env: *mut *mut c_char,
14285 );
14286 pub fn g_subprocess_launcher_set_flags(
14287 self_: *mut GSubprocessLauncher,
14288 flags: GSubprocessFlags,
14289 );
14290 #[cfg(unix)]
14291 #[cfg_attr(docsrs, doc(cfg(unix)))]
14292 pub fn g_subprocess_launcher_set_stderr_file_path(
14293 self_: *mut GSubprocessLauncher,
14294 path: *const c_char,
14295 );
14296 #[cfg(unix)]
14297 #[cfg_attr(docsrs, doc(cfg(unix)))]
14298 pub fn g_subprocess_launcher_set_stdin_file_path(
14299 self_: *mut GSubprocessLauncher,
14300 path: *const c_char,
14301 );
14302 #[cfg(unix)]
14303 #[cfg_attr(docsrs, doc(cfg(unix)))]
14304 pub fn g_subprocess_launcher_set_stdout_file_path(
14305 self_: *mut GSubprocessLauncher,
14306 path: *const c_char,
14307 );
14308 pub fn g_subprocess_launcher_setenv(
14309 self_: *mut GSubprocessLauncher,
14310 variable: *const c_char,
14311 value: *const c_char,
14312 overwrite: gboolean,
14313 );
14314 pub fn g_subprocess_launcher_spawn(
14315 self_: *mut GSubprocessLauncher,
14316 error: *mut *mut glib::GError,
14317 argv0: *const c_char,
14318 ...
14319 ) -> *mut GSubprocess;
14320 pub fn g_subprocess_launcher_spawnv(
14321 self_: *mut GSubprocessLauncher,
14322 argv: *const *const c_char,
14323 error: *mut *mut glib::GError,
14324 ) -> *mut GSubprocess;
14325 #[cfg(unix)]
14326 #[cfg_attr(docsrs, doc(cfg(unix)))]
14327 pub fn g_subprocess_launcher_take_fd(
14328 self_: *mut GSubprocessLauncher,
14329 source_fd: c_int,
14330 target_fd: c_int,
14331 );
14332 #[cfg(unix)]
14333 #[cfg_attr(docsrs, doc(cfg(unix)))]
14334 pub fn g_subprocess_launcher_take_stderr_fd(self_: *mut GSubprocessLauncher, fd: c_int);
14335 #[cfg(unix)]
14336 #[cfg_attr(docsrs, doc(cfg(unix)))]
14337 pub fn g_subprocess_launcher_take_stdin_fd(self_: *mut GSubprocessLauncher, fd: c_int);
14338 #[cfg(unix)]
14339 #[cfg_attr(docsrs, doc(cfg(unix)))]
14340 pub fn g_subprocess_launcher_take_stdout_fd(self_: *mut GSubprocessLauncher, fd: c_int);
14341 pub fn g_subprocess_launcher_unsetenv(self_: *mut GSubprocessLauncher, variable: *const c_char);
14342
14343 pub fn g_task_get_type() -> GType;
14347 pub fn g_task_new(
14348 source_object: *mut gobject::GObject,
14349 cancellable: *mut GCancellable,
14350 callback: GAsyncReadyCallback,
14351 callback_data: gpointer,
14352 ) -> *mut GTask;
14353 pub fn g_task_is_valid(
14354 result: *mut GAsyncResult,
14355 source_object: *mut gobject::GObject,
14356 ) -> gboolean;
14357 pub fn g_task_report_error(
14358 source_object: *mut gobject::GObject,
14359 callback: GAsyncReadyCallback,
14360 callback_data: gpointer,
14361 source_tag: gpointer,
14362 error: *mut glib::GError,
14363 );
14364 pub fn g_task_report_new_error(
14365 source_object: *mut gobject::GObject,
14366 callback: GAsyncReadyCallback,
14367 callback_data: gpointer,
14368 source_tag: gpointer,
14369 domain: glib::GQuark,
14370 code: c_int,
14371 format: *const c_char,
14372 ...
14373 );
14374 pub fn g_task_attach_source(
14375 task: *mut GTask,
14376 source: *mut glib::GSource,
14377 callback: glib::GSourceFunc,
14378 );
14379 pub fn g_task_get_cancellable(task: *mut GTask) -> *mut GCancellable;
14380 pub fn g_task_get_check_cancellable(task: *mut GTask) -> gboolean;
14381 pub fn g_task_get_completed(task: *mut GTask) -> gboolean;
14382 pub fn g_task_get_context(task: *mut GTask) -> *mut glib::GMainContext;
14383 #[cfg(feature = "v2_60")]
14384 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14385 pub fn g_task_get_name(task: *mut GTask) -> *const c_char;
14386 pub fn g_task_get_priority(task: *mut GTask) -> c_int;
14387 pub fn g_task_get_return_on_cancel(task: *mut GTask) -> gboolean;
14388 pub fn g_task_get_source_object(task: *mut GTask) -> *mut gobject::GObject;
14389 pub fn g_task_get_source_tag(task: *mut GTask) -> gpointer;
14390 pub fn g_task_get_task_data(task: *mut GTask) -> gpointer;
14391 pub fn g_task_had_error(task: *mut GTask) -> gboolean;
14392 pub fn g_task_propagate_boolean(task: *mut GTask, error: *mut *mut glib::GError) -> gboolean;
14393 pub fn g_task_propagate_int(task: *mut GTask, error: *mut *mut glib::GError) -> ssize_t;
14394 pub fn g_task_propagate_pointer(task: *mut GTask, error: *mut *mut glib::GError) -> gpointer;
14395 #[cfg(feature = "v2_64")]
14396 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
14397 pub fn g_task_propagate_value(
14398 task: *mut GTask,
14399 value: *mut gobject::GValue,
14400 error: *mut *mut glib::GError,
14401 ) -> gboolean;
14402 pub fn g_task_return_boolean(task: *mut GTask, result: gboolean);
14403 pub fn g_task_return_error(task: *mut GTask, error: *mut glib::GError);
14404 pub fn g_task_return_error_if_cancelled(task: *mut GTask) -> gboolean;
14405 pub fn g_task_return_int(task: *mut GTask, result: ssize_t);
14406 pub fn g_task_return_new_error(
14407 task: *mut GTask,
14408 domain: glib::GQuark,
14409 code: c_int,
14410 format: *const c_char,
14411 ...
14412 );
14413 #[cfg(feature = "v2_80")]
14414 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
14415 pub fn g_task_return_new_error_literal(
14416 task: *mut GTask,
14417 domain: glib::GQuark,
14418 code: c_int,
14419 message: *const c_char,
14420 );
14421 pub fn g_task_return_pointer(
14422 task: *mut GTask,
14423 result: gpointer,
14424 result_destroy: glib::GDestroyNotify,
14425 );
14426 #[cfg(feature = "v2_80")]
14427 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
14428 pub fn g_task_return_prefixed_error(
14429 task: *mut GTask,
14430 error: *mut glib::GError,
14431 format: *const c_char,
14432 ...
14433 );
14434 #[cfg(feature = "v2_64")]
14435 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
14436 pub fn g_task_return_value(task: *mut GTask, result: *mut gobject::GValue);
14437 pub fn g_task_run_in_thread(task: *mut GTask, task_func: GTaskThreadFunc);
14438 pub fn g_task_run_in_thread_sync(task: *mut GTask, task_func: GTaskThreadFunc);
14439 pub fn g_task_set_check_cancellable(task: *mut GTask, check_cancellable: gboolean);
14440 #[cfg(feature = "v2_60")]
14441 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14442 pub fn g_task_set_name(task: *mut GTask, name: *const c_char);
14443 pub fn g_task_set_priority(task: *mut GTask, priority: c_int);
14444 pub fn g_task_set_return_on_cancel(task: *mut GTask, return_on_cancel: gboolean) -> gboolean;
14445 pub fn g_task_set_source_tag(task: *mut GTask, source_tag: gpointer);
14446 #[cfg(feature = "v2_76")]
14447 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
14448 pub fn g_task_set_static_name(task: *mut GTask, name: *const c_char);
14449 pub fn g_task_set_task_data(
14450 task: *mut GTask,
14451 task_data: gpointer,
14452 task_data_destroy: glib::GDestroyNotify,
14453 );
14454
14455 pub fn g_tcp_connection_get_type() -> GType;
14459 pub fn g_tcp_connection_get_graceful_disconnect(connection: *mut GTcpConnection) -> gboolean;
14460 pub fn g_tcp_connection_set_graceful_disconnect(
14461 connection: *mut GTcpConnection,
14462 graceful_disconnect: gboolean,
14463 );
14464
14465 pub fn g_tcp_wrapper_connection_get_type() -> GType;
14469 pub fn g_tcp_wrapper_connection_new(
14470 base_io_stream: *mut GIOStream,
14471 socket: *mut GSocket,
14472 ) -> *mut GSocketConnection;
14473 pub fn g_tcp_wrapper_connection_get_base_io_stream(
14474 conn: *mut GTcpWrapperConnection,
14475 ) -> *mut GIOStream;
14476
14477 pub fn g_test_dbus_get_type() -> GType;
14481 pub fn g_test_dbus_new(flags: GTestDBusFlags) -> *mut GTestDBus;
14482 pub fn g_test_dbus_unset();
14483 pub fn g_test_dbus_add_service_dir(self_: *mut GTestDBus, path: *const c_char);
14484 pub fn g_test_dbus_down(self_: *mut GTestDBus);
14485 pub fn g_test_dbus_get_bus_address(self_: *mut GTestDBus) -> *const c_char;
14486 pub fn g_test_dbus_get_flags(self_: *mut GTestDBus) -> GTestDBusFlags;
14487 pub fn g_test_dbus_stop(self_: *mut GTestDBus);
14488 pub fn g_test_dbus_up(self_: *mut GTestDBus);
14489
14490 pub fn g_themed_icon_get_type() -> GType;
14494 pub fn g_themed_icon_new(iconname: *const c_char) -> *mut GThemedIcon;
14495 pub fn g_themed_icon_new_from_names(
14496 iconnames: *mut *mut c_char,
14497 len: c_int,
14498 ) -> *mut GThemedIcon;
14499 pub fn g_themed_icon_new_with_default_fallbacks(iconname: *const c_char) -> *mut GThemedIcon;
14500 pub fn g_themed_icon_append_name(icon: *mut GThemedIcon, iconname: *const c_char);
14501 pub fn g_themed_icon_get_names(icon: *mut GThemedIcon) -> *const *const c_char;
14502 pub fn g_themed_icon_prepend_name(icon: *mut GThemedIcon, iconname: *const c_char);
14503
14504 pub fn g_threaded_resolver_get_type() -> GType;
14508
14509 pub fn g_threaded_socket_service_get_type() -> GType;
14513 pub fn g_threaded_socket_service_new(max_threads: c_int) -> *mut GSocketService;
14514
14515 pub fn g_tls_certificate_get_type() -> GType;
14519 pub fn g_tls_certificate_new_from_file(
14520 file: *const c_char,
14521 error: *mut *mut glib::GError,
14522 ) -> *mut GTlsCertificate;
14523 #[cfg(feature = "v2_72")]
14524 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
14525 pub fn g_tls_certificate_new_from_file_with_password(
14526 file: *const c_char,
14527 password: *const c_char,
14528 error: *mut *mut glib::GError,
14529 ) -> *mut GTlsCertificate;
14530 pub fn g_tls_certificate_new_from_files(
14531 cert_file: *const c_char,
14532 key_file: *const c_char,
14533 error: *mut *mut glib::GError,
14534 ) -> *mut GTlsCertificate;
14535 pub fn g_tls_certificate_new_from_pem(
14536 data: *const c_char,
14537 length: ssize_t,
14538 error: *mut *mut glib::GError,
14539 ) -> *mut GTlsCertificate;
14540 #[cfg(feature = "v2_68")]
14541 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
14542 pub fn g_tls_certificate_new_from_pkcs11_uris(
14543 pkcs11_uri: *const c_char,
14544 private_key_pkcs11_uri: *const c_char,
14545 error: *mut *mut glib::GError,
14546 ) -> *mut GTlsCertificate;
14547 #[cfg(feature = "v2_72")]
14548 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
14549 pub fn g_tls_certificate_new_from_pkcs12(
14550 data: *const u8,
14551 length: size_t,
14552 password: *const c_char,
14553 error: *mut *mut glib::GError,
14554 ) -> *mut GTlsCertificate;
14555 pub fn g_tls_certificate_list_new_from_file(
14556 file: *const c_char,
14557 error: *mut *mut glib::GError,
14558 ) -> *mut glib::GList;
14559 #[cfg(feature = "v2_70")]
14560 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14561 pub fn g_tls_certificate_get_dns_names(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray;
14562 #[cfg(feature = "v2_70")]
14563 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14564 pub fn g_tls_certificate_get_ip_addresses(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray;
14565 pub fn g_tls_certificate_get_issuer(cert: *mut GTlsCertificate) -> *mut GTlsCertificate;
14566 #[cfg(feature = "v2_70")]
14567 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14568 pub fn g_tls_certificate_get_issuer_name(cert: *mut GTlsCertificate) -> *mut c_char;
14569 #[cfg(feature = "v2_70")]
14570 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14571 pub fn g_tls_certificate_get_not_valid_after(
14572 cert: *mut GTlsCertificate,
14573 ) -> *mut glib::GDateTime;
14574 #[cfg(feature = "v2_70")]
14575 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14576 pub fn g_tls_certificate_get_not_valid_before(
14577 cert: *mut GTlsCertificate,
14578 ) -> *mut glib::GDateTime;
14579 #[cfg(feature = "v2_70")]
14580 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14581 pub fn g_tls_certificate_get_subject_name(cert: *mut GTlsCertificate) -> *mut c_char;
14582 pub fn g_tls_certificate_is_same(
14583 cert_one: *mut GTlsCertificate,
14584 cert_two: *mut GTlsCertificate,
14585 ) -> gboolean;
14586 pub fn g_tls_certificate_verify(
14587 cert: *mut GTlsCertificate,
14588 identity: *mut GSocketConnectable,
14589 trusted_ca: *mut GTlsCertificate,
14590 ) -> GTlsCertificateFlags;
14591
14592 pub fn g_tls_connection_get_type() -> GType;
14596 pub fn g_tls_connection_emit_accept_certificate(
14597 conn: *mut GTlsConnection,
14598 peer_cert: *mut GTlsCertificate,
14599 errors: GTlsCertificateFlags,
14600 ) -> gboolean;
14601 pub fn g_tls_connection_get_certificate(conn: *mut GTlsConnection) -> *mut GTlsCertificate;
14602 #[cfg(feature = "v2_66")]
14603 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
14604 pub fn g_tls_connection_get_channel_binding_data(
14605 conn: *mut GTlsConnection,
14606 type_: GTlsChannelBindingType,
14607 data: *mut glib::GByteArray,
14608 error: *mut *mut glib::GError,
14609 ) -> gboolean;
14610 #[cfg(feature = "v2_70")]
14611 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14612 pub fn g_tls_connection_get_ciphersuite_name(conn: *mut GTlsConnection) -> *mut c_char;
14613 pub fn g_tls_connection_get_database(conn: *mut GTlsConnection) -> *mut GTlsDatabase;
14614 pub fn g_tls_connection_get_interaction(conn: *mut GTlsConnection) -> *mut GTlsInteraction;
14615 #[cfg(feature = "v2_60")]
14616 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14617 pub fn g_tls_connection_get_negotiated_protocol(conn: *mut GTlsConnection) -> *const c_char;
14618 pub fn g_tls_connection_get_peer_certificate(conn: *mut GTlsConnection)
14619 -> *mut GTlsCertificate;
14620 pub fn g_tls_connection_get_peer_certificate_errors(
14621 conn: *mut GTlsConnection,
14622 ) -> GTlsCertificateFlags;
14623 #[cfg(feature = "v2_70")]
14624 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14625 pub fn g_tls_connection_get_protocol_version(conn: *mut GTlsConnection) -> GTlsProtocolVersion;
14626 pub fn g_tls_connection_get_rehandshake_mode(conn: *mut GTlsConnection) -> GTlsRehandshakeMode;
14627 pub fn g_tls_connection_get_require_close_notify(conn: *mut GTlsConnection) -> gboolean;
14628 pub fn g_tls_connection_get_use_system_certdb(conn: *mut GTlsConnection) -> gboolean;
14629 pub fn g_tls_connection_handshake(
14630 conn: *mut GTlsConnection,
14631 cancellable: *mut GCancellable,
14632 error: *mut *mut glib::GError,
14633 ) -> gboolean;
14634 pub fn g_tls_connection_handshake_async(
14635 conn: *mut GTlsConnection,
14636 io_priority: c_int,
14637 cancellable: *mut GCancellable,
14638 callback: GAsyncReadyCallback,
14639 user_data: gpointer,
14640 );
14641 pub fn g_tls_connection_handshake_finish(
14642 conn: *mut GTlsConnection,
14643 result: *mut GAsyncResult,
14644 error: *mut *mut glib::GError,
14645 ) -> gboolean;
14646 #[cfg(feature = "v2_60")]
14647 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14648 pub fn g_tls_connection_set_advertised_protocols(
14649 conn: *mut GTlsConnection,
14650 protocols: *const *const c_char,
14651 );
14652 pub fn g_tls_connection_set_certificate(
14653 conn: *mut GTlsConnection,
14654 certificate: *mut GTlsCertificate,
14655 );
14656 pub fn g_tls_connection_set_database(conn: *mut GTlsConnection, database: *mut GTlsDatabase);
14657 pub fn g_tls_connection_set_interaction(
14658 conn: *mut GTlsConnection,
14659 interaction: *mut GTlsInteraction,
14660 );
14661 pub fn g_tls_connection_set_rehandshake_mode(
14662 conn: *mut GTlsConnection,
14663 mode: GTlsRehandshakeMode,
14664 );
14665 pub fn g_tls_connection_set_require_close_notify(
14666 conn: *mut GTlsConnection,
14667 require_close_notify: gboolean,
14668 );
14669 pub fn g_tls_connection_set_use_system_certdb(
14670 conn: *mut GTlsConnection,
14671 use_system_certdb: gboolean,
14672 );
14673
14674 pub fn g_tls_database_get_type() -> GType;
14678 pub fn g_tls_database_create_certificate_handle(
14679 self_: *mut GTlsDatabase,
14680 certificate: *mut GTlsCertificate,
14681 ) -> *mut c_char;
14682 pub fn g_tls_database_lookup_certificate_for_handle(
14683 self_: *mut GTlsDatabase,
14684 handle: *const c_char,
14685 interaction: *mut GTlsInteraction,
14686 flags: GTlsDatabaseLookupFlags,
14687 cancellable: *mut GCancellable,
14688 error: *mut *mut glib::GError,
14689 ) -> *mut GTlsCertificate;
14690 pub fn g_tls_database_lookup_certificate_for_handle_async(
14691 self_: *mut GTlsDatabase,
14692 handle: *const c_char,
14693 interaction: *mut GTlsInteraction,
14694 flags: GTlsDatabaseLookupFlags,
14695 cancellable: *mut GCancellable,
14696 callback: GAsyncReadyCallback,
14697 user_data: gpointer,
14698 );
14699 pub fn g_tls_database_lookup_certificate_for_handle_finish(
14700 self_: *mut GTlsDatabase,
14701 result: *mut GAsyncResult,
14702 error: *mut *mut glib::GError,
14703 ) -> *mut GTlsCertificate;
14704 pub fn g_tls_database_lookup_certificate_issuer(
14705 self_: *mut GTlsDatabase,
14706 certificate: *mut GTlsCertificate,
14707 interaction: *mut GTlsInteraction,
14708 flags: GTlsDatabaseLookupFlags,
14709 cancellable: *mut GCancellable,
14710 error: *mut *mut glib::GError,
14711 ) -> *mut GTlsCertificate;
14712 pub fn g_tls_database_lookup_certificate_issuer_async(
14713 self_: *mut GTlsDatabase,
14714 certificate: *mut GTlsCertificate,
14715 interaction: *mut GTlsInteraction,
14716 flags: GTlsDatabaseLookupFlags,
14717 cancellable: *mut GCancellable,
14718 callback: GAsyncReadyCallback,
14719 user_data: gpointer,
14720 );
14721 pub fn g_tls_database_lookup_certificate_issuer_finish(
14722 self_: *mut GTlsDatabase,
14723 result: *mut GAsyncResult,
14724 error: *mut *mut glib::GError,
14725 ) -> *mut GTlsCertificate;
14726 pub fn g_tls_database_lookup_certificates_issued_by(
14727 self_: *mut GTlsDatabase,
14728 issuer_raw_dn: *mut glib::GByteArray,
14729 interaction: *mut GTlsInteraction,
14730 flags: GTlsDatabaseLookupFlags,
14731 cancellable: *mut GCancellable,
14732 error: *mut *mut glib::GError,
14733 ) -> *mut glib::GList;
14734 pub fn g_tls_database_lookup_certificates_issued_by_async(
14735 self_: *mut GTlsDatabase,
14736 issuer_raw_dn: *mut glib::GByteArray,
14737 interaction: *mut GTlsInteraction,
14738 flags: GTlsDatabaseLookupFlags,
14739 cancellable: *mut GCancellable,
14740 callback: GAsyncReadyCallback,
14741 user_data: gpointer,
14742 );
14743 pub fn g_tls_database_lookup_certificates_issued_by_finish(
14744 self_: *mut GTlsDatabase,
14745 result: *mut GAsyncResult,
14746 error: *mut *mut glib::GError,
14747 ) -> *mut glib::GList;
14748 pub fn g_tls_database_verify_chain(
14749 self_: *mut GTlsDatabase,
14750 chain: *mut GTlsCertificate,
14751 purpose: *const c_char,
14752 identity: *mut GSocketConnectable,
14753 interaction: *mut GTlsInteraction,
14754 flags: GTlsDatabaseVerifyFlags,
14755 cancellable: *mut GCancellable,
14756 error: *mut *mut glib::GError,
14757 ) -> GTlsCertificateFlags;
14758 pub fn g_tls_database_verify_chain_async(
14759 self_: *mut GTlsDatabase,
14760 chain: *mut GTlsCertificate,
14761 purpose: *const c_char,
14762 identity: *mut GSocketConnectable,
14763 interaction: *mut GTlsInteraction,
14764 flags: GTlsDatabaseVerifyFlags,
14765 cancellable: *mut GCancellable,
14766 callback: GAsyncReadyCallback,
14767 user_data: gpointer,
14768 );
14769 pub fn g_tls_database_verify_chain_finish(
14770 self_: *mut GTlsDatabase,
14771 result: *mut GAsyncResult,
14772 error: *mut *mut glib::GError,
14773 ) -> GTlsCertificateFlags;
14774
14775 pub fn g_tls_interaction_get_type() -> GType;
14779 pub fn g_tls_interaction_ask_password(
14780 interaction: *mut GTlsInteraction,
14781 password: *mut GTlsPassword,
14782 cancellable: *mut GCancellable,
14783 error: *mut *mut glib::GError,
14784 ) -> GTlsInteractionResult;
14785 pub fn g_tls_interaction_ask_password_async(
14786 interaction: *mut GTlsInteraction,
14787 password: *mut GTlsPassword,
14788 cancellable: *mut GCancellable,
14789 callback: GAsyncReadyCallback,
14790 user_data: gpointer,
14791 );
14792 pub fn g_tls_interaction_ask_password_finish(
14793 interaction: *mut GTlsInteraction,
14794 result: *mut GAsyncResult,
14795 error: *mut *mut glib::GError,
14796 ) -> GTlsInteractionResult;
14797 pub fn g_tls_interaction_invoke_ask_password(
14798 interaction: *mut GTlsInteraction,
14799 password: *mut GTlsPassword,
14800 cancellable: *mut GCancellable,
14801 error: *mut *mut glib::GError,
14802 ) -> GTlsInteractionResult;
14803 pub fn g_tls_interaction_invoke_request_certificate(
14804 interaction: *mut GTlsInteraction,
14805 connection: *mut GTlsConnection,
14806 flags: GTlsCertificateRequestFlags,
14807 cancellable: *mut GCancellable,
14808 error: *mut *mut glib::GError,
14809 ) -> GTlsInteractionResult;
14810 pub fn g_tls_interaction_request_certificate(
14811 interaction: *mut GTlsInteraction,
14812 connection: *mut GTlsConnection,
14813 flags: GTlsCertificateRequestFlags,
14814 cancellable: *mut GCancellable,
14815 error: *mut *mut glib::GError,
14816 ) -> GTlsInteractionResult;
14817 pub fn g_tls_interaction_request_certificate_async(
14818 interaction: *mut GTlsInteraction,
14819 connection: *mut GTlsConnection,
14820 flags: GTlsCertificateRequestFlags,
14821 cancellable: *mut GCancellable,
14822 callback: GAsyncReadyCallback,
14823 user_data: gpointer,
14824 );
14825 pub fn g_tls_interaction_request_certificate_finish(
14826 interaction: *mut GTlsInteraction,
14827 result: *mut GAsyncResult,
14828 error: *mut *mut glib::GError,
14829 ) -> GTlsInteractionResult;
14830
14831 pub fn g_tls_password_get_type() -> GType;
14835 pub fn g_tls_password_new(
14836 flags: GTlsPasswordFlags,
14837 description: *const c_char,
14838 ) -> *mut GTlsPassword;
14839 pub fn g_tls_password_get_description(password: *mut GTlsPassword) -> *const c_char;
14840 pub fn g_tls_password_get_flags(password: *mut GTlsPassword) -> GTlsPasswordFlags;
14841 pub fn g_tls_password_get_value(password: *mut GTlsPassword, length: *mut size_t) -> *const u8;
14842 pub fn g_tls_password_get_warning(password: *mut GTlsPassword) -> *const c_char;
14843 pub fn g_tls_password_set_description(password: *mut GTlsPassword, description: *const c_char);
14844 pub fn g_tls_password_set_flags(password: *mut GTlsPassword, flags: GTlsPasswordFlags);
14845 pub fn g_tls_password_set_value(password: *mut GTlsPassword, value: *const u8, length: ssize_t);
14846 pub fn g_tls_password_set_value_full(
14847 password: *mut GTlsPassword,
14848 value: *mut u8,
14849 length: ssize_t,
14850 destroy: glib::GDestroyNotify,
14851 );
14852 pub fn g_tls_password_set_warning(password: *mut GTlsPassword, warning: *const c_char);
14853
14854 pub fn g_unix_connection_get_type() -> GType;
14858 pub fn g_unix_connection_receive_credentials(
14859 connection: *mut GUnixConnection,
14860 cancellable: *mut GCancellable,
14861 error: *mut *mut glib::GError,
14862 ) -> *mut GCredentials;
14863 pub fn g_unix_connection_receive_credentials_async(
14864 connection: *mut GUnixConnection,
14865 cancellable: *mut GCancellable,
14866 callback: GAsyncReadyCallback,
14867 user_data: gpointer,
14868 );
14869 pub fn g_unix_connection_receive_credentials_finish(
14870 connection: *mut GUnixConnection,
14871 result: *mut GAsyncResult,
14872 error: *mut *mut glib::GError,
14873 ) -> *mut GCredentials;
14874 pub fn g_unix_connection_receive_fd(
14875 connection: *mut GUnixConnection,
14876 cancellable: *mut GCancellable,
14877 error: *mut *mut glib::GError,
14878 ) -> c_int;
14879 pub fn g_unix_connection_send_credentials(
14880 connection: *mut GUnixConnection,
14881 cancellable: *mut GCancellable,
14882 error: *mut *mut glib::GError,
14883 ) -> gboolean;
14884 pub fn g_unix_connection_send_credentials_async(
14885 connection: *mut GUnixConnection,
14886 cancellable: *mut GCancellable,
14887 callback: GAsyncReadyCallback,
14888 user_data: gpointer,
14889 );
14890 pub fn g_unix_connection_send_credentials_finish(
14891 connection: *mut GUnixConnection,
14892 result: *mut GAsyncResult,
14893 error: *mut *mut glib::GError,
14894 ) -> gboolean;
14895 pub fn g_unix_connection_send_fd(
14896 connection: *mut GUnixConnection,
14897 fd: c_int,
14898 cancellable: *mut GCancellable,
14899 error: *mut *mut glib::GError,
14900 ) -> gboolean;
14901
14902 pub fn g_unix_credentials_message_get_type() -> GType;
14906 pub fn g_unix_credentials_message_new() -> *mut GSocketControlMessage;
14907 pub fn g_unix_credentials_message_new_with_credentials(
14908 credentials: *mut GCredentials,
14909 ) -> *mut GSocketControlMessage;
14910 pub fn g_unix_credentials_message_is_supported() -> gboolean;
14911 pub fn g_unix_credentials_message_get_credentials(
14912 message: *mut GUnixCredentialsMessage,
14913 ) -> *mut GCredentials;
14914
14915 pub fn g_unix_fd_list_get_type() -> GType;
14919 pub fn g_unix_fd_list_new() -> *mut GUnixFDList;
14920 pub fn g_unix_fd_list_new_from_array(fds: *const c_int, n_fds: c_int) -> *mut GUnixFDList;
14921 pub fn g_unix_fd_list_append(
14922 list: *mut GUnixFDList,
14923 fd: c_int,
14924 error: *mut *mut glib::GError,
14925 ) -> c_int;
14926 pub fn g_unix_fd_list_get(
14927 list: *mut GUnixFDList,
14928 index_: c_int,
14929 error: *mut *mut glib::GError,
14930 ) -> c_int;
14931 pub fn g_unix_fd_list_get_length(list: *mut GUnixFDList) -> c_int;
14932 pub fn g_unix_fd_list_peek_fds(list: *mut GUnixFDList, length: *mut c_int) -> *const c_int;
14933 pub fn g_unix_fd_list_steal_fds(list: *mut GUnixFDList, length: *mut c_int) -> *mut c_int;
14934
14935 pub fn g_unix_fd_message_get_type() -> GType;
14939 pub fn g_unix_fd_message_new() -> *mut GSocketControlMessage;
14940 pub fn g_unix_fd_message_new_with_fd_list(
14941 fd_list: *mut GUnixFDList,
14942 ) -> *mut GSocketControlMessage;
14943 pub fn g_unix_fd_message_append_fd(
14944 message: *mut GUnixFDMessage,
14945 fd: c_int,
14946 error: *mut *mut glib::GError,
14947 ) -> gboolean;
14948 pub fn g_unix_fd_message_get_fd_list(message: *mut GUnixFDMessage) -> *mut GUnixFDList;
14949 pub fn g_unix_fd_message_steal_fds(
14950 message: *mut GUnixFDMessage,
14951 length: *mut c_int,
14952 ) -> *mut c_int;
14953
14954 pub fn g_unix_input_stream_get_type() -> GType;
14958 pub fn g_unix_input_stream_new(fd: c_int, close_fd: gboolean) -> *mut GInputStream;
14959 pub fn g_unix_input_stream_get_close_fd(stream: *mut GUnixInputStream) -> gboolean;
14960 pub fn g_unix_input_stream_get_fd(stream: *mut GUnixInputStream) -> c_int;
14961 pub fn g_unix_input_stream_set_close_fd(stream: *mut GUnixInputStream, close_fd: gboolean);
14962
14963 pub fn g_unix_mount_monitor_get_type() -> GType;
14967 pub fn g_unix_mount_monitor_new() -> *mut GUnixMountMonitor;
14968 pub fn g_unix_mount_monitor_get() -> *mut GUnixMountMonitor;
14969 pub fn g_unix_mount_monitor_set_rate_limit(
14970 mount_monitor: *mut GUnixMountMonitor,
14971 limit_msec: c_int,
14972 );
14973
14974 pub fn g_unix_output_stream_get_type() -> GType;
14978 pub fn g_unix_output_stream_new(fd: c_int, close_fd: gboolean) -> *mut GOutputStream;
14979 pub fn g_unix_output_stream_get_close_fd(stream: *mut GUnixOutputStream) -> gboolean;
14980 pub fn g_unix_output_stream_get_fd(stream: *mut GUnixOutputStream) -> c_int;
14981 pub fn g_unix_output_stream_set_close_fd(stream: *mut GUnixOutputStream, close_fd: gboolean);
14982
14983 pub fn g_unix_socket_address_get_type() -> GType;
14987 pub fn g_unix_socket_address_new(path: *const c_char) -> *mut GSocketAddress;
14988 pub fn g_unix_socket_address_new_abstract(
14989 path: *const c_char,
14990 path_len: c_int,
14991 ) -> *mut GSocketAddress;
14992 pub fn g_unix_socket_address_new_with_type(
14993 path: *const c_char,
14994 path_len: c_int,
14995 type_: GUnixSocketAddressType,
14996 ) -> *mut GSocketAddress;
14997 pub fn g_unix_socket_address_abstract_names_supported() -> gboolean;
14998 pub fn g_unix_socket_address_get_address_type(
14999 address: *mut GUnixSocketAddress,
15000 ) -> GUnixSocketAddressType;
15001 pub fn g_unix_socket_address_get_is_abstract(address: *mut GUnixSocketAddress) -> gboolean;
15002 pub fn g_unix_socket_address_get_path(address: *mut GUnixSocketAddress) -> *const c_char;
15003 pub fn g_unix_socket_address_get_path_len(address: *mut GUnixSocketAddress) -> size_t;
15004
15005 pub fn g_vfs_get_type() -> GType;
15009 pub fn g_vfs_get_default() -> *mut GVfs;
15010 pub fn g_vfs_get_local() -> *mut GVfs;
15011 pub fn g_vfs_get_file_for_path(vfs: *mut GVfs, path: *const c_char) -> *mut GFile;
15012 pub fn g_vfs_get_file_for_uri(vfs: *mut GVfs, uri: *const c_char) -> *mut GFile;
15013 pub fn g_vfs_get_supported_uri_schemes(vfs: *mut GVfs) -> *const *const c_char;
15014 pub fn g_vfs_is_active(vfs: *mut GVfs) -> gboolean;
15015 pub fn g_vfs_parse_name(vfs: *mut GVfs, parse_name: *const c_char) -> *mut GFile;
15016 pub fn g_vfs_register_uri_scheme(
15017 vfs: *mut GVfs,
15018 scheme: *const c_char,
15019 uri_func: GVfsFileLookupFunc,
15020 uri_data: gpointer,
15021 uri_destroy: glib::GDestroyNotify,
15022 parse_name_func: GVfsFileLookupFunc,
15023 parse_name_data: gpointer,
15024 parse_name_destroy: glib::GDestroyNotify,
15025 ) -> gboolean;
15026 pub fn g_vfs_unregister_uri_scheme(vfs: *mut GVfs, scheme: *const c_char) -> gboolean;
15027
15028 pub fn g_volume_monitor_get_type() -> GType;
15032 pub fn g_volume_monitor_adopt_orphan_mount(mount: *mut GMount) -> *mut GVolume;
15033 pub fn g_volume_monitor_get() -> *mut GVolumeMonitor;
15034 pub fn g_volume_monitor_get_connected_drives(
15035 volume_monitor: *mut GVolumeMonitor,
15036 ) -> *mut glib::GList;
15037 pub fn g_volume_monitor_get_mount_for_uuid(
15038 volume_monitor: *mut GVolumeMonitor,
15039 uuid: *const c_char,
15040 ) -> *mut GMount;
15041 pub fn g_volume_monitor_get_mounts(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
15042 pub fn g_volume_monitor_get_volume_for_uuid(
15043 volume_monitor: *mut GVolumeMonitor,
15044 uuid: *const c_char,
15045 ) -> *mut GVolume;
15046 pub fn g_volume_monitor_get_volumes(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
15047
15048 pub fn g_zlib_compressor_get_type() -> GType;
15052 pub fn g_zlib_compressor_new(
15053 format: GZlibCompressorFormat,
15054 level: c_int,
15055 ) -> *mut GZlibCompressor;
15056 pub fn g_zlib_compressor_get_file_info(compressor: *mut GZlibCompressor) -> *mut GFileInfo;
15057 #[cfg(feature = "v2_86")]
15058 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
15059 pub fn g_zlib_compressor_get_os(compressor: *mut GZlibCompressor) -> c_int;
15060 pub fn g_zlib_compressor_set_file_info(
15061 compressor: *mut GZlibCompressor,
15062 file_info: *mut GFileInfo,
15063 );
15064 #[cfg(feature = "v2_86")]
15065 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
15066 pub fn g_zlib_compressor_set_os(compressor: *mut GZlibCompressor, os: c_int);
15067
15068 pub fn g_zlib_decompressor_get_type() -> GType;
15072 pub fn g_zlib_decompressor_new(format: GZlibCompressorFormat) -> *mut GZlibDecompressor;
15073 pub fn g_zlib_decompressor_get_file_info(
15074 decompressor: *mut GZlibDecompressor,
15075 ) -> *mut GFileInfo;
15076
15077 pub fn g_action_get_type() -> GType;
15081 pub fn g_action_name_is_valid(action_name: *const c_char) -> gboolean;
15082 pub fn g_action_parse_detailed_name(
15083 detailed_name: *const c_char,
15084 action_name: *mut *mut c_char,
15085 target_value: *mut *mut glib::GVariant,
15086 error: *mut *mut glib::GError,
15087 ) -> gboolean;
15088 pub fn g_action_print_detailed_name(
15089 action_name: *const c_char,
15090 target_value: *mut glib::GVariant,
15091 ) -> *mut c_char;
15092 pub fn g_action_activate(action: *mut GAction, parameter: *mut glib::GVariant);
15093 pub fn g_action_change_state(action: *mut GAction, value: *mut glib::GVariant);
15094 pub fn g_action_get_enabled(action: *mut GAction) -> gboolean;
15095 pub fn g_action_get_name(action: *mut GAction) -> *const c_char;
15096 pub fn g_action_get_parameter_type(action: *mut GAction) -> *const glib::GVariantType;
15097 pub fn g_action_get_state(action: *mut GAction) -> *mut glib::GVariant;
15098 pub fn g_action_get_state_hint(action: *mut GAction) -> *mut glib::GVariant;
15099 pub fn g_action_get_state_type(action: *mut GAction) -> *const glib::GVariantType;
15100
15101 pub fn g_action_group_get_type() -> GType;
15105 pub fn g_action_group_action_added(action_group: *mut GActionGroup, action_name: *const c_char);
15106 pub fn g_action_group_action_enabled_changed(
15107 action_group: *mut GActionGroup,
15108 action_name: *const c_char,
15109 enabled: gboolean,
15110 );
15111 pub fn g_action_group_action_removed(
15112 action_group: *mut GActionGroup,
15113 action_name: *const c_char,
15114 );
15115 pub fn g_action_group_action_state_changed(
15116 action_group: *mut GActionGroup,
15117 action_name: *const c_char,
15118 state: *mut glib::GVariant,
15119 );
15120 pub fn g_action_group_activate_action(
15121 action_group: *mut GActionGroup,
15122 action_name: *const c_char,
15123 parameter: *mut glib::GVariant,
15124 );
15125 pub fn g_action_group_change_action_state(
15126 action_group: *mut GActionGroup,
15127 action_name: *const c_char,
15128 value: *mut glib::GVariant,
15129 );
15130 pub fn g_action_group_get_action_enabled(
15131 action_group: *mut GActionGroup,
15132 action_name: *const c_char,
15133 ) -> gboolean;
15134 pub fn g_action_group_get_action_parameter_type(
15135 action_group: *mut GActionGroup,
15136 action_name: *const c_char,
15137 ) -> *const glib::GVariantType;
15138 pub fn g_action_group_get_action_state(
15139 action_group: *mut GActionGroup,
15140 action_name: *const c_char,
15141 ) -> *mut glib::GVariant;
15142 pub fn g_action_group_get_action_state_hint(
15143 action_group: *mut GActionGroup,
15144 action_name: *const c_char,
15145 ) -> *mut glib::GVariant;
15146 pub fn g_action_group_get_action_state_type(
15147 action_group: *mut GActionGroup,
15148 action_name: *const c_char,
15149 ) -> *const glib::GVariantType;
15150 pub fn g_action_group_has_action(
15151 action_group: *mut GActionGroup,
15152 action_name: *const c_char,
15153 ) -> gboolean;
15154 pub fn g_action_group_list_actions(action_group: *mut GActionGroup) -> *mut *mut c_char;
15155 pub fn g_action_group_query_action(
15156 action_group: *mut GActionGroup,
15157 action_name: *const c_char,
15158 enabled: *mut gboolean,
15159 parameter_type: *mut *const glib::GVariantType,
15160 state_type: *mut *const glib::GVariantType,
15161 state_hint: *mut *mut glib::GVariant,
15162 state: *mut *mut glib::GVariant,
15163 ) -> gboolean;
15164
15165 pub fn g_action_map_get_type() -> GType;
15169 pub fn g_action_map_add_action(action_map: *mut GActionMap, action: *mut GAction);
15170 pub fn g_action_map_add_action_entries(
15171 action_map: *mut GActionMap,
15172 entries: *const GActionEntry,
15173 n_entries: c_int,
15174 user_data: gpointer,
15175 );
15176 pub fn g_action_map_lookup_action(
15177 action_map: *mut GActionMap,
15178 action_name: *const c_char,
15179 ) -> *mut GAction;
15180 pub fn g_action_map_remove_action(action_map: *mut GActionMap, action_name: *const c_char);
15181 #[cfg(feature = "v2_78")]
15182 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
15183 pub fn g_action_map_remove_action_entries(
15184 action_map: *mut GActionMap,
15185 entries: *const GActionEntry,
15186 n_entries: c_int,
15187 );
15188
15189 pub fn g_app_info_get_type() -> GType;
15193 pub fn g_app_info_create_from_commandline(
15194 commandline: *const c_char,
15195 application_name: *const c_char,
15196 flags: GAppInfoCreateFlags,
15197 error: *mut *mut glib::GError,
15198 ) -> *mut GAppInfo;
15199 pub fn g_app_info_get_all() -> *mut glib::GList;
15200 pub fn g_app_info_get_all_for_type(content_type: *const c_char) -> *mut glib::GList;
15201 pub fn g_app_info_get_default_for_type(
15202 content_type: *const c_char,
15203 must_support_uris: gboolean,
15204 ) -> *mut GAppInfo;
15205 #[cfg(feature = "v2_74")]
15206 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15207 pub fn g_app_info_get_default_for_type_async(
15208 content_type: *const c_char,
15209 must_support_uris: gboolean,
15210 cancellable: *mut GCancellable,
15211 callback: GAsyncReadyCallback,
15212 user_data: gpointer,
15213 );
15214 #[cfg(feature = "v2_74")]
15215 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15216 pub fn g_app_info_get_default_for_type_finish(
15217 result: *mut GAsyncResult,
15218 error: *mut *mut glib::GError,
15219 ) -> *mut GAppInfo;
15220 pub fn g_app_info_get_default_for_uri_scheme(uri_scheme: *const c_char) -> *mut GAppInfo;
15221 #[cfg(feature = "v2_74")]
15222 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15223 pub fn g_app_info_get_default_for_uri_scheme_async(
15224 uri_scheme: *const c_char,
15225 cancellable: *mut GCancellable,
15226 callback: GAsyncReadyCallback,
15227 user_data: gpointer,
15228 );
15229 #[cfg(feature = "v2_74")]
15230 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15231 pub fn g_app_info_get_default_for_uri_scheme_finish(
15232 result: *mut GAsyncResult,
15233 error: *mut *mut glib::GError,
15234 ) -> *mut GAppInfo;
15235 pub fn g_app_info_get_fallback_for_type(content_type: *const c_char) -> *mut glib::GList;
15236 pub fn g_app_info_get_recommended_for_type(content_type: *const c_char) -> *mut glib::GList;
15237 pub fn g_app_info_launch_default_for_uri(
15238 uri: *const c_char,
15239 context: *mut GAppLaunchContext,
15240 error: *mut *mut glib::GError,
15241 ) -> gboolean;
15242 pub fn g_app_info_launch_default_for_uri_async(
15243 uri: *const c_char,
15244 context: *mut GAppLaunchContext,
15245 cancellable: *mut GCancellable,
15246 callback: GAsyncReadyCallback,
15247 user_data: gpointer,
15248 );
15249 pub fn g_app_info_launch_default_for_uri_finish(
15250 result: *mut GAsyncResult,
15251 error: *mut *mut glib::GError,
15252 ) -> gboolean;
15253 pub fn g_app_info_reset_type_associations(content_type: *const c_char);
15254 pub fn g_app_info_add_supports_type(
15255 appinfo: *mut GAppInfo,
15256 content_type: *const c_char,
15257 error: *mut *mut glib::GError,
15258 ) -> gboolean;
15259 pub fn g_app_info_can_delete(appinfo: *mut GAppInfo) -> gboolean;
15260 pub fn g_app_info_can_remove_supports_type(appinfo: *mut GAppInfo) -> gboolean;
15261 pub fn g_app_info_delete(appinfo: *mut GAppInfo) -> gboolean;
15262 pub fn g_app_info_dup(appinfo: *mut GAppInfo) -> *mut GAppInfo;
15263 pub fn g_app_info_equal(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean;
15264 pub fn g_app_info_get_commandline(appinfo: *mut GAppInfo) -> *const c_char;
15265 pub fn g_app_info_get_description(appinfo: *mut GAppInfo) -> *const c_char;
15266 pub fn g_app_info_get_display_name(appinfo: *mut GAppInfo) -> *const c_char;
15267 pub fn g_app_info_get_executable(appinfo: *mut GAppInfo) -> *const c_char;
15268 pub fn g_app_info_get_icon(appinfo: *mut GAppInfo) -> *mut GIcon;
15269 pub fn g_app_info_get_id(appinfo: *mut GAppInfo) -> *const c_char;
15270 pub fn g_app_info_get_name(appinfo: *mut GAppInfo) -> *const c_char;
15271 pub fn g_app_info_get_supported_types(appinfo: *mut GAppInfo) -> *mut *const c_char;
15272 pub fn g_app_info_launch(
15273 appinfo: *mut GAppInfo,
15274 files: *mut glib::GList,
15275 context: *mut GAppLaunchContext,
15276 error: *mut *mut glib::GError,
15277 ) -> gboolean;
15278 pub fn g_app_info_launch_uris(
15279 appinfo: *mut GAppInfo,
15280 uris: *mut glib::GList,
15281 context: *mut GAppLaunchContext,
15282 error: *mut *mut glib::GError,
15283 ) -> gboolean;
15284 #[cfg(feature = "v2_60")]
15285 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15286 pub fn g_app_info_launch_uris_async(
15287 appinfo: *mut GAppInfo,
15288 uris: *mut glib::GList,
15289 context: *mut GAppLaunchContext,
15290 cancellable: *mut GCancellable,
15291 callback: GAsyncReadyCallback,
15292 user_data: gpointer,
15293 );
15294 #[cfg(feature = "v2_60")]
15295 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15296 pub fn g_app_info_launch_uris_finish(
15297 appinfo: *mut GAppInfo,
15298 result: *mut GAsyncResult,
15299 error: *mut *mut glib::GError,
15300 ) -> gboolean;
15301 pub fn g_app_info_remove_supports_type(
15302 appinfo: *mut GAppInfo,
15303 content_type: *const c_char,
15304 error: *mut *mut glib::GError,
15305 ) -> gboolean;
15306 pub fn g_app_info_set_as_default_for_extension(
15307 appinfo: *mut GAppInfo,
15308 extension: *const c_char,
15309 error: *mut *mut glib::GError,
15310 ) -> gboolean;
15311 pub fn g_app_info_set_as_default_for_type(
15312 appinfo: *mut GAppInfo,
15313 content_type: *const c_char,
15314 error: *mut *mut glib::GError,
15315 ) -> gboolean;
15316 pub fn g_app_info_set_as_last_used_for_type(
15317 appinfo: *mut GAppInfo,
15318 content_type: *const c_char,
15319 error: *mut *mut glib::GError,
15320 ) -> gboolean;
15321 pub fn g_app_info_should_show(appinfo: *mut GAppInfo) -> gboolean;
15322 pub fn g_app_info_supports_files(appinfo: *mut GAppInfo) -> gboolean;
15323 pub fn g_app_info_supports_uris(appinfo: *mut GAppInfo) -> gboolean;
15324
15325 pub fn g_async_initable_get_type() -> GType;
15329 pub fn g_async_initable_new_async(
15330 object_type: GType,
15331 io_priority: c_int,
15332 cancellable: *mut GCancellable,
15333 callback: GAsyncReadyCallback,
15334 user_data: gpointer,
15335 first_property_name: *const c_char,
15336 ...
15337 );
15338 pub fn g_async_initable_newv_async(
15340 object_type: GType,
15341 n_parameters: c_uint,
15342 parameters: *mut gobject::GParameter,
15343 io_priority: c_int,
15344 cancellable: *mut GCancellable,
15345 callback: GAsyncReadyCallback,
15346 user_data: gpointer,
15347 );
15348 pub fn g_async_initable_init_async(
15349 initable: *mut GAsyncInitable,
15350 io_priority: c_int,
15351 cancellable: *mut GCancellable,
15352 callback: GAsyncReadyCallback,
15353 user_data: gpointer,
15354 );
15355 pub fn g_async_initable_init_finish(
15356 initable: *mut GAsyncInitable,
15357 res: *mut GAsyncResult,
15358 error: *mut *mut glib::GError,
15359 ) -> gboolean;
15360 pub fn g_async_initable_new_finish(
15361 initable: *mut GAsyncInitable,
15362 res: *mut GAsyncResult,
15363 error: *mut *mut glib::GError,
15364 ) -> *mut gobject::GObject;
15365
15366 pub fn g_async_result_get_type() -> GType;
15370 pub fn g_async_result_get_source_object(res: *mut GAsyncResult) -> *mut gobject::GObject;
15371 pub fn g_async_result_get_user_data(res: *mut GAsyncResult) -> gpointer;
15372 pub fn g_async_result_is_tagged(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean;
15373 pub fn g_async_result_legacy_propagate_error(
15374 res: *mut GAsyncResult,
15375 error: *mut *mut glib::GError,
15376 ) -> gboolean;
15377
15378 pub fn g_converter_get_type() -> GType;
15382 pub fn g_converter_convert(
15383 converter: *mut GConverter,
15384 inbuf: *mut u8,
15385 inbuf_size: size_t,
15386 outbuf: *mut u8,
15387 outbuf_size: size_t,
15388 flags: GConverterFlags,
15389 bytes_read: *mut size_t,
15390 bytes_written: *mut size_t,
15391 error: *mut *mut glib::GError,
15392 ) -> GConverterResult;
15393 #[cfg(feature = "v2_82")]
15394 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
15395 pub fn g_converter_convert_bytes(
15396 converter: *mut GConverter,
15397 bytes: *mut glib::GBytes,
15398 error: *mut *mut glib::GError,
15399 ) -> *mut glib::GBytes;
15400 pub fn g_converter_reset(converter: *mut GConverter);
15401
15402 pub fn g_dbus_interface_get_type() -> GType;
15406 pub fn g_dbus_interface_dup_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
15407 pub fn g_dbus_interface_get_info(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo;
15408 pub fn g_dbus_interface_get_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
15409 pub fn g_dbus_interface_set_object(interface_: *mut GDBusInterface, object: *mut GDBusObject);
15410
15411 pub fn g_dbus_object_get_type() -> GType;
15415 pub fn g_dbus_object_get_interface(
15416 object: *mut GDBusObject,
15417 interface_name: *const c_char,
15418 ) -> *mut GDBusInterface;
15419 pub fn g_dbus_object_get_interfaces(object: *mut GDBusObject) -> *mut glib::GList;
15420 pub fn g_dbus_object_get_object_path(object: *mut GDBusObject) -> *const c_char;
15421
15422 pub fn g_dbus_object_manager_get_type() -> GType;
15426 pub fn g_dbus_object_manager_get_interface(
15427 manager: *mut GDBusObjectManager,
15428 object_path: *const c_char,
15429 interface_name: *const c_char,
15430 ) -> *mut GDBusInterface;
15431 pub fn g_dbus_object_manager_get_object(
15432 manager: *mut GDBusObjectManager,
15433 object_path: *const c_char,
15434 ) -> *mut GDBusObject;
15435 pub fn g_dbus_object_manager_get_object_path(manager: *mut GDBusObjectManager)
15436 -> *const c_char;
15437 pub fn g_dbus_object_manager_get_objects(manager: *mut GDBusObjectManager) -> *mut glib::GList;
15438
15439 pub fn g_datagram_based_get_type() -> GType;
15443 pub fn g_datagram_based_condition_check(
15444 datagram_based: *mut GDatagramBased,
15445 condition: glib::GIOCondition,
15446 ) -> glib::GIOCondition;
15447 pub fn g_datagram_based_condition_wait(
15448 datagram_based: *mut GDatagramBased,
15449 condition: glib::GIOCondition,
15450 timeout: i64,
15451 cancellable: *mut GCancellable,
15452 error: *mut *mut glib::GError,
15453 ) -> gboolean;
15454 pub fn g_datagram_based_create_source(
15455 datagram_based: *mut GDatagramBased,
15456 condition: glib::GIOCondition,
15457 cancellable: *mut GCancellable,
15458 ) -> *mut glib::GSource;
15459 pub fn g_datagram_based_receive_messages(
15460 datagram_based: *mut GDatagramBased,
15461 messages: *mut GInputMessage,
15462 num_messages: c_uint,
15463 flags: c_int,
15464 timeout: i64,
15465 cancellable: *mut GCancellable,
15466 error: *mut *mut glib::GError,
15467 ) -> c_int;
15468 pub fn g_datagram_based_send_messages(
15469 datagram_based: *mut GDatagramBased,
15470 messages: *mut GOutputMessage,
15471 num_messages: c_uint,
15472 flags: c_int,
15473 timeout: i64,
15474 cancellable: *mut GCancellable,
15475 error: *mut *mut glib::GError,
15476 ) -> c_int;
15477
15478 #[cfg(feature = "v2_72")]
15482 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15483 pub fn g_debug_controller_get_type() -> GType;
15484 #[cfg(feature = "v2_72")]
15485 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15486 pub fn g_debug_controller_get_debug_enabled(self_: *mut GDebugController) -> gboolean;
15487 #[cfg(feature = "v2_72")]
15488 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15489 pub fn g_debug_controller_set_debug_enabled(
15490 self_: *mut GDebugController,
15491 debug_enabled: gboolean,
15492 );
15493
15494 pub fn g_desktop_app_info_lookup_get_type() -> GType;
15498 pub fn g_desktop_app_info_lookup_get_default_for_uri_scheme(
15499 lookup: *mut GDesktopAppInfoLookup,
15500 uri_scheme: *const c_char,
15501 ) -> *mut GAppInfo;
15502
15503 pub fn g_drive_get_type() -> GType;
15507 pub fn g_drive_can_eject(drive: *mut GDrive) -> gboolean;
15508 pub fn g_drive_can_poll_for_media(drive: *mut GDrive) -> gboolean;
15509 pub fn g_drive_can_start(drive: *mut GDrive) -> gboolean;
15510 pub fn g_drive_can_start_degraded(drive: *mut GDrive) -> gboolean;
15511 pub fn g_drive_can_stop(drive: *mut GDrive) -> gboolean;
15512 pub fn g_drive_eject(
15513 drive: *mut GDrive,
15514 flags: GMountUnmountFlags,
15515 cancellable: *mut GCancellable,
15516 callback: GAsyncReadyCallback,
15517 user_data: gpointer,
15518 );
15519 pub fn g_drive_eject_finish(
15520 drive: *mut GDrive,
15521 result: *mut GAsyncResult,
15522 error: *mut *mut glib::GError,
15523 ) -> gboolean;
15524 pub fn g_drive_eject_with_operation(
15525 drive: *mut GDrive,
15526 flags: GMountUnmountFlags,
15527 mount_operation: *mut GMountOperation,
15528 cancellable: *mut GCancellable,
15529 callback: GAsyncReadyCallback,
15530 user_data: gpointer,
15531 );
15532 pub fn g_drive_eject_with_operation_finish(
15533 drive: *mut GDrive,
15534 result: *mut GAsyncResult,
15535 error: *mut *mut glib::GError,
15536 ) -> gboolean;
15537 pub fn g_drive_enumerate_identifiers(drive: *mut GDrive) -> *mut *mut c_char;
15538 pub fn g_drive_get_icon(drive: *mut GDrive) -> *mut GIcon;
15539 pub fn g_drive_get_identifier(drive: *mut GDrive, kind: *const c_char) -> *mut c_char;
15540 pub fn g_drive_get_name(drive: *mut GDrive) -> *mut c_char;
15541 pub fn g_drive_get_sort_key(drive: *mut GDrive) -> *const c_char;
15542 pub fn g_drive_get_start_stop_type(drive: *mut GDrive) -> GDriveStartStopType;
15543 pub fn g_drive_get_symbolic_icon(drive: *mut GDrive) -> *mut GIcon;
15544 pub fn g_drive_get_volumes(drive: *mut GDrive) -> *mut glib::GList;
15545 pub fn g_drive_has_media(drive: *mut GDrive) -> gboolean;
15546 pub fn g_drive_has_volumes(drive: *mut GDrive) -> gboolean;
15547 pub fn g_drive_is_media_check_automatic(drive: *mut GDrive) -> gboolean;
15548 pub fn g_drive_is_media_removable(drive: *mut GDrive) -> gboolean;
15549 pub fn g_drive_is_removable(drive: *mut GDrive) -> gboolean;
15550 pub fn g_drive_poll_for_media(
15551 drive: *mut GDrive,
15552 cancellable: *mut GCancellable,
15553 callback: GAsyncReadyCallback,
15554 user_data: gpointer,
15555 );
15556 pub fn g_drive_poll_for_media_finish(
15557 drive: *mut GDrive,
15558 result: *mut GAsyncResult,
15559 error: *mut *mut glib::GError,
15560 ) -> gboolean;
15561 pub fn g_drive_start(
15562 drive: *mut GDrive,
15563 flags: GDriveStartFlags,
15564 mount_operation: *mut GMountOperation,
15565 cancellable: *mut GCancellable,
15566 callback: GAsyncReadyCallback,
15567 user_data: gpointer,
15568 );
15569 pub fn g_drive_start_finish(
15570 drive: *mut GDrive,
15571 result: *mut GAsyncResult,
15572 error: *mut *mut glib::GError,
15573 ) -> gboolean;
15574 pub fn g_drive_stop(
15575 drive: *mut GDrive,
15576 flags: GMountUnmountFlags,
15577 mount_operation: *mut GMountOperation,
15578 cancellable: *mut GCancellable,
15579 callback: GAsyncReadyCallback,
15580 user_data: gpointer,
15581 );
15582 pub fn g_drive_stop_finish(
15583 drive: *mut GDrive,
15584 result: *mut GAsyncResult,
15585 error: *mut *mut glib::GError,
15586 ) -> gboolean;
15587
15588 pub fn g_dtls_client_connection_get_type() -> GType;
15592 pub fn g_dtls_client_connection_new(
15593 base_socket: *mut GDatagramBased,
15594 server_identity: *mut GSocketConnectable,
15595 error: *mut *mut glib::GError,
15596 ) -> *mut GDtlsClientConnection;
15597 pub fn g_dtls_client_connection_get_accepted_cas(
15598 conn: *mut GDtlsClientConnection,
15599 ) -> *mut glib::GList;
15600 pub fn g_dtls_client_connection_get_server_identity(
15601 conn: *mut GDtlsClientConnection,
15602 ) -> *mut GSocketConnectable;
15603 pub fn g_dtls_client_connection_get_validation_flags(
15604 conn: *mut GDtlsClientConnection,
15605 ) -> GTlsCertificateFlags;
15606 pub fn g_dtls_client_connection_set_server_identity(
15607 conn: *mut GDtlsClientConnection,
15608 identity: *mut GSocketConnectable,
15609 );
15610 pub fn g_dtls_client_connection_set_validation_flags(
15611 conn: *mut GDtlsClientConnection,
15612 flags: GTlsCertificateFlags,
15613 );
15614
15615 pub fn g_dtls_connection_get_type() -> GType;
15619 pub fn g_dtls_connection_close(
15620 conn: *mut GDtlsConnection,
15621 cancellable: *mut GCancellable,
15622 error: *mut *mut glib::GError,
15623 ) -> gboolean;
15624 pub fn g_dtls_connection_close_async(
15625 conn: *mut GDtlsConnection,
15626 io_priority: c_int,
15627 cancellable: *mut GCancellable,
15628 callback: GAsyncReadyCallback,
15629 user_data: gpointer,
15630 );
15631 pub fn g_dtls_connection_close_finish(
15632 conn: *mut GDtlsConnection,
15633 result: *mut GAsyncResult,
15634 error: *mut *mut glib::GError,
15635 ) -> gboolean;
15636 pub fn g_dtls_connection_emit_accept_certificate(
15637 conn: *mut GDtlsConnection,
15638 peer_cert: *mut GTlsCertificate,
15639 errors: GTlsCertificateFlags,
15640 ) -> gboolean;
15641 pub fn g_dtls_connection_get_certificate(conn: *mut GDtlsConnection) -> *mut GTlsCertificate;
15642 #[cfg(feature = "v2_66")]
15643 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
15644 pub fn g_dtls_connection_get_channel_binding_data(
15645 conn: *mut GDtlsConnection,
15646 type_: GTlsChannelBindingType,
15647 data: *mut glib::GByteArray,
15648 error: *mut *mut glib::GError,
15649 ) -> gboolean;
15650 #[cfg(feature = "v2_70")]
15651 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
15652 pub fn g_dtls_connection_get_ciphersuite_name(conn: *mut GDtlsConnection) -> *mut c_char;
15653 pub fn g_dtls_connection_get_database(conn: *mut GDtlsConnection) -> *mut GTlsDatabase;
15654 pub fn g_dtls_connection_get_interaction(conn: *mut GDtlsConnection) -> *mut GTlsInteraction;
15655 #[cfg(feature = "v2_60")]
15656 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15657 pub fn g_dtls_connection_get_negotiated_protocol(conn: *mut GDtlsConnection) -> *const c_char;
15658 pub fn g_dtls_connection_get_peer_certificate(
15659 conn: *mut GDtlsConnection,
15660 ) -> *mut GTlsCertificate;
15661 pub fn g_dtls_connection_get_peer_certificate_errors(
15662 conn: *mut GDtlsConnection,
15663 ) -> GTlsCertificateFlags;
15664 #[cfg(feature = "v2_70")]
15665 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
15666 pub fn g_dtls_connection_get_protocol_version(
15667 conn: *mut GDtlsConnection,
15668 ) -> GTlsProtocolVersion;
15669 pub fn g_dtls_connection_get_rehandshake_mode(
15670 conn: *mut GDtlsConnection,
15671 ) -> GTlsRehandshakeMode;
15672 pub fn g_dtls_connection_get_require_close_notify(conn: *mut GDtlsConnection) -> gboolean;
15673 pub fn g_dtls_connection_handshake(
15674 conn: *mut GDtlsConnection,
15675 cancellable: *mut GCancellable,
15676 error: *mut *mut glib::GError,
15677 ) -> gboolean;
15678 pub fn g_dtls_connection_handshake_async(
15679 conn: *mut GDtlsConnection,
15680 io_priority: c_int,
15681 cancellable: *mut GCancellable,
15682 callback: GAsyncReadyCallback,
15683 user_data: gpointer,
15684 );
15685 pub fn g_dtls_connection_handshake_finish(
15686 conn: *mut GDtlsConnection,
15687 result: *mut GAsyncResult,
15688 error: *mut *mut glib::GError,
15689 ) -> gboolean;
15690 #[cfg(feature = "v2_60")]
15691 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15692 pub fn g_dtls_connection_set_advertised_protocols(
15693 conn: *mut GDtlsConnection,
15694 protocols: *const *const c_char,
15695 );
15696 pub fn g_dtls_connection_set_certificate(
15697 conn: *mut GDtlsConnection,
15698 certificate: *mut GTlsCertificate,
15699 );
15700 pub fn g_dtls_connection_set_database(conn: *mut GDtlsConnection, database: *mut GTlsDatabase);
15701 pub fn g_dtls_connection_set_interaction(
15702 conn: *mut GDtlsConnection,
15703 interaction: *mut GTlsInteraction,
15704 );
15705 pub fn g_dtls_connection_set_rehandshake_mode(
15706 conn: *mut GDtlsConnection,
15707 mode: GTlsRehandshakeMode,
15708 );
15709 pub fn g_dtls_connection_set_require_close_notify(
15710 conn: *mut GDtlsConnection,
15711 require_close_notify: gboolean,
15712 );
15713 pub fn g_dtls_connection_shutdown(
15714 conn: *mut GDtlsConnection,
15715 shutdown_read: gboolean,
15716 shutdown_write: gboolean,
15717 cancellable: *mut GCancellable,
15718 error: *mut *mut glib::GError,
15719 ) -> gboolean;
15720 pub fn g_dtls_connection_shutdown_async(
15721 conn: *mut GDtlsConnection,
15722 shutdown_read: gboolean,
15723 shutdown_write: gboolean,
15724 io_priority: c_int,
15725 cancellable: *mut GCancellable,
15726 callback: GAsyncReadyCallback,
15727 user_data: gpointer,
15728 );
15729 pub fn g_dtls_connection_shutdown_finish(
15730 conn: *mut GDtlsConnection,
15731 result: *mut GAsyncResult,
15732 error: *mut *mut glib::GError,
15733 ) -> gboolean;
15734
15735 pub fn g_dtls_server_connection_get_type() -> GType;
15739 pub fn g_dtls_server_connection_new(
15740 base_socket: *mut GDatagramBased,
15741 certificate: *mut GTlsCertificate,
15742 error: *mut *mut glib::GError,
15743 ) -> *mut GDtlsServerConnection;
15744
15745 pub fn g_file_get_type() -> GType;
15749 pub fn g_file_new_build_filename(first_element: *const c_char, ...) -> *mut GFile;
15750 #[cfg(feature = "v2_78")]
15751 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
15752 pub fn g_file_new_build_filenamev(args: *const *const c_char) -> *mut GFile;
15753 pub fn g_file_new_for_commandline_arg(arg: *const c_char) -> *mut GFile;
15754 pub fn g_file_new_for_commandline_arg_and_cwd(
15755 arg: *const c_char,
15756 cwd: *const c_char,
15757 ) -> *mut GFile;
15758 pub fn g_file_new_for_path(path: *const c_char) -> *mut GFile;
15759 pub fn g_file_new_for_uri(uri: *const c_char) -> *mut GFile;
15760 pub fn g_file_new_tmp(
15761 tmpl: *const c_char,
15762 iostream: *mut *mut GFileIOStream,
15763 error: *mut *mut glib::GError,
15764 ) -> *mut GFile;
15765 #[cfg(feature = "v2_74")]
15766 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15767 pub fn g_file_new_tmp_async(
15768 tmpl: *const c_char,
15769 io_priority: c_int,
15770 cancellable: *mut GCancellable,
15771 callback: GAsyncReadyCallback,
15772 user_data: gpointer,
15773 );
15774 #[cfg(feature = "v2_74")]
15775 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15776 pub fn g_file_new_tmp_dir_async(
15777 tmpl: *const c_char,
15778 io_priority: c_int,
15779 cancellable: *mut GCancellable,
15780 callback: GAsyncReadyCallback,
15781 user_data: gpointer,
15782 );
15783 #[cfg(feature = "v2_74")]
15784 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15785 pub fn g_file_new_tmp_dir_finish(
15786 result: *mut GAsyncResult,
15787 error: *mut *mut glib::GError,
15788 ) -> *mut GFile;
15789 #[cfg(feature = "v2_74")]
15790 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15791 pub fn g_file_new_tmp_finish(
15792 result: *mut GAsyncResult,
15793 iostream: *mut *mut GFileIOStream,
15794 error: *mut *mut glib::GError,
15795 ) -> *mut GFile;
15796 pub fn g_file_parse_name(parse_name: *const c_char) -> *mut GFile;
15797 pub fn g_file_append_to(
15798 file: *mut GFile,
15799 flags: GFileCreateFlags,
15800 cancellable: *mut GCancellable,
15801 error: *mut *mut glib::GError,
15802 ) -> *mut GFileOutputStream;
15803 pub fn g_file_append_to_async(
15804 file: *mut GFile,
15805 flags: GFileCreateFlags,
15806 io_priority: c_int,
15807 cancellable: *mut GCancellable,
15808 callback: GAsyncReadyCallback,
15809 user_data: gpointer,
15810 );
15811 pub fn g_file_append_to_finish(
15812 file: *mut GFile,
15813 res: *mut GAsyncResult,
15814 error: *mut *mut glib::GError,
15815 ) -> *mut GFileOutputStream;
15816 #[cfg(feature = "v2_68")]
15817 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
15818 pub fn g_file_build_attribute_list_for_copy(
15819 file: *mut GFile,
15820 flags: GFileCopyFlags,
15821 cancellable: *mut GCancellable,
15822 error: *mut *mut glib::GError,
15823 ) -> *mut c_char;
15824 pub fn g_file_copy(
15825 source: *mut GFile,
15826 destination: *mut GFile,
15827 flags: GFileCopyFlags,
15828 cancellable: *mut GCancellable,
15829 progress_callback: GFileProgressCallback,
15830 progress_callback_data: gpointer,
15831 error: *mut *mut glib::GError,
15832 ) -> gboolean;
15833 pub fn g_file_copy_async(
15834 source: *mut GFile,
15835 destination: *mut GFile,
15836 flags: GFileCopyFlags,
15837 io_priority: c_int,
15838 cancellable: *mut GCancellable,
15839 progress_callback: GFileProgressCallback,
15840 progress_callback_data: gpointer,
15841 callback: GAsyncReadyCallback,
15842 user_data: gpointer,
15843 );
15844 #[cfg(feature = "v2_82")]
15845 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
15846 pub fn g_file_copy_async_with_closures(
15847 source: *mut GFile,
15848 destination: *mut GFile,
15849 flags: GFileCopyFlags,
15850 io_priority: c_int,
15851 cancellable: *mut GCancellable,
15852 progress_callback_closure: *mut gobject::GClosure,
15853 ready_callback_closure: *mut gobject::GClosure,
15854 );
15855 pub fn g_file_copy_attributes(
15856 source: *mut GFile,
15857 destination: *mut GFile,
15858 flags: GFileCopyFlags,
15859 cancellable: *mut GCancellable,
15860 error: *mut *mut glib::GError,
15861 ) -> gboolean;
15862 pub fn g_file_copy_finish(
15863 file: *mut GFile,
15864 res: *mut GAsyncResult,
15865 error: *mut *mut glib::GError,
15866 ) -> gboolean;
15867 pub fn g_file_create(
15868 file: *mut GFile,
15869 flags: GFileCreateFlags,
15870 cancellable: *mut GCancellable,
15871 error: *mut *mut glib::GError,
15872 ) -> *mut GFileOutputStream;
15873 pub fn g_file_create_async(
15874 file: *mut GFile,
15875 flags: GFileCreateFlags,
15876 io_priority: c_int,
15877 cancellable: *mut GCancellable,
15878 callback: GAsyncReadyCallback,
15879 user_data: gpointer,
15880 );
15881 pub fn g_file_create_finish(
15882 file: *mut GFile,
15883 res: *mut GAsyncResult,
15884 error: *mut *mut glib::GError,
15885 ) -> *mut GFileOutputStream;
15886 pub fn g_file_create_readwrite(
15887 file: *mut GFile,
15888 flags: GFileCreateFlags,
15889 cancellable: *mut GCancellable,
15890 error: *mut *mut glib::GError,
15891 ) -> *mut GFileIOStream;
15892 pub fn g_file_create_readwrite_async(
15893 file: *mut GFile,
15894 flags: GFileCreateFlags,
15895 io_priority: c_int,
15896 cancellable: *mut GCancellable,
15897 callback: GAsyncReadyCallback,
15898 user_data: gpointer,
15899 );
15900 pub fn g_file_create_readwrite_finish(
15901 file: *mut GFile,
15902 res: *mut GAsyncResult,
15903 error: *mut *mut glib::GError,
15904 ) -> *mut GFileIOStream;
15905 pub fn g_file_delete(
15906 file: *mut GFile,
15907 cancellable: *mut GCancellable,
15908 error: *mut *mut glib::GError,
15909 ) -> gboolean;
15910 pub fn g_file_delete_async(
15911 file: *mut GFile,
15912 io_priority: c_int,
15913 cancellable: *mut GCancellable,
15914 callback: GAsyncReadyCallback,
15915 user_data: gpointer,
15916 );
15917 pub fn g_file_delete_finish(
15918 file: *mut GFile,
15919 result: *mut GAsyncResult,
15920 error: *mut *mut glib::GError,
15921 ) -> gboolean;
15922 pub fn g_file_dup(file: *mut GFile) -> *mut GFile;
15923 pub fn g_file_eject_mountable(
15924 file: *mut GFile,
15925 flags: GMountUnmountFlags,
15926 cancellable: *mut GCancellable,
15927 callback: GAsyncReadyCallback,
15928 user_data: gpointer,
15929 );
15930 pub fn g_file_eject_mountable_finish(
15931 file: *mut GFile,
15932 result: *mut GAsyncResult,
15933 error: *mut *mut glib::GError,
15934 ) -> gboolean;
15935 pub fn g_file_eject_mountable_with_operation(
15936 file: *mut GFile,
15937 flags: GMountUnmountFlags,
15938 mount_operation: *mut GMountOperation,
15939 cancellable: *mut GCancellable,
15940 callback: GAsyncReadyCallback,
15941 user_data: gpointer,
15942 );
15943 pub fn g_file_eject_mountable_with_operation_finish(
15944 file: *mut GFile,
15945 result: *mut GAsyncResult,
15946 error: *mut *mut glib::GError,
15947 ) -> gboolean;
15948 pub fn g_file_enumerate_children(
15949 file: *mut GFile,
15950 attributes: *const c_char,
15951 flags: GFileQueryInfoFlags,
15952 cancellable: *mut GCancellable,
15953 error: *mut *mut glib::GError,
15954 ) -> *mut GFileEnumerator;
15955 pub fn g_file_enumerate_children_async(
15956 file: *mut GFile,
15957 attributes: *const c_char,
15958 flags: GFileQueryInfoFlags,
15959 io_priority: c_int,
15960 cancellable: *mut GCancellable,
15961 callback: GAsyncReadyCallback,
15962 user_data: gpointer,
15963 );
15964 pub fn g_file_enumerate_children_finish(
15965 file: *mut GFile,
15966 res: *mut GAsyncResult,
15967 error: *mut *mut glib::GError,
15968 ) -> *mut GFileEnumerator;
15969 pub fn g_file_equal(file1: *mut GFile, file2: *mut GFile) -> gboolean;
15970 pub fn g_file_find_enclosing_mount(
15971 file: *mut GFile,
15972 cancellable: *mut GCancellable,
15973 error: *mut *mut glib::GError,
15974 ) -> *mut GMount;
15975 pub fn g_file_find_enclosing_mount_async(
15976 file: *mut GFile,
15977 io_priority: c_int,
15978 cancellable: *mut GCancellable,
15979 callback: GAsyncReadyCallback,
15980 user_data: gpointer,
15981 );
15982 pub fn g_file_find_enclosing_mount_finish(
15983 file: *mut GFile,
15984 res: *mut GAsyncResult,
15985 error: *mut *mut glib::GError,
15986 ) -> *mut GMount;
15987 pub fn g_file_get_basename(file: *mut GFile) -> *mut c_char;
15988 pub fn g_file_get_child(file: *mut GFile, name: *const c_char) -> *mut GFile;
15989 pub fn g_file_get_child_for_display_name(
15990 file: *mut GFile,
15991 display_name: *const c_char,
15992 error: *mut *mut glib::GError,
15993 ) -> *mut GFile;
15994 pub fn g_file_get_parent(file: *mut GFile) -> *mut GFile;
15995 pub fn g_file_get_parse_name(file: *mut GFile) -> *mut c_char;
15996 pub fn g_file_get_path(file: *mut GFile) -> *mut c_char;
15997 pub fn g_file_get_relative_path(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char;
15998 pub fn g_file_get_uri(file: *mut GFile) -> *mut c_char;
15999 pub fn g_file_get_uri_scheme(file: *mut GFile) -> *mut c_char;
16000 pub fn g_file_has_parent(file: *mut GFile, parent: *mut GFile) -> gboolean;
16001 pub fn g_file_has_prefix(file: *mut GFile, prefix: *mut GFile) -> gboolean;
16002 pub fn g_file_has_uri_scheme(file: *mut GFile, uri_scheme: *const c_char) -> gboolean;
16003 pub fn g_file_hash(file: gconstpointer) -> c_uint;
16004 pub fn g_file_is_native(file: *mut GFile) -> gboolean;
16005 pub fn g_file_load_bytes(
16006 file: *mut GFile,
16007 cancellable: *mut GCancellable,
16008 etag_out: *mut *mut c_char,
16009 error: *mut *mut glib::GError,
16010 ) -> *mut glib::GBytes;
16011 pub fn g_file_load_bytes_async(
16012 file: *mut GFile,
16013 cancellable: *mut GCancellable,
16014 callback: GAsyncReadyCallback,
16015 user_data: gpointer,
16016 );
16017 pub fn g_file_load_bytes_finish(
16018 file: *mut GFile,
16019 result: *mut GAsyncResult,
16020 etag_out: *mut *mut c_char,
16021 error: *mut *mut glib::GError,
16022 ) -> *mut glib::GBytes;
16023 pub fn g_file_load_contents(
16024 file: *mut GFile,
16025 cancellable: *mut GCancellable,
16026 contents: *mut *mut u8,
16027 length: *mut size_t,
16028 etag_out: *mut *mut c_char,
16029 error: *mut *mut glib::GError,
16030 ) -> gboolean;
16031 pub fn g_file_load_contents_async(
16032 file: *mut GFile,
16033 cancellable: *mut GCancellable,
16034 callback: GAsyncReadyCallback,
16035 user_data: gpointer,
16036 );
16037 pub fn g_file_load_contents_finish(
16038 file: *mut GFile,
16039 res: *mut GAsyncResult,
16040 contents: *mut *mut u8,
16041 length: *mut size_t,
16042 etag_out: *mut *mut c_char,
16043 error: *mut *mut glib::GError,
16044 ) -> gboolean;
16045 pub fn g_file_load_partial_contents_async(
16046 file: *mut GFile,
16047 cancellable: *mut GCancellable,
16048 read_more_callback: GFileReadMoreCallback,
16049 callback: GAsyncReadyCallback,
16050 user_data: gpointer,
16051 );
16052 pub fn g_file_load_partial_contents_finish(
16053 file: *mut GFile,
16054 res: *mut GAsyncResult,
16055 contents: *mut *mut u8,
16056 length: *mut size_t,
16057 etag_out: *mut *mut c_char,
16058 error: *mut *mut glib::GError,
16059 ) -> gboolean;
16060 pub fn g_file_make_directory(
16061 file: *mut GFile,
16062 cancellable: *mut GCancellable,
16063 error: *mut *mut glib::GError,
16064 ) -> gboolean;
16065 pub fn g_file_make_directory_async(
16066 file: *mut GFile,
16067 io_priority: c_int,
16068 cancellable: *mut GCancellable,
16069 callback: GAsyncReadyCallback,
16070 user_data: gpointer,
16071 );
16072 pub fn g_file_make_directory_finish(
16073 file: *mut GFile,
16074 result: *mut GAsyncResult,
16075 error: *mut *mut glib::GError,
16076 ) -> gboolean;
16077 pub fn g_file_make_directory_with_parents(
16078 file: *mut GFile,
16079 cancellable: *mut GCancellable,
16080 error: *mut *mut glib::GError,
16081 ) -> gboolean;
16082 pub fn g_file_make_symbolic_link(
16083 file: *mut GFile,
16084 symlink_value: *const c_char,
16085 cancellable: *mut GCancellable,
16086 error: *mut *mut glib::GError,
16087 ) -> gboolean;
16088 #[cfg(feature = "v2_74")]
16089 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
16090 pub fn g_file_make_symbolic_link_async(
16091 file: *mut GFile,
16092 symlink_value: *const c_char,
16093 io_priority: c_int,
16094 cancellable: *mut GCancellable,
16095 callback: GAsyncReadyCallback,
16096 user_data: gpointer,
16097 );
16098 #[cfg(feature = "v2_74")]
16099 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
16100 pub fn g_file_make_symbolic_link_finish(
16101 file: *mut GFile,
16102 result: *mut GAsyncResult,
16103 error: *mut *mut glib::GError,
16104 ) -> gboolean;
16105 pub fn g_file_measure_disk_usage(
16106 file: *mut GFile,
16107 flags: GFileMeasureFlags,
16108 cancellable: *mut GCancellable,
16109 progress_callback: GFileMeasureProgressCallback,
16110 progress_data: gpointer,
16111 disk_usage: *mut u64,
16112 num_dirs: *mut u64,
16113 num_files: *mut u64,
16114 error: *mut *mut glib::GError,
16115 ) -> gboolean;
16116 pub fn g_file_measure_disk_usage_async(
16117 file: *mut GFile,
16118 flags: GFileMeasureFlags,
16119 io_priority: c_int,
16120 cancellable: *mut GCancellable,
16121 progress_callback: GFileMeasureProgressCallback,
16122 progress_data: gpointer,
16123 callback: GAsyncReadyCallback,
16124 user_data: gpointer,
16125 );
16126 pub fn g_file_measure_disk_usage_finish(
16127 file: *mut GFile,
16128 result: *mut GAsyncResult,
16129 disk_usage: *mut u64,
16130 num_dirs: *mut u64,
16131 num_files: *mut u64,
16132 error: *mut *mut glib::GError,
16133 ) -> gboolean;
16134 pub fn g_file_monitor(
16135 file: *mut GFile,
16136 flags: GFileMonitorFlags,
16137 cancellable: *mut GCancellable,
16138 error: *mut *mut glib::GError,
16139 ) -> *mut GFileMonitor;
16140 pub fn g_file_monitor_directory(
16141 file: *mut GFile,
16142 flags: GFileMonitorFlags,
16143 cancellable: *mut GCancellable,
16144 error: *mut *mut glib::GError,
16145 ) -> *mut GFileMonitor;
16146 pub fn g_file_monitor_file(
16147 file: *mut GFile,
16148 flags: GFileMonitorFlags,
16149 cancellable: *mut GCancellable,
16150 error: *mut *mut glib::GError,
16151 ) -> *mut GFileMonitor;
16152 pub fn g_file_mount_enclosing_volume(
16153 location: *mut GFile,
16154 flags: GMountMountFlags,
16155 mount_operation: *mut GMountOperation,
16156 cancellable: *mut GCancellable,
16157 callback: GAsyncReadyCallback,
16158 user_data: gpointer,
16159 );
16160 pub fn g_file_mount_enclosing_volume_finish(
16161 location: *mut GFile,
16162 result: *mut GAsyncResult,
16163 error: *mut *mut glib::GError,
16164 ) -> gboolean;
16165 pub fn g_file_mount_mountable(
16166 file: *mut GFile,
16167 flags: GMountMountFlags,
16168 mount_operation: *mut GMountOperation,
16169 cancellable: *mut GCancellable,
16170 callback: GAsyncReadyCallback,
16171 user_data: gpointer,
16172 );
16173 pub fn g_file_mount_mountable_finish(
16174 file: *mut GFile,
16175 result: *mut GAsyncResult,
16176 error: *mut *mut glib::GError,
16177 ) -> *mut GFile;
16178 pub fn g_file_move(
16179 source: *mut GFile,
16180 destination: *mut GFile,
16181 flags: GFileCopyFlags,
16182 cancellable: *mut GCancellable,
16183 progress_callback: GFileProgressCallback,
16184 progress_callback_data: gpointer,
16185 error: *mut *mut glib::GError,
16186 ) -> gboolean;
16187 #[cfg(feature = "v2_72")]
16188 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
16189 pub fn g_file_move_async(
16190 source: *mut GFile,
16191 destination: *mut GFile,
16192 flags: GFileCopyFlags,
16193 io_priority: c_int,
16194 cancellable: *mut GCancellable,
16195 progress_callback: GFileProgressCallback,
16196 progress_callback_data: gpointer,
16197 callback: GAsyncReadyCallback,
16198 user_data: gpointer,
16199 );
16200 #[cfg(feature = "v2_82")]
16201 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
16202 pub fn g_file_move_async_with_closures(
16203 source: *mut GFile,
16204 destination: *mut GFile,
16205 flags: GFileCopyFlags,
16206 io_priority: c_int,
16207 cancellable: *mut GCancellable,
16208 progress_callback_closure: *mut gobject::GClosure,
16209 ready_callback_closure: *mut gobject::GClosure,
16210 );
16211 #[cfg(feature = "v2_72")]
16212 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
16213 pub fn g_file_move_finish(
16214 file: *mut GFile,
16215 result: *mut GAsyncResult,
16216 error: *mut *mut glib::GError,
16217 ) -> gboolean;
16218 pub fn g_file_open_readwrite(
16219 file: *mut GFile,
16220 cancellable: *mut GCancellable,
16221 error: *mut *mut glib::GError,
16222 ) -> *mut GFileIOStream;
16223 pub fn g_file_open_readwrite_async(
16224 file: *mut GFile,
16225 io_priority: c_int,
16226 cancellable: *mut GCancellable,
16227 callback: GAsyncReadyCallback,
16228 user_data: gpointer,
16229 );
16230 pub fn g_file_open_readwrite_finish(
16231 file: *mut GFile,
16232 res: *mut GAsyncResult,
16233 error: *mut *mut glib::GError,
16234 ) -> *mut GFileIOStream;
16235 pub fn g_file_peek_path(file: *mut GFile) -> *const c_char;
16236 pub fn g_file_poll_mountable(
16237 file: *mut GFile,
16238 cancellable: *mut GCancellable,
16239 callback: GAsyncReadyCallback,
16240 user_data: gpointer,
16241 );
16242 pub fn g_file_poll_mountable_finish(
16243 file: *mut GFile,
16244 result: *mut GAsyncResult,
16245 error: *mut *mut glib::GError,
16246 ) -> gboolean;
16247 pub fn g_file_query_default_handler(
16248 file: *mut GFile,
16249 cancellable: *mut GCancellable,
16250 error: *mut *mut glib::GError,
16251 ) -> *mut GAppInfo;
16252 #[cfg(feature = "v2_60")]
16253 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16254 pub fn g_file_query_default_handler_async(
16255 file: *mut GFile,
16256 io_priority: c_int,
16257 cancellable: *mut GCancellable,
16258 callback: GAsyncReadyCallback,
16259 user_data: gpointer,
16260 );
16261 #[cfg(feature = "v2_60")]
16262 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16263 pub fn g_file_query_default_handler_finish(
16264 file: *mut GFile,
16265 result: *mut GAsyncResult,
16266 error: *mut *mut glib::GError,
16267 ) -> *mut GAppInfo;
16268 pub fn g_file_query_exists(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean;
16269 pub fn g_file_query_file_type(
16270 file: *mut GFile,
16271 flags: GFileQueryInfoFlags,
16272 cancellable: *mut GCancellable,
16273 ) -> GFileType;
16274 pub fn g_file_query_filesystem_info(
16275 file: *mut GFile,
16276 attributes: *const c_char,
16277 cancellable: *mut GCancellable,
16278 error: *mut *mut glib::GError,
16279 ) -> *mut GFileInfo;
16280 pub fn g_file_query_filesystem_info_async(
16281 file: *mut GFile,
16282 attributes: *const c_char,
16283 io_priority: c_int,
16284 cancellable: *mut GCancellable,
16285 callback: GAsyncReadyCallback,
16286 user_data: gpointer,
16287 );
16288 pub fn g_file_query_filesystem_info_finish(
16289 file: *mut GFile,
16290 res: *mut GAsyncResult,
16291 error: *mut *mut glib::GError,
16292 ) -> *mut GFileInfo;
16293 pub fn g_file_query_info(
16294 file: *mut GFile,
16295 attributes: *const c_char,
16296 flags: GFileQueryInfoFlags,
16297 cancellable: *mut GCancellable,
16298 error: *mut *mut glib::GError,
16299 ) -> *mut GFileInfo;
16300 pub fn g_file_query_info_async(
16301 file: *mut GFile,
16302 attributes: *const c_char,
16303 flags: GFileQueryInfoFlags,
16304 io_priority: c_int,
16305 cancellable: *mut GCancellable,
16306 callback: GAsyncReadyCallback,
16307 user_data: gpointer,
16308 );
16309 pub fn g_file_query_info_finish(
16310 file: *mut GFile,
16311 res: *mut GAsyncResult,
16312 error: *mut *mut glib::GError,
16313 ) -> *mut GFileInfo;
16314 pub fn g_file_query_settable_attributes(
16315 file: *mut GFile,
16316 cancellable: *mut GCancellable,
16317 error: *mut *mut glib::GError,
16318 ) -> *mut GFileAttributeInfoList;
16319 pub fn g_file_query_writable_namespaces(
16320 file: *mut GFile,
16321 cancellable: *mut GCancellable,
16322 error: *mut *mut glib::GError,
16323 ) -> *mut GFileAttributeInfoList;
16324 pub fn g_file_read(
16325 file: *mut GFile,
16326 cancellable: *mut GCancellable,
16327 error: *mut *mut glib::GError,
16328 ) -> *mut GFileInputStream;
16329 pub fn g_file_read_async(
16330 file: *mut GFile,
16331 io_priority: c_int,
16332 cancellable: *mut GCancellable,
16333 callback: GAsyncReadyCallback,
16334 user_data: gpointer,
16335 );
16336 pub fn g_file_read_finish(
16337 file: *mut GFile,
16338 res: *mut GAsyncResult,
16339 error: *mut *mut glib::GError,
16340 ) -> *mut GFileInputStream;
16341 pub fn g_file_replace(
16342 file: *mut GFile,
16343 etag: *const c_char,
16344 make_backup: gboolean,
16345 flags: GFileCreateFlags,
16346 cancellable: *mut GCancellable,
16347 error: *mut *mut glib::GError,
16348 ) -> *mut GFileOutputStream;
16349 pub fn g_file_replace_async(
16350 file: *mut GFile,
16351 etag: *const c_char,
16352 make_backup: gboolean,
16353 flags: GFileCreateFlags,
16354 io_priority: c_int,
16355 cancellable: *mut GCancellable,
16356 callback: GAsyncReadyCallback,
16357 user_data: gpointer,
16358 );
16359 pub fn g_file_replace_contents(
16360 file: *mut GFile,
16361 contents: *const u8,
16362 length: size_t,
16363 etag: *const c_char,
16364 make_backup: gboolean,
16365 flags: GFileCreateFlags,
16366 new_etag: *mut *mut c_char,
16367 cancellable: *mut GCancellable,
16368 error: *mut *mut glib::GError,
16369 ) -> gboolean;
16370 pub fn g_file_replace_contents_async(
16371 file: *mut GFile,
16372 contents: *const u8,
16373 length: size_t,
16374 etag: *const c_char,
16375 make_backup: gboolean,
16376 flags: GFileCreateFlags,
16377 cancellable: *mut GCancellable,
16378 callback: GAsyncReadyCallback,
16379 user_data: gpointer,
16380 );
16381 pub fn g_file_replace_contents_bytes_async(
16382 file: *mut GFile,
16383 contents: *mut glib::GBytes,
16384 etag: *const c_char,
16385 make_backup: gboolean,
16386 flags: GFileCreateFlags,
16387 cancellable: *mut GCancellable,
16388 callback: GAsyncReadyCallback,
16389 user_data: gpointer,
16390 );
16391 pub fn g_file_replace_contents_finish(
16392 file: *mut GFile,
16393 res: *mut GAsyncResult,
16394 new_etag: *mut *mut c_char,
16395 error: *mut *mut glib::GError,
16396 ) -> gboolean;
16397 pub fn g_file_replace_finish(
16398 file: *mut GFile,
16399 res: *mut GAsyncResult,
16400 error: *mut *mut glib::GError,
16401 ) -> *mut GFileOutputStream;
16402 pub fn g_file_replace_readwrite(
16403 file: *mut GFile,
16404 etag: *const c_char,
16405 make_backup: gboolean,
16406 flags: GFileCreateFlags,
16407 cancellable: *mut GCancellable,
16408 error: *mut *mut glib::GError,
16409 ) -> *mut GFileIOStream;
16410 pub fn g_file_replace_readwrite_async(
16411 file: *mut GFile,
16412 etag: *const c_char,
16413 make_backup: gboolean,
16414 flags: GFileCreateFlags,
16415 io_priority: c_int,
16416 cancellable: *mut GCancellable,
16417 callback: GAsyncReadyCallback,
16418 user_data: gpointer,
16419 );
16420 pub fn g_file_replace_readwrite_finish(
16421 file: *mut GFile,
16422 res: *mut GAsyncResult,
16423 error: *mut *mut glib::GError,
16424 ) -> *mut GFileIOStream;
16425 pub fn g_file_resolve_relative_path(
16426 file: *mut GFile,
16427 relative_path: *const c_char,
16428 ) -> *mut GFile;
16429 pub fn g_file_set_attribute(
16430 file: *mut GFile,
16431 attribute: *const c_char,
16432 type_: GFileAttributeType,
16433 value_p: gpointer,
16434 flags: GFileQueryInfoFlags,
16435 cancellable: *mut GCancellable,
16436 error: *mut *mut glib::GError,
16437 ) -> gboolean;
16438 pub fn g_file_set_attribute_byte_string(
16439 file: *mut GFile,
16440 attribute: *const c_char,
16441 value: *const c_char,
16442 flags: GFileQueryInfoFlags,
16443 cancellable: *mut GCancellable,
16444 error: *mut *mut glib::GError,
16445 ) -> gboolean;
16446 pub fn g_file_set_attribute_int32(
16447 file: *mut GFile,
16448 attribute: *const c_char,
16449 value: i32,
16450 flags: GFileQueryInfoFlags,
16451 cancellable: *mut GCancellable,
16452 error: *mut *mut glib::GError,
16453 ) -> gboolean;
16454 pub fn g_file_set_attribute_int64(
16455 file: *mut GFile,
16456 attribute: *const c_char,
16457 value: i64,
16458 flags: GFileQueryInfoFlags,
16459 cancellable: *mut GCancellable,
16460 error: *mut *mut glib::GError,
16461 ) -> gboolean;
16462 pub fn g_file_set_attribute_string(
16463 file: *mut GFile,
16464 attribute: *const c_char,
16465 value: *const c_char,
16466 flags: GFileQueryInfoFlags,
16467 cancellable: *mut GCancellable,
16468 error: *mut *mut glib::GError,
16469 ) -> gboolean;
16470 pub fn g_file_set_attribute_uint32(
16471 file: *mut GFile,
16472 attribute: *const c_char,
16473 value: u32,
16474 flags: GFileQueryInfoFlags,
16475 cancellable: *mut GCancellable,
16476 error: *mut *mut glib::GError,
16477 ) -> gboolean;
16478 pub fn g_file_set_attribute_uint64(
16479 file: *mut GFile,
16480 attribute: *const c_char,
16481 value: u64,
16482 flags: GFileQueryInfoFlags,
16483 cancellable: *mut GCancellable,
16484 error: *mut *mut glib::GError,
16485 ) -> gboolean;
16486 pub fn g_file_set_attributes_async(
16487 file: *mut GFile,
16488 info: *mut GFileInfo,
16489 flags: GFileQueryInfoFlags,
16490 io_priority: c_int,
16491 cancellable: *mut GCancellable,
16492 callback: GAsyncReadyCallback,
16493 user_data: gpointer,
16494 );
16495 pub fn g_file_set_attributes_finish(
16496 file: *mut GFile,
16497 result: *mut GAsyncResult,
16498 info: *mut *mut GFileInfo,
16499 error: *mut *mut glib::GError,
16500 ) -> gboolean;
16501 pub fn g_file_set_attributes_from_info(
16502 file: *mut GFile,
16503 info: *mut GFileInfo,
16504 flags: GFileQueryInfoFlags,
16505 cancellable: *mut GCancellable,
16506 error: *mut *mut glib::GError,
16507 ) -> gboolean;
16508 pub fn g_file_set_display_name(
16509 file: *mut GFile,
16510 display_name: *const c_char,
16511 cancellable: *mut GCancellable,
16512 error: *mut *mut glib::GError,
16513 ) -> *mut GFile;
16514 pub fn g_file_set_display_name_async(
16515 file: *mut GFile,
16516 display_name: *const c_char,
16517 io_priority: c_int,
16518 cancellable: *mut GCancellable,
16519 callback: GAsyncReadyCallback,
16520 user_data: gpointer,
16521 );
16522 pub fn g_file_set_display_name_finish(
16523 file: *mut GFile,
16524 res: *mut GAsyncResult,
16525 error: *mut *mut glib::GError,
16526 ) -> *mut GFile;
16527 pub fn g_file_start_mountable(
16528 file: *mut GFile,
16529 flags: GDriveStartFlags,
16530 start_operation: *mut GMountOperation,
16531 cancellable: *mut GCancellable,
16532 callback: GAsyncReadyCallback,
16533 user_data: gpointer,
16534 );
16535 pub fn g_file_start_mountable_finish(
16536 file: *mut GFile,
16537 result: *mut GAsyncResult,
16538 error: *mut *mut glib::GError,
16539 ) -> gboolean;
16540 pub fn g_file_stop_mountable(
16541 file: *mut GFile,
16542 flags: GMountUnmountFlags,
16543 mount_operation: *mut GMountOperation,
16544 cancellable: *mut GCancellable,
16545 callback: GAsyncReadyCallback,
16546 user_data: gpointer,
16547 );
16548 pub fn g_file_stop_mountable_finish(
16549 file: *mut GFile,
16550 result: *mut GAsyncResult,
16551 error: *mut *mut glib::GError,
16552 ) -> gboolean;
16553 pub fn g_file_supports_thread_contexts(file: *mut GFile) -> gboolean;
16554 pub fn g_file_trash(
16555 file: *mut GFile,
16556 cancellable: *mut GCancellable,
16557 error: *mut *mut glib::GError,
16558 ) -> gboolean;
16559 pub fn g_file_trash_async(
16560 file: *mut GFile,
16561 io_priority: c_int,
16562 cancellable: *mut GCancellable,
16563 callback: GAsyncReadyCallback,
16564 user_data: gpointer,
16565 );
16566 pub fn g_file_trash_finish(
16567 file: *mut GFile,
16568 result: *mut GAsyncResult,
16569 error: *mut *mut glib::GError,
16570 ) -> gboolean;
16571 pub fn g_file_unmount_mountable(
16572 file: *mut GFile,
16573 flags: GMountUnmountFlags,
16574 cancellable: *mut GCancellable,
16575 callback: GAsyncReadyCallback,
16576 user_data: gpointer,
16577 );
16578 pub fn g_file_unmount_mountable_finish(
16579 file: *mut GFile,
16580 result: *mut GAsyncResult,
16581 error: *mut *mut glib::GError,
16582 ) -> gboolean;
16583 pub fn g_file_unmount_mountable_with_operation(
16584 file: *mut GFile,
16585 flags: GMountUnmountFlags,
16586 mount_operation: *mut GMountOperation,
16587 cancellable: *mut GCancellable,
16588 callback: GAsyncReadyCallback,
16589 user_data: gpointer,
16590 );
16591 pub fn g_file_unmount_mountable_with_operation_finish(
16592 file: *mut GFile,
16593 result: *mut GAsyncResult,
16594 error: *mut *mut glib::GError,
16595 ) -> gboolean;
16596
16597 pub fn g_file_descriptor_based_get_type() -> GType;
16601 pub fn g_file_descriptor_based_get_fd(fd_based: *mut GFileDescriptorBased) -> c_int;
16602
16603 pub fn g_icon_get_type() -> GType;
16607 pub fn g_icon_deserialize(value: *mut glib::GVariant) -> *mut GIcon;
16608 pub fn g_icon_new_for_string(str: *const c_char, error: *mut *mut glib::GError) -> *mut GIcon;
16609 pub fn g_icon_equal(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean;
16610 pub fn g_icon_hash(icon: gconstpointer) -> c_uint;
16611 pub fn g_icon_serialize(icon: *mut GIcon) -> *mut glib::GVariant;
16612 pub fn g_icon_to_string(icon: *mut GIcon) -> *mut c_char;
16613
16614 pub fn g_initable_get_type() -> GType;
16618 pub fn g_initable_new(
16619 object_type: GType,
16620 cancellable: *mut GCancellable,
16621 error: *mut *mut glib::GError,
16622 first_property_name: *const c_char,
16623 ...
16624 ) -> *mut gobject::GObject;
16625 pub fn g_initable_newv(
16627 object_type: GType,
16628 n_parameters: c_uint,
16629 parameters: *mut gobject::GParameter,
16630 cancellable: *mut GCancellable,
16631 error: *mut *mut glib::GError,
16632 ) -> *mut gobject::GObject;
16633 pub fn g_initable_init(
16634 initable: *mut GInitable,
16635 cancellable: *mut GCancellable,
16636 error: *mut *mut glib::GError,
16637 ) -> gboolean;
16638
16639 pub fn g_list_model_get_type() -> GType;
16643 pub fn g_list_model_get_item(list: *mut GListModel, position: c_uint) -> gpointer;
16644 pub fn g_list_model_get_item_type(list: *mut GListModel) -> GType;
16645 pub fn g_list_model_get_n_items(list: *mut GListModel) -> c_uint;
16646 pub fn g_list_model_get_object(
16647 list: *mut GListModel,
16648 position: c_uint,
16649 ) -> *mut gobject::GObject;
16650 pub fn g_list_model_items_changed(
16651 list: *mut GListModel,
16652 position: c_uint,
16653 removed: c_uint,
16654 added: c_uint,
16655 );
16656
16657 pub fn g_loadable_icon_get_type() -> GType;
16661 pub fn g_loadable_icon_load(
16662 icon: *mut GLoadableIcon,
16663 size: c_int,
16664 type_: *mut *mut c_char,
16665 cancellable: *mut GCancellable,
16666 error: *mut *mut glib::GError,
16667 ) -> *mut GInputStream;
16668 pub fn g_loadable_icon_load_async(
16669 icon: *mut GLoadableIcon,
16670 size: c_int,
16671 cancellable: *mut GCancellable,
16672 callback: GAsyncReadyCallback,
16673 user_data: gpointer,
16674 );
16675 pub fn g_loadable_icon_load_finish(
16676 icon: *mut GLoadableIcon,
16677 res: *mut GAsyncResult,
16678 type_: *mut *mut c_char,
16679 error: *mut *mut glib::GError,
16680 ) -> *mut GInputStream;
16681
16682 #[cfg(feature = "v2_64")]
16686 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
16687 pub fn g_memory_monitor_get_type() -> GType;
16688 #[cfg(feature = "v2_64")]
16689 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
16690 pub fn g_memory_monitor_dup_default() -> *mut GMemoryMonitor;
16691
16692 pub fn g_mount_get_type() -> GType;
16696 pub fn g_mount_can_eject(mount: *mut GMount) -> gboolean;
16697 pub fn g_mount_can_unmount(mount: *mut GMount) -> gboolean;
16698 pub fn g_mount_eject(
16699 mount: *mut GMount,
16700 flags: GMountUnmountFlags,
16701 cancellable: *mut GCancellable,
16702 callback: GAsyncReadyCallback,
16703 user_data: gpointer,
16704 );
16705 pub fn g_mount_eject_finish(
16706 mount: *mut GMount,
16707 result: *mut GAsyncResult,
16708 error: *mut *mut glib::GError,
16709 ) -> gboolean;
16710 pub fn g_mount_eject_with_operation(
16711 mount: *mut GMount,
16712 flags: GMountUnmountFlags,
16713 mount_operation: *mut GMountOperation,
16714 cancellable: *mut GCancellable,
16715 callback: GAsyncReadyCallback,
16716 user_data: gpointer,
16717 );
16718 pub fn g_mount_eject_with_operation_finish(
16719 mount: *mut GMount,
16720 result: *mut GAsyncResult,
16721 error: *mut *mut glib::GError,
16722 ) -> gboolean;
16723 pub fn g_mount_get_default_location(mount: *mut GMount) -> *mut GFile;
16724 pub fn g_mount_get_drive(mount: *mut GMount) -> *mut GDrive;
16725 pub fn g_mount_get_icon(mount: *mut GMount) -> *mut GIcon;
16726 pub fn g_mount_get_name(mount: *mut GMount) -> *mut c_char;
16727 pub fn g_mount_get_root(mount: *mut GMount) -> *mut GFile;
16728 pub fn g_mount_get_sort_key(mount: *mut GMount) -> *const c_char;
16729 pub fn g_mount_get_symbolic_icon(mount: *mut GMount) -> *mut GIcon;
16730 pub fn g_mount_get_uuid(mount: *mut GMount) -> *mut c_char;
16731 pub fn g_mount_get_volume(mount: *mut GMount) -> *mut GVolume;
16732 pub fn g_mount_guess_content_type(
16733 mount: *mut GMount,
16734 force_rescan: gboolean,
16735 cancellable: *mut GCancellable,
16736 callback: GAsyncReadyCallback,
16737 user_data: gpointer,
16738 );
16739 pub fn g_mount_guess_content_type_finish(
16740 mount: *mut GMount,
16741 result: *mut GAsyncResult,
16742 error: *mut *mut glib::GError,
16743 ) -> *mut *mut c_char;
16744 pub fn g_mount_guess_content_type_sync(
16745 mount: *mut GMount,
16746 force_rescan: gboolean,
16747 cancellable: *mut GCancellable,
16748 error: *mut *mut glib::GError,
16749 ) -> *mut *mut c_char;
16750 pub fn g_mount_is_shadowed(mount: *mut GMount) -> gboolean;
16751 pub fn g_mount_remount(
16752 mount: *mut GMount,
16753 flags: GMountMountFlags,
16754 mount_operation: *mut GMountOperation,
16755 cancellable: *mut GCancellable,
16756 callback: GAsyncReadyCallback,
16757 user_data: gpointer,
16758 );
16759 pub fn g_mount_remount_finish(
16760 mount: *mut GMount,
16761 result: *mut GAsyncResult,
16762 error: *mut *mut glib::GError,
16763 ) -> gboolean;
16764 pub fn g_mount_shadow(mount: *mut GMount);
16765 pub fn g_mount_unmount(
16766 mount: *mut GMount,
16767 flags: GMountUnmountFlags,
16768 cancellable: *mut GCancellable,
16769 callback: GAsyncReadyCallback,
16770 user_data: gpointer,
16771 );
16772 pub fn g_mount_unmount_finish(
16773 mount: *mut GMount,
16774 result: *mut GAsyncResult,
16775 error: *mut *mut glib::GError,
16776 ) -> gboolean;
16777 pub fn g_mount_unmount_with_operation(
16778 mount: *mut GMount,
16779 flags: GMountUnmountFlags,
16780 mount_operation: *mut GMountOperation,
16781 cancellable: *mut GCancellable,
16782 callback: GAsyncReadyCallback,
16783 user_data: gpointer,
16784 );
16785 pub fn g_mount_unmount_with_operation_finish(
16786 mount: *mut GMount,
16787 result: *mut GAsyncResult,
16788 error: *mut *mut glib::GError,
16789 ) -> gboolean;
16790 pub fn g_mount_unshadow(mount: *mut GMount);
16791
16792 pub fn g_network_monitor_get_type() -> GType;
16796 pub fn g_network_monitor_get_default() -> *mut GNetworkMonitor;
16797 pub fn g_network_monitor_can_reach(
16798 monitor: *mut GNetworkMonitor,
16799 connectable: *mut GSocketConnectable,
16800 cancellable: *mut GCancellable,
16801 error: *mut *mut glib::GError,
16802 ) -> gboolean;
16803 pub fn g_network_monitor_can_reach_async(
16804 monitor: *mut GNetworkMonitor,
16805 connectable: *mut GSocketConnectable,
16806 cancellable: *mut GCancellable,
16807 callback: GAsyncReadyCallback,
16808 user_data: gpointer,
16809 );
16810 pub fn g_network_monitor_can_reach_finish(
16811 monitor: *mut GNetworkMonitor,
16812 result: *mut GAsyncResult,
16813 error: *mut *mut glib::GError,
16814 ) -> gboolean;
16815 pub fn g_network_monitor_get_connectivity(
16816 monitor: *mut GNetworkMonitor,
16817 ) -> GNetworkConnectivity;
16818 pub fn g_network_monitor_get_network_available(monitor: *mut GNetworkMonitor) -> gboolean;
16819 pub fn g_network_monitor_get_network_metered(monitor: *mut GNetworkMonitor) -> gboolean;
16820
16821 pub fn g_pollable_input_stream_get_type() -> GType;
16825 pub fn g_pollable_input_stream_can_poll(stream: *mut GPollableInputStream) -> gboolean;
16826 pub fn g_pollable_input_stream_create_source(
16827 stream: *mut GPollableInputStream,
16828 cancellable: *mut GCancellable,
16829 ) -> *mut glib::GSource;
16830 pub fn g_pollable_input_stream_is_readable(stream: *mut GPollableInputStream) -> gboolean;
16831 pub fn g_pollable_input_stream_read_nonblocking(
16832 stream: *mut GPollableInputStream,
16833 buffer: *mut u8,
16834 count: size_t,
16835 cancellable: *mut GCancellable,
16836 error: *mut *mut glib::GError,
16837 ) -> ssize_t;
16838
16839 pub fn g_pollable_output_stream_get_type() -> GType;
16843 pub fn g_pollable_output_stream_can_poll(stream: *mut GPollableOutputStream) -> gboolean;
16844 pub fn g_pollable_output_stream_create_source(
16845 stream: *mut GPollableOutputStream,
16846 cancellable: *mut GCancellable,
16847 ) -> *mut glib::GSource;
16848 pub fn g_pollable_output_stream_is_writable(stream: *mut GPollableOutputStream) -> gboolean;
16849 pub fn g_pollable_output_stream_write_nonblocking(
16850 stream: *mut GPollableOutputStream,
16851 buffer: *mut u8,
16852 count: size_t,
16853 cancellable: *mut GCancellable,
16854 error: *mut *mut glib::GError,
16855 ) -> ssize_t;
16856 #[cfg(feature = "v2_60")]
16857 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16858 pub fn g_pollable_output_stream_writev_nonblocking(
16859 stream: *mut GPollableOutputStream,
16860 vectors: *const GOutputVector,
16861 n_vectors: size_t,
16862 bytes_written: *mut size_t,
16863 cancellable: *mut GCancellable,
16864 error: *mut *mut glib::GError,
16865 ) -> GPollableReturn;
16866
16867 #[cfg(feature = "v2_70")]
16871 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16872 pub fn g_power_profile_monitor_get_type() -> GType;
16873 #[cfg(feature = "v2_70")]
16874 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16875 pub fn g_power_profile_monitor_dup_default() -> *mut GPowerProfileMonitor;
16876 #[cfg(feature = "v2_70")]
16877 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16878 pub fn g_power_profile_monitor_get_power_saver_enabled(
16879 monitor: *mut GPowerProfileMonitor,
16880 ) -> gboolean;
16881
16882 pub fn g_proxy_get_type() -> GType;
16886 pub fn g_proxy_get_default_for_protocol(protocol: *const c_char) -> *mut GProxy;
16887 pub fn g_proxy_connect(
16888 proxy: *mut GProxy,
16889 connection: *mut GIOStream,
16890 proxy_address: *mut GProxyAddress,
16891 cancellable: *mut GCancellable,
16892 error: *mut *mut glib::GError,
16893 ) -> *mut GIOStream;
16894 pub fn g_proxy_connect_async(
16895 proxy: *mut GProxy,
16896 connection: *mut GIOStream,
16897 proxy_address: *mut GProxyAddress,
16898 cancellable: *mut GCancellable,
16899 callback: GAsyncReadyCallback,
16900 user_data: gpointer,
16901 );
16902 pub fn g_proxy_connect_finish(
16903 proxy: *mut GProxy,
16904 result: *mut GAsyncResult,
16905 error: *mut *mut glib::GError,
16906 ) -> *mut GIOStream;
16907 pub fn g_proxy_supports_hostname(proxy: *mut GProxy) -> gboolean;
16908
16909 pub fn g_proxy_resolver_get_type() -> GType;
16913 pub fn g_proxy_resolver_get_default() -> *mut GProxyResolver;
16914 pub fn g_proxy_resolver_is_supported(resolver: *mut GProxyResolver) -> gboolean;
16915 pub fn g_proxy_resolver_lookup(
16916 resolver: *mut GProxyResolver,
16917 uri: *const c_char,
16918 cancellable: *mut GCancellable,
16919 error: *mut *mut glib::GError,
16920 ) -> *mut *mut c_char;
16921 pub fn g_proxy_resolver_lookup_async(
16922 resolver: *mut GProxyResolver,
16923 uri: *const c_char,
16924 cancellable: *mut GCancellable,
16925 callback: GAsyncReadyCallback,
16926 user_data: gpointer,
16927 );
16928 pub fn g_proxy_resolver_lookup_finish(
16929 resolver: *mut GProxyResolver,
16930 result: *mut GAsyncResult,
16931 error: *mut *mut glib::GError,
16932 ) -> *mut *mut c_char;
16933
16934 pub fn g_remote_action_group_get_type() -> GType;
16938 pub fn g_remote_action_group_activate_action_full(
16939 remote: *mut GRemoteActionGroup,
16940 action_name: *const c_char,
16941 parameter: *mut glib::GVariant,
16942 platform_data: *mut glib::GVariant,
16943 );
16944 pub fn g_remote_action_group_change_action_state_full(
16945 remote: *mut GRemoteActionGroup,
16946 action_name: *const c_char,
16947 value: *mut glib::GVariant,
16948 platform_data: *mut glib::GVariant,
16949 );
16950
16951 pub fn g_seekable_get_type() -> GType;
16955 pub fn g_seekable_can_seek(seekable: *mut GSeekable) -> gboolean;
16956 pub fn g_seekable_can_truncate(seekable: *mut GSeekable) -> gboolean;
16957 pub fn g_seekable_seek(
16958 seekable: *mut GSeekable,
16959 offset: i64,
16960 type_: glib::GSeekType,
16961 cancellable: *mut GCancellable,
16962 error: *mut *mut glib::GError,
16963 ) -> gboolean;
16964 pub fn g_seekable_tell(seekable: *mut GSeekable) -> i64;
16965 pub fn g_seekable_truncate(
16966 seekable: *mut GSeekable,
16967 offset: i64,
16968 cancellable: *mut GCancellable,
16969 error: *mut *mut glib::GError,
16970 ) -> gboolean;
16971
16972 pub fn g_socket_connectable_get_type() -> GType;
16976 pub fn g_socket_connectable_enumerate(
16977 connectable: *mut GSocketConnectable,
16978 ) -> *mut GSocketAddressEnumerator;
16979 pub fn g_socket_connectable_proxy_enumerate(
16980 connectable: *mut GSocketConnectable,
16981 ) -> *mut GSocketAddressEnumerator;
16982 pub fn g_socket_connectable_to_string(connectable: *mut GSocketConnectable) -> *mut c_char;
16983
16984 pub fn g_tls_backend_get_type() -> GType;
16988 pub fn g_tls_backend_get_default() -> *mut GTlsBackend;
16989 pub fn g_tls_backend_get_certificate_type(backend: *mut GTlsBackend) -> GType;
16990 pub fn g_tls_backend_get_client_connection_type(backend: *mut GTlsBackend) -> GType;
16991 pub fn g_tls_backend_get_default_database(backend: *mut GTlsBackend) -> *mut GTlsDatabase;
16992 pub fn g_tls_backend_get_dtls_client_connection_type(backend: *mut GTlsBackend) -> GType;
16993 pub fn g_tls_backend_get_dtls_server_connection_type(backend: *mut GTlsBackend) -> GType;
16994 pub fn g_tls_backend_get_file_database_type(backend: *mut GTlsBackend) -> GType;
16995 pub fn g_tls_backend_get_server_connection_type(backend: *mut GTlsBackend) -> GType;
16996 #[cfg(feature = "v2_60")]
16997 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16998 pub fn g_tls_backend_set_default_database(
16999 backend: *mut GTlsBackend,
17000 database: *mut GTlsDatabase,
17001 );
17002 pub fn g_tls_backend_supports_dtls(backend: *mut GTlsBackend) -> gboolean;
17003 pub fn g_tls_backend_supports_tls(backend: *mut GTlsBackend) -> gboolean;
17004
17005 pub fn g_tls_client_connection_get_type() -> GType;
17009 pub fn g_tls_client_connection_new(
17010 base_io_stream: *mut GIOStream,
17011 server_identity: *mut GSocketConnectable,
17012 error: *mut *mut glib::GError,
17013 ) -> *mut GTlsClientConnection;
17014 pub fn g_tls_client_connection_copy_session_state(
17015 conn: *mut GTlsClientConnection,
17016 source: *mut GTlsClientConnection,
17017 );
17018 pub fn g_tls_client_connection_get_accepted_cas(
17019 conn: *mut GTlsClientConnection,
17020 ) -> *mut glib::GList;
17021 pub fn g_tls_client_connection_get_server_identity(
17022 conn: *mut GTlsClientConnection,
17023 ) -> *mut GSocketConnectable;
17024 pub fn g_tls_client_connection_get_use_ssl3(conn: *mut GTlsClientConnection) -> gboolean;
17025 pub fn g_tls_client_connection_get_validation_flags(
17026 conn: *mut GTlsClientConnection,
17027 ) -> GTlsCertificateFlags;
17028 pub fn g_tls_client_connection_set_server_identity(
17029 conn: *mut GTlsClientConnection,
17030 identity: *mut GSocketConnectable,
17031 );
17032 pub fn g_tls_client_connection_set_use_ssl3(
17033 conn: *mut GTlsClientConnection,
17034 use_ssl3: gboolean,
17035 );
17036 pub fn g_tls_client_connection_set_validation_flags(
17037 conn: *mut GTlsClientConnection,
17038 flags: GTlsCertificateFlags,
17039 );
17040
17041 pub fn g_tls_file_database_get_type() -> GType;
17045 pub fn g_tls_file_database_new(
17046 anchors: *const c_char,
17047 error: *mut *mut glib::GError,
17048 ) -> *mut GTlsFileDatabase;
17049
17050 pub fn g_tls_server_connection_get_type() -> GType;
17054 pub fn g_tls_server_connection_new(
17055 base_io_stream: *mut GIOStream,
17056 certificate: *mut GTlsCertificate,
17057 error: *mut *mut glib::GError,
17058 ) -> *mut GTlsServerConnection;
17059
17060 pub fn g_volume_get_type() -> GType;
17064 pub fn g_volume_can_eject(volume: *mut GVolume) -> gboolean;
17065 pub fn g_volume_can_mount(volume: *mut GVolume) -> gboolean;
17066 pub fn g_volume_eject(
17067 volume: *mut GVolume,
17068 flags: GMountUnmountFlags,
17069 cancellable: *mut GCancellable,
17070 callback: GAsyncReadyCallback,
17071 user_data: gpointer,
17072 );
17073 pub fn g_volume_eject_finish(
17074 volume: *mut GVolume,
17075 result: *mut GAsyncResult,
17076 error: *mut *mut glib::GError,
17077 ) -> gboolean;
17078 pub fn g_volume_eject_with_operation(
17079 volume: *mut GVolume,
17080 flags: GMountUnmountFlags,
17081 mount_operation: *mut GMountOperation,
17082 cancellable: *mut GCancellable,
17083 callback: GAsyncReadyCallback,
17084 user_data: gpointer,
17085 );
17086 pub fn g_volume_eject_with_operation_finish(
17087 volume: *mut GVolume,
17088 result: *mut GAsyncResult,
17089 error: *mut *mut glib::GError,
17090 ) -> gboolean;
17091 pub fn g_volume_enumerate_identifiers(volume: *mut GVolume) -> *mut *mut c_char;
17092 pub fn g_volume_get_activation_root(volume: *mut GVolume) -> *mut GFile;
17093 pub fn g_volume_get_drive(volume: *mut GVolume) -> *mut GDrive;
17094 pub fn g_volume_get_icon(volume: *mut GVolume) -> *mut GIcon;
17095 pub fn g_volume_get_identifier(volume: *mut GVolume, kind: *const c_char) -> *mut c_char;
17096 pub fn g_volume_get_mount(volume: *mut GVolume) -> *mut GMount;
17097 pub fn g_volume_get_name(volume: *mut GVolume) -> *mut c_char;
17098 pub fn g_volume_get_sort_key(volume: *mut GVolume) -> *const c_char;
17099 pub fn g_volume_get_symbolic_icon(volume: *mut GVolume) -> *mut GIcon;
17100 pub fn g_volume_get_uuid(volume: *mut GVolume) -> *mut c_char;
17101 pub fn g_volume_mount(
17102 volume: *mut GVolume,
17103 flags: GMountMountFlags,
17104 mount_operation: *mut GMountOperation,
17105 cancellable: *mut GCancellable,
17106 callback: GAsyncReadyCallback,
17107 user_data: gpointer,
17108 );
17109 pub fn g_volume_mount_finish(
17110 volume: *mut GVolume,
17111 result: *mut GAsyncResult,
17112 error: *mut *mut glib::GError,
17113 ) -> gboolean;
17114 pub fn g_volume_should_automount(volume: *mut GVolume) -> gboolean;
17115
17116 pub fn g_bus_get(
17120 bus_type: GBusType,
17121 cancellable: *mut GCancellable,
17122 callback: GAsyncReadyCallback,
17123 user_data: gpointer,
17124 );
17125 pub fn g_bus_get_finish(
17126 res: *mut GAsyncResult,
17127 error: *mut *mut glib::GError,
17128 ) -> *mut GDBusConnection;
17129 pub fn g_bus_get_sync(
17130 bus_type: GBusType,
17131 cancellable: *mut GCancellable,
17132 error: *mut *mut glib::GError,
17133 ) -> *mut GDBusConnection;
17134 pub fn g_bus_own_name(
17135 bus_type: GBusType,
17136 name: *const c_char,
17137 flags: GBusNameOwnerFlags,
17138 bus_acquired_handler: GBusAcquiredCallback,
17139 name_acquired_handler: GBusNameAcquiredCallback,
17140 name_lost_handler: GBusNameLostCallback,
17141 user_data: gpointer,
17142 user_data_free_func: glib::GDestroyNotify,
17143 ) -> c_uint;
17144 pub fn g_bus_own_name_on_connection(
17145 connection: *mut GDBusConnection,
17146 name: *const c_char,
17147 flags: GBusNameOwnerFlags,
17148 name_acquired_handler: GBusNameAcquiredCallback,
17149 name_lost_handler: GBusNameLostCallback,
17150 user_data: gpointer,
17151 user_data_free_func: glib::GDestroyNotify,
17152 ) -> c_uint;
17153 pub fn g_bus_own_name_on_connection_with_closures(
17154 connection: *mut GDBusConnection,
17155 name: *const c_char,
17156 flags: GBusNameOwnerFlags,
17157 name_acquired_closure: *mut gobject::GClosure,
17158 name_lost_closure: *mut gobject::GClosure,
17159 ) -> c_uint;
17160 pub fn g_bus_own_name_with_closures(
17161 bus_type: GBusType,
17162 name: *const c_char,
17163 flags: GBusNameOwnerFlags,
17164 bus_acquired_closure: *mut gobject::GClosure,
17165 name_acquired_closure: *mut gobject::GClosure,
17166 name_lost_closure: *mut gobject::GClosure,
17167 ) -> c_uint;
17168 pub fn g_bus_unown_name(owner_id: c_uint);
17169 pub fn g_bus_unwatch_name(watcher_id: c_uint);
17170 pub fn g_bus_watch_name(
17171 bus_type: GBusType,
17172 name: *const c_char,
17173 flags: GBusNameWatcherFlags,
17174 name_appeared_handler: GBusNameAppearedCallback,
17175 name_vanished_handler: GBusNameVanishedCallback,
17176 user_data: gpointer,
17177 user_data_free_func: glib::GDestroyNotify,
17178 ) -> c_uint;
17179 pub fn g_bus_watch_name_on_connection(
17180 connection: *mut GDBusConnection,
17181 name: *const c_char,
17182 flags: GBusNameWatcherFlags,
17183 name_appeared_handler: GBusNameAppearedCallback,
17184 name_vanished_handler: GBusNameVanishedCallback,
17185 user_data: gpointer,
17186 user_data_free_func: glib::GDestroyNotify,
17187 ) -> c_uint;
17188 pub fn g_bus_watch_name_on_connection_with_closures(
17189 connection: *mut GDBusConnection,
17190 name: *const c_char,
17191 flags: GBusNameWatcherFlags,
17192 name_appeared_closure: *mut gobject::GClosure,
17193 name_vanished_closure: *mut gobject::GClosure,
17194 ) -> c_uint;
17195 pub fn g_bus_watch_name_with_closures(
17196 bus_type: GBusType,
17197 name: *const c_char,
17198 flags: GBusNameWatcherFlags,
17199 name_appeared_closure: *mut gobject::GClosure,
17200 name_vanished_closure: *mut gobject::GClosure,
17201 ) -> c_uint;
17202 pub fn g_content_type_can_be_executable(type_: *const c_char) -> gboolean;
17203 pub fn g_content_type_equals(type1: *const c_char, type2: *const c_char) -> gboolean;
17204 pub fn g_content_type_from_mime_type(mime_type: *const c_char) -> *mut c_char;
17205 pub fn g_content_type_get_description(type_: *const c_char) -> *mut c_char;
17206 pub fn g_content_type_get_generic_icon_name(type_: *const c_char) -> *mut c_char;
17207 pub fn g_content_type_get_icon(type_: *const c_char) -> *mut GIcon;
17208 #[cfg(feature = "v2_60")]
17209 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
17210 pub fn g_content_type_get_mime_dirs() -> *const *const c_char;
17211 pub fn g_content_type_get_mime_type(type_: *const c_char) -> *mut c_char;
17212 pub fn g_content_type_get_symbolic_icon(type_: *const c_char) -> *mut GIcon;
17213 pub fn g_content_type_guess(
17214 filename: *const c_char,
17215 data: *const u8,
17216 data_size: size_t,
17217 result_uncertain: *mut gboolean,
17218 ) -> *mut c_char;
17219 pub fn g_content_type_guess_for_tree(root: *mut GFile) -> *mut *mut c_char;
17220 pub fn g_content_type_is_a(type_: *const c_char, supertype: *const c_char) -> gboolean;
17221 pub fn g_content_type_is_mime_type(type_: *const c_char, mime_type: *const c_char) -> gboolean;
17222 pub fn g_content_type_is_unknown(type_: *const c_char) -> gboolean;
17223 #[cfg(feature = "v2_60")]
17224 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
17225 pub fn g_content_type_set_mime_dirs(dirs: *const *const c_char);
17226 pub fn g_content_types_get_registered() -> *mut glib::GList;
17227 pub fn g_dbus_address_escape_value(string: *const c_char) -> *mut c_char;
17228 pub fn g_dbus_address_get_for_bus_sync(
17229 bus_type: GBusType,
17230 cancellable: *mut GCancellable,
17231 error: *mut *mut glib::GError,
17232 ) -> *mut c_char;
17233 pub fn g_dbus_address_get_stream(
17234 address: *const c_char,
17235 cancellable: *mut GCancellable,
17236 callback: GAsyncReadyCallback,
17237 user_data: gpointer,
17238 );
17239 pub fn g_dbus_address_get_stream_finish(
17240 res: *mut GAsyncResult,
17241 out_guid: *mut *mut c_char,
17242 error: *mut *mut glib::GError,
17243 ) -> *mut GIOStream;
17244 pub fn g_dbus_address_get_stream_sync(
17245 address: *const c_char,
17246 out_guid: *mut *mut c_char,
17247 cancellable: *mut GCancellable,
17248 error: *mut *mut glib::GError,
17249 ) -> *mut GIOStream;
17250 #[cfg(feature = "v2_68")]
17251 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
17252 pub fn g_dbus_escape_object_path(s: *const c_char) -> *mut c_char;
17253 #[cfg(feature = "v2_68")]
17254 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
17255 pub fn g_dbus_escape_object_path_bytestring(bytes: *const u8) -> *mut c_char;
17256 pub fn g_dbus_generate_guid() -> *mut c_char;
17257 pub fn g_dbus_gvalue_to_gvariant(
17258 gvalue: *const gobject::GValue,
17259 type_: *const glib::GVariantType,
17260 ) -> *mut glib::GVariant;
17261 pub fn g_dbus_gvariant_to_gvalue(value: *mut glib::GVariant, out_gvalue: *mut gobject::GValue);
17262 pub fn g_dbus_is_address(string: *const c_char) -> gboolean;
17263 #[cfg(feature = "v2_70")]
17264 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
17265 pub fn g_dbus_is_error_name(string: *const c_char) -> gboolean;
17266 pub fn g_dbus_is_guid(string: *const c_char) -> gboolean;
17267 pub fn g_dbus_is_interface_name(string: *const c_char) -> gboolean;
17268 pub fn g_dbus_is_member_name(string: *const c_char) -> gboolean;
17269 pub fn g_dbus_is_name(string: *const c_char) -> gboolean;
17270 pub fn g_dbus_is_supported_address(
17271 string: *const c_char,
17272 error: *mut *mut glib::GError,
17273 ) -> gboolean;
17274 pub fn g_dbus_is_unique_name(string: *const c_char) -> gboolean;
17275 #[cfg(feature = "v2_68")]
17276 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
17277 pub fn g_dbus_unescape_object_path(s: *const c_char) -> *mut u8;
17278 pub fn g_io_error_from_errno(err_no: c_int) -> GIOErrorEnum;
17279 #[cfg(feature = "v2_74")]
17280 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
17281 pub fn g_io_error_from_file_error(file_error: glib::GFileError) -> GIOErrorEnum;
17282 pub fn g_io_error_quark() -> glib::GQuark;
17283 pub fn g_io_modules_load_all_in_directory(dirname: *const c_char) -> *mut glib::GList;
17284 pub fn g_io_modules_load_all_in_directory_with_scope(
17285 dirname: *const c_char,
17286 scope: *mut GIOModuleScope,
17287 ) -> *mut glib::GList;
17288 pub fn g_io_modules_scan_all_in_directory(dirname: *const c_char);
17289 pub fn g_io_modules_scan_all_in_directory_with_scope(
17290 dirname: *const c_char,
17291 scope: *mut GIOModuleScope,
17292 );
17293 pub fn g_io_scheduler_cancel_all_jobs();
17294 pub fn g_io_scheduler_push_job(
17295 job_func: GIOSchedulerJobFunc,
17296 user_data: gpointer,
17297 notify: glib::GDestroyNotify,
17298 io_priority: c_int,
17299 cancellable: *mut GCancellable,
17300 );
17301 pub fn g_keyfile_settings_backend_new(
17302 filename: *const c_char,
17303 root_path: *const c_char,
17304 root_group: *const c_char,
17305 ) -> *mut GSettingsBackend;
17306 pub fn g_memory_settings_backend_new() -> *mut GSettingsBackend;
17307 pub fn g_networking_init();
17308 pub fn g_null_settings_backend_new() -> *mut GSettingsBackend;
17309 pub fn g_pollable_source_new(pollable_stream: *mut gobject::GObject) -> *mut glib::GSource;
17310 pub fn g_pollable_source_new_full(
17311 pollable_stream: *mut gobject::GObject,
17312 child_source: *mut glib::GSource,
17313 cancellable: *mut GCancellable,
17314 ) -> *mut glib::GSource;
17315 pub fn g_pollable_stream_read(
17316 stream: *mut GInputStream,
17317 buffer: *mut u8,
17318 count: size_t,
17319 blocking: gboolean,
17320 cancellable: *mut GCancellable,
17321 error: *mut *mut glib::GError,
17322 ) -> ssize_t;
17323 pub fn g_pollable_stream_write(
17324 stream: *mut GOutputStream,
17325 buffer: *mut u8,
17326 count: size_t,
17327 blocking: gboolean,
17328 cancellable: *mut GCancellable,
17329 error: *mut *mut glib::GError,
17330 ) -> ssize_t;
17331 pub fn g_pollable_stream_write_all(
17332 stream: *mut GOutputStream,
17333 buffer: *mut u8,
17334 count: size_t,
17335 blocking: gboolean,
17336 bytes_written: *mut size_t,
17337 cancellable: *mut GCancellable,
17338 error: *mut *mut glib::GError,
17339 ) -> gboolean;
17340 pub fn g_resources_enumerate_children(
17341 path: *const c_char,
17342 lookup_flags: GResourceLookupFlags,
17343 error: *mut *mut glib::GError,
17344 ) -> *mut *mut c_char;
17345 pub fn g_resources_get_info(
17346 path: *const c_char,
17347 lookup_flags: GResourceLookupFlags,
17348 size: *mut size_t,
17349 flags: *mut u32,
17350 error: *mut *mut glib::GError,
17351 ) -> gboolean;
17352 #[cfg(feature = "v2_84")]
17353 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17354 pub fn g_resources_has_children(path: *const c_char) -> gboolean;
17355 pub fn g_resources_lookup_data(
17356 path: *const c_char,
17357 lookup_flags: GResourceLookupFlags,
17358 error: *mut *mut glib::GError,
17359 ) -> *mut glib::GBytes;
17360 pub fn g_resources_open_stream(
17361 path: *const c_char,
17362 lookup_flags: GResourceLookupFlags,
17363 error: *mut *mut glib::GError,
17364 ) -> *mut GInputStream;
17365 pub fn g_resources_register(resource: *mut GResource);
17366 pub fn g_resources_unregister(resource: *mut GResource);
17367 pub fn g_simple_async_report_error_in_idle(
17368 object: *mut gobject::GObject,
17369 callback: GAsyncReadyCallback,
17370 user_data: gpointer,
17371 domain: glib::GQuark,
17372 code: c_int,
17373 format: *const c_char,
17374 ...
17375 );
17376 pub fn g_simple_async_report_gerror_in_idle(
17377 object: *mut gobject::GObject,
17378 callback: GAsyncReadyCallback,
17379 user_data: gpointer,
17380 error: *const glib::GError,
17381 );
17382 pub fn g_simple_async_report_take_gerror_in_idle(
17383 object: *mut gobject::GObject,
17384 callback: GAsyncReadyCallback,
17385 user_data: gpointer,
17386 error: *mut glib::GError,
17387 );
17388 pub fn g_unix_is_mount_path_system_internal(mount_path: *const c_char) -> gboolean;
17389 pub fn g_unix_is_system_device_path(device_path: *const c_char) -> gboolean;
17390 pub fn g_unix_is_system_fs_type(fs_type: *const c_char) -> gboolean;
17391 pub fn g_unix_mount_at(mount_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
17392 pub fn g_unix_mount_compare(
17393 mount1: *mut GUnixMountEntry,
17394 mount2: *mut GUnixMountEntry,
17395 ) -> c_int;
17396 pub fn g_unix_mount_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry;
17397 #[cfg(feature = "v2_84")]
17398 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17399 pub fn g_unix_mount_entries_changed_since(time: u64) -> gboolean;
17400 #[cfg(feature = "v2_84")]
17401 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17402 pub fn g_unix_mount_entries_get(time_read: *mut u64) -> *mut glib::GList;
17403 #[cfg(feature = "v2_84")]
17404 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
17405 pub fn g_unix_mount_entries_get_from_file(
17406 table_path: *const c_char,
17407 time_read_out: *mut u64,
17408 n_entries_out: *mut size_t,
17409 ) -> *mut *mut GUnixMountEntry;
17410 pub fn g_unix_mount_for(file_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry;
17411 pub fn g_unix_mount_free(mount_entry: *mut GUnixMountEntry);
17412 pub fn g_unix_mount_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
17413 pub fn g_unix_mount_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char;
17414 pub fn g_unix_mount_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
17415 #[cfg(feature = "v2_58")]
17416 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
17417 pub fn g_unix_mount_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char;
17418 #[cfg(feature = "v2_60")]
17419 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
17420 pub fn g_unix_mount_get_root_path(mount_entry: *mut GUnixMountEntry) -> *const c_char;
17421 pub fn g_unix_mount_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean;
17422 pub fn g_unix_mount_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
17423 pub fn g_unix_mount_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char;
17424 pub fn g_unix_mount_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean;
17425 pub fn g_unix_mount_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon;
17426 pub fn g_unix_mount_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean;
17427 pub fn g_unix_mount_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean;
17428 pub fn g_unix_mount_points_changed_since(time: u64) -> gboolean;
17429 pub fn g_unix_mount_points_get(time_read: *mut u64) -> *mut glib::GList;
17430 #[cfg(feature = "v2_82")]
17431 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
17432 pub fn g_unix_mount_points_get_from_file(
17433 table_path: *const c_char,
17434 time_read_out: *mut u64,
17435 n_points_out: *mut size_t,
17436 ) -> *mut *mut GUnixMountPoint;
17437 pub fn g_unix_mounts_changed_since(time: u64) -> gboolean;
17438 pub fn g_unix_mounts_get(time_read: *mut u64) -> *mut glib::GList;
17439 #[cfg(feature = "v2_82")]
17440 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
17441 pub fn g_unix_mounts_get_from_file(
17442 table_path: *const c_char,
17443 time_read_out: *mut u64,
17444 n_entries_out: *mut size_t,
17445 ) -> *mut *mut GUnixMountEntry;
17446
17447}