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#[allow(unused_imports)]
22use libc::{FILE, intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t};
23#[cfg(unix)]
24#[allow(unused_imports)]
25use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
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::{GType, gboolean, gconstpointer, gpointer};
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 GEcnCodePoint = c_int;
146pub const G_ECN_NO_ECN: GEcnCodePoint = 0;
147pub const G_ECN_ECT_1: GEcnCodePoint = 1;
148pub const G_ECN_ECT_0: GEcnCodePoint = 2;
149pub const G_ECN_ECT_CE: GEcnCodePoint = 3;
150
151pub type GEmblemOrigin = c_int;
152pub const G_EMBLEM_ORIGIN_UNKNOWN: GEmblemOrigin = 0;
153pub const G_EMBLEM_ORIGIN_DEVICE: GEmblemOrigin = 1;
154pub const G_EMBLEM_ORIGIN_LIVEMETADATA: GEmblemOrigin = 2;
155pub const G_EMBLEM_ORIGIN_TAG: GEmblemOrigin = 3;
156
157pub type GFileAttributeStatus = c_int;
158pub const G_FILE_ATTRIBUTE_STATUS_UNSET: GFileAttributeStatus = 0;
159pub const G_FILE_ATTRIBUTE_STATUS_SET: GFileAttributeStatus = 1;
160pub const G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: GFileAttributeStatus = 2;
161
162pub type GFileAttributeType = c_int;
163pub const G_FILE_ATTRIBUTE_TYPE_INVALID: GFileAttributeType = 0;
164pub const G_FILE_ATTRIBUTE_TYPE_STRING: GFileAttributeType = 1;
165pub const G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: GFileAttributeType = 2;
166pub const G_FILE_ATTRIBUTE_TYPE_BOOLEAN: GFileAttributeType = 3;
167pub const G_FILE_ATTRIBUTE_TYPE_UINT32: GFileAttributeType = 4;
168pub const G_FILE_ATTRIBUTE_TYPE_INT32: GFileAttributeType = 5;
169pub const G_FILE_ATTRIBUTE_TYPE_UINT64: GFileAttributeType = 6;
170pub const G_FILE_ATTRIBUTE_TYPE_INT64: GFileAttributeType = 7;
171pub const G_FILE_ATTRIBUTE_TYPE_OBJECT: GFileAttributeType = 8;
172pub const G_FILE_ATTRIBUTE_TYPE_STRINGV: GFileAttributeType = 9;
173
174pub type GFileMonitorEvent = c_int;
175pub const G_FILE_MONITOR_EVENT_CHANGED: GFileMonitorEvent = 0;
176pub const G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: GFileMonitorEvent = 1;
177pub const G_FILE_MONITOR_EVENT_DELETED: GFileMonitorEvent = 2;
178pub const G_FILE_MONITOR_EVENT_CREATED: GFileMonitorEvent = 3;
179pub const G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: GFileMonitorEvent = 4;
180pub const G_FILE_MONITOR_EVENT_PRE_UNMOUNT: GFileMonitorEvent = 5;
181pub const G_FILE_MONITOR_EVENT_UNMOUNTED: GFileMonitorEvent = 6;
182pub const G_FILE_MONITOR_EVENT_MOVED: GFileMonitorEvent = 7;
183pub const G_FILE_MONITOR_EVENT_RENAMED: GFileMonitorEvent = 8;
184pub const G_FILE_MONITOR_EVENT_MOVED_IN: GFileMonitorEvent = 9;
185pub const G_FILE_MONITOR_EVENT_MOVED_OUT: GFileMonitorEvent = 10;
186
187pub type GFileType = c_int;
188pub const G_FILE_TYPE_UNKNOWN: GFileType = 0;
189pub const G_FILE_TYPE_REGULAR: GFileType = 1;
190pub const G_FILE_TYPE_DIRECTORY: GFileType = 2;
191pub const G_FILE_TYPE_SYMBOLIC_LINK: GFileType = 3;
192pub const G_FILE_TYPE_SPECIAL: GFileType = 4;
193pub const G_FILE_TYPE_SHORTCUT: GFileType = 5;
194pub const G_FILE_TYPE_MOUNTABLE: GFileType = 6;
195
196pub type GFilesystemPreviewType = c_int;
197pub const G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: GFilesystemPreviewType = 0;
198pub const G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: GFilesystemPreviewType = 1;
199pub const G_FILESYSTEM_PREVIEW_TYPE_NEVER: GFilesystemPreviewType = 2;
200
201pub type GIOErrorEnum = c_int;
202pub const G_IO_ERROR_FAILED: GIOErrorEnum = 0;
203pub const G_IO_ERROR_NOT_FOUND: GIOErrorEnum = 1;
204pub const G_IO_ERROR_EXISTS: GIOErrorEnum = 2;
205pub const G_IO_ERROR_IS_DIRECTORY: GIOErrorEnum = 3;
206pub const G_IO_ERROR_NOT_DIRECTORY: GIOErrorEnum = 4;
207pub const G_IO_ERROR_NOT_EMPTY: GIOErrorEnum = 5;
208pub const G_IO_ERROR_NOT_REGULAR_FILE: GIOErrorEnum = 6;
209pub const G_IO_ERROR_NOT_SYMBOLIC_LINK: GIOErrorEnum = 7;
210pub const G_IO_ERROR_NOT_MOUNTABLE_FILE: GIOErrorEnum = 8;
211pub const G_IO_ERROR_FILENAME_TOO_LONG: GIOErrorEnum = 9;
212pub const G_IO_ERROR_INVALID_FILENAME: GIOErrorEnum = 10;
213pub const G_IO_ERROR_TOO_MANY_LINKS: GIOErrorEnum = 11;
214pub const G_IO_ERROR_NO_SPACE: GIOErrorEnum = 12;
215pub const G_IO_ERROR_INVALID_ARGUMENT: GIOErrorEnum = 13;
216pub const G_IO_ERROR_PERMISSION_DENIED: GIOErrorEnum = 14;
217pub const G_IO_ERROR_NOT_SUPPORTED: GIOErrorEnum = 15;
218pub const G_IO_ERROR_NOT_MOUNTED: GIOErrorEnum = 16;
219pub const G_IO_ERROR_ALREADY_MOUNTED: GIOErrorEnum = 17;
220pub const G_IO_ERROR_CLOSED: GIOErrorEnum = 18;
221pub const G_IO_ERROR_CANCELLED: GIOErrorEnum = 19;
222pub const G_IO_ERROR_PENDING: GIOErrorEnum = 20;
223pub const G_IO_ERROR_READ_ONLY: GIOErrorEnum = 21;
224pub const G_IO_ERROR_CANT_CREATE_BACKUP: GIOErrorEnum = 22;
225pub const G_IO_ERROR_WRONG_ETAG: GIOErrorEnum = 23;
226pub const G_IO_ERROR_TIMED_OUT: GIOErrorEnum = 24;
227pub const G_IO_ERROR_WOULD_RECURSE: GIOErrorEnum = 25;
228pub const G_IO_ERROR_BUSY: GIOErrorEnum = 26;
229pub const G_IO_ERROR_WOULD_BLOCK: GIOErrorEnum = 27;
230pub const G_IO_ERROR_HOST_NOT_FOUND: GIOErrorEnum = 28;
231pub const G_IO_ERROR_WOULD_MERGE: GIOErrorEnum = 29;
232pub const G_IO_ERROR_FAILED_HANDLED: GIOErrorEnum = 30;
233pub const G_IO_ERROR_TOO_MANY_OPEN_FILES: GIOErrorEnum = 31;
234pub const G_IO_ERROR_NOT_INITIALIZED: GIOErrorEnum = 32;
235pub const G_IO_ERROR_ADDRESS_IN_USE: GIOErrorEnum = 33;
236pub const G_IO_ERROR_PARTIAL_INPUT: GIOErrorEnum = 34;
237pub const G_IO_ERROR_INVALID_DATA: GIOErrorEnum = 35;
238pub const G_IO_ERROR_DBUS_ERROR: GIOErrorEnum = 36;
239pub const G_IO_ERROR_HOST_UNREACHABLE: GIOErrorEnum = 37;
240pub const G_IO_ERROR_NETWORK_UNREACHABLE: GIOErrorEnum = 38;
241pub const G_IO_ERROR_CONNECTION_REFUSED: GIOErrorEnum = 39;
242pub const G_IO_ERROR_PROXY_FAILED: GIOErrorEnum = 40;
243pub const G_IO_ERROR_PROXY_AUTH_FAILED: GIOErrorEnum = 41;
244pub const G_IO_ERROR_PROXY_NEED_AUTH: GIOErrorEnum = 42;
245pub const G_IO_ERROR_PROXY_NOT_ALLOWED: GIOErrorEnum = 43;
246pub const G_IO_ERROR_BROKEN_PIPE: GIOErrorEnum = 44;
247pub const G_IO_ERROR_CONNECTION_CLOSED: GIOErrorEnum = 44;
248pub const G_IO_ERROR_NOT_CONNECTED: GIOErrorEnum = 45;
249pub const G_IO_ERROR_MESSAGE_TOO_LARGE: GIOErrorEnum = 46;
250pub const G_IO_ERROR_NO_SUCH_DEVICE: GIOErrorEnum = 47;
251pub const G_IO_ERROR_DESTINATION_UNSET: GIOErrorEnum = 48;
252
253pub type GMemoryMonitorWarningLevel = c_int;
254pub const G_MEMORY_MONITOR_WARNING_LEVEL_LOW: GMemoryMonitorWarningLevel = 50;
255pub const G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM: GMemoryMonitorWarningLevel = 100;
256pub const G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL: GMemoryMonitorWarningLevel = 255;
257
258pub type GMountOperationResult = c_int;
259pub const G_MOUNT_OPERATION_HANDLED: GMountOperationResult = 0;
260pub const G_MOUNT_OPERATION_ABORTED: GMountOperationResult = 1;
261pub const G_MOUNT_OPERATION_UNHANDLED: GMountOperationResult = 2;
262
263pub type GNetworkConnectivity = c_int;
264pub const G_NETWORK_CONNECTIVITY_LOCAL: GNetworkConnectivity = 1;
265pub const G_NETWORK_CONNECTIVITY_LIMITED: GNetworkConnectivity = 2;
266pub const G_NETWORK_CONNECTIVITY_PORTAL: GNetworkConnectivity = 3;
267pub const G_NETWORK_CONNECTIVITY_FULL: GNetworkConnectivity = 4;
268
269pub type GNotificationPriority = c_int;
270pub const G_NOTIFICATION_PRIORITY_NORMAL: GNotificationPriority = 0;
271pub const G_NOTIFICATION_PRIORITY_LOW: GNotificationPriority = 1;
272pub const G_NOTIFICATION_PRIORITY_HIGH: GNotificationPriority = 2;
273pub const G_NOTIFICATION_PRIORITY_URGENT: GNotificationPriority = 3;
274
275pub type GPasswordSave = c_int;
276pub const G_PASSWORD_SAVE_NEVER: GPasswordSave = 0;
277pub const G_PASSWORD_SAVE_FOR_SESSION: GPasswordSave = 1;
278pub const G_PASSWORD_SAVE_PERMANENTLY: GPasswordSave = 2;
279
280pub type GPollableReturn = c_int;
281pub const G_POLLABLE_RETURN_FAILED: GPollableReturn = 0;
282pub const G_POLLABLE_RETURN_OK: GPollableReturn = 1;
283pub const G_POLLABLE_RETURN_WOULD_BLOCK: GPollableReturn = -27;
284
285pub type GResolverError = c_int;
286pub const G_RESOLVER_ERROR_NOT_FOUND: GResolverError = 0;
287pub const G_RESOLVER_ERROR_TEMPORARY_FAILURE: GResolverError = 1;
288pub const G_RESOLVER_ERROR_INTERNAL: GResolverError = 2;
289
290pub type GResolverRecordType = c_int;
291pub const G_RESOLVER_RECORD_SRV: GResolverRecordType = 1;
292pub const G_RESOLVER_RECORD_MX: GResolverRecordType = 2;
293pub const G_RESOLVER_RECORD_TXT: GResolverRecordType = 3;
294pub const G_RESOLVER_RECORD_SOA: GResolverRecordType = 4;
295pub const G_RESOLVER_RECORD_NS: GResolverRecordType = 5;
296
297pub type GResourceError = c_int;
298pub const G_RESOURCE_ERROR_NOT_FOUND: GResourceError = 0;
299pub const G_RESOURCE_ERROR_INTERNAL: GResourceError = 1;
300
301pub type GSocketClientEvent = c_int;
302pub const G_SOCKET_CLIENT_RESOLVING: GSocketClientEvent = 0;
303pub const G_SOCKET_CLIENT_RESOLVED: GSocketClientEvent = 1;
304pub const G_SOCKET_CLIENT_CONNECTING: GSocketClientEvent = 2;
305pub const G_SOCKET_CLIENT_CONNECTED: GSocketClientEvent = 3;
306pub const G_SOCKET_CLIENT_PROXY_NEGOTIATING: GSocketClientEvent = 4;
307pub const G_SOCKET_CLIENT_PROXY_NEGOTIATED: GSocketClientEvent = 5;
308pub const G_SOCKET_CLIENT_TLS_HANDSHAKING: GSocketClientEvent = 6;
309pub const G_SOCKET_CLIENT_TLS_HANDSHAKED: GSocketClientEvent = 7;
310pub const G_SOCKET_CLIENT_COMPLETE: GSocketClientEvent = 8;
311
312pub type GSocketListenerEvent = c_int;
313pub const G_SOCKET_LISTENER_BINDING: GSocketListenerEvent = 0;
314pub const G_SOCKET_LISTENER_BOUND: GSocketListenerEvent = 1;
315pub const G_SOCKET_LISTENER_LISTENING: GSocketListenerEvent = 2;
316pub const G_SOCKET_LISTENER_LISTENED: GSocketListenerEvent = 3;
317
318pub type GSocketProtocol = c_int;
319pub const G_SOCKET_PROTOCOL_UNKNOWN: GSocketProtocol = -1;
320pub const G_SOCKET_PROTOCOL_DEFAULT: GSocketProtocol = 0;
321pub const G_SOCKET_PROTOCOL_TCP: GSocketProtocol = 6;
322pub const G_SOCKET_PROTOCOL_UDP: GSocketProtocol = 17;
323pub const G_SOCKET_PROTOCOL_SCTP: GSocketProtocol = 132;
324
325pub type GSocketType = c_int;
326pub const G_SOCKET_TYPE_INVALID: GSocketType = 0;
327pub const G_SOCKET_TYPE_STREAM: GSocketType = 1;
328pub const G_SOCKET_TYPE_DATAGRAM: GSocketType = 2;
329pub const G_SOCKET_TYPE_SEQPACKET: GSocketType = 3;
330
331pub type GTlsAuthenticationMode = c_int;
332pub const G_TLS_AUTHENTICATION_NONE: GTlsAuthenticationMode = 0;
333pub const G_TLS_AUTHENTICATION_REQUESTED: GTlsAuthenticationMode = 1;
334pub const G_TLS_AUTHENTICATION_REQUIRED: GTlsAuthenticationMode = 2;
335
336pub type GTlsChannelBindingError = c_int;
337pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_IMPLEMENTED: GTlsChannelBindingError = 0;
338pub const G_TLS_CHANNEL_BINDING_ERROR_INVALID_STATE: GTlsChannelBindingError = 1;
339pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_AVAILABLE: GTlsChannelBindingError = 2;
340pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_SUPPORTED: GTlsChannelBindingError = 3;
341pub const G_TLS_CHANNEL_BINDING_ERROR_GENERAL_ERROR: GTlsChannelBindingError = 4;
342
343pub type GTlsChannelBindingType = c_int;
344pub const G_TLS_CHANNEL_BINDING_TLS_UNIQUE: GTlsChannelBindingType = 0;
345pub const G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT: GTlsChannelBindingType = 1;
346pub const G_TLS_CHANNEL_BINDING_TLS_EXPORTER: GTlsChannelBindingType = 2;
347
348pub type GTlsError = c_int;
349pub const G_TLS_ERROR_UNAVAILABLE: GTlsError = 0;
350pub const G_TLS_ERROR_MISC: GTlsError = 1;
351pub const G_TLS_ERROR_BAD_CERTIFICATE: GTlsError = 2;
352pub const G_TLS_ERROR_NOT_TLS: GTlsError = 3;
353pub const G_TLS_ERROR_HANDSHAKE: GTlsError = 4;
354pub const G_TLS_ERROR_CERTIFICATE_REQUIRED: GTlsError = 5;
355pub const G_TLS_ERROR_EOF: GTlsError = 6;
356pub const G_TLS_ERROR_INAPPROPRIATE_FALLBACK: GTlsError = 7;
357pub const G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD: GTlsError = 8;
358
359pub type GTlsInteractionResult = c_int;
360pub const G_TLS_INTERACTION_UNHANDLED: GTlsInteractionResult = 0;
361pub const G_TLS_INTERACTION_HANDLED: GTlsInteractionResult = 1;
362pub const G_TLS_INTERACTION_FAILED: GTlsInteractionResult = 2;
363
364pub type GTlsProtocolVersion = c_int;
365pub const G_TLS_PROTOCOL_VERSION_UNKNOWN: GTlsProtocolVersion = 0;
366pub const G_TLS_PROTOCOL_VERSION_SSL_3_0: GTlsProtocolVersion = 1;
367pub const G_TLS_PROTOCOL_VERSION_TLS_1_0: GTlsProtocolVersion = 2;
368pub const G_TLS_PROTOCOL_VERSION_TLS_1_1: GTlsProtocolVersion = 3;
369pub const G_TLS_PROTOCOL_VERSION_TLS_1_2: GTlsProtocolVersion = 4;
370pub const G_TLS_PROTOCOL_VERSION_TLS_1_3: GTlsProtocolVersion = 5;
371pub const G_TLS_PROTOCOL_VERSION_DTLS_1_0: GTlsProtocolVersion = 201;
372pub const G_TLS_PROTOCOL_VERSION_DTLS_1_2: GTlsProtocolVersion = 202;
373
374pub type GTlsRehandshakeMode = c_int;
375pub const G_TLS_REHANDSHAKE_NEVER: GTlsRehandshakeMode = 0;
376pub const G_TLS_REHANDSHAKE_SAFELY: GTlsRehandshakeMode = 1;
377pub const G_TLS_REHANDSHAKE_UNSAFELY: GTlsRehandshakeMode = 2;
378
379pub type GUnixSocketAddressType = c_int;
380pub const G_UNIX_SOCKET_ADDRESS_INVALID: GUnixSocketAddressType = 0;
381pub const G_UNIX_SOCKET_ADDRESS_ANONYMOUS: GUnixSocketAddressType = 1;
382pub const G_UNIX_SOCKET_ADDRESS_PATH: GUnixSocketAddressType = 2;
383pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT: GUnixSocketAddressType = 3;
384pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: GUnixSocketAddressType = 4;
385
386pub type GZlibCompressorFormat = c_int;
387pub const G_ZLIB_COMPRESSOR_FORMAT_ZLIB: GZlibCompressorFormat = 0;
388pub const G_ZLIB_COMPRESSOR_FORMAT_GZIP: GZlibCompressorFormat = 1;
389pub const G_ZLIB_COMPRESSOR_FORMAT_RAW: GZlibCompressorFormat = 2;
390
391pub const G_DBUS_METHOD_INVOCATION_HANDLED: gboolean = glib::GTRUE;
393pub const G_DBUS_METHOD_INVOCATION_UNHANDLED: gboolean = glib::GFALSE;
394pub const G_DEBUG_CONTROLLER_EXTENSION_POINT_NAME: &[u8] = b"gio-debug-controller\0";
395pub const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device\0";
396pub const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: &[u8] = b"access::can-delete\0";
397pub const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: &[u8] = b"access::can-execute\0";
398pub const G_FILE_ATTRIBUTE_ACCESS_CAN_READ: &[u8] = b"access::can-read\0";
399pub const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: &[u8] = b"access::can-rename\0";
400pub const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: &[u8] = b"access::can-trash\0";
401pub const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: &[u8] = b"access::can-write\0";
402pub const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: &[u8] = b"dos::is-archive\0";
403pub const G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: &[u8] = b"dos::is-mountpoint\0";
404pub const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: &[u8] = b"dos::is-system\0";
405pub const G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: &[u8] = b"dos::reparse-point-tag\0";
406pub const G_FILE_ATTRIBUTE_ETAG_VALUE: &[u8] = b"etag::value\0";
407pub const G_FILE_ATTRIBUTE_FILESYSTEM_FREE: &[u8] = b"filesystem::free\0";
408pub const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: &[u8] = b"filesystem::readonly\0";
409pub const G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE: &[u8] = b"filesystem::remote\0";
410pub const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: &[u8] = b"filesystem::size\0";
411pub const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: &[u8] = b"filesystem::type\0";
412pub const G_FILE_ATTRIBUTE_FILESYSTEM_USED: &[u8] = b"filesystem::used\0";
413pub const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: &[u8] = b"filesystem::use-preview\0";
414pub const G_FILE_ATTRIBUTE_GVFS_BACKEND: &[u8] = b"gvfs::backend\0";
415pub const G_FILE_ATTRIBUTE_ID_FILE: &[u8] = b"id::file\0";
416pub const G_FILE_ATTRIBUTE_ID_FILESYSTEM: &[u8] = b"id::filesystem\0";
417pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: &[u8] = b"mountable::can-eject\0";
418pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: &[u8] = b"mountable::can-mount\0";
419pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: &[u8] = b"mountable::can-poll\0";
420pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START: &[u8] = b"mountable::can-start\0";
421pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: &[u8] = b"mountable::can-start-degraded\0";
422pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: &[u8] = b"mountable::can-stop\0";
423pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: &[u8] = b"mountable::can-unmount\0";
424pub const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: &[u8] = b"mountable::hal-udi\0";
425pub const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: &[u8] =
426 b"mountable::is-media-check-automatic\0";
427pub const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: &[u8] = b"mountable::start-stop-type\0";
428pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: &[u8] = b"mountable::unix-device\0";
429pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: &[u8] = b"mountable::unix-device-file\0";
430pub const G_FILE_ATTRIBUTE_OWNER_GROUP: &[u8] = b"owner::group\0";
431pub const G_FILE_ATTRIBUTE_OWNER_USER: &[u8] = b"owner::user\0";
432pub const G_FILE_ATTRIBUTE_OWNER_USER_REAL: &[u8] = b"owner::user-real\0";
433pub const G_FILE_ATTRIBUTE_PREVIEW_ICON: &[u8] = b"preview::icon\0";
434pub const G_FILE_ATTRIBUTE_RECENT_MODIFIED: &[u8] = b"recent::modified\0";
435pub const G_FILE_ATTRIBUTE_SELINUX_CONTEXT: &[u8] = b"selinux::context\0";
436pub const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: &[u8] = b"standard::allocated-size\0";
437pub const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: &[u8] = b"standard::content-type\0";
438pub const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: &[u8] = b"standard::copy-name\0";
439pub const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: &[u8] = b"standard::description\0";
440pub const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: &[u8] = b"standard::display-name\0";
441pub const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: &[u8] = b"standard::edit-name\0";
442pub const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: &[u8] = b"standard::fast-content-type\0";
443pub const G_FILE_ATTRIBUTE_STANDARD_ICON: &[u8] = b"standard::icon\0";
444pub const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: &[u8] = b"standard::is-backup\0";
445pub const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: &[u8] = b"standard::is-hidden\0";
446pub const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: &[u8] = b"standard::is-symlink\0";
447pub const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: &[u8] = b"standard::is-virtual\0";
448pub const G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: &[u8] = b"standard::is-volatile\0";
449pub const G_FILE_ATTRIBUTE_STANDARD_NAME: &[u8] = b"standard::name\0";
450pub const G_FILE_ATTRIBUTE_STANDARD_SIZE: &[u8] = b"standard::size\0";
451pub const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: &[u8] = b"standard::sort-order\0";
452pub const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: &[u8] = b"standard::symbolic-icon\0";
453pub const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: &[u8] = b"standard::symlink-target\0";
454pub const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: &[u8] = b"standard::target-uri\0";
455pub const G_FILE_ATTRIBUTE_STANDARD_TYPE: &[u8] = b"standard::type\0";
456pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: &[u8] = b"thumbnail::failed\0";
457pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE: &[u8] = b"thumbnail::failed-large\0";
458pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL: &[u8] = b"thumbnail::failed-normal\0";
459pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE: &[u8] = b"thumbnail::failed-xlarge\0";
460pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE: &[u8] = b"thumbnail::failed-xxlarge\0";
461pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: &[u8] = b"thumbnail::is-valid\0";
462pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE: &[u8] = b"thumbnail::is-valid-large\0";
463pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL: &[u8] = b"thumbnail::is-valid-normal\0";
464pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE: &[u8] = b"thumbnail::is-valid-xlarge\0";
465pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE: &[u8] = b"thumbnail::is-valid-xxlarge\0";
466pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH: &[u8] = b"thumbnail::path\0";
467pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE: &[u8] = b"thumbnail::path-large\0";
468pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL: &[u8] = b"thumbnail::path-normal\0";
469pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE: &[u8] = b"thumbnail::path-xlarge\0";
470pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE: &[u8] = b"thumbnail::path-xxlarge\0";
471pub const G_FILE_ATTRIBUTE_TIME_ACCESS: &[u8] = b"time::access\0";
472pub const G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC: &[u8] = b"time::access-nsec\0";
473pub const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: &[u8] = b"time::access-usec\0";
474pub const G_FILE_ATTRIBUTE_TIME_CHANGED: &[u8] = b"time::changed\0";
475pub const G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC: &[u8] = b"time::changed-nsec\0";
476pub const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: &[u8] = b"time::changed-usec\0";
477pub const G_FILE_ATTRIBUTE_TIME_CREATED: &[u8] = b"time::created\0";
478pub const G_FILE_ATTRIBUTE_TIME_CREATED_NSEC: &[u8] = b"time::created-nsec\0";
479pub const G_FILE_ATTRIBUTE_TIME_CREATED_USEC: &[u8] = b"time::created-usec\0";
480pub const G_FILE_ATTRIBUTE_TIME_MODIFIED: &[u8] = b"time::modified\0";
481pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC: &[u8] = b"time::modified-nsec\0";
482pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: &[u8] = b"time::modified-usec\0";
483pub const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: &[u8] = b"trash::deletion-date\0";
484pub const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: &[u8] = b"trash::item-count\0";
485pub const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH: &[u8] = b"trash::orig-path\0";
486pub const G_FILE_ATTRIBUTE_UNIX_BLOCKS: &[u8] = b"unix::blocks\0";
487pub const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: &[u8] = b"unix::block-size\0";
488pub const G_FILE_ATTRIBUTE_UNIX_DEVICE: &[u8] = b"unix::device\0";
489pub const G_FILE_ATTRIBUTE_UNIX_GID: &[u8] = b"unix::gid\0";
490pub const G_FILE_ATTRIBUTE_UNIX_INODE: &[u8] = b"unix::inode\0";
491pub const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: &[u8] = b"unix::is-mountpoint\0";
492pub const G_FILE_ATTRIBUTE_UNIX_MODE: &[u8] = b"unix::mode\0";
493pub const G_FILE_ATTRIBUTE_UNIX_NLINK: &[u8] = b"unix::nlink\0";
494pub const G_FILE_ATTRIBUTE_UNIX_RDEV: &[u8] = b"unix::rdev\0";
495pub const G_FILE_ATTRIBUTE_UNIX_UID: &[u8] = b"unix::uid\0";
496pub const G_MEMORY_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-memory-monitor\0";
497pub const G_MENU_ATTRIBUTE_ACTION: &[u8] = b"action\0";
498pub const G_MENU_ATTRIBUTE_ACTION_NAMESPACE: &[u8] = b"action-namespace\0";
499pub const G_MENU_ATTRIBUTE_ICON: &[u8] = b"icon\0";
500pub const G_MENU_ATTRIBUTE_LABEL: &[u8] = b"label\0";
501pub const G_MENU_ATTRIBUTE_TARGET: &[u8] = b"target\0";
502pub const G_MENU_EXPORTER_MAX_SECTION_SIZE: c_int = 1000;
503pub const G_MENU_LINK_SECTION: &[u8] = b"section\0";
504pub const G_MENU_LINK_SUBMENU: &[u8] = b"submenu\0";
505pub const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-native-volume-monitor\0";
506pub const G_NETWORK_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-network-monitor\0";
507pub const G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-power-profile-monitor\0";
508pub const G_PROXY_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy\0";
509pub const G_PROXY_RESOLVER_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy-resolver\0";
510pub const G_SETTINGS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gsettings-backend\0";
511pub const G_TLS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gio-tls-backend\0";
512pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: &[u8] = b"1.3.6.1.5.5.7.3.2\0";
513pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: &[u8] = b"1.3.6.1.5.5.7.3.1\0";
514pub const G_VFS_EXTENSION_POINT_NAME: &[u8] = b"gio-vfs\0";
515pub const G_VOLUME_IDENTIFIER_KIND_CLASS: &[u8] = b"class\0";
516pub const G_VOLUME_IDENTIFIER_KIND_HAL_UDI: &[u8] = b"hal-udi\0";
517pub const G_VOLUME_IDENTIFIER_KIND_LABEL: &[u8] = b"label\0";
518pub const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: &[u8] = b"nfs-mount\0";
519pub const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device\0";
520pub const G_VOLUME_IDENTIFIER_KIND_UUID: &[u8] = b"uuid\0";
521pub const G_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-volume-monitor\0";
522
523pub type GAppInfoCreateFlags = c_uint;
525pub const G_APP_INFO_CREATE_NONE: GAppInfoCreateFlags = 0;
526pub const G_APP_INFO_CREATE_NEEDS_TERMINAL: GAppInfoCreateFlags = 1;
527pub const G_APP_INFO_CREATE_SUPPORTS_URIS: GAppInfoCreateFlags = 2;
528pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags = 4;
529
530pub type GApplicationFlags = c_uint;
531pub const G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0;
532#[cfg(feature = "v2_74")]
533#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
534pub const G_APPLICATION_DEFAULT_FLAGS: GApplicationFlags = 0;
535pub const G_APPLICATION_IS_SERVICE: GApplicationFlags = 1;
536pub const G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2;
537pub const G_APPLICATION_HANDLES_OPEN: GApplicationFlags = 4;
538pub const G_APPLICATION_HANDLES_COMMAND_LINE: GApplicationFlags = 8;
539pub const G_APPLICATION_SEND_ENVIRONMENT: GApplicationFlags = 16;
540pub const G_APPLICATION_NON_UNIQUE: GApplicationFlags = 32;
541pub const G_APPLICATION_CAN_OVERRIDE_APP_ID: GApplicationFlags = 64;
542pub const G_APPLICATION_ALLOW_REPLACEMENT: GApplicationFlags = 128;
543pub const G_APPLICATION_REPLACE: GApplicationFlags = 256;
544
545pub type GAskPasswordFlags = c_uint;
546pub const G_ASK_PASSWORD_NEED_PASSWORD: GAskPasswordFlags = 1;
547pub const G_ASK_PASSWORD_NEED_USERNAME: GAskPasswordFlags = 2;
548pub const G_ASK_PASSWORD_NEED_DOMAIN: GAskPasswordFlags = 4;
549pub const G_ASK_PASSWORD_SAVING_SUPPORTED: GAskPasswordFlags = 8;
550pub const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: GAskPasswordFlags = 16;
551pub const G_ASK_PASSWORD_TCRYPT: GAskPasswordFlags = 32;
552
553pub type GBusNameOwnerFlags = c_uint;
554pub const G_BUS_NAME_OWNER_FLAGS_NONE: GBusNameOwnerFlags = 0;
555pub const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: GBusNameOwnerFlags = 1;
556pub const G_BUS_NAME_OWNER_FLAGS_REPLACE: GBusNameOwnerFlags = 2;
557pub const G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: GBusNameOwnerFlags = 4;
558
559pub type GBusNameWatcherFlags = c_uint;
560pub const G_BUS_NAME_WATCHER_FLAGS_NONE: GBusNameWatcherFlags = 0;
561pub const G_BUS_NAME_WATCHER_FLAGS_AUTO_START: GBusNameWatcherFlags = 1;
562
563pub type GConverterFlags = c_uint;
564pub const G_CONVERTER_NO_FLAGS: GConverterFlags = 0;
565pub const G_CONVERTER_INPUT_AT_END: GConverterFlags = 1;
566pub const G_CONVERTER_FLUSH: GConverterFlags = 2;
567
568pub type GDBusCallFlags = c_uint;
569pub const G_DBUS_CALL_FLAGS_NONE: GDBusCallFlags = 0;
570pub const G_DBUS_CALL_FLAGS_NO_AUTO_START: GDBusCallFlags = 1;
571pub const G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusCallFlags = 2;
572
573pub type GDBusCapabilityFlags = c_uint;
574pub const G_DBUS_CAPABILITY_FLAGS_NONE: GDBusCapabilityFlags = 0;
575pub const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: GDBusCapabilityFlags = 1;
576
577pub type GDBusConnectionFlags = c_uint;
578pub const G_DBUS_CONNECTION_FLAGS_NONE: GDBusConnectionFlags = 0;
579pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: GDBusConnectionFlags = 1;
580pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: GDBusConnectionFlags = 2;
581pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusConnectionFlags = 4;
582pub const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: GDBusConnectionFlags = 8;
583pub const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: GDBusConnectionFlags = 16;
584pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusConnectionFlags = 32;
585pub const G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE: GDBusConnectionFlags = 64;
586
587pub type GDBusInterfaceSkeletonFlags = c_uint;
588pub const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: GDBusInterfaceSkeletonFlags = 0;
589pub const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD:
590 GDBusInterfaceSkeletonFlags = 1;
591
592pub type GDBusMessageFlags = c_uint;
593pub const G_DBUS_MESSAGE_FLAGS_NONE: GDBusMessageFlags = 0;
594pub const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: GDBusMessageFlags = 1;
595pub const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: GDBusMessageFlags = 2;
596pub const G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusMessageFlags = 4;
597
598pub type GDBusObjectManagerClientFlags = c_uint;
599pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: GDBusObjectManagerClientFlags = 0;
600pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: GDBusObjectManagerClientFlags = 1;
601
602pub type GDBusPropertyInfoFlags = c_uint;
603pub const G_DBUS_PROPERTY_INFO_FLAGS_NONE: GDBusPropertyInfoFlags = 0;
604pub const G_DBUS_PROPERTY_INFO_FLAGS_READABLE: GDBusPropertyInfoFlags = 1;
605pub const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: GDBusPropertyInfoFlags = 2;
606
607pub type GDBusProxyFlags = c_uint;
608pub const G_DBUS_PROXY_FLAGS_NONE: GDBusProxyFlags = 0;
609pub const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: GDBusProxyFlags = 1;
610pub const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: GDBusProxyFlags = 2;
611pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: GDBusProxyFlags = 4;
612pub const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: GDBusProxyFlags = 8;
613pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: GDBusProxyFlags = 16;
614pub const G_DBUS_PROXY_FLAGS_NO_MATCH_RULE: GDBusProxyFlags = 32;
615
616pub type GDBusSendMessageFlags = c_uint;
617pub const G_DBUS_SEND_MESSAGE_FLAGS_NONE: GDBusSendMessageFlags = 0;
618pub const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: GDBusSendMessageFlags = 1;
619
620pub type GDBusServerFlags = c_uint;
621pub const G_DBUS_SERVER_FLAGS_NONE: GDBusServerFlags = 0;
622pub const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: GDBusServerFlags = 1;
623pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusServerFlags = 2;
624pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusServerFlags = 4;
625
626pub type GDBusSignalFlags = c_uint;
627pub const G_DBUS_SIGNAL_FLAGS_NONE: GDBusSignalFlags = 0;
628pub const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: GDBusSignalFlags = 1;
629pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: GDBusSignalFlags = 2;
630pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: GDBusSignalFlags = 4;
631
632pub type GDBusSubtreeFlags = c_uint;
633pub const G_DBUS_SUBTREE_FLAGS_NONE: GDBusSubtreeFlags = 0;
634pub const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: GDBusSubtreeFlags = 1;
635
636pub type GDriveStartFlags = c_uint;
637pub const G_DRIVE_START_NONE: GDriveStartFlags = 0;
638
639pub type GFileAttributeInfoFlags = c_uint;
640pub const G_FILE_ATTRIBUTE_INFO_NONE: GFileAttributeInfoFlags = 0;
641pub const G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: GFileAttributeInfoFlags = 1;
642pub const G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: GFileAttributeInfoFlags = 2;
643
644pub type GFileCopyFlags = c_uint;
645pub const G_FILE_COPY_NONE: GFileCopyFlags = 0;
646pub const G_FILE_COPY_OVERWRITE: GFileCopyFlags = 1;
647pub const G_FILE_COPY_BACKUP: GFileCopyFlags = 2;
648pub const G_FILE_COPY_NOFOLLOW_SYMLINKS: GFileCopyFlags = 4;
649pub const G_FILE_COPY_ALL_METADATA: GFileCopyFlags = 8;
650pub const G_FILE_COPY_NO_FALLBACK_FOR_MOVE: GFileCopyFlags = 16;
651pub const G_FILE_COPY_TARGET_DEFAULT_PERMS: GFileCopyFlags = 32;
652pub const G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME: GFileCopyFlags = 64;
653
654pub type GFileCreateFlags = c_uint;
655pub const G_FILE_CREATE_NONE: GFileCreateFlags = 0;
656pub const G_FILE_CREATE_PRIVATE: GFileCreateFlags = 1;
657pub const G_FILE_CREATE_REPLACE_DESTINATION: GFileCreateFlags = 2;
658
659pub type GFileMeasureFlags = c_uint;
660pub const G_FILE_MEASURE_NONE: GFileMeasureFlags = 0;
661pub const G_FILE_MEASURE_REPORT_ANY_ERROR: GFileMeasureFlags = 2;
662pub const G_FILE_MEASURE_APPARENT_SIZE: GFileMeasureFlags = 4;
663pub const G_FILE_MEASURE_NO_XDEV: GFileMeasureFlags = 8;
664
665pub type GFileMonitorFlags = c_uint;
666pub const G_FILE_MONITOR_NONE: GFileMonitorFlags = 0;
667pub const G_FILE_MONITOR_WATCH_MOUNTS: GFileMonitorFlags = 1;
668pub const G_FILE_MONITOR_SEND_MOVED: GFileMonitorFlags = 2;
669pub const G_FILE_MONITOR_WATCH_HARD_LINKS: GFileMonitorFlags = 4;
670pub const G_FILE_MONITOR_WATCH_MOVES: GFileMonitorFlags = 8;
671
672pub type GFileQueryInfoFlags = c_uint;
673pub const G_FILE_QUERY_INFO_NONE: GFileQueryInfoFlags = 0;
674pub const G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: GFileQueryInfoFlags = 1;
675
676pub type GIOModuleScopeFlags = c_uint;
677pub const G_IO_MODULE_SCOPE_NONE: GIOModuleScopeFlags = 0;
678pub const G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: GIOModuleScopeFlags = 1;
679
680pub type GIOStreamSpliceFlags = c_uint;
681pub const G_IO_STREAM_SPLICE_NONE: GIOStreamSpliceFlags = 0;
682pub const G_IO_STREAM_SPLICE_CLOSE_STREAM1: GIOStreamSpliceFlags = 1;
683pub const G_IO_STREAM_SPLICE_CLOSE_STREAM2: GIOStreamSpliceFlags = 2;
684pub const G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: GIOStreamSpliceFlags = 4;
685
686pub type GMountMountFlags = c_uint;
687pub const G_MOUNT_MOUNT_NONE: GMountMountFlags = 0;
688
689pub type GMountUnmountFlags = c_uint;
690pub const G_MOUNT_UNMOUNT_NONE: GMountUnmountFlags = 0;
691pub const G_MOUNT_UNMOUNT_FORCE: GMountUnmountFlags = 1;
692
693pub type GOutputStreamSpliceFlags = c_uint;
694pub const G_OUTPUT_STREAM_SPLICE_NONE: GOutputStreamSpliceFlags = 0;
695pub const G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: GOutputStreamSpliceFlags = 1;
696pub const G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: GOutputStreamSpliceFlags = 2;
697
698pub type GResolverNameLookupFlags = c_uint;
699pub const G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT: GResolverNameLookupFlags = 0;
700pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY: GResolverNameLookupFlags = 1;
701pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY: GResolverNameLookupFlags = 2;
702
703pub type GResourceFlags = c_uint;
704pub const G_RESOURCE_FLAGS_NONE: GResourceFlags = 0;
705pub const G_RESOURCE_FLAGS_COMPRESSED: GResourceFlags = 1;
706
707pub type GResourceLookupFlags = c_uint;
708pub const G_RESOURCE_LOOKUP_FLAGS_NONE: GResourceLookupFlags = 0;
709
710pub type GSettingsBindFlags = c_uint;
711pub const G_SETTINGS_BIND_DEFAULT: GSettingsBindFlags = 0;
712pub const G_SETTINGS_BIND_GET: GSettingsBindFlags = 1;
713pub const G_SETTINGS_BIND_SET: GSettingsBindFlags = 2;
714pub const G_SETTINGS_BIND_NO_SENSITIVITY: GSettingsBindFlags = 4;
715pub const G_SETTINGS_BIND_GET_NO_CHANGES: GSettingsBindFlags = 8;
716pub const G_SETTINGS_BIND_INVERT_BOOLEAN: GSettingsBindFlags = 16;
717
718pub type GSubprocessFlags = c_uint;
719pub const G_SUBPROCESS_FLAGS_NONE: GSubprocessFlags = 0;
720pub const G_SUBPROCESS_FLAGS_STDIN_PIPE: GSubprocessFlags = 1;
721pub const G_SUBPROCESS_FLAGS_STDIN_INHERIT: GSubprocessFlags = 2;
722pub const G_SUBPROCESS_FLAGS_STDOUT_PIPE: GSubprocessFlags = 4;
723pub const G_SUBPROCESS_FLAGS_STDOUT_SILENCE: GSubprocessFlags = 8;
724pub const G_SUBPROCESS_FLAGS_STDERR_PIPE: GSubprocessFlags = 16;
725pub const G_SUBPROCESS_FLAGS_STDERR_SILENCE: GSubprocessFlags = 32;
726pub const G_SUBPROCESS_FLAGS_STDERR_MERGE: GSubprocessFlags = 64;
727pub const G_SUBPROCESS_FLAGS_INHERIT_FDS: GSubprocessFlags = 128;
728pub const G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP: GSubprocessFlags = 256;
729
730pub type GTestDBusFlags = c_uint;
731pub const G_TEST_DBUS_NONE: GTestDBusFlags = 0;
732
733pub type GTlsCertificateFlags = c_uint;
734pub const G_TLS_CERTIFICATE_NO_FLAGS: GTlsCertificateFlags = 0;
735pub const G_TLS_CERTIFICATE_UNKNOWN_CA: GTlsCertificateFlags = 1;
736pub const G_TLS_CERTIFICATE_BAD_IDENTITY: GTlsCertificateFlags = 2;
737pub const G_TLS_CERTIFICATE_NOT_ACTIVATED: GTlsCertificateFlags = 4;
738pub const G_TLS_CERTIFICATE_EXPIRED: GTlsCertificateFlags = 8;
739pub const G_TLS_CERTIFICATE_REVOKED: GTlsCertificateFlags = 16;
740pub const G_TLS_CERTIFICATE_INSECURE: GTlsCertificateFlags = 32;
741pub const G_TLS_CERTIFICATE_GENERIC_ERROR: GTlsCertificateFlags = 64;
742pub const G_TLS_CERTIFICATE_VALIDATE_ALL: GTlsCertificateFlags = 127;
743
744pub type GTlsCertificateRequestFlags = c_uint;
745pub const G_TLS_CERTIFICATE_REQUEST_NONE: GTlsCertificateRequestFlags = 0;
746
747pub type GTlsDatabaseLookupFlags = c_uint;
748pub const G_TLS_DATABASE_LOOKUP_NONE: GTlsDatabaseLookupFlags = 0;
749pub const G_TLS_DATABASE_LOOKUP_KEYPAIR: GTlsDatabaseLookupFlags = 1;
750
751pub type GTlsDatabaseVerifyFlags = c_uint;
752pub const G_TLS_DATABASE_VERIFY_NONE: GTlsDatabaseVerifyFlags = 0;
753
754pub type GTlsPasswordFlags = c_uint;
755pub const G_TLS_PASSWORD_NONE: GTlsPasswordFlags = 0;
756pub const G_TLS_PASSWORD_RETRY: GTlsPasswordFlags = 2;
757pub const G_TLS_PASSWORD_MANY_TRIES: GTlsPasswordFlags = 4;
758pub const G_TLS_PASSWORD_FINAL_TRY: GTlsPasswordFlags = 8;
759pub const G_TLS_PASSWORD_PKCS11_USER: GTlsPasswordFlags = 16;
760pub const G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER: GTlsPasswordFlags = 32;
761pub const G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC: GTlsPasswordFlags = 64;
762
763pub type GAsyncReadyCallback =
765 Option<unsafe extern "C" fn(*mut gobject::GObject, *mut GAsyncResult, gpointer)>;
766pub type GBusAcquiredCallback =
767 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
768pub type GBusNameAcquiredCallback =
769 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
770pub type GBusNameAppearedCallback =
771 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, *const c_char, gpointer)>;
772pub type GBusNameLostCallback =
773 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
774pub type GBusNameVanishedCallback =
775 Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>;
776pub type GCancellableSourceFunc =
777 Option<unsafe extern "C" fn(*mut GCancellable, gpointer) -> gboolean>;
778pub type GDBusInterfaceGetPropertyFunc = Option<
779 unsafe extern "C" fn(
780 *mut GDBusConnection,
781 *const c_char,
782 *const c_char,
783 *const c_char,
784 *const c_char,
785 *mut *mut glib::GError,
786 gpointer,
787 ) -> *mut glib::GVariant,
788>;
789pub type GDBusInterfaceMethodCallFunc = Option<
790 unsafe extern "C" fn(
791 *mut GDBusConnection,
792 *const c_char,
793 *const c_char,
794 *const c_char,
795 *const c_char,
796 *mut glib::GVariant,
797 *mut GDBusMethodInvocation,
798 gpointer,
799 ),
800>;
801pub type GDBusInterfaceSetPropertyFunc = Option<
802 unsafe extern "C" fn(
803 *mut GDBusConnection,
804 *const c_char,
805 *const c_char,
806 *const c_char,
807 *const c_char,
808 *mut glib::GVariant,
809 *mut *mut glib::GError,
810 gpointer,
811 ) -> gboolean,
812>;
813pub type GDBusMessageFilterFunction = Option<
814 unsafe extern "C" fn(
815 *mut GDBusConnection,
816 *mut GDBusMessage,
817 gboolean,
818 gpointer,
819 ) -> *mut GDBusMessage,
820>;
821pub type GDBusProxyTypeFunc = Option<
822 unsafe extern "C" fn(
823 *mut GDBusObjectManagerClient,
824 *const c_char,
825 *const c_char,
826 gpointer,
827 ) -> GType,
828>;
829pub type GDBusSignalCallback = Option<
830 unsafe extern "C" fn(
831 *mut GDBusConnection,
832 *const c_char,
833 *const c_char,
834 *const c_char,
835 *const c_char,
836 *mut glib::GVariant,
837 gpointer,
838 ),
839>;
840pub type GDBusSubtreeDispatchFunc = Option<
841 unsafe extern "C" fn(
842 *mut GDBusConnection,
843 *const c_char,
844 *const c_char,
845 *const c_char,
846 *const c_char,
847 *mut gpointer,
848 gpointer,
849 ) -> *const GDBusInterfaceVTable,
850>;
851pub type GDBusSubtreeEnumerateFunc = Option<
852 unsafe extern "C" fn(
853 *mut GDBusConnection,
854 *const c_char,
855 *const c_char,
856 gpointer,
857 ) -> *mut *mut c_char,
858>;
859pub type GDBusSubtreeIntrospectFunc = Option<
860 unsafe extern "C" fn(
861 *mut GDBusConnection,
862 *const c_char,
863 *const c_char,
864 *const c_char,
865 gpointer,
866 ) -> *mut *mut GDBusInterfaceInfo,
867>;
868pub type GDatagramBasedSourceFunc =
869 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition, gpointer) -> gboolean>;
870pub type GFileMeasureProgressCallback =
871 Option<unsafe extern "C" fn(gboolean, u64, u64, u64, gpointer)>;
872pub type GFileProgressCallback = Option<unsafe extern "C" fn(i64, i64, gpointer)>;
873pub type GFileReadMoreCallback =
874 Option<unsafe extern "C" fn(*const c_char, i64, gpointer) -> gboolean>;
875pub type GIOSchedulerJobFunc =
876 Option<unsafe extern "C" fn(*mut GIOSchedulerJob, *mut GCancellable, gpointer) -> gboolean>;
877pub type GPollableSourceFunc =
878 Option<unsafe extern "C" fn(*mut gobject::GObject, gpointer) -> gboolean>;
879pub type GReallocFunc = Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>;
880pub type GSettingsBindGetMapping =
881 Option<unsafe extern "C" fn(*mut gobject::GValue, *mut glib::GVariant, gpointer) -> gboolean>;
882pub type GSettingsBindSetMapping = Option<
883 unsafe extern "C" fn(
884 *const gobject::GValue,
885 *const glib::GVariantType,
886 gpointer,
887 ) -> *mut glib::GVariant,
888>;
889pub type GSettingsGetMapping =
890 Option<unsafe extern "C" fn(*mut glib::GVariant, *mut gpointer, gpointer) -> gboolean>;
891pub type GSimpleAsyncThreadFunc =
892 Option<unsafe extern "C" fn(*mut GSimpleAsyncResult, *mut gobject::GObject, *mut GCancellable)>;
893pub type GSocketSourceFunc =
894 Option<unsafe extern "C" fn(*mut GSocket, glib::GIOCondition, gpointer) -> gboolean>;
895pub type GTaskThreadFunc =
896 Option<unsafe extern "C" fn(*mut GTask, *mut gobject::GObject, gpointer, *mut GCancellable)>;
897pub type GVfsFileLookupFunc =
898 Option<unsafe extern "C" fn(*mut GVfs, *const c_char, gpointer) -> *mut GFile>;
899
900#[derive(Copy, Clone)]
902#[repr(C)]
903pub struct GActionEntry {
904 pub name: *const c_char,
905 pub activate: Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
906 pub parameter_type: *const c_char,
907 pub state: *const c_char,
908 pub change_state:
909 Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>,
910 pub padding: [size_t; 3],
911}
912
913impl ::std::fmt::Debug for GActionEntry {
914 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
915 f.debug_struct(&format!("GActionEntry @ {self:p}"))
916 .field("name", &self.name)
917 .field("activate", &self.activate)
918 .field("parameter_type", &self.parameter_type)
919 .field("state", &self.state)
920 .field("change_state", &self.change_state)
921 .finish()
922 }
923}
924
925#[derive(Copy, Clone)]
926#[repr(C)]
927pub struct GActionGroupInterface {
928 pub g_iface: gobject::GTypeInterface,
929 pub has_action: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
930 pub list_actions: Option<unsafe extern "C" fn(*mut GActionGroup) -> *mut *mut c_char>,
931 pub get_action_enabled:
932 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>,
933 pub get_action_parameter_type:
934 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
935 pub get_action_state_type:
936 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>,
937 pub get_action_state_hint:
938 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
939 pub get_action_state:
940 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>,
941 pub change_action_state:
942 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
943 pub activate_action:
944 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
945 pub action_added: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
946 pub action_removed: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>,
947 pub action_enabled_changed:
948 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, gboolean)>,
949 pub action_state_changed:
950 Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>,
951 pub query_action: Option<
952 unsafe extern "C" fn(
953 *mut GActionGroup,
954 *const c_char,
955 *mut gboolean,
956 *mut *const glib::GVariantType,
957 *mut *const glib::GVariantType,
958 *mut *mut glib::GVariant,
959 *mut *mut glib::GVariant,
960 ) -> gboolean,
961 >,
962}
963
964impl ::std::fmt::Debug for GActionGroupInterface {
965 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
966 f.debug_struct(&format!("GActionGroupInterface @ {self:p}"))
967 .field("g_iface", &self.g_iface)
968 .field("has_action", &self.has_action)
969 .field("list_actions", &self.list_actions)
970 .field("get_action_enabled", &self.get_action_enabled)
971 .field("get_action_parameter_type", &self.get_action_parameter_type)
972 .field("get_action_state_type", &self.get_action_state_type)
973 .field("get_action_state_hint", &self.get_action_state_hint)
974 .field("get_action_state", &self.get_action_state)
975 .field("change_action_state", &self.change_action_state)
976 .field("activate_action", &self.activate_action)
977 .field("action_added", &self.action_added)
978 .field("action_removed", &self.action_removed)
979 .field("action_enabled_changed", &self.action_enabled_changed)
980 .field("action_state_changed", &self.action_state_changed)
981 .field("query_action", &self.query_action)
982 .finish()
983 }
984}
985
986#[derive(Copy, Clone)]
987#[repr(C)]
988pub struct GActionInterface {
989 pub g_iface: gobject::GTypeInterface,
990 pub get_name: Option<unsafe extern "C" fn(*mut GAction) -> *const c_char>,
991 pub get_parameter_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
992 pub get_state_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>,
993 pub get_state_hint: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
994 pub get_enabled: Option<unsafe extern "C" fn(*mut GAction) -> gboolean>,
995 pub get_state: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>,
996 pub change_state: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
997 pub activate: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>,
998}
999
1000impl ::std::fmt::Debug for GActionInterface {
1001 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1002 f.debug_struct(&format!("GActionInterface @ {self:p}"))
1003 .field("g_iface", &self.g_iface)
1004 .field("get_name", &self.get_name)
1005 .field("get_parameter_type", &self.get_parameter_type)
1006 .field("get_state_type", &self.get_state_type)
1007 .field("get_state_hint", &self.get_state_hint)
1008 .field("get_enabled", &self.get_enabled)
1009 .field("get_state", &self.get_state)
1010 .field("change_state", &self.change_state)
1011 .field("activate", &self.activate)
1012 .finish()
1013 }
1014}
1015
1016#[derive(Copy, Clone)]
1017#[repr(C)]
1018pub struct GActionMapInterface {
1019 pub g_iface: gobject::GTypeInterface,
1020 pub lookup_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char) -> *mut GAction>,
1021 pub add_action: Option<unsafe extern "C" fn(*mut GActionMap, *mut GAction)>,
1022 pub remove_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char)>,
1023}
1024
1025impl ::std::fmt::Debug for GActionMapInterface {
1026 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1027 f.debug_struct(&format!("GActionMapInterface @ {self:p}"))
1028 .field("g_iface", &self.g_iface)
1029 .field("lookup_action", &self.lookup_action)
1030 .field("add_action", &self.add_action)
1031 .field("remove_action", &self.remove_action)
1032 .finish()
1033 }
1034}
1035
1036#[derive(Copy, Clone)]
1037#[repr(C)]
1038pub struct GAppInfoIface {
1039 pub g_iface: gobject::GTypeInterface,
1040 pub dup: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GAppInfo>,
1041 pub equal: Option<unsafe extern "C" fn(*mut GAppInfo, *mut GAppInfo) -> gboolean>,
1042 pub get_id: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1043 pub get_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1044 pub get_description: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1045 pub get_executable: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1046 pub get_icon: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GIcon>,
1047 pub launch: Option<
1048 unsafe extern "C" fn(
1049 *mut GAppInfo,
1050 *mut glib::GList,
1051 *mut GAppLaunchContext,
1052 *mut *mut glib::GError,
1053 ) -> gboolean,
1054 >,
1055 pub supports_uris: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1056 pub supports_files: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1057 pub launch_uris: Option<
1058 unsafe extern "C" fn(
1059 *mut GAppInfo,
1060 *mut glib::GList,
1061 *mut GAppLaunchContext,
1062 *mut *mut glib::GError,
1063 ) -> gboolean,
1064 >,
1065 pub should_show: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1066 pub set_as_default_for_type: Option<
1067 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1068 >,
1069 pub set_as_default_for_extension: Option<
1070 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1071 >,
1072 pub add_supports_type: Option<
1073 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1074 >,
1075 pub can_remove_supports_type: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1076 pub remove_supports_type: Option<
1077 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1078 >,
1079 pub can_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1080 pub do_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>,
1081 pub get_commandline: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1082 pub get_display_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>,
1083 pub set_as_last_used_for_type: Option<
1084 unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean,
1085 >,
1086 pub get_supported_types: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut *const c_char>,
1087 pub launch_uris_async: Option<
1088 unsafe extern "C" fn(
1089 *mut GAppInfo,
1090 *mut glib::GList,
1091 *mut GAppLaunchContext,
1092 *mut GCancellable,
1093 GAsyncReadyCallback,
1094 gpointer,
1095 ),
1096 >,
1097 pub launch_uris_finish: Option<
1098 unsafe extern "C" fn(*mut GAppInfo, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
1099 >,
1100}
1101
1102impl ::std::fmt::Debug for GAppInfoIface {
1103 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1104 f.debug_struct(&format!("GAppInfoIface @ {self:p}"))
1105 .field("g_iface", &self.g_iface)
1106 .field("dup", &self.dup)
1107 .field("equal", &self.equal)
1108 .field("get_id", &self.get_id)
1109 .field("get_name", &self.get_name)
1110 .field("get_description", &self.get_description)
1111 .field("get_executable", &self.get_executable)
1112 .field("get_icon", &self.get_icon)
1113 .field("launch", &self.launch)
1114 .field("supports_uris", &self.supports_uris)
1115 .field("supports_files", &self.supports_files)
1116 .field("launch_uris", &self.launch_uris)
1117 .field("should_show", &self.should_show)
1118 .field("set_as_default_for_type", &self.set_as_default_for_type)
1119 .field(
1120 "set_as_default_for_extension",
1121 &self.set_as_default_for_extension,
1122 )
1123 .field("add_supports_type", &self.add_supports_type)
1124 .field("can_remove_supports_type", &self.can_remove_supports_type)
1125 .field("remove_supports_type", &self.remove_supports_type)
1126 .field("can_delete", &self.can_delete)
1127 .field("do_delete", &self.do_delete)
1128 .field("get_commandline", &self.get_commandline)
1129 .field("get_display_name", &self.get_display_name)
1130 .field("set_as_last_used_for_type", &self.set_as_last_used_for_type)
1131 .field("get_supported_types", &self.get_supported_types)
1132 .field("launch_uris_async", &self.launch_uris_async)
1133 .field("launch_uris_finish", &self.launch_uris_finish)
1134 .finish()
1135 }
1136}
1137
1138#[derive(Copy, Clone)]
1139#[repr(C)]
1140pub struct GAppLaunchContextClass {
1141 pub parent_class: gobject::GObjectClass,
1142 pub get_display: Option<
1143 unsafe extern "C" fn(
1144 *mut GAppLaunchContext,
1145 *mut GAppInfo,
1146 *mut glib::GList,
1147 ) -> *mut c_char,
1148 >,
1149 pub get_startup_notify_id: Option<
1150 unsafe extern "C" fn(
1151 *mut GAppLaunchContext,
1152 *mut GAppInfo,
1153 *mut glib::GList,
1154 ) -> *mut c_char,
1155 >,
1156 pub launch_failed: Option<unsafe extern "C" fn(*mut GAppLaunchContext, *const c_char)>,
1157 pub launched:
1158 Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
1159 pub launch_started:
1160 Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>,
1161 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1162 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1163 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1164}
1165
1166impl ::std::fmt::Debug for GAppLaunchContextClass {
1167 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1168 f.debug_struct(&format!("GAppLaunchContextClass @ {self:p}"))
1169 .field("parent_class", &self.parent_class)
1170 .field("get_display", &self.get_display)
1171 .field("get_startup_notify_id", &self.get_startup_notify_id)
1172 .field("launch_failed", &self.launch_failed)
1173 .field("launched", &self.launched)
1174 .field("launch_started", &self.launch_started)
1175 .field("_g_reserved1", &self._g_reserved1)
1176 .field("_g_reserved2", &self._g_reserved2)
1177 .field("_g_reserved3", &self._g_reserved3)
1178 .finish()
1179 }
1180}
1181
1182#[repr(C)]
1183#[allow(dead_code)]
1184pub struct _GAppLaunchContextPrivate {
1185 _data: [u8; 0],
1186 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1187}
1188
1189pub type GAppLaunchContextPrivate = _GAppLaunchContextPrivate;
1190
1191#[derive(Copy, Clone)]
1192#[repr(C)]
1193pub struct GApplicationClass {
1194 pub parent_class: gobject::GObjectClass,
1195 pub startup: Option<unsafe extern "C" fn(*mut GApplication)>,
1196 pub activate: Option<unsafe extern "C" fn(*mut GApplication)>,
1197 pub open:
1198 Option<unsafe extern "C" fn(*mut GApplication, *mut *mut GFile, c_int, *const c_char)>,
1199 pub command_line:
1200 Option<unsafe extern "C" fn(*mut GApplication, *mut GApplicationCommandLine) -> c_int>,
1201 pub local_command_line: Option<
1202 unsafe extern "C" fn(*mut GApplication, *mut *mut *mut c_char, *mut c_int) -> gboolean,
1203 >,
1204 pub before_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1205 pub after_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>,
1206 pub add_platform_data:
1207 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantBuilder)>,
1208 pub quit_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1209 pub run_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>,
1210 pub shutdown: Option<unsafe extern "C" fn(*mut GApplication)>,
1211 pub dbus_register: Option<
1212 unsafe extern "C" fn(
1213 *mut GApplication,
1214 *mut GDBusConnection,
1215 *const c_char,
1216 *mut *mut glib::GError,
1217 ) -> gboolean,
1218 >,
1219 pub dbus_unregister:
1220 Option<unsafe extern "C" fn(*mut GApplication, *mut GDBusConnection, *const c_char)>,
1221 pub handle_local_options:
1222 Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantDict) -> c_int>,
1223 pub name_lost: Option<unsafe extern "C" fn(*mut GApplication) -> gboolean>,
1224 pub padding: [gpointer; 7],
1225}
1226
1227impl ::std::fmt::Debug for GApplicationClass {
1228 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1229 f.debug_struct(&format!("GApplicationClass @ {self:p}"))
1230 .field("startup", &self.startup)
1231 .field("activate", &self.activate)
1232 .field("open", &self.open)
1233 .field("command_line", &self.command_line)
1234 .field("local_command_line", &self.local_command_line)
1235 .field("before_emit", &self.before_emit)
1236 .field("after_emit", &self.after_emit)
1237 .field("add_platform_data", &self.add_platform_data)
1238 .field("quit_mainloop", &self.quit_mainloop)
1239 .field("run_mainloop", &self.run_mainloop)
1240 .field("shutdown", &self.shutdown)
1241 .field("dbus_register", &self.dbus_register)
1242 .field("dbus_unregister", &self.dbus_unregister)
1243 .field("handle_local_options", &self.handle_local_options)
1244 .field("name_lost", &self.name_lost)
1245 .finish()
1246 }
1247}
1248
1249#[derive(Copy, Clone)]
1250#[repr(C)]
1251pub struct GApplicationCommandLineClass {
1252 pub parent_class: gobject::GObjectClass,
1253 pub print_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1254 pub printerr_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>,
1255 pub get_stdin: Option<unsafe extern "C" fn(*mut GApplicationCommandLine) -> *mut GInputStream>,
1256 pub done: Option<unsafe extern "C" fn(*mut GApplicationCommandLine)>,
1257 pub padding: [gpointer; 10],
1258}
1259
1260impl ::std::fmt::Debug for GApplicationCommandLineClass {
1261 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1262 f.debug_struct(&format!("GApplicationCommandLineClass @ {self:p}"))
1263 .field("print_literal", &self.print_literal)
1264 .field("printerr_literal", &self.printerr_literal)
1265 .field("get_stdin", &self.get_stdin)
1266 .field("done", &self.done)
1267 .finish()
1268 }
1269}
1270
1271#[repr(C)]
1272#[allow(dead_code)]
1273pub struct _GApplicationCommandLinePrivate {
1274 _data: [u8; 0],
1275 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1276}
1277
1278pub type GApplicationCommandLinePrivate = _GApplicationCommandLinePrivate;
1279
1280#[repr(C)]
1281#[allow(dead_code)]
1282pub struct _GApplicationPrivate {
1283 _data: [u8; 0],
1284 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1285}
1286
1287pub type GApplicationPrivate = _GApplicationPrivate;
1288
1289#[derive(Copy, Clone)]
1290#[repr(C)]
1291pub struct GAsyncInitableIface {
1292 pub g_iface: gobject::GTypeInterface,
1293 pub init_async: Option<
1294 unsafe extern "C" fn(
1295 *mut GAsyncInitable,
1296 c_int,
1297 *mut GCancellable,
1298 GAsyncReadyCallback,
1299 gpointer,
1300 ),
1301 >,
1302 pub init_finish: Option<
1303 unsafe extern "C" fn(
1304 *mut GAsyncInitable,
1305 *mut GAsyncResult,
1306 *mut *mut glib::GError,
1307 ) -> gboolean,
1308 >,
1309}
1310
1311impl ::std::fmt::Debug for GAsyncInitableIface {
1312 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1313 f.debug_struct(&format!("GAsyncInitableIface @ {self:p}"))
1314 .field("g_iface", &self.g_iface)
1315 .field("init_async", &self.init_async)
1316 .field("init_finish", &self.init_finish)
1317 .finish()
1318 }
1319}
1320
1321#[derive(Copy, Clone)]
1322#[repr(C)]
1323pub struct GAsyncResultIface {
1324 pub g_iface: gobject::GTypeInterface,
1325 pub get_user_data: Option<unsafe extern "C" fn(*mut GAsyncResult) -> gpointer>,
1326 pub get_source_object: Option<unsafe extern "C" fn(*mut GAsyncResult) -> *mut gobject::GObject>,
1327 pub is_tagged: Option<unsafe extern "C" fn(*mut GAsyncResult, gpointer) -> gboolean>,
1328}
1329
1330impl ::std::fmt::Debug for GAsyncResultIface {
1331 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1332 f.debug_struct(&format!("GAsyncResultIface @ {self:p}"))
1333 .field("g_iface", &self.g_iface)
1334 .field("get_user_data", &self.get_user_data)
1335 .field("get_source_object", &self.get_source_object)
1336 .field("is_tagged", &self.is_tagged)
1337 .finish()
1338 }
1339}
1340
1341#[derive(Copy, Clone)]
1342#[repr(C)]
1343pub struct GBufferedInputStreamClass {
1344 pub parent_class: GFilterInputStreamClass,
1345 pub fill: Option<
1346 unsafe extern "C" fn(
1347 *mut GBufferedInputStream,
1348 ssize_t,
1349 *mut GCancellable,
1350 *mut *mut glib::GError,
1351 ) -> ssize_t,
1352 >,
1353 pub fill_async: Option<
1354 unsafe extern "C" fn(
1355 *mut GBufferedInputStream,
1356 ssize_t,
1357 c_int,
1358 *mut GCancellable,
1359 GAsyncReadyCallback,
1360 gpointer,
1361 ),
1362 >,
1363 pub fill_finish: Option<
1364 unsafe extern "C" fn(
1365 *mut GBufferedInputStream,
1366 *mut GAsyncResult,
1367 *mut *mut glib::GError,
1368 ) -> ssize_t,
1369 >,
1370 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1371 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1372 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1373 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1374 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1375}
1376
1377impl ::std::fmt::Debug for GBufferedInputStreamClass {
1378 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1379 f.debug_struct(&format!("GBufferedInputStreamClass @ {self:p}"))
1380 .field("parent_class", &self.parent_class)
1381 .field("fill", &self.fill)
1382 .field("fill_async", &self.fill_async)
1383 .field("fill_finish", &self.fill_finish)
1384 .field("_g_reserved1", &self._g_reserved1)
1385 .field("_g_reserved2", &self._g_reserved2)
1386 .field("_g_reserved3", &self._g_reserved3)
1387 .field("_g_reserved4", &self._g_reserved4)
1388 .field("_g_reserved5", &self._g_reserved5)
1389 .finish()
1390 }
1391}
1392
1393#[repr(C)]
1394#[allow(dead_code)]
1395pub struct _GBufferedInputStreamPrivate {
1396 _data: [u8; 0],
1397 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1398}
1399
1400pub type GBufferedInputStreamPrivate = _GBufferedInputStreamPrivate;
1401
1402#[derive(Copy, Clone)]
1403#[repr(C)]
1404pub struct GBufferedOutputStreamClass {
1405 pub parent_class: GFilterOutputStreamClass,
1406 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1407 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1408}
1409
1410impl ::std::fmt::Debug for GBufferedOutputStreamClass {
1411 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1412 f.debug_struct(&format!("GBufferedOutputStreamClass @ {self:p}"))
1413 .field("parent_class", &self.parent_class)
1414 .field("_g_reserved1", &self._g_reserved1)
1415 .field("_g_reserved2", &self._g_reserved2)
1416 .finish()
1417 }
1418}
1419
1420#[repr(C)]
1421#[allow(dead_code)]
1422pub struct _GBufferedOutputStreamPrivate {
1423 _data: [u8; 0],
1424 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1425}
1426
1427pub type GBufferedOutputStreamPrivate = _GBufferedOutputStreamPrivate;
1428
1429#[derive(Copy, Clone)]
1430#[repr(C)]
1431pub struct GCancellableClass {
1432 pub parent_class: gobject::GObjectClass,
1433 pub cancelled: Option<unsafe extern "C" fn(*mut GCancellable)>,
1434 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1435 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1436 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1437 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1438 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1439}
1440
1441impl ::std::fmt::Debug for GCancellableClass {
1442 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1443 f.debug_struct(&format!("GCancellableClass @ {self:p}"))
1444 .field("parent_class", &self.parent_class)
1445 .field("cancelled", &self.cancelled)
1446 .field("_g_reserved1", &self._g_reserved1)
1447 .field("_g_reserved2", &self._g_reserved2)
1448 .field("_g_reserved3", &self._g_reserved3)
1449 .field("_g_reserved4", &self._g_reserved4)
1450 .field("_g_reserved5", &self._g_reserved5)
1451 .finish()
1452 }
1453}
1454
1455#[repr(C)]
1456#[allow(dead_code)]
1457pub struct _GCancellablePrivate {
1458 _data: [u8; 0],
1459 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1460}
1461
1462pub type GCancellablePrivate = _GCancellablePrivate;
1463
1464#[derive(Copy, Clone)]
1465#[repr(C)]
1466pub struct GCharsetConverterClass {
1467 pub parent_class: gobject::GObjectClass,
1468}
1469
1470impl ::std::fmt::Debug for GCharsetConverterClass {
1471 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1472 f.debug_struct(&format!("GCharsetConverterClass @ {self:p}"))
1473 .field("parent_class", &self.parent_class)
1474 .finish()
1475 }
1476}
1477
1478#[derive(Copy, Clone)]
1479#[repr(C)]
1480pub struct GConverterIface {
1481 pub g_iface: gobject::GTypeInterface,
1482 pub convert: Option<
1483 unsafe extern "C" fn(
1484 *mut GConverter,
1485 *mut u8,
1486 size_t,
1487 *mut u8,
1488 size_t,
1489 GConverterFlags,
1490 *mut size_t,
1491 *mut size_t,
1492 *mut *mut glib::GError,
1493 ) -> GConverterResult,
1494 >,
1495 pub reset: Option<unsafe extern "C" fn(*mut GConverter)>,
1496}
1497
1498impl ::std::fmt::Debug for GConverterIface {
1499 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1500 f.debug_struct(&format!("GConverterIface @ {self:p}"))
1501 .field("g_iface", &self.g_iface)
1502 .field("convert", &self.convert)
1503 .field("reset", &self.reset)
1504 .finish()
1505 }
1506}
1507
1508#[derive(Copy, Clone)]
1509#[repr(C)]
1510pub struct GConverterInputStreamClass {
1511 pub parent_class: GFilterInputStreamClass,
1512 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1513 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1514 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1515 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1516 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1517}
1518
1519impl ::std::fmt::Debug for GConverterInputStreamClass {
1520 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1521 f.debug_struct(&format!("GConverterInputStreamClass @ {self:p}"))
1522 .field("parent_class", &self.parent_class)
1523 .field("_g_reserved1", &self._g_reserved1)
1524 .field("_g_reserved2", &self._g_reserved2)
1525 .field("_g_reserved3", &self._g_reserved3)
1526 .field("_g_reserved4", &self._g_reserved4)
1527 .field("_g_reserved5", &self._g_reserved5)
1528 .finish()
1529 }
1530}
1531
1532#[repr(C)]
1533#[allow(dead_code)]
1534pub struct _GConverterInputStreamPrivate {
1535 _data: [u8; 0],
1536 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1537}
1538
1539pub type GConverterInputStreamPrivate = _GConverterInputStreamPrivate;
1540
1541#[derive(Copy, Clone)]
1542#[repr(C)]
1543pub struct GConverterOutputStreamClass {
1544 pub parent_class: GFilterOutputStreamClass,
1545 pub _g_reserved1: Option<unsafe extern "C" fn()>,
1546 pub _g_reserved2: Option<unsafe extern "C" fn()>,
1547 pub _g_reserved3: Option<unsafe extern "C" fn()>,
1548 pub _g_reserved4: Option<unsafe extern "C" fn()>,
1549 pub _g_reserved5: Option<unsafe extern "C" fn()>,
1550}
1551
1552impl ::std::fmt::Debug for GConverterOutputStreamClass {
1553 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1554 f.debug_struct(&format!("GConverterOutputStreamClass @ {self:p}"))
1555 .field("parent_class", &self.parent_class)
1556 .field("_g_reserved1", &self._g_reserved1)
1557 .field("_g_reserved2", &self._g_reserved2)
1558 .field("_g_reserved3", &self._g_reserved3)
1559 .field("_g_reserved4", &self._g_reserved4)
1560 .field("_g_reserved5", &self._g_reserved5)
1561 .finish()
1562 }
1563}
1564
1565#[repr(C)]
1566#[allow(dead_code)]
1567pub struct _GConverterOutputStreamPrivate {
1568 _data: [u8; 0],
1569 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1570}
1571
1572pub type GConverterOutputStreamPrivate = _GConverterOutputStreamPrivate;
1573
1574#[repr(C)]
1575#[allow(dead_code)]
1576pub struct _GCredentialsClass {
1577 _data: [u8; 0],
1578 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1579}
1580
1581pub type GCredentialsClass = _GCredentialsClass;
1582
1583#[derive(Copy, Clone)]
1584#[repr(C)]
1585pub struct GDBusAnnotationInfo {
1586 pub ref_count: c_int,
1587 pub key: *mut c_char,
1588 pub value: *mut c_char,
1589 pub annotations: *mut *mut GDBusAnnotationInfo,
1590}
1591
1592impl ::std::fmt::Debug for GDBusAnnotationInfo {
1593 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1594 f.debug_struct(&format!("GDBusAnnotationInfo @ {self:p}"))
1595 .field("ref_count", &self.ref_count)
1596 .field("key", &self.key)
1597 .field("value", &self.value)
1598 .field("annotations", &self.annotations)
1599 .finish()
1600 }
1601}
1602
1603#[derive(Copy, Clone)]
1604#[repr(C)]
1605pub struct GDBusArgInfo {
1606 pub ref_count: c_int,
1607 pub name: *mut c_char,
1608 pub signature: *mut c_char,
1609 pub annotations: *mut *mut GDBusAnnotationInfo,
1610}
1611
1612impl ::std::fmt::Debug for GDBusArgInfo {
1613 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1614 f.debug_struct(&format!("GDBusArgInfo @ {self:p}"))
1615 .field("ref_count", &self.ref_count)
1616 .field("name", &self.name)
1617 .field("signature", &self.signature)
1618 .field("annotations", &self.annotations)
1619 .finish()
1620 }
1621}
1622
1623#[derive(Copy, Clone)]
1624#[repr(C)]
1625pub struct GDBusErrorEntry {
1626 pub error_code: c_int,
1627 pub dbus_error_name: *const c_char,
1628}
1629
1630impl ::std::fmt::Debug for GDBusErrorEntry {
1631 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1632 f.debug_struct(&format!("GDBusErrorEntry @ {self:p}"))
1633 .field("error_code", &self.error_code)
1634 .field("dbus_error_name", &self.dbus_error_name)
1635 .finish()
1636 }
1637}
1638
1639#[derive(Copy, Clone)]
1640#[repr(C)]
1641pub struct GDBusInterfaceIface {
1642 pub parent_iface: gobject::GTypeInterface,
1643 pub get_info: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusInterfaceInfo>,
1644 pub get_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1645 pub set_object: Option<unsafe extern "C" fn(*mut GDBusInterface, *mut GDBusObject)>,
1646 pub dup_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>,
1647}
1648
1649impl ::std::fmt::Debug for GDBusInterfaceIface {
1650 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1651 f.debug_struct(&format!("GDBusInterfaceIface @ {self:p}"))
1652 .field("parent_iface", &self.parent_iface)
1653 .field("get_info", &self.get_info)
1654 .field("get_object", &self.get_object)
1655 .field("set_object", &self.set_object)
1656 .field("dup_object", &self.dup_object)
1657 .finish()
1658 }
1659}
1660
1661#[derive(Copy, Clone)]
1662#[repr(C)]
1663pub struct GDBusInterfaceInfo {
1664 pub ref_count: c_int,
1665 pub name: *mut c_char,
1666 pub methods: *mut *mut GDBusMethodInfo,
1667 pub signals: *mut *mut GDBusSignalInfo,
1668 pub properties: *mut *mut GDBusPropertyInfo,
1669 pub annotations: *mut *mut GDBusAnnotationInfo,
1670}
1671
1672impl ::std::fmt::Debug for GDBusInterfaceInfo {
1673 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1674 f.debug_struct(&format!("GDBusInterfaceInfo @ {self:p}"))
1675 .field("ref_count", &self.ref_count)
1676 .field("name", &self.name)
1677 .field("methods", &self.methods)
1678 .field("signals", &self.signals)
1679 .field("properties", &self.properties)
1680 .field("annotations", &self.annotations)
1681 .finish()
1682 }
1683}
1684
1685#[derive(Copy, Clone)]
1686#[repr(C)]
1687pub struct GDBusInterfaceSkeletonClass {
1688 pub parent_class: gobject::GObjectClass,
1689 pub get_info:
1690 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo>,
1691 pub get_vtable:
1692 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable>,
1693 pub get_properties:
1694 Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut glib::GVariant>,
1695 pub flush: Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton)>,
1696 pub method_dispatch: Option<
1697 unsafe extern "C" fn(
1698 *mut GDBusInterfaceSkeleton,
1699 GDBusInterfaceMethodCallFunc,
1700 *mut GDBusMethodInvocation,
1701 GDBusInterfaceSkeletonFlags,
1702 *mut GDBusObject,
1703 ),
1704 >,
1705 pub vfunc_padding: [gpointer; 7],
1706 pub g_authorize_method: Option<
1707 unsafe extern "C" fn(*mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean,
1708 >,
1709 pub signal_padding: [gpointer; 8],
1710}
1711
1712impl ::std::fmt::Debug for GDBusInterfaceSkeletonClass {
1713 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1714 f.debug_struct(&format!("GDBusInterfaceSkeletonClass @ {self:p}"))
1715 .field("parent_class", &self.parent_class)
1716 .field("get_info", &self.get_info)
1717 .field("get_vtable", &self.get_vtable)
1718 .field("get_properties", &self.get_properties)
1719 .field("flush", &self.flush)
1720 .field("method_dispatch", &self.method_dispatch)
1721 .field("g_authorize_method", &self.g_authorize_method)
1722 .finish()
1723 }
1724}
1725
1726#[repr(C)]
1727#[allow(dead_code)]
1728pub struct _GDBusInterfaceSkeletonPrivate {
1729 _data: [u8; 0],
1730 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1731}
1732
1733pub type GDBusInterfaceSkeletonPrivate = _GDBusInterfaceSkeletonPrivate;
1734
1735#[derive(Copy, Clone)]
1736#[repr(C)]
1737pub struct GDBusInterfaceVTable {
1738 pub method_call: GDBusInterfaceMethodCallFunc,
1739 pub get_property: GDBusInterfaceGetPropertyFunc,
1740 pub set_property: GDBusInterfaceSetPropertyFunc,
1741 pub padding: [gpointer; 8],
1742}
1743
1744impl ::std::fmt::Debug for GDBusInterfaceVTable {
1745 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1746 f.debug_struct(&format!("GDBusInterfaceVTable @ {self:p}"))
1747 .field("method_call", &self.method_call)
1748 .field("get_property", &self.get_property)
1749 .field("set_property", &self.set_property)
1750 .finish()
1751 }
1752}
1753
1754#[derive(Copy, Clone)]
1755#[repr(C)]
1756pub struct GDBusMethodInfo {
1757 pub ref_count: c_int,
1758 pub name: *mut c_char,
1759 pub in_args: *mut *mut GDBusArgInfo,
1760 pub out_args: *mut *mut GDBusArgInfo,
1761 pub annotations: *mut *mut GDBusAnnotationInfo,
1762}
1763
1764impl ::std::fmt::Debug for GDBusMethodInfo {
1765 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1766 f.debug_struct(&format!("GDBusMethodInfo @ {self:p}"))
1767 .field("ref_count", &self.ref_count)
1768 .field("name", &self.name)
1769 .field("in_args", &self.in_args)
1770 .field("out_args", &self.out_args)
1771 .field("annotations", &self.annotations)
1772 .finish()
1773 }
1774}
1775
1776#[derive(Copy, Clone)]
1777#[repr(C)]
1778pub struct GDBusNodeInfo {
1779 pub ref_count: c_int,
1780 pub path: *mut c_char,
1781 pub interfaces: *mut *mut GDBusInterfaceInfo,
1782 pub nodes: *mut *mut GDBusNodeInfo,
1783 pub annotations: *mut *mut GDBusAnnotationInfo,
1784}
1785
1786impl ::std::fmt::Debug for GDBusNodeInfo {
1787 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1788 f.debug_struct(&format!("GDBusNodeInfo @ {self:p}"))
1789 .field("ref_count", &self.ref_count)
1790 .field("path", &self.path)
1791 .field("interfaces", &self.interfaces)
1792 .field("nodes", &self.nodes)
1793 .field("annotations", &self.annotations)
1794 .finish()
1795 }
1796}
1797
1798#[derive(Copy, Clone)]
1799#[repr(C)]
1800pub struct GDBusObjectIface {
1801 pub parent_iface: gobject::GTypeInterface,
1802 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObject) -> *const c_char>,
1803 pub get_interfaces: Option<unsafe extern "C" fn(*mut GDBusObject) -> *mut glib::GList>,
1804 pub get_interface:
1805 Option<unsafe extern "C" fn(*mut GDBusObject, *const c_char) -> *mut GDBusInterface>,
1806 pub interface_added: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1807 pub interface_removed: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>,
1808}
1809
1810impl ::std::fmt::Debug for GDBusObjectIface {
1811 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1812 f.debug_struct(&format!("GDBusObjectIface @ {self:p}"))
1813 .field("parent_iface", &self.parent_iface)
1814 .field("get_object_path", &self.get_object_path)
1815 .field("get_interfaces", &self.get_interfaces)
1816 .field("get_interface", &self.get_interface)
1817 .field("interface_added", &self.interface_added)
1818 .field("interface_removed", &self.interface_removed)
1819 .finish()
1820 }
1821}
1822
1823#[derive(Copy, Clone)]
1824#[repr(C)]
1825pub struct GDBusObjectManagerClientClass {
1826 pub parent_class: gobject::GObjectClass,
1827 pub interface_proxy_signal: Option<
1828 unsafe extern "C" fn(
1829 *mut GDBusObjectManagerClient,
1830 *mut GDBusObjectProxy,
1831 *mut GDBusProxy,
1832 *const c_char,
1833 *const c_char,
1834 *mut glib::GVariant,
1835 ),
1836 >,
1837 pub interface_proxy_properties_changed: Option<
1838 unsafe extern "C" fn(
1839 *mut GDBusObjectManagerClient,
1840 *mut GDBusObjectProxy,
1841 *mut GDBusProxy,
1842 *mut glib::GVariant,
1843 *const *const c_char,
1844 ),
1845 >,
1846 pub padding: [gpointer; 8],
1847}
1848
1849impl ::std::fmt::Debug for GDBusObjectManagerClientClass {
1850 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1851 f.debug_struct(&format!("GDBusObjectManagerClientClass @ {self:p}"))
1852 .field("parent_class", &self.parent_class)
1853 .field("interface_proxy_signal", &self.interface_proxy_signal)
1854 .field(
1855 "interface_proxy_properties_changed",
1856 &self.interface_proxy_properties_changed,
1857 )
1858 .finish()
1859 }
1860}
1861
1862#[repr(C)]
1863#[allow(dead_code)]
1864pub struct _GDBusObjectManagerClientPrivate {
1865 _data: [u8; 0],
1866 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1867}
1868
1869pub type GDBusObjectManagerClientPrivate = _GDBusObjectManagerClientPrivate;
1870
1871#[derive(Copy, Clone)]
1872#[repr(C)]
1873pub struct GDBusObjectManagerIface {
1874 pub parent_iface: gobject::GTypeInterface,
1875 pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *const c_char>,
1876 pub get_objects: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *mut glib::GList>,
1877 pub get_object:
1878 Option<unsafe extern "C" fn(*mut GDBusObjectManager, *const c_char) -> *mut GDBusObject>,
1879 pub get_interface: Option<
1880 unsafe extern "C" fn(
1881 *mut GDBusObjectManager,
1882 *const c_char,
1883 *const c_char,
1884 ) -> *mut GDBusInterface,
1885 >,
1886 pub object_added: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1887 pub object_removed: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>,
1888 pub interface_added: Option<
1889 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1890 >,
1891 pub interface_removed: Option<
1892 unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface),
1893 >,
1894}
1895
1896impl ::std::fmt::Debug for GDBusObjectManagerIface {
1897 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1898 f.debug_struct(&format!("GDBusObjectManagerIface @ {self:p}"))
1899 .field("parent_iface", &self.parent_iface)
1900 .field("get_object_path", &self.get_object_path)
1901 .field("get_objects", &self.get_objects)
1902 .field("get_object", &self.get_object)
1903 .field("get_interface", &self.get_interface)
1904 .field("object_added", &self.object_added)
1905 .field("object_removed", &self.object_removed)
1906 .field("interface_added", &self.interface_added)
1907 .field("interface_removed", &self.interface_removed)
1908 .finish()
1909 }
1910}
1911
1912#[derive(Copy, Clone)]
1913#[repr(C)]
1914pub struct GDBusObjectManagerServerClass {
1915 pub parent_class: gobject::GObjectClass,
1916 pub padding: [gpointer; 8],
1917}
1918
1919impl ::std::fmt::Debug for GDBusObjectManagerServerClass {
1920 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1921 f.debug_struct(&format!("GDBusObjectManagerServerClass @ {self:p}"))
1922 .field("parent_class", &self.parent_class)
1923 .finish()
1924 }
1925}
1926
1927#[repr(C)]
1928#[allow(dead_code)]
1929pub struct _GDBusObjectManagerServerPrivate {
1930 _data: [u8; 0],
1931 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1932}
1933
1934pub type GDBusObjectManagerServerPrivate = _GDBusObjectManagerServerPrivate;
1935
1936#[derive(Copy, Clone)]
1937#[repr(C)]
1938pub struct GDBusObjectProxyClass {
1939 pub parent_class: gobject::GObjectClass,
1940 pub padding: [gpointer; 8],
1941}
1942
1943impl ::std::fmt::Debug for GDBusObjectProxyClass {
1944 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1945 f.debug_struct(&format!("GDBusObjectProxyClass @ {self:p}"))
1946 .field("parent_class", &self.parent_class)
1947 .finish()
1948 }
1949}
1950
1951#[repr(C)]
1952#[allow(dead_code)]
1953pub struct _GDBusObjectProxyPrivate {
1954 _data: [u8; 0],
1955 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1956}
1957
1958pub type GDBusObjectProxyPrivate = _GDBusObjectProxyPrivate;
1959
1960#[derive(Copy, Clone)]
1961#[repr(C)]
1962pub struct GDBusObjectSkeletonClass {
1963 pub parent_class: gobject::GObjectClass,
1964 pub authorize_method: Option<
1965 unsafe extern "C" fn(
1966 *mut GDBusObjectSkeleton,
1967 *mut GDBusInterfaceSkeleton,
1968 *mut GDBusMethodInvocation,
1969 ) -> gboolean,
1970 >,
1971 pub padding: [gpointer; 8],
1972}
1973
1974impl ::std::fmt::Debug for GDBusObjectSkeletonClass {
1975 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1976 f.debug_struct(&format!("GDBusObjectSkeletonClass @ {self:p}"))
1977 .field("parent_class", &self.parent_class)
1978 .field("authorize_method", &self.authorize_method)
1979 .finish()
1980 }
1981}
1982
1983#[repr(C)]
1984#[allow(dead_code)]
1985pub struct _GDBusObjectSkeletonPrivate {
1986 _data: [u8; 0],
1987 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1988}
1989
1990pub type GDBusObjectSkeletonPrivate = _GDBusObjectSkeletonPrivate;
1991
1992#[derive(Copy, Clone)]
1993#[repr(C)]
1994pub struct GDBusPropertyInfo {
1995 pub ref_count: c_int,
1996 pub name: *mut c_char,
1997 pub signature: *mut c_char,
1998 pub flags: GDBusPropertyInfoFlags,
1999 pub annotations: *mut *mut GDBusAnnotationInfo,
2000}
2001
2002impl ::std::fmt::Debug for GDBusPropertyInfo {
2003 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2004 f.debug_struct(&format!("GDBusPropertyInfo @ {self:p}"))
2005 .field("ref_count", &self.ref_count)
2006 .field("name", &self.name)
2007 .field("signature", &self.signature)
2008 .field("flags", &self.flags)
2009 .field("annotations", &self.annotations)
2010 .finish()
2011 }
2012}
2013
2014#[derive(Copy, Clone)]
2015#[repr(C)]
2016pub struct GDBusProxyClass {
2017 pub parent_class: gobject::GObjectClass,
2018 pub g_properties_changed:
2019 Option<unsafe extern "C" fn(*mut GDBusProxy, *mut glib::GVariant, *const *const c_char)>,
2020 pub g_signal: Option<
2021 unsafe extern "C" fn(*mut GDBusProxy, *const c_char, *const c_char, *mut glib::GVariant),
2022 >,
2023 pub padding: [gpointer; 32],
2024}
2025
2026impl ::std::fmt::Debug for GDBusProxyClass {
2027 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2028 f.debug_struct(&format!("GDBusProxyClass @ {self:p}"))
2029 .field("g_properties_changed", &self.g_properties_changed)
2030 .field("g_signal", &self.g_signal)
2031 .finish()
2032 }
2033}
2034
2035#[repr(C)]
2036#[allow(dead_code)]
2037pub struct _GDBusProxyPrivate {
2038 _data: [u8; 0],
2039 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2040}
2041
2042pub type GDBusProxyPrivate = _GDBusProxyPrivate;
2043
2044#[derive(Copy, Clone)]
2045#[repr(C)]
2046pub struct GDBusSignalInfo {
2047 pub ref_count: c_int,
2048 pub name: *mut c_char,
2049 pub args: *mut *mut GDBusArgInfo,
2050 pub annotations: *mut *mut GDBusAnnotationInfo,
2051}
2052
2053impl ::std::fmt::Debug for GDBusSignalInfo {
2054 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2055 f.debug_struct(&format!("GDBusSignalInfo @ {self:p}"))
2056 .field("ref_count", &self.ref_count)
2057 .field("name", &self.name)
2058 .field("args", &self.args)
2059 .field("annotations", &self.annotations)
2060 .finish()
2061 }
2062}
2063
2064#[derive(Copy, Clone)]
2065#[repr(C)]
2066pub struct GDBusSubtreeVTable {
2067 pub enumerate: GDBusSubtreeEnumerateFunc,
2068 pub introspect: GDBusSubtreeIntrospectFunc,
2069 pub dispatch: GDBusSubtreeDispatchFunc,
2070 pub padding: [gpointer; 8],
2071}
2072
2073impl ::std::fmt::Debug for GDBusSubtreeVTable {
2074 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2075 f.debug_struct(&format!("GDBusSubtreeVTable @ {self:p}"))
2076 .field("enumerate", &self.enumerate)
2077 .field("introspect", &self.introspect)
2078 .field("dispatch", &self.dispatch)
2079 .finish()
2080 }
2081}
2082
2083#[derive(Copy, Clone)]
2084#[repr(C)]
2085pub struct GDataInputStreamClass {
2086 pub parent_class: GBufferedInputStreamClass,
2087 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2088 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2089 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2090 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2091 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2092}
2093
2094impl ::std::fmt::Debug for GDataInputStreamClass {
2095 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2096 f.debug_struct(&format!("GDataInputStreamClass @ {self:p}"))
2097 .field("parent_class", &self.parent_class)
2098 .field("_g_reserved1", &self._g_reserved1)
2099 .field("_g_reserved2", &self._g_reserved2)
2100 .field("_g_reserved3", &self._g_reserved3)
2101 .field("_g_reserved4", &self._g_reserved4)
2102 .field("_g_reserved5", &self._g_reserved5)
2103 .finish()
2104 }
2105}
2106
2107#[repr(C)]
2108#[allow(dead_code)]
2109pub struct _GDataInputStreamPrivate {
2110 _data: [u8; 0],
2111 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2112}
2113
2114pub type GDataInputStreamPrivate = _GDataInputStreamPrivate;
2115
2116#[derive(Copy, Clone)]
2117#[repr(C)]
2118pub struct GDataOutputStreamClass {
2119 pub parent_class: GFilterOutputStreamClass,
2120 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2121 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2122 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2123 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2124 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2125}
2126
2127impl ::std::fmt::Debug for GDataOutputStreamClass {
2128 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2129 f.debug_struct(&format!("GDataOutputStreamClass @ {self:p}"))
2130 .field("parent_class", &self.parent_class)
2131 .field("_g_reserved1", &self._g_reserved1)
2132 .field("_g_reserved2", &self._g_reserved2)
2133 .field("_g_reserved3", &self._g_reserved3)
2134 .field("_g_reserved4", &self._g_reserved4)
2135 .field("_g_reserved5", &self._g_reserved5)
2136 .finish()
2137 }
2138}
2139
2140#[repr(C)]
2141#[allow(dead_code)]
2142pub struct _GDataOutputStreamPrivate {
2143 _data: [u8; 0],
2144 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2145}
2146
2147pub type GDataOutputStreamPrivate = _GDataOutputStreamPrivate;
2148
2149#[derive(Copy, Clone)]
2150#[repr(C)]
2151pub struct GDatagramBasedInterface {
2152 pub g_iface: gobject::GTypeInterface,
2153 pub receive_messages: Option<
2154 unsafe extern "C" fn(
2155 *mut GDatagramBased,
2156 *mut GInputMessage,
2157 c_uint,
2158 c_int,
2159 i64,
2160 *mut GCancellable,
2161 *mut *mut glib::GError,
2162 ) -> c_int,
2163 >,
2164 pub send_messages: Option<
2165 unsafe extern "C" fn(
2166 *mut GDatagramBased,
2167 *mut GOutputMessage,
2168 c_uint,
2169 c_int,
2170 i64,
2171 *mut GCancellable,
2172 *mut *mut glib::GError,
2173 ) -> c_int,
2174 >,
2175 pub create_source: Option<
2176 unsafe extern "C" fn(
2177 *mut GDatagramBased,
2178 glib::GIOCondition,
2179 *mut GCancellable,
2180 ) -> *mut glib::GSource,
2181 >,
2182 pub condition_check:
2183 Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition) -> glib::GIOCondition>,
2184 pub condition_wait: Option<
2185 unsafe extern "C" fn(
2186 *mut GDatagramBased,
2187 glib::GIOCondition,
2188 i64,
2189 *mut GCancellable,
2190 *mut *mut glib::GError,
2191 ) -> gboolean,
2192 >,
2193}
2194
2195impl ::std::fmt::Debug for GDatagramBasedInterface {
2196 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2197 f.debug_struct(&format!("GDatagramBasedInterface @ {self:p}"))
2198 .field("g_iface", &self.g_iface)
2199 .field("receive_messages", &self.receive_messages)
2200 .field("send_messages", &self.send_messages)
2201 .field("create_source", &self.create_source)
2202 .field("condition_check", &self.condition_check)
2203 .field("condition_wait", &self.condition_wait)
2204 .finish()
2205 }
2206}
2207
2208#[derive(Copy, Clone)]
2209#[repr(C)]
2210pub struct GDebugControllerDBusClass {
2211 pub parent_class: gobject::GObjectClass,
2212 pub authorize: Option<
2213 unsafe extern "C" fn(*mut GDebugControllerDBus, *mut GDBusMethodInvocation) -> gboolean,
2214 >,
2215 pub padding: [gpointer; 12],
2216}
2217
2218impl ::std::fmt::Debug for GDebugControllerDBusClass {
2219 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2220 f.debug_struct(&format!("GDebugControllerDBusClass @ {self:p}"))
2221 .field("parent_class", &self.parent_class)
2222 .field("authorize", &self.authorize)
2223 .field("padding", &self.padding)
2224 .finish()
2225 }
2226}
2227
2228#[derive(Copy, Clone)]
2229#[repr(C)]
2230pub struct GDebugControllerInterface {
2231 pub g_iface: gobject::GTypeInterface,
2232}
2233
2234impl ::std::fmt::Debug for GDebugControllerInterface {
2235 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2236 f.debug_struct(&format!("GDebugControllerInterface @ {self:p}"))
2237 .finish()
2238 }
2239}
2240
2241#[derive(Copy, Clone)]
2242#[repr(C)]
2243pub struct GDriveIface {
2244 pub g_iface: gobject::GTypeInterface,
2245 pub changed: Option<unsafe extern "C" fn(*mut GDrive)>,
2246 pub disconnected: Option<unsafe extern "C" fn(*mut GDrive)>,
2247 pub eject_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2248 pub get_name: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2249 pub get_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2250 pub has_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2251 pub get_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> *mut glib::GList>,
2252 pub is_media_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2253 pub has_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2254 pub is_media_check_automatic: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2255 pub can_eject: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2256 pub can_poll_for_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2257 pub eject: Option<
2258 unsafe extern "C" fn(
2259 *mut GDrive,
2260 GMountUnmountFlags,
2261 *mut GCancellable,
2262 GAsyncReadyCallback,
2263 gpointer,
2264 ),
2265 >,
2266 pub eject_finish: Option<
2267 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2268 >,
2269 pub poll_for_media:
2270 Option<unsafe extern "C" fn(*mut GDrive, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
2271 pub poll_for_media_finish: Option<
2272 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2273 >,
2274 pub get_identifier: Option<unsafe extern "C" fn(*mut GDrive, *const c_char) -> *mut c_char>,
2275 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GDrive) -> *mut *mut c_char>,
2276 pub get_start_stop_type: Option<unsafe extern "C" fn(*mut GDrive) -> GDriveStartStopType>,
2277 pub can_start: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2278 pub can_start_degraded: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2279 pub start: Option<
2280 unsafe extern "C" fn(
2281 *mut GDrive,
2282 GDriveStartFlags,
2283 *mut GMountOperation,
2284 *mut GCancellable,
2285 GAsyncReadyCallback,
2286 gpointer,
2287 ),
2288 >,
2289 pub start_finish: Option<
2290 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2291 >,
2292 pub can_stop: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2293 pub stop: Option<
2294 unsafe extern "C" fn(
2295 *mut GDrive,
2296 GMountUnmountFlags,
2297 *mut GMountOperation,
2298 *mut GCancellable,
2299 GAsyncReadyCallback,
2300 gpointer,
2301 ),
2302 >,
2303 pub stop_finish: Option<
2304 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2305 >,
2306 pub stop_button: Option<unsafe extern "C" fn(*mut GDrive)>,
2307 pub eject_with_operation: Option<
2308 unsafe extern "C" fn(
2309 *mut GDrive,
2310 GMountUnmountFlags,
2311 *mut GMountOperation,
2312 *mut GCancellable,
2313 GAsyncReadyCallback,
2314 gpointer,
2315 ),
2316 >,
2317 pub eject_with_operation_finish: Option<
2318 unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
2319 >,
2320 pub get_sort_key: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>,
2321 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>,
2322 pub is_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>,
2323}
2324
2325impl ::std::fmt::Debug for GDriveIface {
2326 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2327 f.debug_struct(&format!("GDriveIface @ {self:p}"))
2328 .field("g_iface", &self.g_iface)
2329 .field("changed", &self.changed)
2330 .field("disconnected", &self.disconnected)
2331 .field("eject_button", &self.eject_button)
2332 .field("get_name", &self.get_name)
2333 .field("get_icon", &self.get_icon)
2334 .field("has_volumes", &self.has_volumes)
2335 .field("get_volumes", &self.get_volumes)
2336 .field("is_media_removable", &self.is_media_removable)
2337 .field("has_media", &self.has_media)
2338 .field("is_media_check_automatic", &self.is_media_check_automatic)
2339 .field("can_eject", &self.can_eject)
2340 .field("can_poll_for_media", &self.can_poll_for_media)
2341 .field("eject", &self.eject)
2342 .field("eject_finish", &self.eject_finish)
2343 .field("poll_for_media", &self.poll_for_media)
2344 .field("poll_for_media_finish", &self.poll_for_media_finish)
2345 .field("get_identifier", &self.get_identifier)
2346 .field("enumerate_identifiers", &self.enumerate_identifiers)
2347 .field("get_start_stop_type", &self.get_start_stop_type)
2348 .field("can_start", &self.can_start)
2349 .field("can_start_degraded", &self.can_start_degraded)
2350 .field("start", &self.start)
2351 .field("start_finish", &self.start_finish)
2352 .field("can_stop", &self.can_stop)
2353 .field("stop", &self.stop)
2354 .field("stop_finish", &self.stop_finish)
2355 .field("stop_button", &self.stop_button)
2356 .field("eject_with_operation", &self.eject_with_operation)
2357 .field(
2358 "eject_with_operation_finish",
2359 &self.eject_with_operation_finish,
2360 )
2361 .field("get_sort_key", &self.get_sort_key)
2362 .field("get_symbolic_icon", &self.get_symbolic_icon)
2363 .field("is_removable", &self.is_removable)
2364 .finish()
2365 }
2366}
2367
2368#[derive(Copy, Clone)]
2369#[repr(C)]
2370pub struct GDtlsClientConnectionInterface {
2371 pub g_iface: gobject::GTypeInterface,
2372}
2373
2374impl ::std::fmt::Debug for GDtlsClientConnectionInterface {
2375 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2376 f.debug_struct(&format!("GDtlsClientConnectionInterface @ {self:p}"))
2377 .field("g_iface", &self.g_iface)
2378 .finish()
2379 }
2380}
2381
2382#[derive(Copy, Clone)]
2383#[repr(C)]
2384pub struct GDtlsConnectionInterface {
2385 pub g_iface: gobject::GTypeInterface,
2386 pub accept_certificate: Option<
2387 unsafe extern "C" fn(
2388 *mut GDtlsConnection,
2389 *mut GTlsCertificate,
2390 GTlsCertificateFlags,
2391 ) -> gboolean,
2392 >,
2393 pub handshake: Option<
2394 unsafe extern "C" fn(
2395 *mut GDtlsConnection,
2396 *mut GCancellable,
2397 *mut *mut glib::GError,
2398 ) -> gboolean,
2399 >,
2400 pub handshake_async: Option<
2401 unsafe extern "C" fn(
2402 *mut GDtlsConnection,
2403 c_int,
2404 *mut GCancellable,
2405 GAsyncReadyCallback,
2406 gpointer,
2407 ),
2408 >,
2409 pub handshake_finish: Option<
2410 unsafe extern "C" fn(
2411 *mut GDtlsConnection,
2412 *mut GAsyncResult,
2413 *mut *mut glib::GError,
2414 ) -> gboolean,
2415 >,
2416 pub shutdown: Option<
2417 unsafe extern "C" fn(
2418 *mut GDtlsConnection,
2419 gboolean,
2420 gboolean,
2421 *mut GCancellable,
2422 *mut *mut glib::GError,
2423 ) -> gboolean,
2424 >,
2425 pub shutdown_async: Option<
2426 unsafe extern "C" fn(
2427 *mut GDtlsConnection,
2428 gboolean,
2429 gboolean,
2430 c_int,
2431 *mut GCancellable,
2432 GAsyncReadyCallback,
2433 gpointer,
2434 ),
2435 >,
2436 pub shutdown_finish: Option<
2437 unsafe extern "C" fn(
2438 *mut GDtlsConnection,
2439 *mut GAsyncResult,
2440 *mut *mut glib::GError,
2441 ) -> gboolean,
2442 >,
2443 pub set_advertised_protocols:
2444 Option<unsafe extern "C" fn(*mut GDtlsConnection, *const *const c_char)>,
2445 pub get_negotiated_protocol:
2446 Option<unsafe extern "C" fn(*mut GDtlsConnection) -> *const c_char>,
2447 pub get_binding_data: Option<
2448 unsafe extern "C" fn(
2449 *mut GDtlsConnection,
2450 GTlsChannelBindingType,
2451 *mut glib::GByteArray,
2452 *mut *mut glib::GError,
2453 ) -> gboolean,
2454 >,
2455}
2456
2457impl ::std::fmt::Debug for GDtlsConnectionInterface {
2458 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2459 f.debug_struct(&format!("GDtlsConnectionInterface @ {self:p}"))
2460 .field("g_iface", &self.g_iface)
2461 .field("accept_certificate", &self.accept_certificate)
2462 .field("handshake", &self.handshake)
2463 .field("handshake_async", &self.handshake_async)
2464 .field("handshake_finish", &self.handshake_finish)
2465 .field("shutdown", &self.shutdown)
2466 .field("shutdown_async", &self.shutdown_async)
2467 .field("shutdown_finish", &self.shutdown_finish)
2468 .field("set_advertised_protocols", &self.set_advertised_protocols)
2469 .field("get_negotiated_protocol", &self.get_negotiated_protocol)
2470 .field("get_binding_data", &self.get_binding_data)
2471 .finish()
2472 }
2473}
2474
2475#[derive(Copy, Clone)]
2476#[repr(C)]
2477pub struct GDtlsServerConnectionInterface {
2478 pub g_iface: gobject::GTypeInterface,
2479}
2480
2481impl ::std::fmt::Debug for GDtlsServerConnectionInterface {
2482 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2483 f.debug_struct(&format!("GDtlsServerConnectionInterface @ {self:p}"))
2484 .field("g_iface", &self.g_iface)
2485 .finish()
2486 }
2487}
2488
2489#[repr(C)]
2490#[allow(dead_code)]
2491pub struct _GEmblemClass {
2492 _data: [u8; 0],
2493 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2494}
2495
2496pub type GEmblemClass = _GEmblemClass;
2497
2498#[derive(Copy, Clone)]
2499#[repr(C)]
2500pub struct GEmblemedIconClass {
2501 pub parent_class: gobject::GObjectClass,
2502}
2503
2504impl ::std::fmt::Debug for GEmblemedIconClass {
2505 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2506 f.debug_struct(&format!("GEmblemedIconClass @ {self:p}"))
2507 .field("parent_class", &self.parent_class)
2508 .finish()
2509 }
2510}
2511
2512#[repr(C)]
2513#[allow(dead_code)]
2514pub struct _GEmblemedIconPrivate {
2515 _data: [u8; 0],
2516 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2517}
2518
2519pub type GEmblemedIconPrivate = _GEmblemedIconPrivate;
2520
2521#[derive(Copy, Clone)]
2522#[repr(C)]
2523pub struct GFileAttributeInfo {
2524 pub name: *mut c_char,
2525 pub type_: GFileAttributeType,
2526 pub flags: GFileAttributeInfoFlags,
2527}
2528
2529impl ::std::fmt::Debug for GFileAttributeInfo {
2530 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2531 f.debug_struct(&format!("GFileAttributeInfo @ {self:p}"))
2532 .field("name", &self.name)
2533 .field("type_", &self.type_)
2534 .field("flags", &self.flags)
2535 .finish()
2536 }
2537}
2538
2539#[derive(Copy, Clone)]
2540#[repr(C)]
2541pub struct GFileAttributeInfoList {
2542 pub infos: *mut GFileAttributeInfo,
2543 pub n_infos: c_int,
2544}
2545
2546impl ::std::fmt::Debug for GFileAttributeInfoList {
2547 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2548 f.debug_struct(&format!("GFileAttributeInfoList @ {self:p}"))
2549 .field("infos", &self.infos)
2550 .field("n_infos", &self.n_infos)
2551 .finish()
2552 }
2553}
2554
2555#[repr(C)]
2556#[allow(dead_code)]
2557pub struct GFileAttributeMatcher {
2558 _data: [u8; 0],
2559 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2560}
2561
2562impl ::std::fmt::Debug for GFileAttributeMatcher {
2563 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2564 f.debug_struct(&format!("GFileAttributeMatcher @ {self:p}"))
2565 .finish()
2566 }
2567}
2568
2569#[derive(Copy, Clone)]
2570#[repr(C)]
2571pub struct GFileEnumeratorClass {
2572 pub parent_class: gobject::GObjectClass,
2573 pub next_file: Option<
2574 unsafe extern "C" fn(
2575 *mut GFileEnumerator,
2576 *mut GCancellable,
2577 *mut *mut glib::GError,
2578 ) -> *mut GFileInfo,
2579 >,
2580 pub close_fn: Option<
2581 unsafe extern "C" fn(
2582 *mut GFileEnumerator,
2583 *mut GCancellable,
2584 *mut *mut glib::GError,
2585 ) -> gboolean,
2586 >,
2587 pub next_files_async: Option<
2588 unsafe extern "C" fn(
2589 *mut GFileEnumerator,
2590 c_int,
2591 c_int,
2592 *mut GCancellable,
2593 GAsyncReadyCallback,
2594 gpointer,
2595 ),
2596 >,
2597 pub next_files_finish: Option<
2598 unsafe extern "C" fn(
2599 *mut GFileEnumerator,
2600 *mut GAsyncResult,
2601 *mut *mut glib::GError,
2602 ) -> *mut glib::GList,
2603 >,
2604 pub close_async: Option<
2605 unsafe extern "C" fn(
2606 *mut GFileEnumerator,
2607 c_int,
2608 *mut GCancellable,
2609 GAsyncReadyCallback,
2610 gpointer,
2611 ),
2612 >,
2613 pub close_finish: Option<
2614 unsafe extern "C" fn(
2615 *mut GFileEnumerator,
2616 *mut GAsyncResult,
2617 *mut *mut glib::GError,
2618 ) -> gboolean,
2619 >,
2620 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2621 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2622 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2623 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2624 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2625 pub _g_reserved6: Option<unsafe extern "C" fn()>,
2626 pub _g_reserved7: Option<unsafe extern "C" fn()>,
2627}
2628
2629impl ::std::fmt::Debug for GFileEnumeratorClass {
2630 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2631 f.debug_struct(&format!("GFileEnumeratorClass @ {self:p}"))
2632 .field("parent_class", &self.parent_class)
2633 .field("next_file", &self.next_file)
2634 .field("close_fn", &self.close_fn)
2635 .field("next_files_async", &self.next_files_async)
2636 .field("next_files_finish", &self.next_files_finish)
2637 .field("close_async", &self.close_async)
2638 .field("close_finish", &self.close_finish)
2639 .field("_g_reserved1", &self._g_reserved1)
2640 .field("_g_reserved2", &self._g_reserved2)
2641 .field("_g_reserved3", &self._g_reserved3)
2642 .field("_g_reserved4", &self._g_reserved4)
2643 .field("_g_reserved5", &self._g_reserved5)
2644 .field("_g_reserved6", &self._g_reserved6)
2645 .field("_g_reserved7", &self._g_reserved7)
2646 .finish()
2647 }
2648}
2649
2650#[repr(C)]
2651#[allow(dead_code)]
2652pub struct _GFileEnumeratorPrivate {
2653 _data: [u8; 0],
2654 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2655}
2656
2657pub type GFileEnumeratorPrivate = _GFileEnumeratorPrivate;
2658
2659#[derive(Copy, Clone)]
2660#[repr(C)]
2661pub struct GFileIOStreamClass {
2662 pub parent_class: GIOStreamClass,
2663 pub tell: Option<unsafe extern "C" fn(*mut GFileIOStream) -> i64>,
2664 pub can_seek: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2665 pub seek: Option<
2666 unsafe extern "C" fn(
2667 *mut GFileIOStream,
2668 i64,
2669 glib::GSeekType,
2670 *mut GCancellable,
2671 *mut *mut glib::GError,
2672 ) -> gboolean,
2673 >,
2674 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>,
2675 pub truncate_fn: Option<
2676 unsafe extern "C" fn(
2677 *mut GFileIOStream,
2678 i64,
2679 *mut GCancellable,
2680 *mut *mut glib::GError,
2681 ) -> gboolean,
2682 >,
2683 pub query_info: Option<
2684 unsafe extern "C" fn(
2685 *mut GFileIOStream,
2686 *const c_char,
2687 *mut GCancellable,
2688 *mut *mut glib::GError,
2689 ) -> *mut GFileInfo,
2690 >,
2691 pub query_info_async: Option<
2692 unsafe extern "C" fn(
2693 *mut GFileIOStream,
2694 *const c_char,
2695 c_int,
2696 *mut GCancellable,
2697 GAsyncReadyCallback,
2698 gpointer,
2699 ),
2700 >,
2701 pub query_info_finish: Option<
2702 unsafe extern "C" fn(
2703 *mut GFileIOStream,
2704 *mut GAsyncResult,
2705 *mut *mut glib::GError,
2706 ) -> *mut GFileInfo,
2707 >,
2708 pub get_etag: Option<unsafe extern "C" fn(*mut GFileIOStream) -> *mut c_char>,
2709 pub _g_reserved1: Option<unsafe extern "C" fn()>,
2710 pub _g_reserved2: Option<unsafe extern "C" fn()>,
2711 pub _g_reserved3: Option<unsafe extern "C" fn()>,
2712 pub _g_reserved4: Option<unsafe extern "C" fn()>,
2713 pub _g_reserved5: Option<unsafe extern "C" fn()>,
2714}
2715
2716impl ::std::fmt::Debug for GFileIOStreamClass {
2717 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2718 f.debug_struct(&format!("GFileIOStreamClass @ {self:p}"))
2719 .field("parent_class", &self.parent_class)
2720 .field("tell", &self.tell)
2721 .field("can_seek", &self.can_seek)
2722 .field("seek", &self.seek)
2723 .field("can_truncate", &self.can_truncate)
2724 .field("truncate_fn", &self.truncate_fn)
2725 .field("query_info", &self.query_info)
2726 .field("query_info_async", &self.query_info_async)
2727 .field("query_info_finish", &self.query_info_finish)
2728 .field("get_etag", &self.get_etag)
2729 .field("_g_reserved1", &self._g_reserved1)
2730 .field("_g_reserved2", &self._g_reserved2)
2731 .field("_g_reserved3", &self._g_reserved3)
2732 .field("_g_reserved4", &self._g_reserved4)
2733 .field("_g_reserved5", &self._g_reserved5)
2734 .finish()
2735 }
2736}
2737
2738#[repr(C)]
2739#[allow(dead_code)]
2740pub struct _GFileIOStreamPrivate {
2741 _data: [u8; 0],
2742 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2743}
2744
2745pub type GFileIOStreamPrivate = _GFileIOStreamPrivate;
2746
2747#[repr(C)]
2748#[allow(dead_code)]
2749pub struct _GFileIconClass {
2750 _data: [u8; 0],
2751 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2752}
2753
2754pub type GFileIconClass = _GFileIconClass;
2755
2756#[derive(Copy, Clone)]
2757#[repr(C)]
2758pub struct GFileIface {
2759 pub g_iface: gobject::GTypeInterface,
2760 pub dup: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2761 pub hash: Option<unsafe extern "C" fn(*mut GFile) -> c_uint>,
2762 pub equal: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2763 pub is_native: Option<unsafe extern "C" fn(*mut GFile) -> gboolean>,
2764 pub has_uri_scheme: Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> gboolean>,
2765 pub get_uri_scheme: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2766 pub get_basename: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2767 pub get_path: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2768 pub get_uri: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2769 pub get_parse_name: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>,
2770 pub get_parent: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>,
2771 pub prefix_matches: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>,
2772 pub get_relative_path: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> *mut c_char>,
2773 pub resolve_relative_path:
2774 Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> *mut GFile>,
2775 pub get_child_for_display_name: Option<
2776 unsafe extern "C" fn(*mut GFile, *const c_char, *mut *mut glib::GError) -> *mut GFile,
2777 >,
2778 pub enumerate_children: Option<
2779 unsafe extern "C" fn(
2780 *mut GFile,
2781 *const c_char,
2782 GFileQueryInfoFlags,
2783 *mut GCancellable,
2784 *mut *mut glib::GError,
2785 ) -> *mut GFileEnumerator,
2786 >,
2787 pub enumerate_children_async: Option<
2788 unsafe extern "C" fn(
2789 *mut GFile,
2790 *const c_char,
2791 GFileQueryInfoFlags,
2792 c_int,
2793 *mut GCancellable,
2794 GAsyncReadyCallback,
2795 gpointer,
2796 ),
2797 >,
2798 pub enumerate_children_finish: Option<
2799 unsafe extern "C" fn(
2800 *mut GFile,
2801 *mut GAsyncResult,
2802 *mut *mut glib::GError,
2803 ) -> *mut GFileEnumerator,
2804 >,
2805 pub query_info: Option<
2806 unsafe extern "C" fn(
2807 *mut GFile,
2808 *const c_char,
2809 GFileQueryInfoFlags,
2810 *mut GCancellable,
2811 *mut *mut glib::GError,
2812 ) -> *mut GFileInfo,
2813 >,
2814 pub query_info_async: Option<
2815 unsafe extern "C" fn(
2816 *mut GFile,
2817 *const c_char,
2818 GFileQueryInfoFlags,
2819 c_int,
2820 *mut GCancellable,
2821 GAsyncReadyCallback,
2822 gpointer,
2823 ),
2824 >,
2825 pub query_info_finish: Option<
2826 unsafe extern "C" fn(
2827 *mut GFile,
2828 *mut GAsyncResult,
2829 *mut *mut glib::GError,
2830 ) -> *mut GFileInfo,
2831 >,
2832 pub query_filesystem_info: Option<
2833 unsafe extern "C" fn(
2834 *mut GFile,
2835 *const c_char,
2836 *mut GCancellable,
2837 *mut *mut glib::GError,
2838 ) -> *mut GFileInfo,
2839 >,
2840 pub query_filesystem_info_async: Option<
2841 unsafe extern "C" fn(
2842 *mut GFile,
2843 *const c_char,
2844 c_int,
2845 *mut GCancellable,
2846 GAsyncReadyCallback,
2847 gpointer,
2848 ),
2849 >,
2850 pub query_filesystem_info_finish: Option<
2851 unsafe extern "C" fn(
2852 *mut GFile,
2853 *mut GAsyncResult,
2854 *mut *mut glib::GError,
2855 ) -> *mut GFileInfo,
2856 >,
2857 pub find_enclosing_mount: Option<
2858 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> *mut GMount,
2859 >,
2860 pub find_enclosing_mount_async: Option<
2861 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2862 >,
2863 pub find_enclosing_mount_finish: Option<
2864 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GMount,
2865 >,
2866 pub set_display_name: Option<
2867 unsafe extern "C" fn(
2868 *mut GFile,
2869 *const c_char,
2870 *mut GCancellable,
2871 *mut *mut glib::GError,
2872 ) -> *mut GFile,
2873 >,
2874 pub set_display_name_async: Option<
2875 unsafe extern "C" fn(
2876 *mut GFile,
2877 *const c_char,
2878 c_int,
2879 *mut GCancellable,
2880 GAsyncReadyCallback,
2881 gpointer,
2882 ),
2883 >,
2884 pub set_display_name_finish: Option<
2885 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
2886 >,
2887 pub query_settable_attributes: Option<
2888 unsafe extern "C" fn(
2889 *mut GFile,
2890 *mut GCancellable,
2891 *mut *mut glib::GError,
2892 ) -> *mut GFileAttributeInfoList,
2893 >,
2894 pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>,
2895 pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>,
2896 pub query_writable_namespaces: Option<
2897 unsafe extern "C" fn(
2898 *mut GFile,
2899 *mut GCancellable,
2900 *mut *mut glib::GError,
2901 ) -> *mut GFileAttributeInfoList,
2902 >,
2903 pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>,
2904 pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>,
2905 pub set_attribute: Option<
2906 unsafe extern "C" fn(
2907 *mut GFile,
2908 *const c_char,
2909 GFileAttributeType,
2910 gpointer,
2911 GFileQueryInfoFlags,
2912 *mut GCancellable,
2913 *mut *mut glib::GError,
2914 ) -> gboolean,
2915 >,
2916 pub set_attributes_from_info: Option<
2917 unsafe extern "C" fn(
2918 *mut GFile,
2919 *mut GFileInfo,
2920 GFileQueryInfoFlags,
2921 *mut GCancellable,
2922 *mut *mut glib::GError,
2923 ) -> gboolean,
2924 >,
2925 pub set_attributes_async: Option<
2926 unsafe extern "C" fn(
2927 *mut GFile,
2928 *mut GFileInfo,
2929 GFileQueryInfoFlags,
2930 c_int,
2931 *mut GCancellable,
2932 GAsyncReadyCallback,
2933 gpointer,
2934 ),
2935 >,
2936 pub set_attributes_finish: Option<
2937 unsafe extern "C" fn(
2938 *mut GFile,
2939 *mut GAsyncResult,
2940 *mut *mut GFileInfo,
2941 *mut *mut glib::GError,
2942 ) -> gboolean,
2943 >,
2944 pub read_fn: Option<
2945 unsafe extern "C" fn(
2946 *mut GFile,
2947 *mut GCancellable,
2948 *mut *mut glib::GError,
2949 ) -> *mut GFileInputStream,
2950 >,
2951 pub read_async: Option<
2952 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
2953 >,
2954 pub read_finish: Option<
2955 unsafe extern "C" fn(
2956 *mut GFile,
2957 *mut GAsyncResult,
2958 *mut *mut glib::GError,
2959 ) -> *mut GFileInputStream,
2960 >,
2961 pub append_to: Option<
2962 unsafe extern "C" fn(
2963 *mut GFile,
2964 GFileCreateFlags,
2965 *mut GCancellable,
2966 *mut *mut glib::GError,
2967 ) -> *mut GFileOutputStream,
2968 >,
2969 pub append_to_async: Option<
2970 unsafe extern "C" fn(
2971 *mut GFile,
2972 GFileCreateFlags,
2973 c_int,
2974 *mut GCancellable,
2975 GAsyncReadyCallback,
2976 gpointer,
2977 ),
2978 >,
2979 pub append_to_finish: Option<
2980 unsafe extern "C" fn(
2981 *mut GFile,
2982 *mut GAsyncResult,
2983 *mut *mut glib::GError,
2984 ) -> *mut GFileOutputStream,
2985 >,
2986 pub create: Option<
2987 unsafe extern "C" fn(
2988 *mut GFile,
2989 GFileCreateFlags,
2990 *mut GCancellable,
2991 *mut *mut glib::GError,
2992 ) -> *mut GFileOutputStream,
2993 >,
2994 pub create_async: Option<
2995 unsafe extern "C" fn(
2996 *mut GFile,
2997 GFileCreateFlags,
2998 c_int,
2999 *mut GCancellable,
3000 GAsyncReadyCallback,
3001 gpointer,
3002 ),
3003 >,
3004 pub create_finish: Option<
3005 unsafe extern "C" fn(
3006 *mut GFile,
3007 *mut GAsyncResult,
3008 *mut *mut glib::GError,
3009 ) -> *mut GFileOutputStream,
3010 >,
3011 pub replace: Option<
3012 unsafe extern "C" fn(
3013 *mut GFile,
3014 *const c_char,
3015 gboolean,
3016 GFileCreateFlags,
3017 *mut GCancellable,
3018 *mut *mut glib::GError,
3019 ) -> *mut GFileOutputStream,
3020 >,
3021 pub replace_async: Option<
3022 unsafe extern "C" fn(
3023 *mut GFile,
3024 *const c_char,
3025 gboolean,
3026 GFileCreateFlags,
3027 c_int,
3028 *mut GCancellable,
3029 GAsyncReadyCallback,
3030 gpointer,
3031 ),
3032 >,
3033 pub replace_finish: Option<
3034 unsafe extern "C" fn(
3035 *mut GFile,
3036 *mut GAsyncResult,
3037 *mut *mut glib::GError,
3038 ) -> *mut GFileOutputStream,
3039 >,
3040 pub delete_file: Option<
3041 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3042 >,
3043 pub delete_file_async: Option<
3044 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3045 >,
3046 pub delete_file_finish: Option<
3047 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3048 >,
3049 pub trash: Option<
3050 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3051 >,
3052 pub trash_async: Option<
3053 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3054 >,
3055 pub trash_finish: Option<
3056 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3057 >,
3058 pub make_directory: Option<
3059 unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3060 >,
3061 pub make_directory_async: Option<
3062 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3063 >,
3064 pub make_directory_finish: Option<
3065 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3066 >,
3067 pub make_symbolic_link: Option<
3068 unsafe extern "C" fn(
3069 *mut GFile,
3070 *const c_char,
3071 *mut GCancellable,
3072 *mut *mut glib::GError,
3073 ) -> gboolean,
3074 >,
3075 pub make_symbolic_link_async: Option<
3076 unsafe extern "C" fn(
3077 *mut GFile,
3078 *const c_char,
3079 c_int,
3080 *mut GCancellable,
3081 GAsyncReadyCallback,
3082 gpointer,
3083 ),
3084 >,
3085 pub make_symbolic_link_finish: Option<
3086 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3087 >,
3088 pub copy: Option<
3089 unsafe extern "C" fn(
3090 *mut GFile,
3091 *mut GFile,
3092 GFileCopyFlags,
3093 *mut GCancellable,
3094 GFileProgressCallback,
3095 gpointer,
3096 *mut *mut glib::GError,
3097 ) -> gboolean,
3098 >,
3099 pub copy_async: Option<
3100 unsafe extern "C" fn(
3101 *mut GFile,
3102 *mut GFile,
3103 GFileCopyFlags,
3104 c_int,
3105 *mut GCancellable,
3106 GFileProgressCallback,
3107 gpointer,
3108 GAsyncReadyCallback,
3109 gpointer,
3110 ),
3111 >,
3112 pub copy_finish: Option<
3113 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3114 >,
3115 pub move_: Option<
3116 unsafe extern "C" fn(
3117 *mut GFile,
3118 *mut GFile,
3119 GFileCopyFlags,
3120 *mut GCancellable,
3121 GFileProgressCallback,
3122 gpointer,
3123 *mut *mut glib::GError,
3124 ) -> gboolean,
3125 >,
3126 pub move_async: Option<
3127 unsafe extern "C" fn(
3128 *mut GFile,
3129 *mut GFile,
3130 GFileCopyFlags,
3131 c_int,
3132 *mut GCancellable,
3133 GFileProgressCallback,
3134 gpointer,
3135 GAsyncReadyCallback,
3136 gpointer,
3137 ),
3138 >,
3139 pub move_finish: Option<
3140 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3141 >,
3142 pub mount_mountable: Option<
3143 unsafe extern "C" fn(
3144 *mut GFile,
3145 GMountMountFlags,
3146 *mut GMountOperation,
3147 *mut GCancellable,
3148 GAsyncReadyCallback,
3149 gpointer,
3150 ),
3151 >,
3152 pub mount_mountable_finish: Option<
3153 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile,
3154 >,
3155 pub unmount_mountable: Option<
3156 unsafe extern "C" fn(
3157 *mut GFile,
3158 GMountUnmountFlags,
3159 *mut GCancellable,
3160 GAsyncReadyCallback,
3161 gpointer,
3162 ),
3163 >,
3164 pub unmount_mountable_finish: Option<
3165 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3166 >,
3167 pub eject_mountable: Option<
3168 unsafe extern "C" fn(
3169 *mut GFile,
3170 GMountUnmountFlags,
3171 *mut GCancellable,
3172 GAsyncReadyCallback,
3173 gpointer,
3174 ),
3175 >,
3176 pub eject_mountable_finish: Option<
3177 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3178 >,
3179 pub mount_enclosing_volume: 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_enclosing_volume_finish: Option<
3190 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3191 >,
3192 pub monitor_dir: Option<
3193 unsafe extern "C" fn(
3194 *mut GFile,
3195 GFileMonitorFlags,
3196 *mut GCancellable,
3197 *mut *mut glib::GError,
3198 ) -> *mut GFileMonitor,
3199 >,
3200 pub monitor_file: Option<
3201 unsafe extern "C" fn(
3202 *mut GFile,
3203 GFileMonitorFlags,
3204 *mut GCancellable,
3205 *mut *mut glib::GError,
3206 ) -> *mut GFileMonitor,
3207 >,
3208 pub open_readwrite: Option<
3209 unsafe extern "C" fn(
3210 *mut GFile,
3211 *mut GCancellable,
3212 *mut *mut glib::GError,
3213 ) -> *mut GFileIOStream,
3214 >,
3215 pub open_readwrite_async: Option<
3216 unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer),
3217 >,
3218 pub open_readwrite_finish: Option<
3219 unsafe extern "C" fn(
3220 *mut GFile,
3221 *mut GAsyncResult,
3222 *mut *mut glib::GError,
3223 ) -> *mut GFileIOStream,
3224 >,
3225 pub create_readwrite: Option<
3226 unsafe extern "C" fn(
3227 *mut GFile,
3228 GFileCreateFlags,
3229 *mut GCancellable,
3230 *mut *mut glib::GError,
3231 ) -> *mut GFileIOStream,
3232 >,
3233 pub create_readwrite_async: Option<
3234 unsafe extern "C" fn(
3235 *mut GFile,
3236 GFileCreateFlags,
3237 c_int,
3238 *mut GCancellable,
3239 GAsyncReadyCallback,
3240 gpointer,
3241 ),
3242 >,
3243 pub create_readwrite_finish: Option<
3244 unsafe extern "C" fn(
3245 *mut GFile,
3246 *mut GAsyncResult,
3247 *mut *mut glib::GError,
3248 ) -> *mut GFileIOStream,
3249 >,
3250 pub replace_readwrite: Option<
3251 unsafe extern "C" fn(
3252 *mut GFile,
3253 *const c_char,
3254 gboolean,
3255 GFileCreateFlags,
3256 *mut GCancellable,
3257 *mut *mut glib::GError,
3258 ) -> *mut GFileIOStream,
3259 >,
3260 pub replace_readwrite_async: Option<
3261 unsafe extern "C" fn(
3262 *mut GFile,
3263 *const c_char,
3264 gboolean,
3265 GFileCreateFlags,
3266 c_int,
3267 *mut GCancellable,
3268 GAsyncReadyCallback,
3269 gpointer,
3270 ),
3271 >,
3272 pub replace_readwrite_finish: Option<
3273 unsafe extern "C" fn(
3274 *mut GFile,
3275 *mut GAsyncResult,
3276 *mut *mut glib::GError,
3277 ) -> *mut GFileIOStream,
3278 >,
3279 pub start_mountable: Option<
3280 unsafe extern "C" fn(
3281 *mut GFile,
3282 GDriveStartFlags,
3283 *mut GMountOperation,
3284 *mut GCancellable,
3285 GAsyncReadyCallback,
3286 gpointer,
3287 ),
3288 >,
3289 pub start_mountable_finish: Option<
3290 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3291 >,
3292 pub stop_mountable: Option<
3293 unsafe extern "C" fn(
3294 *mut GFile,
3295 GMountUnmountFlags,
3296 *mut GMountOperation,
3297 *mut GCancellable,
3298 GAsyncReadyCallback,
3299 gpointer,
3300 ),
3301 >,
3302 pub stop_mountable_finish: Option<
3303 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3304 >,
3305 pub supports_thread_contexts: gboolean,
3306 pub unmount_mountable_with_operation: Option<
3307 unsafe extern "C" fn(
3308 *mut GFile,
3309 GMountUnmountFlags,
3310 *mut GMountOperation,
3311 *mut GCancellable,
3312 GAsyncReadyCallback,
3313 gpointer,
3314 ),
3315 >,
3316 pub unmount_mountable_with_operation_finish: Option<
3317 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3318 >,
3319 pub eject_mountable_with_operation: Option<
3320 unsafe extern "C" fn(
3321 *mut GFile,
3322 GMountUnmountFlags,
3323 *mut GMountOperation,
3324 *mut GCancellable,
3325 GAsyncReadyCallback,
3326 gpointer,
3327 ),
3328 >,
3329 pub eject_mountable_with_operation_finish: Option<
3330 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3331 >,
3332 pub poll_mountable:
3333 Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable, GAsyncReadyCallback, gpointer)>,
3334 pub poll_mountable_finish: Option<
3335 unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3336 >,
3337 pub measure_disk_usage: Option<
3338 unsafe extern "C" fn(
3339 *mut GFile,
3340 GFileMeasureFlags,
3341 *mut GCancellable,
3342 GFileMeasureProgressCallback,
3343 gpointer,
3344 *mut u64,
3345 *mut u64,
3346 *mut u64,
3347 *mut *mut glib::GError,
3348 ) -> gboolean,
3349 >,
3350 pub measure_disk_usage_async: Option<
3351 unsafe extern "C" fn(
3352 *mut GFile,
3353 GFileMeasureFlags,
3354 c_int,
3355 *mut GCancellable,
3356 GFileMeasureProgressCallback,
3357 gpointer,
3358 GAsyncReadyCallback,
3359 gpointer,
3360 ),
3361 >,
3362 pub measure_disk_usage_finish: Option<
3363 unsafe extern "C" fn(
3364 *mut GFile,
3365 *mut GAsyncResult,
3366 *mut u64,
3367 *mut u64,
3368 *mut u64,
3369 *mut *mut glib::GError,
3370 ) -> gboolean,
3371 >,
3372 pub query_exists: Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable) -> gboolean>,
3373}
3374
3375impl ::std::fmt::Debug for GFileIface {
3376 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3377 f.debug_struct(&format!("GFileIface @ {self:p}"))
3378 .field("g_iface", &self.g_iface)
3379 .field("dup", &self.dup)
3380 .field("hash", &self.hash)
3381 .field("equal", &self.equal)
3382 .field("is_native", &self.is_native)
3383 .field("has_uri_scheme", &self.has_uri_scheme)
3384 .field("get_uri_scheme", &self.get_uri_scheme)
3385 .field("get_basename", &self.get_basename)
3386 .field("get_path", &self.get_path)
3387 .field("get_uri", &self.get_uri)
3388 .field("get_parse_name", &self.get_parse_name)
3389 .field("get_parent", &self.get_parent)
3390 .field("prefix_matches", &self.prefix_matches)
3391 .field("get_relative_path", &self.get_relative_path)
3392 .field("resolve_relative_path", &self.resolve_relative_path)
3393 .field(
3394 "get_child_for_display_name",
3395 &self.get_child_for_display_name,
3396 )
3397 .field("enumerate_children", &self.enumerate_children)
3398 .field("enumerate_children_async", &self.enumerate_children_async)
3399 .field("enumerate_children_finish", &self.enumerate_children_finish)
3400 .field("query_info", &self.query_info)
3401 .field("query_info_async", &self.query_info_async)
3402 .field("query_info_finish", &self.query_info_finish)
3403 .field("query_filesystem_info", &self.query_filesystem_info)
3404 .field(
3405 "query_filesystem_info_async",
3406 &self.query_filesystem_info_async,
3407 )
3408 .field(
3409 "query_filesystem_info_finish",
3410 &self.query_filesystem_info_finish,
3411 )
3412 .field("find_enclosing_mount", &self.find_enclosing_mount)
3413 .field(
3414 "find_enclosing_mount_async",
3415 &self.find_enclosing_mount_async,
3416 )
3417 .field(
3418 "find_enclosing_mount_finish",
3419 &self.find_enclosing_mount_finish,
3420 )
3421 .field("set_display_name", &self.set_display_name)
3422 .field("set_display_name_async", &self.set_display_name_async)
3423 .field("set_display_name_finish", &self.set_display_name_finish)
3424 .field("query_settable_attributes", &self.query_settable_attributes)
3425 .field(
3426 "_query_settable_attributes_async",
3427 &self._query_settable_attributes_async,
3428 )
3429 .field(
3430 "_query_settable_attributes_finish",
3431 &self._query_settable_attributes_finish,
3432 )
3433 .field("query_writable_namespaces", &self.query_writable_namespaces)
3434 .field(
3435 "_query_writable_namespaces_async",
3436 &self._query_writable_namespaces_async,
3437 )
3438 .field(
3439 "_query_writable_namespaces_finish",
3440 &self._query_writable_namespaces_finish,
3441 )
3442 .field("set_attribute", &self.set_attribute)
3443 .field("set_attributes_from_info", &self.set_attributes_from_info)
3444 .field("set_attributes_async", &self.set_attributes_async)
3445 .field("set_attributes_finish", &self.set_attributes_finish)
3446 .field("read_fn", &self.read_fn)
3447 .field("read_async", &self.read_async)
3448 .field("read_finish", &self.read_finish)
3449 .field("append_to", &self.append_to)
3450 .field("append_to_async", &self.append_to_async)
3451 .field("append_to_finish", &self.append_to_finish)
3452 .field("create", &self.create)
3453 .field("create_async", &self.create_async)
3454 .field("create_finish", &self.create_finish)
3455 .field("replace", &self.replace)
3456 .field("replace_async", &self.replace_async)
3457 .field("replace_finish", &self.replace_finish)
3458 .field("delete_file", &self.delete_file)
3459 .field("delete_file_async", &self.delete_file_async)
3460 .field("delete_file_finish", &self.delete_file_finish)
3461 .field("trash", &self.trash)
3462 .field("trash_async", &self.trash_async)
3463 .field("trash_finish", &self.trash_finish)
3464 .field("make_directory", &self.make_directory)
3465 .field("make_directory_async", &self.make_directory_async)
3466 .field("make_directory_finish", &self.make_directory_finish)
3467 .field("make_symbolic_link", &self.make_symbolic_link)
3468 .field("make_symbolic_link_async", &self.make_symbolic_link_async)
3469 .field("make_symbolic_link_finish", &self.make_symbolic_link_finish)
3470 .field("copy", &self.copy)
3471 .field("copy_async", &self.copy_async)
3472 .field("copy_finish", &self.copy_finish)
3473 .field("move_", &self.move_)
3474 .field("move_async", &self.move_async)
3475 .field("move_finish", &self.move_finish)
3476 .field("mount_mountable", &self.mount_mountable)
3477 .field("mount_mountable_finish", &self.mount_mountable_finish)
3478 .field("unmount_mountable", &self.unmount_mountable)
3479 .field("unmount_mountable_finish", &self.unmount_mountable_finish)
3480 .field("eject_mountable", &self.eject_mountable)
3481 .field("eject_mountable_finish", &self.eject_mountable_finish)
3482 .field("mount_enclosing_volume", &self.mount_enclosing_volume)
3483 .field(
3484 "mount_enclosing_volume_finish",
3485 &self.mount_enclosing_volume_finish,
3486 )
3487 .field("monitor_dir", &self.monitor_dir)
3488 .field("monitor_file", &self.monitor_file)
3489 .field("open_readwrite", &self.open_readwrite)
3490 .field("open_readwrite_async", &self.open_readwrite_async)
3491 .field("open_readwrite_finish", &self.open_readwrite_finish)
3492 .field("create_readwrite", &self.create_readwrite)
3493 .field("create_readwrite_async", &self.create_readwrite_async)
3494 .field("create_readwrite_finish", &self.create_readwrite_finish)
3495 .field("replace_readwrite", &self.replace_readwrite)
3496 .field("replace_readwrite_async", &self.replace_readwrite_async)
3497 .field("replace_readwrite_finish", &self.replace_readwrite_finish)
3498 .field("start_mountable", &self.start_mountable)
3499 .field("start_mountable_finish", &self.start_mountable_finish)
3500 .field("stop_mountable", &self.stop_mountable)
3501 .field("stop_mountable_finish", &self.stop_mountable_finish)
3502 .field("supports_thread_contexts", &self.supports_thread_contexts)
3503 .field(
3504 "unmount_mountable_with_operation",
3505 &self.unmount_mountable_with_operation,
3506 )
3507 .field(
3508 "unmount_mountable_with_operation_finish",
3509 &self.unmount_mountable_with_operation_finish,
3510 )
3511 .field(
3512 "eject_mountable_with_operation",
3513 &self.eject_mountable_with_operation,
3514 )
3515 .field(
3516 "eject_mountable_with_operation_finish",
3517 &self.eject_mountable_with_operation_finish,
3518 )
3519 .field("poll_mountable", &self.poll_mountable)
3520 .field("poll_mountable_finish", &self.poll_mountable_finish)
3521 .field("measure_disk_usage", &self.measure_disk_usage)
3522 .field("measure_disk_usage_async", &self.measure_disk_usage_async)
3523 .field("measure_disk_usage_finish", &self.measure_disk_usage_finish)
3524 .field("query_exists", &self.query_exists)
3525 .finish()
3526 }
3527}
3528
3529#[repr(C)]
3530#[allow(dead_code)]
3531pub struct _GFileInfoClass {
3532 _data: [u8; 0],
3533 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3534}
3535
3536pub type GFileInfoClass = _GFileInfoClass;
3537
3538#[derive(Copy, Clone)]
3539#[repr(C)]
3540pub struct GFileInputStreamClass {
3541 pub parent_class: GInputStreamClass,
3542 pub tell: Option<unsafe extern "C" fn(*mut GFileInputStream) -> i64>,
3543 pub can_seek: Option<unsafe extern "C" fn(*mut GFileInputStream) -> gboolean>,
3544 pub seek: Option<
3545 unsafe extern "C" fn(
3546 *mut GFileInputStream,
3547 i64,
3548 glib::GSeekType,
3549 *mut GCancellable,
3550 *mut *mut glib::GError,
3551 ) -> gboolean,
3552 >,
3553 pub query_info: Option<
3554 unsafe extern "C" fn(
3555 *mut GFileInputStream,
3556 *const c_char,
3557 *mut GCancellable,
3558 *mut *mut glib::GError,
3559 ) -> *mut GFileInfo,
3560 >,
3561 pub query_info_async: Option<
3562 unsafe extern "C" fn(
3563 *mut GFileInputStream,
3564 *const c_char,
3565 c_int,
3566 *mut GCancellable,
3567 GAsyncReadyCallback,
3568 gpointer,
3569 ),
3570 >,
3571 pub query_info_finish: Option<
3572 unsafe extern "C" fn(
3573 *mut GFileInputStream,
3574 *mut GAsyncResult,
3575 *mut *mut glib::GError,
3576 ) -> *mut GFileInfo,
3577 >,
3578 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3579 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3580 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3581 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3582 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3583}
3584
3585impl ::std::fmt::Debug for GFileInputStreamClass {
3586 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3587 f.debug_struct(&format!("GFileInputStreamClass @ {self:p}"))
3588 .field("parent_class", &self.parent_class)
3589 .field("tell", &self.tell)
3590 .field("can_seek", &self.can_seek)
3591 .field("seek", &self.seek)
3592 .field("query_info", &self.query_info)
3593 .field("query_info_async", &self.query_info_async)
3594 .field("query_info_finish", &self.query_info_finish)
3595 .field("_g_reserved1", &self._g_reserved1)
3596 .field("_g_reserved2", &self._g_reserved2)
3597 .field("_g_reserved3", &self._g_reserved3)
3598 .field("_g_reserved4", &self._g_reserved4)
3599 .field("_g_reserved5", &self._g_reserved5)
3600 .finish()
3601 }
3602}
3603
3604#[repr(C)]
3605#[allow(dead_code)]
3606pub struct _GFileInputStreamPrivate {
3607 _data: [u8; 0],
3608 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3609}
3610
3611pub type GFileInputStreamPrivate = _GFileInputStreamPrivate;
3612
3613#[derive(Copy, Clone)]
3614#[repr(C)]
3615pub struct GFileMonitorClass {
3616 pub parent_class: gobject::GObjectClass,
3617 pub changed:
3618 Option<unsafe extern "C" fn(*mut GFileMonitor, *mut GFile, *mut GFile, GFileMonitorEvent)>,
3619 pub cancel: Option<unsafe extern "C" fn(*mut GFileMonitor) -> gboolean>,
3620 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3621 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3622 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3623 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3624 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3625}
3626
3627impl ::std::fmt::Debug for GFileMonitorClass {
3628 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3629 f.debug_struct(&format!("GFileMonitorClass @ {self:p}"))
3630 .field("parent_class", &self.parent_class)
3631 .field("changed", &self.changed)
3632 .field("cancel", &self.cancel)
3633 .field("_g_reserved1", &self._g_reserved1)
3634 .field("_g_reserved2", &self._g_reserved2)
3635 .field("_g_reserved3", &self._g_reserved3)
3636 .field("_g_reserved4", &self._g_reserved4)
3637 .field("_g_reserved5", &self._g_reserved5)
3638 .finish()
3639 }
3640}
3641
3642#[repr(C)]
3643#[allow(dead_code)]
3644pub struct _GFileMonitorPrivate {
3645 _data: [u8; 0],
3646 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3647}
3648
3649pub type GFileMonitorPrivate = _GFileMonitorPrivate;
3650
3651#[derive(Copy, Clone)]
3652#[repr(C)]
3653pub struct GFileOutputStreamClass {
3654 pub parent_class: GOutputStreamClass,
3655 pub tell: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> i64>,
3656 pub can_seek: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3657 pub seek: Option<
3658 unsafe extern "C" fn(
3659 *mut GFileOutputStream,
3660 i64,
3661 glib::GSeekType,
3662 *mut GCancellable,
3663 *mut *mut glib::GError,
3664 ) -> gboolean,
3665 >,
3666 pub can_truncate: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>,
3667 pub truncate_fn: Option<
3668 unsafe extern "C" fn(
3669 *mut GFileOutputStream,
3670 i64,
3671 *mut GCancellable,
3672 *mut *mut glib::GError,
3673 ) -> gboolean,
3674 >,
3675 pub query_info: Option<
3676 unsafe extern "C" fn(
3677 *mut GFileOutputStream,
3678 *const c_char,
3679 *mut GCancellable,
3680 *mut *mut glib::GError,
3681 ) -> *mut GFileInfo,
3682 >,
3683 pub query_info_async: Option<
3684 unsafe extern "C" fn(
3685 *mut GFileOutputStream,
3686 *const c_char,
3687 c_int,
3688 *mut GCancellable,
3689 GAsyncReadyCallback,
3690 gpointer,
3691 ),
3692 >,
3693 pub query_info_finish: Option<
3694 unsafe extern "C" fn(
3695 *mut GFileOutputStream,
3696 *mut GAsyncResult,
3697 *mut *mut glib::GError,
3698 ) -> *mut GFileInfo,
3699 >,
3700 pub get_etag: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> *mut c_char>,
3701 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3702 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3703 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3704 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3705 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3706}
3707
3708impl ::std::fmt::Debug for GFileOutputStreamClass {
3709 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3710 f.debug_struct(&format!("GFileOutputStreamClass @ {self:p}"))
3711 .field("parent_class", &self.parent_class)
3712 .field("tell", &self.tell)
3713 .field("can_seek", &self.can_seek)
3714 .field("seek", &self.seek)
3715 .field("can_truncate", &self.can_truncate)
3716 .field("truncate_fn", &self.truncate_fn)
3717 .field("query_info", &self.query_info)
3718 .field("query_info_async", &self.query_info_async)
3719 .field("query_info_finish", &self.query_info_finish)
3720 .field("get_etag", &self.get_etag)
3721 .field("_g_reserved1", &self._g_reserved1)
3722 .field("_g_reserved2", &self._g_reserved2)
3723 .field("_g_reserved3", &self._g_reserved3)
3724 .field("_g_reserved4", &self._g_reserved4)
3725 .field("_g_reserved5", &self._g_reserved5)
3726 .finish()
3727 }
3728}
3729
3730#[repr(C)]
3731#[allow(dead_code)]
3732pub struct _GFileOutputStreamPrivate {
3733 _data: [u8; 0],
3734 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3735}
3736
3737pub type GFileOutputStreamPrivate = _GFileOutputStreamPrivate;
3738
3739#[derive(Copy, Clone)]
3740#[repr(C)]
3741pub struct GFilenameCompleterClass {
3742 pub parent_class: gobject::GObjectClass,
3743 pub got_completion_data: Option<unsafe extern "C" fn(*mut GFilenameCompleter)>,
3744 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3745 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3746 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3747}
3748
3749impl ::std::fmt::Debug for GFilenameCompleterClass {
3750 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3751 f.debug_struct(&format!("GFilenameCompleterClass @ {self:p}"))
3752 .field("parent_class", &self.parent_class)
3753 .field("got_completion_data", &self.got_completion_data)
3754 .field("_g_reserved1", &self._g_reserved1)
3755 .field("_g_reserved2", &self._g_reserved2)
3756 .field("_g_reserved3", &self._g_reserved3)
3757 .finish()
3758 }
3759}
3760
3761#[derive(Copy, Clone)]
3762#[repr(C)]
3763pub struct GFilterInputStreamClass {
3764 pub parent_class: GInputStreamClass,
3765 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3766 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3767 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3768}
3769
3770impl ::std::fmt::Debug for GFilterInputStreamClass {
3771 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3772 f.debug_struct(&format!("GFilterInputStreamClass @ {self:p}"))
3773 .field("parent_class", &self.parent_class)
3774 .field("_g_reserved1", &self._g_reserved1)
3775 .field("_g_reserved2", &self._g_reserved2)
3776 .field("_g_reserved3", &self._g_reserved3)
3777 .finish()
3778 }
3779}
3780
3781#[derive(Copy, Clone)]
3782#[repr(C)]
3783pub struct GFilterOutputStreamClass {
3784 pub parent_class: GOutputStreamClass,
3785 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3786 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3787 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3788}
3789
3790impl ::std::fmt::Debug for GFilterOutputStreamClass {
3791 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3792 f.debug_struct(&format!("GFilterOutputStreamClass @ {self:p}"))
3793 .field("parent_class", &self.parent_class)
3794 .field("_g_reserved1", &self._g_reserved1)
3795 .field("_g_reserved2", &self._g_reserved2)
3796 .field("_g_reserved3", &self._g_reserved3)
3797 .finish()
3798 }
3799}
3800
3801#[repr(C)]
3802#[allow(dead_code)]
3803pub struct _GIOExtension {
3804 _data: [u8; 0],
3805 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3806}
3807
3808pub type GIOExtension = _GIOExtension;
3809
3810#[repr(C)]
3811#[allow(dead_code)]
3812pub struct _GIOExtensionPoint {
3813 _data: [u8; 0],
3814 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3815}
3816
3817pub type GIOExtensionPoint = _GIOExtensionPoint;
3818
3819#[repr(C)]
3820#[allow(dead_code)]
3821pub struct _GIOModuleClass {
3822 _data: [u8; 0],
3823 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3824}
3825
3826pub type GIOModuleClass = _GIOModuleClass;
3827
3828#[repr(C)]
3829#[allow(dead_code)]
3830pub struct _GIOModuleScope {
3831 _data: [u8; 0],
3832 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3833}
3834
3835pub type GIOModuleScope = _GIOModuleScope;
3836
3837#[repr(C)]
3838#[allow(dead_code)]
3839pub struct _GIOSchedulerJob {
3840 _data: [u8; 0],
3841 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3842}
3843
3844pub type GIOSchedulerJob = _GIOSchedulerJob;
3845
3846#[repr(C)]
3847#[allow(dead_code)]
3848pub struct _GIOStreamAdapter {
3849 _data: [u8; 0],
3850 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3851}
3852
3853pub type GIOStreamAdapter = _GIOStreamAdapter;
3854
3855#[derive(Copy, Clone)]
3856#[repr(C)]
3857pub struct GIOStreamClass {
3858 pub parent_class: gobject::GObjectClass,
3859 pub get_input_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GInputStream>,
3860 pub get_output_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GOutputStream>,
3861 pub close_fn: Option<
3862 unsafe extern "C" fn(*mut GIOStream, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
3863 >,
3864 pub close_async: Option<
3865 unsafe extern "C" fn(
3866 *mut GIOStream,
3867 c_int,
3868 *mut GCancellable,
3869 GAsyncReadyCallback,
3870 gpointer,
3871 ),
3872 >,
3873 pub close_finish: Option<
3874 unsafe extern "C" fn(*mut GIOStream, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
3875 >,
3876 pub _g_reserved1: Option<unsafe extern "C" fn()>,
3877 pub _g_reserved2: Option<unsafe extern "C" fn()>,
3878 pub _g_reserved3: Option<unsafe extern "C" fn()>,
3879 pub _g_reserved4: Option<unsafe extern "C" fn()>,
3880 pub _g_reserved5: Option<unsafe extern "C" fn()>,
3881 pub _g_reserved6: Option<unsafe extern "C" fn()>,
3882 pub _g_reserved7: Option<unsafe extern "C" fn()>,
3883 pub _g_reserved8: Option<unsafe extern "C" fn()>,
3884 pub _g_reserved9: Option<unsafe extern "C" fn()>,
3885 pub _g_reserved10: Option<unsafe extern "C" fn()>,
3886}
3887
3888impl ::std::fmt::Debug for GIOStreamClass {
3889 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3890 f.debug_struct(&format!("GIOStreamClass @ {self:p}"))
3891 .field("parent_class", &self.parent_class)
3892 .field("get_input_stream", &self.get_input_stream)
3893 .field("get_output_stream", &self.get_output_stream)
3894 .field("close_fn", &self.close_fn)
3895 .field("close_async", &self.close_async)
3896 .field("close_finish", &self.close_finish)
3897 .field("_g_reserved1", &self._g_reserved1)
3898 .field("_g_reserved2", &self._g_reserved2)
3899 .field("_g_reserved3", &self._g_reserved3)
3900 .field("_g_reserved4", &self._g_reserved4)
3901 .field("_g_reserved5", &self._g_reserved5)
3902 .field("_g_reserved6", &self._g_reserved6)
3903 .field("_g_reserved7", &self._g_reserved7)
3904 .field("_g_reserved8", &self._g_reserved8)
3905 .field("_g_reserved9", &self._g_reserved9)
3906 .field("_g_reserved10", &self._g_reserved10)
3907 .finish()
3908 }
3909}
3910
3911#[repr(C)]
3912#[allow(dead_code)]
3913pub struct _GIOStreamPrivate {
3914 _data: [u8; 0],
3915 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
3916}
3917
3918pub type GIOStreamPrivate = _GIOStreamPrivate;
3919
3920#[derive(Copy, Clone)]
3921#[repr(C)]
3922pub struct GIPTosMessageClass {
3923 pub parent_class: GSocketControlMessageClass,
3924}
3925
3926impl ::std::fmt::Debug for GIPTosMessageClass {
3927 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3928 f.debug_struct(&format!("GIPTosMessageClass @ {self:p}"))
3929 .field("parent_class", &self.parent_class)
3930 .finish()
3931 }
3932}
3933
3934#[derive(Copy, Clone)]
3935#[repr(C)]
3936pub struct GIPv6TclassMessageClass {
3937 pub parent_class: GSocketControlMessageClass,
3938}
3939
3940impl ::std::fmt::Debug for GIPv6TclassMessageClass {
3941 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3942 f.debug_struct(&format!("GIPv6TclassMessageClass @ {self:p}"))
3943 .field("parent_class", &self.parent_class)
3944 .finish()
3945 }
3946}
3947
3948#[derive(Copy, Clone)]
3949#[repr(C)]
3950pub struct GIconIface {
3951 pub g_iface: gobject::GTypeInterface,
3952 pub hash: Option<unsafe extern "C" fn(*mut GIcon) -> c_uint>,
3953 pub equal: Option<unsafe extern "C" fn(*mut GIcon, *mut GIcon) -> gboolean>,
3954 pub to_tokens:
3955 Option<unsafe extern "C" fn(*mut GIcon, *mut glib::GPtrArray, *mut c_int) -> gboolean>,
3956 pub from_tokens: Option<
3957 unsafe extern "C" fn(*mut *mut c_char, c_int, c_int, *mut *mut glib::GError) -> *mut GIcon,
3958 >,
3959 pub serialize: Option<unsafe extern "C" fn(*mut GIcon) -> *mut glib::GVariant>,
3960}
3961
3962impl ::std::fmt::Debug for GIconIface {
3963 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3964 f.debug_struct(&format!("GIconIface @ {self:p}"))
3965 .field("g_iface", &self.g_iface)
3966 .field("hash", &self.hash)
3967 .field("equal", &self.equal)
3968 .field("to_tokens", &self.to_tokens)
3969 .field("from_tokens", &self.from_tokens)
3970 .field("serialize", &self.serialize)
3971 .finish()
3972 }
3973}
3974
3975#[derive(Copy, Clone)]
3976#[repr(C)]
3977pub struct GInetAddressClass {
3978 pub parent_class: gobject::GObjectClass,
3979 pub to_string: Option<unsafe extern "C" fn(*mut GInetAddress) -> *mut c_char>,
3980 pub to_bytes: Option<unsafe extern "C" fn(*mut GInetAddress) -> *const u8>,
3981}
3982
3983impl ::std::fmt::Debug for GInetAddressClass {
3984 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3985 f.debug_struct(&format!("GInetAddressClass @ {self:p}"))
3986 .field("parent_class", &self.parent_class)
3987 .field("to_string", &self.to_string)
3988 .field("to_bytes", &self.to_bytes)
3989 .finish()
3990 }
3991}
3992
3993#[derive(Copy, Clone)]
3994#[repr(C)]
3995pub struct GInetAddressMaskClass {
3996 pub parent_class: gobject::GObjectClass,
3997}
3998
3999impl ::std::fmt::Debug for GInetAddressMaskClass {
4000 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4001 f.debug_struct(&format!("GInetAddressMaskClass @ {self:p}"))
4002 .field("parent_class", &self.parent_class)
4003 .finish()
4004 }
4005}
4006
4007#[repr(C)]
4008#[allow(dead_code)]
4009pub struct _GInetAddressMaskPrivate {
4010 _data: [u8; 0],
4011 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4012}
4013
4014pub type GInetAddressMaskPrivate = _GInetAddressMaskPrivate;
4015
4016#[repr(C)]
4017#[allow(dead_code)]
4018pub struct _GInetAddressPrivate {
4019 _data: [u8; 0],
4020 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4021}
4022
4023pub type GInetAddressPrivate = _GInetAddressPrivate;
4024
4025#[derive(Copy, Clone)]
4026#[repr(C)]
4027pub struct GInetSocketAddressClass {
4028 pub parent_class: GSocketAddressClass,
4029}
4030
4031impl ::std::fmt::Debug for GInetSocketAddressClass {
4032 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4033 f.debug_struct(&format!("GInetSocketAddressClass @ {self:p}"))
4034 .field("parent_class", &self.parent_class)
4035 .finish()
4036 }
4037}
4038
4039#[repr(C)]
4040#[allow(dead_code)]
4041pub struct _GInetSocketAddressPrivate {
4042 _data: [u8; 0],
4043 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4044}
4045
4046pub type GInetSocketAddressPrivate = _GInetSocketAddressPrivate;
4047
4048#[derive(Copy, Clone)]
4049#[repr(C)]
4050pub struct GInitableIface {
4051 pub g_iface: gobject::GTypeInterface,
4052 pub init: Option<
4053 unsafe extern "C" fn(*mut GInitable, *mut GCancellable, *mut *mut glib::GError) -> gboolean,
4054 >,
4055}
4056
4057impl ::std::fmt::Debug for GInitableIface {
4058 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4059 f.debug_struct(&format!("GInitableIface @ {self:p}"))
4060 .field("g_iface", &self.g_iface)
4061 .field("init", &self.init)
4062 .finish()
4063 }
4064}
4065
4066#[derive(Copy, Clone)]
4067#[repr(C)]
4068pub struct GInputMessage {
4069 pub address: *mut *mut GSocketAddress,
4070 pub vectors: *mut GInputVector,
4071 pub num_vectors: c_uint,
4072 pub bytes_received: size_t,
4073 pub flags: c_int,
4074 pub control_messages: *mut *mut *mut GSocketControlMessage,
4075 pub num_control_messages: *mut c_uint,
4076}
4077
4078impl ::std::fmt::Debug for GInputMessage {
4079 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4080 f.debug_struct(&format!("GInputMessage @ {self:p}"))
4081 .field("address", &self.address)
4082 .field("vectors", &self.vectors)
4083 .field("num_vectors", &self.num_vectors)
4084 .field("bytes_received", &self.bytes_received)
4085 .field("flags", &self.flags)
4086 .field("control_messages", &self.control_messages)
4087 .field("num_control_messages", &self.num_control_messages)
4088 .finish()
4089 }
4090}
4091
4092#[derive(Copy, Clone)]
4093#[repr(C)]
4094pub struct GInputStreamClass {
4095 pub parent_class: gobject::GObjectClass,
4096 pub read_fn: Option<
4097 unsafe extern "C" fn(
4098 *mut GInputStream,
4099 *mut c_void,
4100 size_t,
4101 *mut GCancellable,
4102 *mut *mut glib::GError,
4103 ) -> ssize_t,
4104 >,
4105 pub skip: Option<
4106 unsafe extern "C" fn(
4107 *mut GInputStream,
4108 size_t,
4109 *mut GCancellable,
4110 *mut *mut glib::GError,
4111 ) -> ssize_t,
4112 >,
4113 pub close_fn: Option<
4114 unsafe extern "C" fn(
4115 *mut GInputStream,
4116 *mut GCancellable,
4117 *mut *mut glib::GError,
4118 ) -> gboolean,
4119 >,
4120 pub read_async: Option<
4121 unsafe extern "C" fn(
4122 *mut GInputStream,
4123 *mut u8,
4124 size_t,
4125 c_int,
4126 *mut GCancellable,
4127 GAsyncReadyCallback,
4128 gpointer,
4129 ),
4130 >,
4131 pub read_finish: Option<
4132 unsafe extern "C" fn(
4133 *mut GInputStream,
4134 *mut GAsyncResult,
4135 *mut *mut glib::GError,
4136 ) -> ssize_t,
4137 >,
4138 pub skip_async: Option<
4139 unsafe extern "C" fn(
4140 *mut GInputStream,
4141 size_t,
4142 c_int,
4143 *mut GCancellable,
4144 GAsyncReadyCallback,
4145 gpointer,
4146 ),
4147 >,
4148 pub skip_finish: Option<
4149 unsafe extern "C" fn(
4150 *mut GInputStream,
4151 *mut GAsyncResult,
4152 *mut *mut glib::GError,
4153 ) -> ssize_t,
4154 >,
4155 pub close_async: Option<
4156 unsafe extern "C" fn(
4157 *mut GInputStream,
4158 c_int,
4159 *mut GCancellable,
4160 GAsyncReadyCallback,
4161 gpointer,
4162 ),
4163 >,
4164 pub close_finish: Option<
4165 unsafe extern "C" fn(
4166 *mut GInputStream,
4167 *mut GAsyncResult,
4168 *mut *mut glib::GError,
4169 ) -> gboolean,
4170 >,
4171 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4172 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4173 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4174 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4175 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4176}
4177
4178impl ::std::fmt::Debug for GInputStreamClass {
4179 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4180 f.debug_struct(&format!("GInputStreamClass @ {self:p}"))
4181 .field("parent_class", &self.parent_class)
4182 .field("read_fn", &self.read_fn)
4183 .field("skip", &self.skip)
4184 .field("close_fn", &self.close_fn)
4185 .field("read_async", &self.read_async)
4186 .field("read_finish", &self.read_finish)
4187 .field("skip_async", &self.skip_async)
4188 .field("skip_finish", &self.skip_finish)
4189 .field("close_async", &self.close_async)
4190 .field("close_finish", &self.close_finish)
4191 .field("_g_reserved1", &self._g_reserved1)
4192 .field("_g_reserved2", &self._g_reserved2)
4193 .field("_g_reserved3", &self._g_reserved3)
4194 .field("_g_reserved4", &self._g_reserved4)
4195 .field("_g_reserved5", &self._g_reserved5)
4196 .finish()
4197 }
4198}
4199
4200#[repr(C)]
4201#[allow(dead_code)]
4202pub struct _GInputStreamPrivate {
4203 _data: [u8; 0],
4204 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4205}
4206
4207pub type GInputStreamPrivate = _GInputStreamPrivate;
4208
4209#[derive(Copy, Clone)]
4210#[repr(C)]
4211pub struct GInputVector {
4212 pub buffer: gpointer,
4213 pub size: size_t,
4214}
4215
4216impl ::std::fmt::Debug for GInputVector {
4217 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4218 f.debug_struct(&format!("GInputVector @ {self:p}"))
4219 .field("buffer", &self.buffer)
4220 .field("size", &self.size)
4221 .finish()
4222 }
4223}
4224
4225#[derive(Copy, Clone)]
4226#[repr(C)]
4227pub struct GListModelInterface {
4228 pub g_iface: gobject::GTypeInterface,
4229 pub get_item_type: Option<unsafe extern "C" fn(*mut GListModel) -> GType>,
4230 pub get_n_items: Option<unsafe extern "C" fn(*mut GListModel) -> c_uint>,
4231 pub get_item: Option<unsafe extern "C" fn(*mut GListModel, c_uint) -> *mut gobject::GObject>,
4232}
4233
4234impl ::std::fmt::Debug for GListModelInterface {
4235 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4236 f.debug_struct(&format!("GListModelInterface @ {self:p}"))
4237 .field("g_iface", &self.g_iface)
4238 .field("get_item_type", &self.get_item_type)
4239 .field("get_n_items", &self.get_n_items)
4240 .field("get_item", &self.get_item)
4241 .finish()
4242 }
4243}
4244
4245#[derive(Copy, Clone)]
4246#[repr(C)]
4247pub struct GListStoreClass {
4248 pub parent_class: gobject::GObjectClass,
4249}
4250
4251impl ::std::fmt::Debug for GListStoreClass {
4252 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4253 f.debug_struct(&format!("GListStoreClass @ {self:p}"))
4254 .field("parent_class", &self.parent_class)
4255 .finish()
4256 }
4257}
4258
4259#[derive(Copy, Clone)]
4260#[repr(C)]
4261pub struct GLoadableIconIface {
4262 pub g_iface: gobject::GTypeInterface,
4263 pub load: Option<
4264 unsafe extern "C" fn(
4265 *mut GLoadableIcon,
4266 c_int,
4267 *mut *mut c_char,
4268 *mut GCancellable,
4269 *mut *mut glib::GError,
4270 ) -> *mut GInputStream,
4271 >,
4272 pub load_async: Option<
4273 unsafe extern "C" fn(
4274 *mut GLoadableIcon,
4275 c_int,
4276 *mut GCancellable,
4277 GAsyncReadyCallback,
4278 gpointer,
4279 ),
4280 >,
4281 pub load_finish: Option<
4282 unsafe extern "C" fn(
4283 *mut GLoadableIcon,
4284 *mut GAsyncResult,
4285 *mut *mut c_char,
4286 *mut *mut glib::GError,
4287 ) -> *mut GInputStream,
4288 >,
4289}
4290
4291impl ::std::fmt::Debug for GLoadableIconIface {
4292 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4293 f.debug_struct(&format!("GLoadableIconIface @ {self:p}"))
4294 .field("g_iface", &self.g_iface)
4295 .field("load", &self.load)
4296 .field("load_async", &self.load_async)
4297 .field("load_finish", &self.load_finish)
4298 .finish()
4299 }
4300}
4301
4302#[derive(Copy, Clone)]
4303#[repr(C)]
4304pub struct GMemoryInputStreamClass {
4305 pub parent_class: GInputStreamClass,
4306 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4307 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4308 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4309 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4310 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4311}
4312
4313impl ::std::fmt::Debug for GMemoryInputStreamClass {
4314 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4315 f.debug_struct(&format!("GMemoryInputStreamClass @ {self:p}"))
4316 .field("parent_class", &self.parent_class)
4317 .field("_g_reserved1", &self._g_reserved1)
4318 .field("_g_reserved2", &self._g_reserved2)
4319 .field("_g_reserved3", &self._g_reserved3)
4320 .field("_g_reserved4", &self._g_reserved4)
4321 .field("_g_reserved5", &self._g_reserved5)
4322 .finish()
4323 }
4324}
4325
4326#[repr(C)]
4327#[allow(dead_code)]
4328pub struct _GMemoryInputStreamPrivate {
4329 _data: [u8; 0],
4330 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4331}
4332
4333pub type GMemoryInputStreamPrivate = _GMemoryInputStreamPrivate;
4334
4335#[derive(Copy, Clone)]
4336#[repr(C)]
4337pub struct GMemoryMonitorInterface {
4338 pub g_iface: gobject::GTypeInterface,
4339 pub low_memory_warning:
4340 Option<unsafe extern "C" fn(*mut GMemoryMonitor, GMemoryMonitorWarningLevel)>,
4341}
4342
4343impl ::std::fmt::Debug for GMemoryMonitorInterface {
4344 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4345 f.debug_struct(&format!("GMemoryMonitorInterface @ {self:p}"))
4346 .field("low_memory_warning", &self.low_memory_warning)
4347 .finish()
4348 }
4349}
4350
4351#[derive(Copy, Clone)]
4352#[repr(C)]
4353pub struct GMemoryOutputStreamClass {
4354 pub parent_class: GOutputStreamClass,
4355 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4356 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4357 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4358 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4359 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4360}
4361
4362impl ::std::fmt::Debug for GMemoryOutputStreamClass {
4363 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4364 f.debug_struct(&format!("GMemoryOutputStreamClass @ {self:p}"))
4365 .field("parent_class", &self.parent_class)
4366 .field("_g_reserved1", &self._g_reserved1)
4367 .field("_g_reserved2", &self._g_reserved2)
4368 .field("_g_reserved3", &self._g_reserved3)
4369 .field("_g_reserved4", &self._g_reserved4)
4370 .field("_g_reserved5", &self._g_reserved5)
4371 .finish()
4372 }
4373}
4374
4375#[repr(C)]
4376#[allow(dead_code)]
4377pub struct _GMemoryOutputStreamPrivate {
4378 _data: [u8; 0],
4379 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4380}
4381
4382pub type GMemoryOutputStreamPrivate = _GMemoryOutputStreamPrivate;
4383
4384#[derive(Copy, Clone)]
4385#[repr(C)]
4386pub struct GMenuAttributeIterClass {
4387 pub parent_class: gobject::GObjectClass,
4388 pub get_next: Option<
4389 unsafe extern "C" fn(
4390 *mut GMenuAttributeIter,
4391 *mut *const c_char,
4392 *mut *mut glib::GVariant,
4393 ) -> gboolean,
4394 >,
4395}
4396
4397impl ::std::fmt::Debug for GMenuAttributeIterClass {
4398 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4399 f.debug_struct(&format!("GMenuAttributeIterClass @ {self:p}"))
4400 .field("parent_class", &self.parent_class)
4401 .field("get_next", &self.get_next)
4402 .finish()
4403 }
4404}
4405
4406#[repr(C)]
4407#[allow(dead_code)]
4408pub struct _GMenuAttributeIterPrivate {
4409 _data: [u8; 0],
4410 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4411}
4412
4413pub type GMenuAttributeIterPrivate = _GMenuAttributeIterPrivate;
4414
4415#[derive(Copy, Clone)]
4416#[repr(C)]
4417pub struct GMenuLinkIterClass {
4418 pub parent_class: gobject::GObjectClass,
4419 pub get_next: Option<
4420 unsafe extern "C" fn(
4421 *mut GMenuLinkIter,
4422 *mut *const c_char,
4423 *mut *mut GMenuModel,
4424 ) -> gboolean,
4425 >,
4426}
4427
4428impl ::std::fmt::Debug for GMenuLinkIterClass {
4429 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4430 f.debug_struct(&format!("GMenuLinkIterClass @ {self:p}"))
4431 .field("parent_class", &self.parent_class)
4432 .field("get_next", &self.get_next)
4433 .finish()
4434 }
4435}
4436
4437#[repr(C)]
4438#[allow(dead_code)]
4439pub struct _GMenuLinkIterPrivate {
4440 _data: [u8; 0],
4441 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4442}
4443
4444pub type GMenuLinkIterPrivate = _GMenuLinkIterPrivate;
4445
4446#[derive(Copy, Clone)]
4447#[repr(C)]
4448pub struct GMenuModelClass {
4449 pub parent_class: gobject::GObjectClass,
4450 pub is_mutable: Option<unsafe extern "C" fn(*mut GMenuModel) -> gboolean>,
4451 pub get_n_items: Option<unsafe extern "C" fn(*mut GMenuModel) -> c_int>,
4452 pub get_item_attributes:
4453 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4454 pub iterate_item_attributes:
4455 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuAttributeIter>,
4456 pub get_item_attribute_value: Option<
4457 unsafe extern "C" fn(
4458 *mut GMenuModel,
4459 c_int,
4460 *const c_char,
4461 *const glib::GVariantType,
4462 ) -> *mut glib::GVariant,
4463 >,
4464 pub get_item_links:
4465 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>,
4466 pub iterate_item_links:
4467 Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuLinkIter>,
4468 pub get_item_link:
4469 Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *const c_char) -> *mut GMenuModel>,
4470}
4471
4472impl ::std::fmt::Debug for GMenuModelClass {
4473 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4474 f.debug_struct(&format!("GMenuModelClass @ {self:p}"))
4475 .field("parent_class", &self.parent_class)
4476 .field("is_mutable", &self.is_mutable)
4477 .field("get_n_items", &self.get_n_items)
4478 .field("get_item_attributes", &self.get_item_attributes)
4479 .field("iterate_item_attributes", &self.iterate_item_attributes)
4480 .field("get_item_attribute_value", &self.get_item_attribute_value)
4481 .field("get_item_links", &self.get_item_links)
4482 .field("iterate_item_links", &self.iterate_item_links)
4483 .field("get_item_link", &self.get_item_link)
4484 .finish()
4485 }
4486}
4487
4488#[repr(C)]
4489#[allow(dead_code)]
4490pub struct _GMenuModelPrivate {
4491 _data: [u8; 0],
4492 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4493}
4494
4495pub type GMenuModelPrivate = _GMenuModelPrivate;
4496
4497#[derive(Copy, Clone)]
4498#[repr(C)]
4499pub struct GMountIface {
4500 pub g_iface: gobject::GTypeInterface,
4501 pub changed: Option<unsafe extern "C" fn(*mut GMount)>,
4502 pub unmounted: Option<unsafe extern "C" fn(*mut GMount)>,
4503 pub get_root: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4504 pub get_name: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4505 pub get_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4506 pub get_uuid: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4507 pub get_volume: Option<unsafe extern "C" fn(*mut GMount) -> *mut GVolume>,
4508 pub get_drive: Option<unsafe extern "C" fn(*mut GMount) -> *mut GDrive>,
4509 pub can_unmount: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4510 pub can_eject: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>,
4511 pub unmount: Option<
4512 unsafe extern "C" fn(
4513 *mut GMount,
4514 GMountUnmountFlags,
4515 *mut GCancellable,
4516 GAsyncReadyCallback,
4517 gpointer,
4518 ),
4519 >,
4520 pub unmount_finish: Option<
4521 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4522 >,
4523 pub eject: Option<
4524 unsafe extern "C" fn(
4525 *mut GMount,
4526 GMountUnmountFlags,
4527 *mut GCancellable,
4528 GAsyncReadyCallback,
4529 gpointer,
4530 ),
4531 >,
4532 pub eject_finish: Option<
4533 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4534 >,
4535 pub remount: Option<
4536 unsafe extern "C" fn(
4537 *mut GMount,
4538 GMountMountFlags,
4539 *mut GMountOperation,
4540 *mut GCancellable,
4541 GAsyncReadyCallback,
4542 gpointer,
4543 ),
4544 >,
4545 pub remount_finish: Option<
4546 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4547 >,
4548 pub guess_content_type: Option<
4549 unsafe extern "C" fn(
4550 *mut GMount,
4551 gboolean,
4552 *mut GCancellable,
4553 GAsyncReadyCallback,
4554 gpointer,
4555 ),
4556 >,
4557 pub guess_content_type_finish: Option<
4558 unsafe extern "C" fn(
4559 *mut GMount,
4560 *mut GAsyncResult,
4561 *mut *mut glib::GError,
4562 ) -> *mut *mut c_char,
4563 >,
4564 pub guess_content_type_sync: Option<
4565 unsafe extern "C" fn(
4566 *mut GMount,
4567 gboolean,
4568 *mut GCancellable,
4569 *mut *mut glib::GError,
4570 ) -> *mut *mut c_char,
4571 >,
4572 pub pre_unmount: Option<unsafe extern "C" fn(*mut GMount)>,
4573 pub unmount_with_operation: Option<
4574 unsafe extern "C" fn(
4575 *mut GMount,
4576 GMountUnmountFlags,
4577 *mut GMountOperation,
4578 *mut GCancellable,
4579 GAsyncReadyCallback,
4580 gpointer,
4581 ),
4582 >,
4583 pub unmount_with_operation_finish: Option<
4584 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4585 >,
4586 pub eject_with_operation: Option<
4587 unsafe extern "C" fn(
4588 *mut GMount,
4589 GMountUnmountFlags,
4590 *mut GMountOperation,
4591 *mut GCancellable,
4592 GAsyncReadyCallback,
4593 gpointer,
4594 ),
4595 >,
4596 pub eject_with_operation_finish: Option<
4597 unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
4598 >,
4599 pub get_default_location: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>,
4600 pub get_sort_key: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>,
4601 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>,
4602}
4603
4604impl ::std::fmt::Debug for GMountIface {
4605 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4606 f.debug_struct(&format!("GMountIface @ {self:p}"))
4607 .field("g_iface", &self.g_iface)
4608 .field("changed", &self.changed)
4609 .field("unmounted", &self.unmounted)
4610 .field("get_root", &self.get_root)
4611 .field("get_name", &self.get_name)
4612 .field("get_icon", &self.get_icon)
4613 .field("get_uuid", &self.get_uuid)
4614 .field("get_volume", &self.get_volume)
4615 .field("get_drive", &self.get_drive)
4616 .field("can_unmount", &self.can_unmount)
4617 .field("can_eject", &self.can_eject)
4618 .field("unmount", &self.unmount)
4619 .field("unmount_finish", &self.unmount_finish)
4620 .field("eject", &self.eject)
4621 .field("eject_finish", &self.eject_finish)
4622 .field("remount", &self.remount)
4623 .field("remount_finish", &self.remount_finish)
4624 .field("guess_content_type", &self.guess_content_type)
4625 .field("guess_content_type_finish", &self.guess_content_type_finish)
4626 .field("guess_content_type_sync", &self.guess_content_type_sync)
4627 .field("pre_unmount", &self.pre_unmount)
4628 .field("unmount_with_operation", &self.unmount_with_operation)
4629 .field(
4630 "unmount_with_operation_finish",
4631 &self.unmount_with_operation_finish,
4632 )
4633 .field("eject_with_operation", &self.eject_with_operation)
4634 .field(
4635 "eject_with_operation_finish",
4636 &self.eject_with_operation_finish,
4637 )
4638 .field("get_default_location", &self.get_default_location)
4639 .field("get_sort_key", &self.get_sort_key)
4640 .field("get_symbolic_icon", &self.get_symbolic_icon)
4641 .finish()
4642 }
4643}
4644
4645#[derive(Copy, Clone)]
4646#[repr(C)]
4647pub struct GMountOperationClass {
4648 pub parent_class: gobject::GObjectClass,
4649 pub ask_password: Option<
4650 unsafe extern "C" fn(
4651 *mut GMountOperation,
4652 *const c_char,
4653 *const c_char,
4654 *const c_char,
4655 GAskPasswordFlags,
4656 ),
4657 >,
4658 pub ask_question:
4659 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, *mut *const c_char)>,
4660 pub reply: Option<unsafe extern "C" fn(*mut GMountOperation, GMountOperationResult)>,
4661 pub aborted: Option<unsafe extern "C" fn(*mut GMountOperation)>,
4662 pub show_processes: Option<
4663 unsafe extern "C" fn(
4664 *mut GMountOperation,
4665 *const c_char,
4666 *mut glib::GArray,
4667 *mut *const c_char,
4668 ),
4669 >,
4670 pub show_unmount_progress:
4671 Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, i64, i64)>,
4672 pub _g_reserved1: Option<unsafe extern "C" fn()>,
4673 pub _g_reserved2: Option<unsafe extern "C" fn()>,
4674 pub _g_reserved3: Option<unsafe extern "C" fn()>,
4675 pub _g_reserved4: Option<unsafe extern "C" fn()>,
4676 pub _g_reserved5: Option<unsafe extern "C" fn()>,
4677 pub _g_reserved6: Option<unsafe extern "C" fn()>,
4678 pub _g_reserved7: Option<unsafe extern "C" fn()>,
4679 pub _g_reserved8: Option<unsafe extern "C" fn()>,
4680 pub _g_reserved9: Option<unsafe extern "C" fn()>,
4681}
4682
4683impl ::std::fmt::Debug for GMountOperationClass {
4684 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4685 f.debug_struct(&format!("GMountOperationClass @ {self:p}"))
4686 .field("parent_class", &self.parent_class)
4687 .field("ask_password", &self.ask_password)
4688 .field("ask_question", &self.ask_question)
4689 .field("reply", &self.reply)
4690 .field("aborted", &self.aborted)
4691 .field("show_processes", &self.show_processes)
4692 .field("show_unmount_progress", &self.show_unmount_progress)
4693 .field("_g_reserved1", &self._g_reserved1)
4694 .field("_g_reserved2", &self._g_reserved2)
4695 .field("_g_reserved3", &self._g_reserved3)
4696 .field("_g_reserved4", &self._g_reserved4)
4697 .field("_g_reserved5", &self._g_reserved5)
4698 .field("_g_reserved6", &self._g_reserved6)
4699 .field("_g_reserved7", &self._g_reserved7)
4700 .field("_g_reserved8", &self._g_reserved8)
4701 .field("_g_reserved9", &self._g_reserved9)
4702 .finish()
4703 }
4704}
4705
4706#[repr(C)]
4707#[allow(dead_code)]
4708pub struct _GMountOperationPrivate {
4709 _data: [u8; 0],
4710 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4711}
4712
4713pub type GMountOperationPrivate = _GMountOperationPrivate;
4714
4715#[derive(Copy, Clone)]
4716#[repr(C)]
4717pub struct GNativeSocketAddressClass {
4718 pub parent_class: GSocketAddressClass,
4719}
4720
4721impl ::std::fmt::Debug for GNativeSocketAddressClass {
4722 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4723 f.debug_struct(&format!("GNativeSocketAddressClass @ {self:p}"))
4724 .field("parent_class", &self.parent_class)
4725 .finish()
4726 }
4727}
4728
4729#[repr(C)]
4730#[allow(dead_code)]
4731pub struct _GNativeSocketAddressPrivate {
4732 _data: [u8; 0],
4733 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4734}
4735
4736pub type GNativeSocketAddressPrivate = _GNativeSocketAddressPrivate;
4737
4738#[derive(Copy, Clone)]
4739#[repr(C)]
4740pub struct GNativeVolumeMonitorClass {
4741 pub parent_class: GVolumeMonitorClass,
4742 pub get_mount_for_mount_path:
4743 Option<unsafe extern "C" fn(*const c_char, *mut GCancellable) -> *mut GMount>,
4744}
4745
4746impl ::std::fmt::Debug for GNativeVolumeMonitorClass {
4747 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4748 f.debug_struct(&format!("GNativeVolumeMonitorClass @ {self:p}"))
4749 .field("parent_class", &self.parent_class)
4750 .field("get_mount_for_mount_path", &self.get_mount_for_mount_path)
4751 .finish()
4752 }
4753}
4754
4755#[derive(Copy, Clone)]
4756#[repr(C)]
4757pub struct GNetworkAddressClass {
4758 pub parent_class: gobject::GObjectClass,
4759}
4760
4761impl ::std::fmt::Debug for GNetworkAddressClass {
4762 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4763 f.debug_struct(&format!("GNetworkAddressClass @ {self:p}"))
4764 .field("parent_class", &self.parent_class)
4765 .finish()
4766 }
4767}
4768
4769#[repr(C)]
4770#[allow(dead_code)]
4771pub struct _GNetworkAddressPrivate {
4772 _data: [u8; 0],
4773 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4774}
4775
4776pub type GNetworkAddressPrivate = _GNetworkAddressPrivate;
4777
4778#[derive(Copy, Clone)]
4779#[repr(C)]
4780pub struct GNetworkMonitorInterface {
4781 pub g_iface: gobject::GTypeInterface,
4782 pub network_changed: Option<unsafe extern "C" fn(*mut GNetworkMonitor, gboolean)>,
4783 pub can_reach: Option<
4784 unsafe extern "C" fn(
4785 *mut GNetworkMonitor,
4786 *mut GSocketConnectable,
4787 *mut GCancellable,
4788 *mut *mut glib::GError,
4789 ) -> gboolean,
4790 >,
4791 pub can_reach_async: Option<
4792 unsafe extern "C" fn(
4793 *mut GNetworkMonitor,
4794 *mut GSocketConnectable,
4795 *mut GCancellable,
4796 GAsyncReadyCallback,
4797 gpointer,
4798 ),
4799 >,
4800 pub can_reach_finish: Option<
4801 unsafe extern "C" fn(
4802 *mut GNetworkMonitor,
4803 *mut GAsyncResult,
4804 *mut *mut glib::GError,
4805 ) -> gboolean,
4806 >,
4807}
4808
4809impl ::std::fmt::Debug for GNetworkMonitorInterface {
4810 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4811 f.debug_struct(&format!("GNetworkMonitorInterface @ {self:p}"))
4812 .field("g_iface", &self.g_iface)
4813 .field("network_changed", &self.network_changed)
4814 .field("can_reach", &self.can_reach)
4815 .field("can_reach_async", &self.can_reach_async)
4816 .field("can_reach_finish", &self.can_reach_finish)
4817 .finish()
4818 }
4819}
4820
4821#[derive(Copy, Clone)]
4822#[repr(C)]
4823pub struct GNetworkServiceClass {
4824 pub parent_class: gobject::GObjectClass,
4825}
4826
4827impl ::std::fmt::Debug for GNetworkServiceClass {
4828 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4829 f.debug_struct(&format!("GNetworkServiceClass @ {self:p}"))
4830 .field("parent_class", &self.parent_class)
4831 .finish()
4832 }
4833}
4834
4835#[repr(C)]
4836#[allow(dead_code)]
4837pub struct _GNetworkServicePrivate {
4838 _data: [u8; 0],
4839 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
4840}
4841
4842pub type GNetworkServicePrivate = _GNetworkServicePrivate;
4843
4844#[derive(Copy, Clone)]
4845#[repr(C)]
4846pub struct GOutputMessage {
4847 pub address: *mut GSocketAddress,
4848 pub vectors: *mut GOutputVector,
4849 pub num_vectors: c_uint,
4850 pub bytes_sent: c_uint,
4851 pub control_messages: *mut *mut GSocketControlMessage,
4852 pub num_control_messages: c_uint,
4853}
4854
4855impl ::std::fmt::Debug for GOutputMessage {
4856 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4857 f.debug_struct(&format!("GOutputMessage @ {self:p}"))
4858 .field("address", &self.address)
4859 .field("vectors", &self.vectors)
4860 .field("num_vectors", &self.num_vectors)
4861 .field("bytes_sent", &self.bytes_sent)
4862 .field("control_messages", &self.control_messages)
4863 .field("num_control_messages", &self.num_control_messages)
4864 .finish()
4865 }
4866}
4867
4868#[derive(Copy, Clone)]
4869#[repr(C)]
4870pub struct GOutputStreamClass {
4871 pub parent_class: gobject::GObjectClass,
4872 pub write_fn: Option<
4873 unsafe extern "C" fn(
4874 *mut GOutputStream,
4875 *mut u8,
4876 size_t,
4877 *mut GCancellable,
4878 *mut *mut glib::GError,
4879 ) -> ssize_t,
4880 >,
4881 pub splice: Option<
4882 unsafe extern "C" fn(
4883 *mut GOutputStream,
4884 *mut GInputStream,
4885 GOutputStreamSpliceFlags,
4886 *mut GCancellable,
4887 *mut *mut glib::GError,
4888 ) -> ssize_t,
4889 >,
4890 pub flush: Option<
4891 unsafe extern "C" fn(
4892 *mut GOutputStream,
4893 *mut GCancellable,
4894 *mut *mut glib::GError,
4895 ) -> gboolean,
4896 >,
4897 pub close_fn: Option<
4898 unsafe extern "C" fn(
4899 *mut GOutputStream,
4900 *mut GCancellable,
4901 *mut *mut glib::GError,
4902 ) -> gboolean,
4903 >,
4904 pub write_async: Option<
4905 unsafe extern "C" fn(
4906 *mut GOutputStream,
4907 *mut u8,
4908 size_t,
4909 c_int,
4910 *mut GCancellable,
4911 GAsyncReadyCallback,
4912 gpointer,
4913 ),
4914 >,
4915 pub write_finish: Option<
4916 unsafe extern "C" fn(
4917 *mut GOutputStream,
4918 *mut GAsyncResult,
4919 *mut *mut glib::GError,
4920 ) -> ssize_t,
4921 >,
4922 pub splice_async: Option<
4923 unsafe extern "C" fn(
4924 *mut GOutputStream,
4925 *mut GInputStream,
4926 GOutputStreamSpliceFlags,
4927 c_int,
4928 *mut GCancellable,
4929 GAsyncReadyCallback,
4930 gpointer,
4931 ),
4932 >,
4933 pub splice_finish: Option<
4934 unsafe extern "C" fn(
4935 *mut GOutputStream,
4936 *mut GAsyncResult,
4937 *mut *mut glib::GError,
4938 ) -> ssize_t,
4939 >,
4940 pub flush_async: Option<
4941 unsafe extern "C" fn(
4942 *mut GOutputStream,
4943 c_int,
4944 *mut GCancellable,
4945 GAsyncReadyCallback,
4946 gpointer,
4947 ),
4948 >,
4949 pub flush_finish: Option<
4950 unsafe extern "C" fn(
4951 *mut GOutputStream,
4952 *mut GAsyncResult,
4953 *mut *mut glib::GError,
4954 ) -> gboolean,
4955 >,
4956 pub close_async: Option<
4957 unsafe extern "C" fn(
4958 *mut GOutputStream,
4959 c_int,
4960 *mut GCancellable,
4961 GAsyncReadyCallback,
4962 gpointer,
4963 ),
4964 >,
4965 pub close_finish: Option<
4966 unsafe extern "C" fn(
4967 *mut GOutputStream,
4968 *mut GAsyncResult,
4969 *mut *mut glib::GError,
4970 ) -> gboolean,
4971 >,
4972 pub writev_fn: Option<
4973 unsafe extern "C" fn(
4974 *mut GOutputStream,
4975 *const GOutputVector,
4976 size_t,
4977 *mut size_t,
4978 *mut GCancellable,
4979 *mut *mut glib::GError,
4980 ) -> gboolean,
4981 >,
4982 pub writev_async: Option<
4983 unsafe extern "C" fn(
4984 *mut GOutputStream,
4985 *const GOutputVector,
4986 size_t,
4987 c_int,
4988 *mut GCancellable,
4989 GAsyncReadyCallback,
4990 gpointer,
4991 ),
4992 >,
4993 pub writev_finish: Option<
4994 unsafe extern "C" fn(
4995 *mut GOutputStream,
4996 *mut GAsyncResult,
4997 *mut size_t,
4998 *mut *mut glib::GError,
4999 ) -> gboolean,
5000 >,
5001 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5002 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5003 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5004 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5005 pub _g_reserved8: Option<unsafe extern "C" fn()>,
5006}
5007
5008impl ::std::fmt::Debug for GOutputStreamClass {
5009 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5010 f.debug_struct(&format!("GOutputStreamClass @ {self:p}"))
5011 .field("parent_class", &self.parent_class)
5012 .field("write_fn", &self.write_fn)
5013 .field("splice", &self.splice)
5014 .field("flush", &self.flush)
5015 .field("close_fn", &self.close_fn)
5016 .field("write_async", &self.write_async)
5017 .field("write_finish", &self.write_finish)
5018 .field("splice_async", &self.splice_async)
5019 .field("splice_finish", &self.splice_finish)
5020 .field("flush_async", &self.flush_async)
5021 .field("flush_finish", &self.flush_finish)
5022 .field("close_async", &self.close_async)
5023 .field("close_finish", &self.close_finish)
5024 .field("writev_fn", &self.writev_fn)
5025 .field("writev_async", &self.writev_async)
5026 .field("writev_finish", &self.writev_finish)
5027 .field("_g_reserved4", &self._g_reserved4)
5028 .field("_g_reserved5", &self._g_reserved5)
5029 .field("_g_reserved6", &self._g_reserved6)
5030 .field("_g_reserved7", &self._g_reserved7)
5031 .field("_g_reserved8", &self._g_reserved8)
5032 .finish()
5033 }
5034}
5035
5036#[repr(C)]
5037#[allow(dead_code)]
5038pub struct _GOutputStreamPrivate {
5039 _data: [u8; 0],
5040 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5041}
5042
5043pub type GOutputStreamPrivate = _GOutputStreamPrivate;
5044
5045#[derive(Copy, Clone)]
5046#[repr(C)]
5047pub struct GOutputVector {
5048 pub buffer: gconstpointer,
5049 pub size: size_t,
5050}
5051
5052impl ::std::fmt::Debug for GOutputVector {
5053 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5054 f.debug_struct(&format!("GOutputVector @ {self:p}"))
5055 .field("buffer", &self.buffer)
5056 .field("size", &self.size)
5057 .finish()
5058 }
5059}
5060
5061#[derive(Copy, Clone)]
5062#[repr(C)]
5063pub struct GPermissionClass {
5064 pub parent_class: gobject::GObjectClass,
5065 pub acquire: Option<
5066 unsafe extern "C" fn(
5067 *mut GPermission,
5068 *mut GCancellable,
5069 *mut *mut glib::GError,
5070 ) -> gboolean,
5071 >,
5072 pub acquire_async: Option<
5073 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
5074 >,
5075 pub acquire_finish: Option<
5076 unsafe extern "C" fn(
5077 *mut GPermission,
5078 *mut GAsyncResult,
5079 *mut *mut glib::GError,
5080 ) -> gboolean,
5081 >,
5082 pub release: Option<
5083 unsafe extern "C" fn(
5084 *mut GPermission,
5085 *mut GCancellable,
5086 *mut *mut glib::GError,
5087 ) -> gboolean,
5088 >,
5089 pub release_async: Option<
5090 unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer),
5091 >,
5092 pub release_finish: Option<
5093 unsafe extern "C" fn(
5094 *mut GPermission,
5095 *mut GAsyncResult,
5096 *mut *mut glib::GError,
5097 ) -> gboolean,
5098 >,
5099 pub reserved: [gpointer; 16],
5100}
5101
5102impl ::std::fmt::Debug for GPermissionClass {
5103 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5104 f.debug_struct(&format!("GPermissionClass @ {self:p}"))
5105 .field("parent_class", &self.parent_class)
5106 .field("acquire", &self.acquire)
5107 .field("acquire_async", &self.acquire_async)
5108 .field("acquire_finish", &self.acquire_finish)
5109 .field("release", &self.release)
5110 .field("release_async", &self.release_async)
5111 .field("release_finish", &self.release_finish)
5112 .field("reserved", &self.reserved)
5113 .finish()
5114 }
5115}
5116
5117#[repr(C)]
5118#[allow(dead_code)]
5119pub struct _GPermissionPrivate {
5120 _data: [u8; 0],
5121 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5122}
5123
5124pub type GPermissionPrivate = _GPermissionPrivate;
5125
5126#[derive(Copy, Clone)]
5127#[repr(C)]
5128pub struct GPollableInputStreamInterface {
5129 pub g_iface: gobject::GTypeInterface,
5130 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
5131 pub is_readable: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>,
5132 pub create_source: Option<
5133 unsafe extern "C" fn(*mut GPollableInputStream, *mut GCancellable) -> *mut glib::GSource,
5134 >,
5135 pub read_nonblocking: Option<
5136 unsafe extern "C" fn(
5137 *mut GPollableInputStream,
5138 *mut u8,
5139 size_t,
5140 *mut *mut glib::GError,
5141 ) -> ssize_t,
5142 >,
5143}
5144
5145impl ::std::fmt::Debug for GPollableInputStreamInterface {
5146 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5147 f.debug_struct(&format!("GPollableInputStreamInterface @ {self:p}"))
5148 .field("g_iface", &self.g_iface)
5149 .field("can_poll", &self.can_poll)
5150 .field("is_readable", &self.is_readable)
5151 .field("create_source", &self.create_source)
5152 .field("read_nonblocking", &self.read_nonblocking)
5153 .finish()
5154 }
5155}
5156
5157#[derive(Copy, Clone)]
5158#[repr(C)]
5159pub struct GPollableOutputStreamInterface {
5160 pub g_iface: gobject::GTypeInterface,
5161 pub can_poll: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
5162 pub is_writable: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>,
5163 pub create_source: Option<
5164 unsafe extern "C" fn(*mut GPollableOutputStream, *mut GCancellable) -> *mut glib::GSource,
5165 >,
5166 pub write_nonblocking: Option<
5167 unsafe extern "C" fn(
5168 *mut GPollableOutputStream,
5169 *mut u8,
5170 size_t,
5171 *mut *mut glib::GError,
5172 ) -> ssize_t,
5173 >,
5174 pub writev_nonblocking: Option<
5175 unsafe extern "C" fn(
5176 *mut GPollableOutputStream,
5177 *const GOutputVector,
5178 size_t,
5179 *mut size_t,
5180 *mut *mut glib::GError,
5181 ) -> GPollableReturn,
5182 >,
5183}
5184
5185impl ::std::fmt::Debug for GPollableOutputStreamInterface {
5186 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5187 f.debug_struct(&format!("GPollableOutputStreamInterface @ {self:p}"))
5188 .field("g_iface", &self.g_iface)
5189 .field("can_poll", &self.can_poll)
5190 .field("is_writable", &self.is_writable)
5191 .field("create_source", &self.create_source)
5192 .field("write_nonblocking", &self.write_nonblocking)
5193 .field("writev_nonblocking", &self.writev_nonblocking)
5194 .finish()
5195 }
5196}
5197
5198#[derive(Copy, Clone)]
5199#[repr(C)]
5200pub struct GPowerProfileMonitorInterface {
5201 pub g_iface: gobject::GTypeInterface,
5202}
5203
5204impl ::std::fmt::Debug for GPowerProfileMonitorInterface {
5205 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5206 f.debug_struct(&format!("GPowerProfileMonitorInterface @ {self:p}"))
5207 .finish()
5208 }
5209}
5210
5211#[derive(Copy, Clone)]
5212#[repr(C)]
5213pub struct GProxyAddressClass {
5214 pub parent_class: GInetSocketAddressClass,
5215}
5216
5217impl ::std::fmt::Debug for GProxyAddressClass {
5218 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5219 f.debug_struct(&format!("GProxyAddressClass @ {self:p}"))
5220 .field("parent_class", &self.parent_class)
5221 .finish()
5222 }
5223}
5224
5225#[derive(Copy, Clone)]
5226#[repr(C)]
5227pub struct GProxyAddressEnumeratorClass {
5228 pub parent_class: GSocketAddressEnumeratorClass,
5229 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5230 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5231 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5232 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5233 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5234 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5235 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5236}
5237
5238impl ::std::fmt::Debug for GProxyAddressEnumeratorClass {
5239 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5240 f.debug_struct(&format!("GProxyAddressEnumeratorClass @ {self:p}"))
5241 .field("_g_reserved1", &self._g_reserved1)
5242 .field("_g_reserved2", &self._g_reserved2)
5243 .field("_g_reserved3", &self._g_reserved3)
5244 .field("_g_reserved4", &self._g_reserved4)
5245 .field("_g_reserved5", &self._g_reserved5)
5246 .field("_g_reserved6", &self._g_reserved6)
5247 .field("_g_reserved7", &self._g_reserved7)
5248 .finish()
5249 }
5250}
5251
5252#[repr(C)]
5253#[allow(dead_code)]
5254pub struct _GProxyAddressEnumeratorPrivate {
5255 _data: [u8; 0],
5256 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5257}
5258
5259pub type GProxyAddressEnumeratorPrivate = _GProxyAddressEnumeratorPrivate;
5260
5261#[repr(C)]
5262#[allow(dead_code)]
5263pub struct _GProxyAddressPrivate {
5264 _data: [u8; 0],
5265 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5266}
5267
5268pub type GProxyAddressPrivate = _GProxyAddressPrivate;
5269
5270#[derive(Copy, Clone)]
5271#[repr(C)]
5272pub struct GProxyInterface {
5273 pub g_iface: gobject::GTypeInterface,
5274 pub connect: Option<
5275 unsafe extern "C" fn(
5276 *mut GProxy,
5277 *mut GIOStream,
5278 *mut GProxyAddress,
5279 *mut GCancellable,
5280 *mut *mut glib::GError,
5281 ) -> *mut GIOStream,
5282 >,
5283 pub connect_async: Option<
5284 unsafe extern "C" fn(
5285 *mut GProxy,
5286 *mut GIOStream,
5287 *mut GProxyAddress,
5288 *mut GCancellable,
5289 GAsyncReadyCallback,
5290 gpointer,
5291 ),
5292 >,
5293 pub connect_finish: Option<
5294 unsafe extern "C" fn(
5295 *mut GProxy,
5296 *mut GAsyncResult,
5297 *mut *mut glib::GError,
5298 ) -> *mut GIOStream,
5299 >,
5300 pub supports_hostname: Option<unsafe extern "C" fn(*mut GProxy) -> gboolean>,
5301}
5302
5303impl ::std::fmt::Debug for GProxyInterface {
5304 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5305 f.debug_struct(&format!("GProxyInterface @ {self:p}"))
5306 .field("g_iface", &self.g_iface)
5307 .field("connect", &self.connect)
5308 .field("connect_async", &self.connect_async)
5309 .field("connect_finish", &self.connect_finish)
5310 .field("supports_hostname", &self.supports_hostname)
5311 .finish()
5312 }
5313}
5314
5315#[derive(Copy, Clone)]
5316#[repr(C)]
5317pub struct GProxyResolverInterface {
5318 pub g_iface: gobject::GTypeInterface,
5319 pub is_supported: Option<unsafe extern "C" fn(*mut GProxyResolver) -> gboolean>,
5320 pub lookup: Option<
5321 unsafe extern "C" fn(
5322 *mut GProxyResolver,
5323 *const c_char,
5324 *mut GCancellable,
5325 *mut *mut glib::GError,
5326 ) -> *mut *mut c_char,
5327 >,
5328 pub lookup_async: Option<
5329 unsafe extern "C" fn(
5330 *mut GProxyResolver,
5331 *const c_char,
5332 *mut GCancellable,
5333 GAsyncReadyCallback,
5334 gpointer,
5335 ),
5336 >,
5337 pub lookup_finish: Option<
5338 unsafe extern "C" fn(
5339 *mut GProxyResolver,
5340 *mut GAsyncResult,
5341 *mut *mut glib::GError,
5342 ) -> *mut *mut c_char,
5343 >,
5344}
5345
5346impl ::std::fmt::Debug for GProxyResolverInterface {
5347 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5348 f.debug_struct(&format!("GProxyResolverInterface @ {self:p}"))
5349 .field("g_iface", &self.g_iface)
5350 .field("is_supported", &self.is_supported)
5351 .field("lookup", &self.lookup)
5352 .field("lookup_async", &self.lookup_async)
5353 .field("lookup_finish", &self.lookup_finish)
5354 .finish()
5355 }
5356}
5357
5358#[derive(Copy, Clone)]
5359#[repr(C)]
5360pub struct GRemoteActionGroupInterface {
5361 pub g_iface: gobject::GTypeInterface,
5362 pub activate_action_full: Option<
5363 unsafe extern "C" fn(
5364 *mut GRemoteActionGroup,
5365 *const c_char,
5366 *mut glib::GVariant,
5367 *mut glib::GVariant,
5368 ),
5369 >,
5370 pub change_action_state_full: Option<
5371 unsafe extern "C" fn(
5372 *mut GRemoteActionGroup,
5373 *const c_char,
5374 *mut glib::GVariant,
5375 *mut glib::GVariant,
5376 ),
5377 >,
5378}
5379
5380impl ::std::fmt::Debug for GRemoteActionGroupInterface {
5381 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5382 f.debug_struct(&format!("GRemoteActionGroupInterface @ {self:p}"))
5383 .field("g_iface", &self.g_iface)
5384 .field("activate_action_full", &self.activate_action_full)
5385 .field("change_action_state_full", &self.change_action_state_full)
5386 .finish()
5387 }
5388}
5389
5390#[derive(Copy, Clone)]
5391#[repr(C)]
5392pub struct GResolverClass {
5393 pub parent_class: gobject::GObjectClass,
5394 pub reload: Option<unsafe extern "C" fn(*mut GResolver)>,
5395 pub lookup_by_name: Option<
5396 unsafe extern "C" fn(
5397 *mut GResolver,
5398 *const c_char,
5399 *mut GCancellable,
5400 *mut *mut glib::GError,
5401 ) -> *mut glib::GList,
5402 >,
5403 pub lookup_by_name_async: Option<
5404 unsafe extern "C" fn(
5405 *mut GResolver,
5406 *const c_char,
5407 *mut GCancellable,
5408 GAsyncReadyCallback,
5409 gpointer,
5410 ),
5411 >,
5412 pub lookup_by_name_finish: Option<
5413 unsafe extern "C" fn(
5414 *mut GResolver,
5415 *mut GAsyncResult,
5416 *mut *mut glib::GError,
5417 ) -> *mut glib::GList,
5418 >,
5419 pub lookup_by_address: Option<
5420 unsafe extern "C" fn(
5421 *mut GResolver,
5422 *mut GInetAddress,
5423 *mut GCancellable,
5424 *mut *mut glib::GError,
5425 ) -> *mut c_char,
5426 >,
5427 pub lookup_by_address_async: Option<
5428 unsafe extern "C" fn(
5429 *mut GResolver,
5430 *mut GInetAddress,
5431 *mut GCancellable,
5432 GAsyncReadyCallback,
5433 gpointer,
5434 ),
5435 >,
5436 pub lookup_by_address_finish: Option<
5437 unsafe extern "C" fn(
5438 *mut GResolver,
5439 *mut GAsyncResult,
5440 *mut *mut glib::GError,
5441 ) -> *mut c_char,
5442 >,
5443 pub lookup_service: Option<
5444 unsafe extern "C" fn(
5445 *mut GResolver,
5446 *const c_char,
5447 *mut GCancellable,
5448 *mut *mut glib::GError,
5449 ) -> *mut glib::GList,
5450 >,
5451 pub lookup_service_async: Option<
5452 unsafe extern "C" fn(
5453 *mut GResolver,
5454 *const c_char,
5455 *mut GCancellable,
5456 GAsyncReadyCallback,
5457 gpointer,
5458 ),
5459 >,
5460 pub lookup_service_finish: Option<
5461 unsafe extern "C" fn(
5462 *mut GResolver,
5463 *mut GAsyncResult,
5464 *mut *mut glib::GError,
5465 ) -> *mut glib::GList,
5466 >,
5467 pub lookup_records: Option<
5468 unsafe extern "C" fn(
5469 *mut GResolver,
5470 *const c_char,
5471 GResolverRecordType,
5472 *mut GCancellable,
5473 *mut *mut glib::GError,
5474 ) -> *mut glib::GList,
5475 >,
5476 pub lookup_records_async: Option<
5477 unsafe extern "C" fn(
5478 *mut GResolver,
5479 *const c_char,
5480 GResolverRecordType,
5481 *mut GCancellable,
5482 GAsyncReadyCallback,
5483 gpointer,
5484 ),
5485 >,
5486 pub lookup_records_finish: Option<
5487 unsafe extern "C" fn(
5488 *mut GResolver,
5489 *mut GAsyncResult,
5490 *mut *mut glib::GError,
5491 ) -> *mut glib::GList,
5492 >,
5493 pub lookup_by_name_with_flags_async: Option<
5494 unsafe extern "C" fn(
5495 *mut GResolver,
5496 *const c_char,
5497 GResolverNameLookupFlags,
5498 *mut GCancellable,
5499 GAsyncReadyCallback,
5500 gpointer,
5501 ),
5502 >,
5503 pub lookup_by_name_with_flags_finish: Option<
5504 unsafe extern "C" fn(
5505 *mut GResolver,
5506 *mut GAsyncResult,
5507 *mut *mut glib::GError,
5508 ) -> *mut glib::GList,
5509 >,
5510 pub lookup_by_name_with_flags: Option<
5511 unsafe extern "C" fn(
5512 *mut GResolver,
5513 *const c_char,
5514 GResolverNameLookupFlags,
5515 *mut GCancellable,
5516 *mut *mut glib::GError,
5517 ) -> *mut glib::GList,
5518 >,
5519}
5520
5521impl ::std::fmt::Debug for GResolverClass {
5522 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5523 f.debug_struct(&format!("GResolverClass @ {self:p}"))
5524 .field("parent_class", &self.parent_class)
5525 .field("reload", &self.reload)
5526 .field("lookup_by_name", &self.lookup_by_name)
5527 .field("lookup_by_name_async", &self.lookup_by_name_async)
5528 .field("lookup_by_name_finish", &self.lookup_by_name_finish)
5529 .field("lookup_by_address", &self.lookup_by_address)
5530 .field("lookup_by_address_async", &self.lookup_by_address_async)
5531 .field("lookup_by_address_finish", &self.lookup_by_address_finish)
5532 .field("lookup_service", &self.lookup_service)
5533 .field("lookup_service_async", &self.lookup_service_async)
5534 .field("lookup_service_finish", &self.lookup_service_finish)
5535 .field("lookup_records", &self.lookup_records)
5536 .field("lookup_records_async", &self.lookup_records_async)
5537 .field("lookup_records_finish", &self.lookup_records_finish)
5538 .field(
5539 "lookup_by_name_with_flags_async",
5540 &self.lookup_by_name_with_flags_async,
5541 )
5542 .field(
5543 "lookup_by_name_with_flags_finish",
5544 &self.lookup_by_name_with_flags_finish,
5545 )
5546 .field("lookup_by_name_with_flags", &self.lookup_by_name_with_flags)
5547 .finish()
5548 }
5549}
5550
5551#[repr(C)]
5552#[allow(dead_code)]
5553pub struct _GResolverPrivate {
5554 _data: [u8; 0],
5555 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5556}
5557
5558pub type GResolverPrivate = _GResolverPrivate;
5559
5560#[repr(C)]
5561#[allow(dead_code)]
5562pub struct GResource {
5563 _data: [u8; 0],
5564 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5565}
5566
5567impl ::std::fmt::Debug for GResource {
5568 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5569 f.debug_struct(&format!("GResource @ {self:p}")).finish()
5570 }
5571}
5572
5573#[derive(Copy, Clone)]
5574#[repr(C)]
5575pub struct GSeekableIface {
5576 pub g_iface: gobject::GTypeInterface,
5577 pub tell: Option<unsafe extern "C" fn(*mut GSeekable) -> i64>,
5578 pub can_seek: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5579 pub seek: Option<
5580 unsafe extern "C" fn(
5581 *mut GSeekable,
5582 i64,
5583 glib::GSeekType,
5584 *mut GCancellable,
5585 *mut *mut glib::GError,
5586 ) -> gboolean,
5587 >,
5588 pub can_truncate: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>,
5589 pub truncate_fn: Option<
5590 unsafe extern "C" fn(
5591 *mut GSeekable,
5592 i64,
5593 *mut GCancellable,
5594 *mut *mut glib::GError,
5595 ) -> gboolean,
5596 >,
5597}
5598
5599impl ::std::fmt::Debug for GSeekableIface {
5600 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5601 f.debug_struct(&format!("GSeekableIface @ {self:p}"))
5602 .field("g_iface", &self.g_iface)
5603 .field("tell", &self.tell)
5604 .field("can_seek", &self.can_seek)
5605 .field("seek", &self.seek)
5606 .field("can_truncate", &self.can_truncate)
5607 .field("truncate_fn", &self.truncate_fn)
5608 .finish()
5609 }
5610}
5611
5612#[derive(Copy, Clone)]
5613#[repr(C)]
5614pub struct GSettingsBackendClass {
5615 pub parent_class: gobject::GObjectClass,
5616 pub read: Option<
5617 unsafe extern "C" fn(
5618 *mut GSettingsBackend,
5619 *const c_char,
5620 *const glib::GVariantType,
5621 gboolean,
5622 ) -> *mut glib::GVariant,
5623 >,
5624 pub get_writable:
5625 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> gboolean>,
5626 pub write: Option<
5627 unsafe extern "C" fn(
5628 *mut GSettingsBackend,
5629 *const c_char,
5630 *mut glib::GVariant,
5631 gpointer,
5632 ) -> gboolean,
5633 >,
5634 pub write_tree:
5635 Option<unsafe extern "C" fn(*mut GSettingsBackend, *mut glib::GTree, gpointer) -> gboolean>,
5636 pub reset: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char, gpointer)>,
5637 pub subscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5638 pub unsubscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>,
5639 pub sync: Option<unsafe extern "C" fn(*mut GSettingsBackend)>,
5640 pub get_permission:
5641 Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> *mut GPermission>,
5642 pub read_user_value: Option<
5643 unsafe extern "C" fn(
5644 *mut GSettingsBackend,
5645 *const c_char,
5646 *const glib::GVariantType,
5647 ) -> *mut glib::GVariant,
5648 >,
5649 pub padding: [gpointer; 23],
5650}
5651
5652impl ::std::fmt::Debug for GSettingsBackendClass {
5653 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5654 f.debug_struct(&format!("GSettingsBackendClass @ {self:p}"))
5655 .field("parent_class", &self.parent_class)
5656 .field("read", &self.read)
5657 .field("get_writable", &self.get_writable)
5658 .field("write", &self.write)
5659 .field("write_tree", &self.write_tree)
5660 .field("reset", &self.reset)
5661 .field("subscribe", &self.subscribe)
5662 .field("unsubscribe", &self.unsubscribe)
5663 .field("sync", &self.sync)
5664 .field("get_permission", &self.get_permission)
5665 .field("read_user_value", &self.read_user_value)
5666 .finish()
5667 }
5668}
5669
5670#[repr(C)]
5671#[allow(dead_code)]
5672pub struct _GSettingsBackendPrivate {
5673 _data: [u8; 0],
5674 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5675}
5676
5677pub type GSettingsBackendPrivate = _GSettingsBackendPrivate;
5678
5679#[derive(Copy, Clone)]
5680#[repr(C)]
5681pub struct GSettingsClass {
5682 pub parent_class: gobject::GObjectClass,
5683 pub writable_changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5684 pub changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>,
5685 pub writable_change_event:
5686 Option<unsafe extern "C" fn(*mut GSettings, glib::GQuark) -> gboolean>,
5687 pub change_event:
5688 Option<unsafe extern "C" fn(*mut GSettings, *const glib::GQuark, c_int) -> gboolean>,
5689 pub padding: [gpointer; 20],
5690}
5691
5692impl ::std::fmt::Debug for GSettingsClass {
5693 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5694 f.debug_struct(&format!("GSettingsClass @ {self:p}"))
5695 .field("parent_class", &self.parent_class)
5696 .field("writable_changed", &self.writable_changed)
5697 .field("changed", &self.changed)
5698 .field("writable_change_event", &self.writable_change_event)
5699 .field("change_event", &self.change_event)
5700 .field("padding", &self.padding)
5701 .finish()
5702 }
5703}
5704
5705#[repr(C)]
5706#[allow(dead_code)]
5707pub struct _GSettingsPrivate {
5708 _data: [u8; 0],
5709 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5710}
5711
5712pub type GSettingsPrivate = _GSettingsPrivate;
5713
5714#[repr(C)]
5715#[allow(dead_code)]
5716pub struct GSettingsSchema {
5717 _data: [u8; 0],
5718 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5719}
5720
5721impl ::std::fmt::Debug for GSettingsSchema {
5722 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5723 f.debug_struct(&format!("GSettingsSchema @ {self:p}"))
5724 .finish()
5725 }
5726}
5727
5728#[repr(C)]
5729#[allow(dead_code)]
5730pub struct GSettingsSchemaKey {
5731 _data: [u8; 0],
5732 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5733}
5734
5735impl ::std::fmt::Debug for GSettingsSchemaKey {
5736 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5737 f.debug_struct(&format!("GSettingsSchemaKey @ {self:p}"))
5738 .finish()
5739 }
5740}
5741
5742#[repr(C)]
5743#[allow(dead_code)]
5744pub struct GSettingsSchemaSource {
5745 _data: [u8; 0],
5746 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5747}
5748
5749impl ::std::fmt::Debug for GSettingsSchemaSource {
5750 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5751 f.debug_struct(&format!("GSettingsSchemaSource @ {self:p}"))
5752 .finish()
5753 }
5754}
5755
5756#[derive(Copy, Clone)]
5757#[repr(C)]
5758pub struct GSimpleActionGroupClass {
5759 pub parent_class: gobject::GObjectClass,
5760 pub padding: [gpointer; 12],
5761}
5762
5763impl ::std::fmt::Debug for GSimpleActionGroupClass {
5764 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5765 f.debug_struct(&format!("GSimpleActionGroupClass @ {self:p}"))
5766 .finish()
5767 }
5768}
5769
5770#[repr(C)]
5771#[allow(dead_code)]
5772pub struct _GSimpleActionGroupPrivate {
5773 _data: [u8; 0],
5774 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5775}
5776
5777pub type GSimpleActionGroupPrivate = _GSimpleActionGroupPrivate;
5778
5779#[repr(C)]
5780#[allow(dead_code)]
5781pub struct _GSimpleAsyncResultClass {
5782 _data: [u8; 0],
5783 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5784}
5785
5786pub type GSimpleAsyncResultClass = _GSimpleAsyncResultClass;
5787
5788#[derive(Copy, Clone)]
5789#[repr(C)]
5790pub struct GSimpleProxyResolverClass {
5791 pub parent_class: gobject::GObjectClass,
5792 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5793 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5794 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5795 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5796 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5797}
5798
5799impl ::std::fmt::Debug for GSimpleProxyResolverClass {
5800 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5801 f.debug_struct(&format!("GSimpleProxyResolverClass @ {self:p}"))
5802 .field("parent_class", &self.parent_class)
5803 .field("_g_reserved1", &self._g_reserved1)
5804 .field("_g_reserved2", &self._g_reserved2)
5805 .field("_g_reserved3", &self._g_reserved3)
5806 .field("_g_reserved4", &self._g_reserved4)
5807 .field("_g_reserved5", &self._g_reserved5)
5808 .finish()
5809 }
5810}
5811
5812#[repr(C)]
5813#[allow(dead_code)]
5814pub struct _GSimpleProxyResolverPrivate {
5815 _data: [u8; 0],
5816 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5817}
5818
5819pub type GSimpleProxyResolverPrivate = _GSimpleProxyResolverPrivate;
5820
5821#[derive(Copy, Clone)]
5822#[repr(C)]
5823pub struct GSocketAddressClass {
5824 pub parent_class: gobject::GObjectClass,
5825 pub get_family: Option<unsafe extern "C" fn(*mut GSocketAddress) -> GSocketFamily>,
5826 pub get_native_size: Option<unsafe extern "C" fn(*mut GSocketAddress) -> ssize_t>,
5827 pub to_native: Option<
5828 unsafe extern "C" fn(
5829 *mut GSocketAddress,
5830 gpointer,
5831 size_t,
5832 *mut *mut glib::GError,
5833 ) -> gboolean,
5834 >,
5835}
5836
5837impl ::std::fmt::Debug for GSocketAddressClass {
5838 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5839 f.debug_struct(&format!("GSocketAddressClass @ {self:p}"))
5840 .field("parent_class", &self.parent_class)
5841 .field("get_family", &self.get_family)
5842 .field("get_native_size", &self.get_native_size)
5843 .field("to_native", &self.to_native)
5844 .finish()
5845 }
5846}
5847
5848#[derive(Copy, Clone)]
5849#[repr(C)]
5850pub struct GSocketAddressEnumeratorClass {
5851 pub parent_class: gobject::GObjectClass,
5852 pub next: Option<
5853 unsafe extern "C" fn(
5854 *mut GSocketAddressEnumerator,
5855 *mut GCancellable,
5856 *mut *mut glib::GError,
5857 ) -> *mut GSocketAddress,
5858 >,
5859 pub next_async: Option<
5860 unsafe extern "C" fn(
5861 *mut GSocketAddressEnumerator,
5862 *mut GCancellable,
5863 GAsyncReadyCallback,
5864 gpointer,
5865 ),
5866 >,
5867 pub next_finish: Option<
5868 unsafe extern "C" fn(
5869 *mut GSocketAddressEnumerator,
5870 *mut GAsyncResult,
5871 *mut *mut glib::GError,
5872 ) -> *mut GSocketAddress,
5873 >,
5874}
5875
5876impl ::std::fmt::Debug for GSocketAddressEnumeratorClass {
5877 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5878 f.debug_struct(&format!("GSocketAddressEnumeratorClass @ {self:p}"))
5879 .field("next", &self.next)
5880 .field("next_async", &self.next_async)
5881 .field("next_finish", &self.next_finish)
5882 .finish()
5883 }
5884}
5885
5886#[derive(Copy, Clone)]
5887#[repr(C)]
5888pub struct GSocketClass {
5889 pub parent_class: gobject::GObjectClass,
5890 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5891 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5892 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5893 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5894 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5895 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5896 pub _g_reserved7: Option<unsafe extern "C" fn()>,
5897 pub _g_reserved8: Option<unsafe extern "C" fn()>,
5898 pub _g_reserved9: Option<unsafe extern "C" fn()>,
5899 pub _g_reserved10: Option<unsafe extern "C" fn()>,
5900}
5901
5902impl ::std::fmt::Debug for GSocketClass {
5903 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5904 f.debug_struct(&format!("GSocketClass @ {self:p}"))
5905 .field("parent_class", &self.parent_class)
5906 .field("_g_reserved1", &self._g_reserved1)
5907 .field("_g_reserved2", &self._g_reserved2)
5908 .field("_g_reserved3", &self._g_reserved3)
5909 .field("_g_reserved4", &self._g_reserved4)
5910 .field("_g_reserved5", &self._g_reserved5)
5911 .field("_g_reserved6", &self._g_reserved6)
5912 .field("_g_reserved7", &self._g_reserved7)
5913 .field("_g_reserved8", &self._g_reserved8)
5914 .field("_g_reserved9", &self._g_reserved9)
5915 .field("_g_reserved10", &self._g_reserved10)
5916 .finish()
5917 }
5918}
5919
5920#[derive(Copy, Clone)]
5921#[repr(C)]
5922pub struct GSocketClientClass {
5923 pub parent_class: gobject::GObjectClass,
5924 pub event: Option<
5925 unsafe extern "C" fn(
5926 *mut GSocketClient,
5927 GSocketClientEvent,
5928 *mut GSocketConnectable,
5929 *mut GIOStream,
5930 ),
5931 >,
5932 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5933 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5934 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5935 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5936}
5937
5938impl ::std::fmt::Debug for GSocketClientClass {
5939 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5940 f.debug_struct(&format!("GSocketClientClass @ {self:p}"))
5941 .field("parent_class", &self.parent_class)
5942 .field("event", &self.event)
5943 .field("_g_reserved1", &self._g_reserved1)
5944 .field("_g_reserved2", &self._g_reserved2)
5945 .field("_g_reserved3", &self._g_reserved3)
5946 .field("_g_reserved4", &self._g_reserved4)
5947 .finish()
5948 }
5949}
5950
5951#[repr(C)]
5952#[allow(dead_code)]
5953pub struct _GSocketClientPrivate {
5954 _data: [u8; 0],
5955 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
5956}
5957
5958pub type GSocketClientPrivate = _GSocketClientPrivate;
5959
5960#[derive(Copy, Clone)]
5961#[repr(C)]
5962pub struct GSocketConnectableIface {
5963 pub g_iface: gobject::GTypeInterface,
5964 pub enumerate:
5965 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5966 pub proxy_enumerate:
5967 Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>,
5968 pub to_string: Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut c_char>,
5969}
5970
5971impl ::std::fmt::Debug for GSocketConnectableIface {
5972 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5973 f.debug_struct(&format!("GSocketConnectableIface @ {self:p}"))
5974 .field("g_iface", &self.g_iface)
5975 .field("enumerate", &self.enumerate)
5976 .field("proxy_enumerate", &self.proxy_enumerate)
5977 .field("to_string", &self.to_string)
5978 .finish()
5979 }
5980}
5981
5982#[derive(Copy, Clone)]
5983#[repr(C)]
5984pub struct GSocketConnectionClass {
5985 pub parent_class: GIOStreamClass,
5986 pub _g_reserved1: Option<unsafe extern "C" fn()>,
5987 pub _g_reserved2: Option<unsafe extern "C" fn()>,
5988 pub _g_reserved3: Option<unsafe extern "C" fn()>,
5989 pub _g_reserved4: Option<unsafe extern "C" fn()>,
5990 pub _g_reserved5: Option<unsafe extern "C" fn()>,
5991 pub _g_reserved6: Option<unsafe extern "C" fn()>,
5992}
5993
5994impl ::std::fmt::Debug for GSocketConnectionClass {
5995 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5996 f.debug_struct(&format!("GSocketConnectionClass @ {self:p}"))
5997 .field("parent_class", &self.parent_class)
5998 .field("_g_reserved1", &self._g_reserved1)
5999 .field("_g_reserved2", &self._g_reserved2)
6000 .field("_g_reserved3", &self._g_reserved3)
6001 .field("_g_reserved4", &self._g_reserved4)
6002 .field("_g_reserved5", &self._g_reserved5)
6003 .field("_g_reserved6", &self._g_reserved6)
6004 .finish()
6005 }
6006}
6007
6008#[repr(C)]
6009#[allow(dead_code)]
6010pub struct _GSocketConnectionPrivate {
6011 _data: [u8; 0],
6012 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6013}
6014
6015pub type GSocketConnectionPrivate = _GSocketConnectionPrivate;
6016
6017#[derive(Copy, Clone)]
6018#[repr(C)]
6019pub struct GSocketControlMessageClass {
6020 pub parent_class: gobject::GObjectClass,
6021 pub get_size: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> size_t>,
6022 pub get_level: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
6023 pub get_type: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>,
6024 pub serialize: Option<unsafe extern "C" fn(*mut GSocketControlMessage, gpointer)>,
6025 pub deserialize:
6026 Option<unsafe extern "C" fn(c_int, c_int, size_t, gpointer) -> *mut GSocketControlMessage>,
6027 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6028 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6029 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6030 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6031 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6032}
6033
6034impl ::std::fmt::Debug for GSocketControlMessageClass {
6035 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6036 f.debug_struct(&format!("GSocketControlMessageClass @ {self:p}"))
6037 .field("parent_class", &self.parent_class)
6038 .field("get_size", &self.get_size)
6039 .field("get_level", &self.get_level)
6040 .field("get_type", &self.get_type)
6041 .field("serialize", &self.serialize)
6042 .field("deserialize", &self.deserialize)
6043 .field("_g_reserved1", &self._g_reserved1)
6044 .field("_g_reserved2", &self._g_reserved2)
6045 .field("_g_reserved3", &self._g_reserved3)
6046 .field("_g_reserved4", &self._g_reserved4)
6047 .field("_g_reserved5", &self._g_reserved5)
6048 .finish()
6049 }
6050}
6051
6052#[repr(C)]
6053#[allow(dead_code)]
6054pub struct _GSocketControlMessagePrivate {
6055 _data: [u8; 0],
6056 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6057}
6058
6059pub type GSocketControlMessagePrivate = _GSocketControlMessagePrivate;
6060
6061#[derive(Copy, Clone)]
6062#[repr(C)]
6063pub struct GSocketListenerClass {
6064 pub parent_class: gobject::GObjectClass,
6065 pub changed: Option<unsafe extern "C" fn(*mut GSocketListener)>,
6066 pub event:
6067 Option<unsafe extern "C" fn(*mut GSocketListener, GSocketListenerEvent, *mut GSocket)>,
6068 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6069 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6070 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6071 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6072 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6073}
6074
6075impl ::std::fmt::Debug for GSocketListenerClass {
6076 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6077 f.debug_struct(&format!("GSocketListenerClass @ {self:p}"))
6078 .field("parent_class", &self.parent_class)
6079 .field("changed", &self.changed)
6080 .field("event", &self.event)
6081 .field("_g_reserved2", &self._g_reserved2)
6082 .field("_g_reserved3", &self._g_reserved3)
6083 .field("_g_reserved4", &self._g_reserved4)
6084 .field("_g_reserved5", &self._g_reserved5)
6085 .field("_g_reserved6", &self._g_reserved6)
6086 .finish()
6087 }
6088}
6089
6090#[repr(C)]
6091#[allow(dead_code)]
6092pub struct _GSocketListenerPrivate {
6093 _data: [u8; 0],
6094 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6095}
6096
6097pub type GSocketListenerPrivate = _GSocketListenerPrivate;
6098
6099#[repr(C)]
6100#[allow(dead_code)]
6101pub struct _GSocketPrivate {
6102 _data: [u8; 0],
6103 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6104}
6105
6106pub type GSocketPrivate = _GSocketPrivate;
6107
6108#[derive(Copy, Clone)]
6109#[repr(C)]
6110pub struct GSocketServiceClass {
6111 pub parent_class: GSocketListenerClass,
6112 pub incoming: Option<
6113 unsafe extern "C" fn(
6114 *mut GSocketService,
6115 *mut GSocketConnection,
6116 *mut gobject::GObject,
6117 ) -> gboolean,
6118 >,
6119 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6120 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6121 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6122 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6123 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6124 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6125}
6126
6127impl ::std::fmt::Debug for GSocketServiceClass {
6128 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6129 f.debug_struct(&format!("GSocketServiceClass @ {self:p}"))
6130 .field("parent_class", &self.parent_class)
6131 .field("incoming", &self.incoming)
6132 .field("_g_reserved1", &self._g_reserved1)
6133 .field("_g_reserved2", &self._g_reserved2)
6134 .field("_g_reserved3", &self._g_reserved3)
6135 .field("_g_reserved4", &self._g_reserved4)
6136 .field("_g_reserved5", &self._g_reserved5)
6137 .field("_g_reserved6", &self._g_reserved6)
6138 .finish()
6139 }
6140}
6141
6142#[repr(C)]
6143#[allow(dead_code)]
6144pub struct _GSocketServicePrivate {
6145 _data: [u8; 0],
6146 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6147}
6148
6149pub type GSocketServicePrivate = _GSocketServicePrivate;
6150
6151#[repr(C)]
6152#[allow(dead_code)]
6153pub struct GSrvTarget {
6154 _data: [u8; 0],
6155 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6156}
6157
6158impl ::std::fmt::Debug for GSrvTarget {
6159 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6160 f.debug_struct(&format!("GSrvTarget @ {self:p}")).finish()
6161 }
6162}
6163
6164#[derive(Copy, Clone)]
6165#[repr(C)]
6166pub struct GStaticResource {
6167 pub data: *const u8,
6168 pub data_len: size_t,
6169 pub resource: *mut GResource,
6170 pub next: *mut GStaticResource,
6171 pub padding: gpointer,
6172}
6173
6174impl ::std::fmt::Debug for GStaticResource {
6175 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6176 f.debug_struct(&format!("GStaticResource @ {self:p}"))
6177 .finish()
6178 }
6179}
6180
6181#[repr(C)]
6182#[allow(dead_code)]
6183pub struct _GTaskClass {
6184 _data: [u8; 0],
6185 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6186}
6187
6188pub type GTaskClass = _GTaskClass;
6189
6190#[derive(Copy, Clone)]
6191#[repr(C)]
6192pub struct GTcpConnectionClass {
6193 pub parent_class: GSocketConnectionClass,
6194}
6195
6196impl ::std::fmt::Debug for GTcpConnectionClass {
6197 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6198 f.debug_struct(&format!("GTcpConnectionClass @ {self:p}"))
6199 .field("parent_class", &self.parent_class)
6200 .finish()
6201 }
6202}
6203
6204#[repr(C)]
6205#[allow(dead_code)]
6206pub struct _GTcpConnectionPrivate {
6207 _data: [u8; 0],
6208 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6209}
6210
6211pub type GTcpConnectionPrivate = _GTcpConnectionPrivate;
6212
6213#[derive(Copy, Clone)]
6214#[repr(C)]
6215pub struct GTcpWrapperConnectionClass {
6216 pub parent_class: GTcpConnectionClass,
6217}
6218
6219impl ::std::fmt::Debug for GTcpWrapperConnectionClass {
6220 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6221 f.debug_struct(&format!("GTcpWrapperConnectionClass @ {self:p}"))
6222 .field("parent_class", &self.parent_class)
6223 .finish()
6224 }
6225}
6226
6227#[repr(C)]
6228#[allow(dead_code)]
6229pub struct _GTcpWrapperConnectionPrivate {
6230 _data: [u8; 0],
6231 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6232}
6233
6234pub type GTcpWrapperConnectionPrivate = _GTcpWrapperConnectionPrivate;
6235
6236#[repr(C)]
6237#[allow(dead_code)]
6238pub struct _GThemedIconClass {
6239 _data: [u8; 0],
6240 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6241}
6242
6243pub type GThemedIconClass = _GThemedIconClass;
6244
6245#[derive(Copy, Clone)]
6246#[repr(C)]
6247pub struct GThreadedSocketServiceClass {
6248 pub parent_class: GSocketServiceClass,
6249 pub run: Option<
6250 unsafe extern "C" fn(
6251 *mut GThreadedSocketService,
6252 *mut GSocketConnection,
6253 *mut gobject::GObject,
6254 ) -> gboolean,
6255 >,
6256 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6257 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6258 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6259 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6260 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6261}
6262
6263impl ::std::fmt::Debug for GThreadedSocketServiceClass {
6264 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6265 f.debug_struct(&format!("GThreadedSocketServiceClass @ {self:p}"))
6266 .field("parent_class", &self.parent_class)
6267 .field("run", &self.run)
6268 .field("_g_reserved1", &self._g_reserved1)
6269 .field("_g_reserved2", &self._g_reserved2)
6270 .field("_g_reserved3", &self._g_reserved3)
6271 .field("_g_reserved4", &self._g_reserved4)
6272 .field("_g_reserved5", &self._g_reserved5)
6273 .finish()
6274 }
6275}
6276
6277#[repr(C)]
6278#[allow(dead_code)]
6279pub struct _GThreadedSocketServicePrivate {
6280 _data: [u8; 0],
6281 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6282}
6283
6284pub type GThreadedSocketServicePrivate = _GThreadedSocketServicePrivate;
6285
6286#[derive(Copy, Clone)]
6287#[repr(C)]
6288pub struct GTlsBackendInterface {
6289 pub g_iface: gobject::GTypeInterface,
6290 pub supports_tls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
6291 pub get_certificate_type: Option<unsafe extern "C" fn() -> GType>,
6292 pub get_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
6293 pub get_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
6294 pub get_file_database_type: Option<unsafe extern "C" fn() -> GType>,
6295 pub get_default_database: Option<unsafe extern "C" fn(*mut GTlsBackend) -> *mut GTlsDatabase>,
6296 pub supports_dtls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>,
6297 pub get_dtls_client_connection_type: Option<unsafe extern "C" fn() -> GType>,
6298 pub get_dtls_server_connection_type: Option<unsafe extern "C" fn() -> GType>,
6299}
6300
6301impl ::std::fmt::Debug for GTlsBackendInterface {
6302 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6303 f.debug_struct(&format!("GTlsBackendInterface @ {self:p}"))
6304 .field("g_iface", &self.g_iface)
6305 .field("supports_tls", &self.supports_tls)
6306 .field("get_certificate_type", &self.get_certificate_type)
6307 .field(
6308 "get_client_connection_type",
6309 &self.get_client_connection_type,
6310 )
6311 .field(
6312 "get_server_connection_type",
6313 &self.get_server_connection_type,
6314 )
6315 .field("get_file_database_type", &self.get_file_database_type)
6316 .field("get_default_database", &self.get_default_database)
6317 .field("supports_dtls", &self.supports_dtls)
6318 .field(
6319 "get_dtls_client_connection_type",
6320 &self.get_dtls_client_connection_type,
6321 )
6322 .field(
6323 "get_dtls_server_connection_type",
6324 &self.get_dtls_server_connection_type,
6325 )
6326 .finish()
6327 }
6328}
6329
6330#[derive(Copy, Clone)]
6331#[repr(C)]
6332pub struct GTlsCertificateClass {
6333 pub parent_class: gobject::GObjectClass,
6334 pub verify: Option<
6335 unsafe extern "C" fn(
6336 *mut GTlsCertificate,
6337 *mut GSocketConnectable,
6338 *mut GTlsCertificate,
6339 ) -> GTlsCertificateFlags,
6340 >,
6341 pub padding: [gpointer; 8],
6342}
6343
6344impl ::std::fmt::Debug for GTlsCertificateClass {
6345 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6346 f.debug_struct(&format!("GTlsCertificateClass @ {self:p}"))
6347 .field("parent_class", &self.parent_class)
6348 .field("verify", &self.verify)
6349 .finish()
6350 }
6351}
6352
6353#[repr(C)]
6354#[allow(dead_code)]
6355pub struct _GTlsCertificatePrivate {
6356 _data: [u8; 0],
6357 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6358}
6359
6360pub type GTlsCertificatePrivate = _GTlsCertificatePrivate;
6361
6362#[derive(Copy, Clone)]
6363#[repr(C)]
6364pub struct GTlsClientConnectionInterface {
6365 pub g_iface: gobject::GTypeInterface,
6366 pub copy_session_state:
6367 Option<unsafe extern "C" fn(*mut GTlsClientConnection, *mut GTlsClientConnection)>,
6368}
6369
6370impl ::std::fmt::Debug for GTlsClientConnectionInterface {
6371 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6372 f.debug_struct(&format!("GTlsClientConnectionInterface @ {self:p}"))
6373 .field("g_iface", &self.g_iface)
6374 .field("copy_session_state", &self.copy_session_state)
6375 .finish()
6376 }
6377}
6378
6379#[derive(Copy, Clone)]
6380#[repr(C)]
6381pub struct GTlsConnectionClass {
6382 pub parent_class: GIOStreamClass,
6383 pub accept_certificate: Option<
6384 unsafe extern "C" fn(
6385 *mut GTlsConnection,
6386 *mut GTlsCertificate,
6387 GTlsCertificateFlags,
6388 ) -> gboolean,
6389 >,
6390 pub handshake: Option<
6391 unsafe extern "C" fn(
6392 *mut GTlsConnection,
6393 *mut GCancellable,
6394 *mut *mut glib::GError,
6395 ) -> gboolean,
6396 >,
6397 pub handshake_async: Option<
6398 unsafe extern "C" fn(
6399 *mut GTlsConnection,
6400 c_int,
6401 *mut GCancellable,
6402 GAsyncReadyCallback,
6403 gpointer,
6404 ),
6405 >,
6406 pub handshake_finish: Option<
6407 unsafe extern "C" fn(
6408 *mut GTlsConnection,
6409 *mut GAsyncResult,
6410 *mut *mut glib::GError,
6411 ) -> gboolean,
6412 >,
6413 pub get_binding_data: Option<
6414 unsafe extern "C" fn(
6415 *mut GTlsConnection,
6416 GTlsChannelBindingType,
6417 *mut glib::GByteArray,
6418 *mut *mut glib::GError,
6419 ) -> gboolean,
6420 >,
6421 pub get_negotiated_protocol: Option<unsafe extern "C" fn(*mut GTlsConnection) -> *const c_char>,
6422 pub padding: [gpointer; 6],
6423}
6424
6425impl ::std::fmt::Debug for GTlsConnectionClass {
6426 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6427 f.debug_struct(&format!("GTlsConnectionClass @ {self:p}"))
6428 .field("parent_class", &self.parent_class)
6429 .field("accept_certificate", &self.accept_certificate)
6430 .field("handshake", &self.handshake)
6431 .field("handshake_async", &self.handshake_async)
6432 .field("handshake_finish", &self.handshake_finish)
6433 .field("get_binding_data", &self.get_binding_data)
6434 .field("get_negotiated_protocol", &self.get_negotiated_protocol)
6435 .finish()
6436 }
6437}
6438
6439#[repr(C)]
6440#[allow(dead_code)]
6441pub struct _GTlsConnectionPrivate {
6442 _data: [u8; 0],
6443 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6444}
6445
6446pub type GTlsConnectionPrivate = _GTlsConnectionPrivate;
6447
6448#[derive(Copy, Clone)]
6449#[repr(C)]
6450pub struct GTlsDatabaseClass {
6451 pub parent_class: gobject::GObjectClass,
6452 pub verify_chain: Option<
6453 unsafe extern "C" fn(
6454 *mut GTlsDatabase,
6455 *mut GTlsCertificate,
6456 *const c_char,
6457 *mut GSocketConnectable,
6458 *mut GTlsInteraction,
6459 GTlsDatabaseVerifyFlags,
6460 *mut GCancellable,
6461 *mut *mut glib::GError,
6462 ) -> GTlsCertificateFlags,
6463 >,
6464 pub verify_chain_async: Option<
6465 unsafe extern "C" fn(
6466 *mut GTlsDatabase,
6467 *mut GTlsCertificate,
6468 *const c_char,
6469 *mut GSocketConnectable,
6470 *mut GTlsInteraction,
6471 GTlsDatabaseVerifyFlags,
6472 *mut GCancellable,
6473 GAsyncReadyCallback,
6474 gpointer,
6475 ),
6476 >,
6477 pub verify_chain_finish: Option<
6478 unsafe extern "C" fn(
6479 *mut GTlsDatabase,
6480 *mut GAsyncResult,
6481 *mut *mut glib::GError,
6482 ) -> GTlsCertificateFlags,
6483 >,
6484 pub create_certificate_handle:
6485 Option<unsafe extern "C" fn(*mut GTlsDatabase, *mut GTlsCertificate) -> *mut c_char>,
6486 pub lookup_certificate_for_handle: Option<
6487 unsafe extern "C" fn(
6488 *mut GTlsDatabase,
6489 *const c_char,
6490 *mut GTlsInteraction,
6491 GTlsDatabaseLookupFlags,
6492 *mut GCancellable,
6493 *mut *mut glib::GError,
6494 ) -> *mut GTlsCertificate,
6495 >,
6496 pub lookup_certificate_for_handle_async: Option<
6497 unsafe extern "C" fn(
6498 *mut GTlsDatabase,
6499 *const c_char,
6500 *mut GTlsInteraction,
6501 GTlsDatabaseLookupFlags,
6502 *mut GCancellable,
6503 GAsyncReadyCallback,
6504 gpointer,
6505 ),
6506 >,
6507 pub lookup_certificate_for_handle_finish: Option<
6508 unsafe extern "C" fn(
6509 *mut GTlsDatabase,
6510 *mut GAsyncResult,
6511 *mut *mut glib::GError,
6512 ) -> *mut GTlsCertificate,
6513 >,
6514 pub lookup_certificate_issuer: Option<
6515 unsafe extern "C" fn(
6516 *mut GTlsDatabase,
6517 *mut GTlsCertificate,
6518 *mut GTlsInteraction,
6519 GTlsDatabaseLookupFlags,
6520 *mut GCancellable,
6521 *mut *mut glib::GError,
6522 ) -> *mut GTlsCertificate,
6523 >,
6524 pub lookup_certificate_issuer_async: Option<
6525 unsafe extern "C" fn(
6526 *mut GTlsDatabase,
6527 *mut GTlsCertificate,
6528 *mut GTlsInteraction,
6529 GTlsDatabaseLookupFlags,
6530 *mut GCancellable,
6531 GAsyncReadyCallback,
6532 gpointer,
6533 ),
6534 >,
6535 pub lookup_certificate_issuer_finish: Option<
6536 unsafe extern "C" fn(
6537 *mut GTlsDatabase,
6538 *mut GAsyncResult,
6539 *mut *mut glib::GError,
6540 ) -> *mut GTlsCertificate,
6541 >,
6542 pub lookup_certificates_issued_by: Option<
6543 unsafe extern "C" fn(
6544 *mut GTlsDatabase,
6545 *mut glib::GByteArray,
6546 *mut GTlsInteraction,
6547 GTlsDatabaseLookupFlags,
6548 *mut GCancellable,
6549 *mut *mut glib::GError,
6550 ) -> *mut glib::GList,
6551 >,
6552 pub lookup_certificates_issued_by_async: Option<
6553 unsafe extern "C" fn(
6554 *mut GTlsDatabase,
6555 *mut glib::GByteArray,
6556 *mut GTlsInteraction,
6557 GTlsDatabaseLookupFlags,
6558 *mut GCancellable,
6559 GAsyncReadyCallback,
6560 gpointer,
6561 ),
6562 >,
6563 pub lookup_certificates_issued_by_finish: Option<
6564 unsafe extern "C" fn(
6565 *mut GTlsDatabase,
6566 *mut GAsyncResult,
6567 *mut *mut glib::GError,
6568 ) -> *mut glib::GList,
6569 >,
6570 pub padding: [gpointer; 16],
6571}
6572
6573impl ::std::fmt::Debug for GTlsDatabaseClass {
6574 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6575 f.debug_struct(&format!("GTlsDatabaseClass @ {self:p}"))
6576 .field("parent_class", &self.parent_class)
6577 .field("verify_chain", &self.verify_chain)
6578 .field("verify_chain_async", &self.verify_chain_async)
6579 .field("verify_chain_finish", &self.verify_chain_finish)
6580 .field("create_certificate_handle", &self.create_certificate_handle)
6581 .field(
6582 "lookup_certificate_for_handle",
6583 &self.lookup_certificate_for_handle,
6584 )
6585 .field(
6586 "lookup_certificate_for_handle_async",
6587 &self.lookup_certificate_for_handle_async,
6588 )
6589 .field(
6590 "lookup_certificate_for_handle_finish",
6591 &self.lookup_certificate_for_handle_finish,
6592 )
6593 .field("lookup_certificate_issuer", &self.lookup_certificate_issuer)
6594 .field(
6595 "lookup_certificate_issuer_async",
6596 &self.lookup_certificate_issuer_async,
6597 )
6598 .field(
6599 "lookup_certificate_issuer_finish",
6600 &self.lookup_certificate_issuer_finish,
6601 )
6602 .field(
6603 "lookup_certificates_issued_by",
6604 &self.lookup_certificates_issued_by,
6605 )
6606 .field(
6607 "lookup_certificates_issued_by_async",
6608 &self.lookup_certificates_issued_by_async,
6609 )
6610 .field(
6611 "lookup_certificates_issued_by_finish",
6612 &self.lookup_certificates_issued_by_finish,
6613 )
6614 .finish()
6615 }
6616}
6617
6618#[repr(C)]
6619#[allow(dead_code)]
6620pub struct _GTlsDatabasePrivate {
6621 _data: [u8; 0],
6622 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6623}
6624
6625pub type GTlsDatabasePrivate = _GTlsDatabasePrivate;
6626
6627#[derive(Copy, Clone)]
6628#[repr(C)]
6629pub struct GTlsFileDatabaseInterface {
6630 pub g_iface: gobject::GTypeInterface,
6631 pub padding: [gpointer; 8],
6632}
6633
6634impl ::std::fmt::Debug for GTlsFileDatabaseInterface {
6635 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6636 f.debug_struct(&format!("GTlsFileDatabaseInterface @ {self:p}"))
6637 .field("g_iface", &self.g_iface)
6638 .finish()
6639 }
6640}
6641
6642#[derive(Copy, Clone)]
6643#[repr(C)]
6644pub struct GTlsInteractionClass {
6645 pub parent_class: gobject::GObjectClass,
6646 pub ask_password: Option<
6647 unsafe extern "C" fn(
6648 *mut GTlsInteraction,
6649 *mut GTlsPassword,
6650 *mut GCancellable,
6651 *mut *mut glib::GError,
6652 ) -> GTlsInteractionResult,
6653 >,
6654 pub ask_password_async: Option<
6655 unsafe extern "C" fn(
6656 *mut GTlsInteraction,
6657 *mut GTlsPassword,
6658 *mut GCancellable,
6659 GAsyncReadyCallback,
6660 gpointer,
6661 ),
6662 >,
6663 pub ask_password_finish: Option<
6664 unsafe extern "C" fn(
6665 *mut GTlsInteraction,
6666 *mut GAsyncResult,
6667 *mut *mut glib::GError,
6668 ) -> GTlsInteractionResult,
6669 >,
6670 pub request_certificate: Option<
6671 unsafe extern "C" fn(
6672 *mut GTlsInteraction,
6673 *mut GTlsConnection,
6674 GTlsCertificateRequestFlags,
6675 *mut GCancellable,
6676 *mut *mut glib::GError,
6677 ) -> GTlsInteractionResult,
6678 >,
6679 pub request_certificate_async: Option<
6680 unsafe extern "C" fn(
6681 *mut GTlsInteraction,
6682 *mut GTlsConnection,
6683 GTlsCertificateRequestFlags,
6684 *mut GCancellable,
6685 GAsyncReadyCallback,
6686 gpointer,
6687 ),
6688 >,
6689 pub request_certificate_finish: Option<
6690 unsafe extern "C" fn(
6691 *mut GTlsInteraction,
6692 *mut GAsyncResult,
6693 *mut *mut glib::GError,
6694 ) -> GTlsInteractionResult,
6695 >,
6696 pub padding: [gpointer; 21],
6697}
6698
6699impl ::std::fmt::Debug for GTlsInteractionClass {
6700 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6701 f.debug_struct(&format!("GTlsInteractionClass @ {self:p}"))
6702 .field("ask_password", &self.ask_password)
6703 .field("ask_password_async", &self.ask_password_async)
6704 .field("ask_password_finish", &self.ask_password_finish)
6705 .field("request_certificate", &self.request_certificate)
6706 .field("request_certificate_async", &self.request_certificate_async)
6707 .field(
6708 "request_certificate_finish",
6709 &self.request_certificate_finish,
6710 )
6711 .finish()
6712 }
6713}
6714
6715#[repr(C)]
6716#[allow(dead_code)]
6717pub struct _GTlsInteractionPrivate {
6718 _data: [u8; 0],
6719 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6720}
6721
6722pub type GTlsInteractionPrivate = _GTlsInteractionPrivate;
6723
6724#[derive(Copy, Clone)]
6725#[repr(C)]
6726pub struct GTlsPasswordClass {
6727 pub parent_class: gobject::GObjectClass,
6728 pub get_value: Option<unsafe extern "C" fn(*mut GTlsPassword, *mut size_t) -> *const u8>,
6729 pub set_value:
6730 Option<unsafe extern "C" fn(*mut GTlsPassword, *mut u8, ssize_t, glib::GDestroyNotify)>,
6731 pub get_default_warning: Option<unsafe extern "C" fn(*mut GTlsPassword) -> *const c_char>,
6732 pub padding: [gpointer; 4],
6733}
6734
6735impl ::std::fmt::Debug for GTlsPasswordClass {
6736 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6737 f.debug_struct(&format!("GTlsPasswordClass @ {self:p}"))
6738 .field("parent_class", &self.parent_class)
6739 .field("get_value", &self.get_value)
6740 .field("set_value", &self.set_value)
6741 .field("get_default_warning", &self.get_default_warning)
6742 .finish()
6743 }
6744}
6745
6746#[repr(C)]
6747#[allow(dead_code)]
6748pub struct _GTlsPasswordPrivate {
6749 _data: [u8; 0],
6750 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6751}
6752
6753pub type GTlsPasswordPrivate = _GTlsPasswordPrivate;
6754
6755#[derive(Copy, Clone)]
6756#[repr(C)]
6757pub struct GTlsServerConnectionInterface {
6758 pub g_iface: gobject::GTypeInterface,
6759}
6760
6761impl ::std::fmt::Debug for GTlsServerConnectionInterface {
6762 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6763 f.debug_struct(&format!("GTlsServerConnectionInterface @ {self:p}"))
6764 .field("g_iface", &self.g_iface)
6765 .finish()
6766 }
6767}
6768
6769#[derive(Copy, Clone)]
6770#[repr(C)]
6771pub struct GUnixConnectionClass {
6772 pub parent_class: GSocketConnectionClass,
6773}
6774
6775impl ::std::fmt::Debug for GUnixConnectionClass {
6776 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6777 f.debug_struct(&format!("GUnixConnectionClass @ {self:p}"))
6778 .field("parent_class", &self.parent_class)
6779 .finish()
6780 }
6781}
6782
6783#[repr(C)]
6784#[allow(dead_code)]
6785pub struct _GUnixConnectionPrivate {
6786 _data: [u8; 0],
6787 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6788}
6789
6790pub type GUnixConnectionPrivate = _GUnixConnectionPrivate;
6791
6792#[derive(Copy, Clone)]
6793#[repr(C)]
6794pub struct GUnixCredentialsMessageClass {
6795 pub parent_class: GSocketControlMessageClass,
6796 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6797 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6798}
6799
6800impl ::std::fmt::Debug for GUnixCredentialsMessageClass {
6801 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6802 f.debug_struct(&format!("GUnixCredentialsMessageClass @ {self:p}"))
6803 .field("parent_class", &self.parent_class)
6804 .field("_g_reserved1", &self._g_reserved1)
6805 .field("_g_reserved2", &self._g_reserved2)
6806 .finish()
6807 }
6808}
6809
6810#[repr(C)]
6811#[allow(dead_code)]
6812pub struct _GUnixCredentialsMessagePrivate {
6813 _data: [u8; 0],
6814 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6815}
6816
6817pub type GUnixCredentialsMessagePrivate = _GUnixCredentialsMessagePrivate;
6818
6819#[derive(Copy, Clone)]
6820#[repr(C)]
6821pub struct GUnixFDListClass {
6822 pub parent_class: gobject::GObjectClass,
6823 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6824 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6825 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6826 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6827 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6828}
6829
6830impl ::std::fmt::Debug for GUnixFDListClass {
6831 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6832 f.debug_struct(&format!("GUnixFDListClass @ {self:p}"))
6833 .field("parent_class", &self.parent_class)
6834 .field("_g_reserved1", &self._g_reserved1)
6835 .field("_g_reserved2", &self._g_reserved2)
6836 .field("_g_reserved3", &self._g_reserved3)
6837 .field("_g_reserved4", &self._g_reserved4)
6838 .field("_g_reserved5", &self._g_reserved5)
6839 .finish()
6840 }
6841}
6842
6843#[repr(C)]
6844#[allow(dead_code)]
6845pub struct _GUnixFDListPrivate {
6846 _data: [u8; 0],
6847 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6848}
6849
6850pub type GUnixFDListPrivate = _GUnixFDListPrivate;
6851
6852#[derive(Copy, Clone)]
6853#[repr(C)]
6854pub struct GUnixSocketAddressClass {
6855 pub parent_class: GSocketAddressClass,
6856}
6857
6858impl ::std::fmt::Debug for GUnixSocketAddressClass {
6859 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6860 f.debug_struct(&format!("GUnixSocketAddressClass @ {self:p}"))
6861 .field("parent_class", &self.parent_class)
6862 .finish()
6863 }
6864}
6865
6866#[repr(C)]
6867#[allow(dead_code)]
6868pub struct _GUnixSocketAddressPrivate {
6869 _data: [u8; 0],
6870 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
6871}
6872
6873pub type GUnixSocketAddressPrivate = _GUnixSocketAddressPrivate;
6874
6875#[derive(Copy, Clone)]
6876#[repr(C)]
6877pub struct GVfsClass {
6878 pub parent_class: gobject::GObjectClass,
6879 pub is_active: Option<unsafe extern "C" fn(*mut GVfs) -> gboolean>,
6880 pub get_file_for_path: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6881 pub get_file_for_uri: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6882 pub get_supported_uri_schemes: Option<unsafe extern "C" fn(*mut GVfs) -> *const *const c_char>,
6883 pub parse_name: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>,
6884 pub local_file_add_info: Option<
6885 unsafe extern "C" fn(
6886 *mut GVfs,
6887 *const c_char,
6888 u64,
6889 *mut GFileAttributeMatcher,
6890 *mut GFileInfo,
6891 *mut GCancellable,
6892 *mut gpointer,
6893 *mut glib::GDestroyNotify,
6894 ),
6895 >,
6896 pub add_writable_namespaces:
6897 Option<unsafe extern "C" fn(*mut GVfs, *mut GFileAttributeInfoList)>,
6898 pub local_file_set_attributes: Option<
6899 unsafe extern "C" fn(
6900 *mut GVfs,
6901 *const c_char,
6902 *mut GFileInfo,
6903 GFileQueryInfoFlags,
6904 *mut GCancellable,
6905 *mut *mut glib::GError,
6906 ) -> gboolean,
6907 >,
6908 pub local_file_removed: Option<unsafe extern "C" fn(*mut GVfs, *const c_char)>,
6909 pub local_file_moved: Option<unsafe extern "C" fn(*mut GVfs, *const c_char, *const c_char)>,
6910 pub deserialize_icon:
6911 Option<unsafe extern "C" fn(*mut GVfs, *mut glib::GVariant) -> *mut GIcon>,
6912 pub _g_reserved1: Option<unsafe extern "C" fn()>,
6913 pub _g_reserved2: Option<unsafe extern "C" fn()>,
6914 pub _g_reserved3: Option<unsafe extern "C" fn()>,
6915 pub _g_reserved4: Option<unsafe extern "C" fn()>,
6916 pub _g_reserved5: Option<unsafe extern "C" fn()>,
6917 pub _g_reserved6: Option<unsafe extern "C" fn()>,
6918}
6919
6920impl ::std::fmt::Debug for GVfsClass {
6921 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6922 f.debug_struct(&format!("GVfsClass @ {self:p}"))
6923 .field("parent_class", &self.parent_class)
6924 .field("is_active", &self.is_active)
6925 .field("get_file_for_path", &self.get_file_for_path)
6926 .field("get_file_for_uri", &self.get_file_for_uri)
6927 .field("get_supported_uri_schemes", &self.get_supported_uri_schemes)
6928 .field("parse_name", &self.parse_name)
6929 .field("local_file_add_info", &self.local_file_add_info)
6930 .field("add_writable_namespaces", &self.add_writable_namespaces)
6931 .field("local_file_set_attributes", &self.local_file_set_attributes)
6932 .field("local_file_removed", &self.local_file_removed)
6933 .field("local_file_moved", &self.local_file_moved)
6934 .field("deserialize_icon", &self.deserialize_icon)
6935 .field("_g_reserved1", &self._g_reserved1)
6936 .field("_g_reserved2", &self._g_reserved2)
6937 .field("_g_reserved3", &self._g_reserved3)
6938 .field("_g_reserved4", &self._g_reserved4)
6939 .field("_g_reserved5", &self._g_reserved5)
6940 .field("_g_reserved6", &self._g_reserved6)
6941 .finish()
6942 }
6943}
6944
6945#[derive(Copy, Clone)]
6946#[repr(C)]
6947pub struct GVolumeIface {
6948 pub g_iface: gobject::GTypeInterface,
6949 pub changed: Option<unsafe extern "C" fn(*mut GVolume)>,
6950 pub removed: Option<unsafe extern "C" fn(*mut GVolume)>,
6951 pub get_name: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
6952 pub get_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
6953 pub get_uuid: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
6954 pub get_drive: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GDrive>,
6955 pub get_mount: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GMount>,
6956 pub can_mount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6957 pub can_eject: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6958 pub mount_fn: Option<
6959 unsafe extern "C" fn(
6960 *mut GVolume,
6961 GMountMountFlags,
6962 *mut GMountOperation,
6963 *mut GCancellable,
6964 GAsyncReadyCallback,
6965 gpointer,
6966 ),
6967 >,
6968 pub mount_finish: Option<
6969 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6970 >,
6971 pub eject: Option<
6972 unsafe extern "C" fn(
6973 *mut GVolume,
6974 GMountUnmountFlags,
6975 *mut GCancellable,
6976 GAsyncReadyCallback,
6977 gpointer,
6978 ),
6979 >,
6980 pub eject_finish: Option<
6981 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6982 >,
6983 pub get_identifier: Option<unsafe extern "C" fn(*mut GVolume, *const c_char) -> *mut c_char>,
6984 pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GVolume) -> *mut *mut c_char>,
6985 pub should_automount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>,
6986 pub get_activation_root: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GFile>,
6987 pub eject_with_operation: Option<
6988 unsafe extern "C" fn(
6989 *mut GVolume,
6990 GMountUnmountFlags,
6991 *mut GMountOperation,
6992 *mut GCancellable,
6993 GAsyncReadyCallback,
6994 gpointer,
6995 ),
6996 >,
6997 pub eject_with_operation_finish: Option<
6998 unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean,
6999 >,
7000 pub get_sort_key: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>,
7001 pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>,
7002}
7003
7004impl ::std::fmt::Debug for GVolumeIface {
7005 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7006 f.debug_struct(&format!("GVolumeIface @ {self:p}"))
7007 .field("g_iface", &self.g_iface)
7008 .field("changed", &self.changed)
7009 .field("removed", &self.removed)
7010 .field("get_name", &self.get_name)
7011 .field("get_icon", &self.get_icon)
7012 .field("get_uuid", &self.get_uuid)
7013 .field("get_drive", &self.get_drive)
7014 .field("get_mount", &self.get_mount)
7015 .field("can_mount", &self.can_mount)
7016 .field("can_eject", &self.can_eject)
7017 .field("mount_fn", &self.mount_fn)
7018 .field("mount_finish", &self.mount_finish)
7019 .field("eject", &self.eject)
7020 .field("eject_finish", &self.eject_finish)
7021 .field("get_identifier", &self.get_identifier)
7022 .field("enumerate_identifiers", &self.enumerate_identifiers)
7023 .field("should_automount", &self.should_automount)
7024 .field("get_activation_root", &self.get_activation_root)
7025 .field("eject_with_operation", &self.eject_with_operation)
7026 .field(
7027 "eject_with_operation_finish",
7028 &self.eject_with_operation_finish,
7029 )
7030 .field("get_sort_key", &self.get_sort_key)
7031 .field("get_symbolic_icon", &self.get_symbolic_icon)
7032 .finish()
7033 }
7034}
7035
7036#[derive(Copy, Clone)]
7037#[repr(C)]
7038pub struct GVolumeMonitorClass {
7039 pub parent_class: gobject::GObjectClass,
7040 pub volume_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7041 pub volume_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7042 pub volume_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>,
7043 pub mount_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7044 pub mount_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7045 pub mount_pre_unmount: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7046 pub mount_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>,
7047 pub drive_connected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7048 pub drive_disconnected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7049 pub drive_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7050 pub is_supported: Option<unsafe extern "C" fn() -> gboolean>,
7051 pub get_connected_drives: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7052 pub get_volumes: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7053 pub get_mounts: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>,
7054 pub get_volume_for_uuid:
7055 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GVolume>,
7056 pub get_mount_for_uuid:
7057 Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GMount>,
7058 pub adopt_orphan_mount:
7059 Option<unsafe extern "C" fn(*mut GMount, *mut GVolumeMonitor) -> *mut GVolume>,
7060 pub drive_eject_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7061 pub drive_stop_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>,
7062 pub _g_reserved1: Option<unsafe extern "C" fn()>,
7063 pub _g_reserved2: Option<unsafe extern "C" fn()>,
7064 pub _g_reserved3: Option<unsafe extern "C" fn()>,
7065 pub _g_reserved4: Option<unsafe extern "C" fn()>,
7066 pub _g_reserved5: Option<unsafe extern "C" fn()>,
7067 pub _g_reserved6: Option<unsafe extern "C" fn()>,
7068}
7069
7070impl ::std::fmt::Debug for GVolumeMonitorClass {
7071 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7072 f.debug_struct(&format!("GVolumeMonitorClass @ {self:p}"))
7073 .field("parent_class", &self.parent_class)
7074 .field("volume_added", &self.volume_added)
7075 .field("volume_removed", &self.volume_removed)
7076 .field("volume_changed", &self.volume_changed)
7077 .field("mount_added", &self.mount_added)
7078 .field("mount_removed", &self.mount_removed)
7079 .field("mount_pre_unmount", &self.mount_pre_unmount)
7080 .field("mount_changed", &self.mount_changed)
7081 .field("drive_connected", &self.drive_connected)
7082 .field("drive_disconnected", &self.drive_disconnected)
7083 .field("drive_changed", &self.drive_changed)
7084 .field("is_supported", &self.is_supported)
7085 .field("get_connected_drives", &self.get_connected_drives)
7086 .field("get_volumes", &self.get_volumes)
7087 .field("get_mounts", &self.get_mounts)
7088 .field("get_volume_for_uuid", &self.get_volume_for_uuid)
7089 .field("get_mount_for_uuid", &self.get_mount_for_uuid)
7090 .field("adopt_orphan_mount", &self.adopt_orphan_mount)
7091 .field("drive_eject_button", &self.drive_eject_button)
7092 .field("drive_stop_button", &self.drive_stop_button)
7093 .field("_g_reserved1", &self._g_reserved1)
7094 .field("_g_reserved2", &self._g_reserved2)
7095 .field("_g_reserved3", &self._g_reserved3)
7096 .field("_g_reserved4", &self._g_reserved4)
7097 .field("_g_reserved5", &self._g_reserved5)
7098 .field("_g_reserved6", &self._g_reserved6)
7099 .finish()
7100 }
7101}
7102
7103#[derive(Copy, Clone)]
7104#[repr(C)]
7105pub struct GZlibCompressorClass {
7106 pub parent_class: gobject::GObjectClass,
7107}
7108
7109impl ::std::fmt::Debug for GZlibCompressorClass {
7110 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7111 f.debug_struct(&format!("GZlibCompressorClass @ {self:p}"))
7112 .field("parent_class", &self.parent_class)
7113 .finish()
7114 }
7115}
7116
7117#[derive(Copy, Clone)]
7118#[repr(C)]
7119pub struct GZlibDecompressorClass {
7120 pub parent_class: gobject::GObjectClass,
7121}
7122
7123impl ::std::fmt::Debug for GZlibDecompressorClass {
7124 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7125 f.debug_struct(&format!("GZlibDecompressorClass @ {self:p}"))
7126 .field("parent_class", &self.parent_class)
7127 .finish()
7128 }
7129}
7130
7131#[repr(C)]
7133#[allow(dead_code)]
7134pub struct GAppInfoMonitor {
7135 _data: [u8; 0],
7136 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7137}
7138
7139impl ::std::fmt::Debug for GAppInfoMonitor {
7140 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7141 f.debug_struct(&format!("GAppInfoMonitor @ {self:p}"))
7142 .finish()
7143 }
7144}
7145
7146#[derive(Copy, Clone)]
7147#[repr(C)]
7148pub struct GAppLaunchContext {
7149 pub parent_instance: gobject::GObject,
7150 pub priv_: *mut GAppLaunchContextPrivate,
7151}
7152
7153impl ::std::fmt::Debug for GAppLaunchContext {
7154 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7155 f.debug_struct(&format!("GAppLaunchContext @ {self:p}"))
7156 .field("parent_instance", &self.parent_instance)
7157 .finish()
7158 }
7159}
7160
7161#[derive(Copy, Clone)]
7162#[repr(C)]
7163pub struct GApplication {
7164 pub parent_instance: gobject::GObject,
7165 pub priv_: *mut GApplicationPrivate,
7166}
7167
7168impl ::std::fmt::Debug for GApplication {
7169 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7170 f.debug_struct(&format!("GApplication @ {self:p}")).finish()
7171 }
7172}
7173
7174#[derive(Copy, Clone)]
7175#[repr(C)]
7176pub struct GApplicationCommandLine {
7177 pub parent_instance: gobject::GObject,
7178 pub priv_: *mut GApplicationCommandLinePrivate,
7179}
7180
7181impl ::std::fmt::Debug for GApplicationCommandLine {
7182 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7183 f.debug_struct(&format!("GApplicationCommandLine @ {self:p}"))
7184 .finish()
7185 }
7186}
7187
7188#[derive(Copy, Clone)]
7189#[repr(C)]
7190pub struct GBufferedInputStream {
7191 pub parent_instance: GFilterInputStream,
7192 pub priv_: *mut GBufferedInputStreamPrivate,
7193}
7194
7195impl ::std::fmt::Debug for GBufferedInputStream {
7196 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7197 f.debug_struct(&format!("GBufferedInputStream @ {self:p}"))
7198 .field("parent_instance", &self.parent_instance)
7199 .finish()
7200 }
7201}
7202
7203#[derive(Copy, Clone)]
7204#[repr(C)]
7205pub struct GBufferedOutputStream {
7206 pub parent_instance: GFilterOutputStream,
7207 pub priv_: *mut GBufferedOutputStreamPrivate,
7208}
7209
7210impl ::std::fmt::Debug for GBufferedOutputStream {
7211 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7212 f.debug_struct(&format!("GBufferedOutputStream @ {self:p}"))
7213 .field("parent_instance", &self.parent_instance)
7214 .field("priv_", &self.priv_)
7215 .finish()
7216 }
7217}
7218
7219#[repr(C)]
7220#[allow(dead_code)]
7221pub struct GBytesIcon {
7222 _data: [u8; 0],
7223 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7224}
7225
7226impl ::std::fmt::Debug for GBytesIcon {
7227 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7228 f.debug_struct(&format!("GBytesIcon @ {self:p}")).finish()
7229 }
7230}
7231
7232#[derive(Copy, Clone)]
7233#[repr(C)]
7234pub struct GCancellable {
7235 pub parent_instance: gobject::GObject,
7236 pub priv_: *mut GCancellablePrivate,
7237}
7238
7239impl ::std::fmt::Debug for GCancellable {
7240 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7241 f.debug_struct(&format!("GCancellable @ {self:p}"))
7242 .field("parent_instance", &self.parent_instance)
7243 .finish()
7244 }
7245}
7246
7247#[repr(C)]
7248#[allow(dead_code)]
7249pub struct GCharsetConverter {
7250 _data: [u8; 0],
7251 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7252}
7253
7254impl ::std::fmt::Debug for GCharsetConverter {
7255 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7256 f.debug_struct(&format!("GCharsetConverter @ {self:p}"))
7257 .finish()
7258 }
7259}
7260
7261#[derive(Copy, Clone)]
7262#[repr(C)]
7263pub struct GConverterInputStream {
7264 pub parent_instance: GFilterInputStream,
7265 pub priv_: *mut GConverterInputStreamPrivate,
7266}
7267
7268impl ::std::fmt::Debug for GConverterInputStream {
7269 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7270 f.debug_struct(&format!("GConverterInputStream @ {self:p}"))
7271 .field("parent_instance", &self.parent_instance)
7272 .finish()
7273 }
7274}
7275
7276#[derive(Copy, Clone)]
7277#[repr(C)]
7278pub struct GConverterOutputStream {
7279 pub parent_instance: GFilterOutputStream,
7280 pub priv_: *mut GConverterOutputStreamPrivate,
7281}
7282
7283impl ::std::fmt::Debug for GConverterOutputStream {
7284 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7285 f.debug_struct(&format!("GConverterOutputStream @ {self:p}"))
7286 .field("parent_instance", &self.parent_instance)
7287 .finish()
7288 }
7289}
7290
7291#[repr(C)]
7292#[allow(dead_code)]
7293pub struct GCredentials {
7294 _data: [u8; 0],
7295 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7296}
7297
7298impl ::std::fmt::Debug for GCredentials {
7299 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7300 f.debug_struct(&format!("GCredentials @ {self:p}")).finish()
7301 }
7302}
7303
7304#[repr(C)]
7305#[allow(dead_code)]
7306pub struct GDBusActionGroup {
7307 _data: [u8; 0],
7308 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7309}
7310
7311impl ::std::fmt::Debug for GDBusActionGroup {
7312 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7313 f.debug_struct(&format!("GDBusActionGroup @ {self:p}"))
7314 .finish()
7315 }
7316}
7317
7318#[repr(C)]
7319#[allow(dead_code)]
7320pub struct GDBusAuthObserver {
7321 _data: [u8; 0],
7322 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7323}
7324
7325impl ::std::fmt::Debug for GDBusAuthObserver {
7326 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7327 f.debug_struct(&format!("GDBusAuthObserver @ {self:p}"))
7328 .finish()
7329 }
7330}
7331
7332#[repr(C)]
7333#[allow(dead_code)]
7334pub struct GDBusConnection {
7335 _data: [u8; 0],
7336 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7337}
7338
7339impl ::std::fmt::Debug for GDBusConnection {
7340 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7341 f.debug_struct(&format!("GDBusConnection @ {self:p}"))
7342 .finish()
7343 }
7344}
7345
7346#[derive(Copy, Clone)]
7347#[repr(C)]
7348pub struct GDBusInterfaceSkeleton {
7349 pub parent_instance: gobject::GObject,
7350 pub priv_: *mut GDBusInterfaceSkeletonPrivate,
7351}
7352
7353impl ::std::fmt::Debug for GDBusInterfaceSkeleton {
7354 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7355 f.debug_struct(&format!("GDBusInterfaceSkeleton @ {self:p}"))
7356 .finish()
7357 }
7358}
7359
7360#[repr(C)]
7361#[allow(dead_code)]
7362pub struct GDBusMenuModel {
7363 _data: [u8; 0],
7364 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7365}
7366
7367impl ::std::fmt::Debug for GDBusMenuModel {
7368 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7369 f.debug_struct(&format!("GDBusMenuModel @ {self:p}"))
7370 .finish()
7371 }
7372}
7373
7374#[repr(C)]
7375#[allow(dead_code)]
7376pub struct GDBusMessage {
7377 _data: [u8; 0],
7378 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7379}
7380
7381impl ::std::fmt::Debug for GDBusMessage {
7382 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7383 f.debug_struct(&format!("GDBusMessage @ {self:p}")).finish()
7384 }
7385}
7386
7387#[repr(C)]
7388#[allow(dead_code)]
7389pub struct GDBusMethodInvocation {
7390 _data: [u8; 0],
7391 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7392}
7393
7394impl ::std::fmt::Debug for GDBusMethodInvocation {
7395 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7396 f.debug_struct(&format!("GDBusMethodInvocation @ {self:p}"))
7397 .finish()
7398 }
7399}
7400
7401#[derive(Copy, Clone)]
7402#[repr(C)]
7403pub struct GDBusObjectManagerClient {
7404 pub parent_instance: gobject::GObject,
7405 pub priv_: *mut GDBusObjectManagerClientPrivate,
7406}
7407
7408impl ::std::fmt::Debug for GDBusObjectManagerClient {
7409 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7410 f.debug_struct(&format!("GDBusObjectManagerClient @ {self:p}"))
7411 .finish()
7412 }
7413}
7414
7415#[derive(Copy, Clone)]
7416#[repr(C)]
7417pub struct GDBusObjectManagerServer {
7418 pub parent_instance: gobject::GObject,
7419 pub priv_: *mut GDBusObjectManagerServerPrivate,
7420}
7421
7422impl ::std::fmt::Debug for GDBusObjectManagerServer {
7423 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7424 f.debug_struct(&format!("GDBusObjectManagerServer @ {self:p}"))
7425 .finish()
7426 }
7427}
7428
7429#[derive(Copy, Clone)]
7430#[repr(C)]
7431pub struct GDBusObjectProxy {
7432 pub parent_instance: gobject::GObject,
7433 pub priv_: *mut GDBusObjectProxyPrivate,
7434}
7435
7436impl ::std::fmt::Debug for GDBusObjectProxy {
7437 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7438 f.debug_struct(&format!("GDBusObjectProxy @ {self:p}"))
7439 .finish()
7440 }
7441}
7442
7443#[derive(Copy, Clone)]
7444#[repr(C)]
7445pub struct GDBusObjectSkeleton {
7446 pub parent_instance: gobject::GObject,
7447 pub priv_: *mut GDBusObjectSkeletonPrivate,
7448}
7449
7450impl ::std::fmt::Debug for GDBusObjectSkeleton {
7451 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7452 f.debug_struct(&format!("GDBusObjectSkeleton @ {self:p}"))
7453 .finish()
7454 }
7455}
7456
7457#[derive(Copy, Clone)]
7458#[repr(C)]
7459pub struct GDBusProxy {
7460 pub parent_instance: gobject::GObject,
7461 pub priv_: *mut GDBusProxyPrivate,
7462}
7463
7464impl ::std::fmt::Debug for GDBusProxy {
7465 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7466 f.debug_struct(&format!("GDBusProxy @ {self:p}")).finish()
7467 }
7468}
7469
7470#[repr(C)]
7471#[allow(dead_code)]
7472pub struct GDBusServer {
7473 _data: [u8; 0],
7474 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7475}
7476
7477impl ::std::fmt::Debug for GDBusServer {
7478 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7479 f.debug_struct(&format!("GDBusServer @ {self:p}")).finish()
7480 }
7481}
7482
7483#[derive(Copy, Clone)]
7484#[repr(C)]
7485pub struct GDataInputStream {
7486 pub parent_instance: GBufferedInputStream,
7487 pub priv_: *mut GDataInputStreamPrivate,
7488}
7489
7490impl ::std::fmt::Debug for GDataInputStream {
7491 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7492 f.debug_struct(&format!("GDataInputStream @ {self:p}"))
7493 .field("parent_instance", &self.parent_instance)
7494 .finish()
7495 }
7496}
7497
7498#[derive(Copy, Clone)]
7499#[repr(C)]
7500pub struct GDataOutputStream {
7501 pub parent_instance: GFilterOutputStream,
7502 pub priv_: *mut GDataOutputStreamPrivate,
7503}
7504
7505impl ::std::fmt::Debug for GDataOutputStream {
7506 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7507 f.debug_struct(&format!("GDataOutputStream @ {self:p}"))
7508 .field("parent_instance", &self.parent_instance)
7509 .finish()
7510 }
7511}
7512
7513#[derive(Copy, Clone)]
7514#[repr(C)]
7515pub struct GDebugControllerDBus {
7516 pub parent_instance: gobject::GObject,
7517}
7518
7519impl ::std::fmt::Debug for GDebugControllerDBus {
7520 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7521 f.debug_struct(&format!("GDebugControllerDBus @ {self:p}"))
7522 .field("parent_instance", &self.parent_instance)
7523 .finish()
7524 }
7525}
7526
7527#[repr(C)]
7528#[allow(dead_code)]
7529pub struct GEmblem {
7530 _data: [u8; 0],
7531 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7532}
7533
7534impl ::std::fmt::Debug for GEmblem {
7535 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7536 f.debug_struct(&format!("GEmblem @ {self:p}")).finish()
7537 }
7538}
7539
7540#[derive(Copy, Clone)]
7541#[repr(C)]
7542pub struct GEmblemedIcon {
7543 pub parent_instance: gobject::GObject,
7544 pub priv_: *mut GEmblemedIconPrivate,
7545}
7546
7547impl ::std::fmt::Debug for GEmblemedIcon {
7548 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7549 f.debug_struct(&format!("GEmblemedIcon @ {self:p}"))
7550 .field("parent_instance", &self.parent_instance)
7551 .finish()
7552 }
7553}
7554
7555#[derive(Copy, Clone)]
7556#[repr(C)]
7557pub struct GFileEnumerator {
7558 pub parent_instance: gobject::GObject,
7559 pub priv_: *mut GFileEnumeratorPrivate,
7560}
7561
7562impl ::std::fmt::Debug for GFileEnumerator {
7563 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7564 f.debug_struct(&format!("GFileEnumerator @ {self:p}"))
7565 .field("parent_instance", &self.parent_instance)
7566 .finish()
7567 }
7568}
7569
7570#[derive(Copy, Clone)]
7571#[repr(C)]
7572pub struct GFileIOStream {
7573 pub parent_instance: GIOStream,
7574 pub priv_: *mut GFileIOStreamPrivate,
7575}
7576
7577impl ::std::fmt::Debug for GFileIOStream {
7578 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7579 f.debug_struct(&format!("GFileIOStream @ {self:p}"))
7580 .field("parent_instance", &self.parent_instance)
7581 .finish()
7582 }
7583}
7584
7585#[repr(C)]
7586#[allow(dead_code)]
7587pub struct GFileIcon {
7588 _data: [u8; 0],
7589 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7590}
7591
7592impl ::std::fmt::Debug for GFileIcon {
7593 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7594 f.debug_struct(&format!("GFileIcon @ {self:p}")).finish()
7595 }
7596}
7597
7598#[repr(C)]
7599#[allow(dead_code)]
7600pub struct GFileInfo {
7601 _data: [u8; 0],
7602 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7603}
7604
7605impl ::std::fmt::Debug for GFileInfo {
7606 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7607 f.debug_struct(&format!("GFileInfo @ {self:p}")).finish()
7608 }
7609}
7610
7611#[derive(Copy, Clone)]
7612#[repr(C)]
7613pub struct GFileInputStream {
7614 pub parent_instance: GInputStream,
7615 pub priv_: *mut GFileInputStreamPrivate,
7616}
7617
7618impl ::std::fmt::Debug for GFileInputStream {
7619 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7620 f.debug_struct(&format!("GFileInputStream @ {self:p}"))
7621 .field("parent_instance", &self.parent_instance)
7622 .finish()
7623 }
7624}
7625
7626#[derive(Copy, Clone)]
7627#[repr(C)]
7628pub struct GFileMonitor {
7629 pub parent_instance: gobject::GObject,
7630 pub priv_: *mut GFileMonitorPrivate,
7631}
7632
7633impl ::std::fmt::Debug for GFileMonitor {
7634 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7635 f.debug_struct(&format!("GFileMonitor @ {self:p}"))
7636 .field("parent_instance", &self.parent_instance)
7637 .finish()
7638 }
7639}
7640
7641#[derive(Copy, Clone)]
7642#[repr(C)]
7643pub struct GFileOutputStream {
7644 pub parent_instance: GOutputStream,
7645 pub priv_: *mut GFileOutputStreamPrivate,
7646}
7647
7648impl ::std::fmt::Debug for GFileOutputStream {
7649 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7650 f.debug_struct(&format!("GFileOutputStream @ {self:p}"))
7651 .field("parent_instance", &self.parent_instance)
7652 .finish()
7653 }
7654}
7655
7656#[repr(C)]
7657#[allow(dead_code)]
7658pub struct GFilenameCompleter {
7659 _data: [u8; 0],
7660 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7661}
7662
7663impl ::std::fmt::Debug for GFilenameCompleter {
7664 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7665 f.debug_struct(&format!("GFilenameCompleter @ {self:p}"))
7666 .finish()
7667 }
7668}
7669
7670#[derive(Copy, Clone)]
7671#[repr(C)]
7672pub struct GFilterInputStream {
7673 pub parent_instance: GInputStream,
7674 pub base_stream: *mut GInputStream,
7675}
7676
7677impl ::std::fmt::Debug for GFilterInputStream {
7678 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7679 f.debug_struct(&format!("GFilterInputStream @ {self:p}"))
7680 .field("parent_instance", &self.parent_instance)
7681 .field("base_stream", &self.base_stream)
7682 .finish()
7683 }
7684}
7685
7686#[derive(Copy, Clone)]
7687#[repr(C)]
7688pub struct GFilterOutputStream {
7689 pub parent_instance: GOutputStream,
7690 pub base_stream: *mut GOutputStream,
7691}
7692
7693impl ::std::fmt::Debug for GFilterOutputStream {
7694 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7695 f.debug_struct(&format!("GFilterOutputStream @ {self:p}"))
7696 .field("parent_instance", &self.parent_instance)
7697 .field("base_stream", &self.base_stream)
7698 .finish()
7699 }
7700}
7701
7702#[repr(C)]
7703#[allow(dead_code)]
7704pub struct GIOModule {
7705 _data: [u8; 0],
7706 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7707}
7708
7709impl ::std::fmt::Debug for GIOModule {
7710 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7711 f.debug_struct(&format!("GIOModule @ {self:p}")).finish()
7712 }
7713}
7714
7715#[derive(Copy, Clone)]
7716#[repr(C)]
7717pub struct GIOStream {
7718 pub parent_instance: gobject::GObject,
7719 pub priv_: *mut GIOStreamPrivate,
7720}
7721
7722impl ::std::fmt::Debug for GIOStream {
7723 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7724 f.debug_struct(&format!("GIOStream @ {self:p}"))
7725 .field("parent_instance", &self.parent_instance)
7726 .finish()
7727 }
7728}
7729
7730#[repr(C)]
7731#[allow(dead_code)]
7732pub struct GIPTosMessage {
7733 _data: [u8; 0],
7734 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7735}
7736
7737impl ::std::fmt::Debug for GIPTosMessage {
7738 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7739 f.debug_struct(&format!("GIPTosMessage @ {self:p}"))
7740 .finish()
7741 }
7742}
7743
7744#[repr(C)]
7745#[allow(dead_code)]
7746pub struct GIPv6TclassMessage {
7747 _data: [u8; 0],
7748 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7749}
7750
7751impl ::std::fmt::Debug for GIPv6TclassMessage {
7752 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7753 f.debug_struct(&format!("GIPv6TclassMessage @ {self:p}"))
7754 .finish()
7755 }
7756}
7757
7758#[derive(Copy, Clone)]
7759#[repr(C)]
7760pub struct GInetAddress {
7761 pub parent_instance: gobject::GObject,
7762 pub priv_: *mut GInetAddressPrivate,
7763}
7764
7765impl ::std::fmt::Debug for GInetAddress {
7766 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7767 f.debug_struct(&format!("GInetAddress @ {self:p}"))
7768 .field("parent_instance", &self.parent_instance)
7769 .finish()
7770 }
7771}
7772
7773#[derive(Copy, Clone)]
7774#[repr(C)]
7775pub struct GInetAddressMask {
7776 pub parent_instance: gobject::GObject,
7777 pub priv_: *mut GInetAddressMaskPrivate,
7778}
7779
7780impl ::std::fmt::Debug for GInetAddressMask {
7781 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7782 f.debug_struct(&format!("GInetAddressMask @ {self:p}"))
7783 .field("parent_instance", &self.parent_instance)
7784 .finish()
7785 }
7786}
7787
7788#[derive(Copy, Clone)]
7789#[repr(C)]
7790pub struct GInetSocketAddress {
7791 pub parent_instance: GSocketAddress,
7792 pub priv_: *mut GInetSocketAddressPrivate,
7793}
7794
7795impl ::std::fmt::Debug for GInetSocketAddress {
7796 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7797 f.debug_struct(&format!("GInetSocketAddress @ {self:p}"))
7798 .field("parent_instance", &self.parent_instance)
7799 .finish()
7800 }
7801}
7802
7803#[derive(Copy, Clone)]
7804#[repr(C)]
7805pub struct GInputStream {
7806 pub parent_instance: gobject::GObject,
7807 pub priv_: *mut GInputStreamPrivate,
7808}
7809
7810impl ::std::fmt::Debug for GInputStream {
7811 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7812 f.debug_struct(&format!("GInputStream @ {self:p}"))
7813 .field("parent_instance", &self.parent_instance)
7814 .finish()
7815 }
7816}
7817
7818#[repr(C)]
7819#[allow(dead_code)]
7820pub struct GListStore {
7821 _data: [u8; 0],
7822 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7823}
7824
7825impl ::std::fmt::Debug for GListStore {
7826 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7827 f.debug_struct(&format!("GListStore @ {self:p}")).finish()
7828 }
7829}
7830
7831#[derive(Copy, Clone)]
7832#[repr(C)]
7833pub struct GMemoryInputStream {
7834 pub parent_instance: GInputStream,
7835 pub priv_: *mut GMemoryInputStreamPrivate,
7836}
7837
7838impl ::std::fmt::Debug for GMemoryInputStream {
7839 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7840 f.debug_struct(&format!("GMemoryInputStream @ {self:p}"))
7841 .field("parent_instance", &self.parent_instance)
7842 .finish()
7843 }
7844}
7845
7846#[derive(Copy, Clone)]
7847#[repr(C)]
7848pub struct GMemoryOutputStream {
7849 pub parent_instance: GOutputStream,
7850 pub priv_: *mut GMemoryOutputStreamPrivate,
7851}
7852
7853impl ::std::fmt::Debug for GMemoryOutputStream {
7854 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7855 f.debug_struct(&format!("GMemoryOutputStream @ {self:p}"))
7856 .field("parent_instance", &self.parent_instance)
7857 .finish()
7858 }
7859}
7860
7861#[repr(C)]
7862#[allow(dead_code)]
7863pub struct GMenu {
7864 _data: [u8; 0],
7865 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7866}
7867
7868impl ::std::fmt::Debug for GMenu {
7869 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7870 f.debug_struct(&format!("GMenu @ {self:p}")).finish()
7871 }
7872}
7873
7874#[derive(Copy, Clone)]
7875#[repr(C)]
7876pub struct GMenuAttributeIter {
7877 pub parent_instance: gobject::GObject,
7878 pub priv_: *mut GMenuAttributeIterPrivate,
7879}
7880
7881impl ::std::fmt::Debug for GMenuAttributeIter {
7882 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7883 f.debug_struct(&format!("GMenuAttributeIter @ {self:p}"))
7884 .field("parent_instance", &self.parent_instance)
7885 .field("priv_", &self.priv_)
7886 .finish()
7887 }
7888}
7889
7890#[repr(C)]
7891#[allow(dead_code)]
7892pub struct GMenuItem {
7893 _data: [u8; 0],
7894 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
7895}
7896
7897impl ::std::fmt::Debug for GMenuItem {
7898 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7899 f.debug_struct(&format!("GMenuItem @ {self:p}")).finish()
7900 }
7901}
7902
7903#[derive(Copy, Clone)]
7904#[repr(C)]
7905pub struct GMenuLinkIter {
7906 pub parent_instance: gobject::GObject,
7907 pub priv_: *mut GMenuLinkIterPrivate,
7908}
7909
7910impl ::std::fmt::Debug for GMenuLinkIter {
7911 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7912 f.debug_struct(&format!("GMenuLinkIter @ {self:p}"))
7913 .field("parent_instance", &self.parent_instance)
7914 .field("priv_", &self.priv_)
7915 .finish()
7916 }
7917}
7918
7919#[derive(Copy, Clone)]
7920#[repr(C)]
7921pub struct GMenuModel {
7922 pub parent_instance: gobject::GObject,
7923 pub priv_: *mut GMenuModelPrivate,
7924}
7925
7926impl ::std::fmt::Debug for GMenuModel {
7927 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7928 f.debug_struct(&format!("GMenuModel @ {self:p}"))
7929 .field("parent_instance", &self.parent_instance)
7930 .field("priv_", &self.priv_)
7931 .finish()
7932 }
7933}
7934
7935#[derive(Copy, Clone)]
7936#[repr(C)]
7937pub struct GMountOperation {
7938 pub parent_instance: gobject::GObject,
7939 pub priv_: *mut GMountOperationPrivate,
7940}
7941
7942impl ::std::fmt::Debug for GMountOperation {
7943 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7944 f.debug_struct(&format!("GMountOperation @ {self:p}"))
7945 .field("parent_instance", &self.parent_instance)
7946 .field("priv_", &self.priv_)
7947 .finish()
7948 }
7949}
7950
7951#[derive(Copy, Clone)]
7952#[repr(C)]
7953pub struct GNativeSocketAddress {
7954 pub parent_instance: GSocketAddress,
7955 pub priv_: *mut GNativeSocketAddressPrivate,
7956}
7957
7958impl ::std::fmt::Debug for GNativeSocketAddress {
7959 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7960 f.debug_struct(&format!("GNativeSocketAddress @ {self:p}"))
7961 .field("parent_instance", &self.parent_instance)
7962 .finish()
7963 }
7964}
7965
7966#[derive(Copy, Clone)]
7967#[repr(C)]
7968pub struct GNativeVolumeMonitor {
7969 pub parent_instance: GVolumeMonitor,
7970}
7971
7972impl ::std::fmt::Debug for GNativeVolumeMonitor {
7973 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7974 f.debug_struct(&format!("GNativeVolumeMonitor @ {self:p}"))
7975 .field("parent_instance", &self.parent_instance)
7976 .finish()
7977 }
7978}
7979
7980#[derive(Copy, Clone)]
7981#[repr(C)]
7982pub struct GNetworkAddress {
7983 pub parent_instance: gobject::GObject,
7984 pub priv_: *mut GNetworkAddressPrivate,
7985}
7986
7987impl ::std::fmt::Debug for GNetworkAddress {
7988 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7989 f.debug_struct(&format!("GNetworkAddress @ {self:p}"))
7990 .field("parent_instance", &self.parent_instance)
7991 .finish()
7992 }
7993}
7994
7995#[derive(Copy, Clone)]
7996#[repr(C)]
7997pub struct GNetworkService {
7998 pub parent_instance: gobject::GObject,
7999 pub priv_: *mut GNetworkServicePrivate,
8000}
8001
8002impl ::std::fmt::Debug for GNetworkService {
8003 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8004 f.debug_struct(&format!("GNetworkService @ {self:p}"))
8005 .field("parent_instance", &self.parent_instance)
8006 .finish()
8007 }
8008}
8009
8010#[repr(C)]
8011#[allow(dead_code)]
8012pub struct GNotification {
8013 _data: [u8; 0],
8014 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8015}
8016
8017impl ::std::fmt::Debug for GNotification {
8018 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8019 f.debug_struct(&format!("GNotification @ {self:p}"))
8020 .finish()
8021 }
8022}
8023
8024#[derive(Copy, Clone)]
8025#[repr(C)]
8026pub struct GOutputStream {
8027 pub parent_instance: gobject::GObject,
8028 pub priv_: *mut GOutputStreamPrivate,
8029}
8030
8031impl ::std::fmt::Debug for GOutputStream {
8032 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8033 f.debug_struct(&format!("GOutputStream @ {self:p}"))
8034 .field("parent_instance", &self.parent_instance)
8035 .finish()
8036 }
8037}
8038
8039#[derive(Copy, Clone)]
8040#[repr(C)]
8041pub struct GPermission {
8042 pub parent_instance: gobject::GObject,
8043 pub priv_: *mut GPermissionPrivate,
8044}
8045
8046impl ::std::fmt::Debug for GPermission {
8047 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8048 f.debug_struct(&format!("GPermission @ {self:p}"))
8049 .field("parent_instance", &self.parent_instance)
8050 .finish()
8051 }
8052}
8053
8054#[repr(C)]
8055#[allow(dead_code)]
8056pub struct GPropertyAction {
8057 _data: [u8; 0],
8058 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8059}
8060
8061impl ::std::fmt::Debug for GPropertyAction {
8062 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8063 f.debug_struct(&format!("GPropertyAction @ {self:p}"))
8064 .finish()
8065 }
8066}
8067
8068#[derive(Copy, Clone)]
8069#[repr(C)]
8070pub struct GProxyAddress {
8071 pub parent_instance: GInetSocketAddress,
8072 pub priv_: *mut GProxyAddressPrivate,
8073}
8074
8075impl ::std::fmt::Debug for GProxyAddress {
8076 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8077 f.debug_struct(&format!("GProxyAddress @ {self:p}"))
8078 .field("parent_instance", &self.parent_instance)
8079 .finish()
8080 }
8081}
8082
8083#[derive(Copy, Clone)]
8084#[repr(C)]
8085pub struct GProxyAddressEnumerator {
8086 pub parent_instance: GSocketAddressEnumerator,
8087 pub priv_: *mut GProxyAddressEnumeratorPrivate,
8088}
8089
8090impl ::std::fmt::Debug for GProxyAddressEnumerator {
8091 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8092 f.debug_struct(&format!("GProxyAddressEnumerator @ {self:p}"))
8093 .finish()
8094 }
8095}
8096
8097#[derive(Copy, Clone)]
8098#[repr(C)]
8099pub struct GResolver {
8100 pub parent_instance: gobject::GObject,
8101 pub priv_: *mut GResolverPrivate,
8102}
8103
8104impl ::std::fmt::Debug for GResolver {
8105 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8106 f.debug_struct(&format!("GResolver @ {self:p}"))
8107 .field("parent_instance", &self.parent_instance)
8108 .field("priv_", &self.priv_)
8109 .finish()
8110 }
8111}
8112
8113#[derive(Copy, Clone)]
8114#[repr(C)]
8115pub struct GSettings {
8116 pub parent_instance: gobject::GObject,
8117 pub priv_: *mut GSettingsPrivate,
8118}
8119
8120impl ::std::fmt::Debug for GSettings {
8121 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8122 f.debug_struct(&format!("GSettings @ {self:p}"))
8123 .field("parent_instance", &self.parent_instance)
8124 .field("priv_", &self.priv_)
8125 .finish()
8126 }
8127}
8128
8129#[derive(Copy, Clone)]
8130#[repr(C)]
8131pub struct GSettingsBackend {
8132 pub parent_instance: gobject::GObject,
8133 pub priv_: *mut GSettingsBackendPrivate,
8134}
8135
8136impl ::std::fmt::Debug for GSettingsBackend {
8137 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8138 f.debug_struct(&format!("GSettingsBackend @ {self:p}"))
8139 .field("parent_instance", &self.parent_instance)
8140 .finish()
8141 }
8142}
8143
8144#[repr(C)]
8145#[allow(dead_code)]
8146pub struct GSimpleAction {
8147 _data: [u8; 0],
8148 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8149}
8150
8151impl ::std::fmt::Debug for GSimpleAction {
8152 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8153 f.debug_struct(&format!("GSimpleAction @ {self:p}"))
8154 .finish()
8155 }
8156}
8157
8158#[derive(Copy, Clone)]
8159#[repr(C)]
8160pub struct GSimpleActionGroup {
8161 pub parent_instance: gobject::GObject,
8162 pub priv_: *mut GSimpleActionGroupPrivate,
8163}
8164
8165impl ::std::fmt::Debug for GSimpleActionGroup {
8166 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8167 f.debug_struct(&format!("GSimpleActionGroup @ {self:p}"))
8168 .finish()
8169 }
8170}
8171
8172#[repr(C)]
8173#[allow(dead_code)]
8174pub struct GSimpleAsyncResult {
8175 _data: [u8; 0],
8176 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8177}
8178
8179impl ::std::fmt::Debug for GSimpleAsyncResult {
8180 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8181 f.debug_struct(&format!("GSimpleAsyncResult @ {self:p}"))
8182 .finish()
8183 }
8184}
8185
8186#[repr(C)]
8187#[allow(dead_code)]
8188pub struct GSimpleIOStream {
8189 _data: [u8; 0],
8190 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8191}
8192
8193impl ::std::fmt::Debug for GSimpleIOStream {
8194 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8195 f.debug_struct(&format!("GSimpleIOStream @ {self:p}"))
8196 .finish()
8197 }
8198}
8199
8200#[repr(C)]
8201#[allow(dead_code)]
8202pub struct GSimplePermission {
8203 _data: [u8; 0],
8204 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8205}
8206
8207impl ::std::fmt::Debug for GSimplePermission {
8208 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8209 f.debug_struct(&format!("GSimplePermission @ {self:p}"))
8210 .finish()
8211 }
8212}
8213
8214#[derive(Copy, Clone)]
8215#[repr(C)]
8216pub struct GSimpleProxyResolver {
8217 pub parent_instance: gobject::GObject,
8218 pub priv_: *mut GSimpleProxyResolverPrivate,
8219}
8220
8221impl ::std::fmt::Debug for GSimpleProxyResolver {
8222 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8223 f.debug_struct(&format!("GSimpleProxyResolver @ {self:p}"))
8224 .field("parent_instance", &self.parent_instance)
8225 .finish()
8226 }
8227}
8228
8229#[derive(Copy, Clone)]
8230#[repr(C)]
8231pub struct GSocket {
8232 pub parent_instance: gobject::GObject,
8233 pub priv_: *mut GSocketPrivate,
8234}
8235
8236impl ::std::fmt::Debug for GSocket {
8237 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8238 f.debug_struct(&format!("GSocket @ {self:p}"))
8239 .field("parent_instance", &self.parent_instance)
8240 .field("priv_", &self.priv_)
8241 .finish()
8242 }
8243}
8244
8245#[derive(Copy, Clone)]
8246#[repr(C)]
8247pub struct GSocketAddress {
8248 pub parent_instance: gobject::GObject,
8249}
8250
8251impl ::std::fmt::Debug for GSocketAddress {
8252 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8253 f.debug_struct(&format!("GSocketAddress @ {self:p}"))
8254 .field("parent_instance", &self.parent_instance)
8255 .finish()
8256 }
8257}
8258
8259#[derive(Copy, Clone)]
8260#[repr(C)]
8261pub struct GSocketAddressEnumerator {
8262 pub parent_instance: gobject::GObject,
8263}
8264
8265impl ::std::fmt::Debug for GSocketAddressEnumerator {
8266 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8267 f.debug_struct(&format!("GSocketAddressEnumerator @ {self:p}"))
8268 .finish()
8269 }
8270}
8271
8272#[derive(Copy, Clone)]
8273#[repr(C)]
8274pub struct GSocketClient {
8275 pub parent_instance: gobject::GObject,
8276 pub priv_: *mut GSocketClientPrivate,
8277}
8278
8279impl ::std::fmt::Debug for GSocketClient {
8280 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8281 f.debug_struct(&format!("GSocketClient @ {self:p}"))
8282 .field("parent_instance", &self.parent_instance)
8283 .field("priv_", &self.priv_)
8284 .finish()
8285 }
8286}
8287
8288#[derive(Copy, Clone)]
8289#[repr(C)]
8290pub struct GSocketConnection {
8291 pub parent_instance: GIOStream,
8292 pub priv_: *mut GSocketConnectionPrivate,
8293}
8294
8295impl ::std::fmt::Debug for GSocketConnection {
8296 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8297 f.debug_struct(&format!("GSocketConnection @ {self:p}"))
8298 .field("parent_instance", &self.parent_instance)
8299 .field("priv_", &self.priv_)
8300 .finish()
8301 }
8302}
8303
8304#[derive(Copy, Clone)]
8305#[repr(C)]
8306pub struct GSocketControlMessage {
8307 pub parent_instance: gobject::GObject,
8308 pub priv_: *mut GSocketControlMessagePrivate,
8309}
8310
8311impl ::std::fmt::Debug for GSocketControlMessage {
8312 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8313 f.debug_struct(&format!("GSocketControlMessage @ {self:p}"))
8314 .field("parent_instance", &self.parent_instance)
8315 .field("priv_", &self.priv_)
8316 .finish()
8317 }
8318}
8319
8320#[derive(Copy, Clone)]
8321#[repr(C)]
8322pub struct GSocketListener {
8323 pub parent_instance: gobject::GObject,
8324 pub priv_: *mut GSocketListenerPrivate,
8325}
8326
8327impl ::std::fmt::Debug for GSocketListener {
8328 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8329 f.debug_struct(&format!("GSocketListener @ {self:p}"))
8330 .field("parent_instance", &self.parent_instance)
8331 .field("priv_", &self.priv_)
8332 .finish()
8333 }
8334}
8335
8336#[derive(Copy, Clone)]
8337#[repr(C)]
8338pub struct GSocketService {
8339 pub parent_instance: GSocketListener,
8340 pub priv_: *mut GSocketServicePrivate,
8341}
8342
8343impl ::std::fmt::Debug for GSocketService {
8344 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8345 f.debug_struct(&format!("GSocketService @ {self:p}"))
8346 .field("parent_instance", &self.parent_instance)
8347 .field("priv_", &self.priv_)
8348 .finish()
8349 }
8350}
8351
8352#[repr(C)]
8353#[allow(dead_code)]
8354pub struct GSubprocess {
8355 _data: [u8; 0],
8356 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8357}
8358
8359impl ::std::fmt::Debug for GSubprocess {
8360 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8361 f.debug_struct(&format!("GSubprocess @ {self:p}")).finish()
8362 }
8363}
8364
8365#[repr(C)]
8366#[allow(dead_code)]
8367pub struct GSubprocessLauncher {
8368 _data: [u8; 0],
8369 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8370}
8371
8372impl ::std::fmt::Debug for GSubprocessLauncher {
8373 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8374 f.debug_struct(&format!("GSubprocessLauncher @ {self:p}"))
8375 .finish()
8376 }
8377}
8378
8379#[repr(C)]
8380#[allow(dead_code)]
8381pub struct GTask {
8382 _data: [u8; 0],
8383 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8384}
8385
8386impl ::std::fmt::Debug for GTask {
8387 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8388 f.debug_struct(&format!("GTask @ {self:p}")).finish()
8389 }
8390}
8391
8392#[derive(Copy, Clone)]
8393#[repr(C)]
8394pub struct GTcpConnection {
8395 pub parent_instance: GSocketConnection,
8396 pub priv_: *mut GTcpConnectionPrivate,
8397}
8398
8399impl ::std::fmt::Debug for GTcpConnection {
8400 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8401 f.debug_struct(&format!("GTcpConnection @ {self:p}"))
8402 .field("parent_instance", &self.parent_instance)
8403 .field("priv_", &self.priv_)
8404 .finish()
8405 }
8406}
8407
8408#[derive(Copy, Clone)]
8409#[repr(C)]
8410pub struct GTcpWrapperConnection {
8411 pub parent_instance: GTcpConnection,
8412 pub priv_: *mut GTcpWrapperConnectionPrivate,
8413}
8414
8415impl ::std::fmt::Debug for GTcpWrapperConnection {
8416 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8417 f.debug_struct(&format!("GTcpWrapperConnection @ {self:p}"))
8418 .field("parent_instance", &self.parent_instance)
8419 .field("priv_", &self.priv_)
8420 .finish()
8421 }
8422}
8423
8424#[repr(C)]
8425#[allow(dead_code)]
8426pub struct GTestDBus {
8427 _data: [u8; 0],
8428 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8429}
8430
8431impl ::std::fmt::Debug for GTestDBus {
8432 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8433 f.debug_struct(&format!("GTestDBus @ {self:p}")).finish()
8434 }
8435}
8436
8437#[repr(C)]
8438#[allow(dead_code)]
8439pub struct GThemedIcon {
8440 _data: [u8; 0],
8441 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8442}
8443
8444impl ::std::fmt::Debug for GThemedIcon {
8445 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8446 f.debug_struct(&format!("GThemedIcon @ {self:p}")).finish()
8447 }
8448}
8449
8450#[repr(C)]
8451#[allow(dead_code)]
8452pub struct GThreadedResolver {
8453 _data: [u8; 0],
8454 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8455}
8456
8457impl ::std::fmt::Debug for GThreadedResolver {
8458 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8459 f.debug_struct(&format!("GThreadedResolver @ {self:p}"))
8460 .finish()
8461 }
8462}
8463
8464#[derive(Copy, Clone)]
8465#[repr(C)]
8466pub struct GThreadedSocketService {
8467 pub parent_instance: GSocketService,
8468 pub priv_: *mut GThreadedSocketServicePrivate,
8469}
8470
8471impl ::std::fmt::Debug for GThreadedSocketService {
8472 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8473 f.debug_struct(&format!("GThreadedSocketService @ {self:p}"))
8474 .field("parent_instance", &self.parent_instance)
8475 .field("priv_", &self.priv_)
8476 .finish()
8477 }
8478}
8479
8480#[derive(Copy, Clone)]
8481#[repr(C)]
8482pub struct GTlsCertificate {
8483 pub parent_instance: gobject::GObject,
8484 pub priv_: *mut GTlsCertificatePrivate,
8485}
8486
8487impl ::std::fmt::Debug for GTlsCertificate {
8488 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8489 f.debug_struct(&format!("GTlsCertificate @ {self:p}"))
8490 .field("parent_instance", &self.parent_instance)
8491 .field("priv_", &self.priv_)
8492 .finish()
8493 }
8494}
8495
8496#[derive(Copy, Clone)]
8497#[repr(C)]
8498pub struct GTlsConnection {
8499 pub parent_instance: GIOStream,
8500 pub priv_: *mut GTlsConnectionPrivate,
8501}
8502
8503impl ::std::fmt::Debug for GTlsConnection {
8504 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8505 f.debug_struct(&format!("GTlsConnection @ {self:p}"))
8506 .field("parent_instance", &self.parent_instance)
8507 .field("priv_", &self.priv_)
8508 .finish()
8509 }
8510}
8511
8512#[derive(Copy, Clone)]
8513#[repr(C)]
8514pub struct GTlsDatabase {
8515 pub parent_instance: gobject::GObject,
8516 pub priv_: *mut GTlsDatabasePrivate,
8517}
8518
8519impl ::std::fmt::Debug for GTlsDatabase {
8520 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8521 f.debug_struct(&format!("GTlsDatabase @ {self:p}"))
8522 .field("parent_instance", &self.parent_instance)
8523 .field("priv_", &self.priv_)
8524 .finish()
8525 }
8526}
8527
8528#[derive(Copy, Clone)]
8529#[repr(C)]
8530pub struct GTlsInteraction {
8531 pub parent_instance: gobject::GObject,
8532 pub priv_: *mut GTlsInteractionPrivate,
8533}
8534
8535impl ::std::fmt::Debug for GTlsInteraction {
8536 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8537 f.debug_struct(&format!("GTlsInteraction @ {self:p}"))
8538 .finish()
8539 }
8540}
8541
8542#[derive(Copy, Clone)]
8543#[repr(C)]
8544pub struct GTlsPassword {
8545 pub parent_instance: gobject::GObject,
8546 pub priv_: *mut GTlsPasswordPrivate,
8547}
8548
8549impl ::std::fmt::Debug for GTlsPassword {
8550 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8551 f.debug_struct(&format!("GTlsPassword @ {self:p}"))
8552 .field("parent_instance", &self.parent_instance)
8553 .field("priv_", &self.priv_)
8554 .finish()
8555 }
8556}
8557
8558#[derive(Copy, Clone)]
8559#[repr(C)]
8560pub struct GUnixConnection {
8561 pub parent_instance: GSocketConnection,
8562 pub priv_: *mut GUnixConnectionPrivate,
8563}
8564
8565impl ::std::fmt::Debug for GUnixConnection {
8566 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8567 f.debug_struct(&format!("GUnixConnection @ {self:p}"))
8568 .field("parent_instance", &self.parent_instance)
8569 .field("priv_", &self.priv_)
8570 .finish()
8571 }
8572}
8573
8574#[derive(Copy, Clone)]
8575#[repr(C)]
8576pub struct GUnixCredentialsMessage {
8577 pub parent_instance: GSocketControlMessage,
8578 pub priv_: *mut GUnixCredentialsMessagePrivate,
8579}
8580
8581impl ::std::fmt::Debug for GUnixCredentialsMessage {
8582 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8583 f.debug_struct(&format!("GUnixCredentialsMessage @ {self:p}"))
8584 .field("parent_instance", &self.parent_instance)
8585 .field("priv_", &self.priv_)
8586 .finish()
8587 }
8588}
8589
8590#[derive(Copy, Clone)]
8591#[repr(C)]
8592pub struct GUnixFDList {
8593 pub parent_instance: gobject::GObject,
8594 pub priv_: *mut GUnixFDListPrivate,
8595}
8596
8597impl ::std::fmt::Debug for GUnixFDList {
8598 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8599 f.debug_struct(&format!("GUnixFDList @ {self:p}"))
8600 .field("parent_instance", &self.parent_instance)
8601 .field("priv_", &self.priv_)
8602 .finish()
8603 }
8604}
8605
8606#[derive(Copy, Clone)]
8607#[repr(C)]
8608pub struct GUnixSocketAddress {
8609 pub parent_instance: GSocketAddress,
8610 pub priv_: *mut GUnixSocketAddressPrivate,
8611}
8612
8613impl ::std::fmt::Debug for GUnixSocketAddress {
8614 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8615 f.debug_struct(&format!("GUnixSocketAddress @ {self:p}"))
8616 .field("parent_instance", &self.parent_instance)
8617 .finish()
8618 }
8619}
8620
8621#[derive(Copy, Clone)]
8622#[repr(C)]
8623pub struct GVfs {
8624 pub parent_instance: gobject::GObject,
8625}
8626
8627impl ::std::fmt::Debug for GVfs {
8628 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8629 f.debug_struct(&format!("GVfs @ {self:p}"))
8630 .field("parent_instance", &self.parent_instance)
8631 .finish()
8632 }
8633}
8634
8635#[derive(Copy, Clone)]
8636#[repr(C)]
8637pub struct GVolumeMonitor {
8638 pub parent_instance: gobject::GObject,
8639 pub priv_: gpointer,
8640}
8641
8642impl ::std::fmt::Debug for GVolumeMonitor {
8643 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8644 f.debug_struct(&format!("GVolumeMonitor @ {self:p}"))
8645 .field("parent_instance", &self.parent_instance)
8646 .finish()
8647 }
8648}
8649
8650#[repr(C)]
8651#[allow(dead_code)]
8652pub struct GZlibCompressor {
8653 _data: [u8; 0],
8654 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8655}
8656
8657impl ::std::fmt::Debug for GZlibCompressor {
8658 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8659 f.debug_struct(&format!("GZlibCompressor @ {self:p}"))
8660 .finish()
8661 }
8662}
8663
8664#[repr(C)]
8665#[allow(dead_code)]
8666pub struct GZlibDecompressor {
8667 _data: [u8; 0],
8668 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8669}
8670
8671impl ::std::fmt::Debug for GZlibDecompressor {
8672 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8673 f.debug_struct(&format!("GZlibDecompressor @ {self:p}"))
8674 .finish()
8675 }
8676}
8677
8678#[repr(C)]
8680#[allow(dead_code)]
8681pub struct GAction {
8682 _data: [u8; 0],
8683 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8684}
8685
8686impl ::std::fmt::Debug for GAction {
8687 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8688 write!(f, "GAction @ {self:p}")
8689 }
8690}
8691
8692#[repr(C)]
8693#[allow(dead_code)]
8694pub struct GActionGroup {
8695 _data: [u8; 0],
8696 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8697}
8698
8699impl ::std::fmt::Debug for GActionGroup {
8700 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8701 write!(f, "GActionGroup @ {self:p}")
8702 }
8703}
8704
8705#[repr(C)]
8706#[allow(dead_code)]
8707pub struct GActionMap {
8708 _data: [u8; 0],
8709 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8710}
8711
8712impl ::std::fmt::Debug for GActionMap {
8713 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8714 write!(f, "GActionMap @ {self:p}")
8715 }
8716}
8717
8718#[repr(C)]
8719#[allow(dead_code)]
8720pub struct GAppInfo {
8721 _data: [u8; 0],
8722 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8723}
8724
8725impl ::std::fmt::Debug for GAppInfo {
8726 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8727 write!(f, "GAppInfo @ {self:p}")
8728 }
8729}
8730
8731#[repr(C)]
8732#[allow(dead_code)]
8733pub struct GAsyncInitable {
8734 _data: [u8; 0],
8735 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8736}
8737
8738impl ::std::fmt::Debug for GAsyncInitable {
8739 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8740 write!(f, "GAsyncInitable @ {self:p}")
8741 }
8742}
8743
8744#[repr(C)]
8745#[allow(dead_code)]
8746pub struct GAsyncResult {
8747 _data: [u8; 0],
8748 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8749}
8750
8751impl ::std::fmt::Debug for GAsyncResult {
8752 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8753 write!(f, "GAsyncResult @ {self:p}")
8754 }
8755}
8756
8757#[repr(C)]
8758#[allow(dead_code)]
8759pub struct GConverter {
8760 _data: [u8; 0],
8761 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8762}
8763
8764impl ::std::fmt::Debug for GConverter {
8765 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8766 write!(f, "GConverter @ {self:p}")
8767 }
8768}
8769
8770#[repr(C)]
8771#[allow(dead_code)]
8772pub struct GDBusInterface {
8773 _data: [u8; 0],
8774 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8775}
8776
8777impl ::std::fmt::Debug for GDBusInterface {
8778 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8779 write!(f, "GDBusInterface @ {self:p}")
8780 }
8781}
8782
8783#[repr(C)]
8784#[allow(dead_code)]
8785pub struct GDBusObject {
8786 _data: [u8; 0],
8787 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8788}
8789
8790impl ::std::fmt::Debug for GDBusObject {
8791 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8792 write!(f, "GDBusObject @ {self:p}")
8793 }
8794}
8795
8796#[repr(C)]
8797#[allow(dead_code)]
8798pub struct GDBusObjectManager {
8799 _data: [u8; 0],
8800 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8801}
8802
8803impl ::std::fmt::Debug for GDBusObjectManager {
8804 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8805 write!(f, "GDBusObjectManager @ {self:p}")
8806 }
8807}
8808
8809#[repr(C)]
8810#[allow(dead_code)]
8811pub struct GDatagramBased {
8812 _data: [u8; 0],
8813 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8814}
8815
8816impl ::std::fmt::Debug for GDatagramBased {
8817 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8818 write!(f, "GDatagramBased @ {self:p}")
8819 }
8820}
8821
8822#[repr(C)]
8823#[allow(dead_code)]
8824pub struct GDebugController {
8825 _data: [u8; 0],
8826 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8827}
8828
8829impl ::std::fmt::Debug for GDebugController {
8830 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8831 write!(f, "GDebugController @ {self:p}")
8832 }
8833}
8834
8835#[repr(C)]
8836#[allow(dead_code)]
8837pub struct GDrive {
8838 _data: [u8; 0],
8839 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8840}
8841
8842impl ::std::fmt::Debug for GDrive {
8843 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8844 write!(f, "GDrive @ {self:p}")
8845 }
8846}
8847
8848#[repr(C)]
8849#[allow(dead_code)]
8850pub struct GDtlsClientConnection {
8851 _data: [u8; 0],
8852 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8853}
8854
8855impl ::std::fmt::Debug for GDtlsClientConnection {
8856 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8857 write!(f, "GDtlsClientConnection @ {self:p}")
8858 }
8859}
8860
8861#[repr(C)]
8862#[allow(dead_code)]
8863pub struct GDtlsConnection {
8864 _data: [u8; 0],
8865 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8866}
8867
8868impl ::std::fmt::Debug for GDtlsConnection {
8869 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8870 write!(f, "GDtlsConnection @ {self:p}")
8871 }
8872}
8873
8874#[repr(C)]
8875#[allow(dead_code)]
8876pub struct GDtlsServerConnection {
8877 _data: [u8; 0],
8878 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8879}
8880
8881impl ::std::fmt::Debug for GDtlsServerConnection {
8882 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8883 write!(f, "GDtlsServerConnection @ {self:p}")
8884 }
8885}
8886
8887#[repr(C)]
8888#[allow(dead_code)]
8889pub struct GFile {
8890 _data: [u8; 0],
8891 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8892}
8893
8894impl ::std::fmt::Debug for GFile {
8895 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8896 write!(f, "GFile @ {self:p}")
8897 }
8898}
8899
8900#[repr(C)]
8901#[allow(dead_code)]
8902pub struct GIcon {
8903 _data: [u8; 0],
8904 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8905}
8906
8907impl ::std::fmt::Debug for GIcon {
8908 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8909 write!(f, "GIcon @ {self:p}")
8910 }
8911}
8912
8913#[repr(C)]
8914#[allow(dead_code)]
8915pub struct GInitable {
8916 _data: [u8; 0],
8917 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8918}
8919
8920impl ::std::fmt::Debug for GInitable {
8921 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8922 write!(f, "GInitable @ {self:p}")
8923 }
8924}
8925
8926#[repr(C)]
8927#[allow(dead_code)]
8928pub struct GListModel {
8929 _data: [u8; 0],
8930 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8931}
8932
8933impl ::std::fmt::Debug for GListModel {
8934 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8935 write!(f, "GListModel @ {self:p}")
8936 }
8937}
8938
8939#[repr(C)]
8940#[allow(dead_code)]
8941pub struct GLoadableIcon {
8942 _data: [u8; 0],
8943 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8944}
8945
8946impl ::std::fmt::Debug for GLoadableIcon {
8947 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8948 write!(f, "GLoadableIcon @ {self:p}")
8949 }
8950}
8951
8952#[repr(C)]
8953#[allow(dead_code)]
8954pub struct GMemoryMonitor {
8955 _data: [u8; 0],
8956 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8957}
8958
8959impl ::std::fmt::Debug for GMemoryMonitor {
8960 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8961 write!(f, "GMemoryMonitor @ {self:p}")
8962 }
8963}
8964
8965#[repr(C)]
8966#[allow(dead_code)]
8967pub struct GMount {
8968 _data: [u8; 0],
8969 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8970}
8971
8972impl ::std::fmt::Debug for GMount {
8973 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8974 write!(f, "GMount @ {self:p}")
8975 }
8976}
8977
8978#[repr(C)]
8979#[allow(dead_code)]
8980pub struct GNetworkMonitor {
8981 _data: [u8; 0],
8982 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8983}
8984
8985impl ::std::fmt::Debug for GNetworkMonitor {
8986 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8987 write!(f, "GNetworkMonitor @ {self:p}")
8988 }
8989}
8990
8991#[repr(C)]
8992#[allow(dead_code)]
8993pub struct GPollableInputStream {
8994 _data: [u8; 0],
8995 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
8996}
8997
8998impl ::std::fmt::Debug for GPollableInputStream {
8999 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9000 write!(f, "GPollableInputStream @ {self:p}")
9001 }
9002}
9003
9004#[repr(C)]
9005#[allow(dead_code)]
9006pub struct GPollableOutputStream {
9007 _data: [u8; 0],
9008 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9009}
9010
9011impl ::std::fmt::Debug for GPollableOutputStream {
9012 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9013 write!(f, "GPollableOutputStream @ {self:p}")
9014 }
9015}
9016
9017#[repr(C)]
9018#[allow(dead_code)]
9019pub struct GPowerProfileMonitor {
9020 _data: [u8; 0],
9021 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9022}
9023
9024impl ::std::fmt::Debug for GPowerProfileMonitor {
9025 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9026 write!(f, "GPowerProfileMonitor @ {self:p}")
9027 }
9028}
9029
9030#[repr(C)]
9031#[allow(dead_code)]
9032pub struct GProxy {
9033 _data: [u8; 0],
9034 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9035}
9036
9037impl ::std::fmt::Debug for GProxy {
9038 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9039 write!(f, "GProxy @ {self:p}")
9040 }
9041}
9042
9043#[repr(C)]
9044#[allow(dead_code)]
9045pub struct GProxyResolver {
9046 _data: [u8; 0],
9047 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9048}
9049
9050impl ::std::fmt::Debug for GProxyResolver {
9051 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9052 write!(f, "GProxyResolver @ {self:p}")
9053 }
9054}
9055
9056#[repr(C)]
9057#[allow(dead_code)]
9058pub struct GRemoteActionGroup {
9059 _data: [u8; 0],
9060 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9061}
9062
9063impl ::std::fmt::Debug for GRemoteActionGroup {
9064 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9065 write!(f, "GRemoteActionGroup @ {self:p}")
9066 }
9067}
9068
9069#[repr(C)]
9070#[allow(dead_code)]
9071pub struct GSeekable {
9072 _data: [u8; 0],
9073 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9074}
9075
9076impl ::std::fmt::Debug for GSeekable {
9077 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9078 write!(f, "GSeekable @ {self:p}")
9079 }
9080}
9081
9082#[repr(C)]
9083#[allow(dead_code)]
9084pub struct GSocketConnectable {
9085 _data: [u8; 0],
9086 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9087}
9088
9089impl ::std::fmt::Debug for GSocketConnectable {
9090 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9091 write!(f, "GSocketConnectable @ {self:p}")
9092 }
9093}
9094
9095#[repr(C)]
9096#[allow(dead_code)]
9097pub struct GTlsBackend {
9098 _data: [u8; 0],
9099 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9100}
9101
9102impl ::std::fmt::Debug for GTlsBackend {
9103 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9104 write!(f, "GTlsBackend @ {self:p}")
9105 }
9106}
9107
9108#[repr(C)]
9109#[allow(dead_code)]
9110pub struct GTlsClientConnection {
9111 _data: [u8; 0],
9112 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9113}
9114
9115impl ::std::fmt::Debug for GTlsClientConnection {
9116 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9117 write!(f, "GTlsClientConnection @ {self:p}")
9118 }
9119}
9120
9121#[repr(C)]
9122#[allow(dead_code)]
9123pub struct GTlsFileDatabase {
9124 _data: [u8; 0],
9125 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9126}
9127
9128impl ::std::fmt::Debug for GTlsFileDatabase {
9129 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9130 write!(f, "GTlsFileDatabase @ {self:p}")
9131 }
9132}
9133
9134#[repr(C)]
9135#[allow(dead_code)]
9136pub struct GTlsServerConnection {
9137 _data: [u8; 0],
9138 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9139}
9140
9141impl ::std::fmt::Debug for GTlsServerConnection {
9142 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9143 write!(f, "GTlsServerConnection @ {self:p}")
9144 }
9145}
9146
9147#[repr(C)]
9148#[allow(dead_code)]
9149pub struct GVolume {
9150 _data: [u8; 0],
9151 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
9152}
9153
9154impl ::std::fmt::Debug for GVolume {
9155 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9156 write!(f, "GVolume @ {self:p}")
9157 }
9158}
9159
9160unsafe extern "C" {
9161
9162 pub fn g_bus_type_get_type() -> GType;
9166
9167 pub fn g_converter_result_get_type() -> GType;
9171
9172 pub fn g_credentials_type_get_type() -> GType;
9176
9177 pub fn g_dbus_error_get_type() -> GType;
9181 pub fn g_dbus_error_encode_gerror(error: *const glib::GError) -> *mut c_char;
9182 pub fn g_dbus_error_get_remote_error(error: *const glib::GError) -> *mut c_char;
9183 pub fn g_dbus_error_is_remote_error(error: *const glib::GError) -> gboolean;
9184 pub fn g_dbus_error_new_for_dbus_error(
9185 dbus_error_name: *const c_char,
9186 dbus_error_message: *const c_char,
9187 ) -> *mut glib::GError;
9188 pub fn g_dbus_error_quark() -> glib::GQuark;
9189 pub fn g_dbus_error_register_error(
9190 error_domain: glib::GQuark,
9191 error_code: c_int,
9192 dbus_error_name: *const c_char,
9193 ) -> gboolean;
9194 pub fn g_dbus_error_register_error_domain(
9195 error_domain_quark_name: *const c_char,
9196 quark_volatile: *mut size_t,
9197 entries: *const GDBusErrorEntry,
9198 num_entries: c_uint,
9199 );
9200 pub fn g_dbus_error_set_dbus_error(
9201 error: *mut *mut glib::GError,
9202 dbus_error_name: *const c_char,
9203 dbus_error_message: *const c_char,
9204 format: *const c_char,
9205 ...
9206 );
9207 pub fn g_dbus_error_strip_remote_error(error: *mut glib::GError) -> gboolean;
9209 pub fn g_dbus_error_unregister_error(
9210 error_domain: glib::GQuark,
9211 error_code: c_int,
9212 dbus_error_name: *const c_char,
9213 ) -> gboolean;
9214
9215 pub fn g_dbus_message_byte_order_get_type() -> GType;
9219
9220 pub fn g_dbus_message_header_field_get_type() -> GType;
9224
9225 pub fn g_dbus_message_type_get_type() -> GType;
9229
9230 pub fn g_data_stream_byte_order_get_type() -> GType;
9234
9235 pub fn g_data_stream_newline_type_get_type() -> GType;
9239
9240 pub fn g_drive_start_stop_type_get_type() -> GType;
9244
9245 #[cfg(feature = "v2_88")]
9249 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
9250 pub fn g_ecn_code_point_get_type() -> GType;
9251
9252 pub fn g_emblem_origin_get_type() -> GType;
9256
9257 pub fn g_file_attribute_status_get_type() -> GType;
9261
9262 pub fn g_file_attribute_type_get_type() -> GType;
9266
9267 pub fn g_file_monitor_event_get_type() -> GType;
9271
9272 pub fn g_file_type_get_type() -> GType;
9276
9277 pub fn g_filesystem_preview_type_get_type() -> GType;
9281
9282 pub fn g_io_error_enum_get_type() -> GType;
9286
9287 #[cfg(feature = "v2_64")]
9291 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
9292 pub fn g_memory_monitor_warning_level_get_type() -> GType;
9293
9294 pub fn g_mount_operation_result_get_type() -> GType;
9298
9299 pub fn g_network_connectivity_get_type() -> GType;
9303
9304 pub fn g_notification_priority_get_type() -> GType;
9308
9309 pub fn g_password_save_get_type() -> GType;
9313
9314 #[cfg(feature = "v2_60")]
9318 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
9319 pub fn g_pollable_return_get_type() -> GType;
9320
9321 pub fn g_resolver_error_get_type() -> GType;
9325 pub fn g_resolver_error_quark() -> glib::GQuark;
9326
9327 pub fn g_resolver_record_type_get_type() -> GType;
9331
9332 pub fn g_resource_error_get_type() -> GType;
9336 pub fn g_resource_error_quark() -> glib::GQuark;
9337
9338 pub fn g_socket_client_event_get_type() -> GType;
9342
9343 pub fn g_socket_family_get_type() -> GType;
9347
9348 pub fn g_socket_listener_event_get_type() -> GType;
9352
9353 pub fn g_socket_protocol_get_type() -> GType;
9357
9358 pub fn g_socket_type_get_type() -> GType;
9362
9363 pub fn g_tls_authentication_mode_get_type() -> GType;
9367
9368 #[cfg(feature = "v2_66")]
9372 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9373 pub fn g_tls_channel_binding_error_get_type() -> GType;
9374 #[cfg(feature = "v2_66")]
9375 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9376 pub fn g_tls_channel_binding_error_quark() -> glib::GQuark;
9377
9378 #[cfg(feature = "v2_66")]
9382 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
9383 pub fn g_tls_channel_binding_type_get_type() -> GType;
9384
9385 pub fn g_tls_error_get_type() -> GType;
9389 pub fn g_tls_error_quark() -> glib::GQuark;
9390
9391 pub fn g_tls_interaction_result_get_type() -> GType;
9395
9396 #[cfg(feature = "v2_70")]
9400 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
9401 pub fn g_tls_protocol_version_get_type() -> GType;
9402
9403 pub fn g_tls_rehandshake_mode_get_type() -> GType;
9407
9408 pub fn g_unix_socket_address_type_get_type() -> GType;
9412
9413 pub fn g_zlib_compressor_format_get_type() -> GType;
9417
9418 pub fn g_app_info_create_flags_get_type() -> GType;
9422
9423 pub fn g_application_flags_get_type() -> GType;
9427
9428 pub fn g_ask_password_flags_get_type() -> GType;
9432
9433 pub fn g_bus_name_owner_flags_get_type() -> GType;
9437
9438 pub fn g_bus_name_watcher_flags_get_type() -> GType;
9442
9443 pub fn g_converter_flags_get_type() -> GType;
9447
9448 pub fn g_dbus_call_flags_get_type() -> GType;
9452
9453 pub fn g_dbus_capability_flags_get_type() -> GType;
9457
9458 pub fn g_dbus_connection_flags_get_type() -> GType;
9462
9463 pub fn g_dbus_interface_skeleton_flags_get_type() -> GType;
9467
9468 pub fn g_dbus_message_flags_get_type() -> GType;
9472
9473 pub fn g_dbus_object_manager_client_flags_get_type() -> GType;
9477
9478 pub fn g_dbus_property_info_flags_get_type() -> GType;
9482
9483 pub fn g_dbus_proxy_flags_get_type() -> GType;
9487
9488 pub fn g_dbus_send_message_flags_get_type() -> GType;
9492
9493 pub fn g_dbus_server_flags_get_type() -> GType;
9497
9498 pub fn g_dbus_signal_flags_get_type() -> GType;
9502
9503 pub fn g_dbus_subtree_flags_get_type() -> GType;
9507
9508 pub fn g_drive_start_flags_get_type() -> GType;
9512
9513 pub fn g_file_attribute_info_flags_get_type() -> GType;
9517
9518 pub fn g_file_copy_flags_get_type() -> GType;
9522
9523 pub fn g_file_create_flags_get_type() -> GType;
9527
9528 pub fn g_file_measure_flags_get_type() -> GType;
9532
9533 pub fn g_file_monitor_flags_get_type() -> GType;
9537
9538 pub fn g_file_query_info_flags_get_type() -> GType;
9542
9543 pub fn g_io_module_scope_flags_get_type() -> GType;
9547
9548 pub fn g_io_stream_splice_flags_get_type() -> GType;
9552
9553 pub fn g_mount_mount_flags_get_type() -> GType;
9557
9558 pub fn g_mount_unmount_flags_get_type() -> GType;
9562
9563 pub fn g_output_stream_splice_flags_get_type() -> GType;
9567
9568 #[cfg(feature = "v2_60")]
9572 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
9573 pub fn g_resolver_name_lookup_flags_get_type() -> GType;
9574
9575 pub fn g_resource_flags_get_type() -> GType;
9579
9580 pub fn g_resource_lookup_flags_get_type() -> GType;
9584
9585 pub fn g_settings_bind_flags_get_type() -> GType;
9589
9590 pub fn g_socket_msg_flags_get_type() -> GType;
9594
9595 pub fn g_subprocess_flags_get_type() -> GType;
9599
9600 pub fn g_test_dbus_flags_get_type() -> GType;
9604
9605 pub fn g_tls_certificate_flags_get_type() -> GType;
9609
9610 pub fn g_tls_certificate_request_flags_get_type() -> GType;
9614
9615 pub fn g_tls_database_lookup_flags_get_type() -> GType;
9619
9620 pub fn g_tls_database_verify_flags_get_type() -> GType;
9624
9625 pub fn g_tls_password_flags_get_type() -> GType;
9629
9630 pub fn g_dbus_annotation_info_get_type() -> GType;
9634 pub fn g_dbus_annotation_info_ref(info: *mut GDBusAnnotationInfo) -> *mut GDBusAnnotationInfo;
9635 pub fn g_dbus_annotation_info_unref(info: *mut GDBusAnnotationInfo);
9636 pub fn g_dbus_annotation_info_lookup(
9637 annotations: *mut *mut GDBusAnnotationInfo,
9638 name: *const c_char,
9639 ) -> *const c_char;
9640
9641 pub fn g_dbus_arg_info_get_type() -> GType;
9645 pub fn g_dbus_arg_info_ref(info: *mut GDBusArgInfo) -> *mut GDBusArgInfo;
9646 pub fn g_dbus_arg_info_unref(info: *mut GDBusArgInfo);
9647
9648 pub fn g_dbus_interface_info_get_type() -> GType;
9652 pub fn g_dbus_interface_info_cache_build(info: *mut GDBusInterfaceInfo);
9653 pub fn g_dbus_interface_info_cache_release(info: *mut GDBusInterfaceInfo);
9654 pub fn g_dbus_interface_info_generate_xml(
9655 info: *mut GDBusInterfaceInfo,
9656 indent: c_uint,
9657 string_builder: *mut glib::GString,
9658 );
9659 pub fn g_dbus_interface_info_lookup_method(
9660 info: *mut GDBusInterfaceInfo,
9661 name: *const c_char,
9662 ) -> *mut GDBusMethodInfo;
9663 pub fn g_dbus_interface_info_lookup_property(
9664 info: *mut GDBusInterfaceInfo,
9665 name: *const c_char,
9666 ) -> *mut GDBusPropertyInfo;
9667 pub fn g_dbus_interface_info_lookup_signal(
9668 info: *mut GDBusInterfaceInfo,
9669 name: *const c_char,
9670 ) -> *mut GDBusSignalInfo;
9671 pub fn g_dbus_interface_info_ref(info: *mut GDBusInterfaceInfo) -> *mut GDBusInterfaceInfo;
9672 pub fn g_dbus_interface_info_unref(info: *mut GDBusInterfaceInfo);
9673
9674 pub fn g_dbus_method_info_get_type() -> GType;
9678 pub fn g_dbus_method_info_ref(info: *mut GDBusMethodInfo) -> *mut GDBusMethodInfo;
9679 pub fn g_dbus_method_info_unref(info: *mut GDBusMethodInfo);
9680
9681 pub fn g_dbus_node_info_get_type() -> GType;
9685 pub fn g_dbus_node_info_new_for_xml(
9686 xml_data: *const c_char,
9687 error: *mut *mut glib::GError,
9688 ) -> *mut GDBusNodeInfo;
9689 pub fn g_dbus_node_info_generate_xml(
9690 info: *mut GDBusNodeInfo,
9691 indent: c_uint,
9692 string_builder: *mut glib::GString,
9693 );
9694 pub fn g_dbus_node_info_lookup_interface(
9695 info: *mut GDBusNodeInfo,
9696 name: *const c_char,
9697 ) -> *mut GDBusInterfaceInfo;
9698 pub fn g_dbus_node_info_ref(info: *mut GDBusNodeInfo) -> *mut GDBusNodeInfo;
9699 pub fn g_dbus_node_info_unref(info: *mut GDBusNodeInfo);
9700
9701 pub fn g_dbus_property_info_get_type() -> GType;
9705 pub fn g_dbus_property_info_ref(info: *mut GDBusPropertyInfo) -> *mut GDBusPropertyInfo;
9706 pub fn g_dbus_property_info_unref(info: *mut GDBusPropertyInfo);
9707
9708 pub fn g_dbus_signal_info_get_type() -> GType;
9712 pub fn g_dbus_signal_info_ref(info: *mut GDBusSignalInfo) -> *mut GDBusSignalInfo;
9713 pub fn g_dbus_signal_info_unref(info: *mut GDBusSignalInfo);
9714
9715 pub fn g_file_attribute_info_list_get_type() -> GType;
9719 pub fn g_file_attribute_info_list_new() -> *mut GFileAttributeInfoList;
9720 pub fn g_file_attribute_info_list_add(
9721 list: *mut GFileAttributeInfoList,
9722 name: *const c_char,
9723 type_: GFileAttributeType,
9724 flags: GFileAttributeInfoFlags,
9725 );
9726 pub fn g_file_attribute_info_list_dup(
9727 list: *mut GFileAttributeInfoList,
9728 ) -> *mut GFileAttributeInfoList;
9729 pub fn g_file_attribute_info_list_lookup(
9730 list: *mut GFileAttributeInfoList,
9731 name: *const c_char,
9732 ) -> *const GFileAttributeInfo;
9733 pub fn g_file_attribute_info_list_ref(
9734 list: *mut GFileAttributeInfoList,
9735 ) -> *mut GFileAttributeInfoList;
9736 pub fn g_file_attribute_info_list_unref(list: *mut GFileAttributeInfoList);
9737
9738 pub fn g_file_attribute_matcher_get_type() -> GType;
9742 pub fn g_file_attribute_matcher_new(attributes: *const c_char) -> *mut GFileAttributeMatcher;
9743 pub fn g_file_attribute_matcher_enumerate_namespace(
9744 matcher: *mut GFileAttributeMatcher,
9745 ns: *const c_char,
9746 ) -> gboolean;
9747 pub fn g_file_attribute_matcher_enumerate_next(
9748 matcher: *mut GFileAttributeMatcher,
9749 ) -> *const c_char;
9750 pub fn g_file_attribute_matcher_matches(
9751 matcher: *mut GFileAttributeMatcher,
9752 attribute: *const c_char,
9753 ) -> gboolean;
9754 pub fn g_file_attribute_matcher_matches_only(
9755 matcher: *mut GFileAttributeMatcher,
9756 attribute: *const c_char,
9757 ) -> gboolean;
9758 pub fn g_file_attribute_matcher_ref(
9759 matcher: *mut GFileAttributeMatcher,
9760 ) -> *mut GFileAttributeMatcher;
9761 pub fn g_file_attribute_matcher_subtract(
9762 matcher: *mut GFileAttributeMatcher,
9763 subtract: *mut GFileAttributeMatcher,
9764 ) -> *mut GFileAttributeMatcher;
9765 pub fn g_file_attribute_matcher_to_string(matcher: *mut GFileAttributeMatcher) -> *mut c_char;
9766 pub fn g_file_attribute_matcher_unref(matcher: *mut GFileAttributeMatcher);
9767
9768 pub fn g_io_extension_get_name(extension: *mut GIOExtension) -> *const c_char;
9772 pub fn g_io_extension_get_priority(extension: *mut GIOExtension) -> c_int;
9773 pub fn g_io_extension_get_type(extension: *mut GIOExtension) -> GType;
9774 pub fn g_io_extension_ref_class(extension: *mut GIOExtension) -> *mut gobject::GTypeClass;
9775
9776 pub fn g_io_extension_point_get_extension_by_name(
9780 extension_point: *mut GIOExtensionPoint,
9781 name: *const c_char,
9782 ) -> *mut GIOExtension;
9783 pub fn g_io_extension_point_get_extensions(
9784 extension_point: *mut GIOExtensionPoint,
9785 ) -> *mut glib::GList;
9786 pub fn g_io_extension_point_get_required_type(extension_point: *mut GIOExtensionPoint)
9787 -> GType;
9788 pub fn g_io_extension_point_set_required_type(
9789 extension_point: *mut GIOExtensionPoint,
9790 type_: GType,
9791 );
9792 pub fn g_io_extension_point_implement(
9793 extension_point_name: *const c_char,
9794 type_: GType,
9795 extension_name: *const c_char,
9796 priority: c_int,
9797 ) -> *mut GIOExtension;
9798 pub fn g_io_extension_point_lookup(name: *const c_char) -> *mut GIOExtensionPoint;
9799 pub fn g_io_extension_point_register(name: *const c_char) -> *mut GIOExtensionPoint;
9800
9801 pub fn g_io_module_scope_block(scope: *mut GIOModuleScope, basename: *const c_char);
9805 pub fn g_io_module_scope_free(scope: *mut GIOModuleScope);
9806 pub fn g_io_module_scope_new(flags: GIOModuleScopeFlags) -> *mut GIOModuleScope;
9807
9808 pub fn g_io_scheduler_job_send_to_mainloop(
9812 job: *mut GIOSchedulerJob,
9813 func: glib::GSourceFunc,
9814 user_data: gpointer,
9815 notify: glib::GDestroyNotify,
9816 ) -> gboolean;
9817 pub fn g_io_scheduler_job_send_to_mainloop_async(
9818 job: *mut GIOSchedulerJob,
9819 func: glib::GSourceFunc,
9820 user_data: gpointer,
9821 notify: glib::GDestroyNotify,
9822 );
9823
9824 pub fn g_resource_get_type() -> GType;
9828 pub fn g_resource_new_from_data(
9829 data: *mut glib::GBytes,
9830 error: *mut *mut glib::GError,
9831 ) -> *mut GResource;
9832 pub fn g_resource_enumerate_children(
9833 resource: *mut GResource,
9834 path: *const c_char,
9835 lookup_flags: GResourceLookupFlags,
9836 error: *mut *mut glib::GError,
9837 ) -> *mut *mut c_char;
9838 pub fn g_resource_get_info(
9839 resource: *mut GResource,
9840 path: *const c_char,
9841 lookup_flags: GResourceLookupFlags,
9842 size: *mut size_t,
9843 flags: *mut u32,
9844 error: *mut *mut glib::GError,
9845 ) -> gboolean;
9846 #[cfg(feature = "v2_84")]
9847 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
9848 pub fn g_resource_has_children(resource: *mut GResource, path: *const c_char) -> gboolean;
9849 pub fn g_resource_lookup_data(
9850 resource: *mut GResource,
9851 path: *const c_char,
9852 lookup_flags: GResourceLookupFlags,
9853 error: *mut *mut glib::GError,
9854 ) -> *mut glib::GBytes;
9855 pub fn g_resource_open_stream(
9856 resource: *mut GResource,
9857 path: *const c_char,
9858 lookup_flags: GResourceLookupFlags,
9859 error: *mut *mut glib::GError,
9860 ) -> *mut GInputStream;
9861 pub fn g_resource_ref(resource: *mut GResource) -> *mut GResource;
9862 pub fn g_resource_unref(resource: *mut GResource);
9863 pub fn g_resource_load(
9864 filename: *const c_char,
9865 error: *mut *mut glib::GError,
9866 ) -> *mut GResource;
9867
9868 pub fn g_settings_schema_get_type() -> GType;
9872 pub fn g_settings_schema_get_id(schema: *mut GSettingsSchema) -> *const c_char;
9873 pub fn g_settings_schema_get_key(
9874 schema: *mut GSettingsSchema,
9875 name: *const c_char,
9876 ) -> *mut GSettingsSchemaKey;
9877 pub fn g_settings_schema_get_path(schema: *mut GSettingsSchema) -> *const c_char;
9878 pub fn g_settings_schema_has_key(schema: *mut GSettingsSchema, name: *const c_char)
9879 -> gboolean;
9880 pub fn g_settings_schema_list_children(schema: *mut GSettingsSchema) -> *mut *mut c_char;
9881 pub fn g_settings_schema_list_keys(schema: *mut GSettingsSchema) -> *mut *mut c_char;
9882 pub fn g_settings_schema_ref(schema: *mut GSettingsSchema) -> *mut GSettingsSchema;
9883 pub fn g_settings_schema_unref(schema: *mut GSettingsSchema);
9884
9885 pub fn g_settings_schema_key_get_type() -> GType;
9889 pub fn g_settings_schema_key_get_default_value(
9890 key: *mut GSettingsSchemaKey,
9891 ) -> *mut glib::GVariant;
9892 pub fn g_settings_schema_key_get_description(key: *mut GSettingsSchemaKey) -> *const c_char;
9893 pub fn g_settings_schema_key_get_name(key: *mut GSettingsSchemaKey) -> *const c_char;
9894 pub fn g_settings_schema_key_get_range(key: *mut GSettingsSchemaKey) -> *mut glib::GVariant;
9895 pub fn g_settings_schema_key_get_summary(key: *mut GSettingsSchemaKey) -> *const c_char;
9896 pub fn g_settings_schema_key_get_value_type(
9897 key: *mut GSettingsSchemaKey,
9898 ) -> *const glib::GVariantType;
9899 pub fn g_settings_schema_key_range_check(
9900 key: *mut GSettingsSchemaKey,
9901 value: *mut glib::GVariant,
9902 ) -> gboolean;
9903 pub fn g_settings_schema_key_ref(key: *mut GSettingsSchemaKey) -> *mut GSettingsSchemaKey;
9904 pub fn g_settings_schema_key_unref(key: *mut GSettingsSchemaKey);
9905
9906 pub fn g_settings_schema_source_get_type() -> GType;
9910 pub fn g_settings_schema_source_new_from_directory(
9911 directory: *const c_char,
9912 parent: *mut GSettingsSchemaSource,
9913 trusted: gboolean,
9914 error: *mut *mut glib::GError,
9915 ) -> *mut GSettingsSchemaSource;
9916 pub fn g_settings_schema_source_list_schemas(
9917 source: *mut GSettingsSchemaSource,
9918 recursive: gboolean,
9919 non_relocatable: *mut *mut *mut c_char,
9920 relocatable: *mut *mut *mut c_char,
9921 );
9922 pub fn g_settings_schema_source_lookup(
9923 source: *mut GSettingsSchemaSource,
9924 schema_id: *const c_char,
9925 recursive: gboolean,
9926 ) -> *mut GSettingsSchema;
9927 pub fn g_settings_schema_source_ref(
9928 source: *mut GSettingsSchemaSource,
9929 ) -> *mut GSettingsSchemaSource;
9930 pub fn g_settings_schema_source_unref(source: *mut GSettingsSchemaSource);
9931 pub fn g_settings_schema_source_get_default() -> *mut GSettingsSchemaSource;
9932
9933 pub fn g_srv_target_get_type() -> GType;
9937 pub fn g_srv_target_new(
9938 hostname: *const c_char,
9939 port: u16,
9940 priority: u16,
9941 weight: u16,
9942 ) -> *mut GSrvTarget;
9943 pub fn g_srv_target_copy(target: *mut GSrvTarget) -> *mut GSrvTarget;
9944 pub fn g_srv_target_free(target: *mut GSrvTarget);
9945 pub fn g_srv_target_get_hostname(target: *mut GSrvTarget) -> *const c_char;
9946 pub fn g_srv_target_get_port(target: *mut GSrvTarget) -> u16;
9947 pub fn g_srv_target_get_priority(target: *mut GSrvTarget) -> u16;
9948 pub fn g_srv_target_get_weight(target: *mut GSrvTarget) -> u16;
9949 pub fn g_srv_target_list_sort(targets: *mut glib::GList) -> *mut glib::GList;
9950
9951 pub fn g_static_resource_fini(static_resource: *mut GStaticResource);
9955 pub fn g_static_resource_get_resource(static_resource: *mut GStaticResource) -> *mut GResource;
9956 pub fn g_static_resource_init(static_resource: *mut GStaticResource);
9957
9958 pub fn g_app_info_monitor_get_type() -> GType;
9962 pub fn g_app_info_monitor_get() -> *mut GAppInfoMonitor;
9963
9964 pub fn g_app_launch_context_get_type() -> GType;
9968 pub fn g_app_launch_context_new() -> *mut GAppLaunchContext;
9969 pub fn g_app_launch_context_get_display(
9970 context: *mut GAppLaunchContext,
9971 info: *mut GAppInfo,
9972 files: *mut glib::GList,
9973 ) -> *mut c_char;
9974 pub fn g_app_launch_context_get_environment(
9975 context: *mut GAppLaunchContext,
9976 ) -> *mut *mut c_char;
9977 pub fn g_app_launch_context_get_startup_notify_id(
9978 context: *mut GAppLaunchContext,
9979 info: *mut GAppInfo,
9980 files: *mut glib::GList,
9981 ) -> *mut c_char;
9982 pub fn g_app_launch_context_launch_failed(
9983 context: *mut GAppLaunchContext,
9984 startup_notify_id: *const c_char,
9985 );
9986 pub fn g_app_launch_context_setenv(
9987 context: *mut GAppLaunchContext,
9988 variable: *const c_char,
9989 value: *const c_char,
9990 );
9991 pub fn g_app_launch_context_unsetenv(context: *mut GAppLaunchContext, variable: *const c_char);
9992
9993 pub fn g_application_get_type() -> GType;
9997 pub fn g_application_new(
9998 application_id: *const c_char,
9999 flags: GApplicationFlags,
10000 ) -> *mut GApplication;
10001 pub fn g_application_get_default() -> *mut GApplication;
10002 pub fn g_application_id_is_valid(application_id: *const c_char) -> gboolean;
10003 pub fn g_application_activate(application: *mut GApplication);
10004 pub fn g_application_add_main_option(
10005 application: *mut GApplication,
10006 long_name: *const c_char,
10007 short_name: c_char,
10008 flags: glib::GOptionFlags,
10009 arg: glib::GOptionArg,
10010 description: *const c_char,
10011 arg_description: *const c_char,
10012 );
10013 pub fn g_application_add_main_option_entries(
10014 application: *mut GApplication,
10015 entries: *const glib::GOptionEntry,
10016 );
10017 pub fn g_application_add_option_group(
10018 application: *mut GApplication,
10019 group: *mut glib::GOptionGroup,
10020 );
10021 pub fn g_application_bind_busy_property(
10022 application: *mut GApplication,
10023 object: *mut gobject::GObject,
10024 property: *const c_char,
10025 );
10026 pub fn g_application_get_application_id(application: *mut GApplication) -> *const c_char;
10027 pub fn g_application_get_dbus_connection(
10028 application: *mut GApplication,
10029 ) -> *mut GDBusConnection;
10030 pub fn g_application_get_dbus_object_path(application: *mut GApplication) -> *const c_char;
10031 pub fn g_application_get_flags(application: *mut GApplication) -> GApplicationFlags;
10032 pub fn g_application_get_inactivity_timeout(application: *mut GApplication) -> c_uint;
10033 pub fn g_application_get_is_busy(application: *mut GApplication) -> gboolean;
10034 pub fn g_application_get_is_registered(application: *mut GApplication) -> gboolean;
10035 pub fn g_application_get_is_remote(application: *mut GApplication) -> gboolean;
10036 pub fn g_application_get_resource_base_path(application: *mut GApplication) -> *const c_char;
10037 #[cfg(feature = "v2_80")]
10038 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10039 pub fn g_application_get_version(application: *mut GApplication) -> *const c_char;
10040 pub fn g_application_hold(application: *mut GApplication);
10041 pub fn g_application_mark_busy(application: *mut GApplication);
10042 pub fn g_application_open(
10043 application: *mut GApplication,
10044 files: *mut *mut GFile,
10045 n_files: c_int,
10046 hint: *const c_char,
10047 );
10048 pub fn g_application_quit(application: *mut GApplication);
10049 pub fn g_application_register(
10050 application: *mut GApplication,
10051 cancellable: *mut GCancellable,
10052 error: *mut *mut glib::GError,
10053 ) -> gboolean;
10054 pub fn g_application_release(application: *mut GApplication);
10055 pub fn g_application_run(
10056 application: *mut GApplication,
10057 argc: c_int,
10058 argv: *mut *mut c_char,
10059 ) -> c_int;
10060 pub fn g_application_send_notification(
10061 application: *mut GApplication,
10062 id: *const c_char,
10063 notification: *mut GNotification,
10064 );
10065 pub fn g_application_set_action_group(
10066 application: *mut GApplication,
10067 action_group: *mut GActionGroup,
10068 );
10069 pub fn g_application_set_application_id(
10070 application: *mut GApplication,
10071 application_id: *const c_char,
10072 );
10073 pub fn g_application_set_default(application: *mut GApplication);
10074 pub fn g_application_set_flags(application: *mut GApplication, flags: GApplicationFlags);
10075 pub fn g_application_set_inactivity_timeout(
10076 application: *mut GApplication,
10077 inactivity_timeout: c_uint,
10078 );
10079 pub fn g_application_set_option_context_description(
10080 application: *mut GApplication,
10081 description: *const c_char,
10082 );
10083 pub fn g_application_set_option_context_parameter_string(
10084 application: *mut GApplication,
10085 parameter_string: *const c_char,
10086 );
10087 pub fn g_application_set_option_context_summary(
10088 application: *mut GApplication,
10089 summary: *const c_char,
10090 );
10091 pub fn g_application_set_resource_base_path(
10092 application: *mut GApplication,
10093 resource_path: *const c_char,
10094 );
10095 #[cfg(feature = "v2_80")]
10096 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10097 pub fn g_application_set_version(application: *mut GApplication, version: *const c_char);
10098 pub fn g_application_unbind_busy_property(
10099 application: *mut GApplication,
10100 object: *mut gobject::GObject,
10101 property: *const c_char,
10102 );
10103 pub fn g_application_unmark_busy(application: *mut GApplication);
10104 pub fn g_application_withdraw_notification(application: *mut GApplication, id: *const c_char);
10105
10106 pub fn g_application_command_line_get_type() -> GType;
10110 pub fn g_application_command_line_create_file_for_arg(
10111 cmdline: *mut GApplicationCommandLine,
10112 arg: *const c_char,
10113 ) -> *mut GFile;
10114 #[cfg(feature = "v2_80")]
10115 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10116 pub fn g_application_command_line_done(cmdline: *mut GApplicationCommandLine);
10117 pub fn g_application_command_line_get_arguments(
10118 cmdline: *mut GApplicationCommandLine,
10119 argc: *mut c_int,
10120 ) -> *mut *mut c_char;
10121 pub fn g_application_command_line_get_cwd(
10122 cmdline: *mut GApplicationCommandLine,
10123 ) -> *const c_char;
10124 pub fn g_application_command_line_get_environ(
10125 cmdline: *mut GApplicationCommandLine,
10126 ) -> *const *const c_char;
10127 pub fn g_application_command_line_get_exit_status(
10128 cmdline: *mut GApplicationCommandLine,
10129 ) -> c_int;
10130 pub fn g_application_command_line_get_is_remote(
10131 cmdline: *mut GApplicationCommandLine,
10132 ) -> gboolean;
10133 pub fn g_application_command_line_get_options_dict(
10134 cmdline: *mut GApplicationCommandLine,
10135 ) -> *mut glib::GVariantDict;
10136 pub fn g_application_command_line_get_platform_data(
10137 cmdline: *mut GApplicationCommandLine,
10138 ) -> *mut glib::GVariant;
10139 pub fn g_application_command_line_get_stdin(
10140 cmdline: *mut GApplicationCommandLine,
10141 ) -> *mut GInputStream;
10142 pub fn g_application_command_line_getenv(
10143 cmdline: *mut GApplicationCommandLine,
10144 name: *const c_char,
10145 ) -> *const c_char;
10146 pub fn g_application_command_line_print(
10147 cmdline: *mut GApplicationCommandLine,
10148 format: *const c_char,
10149 ...
10150 );
10151 #[cfg(feature = "v2_80")]
10152 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10153 pub fn g_application_command_line_print_literal(
10154 cmdline: *mut GApplicationCommandLine,
10155 message: *const c_char,
10156 );
10157 pub fn g_application_command_line_printerr(
10158 cmdline: *mut GApplicationCommandLine,
10159 format: *const c_char,
10160 ...
10161 );
10162 #[cfg(feature = "v2_80")]
10163 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10164 pub fn g_application_command_line_printerr_literal(
10165 cmdline: *mut GApplicationCommandLine,
10166 message: *const c_char,
10167 );
10168 pub fn g_application_command_line_set_exit_status(
10169 cmdline: *mut GApplicationCommandLine,
10170 exit_status: c_int,
10171 );
10172
10173 pub fn g_buffered_input_stream_get_type() -> GType;
10177 pub fn g_buffered_input_stream_new(base_stream: *mut GInputStream) -> *mut GInputStream;
10178 pub fn g_buffered_input_stream_new_sized(
10179 base_stream: *mut GInputStream,
10180 size: size_t,
10181 ) -> *mut GInputStream;
10182 pub fn g_buffered_input_stream_fill(
10183 stream: *mut GBufferedInputStream,
10184 count: ssize_t,
10185 cancellable: *mut GCancellable,
10186 error: *mut *mut glib::GError,
10187 ) -> ssize_t;
10188 pub fn g_buffered_input_stream_fill_async(
10189 stream: *mut GBufferedInputStream,
10190 count: ssize_t,
10191 io_priority: c_int,
10192 cancellable: *mut GCancellable,
10193 callback: GAsyncReadyCallback,
10194 user_data: gpointer,
10195 );
10196 pub fn g_buffered_input_stream_fill_finish(
10197 stream: *mut GBufferedInputStream,
10198 result: *mut GAsyncResult,
10199 error: *mut *mut glib::GError,
10200 ) -> ssize_t;
10201 pub fn g_buffered_input_stream_get_available(stream: *mut GBufferedInputStream) -> size_t;
10202 pub fn g_buffered_input_stream_get_buffer_size(stream: *mut GBufferedInputStream) -> size_t;
10203 pub fn g_buffered_input_stream_peek(
10204 stream: *mut GBufferedInputStream,
10205 buffer: *mut u8,
10206 offset: size_t,
10207 count: size_t,
10208 ) -> size_t;
10209 pub fn g_buffered_input_stream_peek_buffer(
10210 stream: *mut GBufferedInputStream,
10211 count: *mut size_t,
10212 ) -> *mut u8;
10213 pub fn g_buffered_input_stream_read_byte(
10214 stream: *mut GBufferedInputStream,
10215 cancellable: *mut GCancellable,
10216 error: *mut *mut glib::GError,
10217 ) -> c_int;
10218 pub fn g_buffered_input_stream_set_buffer_size(stream: *mut GBufferedInputStream, size: size_t);
10219
10220 pub fn g_buffered_output_stream_get_type() -> GType;
10224 pub fn g_buffered_output_stream_new(base_stream: *mut GOutputStream) -> *mut GOutputStream;
10225 pub fn g_buffered_output_stream_new_sized(
10226 base_stream: *mut GOutputStream,
10227 size: size_t,
10228 ) -> *mut GOutputStream;
10229 pub fn g_buffered_output_stream_get_auto_grow(stream: *mut GBufferedOutputStream) -> gboolean;
10230 pub fn g_buffered_output_stream_get_buffer_size(stream: *mut GBufferedOutputStream) -> size_t;
10231 pub fn g_buffered_output_stream_set_auto_grow(
10232 stream: *mut GBufferedOutputStream,
10233 auto_grow: gboolean,
10234 );
10235 pub fn g_buffered_output_stream_set_buffer_size(
10236 stream: *mut GBufferedOutputStream,
10237 size: size_t,
10238 );
10239
10240 pub fn g_bytes_icon_get_type() -> GType;
10244 pub fn g_bytes_icon_new(bytes: *mut glib::GBytes) -> *mut GBytesIcon;
10245 pub fn g_bytes_icon_get_bytes(icon: *mut GBytesIcon) -> *mut glib::GBytes;
10246
10247 pub fn g_cancellable_get_type() -> GType;
10251 pub fn g_cancellable_new() -> *mut GCancellable;
10252 pub fn g_cancellable_get_current() -> *mut GCancellable;
10253 pub fn g_cancellable_cancel(cancellable: *mut GCancellable);
10254 pub fn g_cancellable_connect(
10255 cancellable: *mut GCancellable,
10256 callback: gobject::GCallback,
10257 data: gpointer,
10258 data_destroy_func: glib::GDestroyNotify,
10259 ) -> c_ulong;
10260 pub fn g_cancellable_disconnect(cancellable: *mut GCancellable, handler_id: c_ulong);
10261 pub fn g_cancellable_get_fd(cancellable: *mut GCancellable) -> c_int;
10262 pub fn g_cancellable_is_cancelled(cancellable: *mut GCancellable) -> gboolean;
10263 pub fn g_cancellable_make_pollfd(
10264 cancellable: *mut GCancellable,
10265 pollfd: *mut glib::GPollFD,
10266 ) -> gboolean;
10267 pub fn g_cancellable_pop_current(cancellable: *mut GCancellable);
10268 pub fn g_cancellable_push_current(cancellable: *mut GCancellable);
10269 pub fn g_cancellable_release_fd(cancellable: *mut GCancellable);
10270 pub fn g_cancellable_reset(cancellable: *mut GCancellable);
10271 pub fn g_cancellable_set_error_if_cancelled(
10272 cancellable: *mut GCancellable,
10273 error: *mut *mut glib::GError,
10274 ) -> gboolean;
10275 pub fn g_cancellable_source_new(cancellable: *mut GCancellable) -> *mut glib::GSource;
10276
10277 pub fn g_charset_converter_get_type() -> GType;
10281 pub fn g_charset_converter_new(
10282 to_charset: *const c_char,
10283 from_charset: *const c_char,
10284 error: *mut *mut glib::GError,
10285 ) -> *mut GCharsetConverter;
10286 pub fn g_charset_converter_get_num_fallbacks(converter: *mut GCharsetConverter) -> c_uint;
10287 pub fn g_charset_converter_get_use_fallback(converter: *mut GCharsetConverter) -> gboolean;
10288 pub fn g_charset_converter_set_use_fallback(
10289 converter: *mut GCharsetConverter,
10290 use_fallback: gboolean,
10291 );
10292
10293 pub fn g_converter_input_stream_get_type() -> GType;
10297 pub fn g_converter_input_stream_new(
10298 base_stream: *mut GInputStream,
10299 converter: *mut GConverter,
10300 ) -> *mut GInputStream;
10301 pub fn g_converter_input_stream_get_converter(
10302 converter_stream: *mut GConverterInputStream,
10303 ) -> *mut GConverter;
10304
10305 pub fn g_converter_output_stream_get_type() -> GType;
10309 pub fn g_converter_output_stream_new(
10310 base_stream: *mut GOutputStream,
10311 converter: *mut GConverter,
10312 ) -> *mut GOutputStream;
10313 pub fn g_converter_output_stream_get_converter(
10314 converter_stream: *mut GConverterOutputStream,
10315 ) -> *mut GConverter;
10316
10317 pub fn g_credentials_get_type() -> GType;
10321 pub fn g_credentials_new() -> *mut GCredentials;
10322 pub fn g_credentials_get_native(
10323 credentials: *mut GCredentials,
10324 native_type: GCredentialsType,
10325 ) -> gpointer;
10326 #[cfg(unix)]
10327 #[cfg_attr(docsrs, doc(cfg(unix)))]
10328 pub fn g_credentials_get_unix_pid(
10329 credentials: *mut GCredentials,
10330 error: *mut *mut glib::GError,
10331 ) -> pid_t;
10332 #[cfg(unix)]
10333 #[cfg_attr(docsrs, doc(cfg(unix)))]
10334 pub fn g_credentials_get_unix_user(
10335 credentials: *mut GCredentials,
10336 error: *mut *mut glib::GError,
10337 ) -> uid_t;
10338 pub fn g_credentials_is_same_user(
10339 credentials: *mut GCredentials,
10340 other_credentials: *mut GCredentials,
10341 error: *mut *mut glib::GError,
10342 ) -> gboolean;
10343 pub fn g_credentials_set_native(
10344 credentials: *mut GCredentials,
10345 native_type: GCredentialsType,
10346 native: gpointer,
10347 );
10348 #[cfg(unix)]
10349 #[cfg_attr(docsrs, doc(cfg(unix)))]
10350 pub fn g_credentials_set_unix_user(
10351 credentials: *mut GCredentials,
10352 uid: uid_t,
10353 error: *mut *mut glib::GError,
10354 ) -> gboolean;
10355 pub fn g_credentials_to_string(credentials: *mut GCredentials) -> *mut c_char;
10356
10357 pub fn g_dbus_action_group_get_type() -> GType;
10361 pub fn g_dbus_action_group_get(
10362 connection: *mut GDBusConnection,
10363 bus_name: *const c_char,
10364 object_path: *const c_char,
10365 ) -> *mut GDBusActionGroup;
10366
10367 pub fn g_dbus_auth_observer_get_type() -> GType;
10371 pub fn g_dbus_auth_observer_new() -> *mut GDBusAuthObserver;
10372 pub fn g_dbus_auth_observer_allow_mechanism(
10373 observer: *mut GDBusAuthObserver,
10374 mechanism: *const c_char,
10375 ) -> gboolean;
10376 pub fn g_dbus_auth_observer_authorize_authenticated_peer(
10377 observer: *mut GDBusAuthObserver,
10378 stream: *mut GIOStream,
10379 credentials: *mut GCredentials,
10380 ) -> gboolean;
10381
10382 pub fn g_dbus_connection_get_type() -> GType;
10386 pub fn g_dbus_connection_new_finish(
10387 res: *mut GAsyncResult,
10388 error: *mut *mut glib::GError,
10389 ) -> *mut GDBusConnection;
10390 pub fn g_dbus_connection_new_for_address_finish(
10391 res: *mut GAsyncResult,
10392 error: *mut *mut glib::GError,
10393 ) -> *mut GDBusConnection;
10394 pub fn g_dbus_connection_new_for_address_sync(
10395 address: *const c_char,
10396 flags: GDBusConnectionFlags,
10397 observer: *mut GDBusAuthObserver,
10398 cancellable: *mut GCancellable,
10399 error: *mut *mut glib::GError,
10400 ) -> *mut GDBusConnection;
10401 pub fn g_dbus_connection_new_sync(
10402 stream: *mut GIOStream,
10403 guid: *const c_char,
10404 flags: GDBusConnectionFlags,
10405 observer: *mut GDBusAuthObserver,
10406 cancellable: *mut GCancellable,
10407 error: *mut *mut glib::GError,
10408 ) -> *mut GDBusConnection;
10409 pub fn g_dbus_connection_new(
10410 stream: *mut GIOStream,
10411 guid: *const c_char,
10412 flags: GDBusConnectionFlags,
10413 observer: *mut GDBusAuthObserver,
10414 cancellable: *mut GCancellable,
10415 callback: GAsyncReadyCallback,
10416 user_data: gpointer,
10417 );
10418 pub fn g_dbus_connection_new_for_address(
10419 address: *const c_char,
10420 flags: GDBusConnectionFlags,
10421 observer: *mut GDBusAuthObserver,
10422 cancellable: *mut GCancellable,
10423 callback: GAsyncReadyCallback,
10424 user_data: gpointer,
10425 );
10426 pub fn g_dbus_connection_add_filter(
10427 connection: *mut GDBusConnection,
10428 filter_function: GDBusMessageFilterFunction,
10429 user_data: gpointer,
10430 user_data_free_func: glib::GDestroyNotify,
10431 ) -> c_uint;
10432 pub fn g_dbus_connection_call(
10433 connection: *mut GDBusConnection,
10434 bus_name: *const c_char,
10435 object_path: *const c_char,
10436 interface_name: *const c_char,
10437 method_name: *const c_char,
10438 parameters: *mut glib::GVariant,
10439 reply_type: *const glib::GVariantType,
10440 flags: GDBusCallFlags,
10441 timeout_msec: c_int,
10442 cancellable: *mut GCancellable,
10443 callback: GAsyncReadyCallback,
10444 user_data: gpointer,
10445 );
10446 pub fn g_dbus_connection_call_finish(
10447 connection: *mut GDBusConnection,
10448 res: *mut GAsyncResult,
10449 error: *mut *mut glib::GError,
10450 ) -> *mut glib::GVariant;
10451 pub fn g_dbus_connection_call_sync(
10452 connection: *mut GDBusConnection,
10453 bus_name: *const c_char,
10454 object_path: *const c_char,
10455 interface_name: *const c_char,
10456 method_name: *const c_char,
10457 parameters: *mut glib::GVariant,
10458 reply_type: *const glib::GVariantType,
10459 flags: GDBusCallFlags,
10460 timeout_msec: c_int,
10461 cancellable: *mut GCancellable,
10462 error: *mut *mut glib::GError,
10463 ) -> *mut glib::GVariant;
10464 pub fn g_dbus_connection_call_with_unix_fd_list(
10465 connection: *mut GDBusConnection,
10466 bus_name: *const c_char,
10467 object_path: *const c_char,
10468 interface_name: *const c_char,
10469 method_name: *const c_char,
10470 parameters: *mut glib::GVariant,
10471 reply_type: *const glib::GVariantType,
10472 flags: GDBusCallFlags,
10473 timeout_msec: c_int,
10474 fd_list: *mut GUnixFDList,
10475 cancellable: *mut GCancellable,
10476 callback: GAsyncReadyCallback,
10477 user_data: gpointer,
10478 );
10479 pub fn g_dbus_connection_call_with_unix_fd_list_finish(
10480 connection: *mut GDBusConnection,
10481 out_fd_list: *mut *mut GUnixFDList,
10482 res: *mut GAsyncResult,
10483 error: *mut *mut glib::GError,
10484 ) -> *mut glib::GVariant;
10485 pub fn g_dbus_connection_call_with_unix_fd_list_sync(
10486 connection: *mut GDBusConnection,
10487 bus_name: *const c_char,
10488 object_path: *const c_char,
10489 interface_name: *const c_char,
10490 method_name: *const c_char,
10491 parameters: *mut glib::GVariant,
10492 reply_type: *const glib::GVariantType,
10493 flags: GDBusCallFlags,
10494 timeout_msec: c_int,
10495 fd_list: *mut GUnixFDList,
10496 out_fd_list: *mut *mut GUnixFDList,
10497 cancellable: *mut GCancellable,
10498 error: *mut *mut glib::GError,
10499 ) -> *mut glib::GVariant;
10500 pub fn g_dbus_connection_close(
10501 connection: *mut GDBusConnection,
10502 cancellable: *mut GCancellable,
10503 callback: GAsyncReadyCallback,
10504 user_data: gpointer,
10505 );
10506 pub fn g_dbus_connection_close_finish(
10507 connection: *mut GDBusConnection,
10508 res: *mut GAsyncResult,
10509 error: *mut *mut glib::GError,
10510 ) -> gboolean;
10511 pub fn g_dbus_connection_close_sync(
10512 connection: *mut GDBusConnection,
10513 cancellable: *mut GCancellable,
10514 error: *mut *mut glib::GError,
10515 ) -> gboolean;
10516 pub fn g_dbus_connection_emit_signal(
10517 connection: *mut GDBusConnection,
10518 destination_bus_name: *const c_char,
10519 object_path: *const c_char,
10520 interface_name: *const c_char,
10521 signal_name: *const c_char,
10522 parameters: *mut glib::GVariant,
10523 error: *mut *mut glib::GError,
10524 ) -> gboolean;
10525 pub fn g_dbus_connection_export_action_group(
10526 connection: *mut GDBusConnection,
10527 object_path: *const c_char,
10528 action_group: *mut GActionGroup,
10529 error: *mut *mut glib::GError,
10530 ) -> c_uint;
10531 pub fn g_dbus_connection_export_menu_model(
10532 connection: *mut GDBusConnection,
10533 object_path: *const c_char,
10534 menu: *mut GMenuModel,
10535 error: *mut *mut glib::GError,
10536 ) -> c_uint;
10537 pub fn g_dbus_connection_flush(
10538 connection: *mut GDBusConnection,
10539 cancellable: *mut GCancellable,
10540 callback: GAsyncReadyCallback,
10541 user_data: gpointer,
10542 );
10543 pub fn g_dbus_connection_flush_finish(
10544 connection: *mut GDBusConnection,
10545 res: *mut GAsyncResult,
10546 error: *mut *mut glib::GError,
10547 ) -> gboolean;
10548 pub fn g_dbus_connection_flush_sync(
10549 connection: *mut GDBusConnection,
10550 cancellable: *mut GCancellable,
10551 error: *mut *mut glib::GError,
10552 ) -> gboolean;
10553 pub fn g_dbus_connection_get_capabilities(
10554 connection: *mut GDBusConnection,
10555 ) -> GDBusCapabilityFlags;
10556 pub fn g_dbus_connection_get_exit_on_close(connection: *mut GDBusConnection) -> gboolean;
10557 #[cfg(feature = "v2_60")]
10558 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
10559 pub fn g_dbus_connection_get_flags(connection: *mut GDBusConnection) -> GDBusConnectionFlags;
10560 pub fn g_dbus_connection_get_guid(connection: *mut GDBusConnection) -> *const c_char;
10561 pub fn g_dbus_connection_get_last_serial(connection: *mut GDBusConnection) -> u32;
10562 pub fn g_dbus_connection_get_peer_credentials(
10563 connection: *mut GDBusConnection,
10564 ) -> *mut GCredentials;
10565 pub fn g_dbus_connection_get_stream(connection: *mut GDBusConnection) -> *mut GIOStream;
10566 pub fn g_dbus_connection_get_unique_name(connection: *mut GDBusConnection) -> *const c_char;
10567 pub fn g_dbus_connection_is_closed(connection: *mut GDBusConnection) -> gboolean;
10568 pub fn g_dbus_connection_register_object(
10569 connection: *mut GDBusConnection,
10570 object_path: *const c_char,
10571 interface_info: *mut GDBusInterfaceInfo,
10572 vtable: *const GDBusInterfaceVTable,
10573 user_data: gpointer,
10574 user_data_free_func: glib::GDestroyNotify,
10575 error: *mut *mut glib::GError,
10576 ) -> c_uint;
10577 pub fn g_dbus_connection_register_object_with_closures(
10578 connection: *mut GDBusConnection,
10579 object_path: *const c_char,
10580 interface_info: *mut GDBusInterfaceInfo,
10581 method_call_closure: *mut gobject::GClosure,
10582 get_property_closure: *mut gobject::GClosure,
10583 set_property_closure: *mut gobject::GClosure,
10584 error: *mut *mut glib::GError,
10585 ) -> c_uint;
10586 #[cfg(feature = "v2_84")]
10587 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
10588 pub fn g_dbus_connection_register_object_with_closures2(
10589 connection: *mut GDBusConnection,
10590 object_path: *const c_char,
10591 interface_info: *mut GDBusInterfaceInfo,
10592 method_call_closure: *mut gobject::GClosure,
10593 get_property_closure: *mut gobject::GClosure,
10594 set_property_closure: *mut gobject::GClosure,
10595 error: *mut *mut glib::GError,
10596 ) -> c_uint;
10597 pub fn g_dbus_connection_register_subtree(
10598 connection: *mut GDBusConnection,
10599 object_path: *const c_char,
10600 vtable: *const GDBusSubtreeVTable,
10601 flags: GDBusSubtreeFlags,
10602 user_data: gpointer,
10603 user_data_free_func: glib::GDestroyNotify,
10604 error: *mut *mut glib::GError,
10605 ) -> c_uint;
10606 pub fn g_dbus_connection_remove_filter(connection: *mut GDBusConnection, filter_id: c_uint);
10607 pub fn g_dbus_connection_send_message(
10608 connection: *mut GDBusConnection,
10609 message: *mut GDBusMessage,
10610 flags: GDBusSendMessageFlags,
10611 out_serial: *mut u32,
10612 error: *mut *mut glib::GError,
10613 ) -> gboolean;
10614 pub fn g_dbus_connection_send_message_with_reply(
10615 connection: *mut GDBusConnection,
10616 message: *mut GDBusMessage,
10617 flags: GDBusSendMessageFlags,
10618 timeout_msec: c_int,
10619 out_serial: *mut u32,
10620 cancellable: *mut GCancellable,
10621 callback: GAsyncReadyCallback,
10622 user_data: gpointer,
10623 );
10624 pub fn g_dbus_connection_send_message_with_reply_finish(
10625 connection: *mut GDBusConnection,
10626 res: *mut GAsyncResult,
10627 error: *mut *mut glib::GError,
10628 ) -> *mut GDBusMessage;
10629 pub fn g_dbus_connection_send_message_with_reply_sync(
10630 connection: *mut GDBusConnection,
10631 message: *mut GDBusMessage,
10632 flags: GDBusSendMessageFlags,
10633 timeout_msec: c_int,
10634 out_serial: *mut u32,
10635 cancellable: *mut GCancellable,
10636 error: *mut *mut glib::GError,
10637 ) -> *mut GDBusMessage;
10638 pub fn g_dbus_connection_set_exit_on_close(
10639 connection: *mut GDBusConnection,
10640 exit_on_close: gboolean,
10641 );
10642 pub fn g_dbus_connection_signal_subscribe(
10643 connection: *mut GDBusConnection,
10644 sender: *const c_char,
10645 interface_name: *const c_char,
10646 member: *const c_char,
10647 object_path: *const c_char,
10648 arg0: *const c_char,
10649 flags: GDBusSignalFlags,
10650 callback: GDBusSignalCallback,
10651 user_data: gpointer,
10652 user_data_free_func: glib::GDestroyNotify,
10653 ) -> c_uint;
10654 pub fn g_dbus_connection_signal_unsubscribe(
10655 connection: *mut GDBusConnection,
10656 subscription_id: c_uint,
10657 );
10658 pub fn g_dbus_connection_start_message_processing(connection: *mut GDBusConnection);
10659 pub fn g_dbus_connection_unexport_action_group(
10660 connection: *mut GDBusConnection,
10661 export_id: c_uint,
10662 );
10663 pub fn g_dbus_connection_unexport_menu_model(
10664 connection: *mut GDBusConnection,
10665 export_id: c_uint,
10666 );
10667 pub fn g_dbus_connection_unregister_object(
10668 connection: *mut GDBusConnection,
10669 registration_id: c_uint,
10670 ) -> gboolean;
10671 pub fn g_dbus_connection_unregister_subtree(
10672 connection: *mut GDBusConnection,
10673 registration_id: c_uint,
10674 ) -> gboolean;
10675
10676 pub fn g_dbus_interface_skeleton_get_type() -> GType;
10680 pub fn g_dbus_interface_skeleton_export(
10681 interface_: *mut GDBusInterfaceSkeleton,
10682 connection: *mut GDBusConnection,
10683 object_path: *const c_char,
10684 error: *mut *mut glib::GError,
10685 ) -> gboolean;
10686 pub fn g_dbus_interface_skeleton_flush(interface_: *mut GDBusInterfaceSkeleton);
10687 pub fn g_dbus_interface_skeleton_get_connection(
10688 interface_: *mut GDBusInterfaceSkeleton,
10689 ) -> *mut GDBusConnection;
10690 pub fn g_dbus_interface_skeleton_get_connections(
10691 interface_: *mut GDBusInterfaceSkeleton,
10692 ) -> *mut glib::GList;
10693 pub fn g_dbus_interface_skeleton_get_flags(
10694 interface_: *mut GDBusInterfaceSkeleton,
10695 ) -> GDBusInterfaceSkeletonFlags;
10696 pub fn g_dbus_interface_skeleton_get_info(
10697 interface_: *mut GDBusInterfaceSkeleton,
10698 ) -> *mut GDBusInterfaceInfo;
10699 pub fn g_dbus_interface_skeleton_get_object_path(
10700 interface_: *mut GDBusInterfaceSkeleton,
10701 ) -> *const c_char;
10702 pub fn g_dbus_interface_skeleton_get_properties(
10703 interface_: *mut GDBusInterfaceSkeleton,
10704 ) -> *mut glib::GVariant;
10705 pub fn g_dbus_interface_skeleton_get_vtable(
10706 interface_: *mut GDBusInterfaceSkeleton,
10707 ) -> *mut GDBusInterfaceVTable;
10708 pub fn g_dbus_interface_skeleton_has_connection(
10709 interface_: *mut GDBusInterfaceSkeleton,
10710 connection: *mut GDBusConnection,
10711 ) -> gboolean;
10712 pub fn g_dbus_interface_skeleton_set_flags(
10713 interface_: *mut GDBusInterfaceSkeleton,
10714 flags: GDBusInterfaceSkeletonFlags,
10715 );
10716 pub fn g_dbus_interface_skeleton_unexport(interface_: *mut GDBusInterfaceSkeleton);
10717 pub fn g_dbus_interface_skeleton_unexport_from_connection(
10718 interface_: *mut GDBusInterfaceSkeleton,
10719 connection: *mut GDBusConnection,
10720 );
10721
10722 pub fn g_dbus_menu_model_get_type() -> GType;
10726 pub fn g_dbus_menu_model_get(
10727 connection: *mut GDBusConnection,
10728 bus_name: *const c_char,
10729 object_path: *const c_char,
10730 ) -> *mut GDBusMenuModel;
10731
10732 pub fn g_dbus_message_get_type() -> GType;
10736 pub fn g_dbus_message_new() -> *mut GDBusMessage;
10737 pub fn g_dbus_message_new_from_blob(
10738 blob: *mut u8,
10739 blob_len: size_t,
10740 capabilities: GDBusCapabilityFlags,
10741 error: *mut *mut glib::GError,
10742 ) -> *mut GDBusMessage;
10743 pub fn g_dbus_message_new_method_call(
10744 name: *const c_char,
10745 path: *const c_char,
10746 interface_: *const c_char,
10747 method: *const c_char,
10748 ) -> *mut GDBusMessage;
10749 pub fn g_dbus_message_new_signal(
10750 path: *const c_char,
10751 interface_: *const c_char,
10752 signal: *const c_char,
10753 ) -> *mut GDBusMessage;
10754 pub fn g_dbus_message_bytes_needed(
10755 blob: *mut u8,
10756 blob_len: size_t,
10757 error: *mut *mut glib::GError,
10758 ) -> ssize_t;
10759 pub fn g_dbus_message_copy(
10760 message: *mut GDBusMessage,
10761 error: *mut *mut glib::GError,
10762 ) -> *mut GDBusMessage;
10763 pub fn g_dbus_message_get_arg0(message: *mut GDBusMessage) -> *const c_char;
10764 #[cfg(feature = "v2_80")]
10765 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
10766 pub fn g_dbus_message_get_arg0_path(message: *mut GDBusMessage) -> *const c_char;
10767 pub fn g_dbus_message_get_body(message: *mut GDBusMessage) -> *mut glib::GVariant;
10768 pub fn g_dbus_message_get_byte_order(message: *mut GDBusMessage) -> GDBusMessageByteOrder;
10769 pub fn g_dbus_message_get_destination(message: *mut GDBusMessage) -> *const c_char;
10770 pub fn g_dbus_message_get_error_name(message: *mut GDBusMessage) -> *const c_char;
10771 pub fn g_dbus_message_get_flags(message: *mut GDBusMessage) -> GDBusMessageFlags;
10772 pub fn g_dbus_message_get_header(
10773 message: *mut GDBusMessage,
10774 header_field: GDBusMessageHeaderField,
10775 ) -> *mut glib::GVariant;
10776 pub fn g_dbus_message_get_header_fields(message: *mut GDBusMessage) -> *mut u8;
10777 pub fn g_dbus_message_get_interface(message: *mut GDBusMessage) -> *const c_char;
10778 pub fn g_dbus_message_get_locked(message: *mut GDBusMessage) -> gboolean;
10779 pub fn g_dbus_message_get_member(message: *mut GDBusMessage) -> *const c_char;
10780 pub fn g_dbus_message_get_message_type(message: *mut GDBusMessage) -> GDBusMessageType;
10781 pub fn g_dbus_message_get_num_unix_fds(message: *mut GDBusMessage) -> u32;
10782 pub fn g_dbus_message_get_path(message: *mut GDBusMessage) -> *const c_char;
10783 pub fn g_dbus_message_get_reply_serial(message: *mut GDBusMessage) -> u32;
10784 pub fn g_dbus_message_get_sender(message: *mut GDBusMessage) -> *const c_char;
10785 pub fn g_dbus_message_get_serial(message: *mut GDBusMessage) -> u32;
10786 pub fn g_dbus_message_get_signature(message: *mut GDBusMessage) -> *const c_char;
10787 pub fn g_dbus_message_get_unix_fd_list(message: *mut GDBusMessage) -> *mut GUnixFDList;
10788 pub fn g_dbus_message_lock(message: *mut GDBusMessage);
10789 pub fn g_dbus_message_new_method_error(
10790 method_call_message: *mut GDBusMessage,
10791 error_name: *const c_char,
10792 error_message_format: *const c_char,
10793 ...
10794 ) -> *mut GDBusMessage;
10795 pub fn g_dbus_message_new_method_error_literal(
10796 method_call_message: *mut GDBusMessage,
10797 error_name: *const c_char,
10798 error_message: *const c_char,
10799 ) -> *mut GDBusMessage;
10800 pub fn g_dbus_message_new_method_reply(
10802 method_call_message: *mut GDBusMessage,
10803 ) -> *mut GDBusMessage;
10804 pub fn g_dbus_message_print(message: *mut GDBusMessage, indent: c_uint) -> *mut c_char;
10805 pub fn g_dbus_message_set_body(message: *mut GDBusMessage, body: *mut glib::GVariant);
10806 pub fn g_dbus_message_set_byte_order(
10807 message: *mut GDBusMessage,
10808 byte_order: GDBusMessageByteOrder,
10809 );
10810 pub fn g_dbus_message_set_destination(message: *mut GDBusMessage, value: *const c_char);
10811 pub fn g_dbus_message_set_error_name(message: *mut GDBusMessage, value: *const c_char);
10812 pub fn g_dbus_message_set_flags(message: *mut GDBusMessage, flags: GDBusMessageFlags);
10813 pub fn g_dbus_message_set_header(
10814 message: *mut GDBusMessage,
10815 header_field: GDBusMessageHeaderField,
10816 value: *mut glib::GVariant,
10817 );
10818 pub fn g_dbus_message_set_interface(message: *mut GDBusMessage, value: *const c_char);
10819 pub fn g_dbus_message_set_member(message: *mut GDBusMessage, value: *const c_char);
10820 pub fn g_dbus_message_set_message_type(message: *mut GDBusMessage, type_: GDBusMessageType);
10821 pub fn g_dbus_message_set_num_unix_fds(message: *mut GDBusMessage, value: u32);
10822 pub fn g_dbus_message_set_path(message: *mut GDBusMessage, value: *const c_char);
10823 pub fn g_dbus_message_set_reply_serial(message: *mut GDBusMessage, value: u32);
10824 pub fn g_dbus_message_set_sender(message: *mut GDBusMessage, value: *const c_char);
10825 pub fn g_dbus_message_set_serial(message: *mut GDBusMessage, serial: u32);
10826 pub fn g_dbus_message_set_signature(message: *mut GDBusMessage, value: *const c_char);
10827 pub fn g_dbus_message_set_unix_fd_list(message: *mut GDBusMessage, fd_list: *mut GUnixFDList);
10828 pub fn g_dbus_message_to_blob(
10829 message: *mut GDBusMessage,
10830 out_size: *mut size_t,
10831 capabilities: GDBusCapabilityFlags,
10832 error: *mut *mut glib::GError,
10833 ) -> *mut u8;
10834 pub fn g_dbus_message_to_gerror(
10835 message: *mut GDBusMessage,
10836 error: *mut *mut glib::GError,
10837 ) -> gboolean;
10838
10839 pub fn g_dbus_method_invocation_get_type() -> GType;
10843 pub fn g_dbus_method_invocation_get_connection(
10844 invocation: *mut GDBusMethodInvocation,
10845 ) -> *mut GDBusConnection;
10846 pub fn g_dbus_method_invocation_get_interface_name(
10847 invocation: *mut GDBusMethodInvocation,
10848 ) -> *const c_char;
10849 pub fn g_dbus_method_invocation_get_message(
10850 invocation: *mut GDBusMethodInvocation,
10851 ) -> *mut GDBusMessage;
10852 pub fn g_dbus_method_invocation_get_method_info(
10853 invocation: *mut GDBusMethodInvocation,
10854 ) -> *const GDBusMethodInfo;
10855 pub fn g_dbus_method_invocation_get_method_name(
10856 invocation: *mut GDBusMethodInvocation,
10857 ) -> *const c_char;
10858 pub fn g_dbus_method_invocation_get_object_path(
10859 invocation: *mut GDBusMethodInvocation,
10860 ) -> *const c_char;
10861 pub fn g_dbus_method_invocation_get_parameters(
10862 invocation: *mut GDBusMethodInvocation,
10863 ) -> *mut glib::GVariant;
10864 pub fn g_dbus_method_invocation_get_property_info(
10865 invocation: *mut GDBusMethodInvocation,
10866 ) -> *const GDBusPropertyInfo;
10867 pub fn g_dbus_method_invocation_get_sender(
10868 invocation: *mut GDBusMethodInvocation,
10869 ) -> *const c_char;
10870 pub fn g_dbus_method_invocation_get_user_data(
10871 invocation: *mut GDBusMethodInvocation,
10872 ) -> gpointer;
10873 pub fn g_dbus_method_invocation_return_dbus_error(
10874 invocation: *mut GDBusMethodInvocation,
10875 error_name: *const c_char,
10876 error_message: *const c_char,
10877 );
10878 pub fn g_dbus_method_invocation_return_error(
10879 invocation: *mut GDBusMethodInvocation,
10880 domain: glib::GQuark,
10881 code: c_int,
10882 format: *const c_char,
10883 ...
10884 );
10885 pub fn g_dbus_method_invocation_return_error_literal(
10886 invocation: *mut GDBusMethodInvocation,
10887 domain: glib::GQuark,
10888 code: c_int,
10889 message: *const c_char,
10890 );
10891 pub fn g_dbus_method_invocation_return_gerror(
10893 invocation: *mut GDBusMethodInvocation,
10894 error: *const glib::GError,
10895 );
10896 pub fn g_dbus_method_invocation_return_value(
10897 invocation: *mut GDBusMethodInvocation,
10898 parameters: *mut glib::GVariant,
10899 );
10900 pub fn g_dbus_method_invocation_return_value_with_unix_fd_list(
10901 invocation: *mut GDBusMethodInvocation,
10902 parameters: *mut glib::GVariant,
10903 fd_list: *mut GUnixFDList,
10904 );
10905 pub fn g_dbus_method_invocation_take_error(
10906 invocation: *mut GDBusMethodInvocation,
10907 error: *mut glib::GError,
10908 );
10909
10910 pub fn g_dbus_object_manager_client_get_type() -> GType;
10914 pub fn g_dbus_object_manager_client_new_finish(
10915 res: *mut GAsyncResult,
10916 error: *mut *mut glib::GError,
10917 ) -> *mut GDBusObjectManagerClient;
10918 pub fn g_dbus_object_manager_client_new_for_bus_finish(
10919 res: *mut GAsyncResult,
10920 error: *mut *mut glib::GError,
10921 ) -> *mut GDBusObjectManagerClient;
10922 pub fn g_dbus_object_manager_client_new_for_bus_sync(
10923 bus_type: GBusType,
10924 flags: GDBusObjectManagerClientFlags,
10925 name: *const c_char,
10926 object_path: *const c_char,
10927 get_proxy_type_func: GDBusProxyTypeFunc,
10928 get_proxy_type_user_data: gpointer,
10929 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10930 cancellable: *mut GCancellable,
10931 error: *mut *mut glib::GError,
10932 ) -> *mut GDBusObjectManagerClient;
10933 pub fn g_dbus_object_manager_client_new_sync(
10934 connection: *mut GDBusConnection,
10935 flags: GDBusObjectManagerClientFlags,
10936 name: *const c_char,
10937 object_path: *const c_char,
10938 get_proxy_type_func: GDBusProxyTypeFunc,
10939 get_proxy_type_user_data: gpointer,
10940 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10941 cancellable: *mut GCancellable,
10942 error: *mut *mut glib::GError,
10943 ) -> *mut GDBusObjectManagerClient;
10944 pub fn g_dbus_object_manager_client_new(
10945 connection: *mut GDBusConnection,
10946 flags: GDBusObjectManagerClientFlags,
10947 name: *const c_char,
10948 object_path: *const c_char,
10949 get_proxy_type_func: GDBusProxyTypeFunc,
10950 get_proxy_type_user_data: gpointer,
10951 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10952 cancellable: *mut GCancellable,
10953 callback: GAsyncReadyCallback,
10954 user_data: gpointer,
10955 );
10956 pub fn g_dbus_object_manager_client_new_for_bus(
10957 bus_type: GBusType,
10958 flags: GDBusObjectManagerClientFlags,
10959 name: *const c_char,
10960 object_path: *const c_char,
10961 get_proxy_type_func: GDBusProxyTypeFunc,
10962 get_proxy_type_user_data: gpointer,
10963 get_proxy_type_destroy_notify: glib::GDestroyNotify,
10964 cancellable: *mut GCancellable,
10965 callback: GAsyncReadyCallback,
10966 user_data: gpointer,
10967 );
10968 pub fn g_dbus_object_manager_client_get_connection(
10969 manager: *mut GDBusObjectManagerClient,
10970 ) -> *mut GDBusConnection;
10971 pub fn g_dbus_object_manager_client_get_flags(
10972 manager: *mut GDBusObjectManagerClient,
10973 ) -> GDBusObjectManagerClientFlags;
10974 pub fn g_dbus_object_manager_client_get_name(
10975 manager: *mut GDBusObjectManagerClient,
10976 ) -> *const c_char;
10977 pub fn g_dbus_object_manager_client_get_name_owner(
10978 manager: *mut GDBusObjectManagerClient,
10979 ) -> *mut c_char;
10980
10981 pub fn g_dbus_object_manager_server_get_type() -> GType;
10985 pub fn g_dbus_object_manager_server_new(
10986 object_path: *const c_char,
10987 ) -> *mut GDBusObjectManagerServer;
10988 pub fn g_dbus_object_manager_server_export(
10989 manager: *mut GDBusObjectManagerServer,
10990 object: *mut GDBusObjectSkeleton,
10991 );
10992 pub fn g_dbus_object_manager_server_export_uniquely(
10993 manager: *mut GDBusObjectManagerServer,
10994 object: *mut GDBusObjectSkeleton,
10995 );
10996 pub fn g_dbus_object_manager_server_get_connection(
10997 manager: *mut GDBusObjectManagerServer,
10998 ) -> *mut GDBusConnection;
10999 pub fn g_dbus_object_manager_server_is_exported(
11000 manager: *mut GDBusObjectManagerServer,
11001 object: *mut GDBusObjectSkeleton,
11002 ) -> gboolean;
11003 pub fn g_dbus_object_manager_server_set_connection(
11004 manager: *mut GDBusObjectManagerServer,
11005 connection: *mut GDBusConnection,
11006 );
11007 pub fn g_dbus_object_manager_server_unexport(
11008 manager: *mut GDBusObjectManagerServer,
11009 object_path: *const c_char,
11010 ) -> gboolean;
11011
11012 pub fn g_dbus_object_proxy_get_type() -> GType;
11016 pub fn g_dbus_object_proxy_new(
11017 connection: *mut GDBusConnection,
11018 object_path: *const c_char,
11019 ) -> *mut GDBusObjectProxy;
11020 pub fn g_dbus_object_proxy_get_connection(proxy: *mut GDBusObjectProxy)
11021 -> *mut GDBusConnection;
11022
11023 pub fn g_dbus_object_skeleton_get_type() -> GType;
11027 pub fn g_dbus_object_skeleton_new(object_path: *const c_char) -> *mut GDBusObjectSkeleton;
11028 pub fn g_dbus_object_skeleton_add_interface(
11029 object: *mut GDBusObjectSkeleton,
11030 interface_: *mut GDBusInterfaceSkeleton,
11031 );
11032 pub fn g_dbus_object_skeleton_flush(object: *mut GDBusObjectSkeleton);
11033 pub fn g_dbus_object_skeleton_remove_interface(
11034 object: *mut GDBusObjectSkeleton,
11035 interface_: *mut GDBusInterfaceSkeleton,
11036 );
11037 pub fn g_dbus_object_skeleton_remove_interface_by_name(
11038 object: *mut GDBusObjectSkeleton,
11039 interface_name: *const c_char,
11040 );
11041 pub fn g_dbus_object_skeleton_set_object_path(
11042 object: *mut GDBusObjectSkeleton,
11043 object_path: *const c_char,
11044 );
11045
11046 pub fn g_dbus_proxy_get_type() -> GType;
11050 pub fn g_dbus_proxy_new_finish(
11051 res: *mut GAsyncResult,
11052 error: *mut *mut glib::GError,
11053 ) -> *mut GDBusProxy;
11054 pub fn g_dbus_proxy_new_for_bus_finish(
11055 res: *mut GAsyncResult,
11056 error: *mut *mut glib::GError,
11057 ) -> *mut GDBusProxy;
11058 pub fn g_dbus_proxy_new_for_bus_sync(
11059 bus_type: GBusType,
11060 flags: GDBusProxyFlags,
11061 info: *mut GDBusInterfaceInfo,
11062 name: *const c_char,
11063 object_path: *const c_char,
11064 interface_name: *const c_char,
11065 cancellable: *mut GCancellable,
11066 error: *mut *mut glib::GError,
11067 ) -> *mut GDBusProxy;
11068 pub fn g_dbus_proxy_new_sync(
11069 connection: *mut GDBusConnection,
11070 flags: GDBusProxyFlags,
11071 info: *mut GDBusInterfaceInfo,
11072 name: *const c_char,
11073 object_path: *const c_char,
11074 interface_name: *const c_char,
11075 cancellable: *mut GCancellable,
11076 error: *mut *mut glib::GError,
11077 ) -> *mut GDBusProxy;
11078 pub fn g_dbus_proxy_new(
11079 connection: *mut GDBusConnection,
11080 flags: GDBusProxyFlags,
11081 info: *mut GDBusInterfaceInfo,
11082 name: *const c_char,
11083 object_path: *const c_char,
11084 interface_name: *const c_char,
11085 cancellable: *mut GCancellable,
11086 callback: GAsyncReadyCallback,
11087 user_data: gpointer,
11088 );
11089 pub fn g_dbus_proxy_new_for_bus(
11090 bus_type: GBusType,
11091 flags: GDBusProxyFlags,
11092 info: *mut GDBusInterfaceInfo,
11093 name: *const c_char,
11094 object_path: *const c_char,
11095 interface_name: *const c_char,
11096 cancellable: *mut GCancellable,
11097 callback: GAsyncReadyCallback,
11098 user_data: gpointer,
11099 );
11100 pub fn g_dbus_proxy_call(
11101 proxy: *mut GDBusProxy,
11102 method_name: *const c_char,
11103 parameters: *mut glib::GVariant,
11104 flags: GDBusCallFlags,
11105 timeout_msec: c_int,
11106 cancellable: *mut GCancellable,
11107 callback: GAsyncReadyCallback,
11108 user_data: gpointer,
11109 );
11110 pub fn g_dbus_proxy_call_finish(
11111 proxy: *mut GDBusProxy,
11112 res: *mut GAsyncResult,
11113 error: *mut *mut glib::GError,
11114 ) -> *mut glib::GVariant;
11115 pub fn g_dbus_proxy_call_sync(
11116 proxy: *mut GDBusProxy,
11117 method_name: *const c_char,
11118 parameters: *mut glib::GVariant,
11119 flags: GDBusCallFlags,
11120 timeout_msec: c_int,
11121 cancellable: *mut GCancellable,
11122 error: *mut *mut glib::GError,
11123 ) -> *mut glib::GVariant;
11124 pub fn g_dbus_proxy_call_with_unix_fd_list(
11125 proxy: *mut GDBusProxy,
11126 method_name: *const c_char,
11127 parameters: *mut glib::GVariant,
11128 flags: GDBusCallFlags,
11129 timeout_msec: c_int,
11130 fd_list: *mut GUnixFDList,
11131 cancellable: *mut GCancellable,
11132 callback: GAsyncReadyCallback,
11133 user_data: gpointer,
11134 );
11135 pub fn g_dbus_proxy_call_with_unix_fd_list_finish(
11136 proxy: *mut GDBusProxy,
11137 out_fd_list: *mut *mut GUnixFDList,
11138 res: *mut GAsyncResult,
11139 error: *mut *mut glib::GError,
11140 ) -> *mut glib::GVariant;
11141 pub fn g_dbus_proxy_call_with_unix_fd_list_sync(
11142 proxy: *mut GDBusProxy,
11143 method_name: *const c_char,
11144 parameters: *mut glib::GVariant,
11145 flags: GDBusCallFlags,
11146 timeout_msec: c_int,
11147 fd_list: *mut GUnixFDList,
11148 out_fd_list: *mut *mut GUnixFDList,
11149 cancellable: *mut GCancellable,
11150 error: *mut *mut glib::GError,
11151 ) -> *mut glib::GVariant;
11152 pub fn g_dbus_proxy_get_cached_property(
11153 proxy: *mut GDBusProxy,
11154 property_name: *const c_char,
11155 ) -> *mut glib::GVariant;
11156 pub fn g_dbus_proxy_get_cached_property_names(proxy: *mut GDBusProxy) -> *mut *mut c_char;
11157 pub fn g_dbus_proxy_get_connection(proxy: *mut GDBusProxy) -> *mut GDBusConnection;
11158 pub fn g_dbus_proxy_get_default_timeout(proxy: *mut GDBusProxy) -> c_int;
11159 pub fn g_dbus_proxy_get_flags(proxy: *mut GDBusProxy) -> GDBusProxyFlags;
11160 pub fn g_dbus_proxy_get_interface_info(proxy: *mut GDBusProxy) -> *mut GDBusInterfaceInfo;
11161 pub fn g_dbus_proxy_get_interface_name(proxy: *mut GDBusProxy) -> *const c_char;
11162 pub fn g_dbus_proxy_get_name(proxy: *mut GDBusProxy) -> *const c_char;
11163 pub fn g_dbus_proxy_get_name_owner(proxy: *mut GDBusProxy) -> *mut c_char;
11164 pub fn g_dbus_proxy_get_object_path(proxy: *mut GDBusProxy) -> *const c_char;
11165 pub fn g_dbus_proxy_set_cached_property(
11166 proxy: *mut GDBusProxy,
11167 property_name: *const c_char,
11168 value: *mut glib::GVariant,
11169 );
11170 pub fn g_dbus_proxy_set_default_timeout(proxy: *mut GDBusProxy, timeout_msec: c_int);
11171 pub fn g_dbus_proxy_set_interface_info(proxy: *mut GDBusProxy, info: *mut GDBusInterfaceInfo);
11172
11173 pub fn g_dbus_server_get_type() -> GType;
11177 pub fn g_dbus_server_new_sync(
11178 address: *const c_char,
11179 flags: GDBusServerFlags,
11180 guid: *const c_char,
11181 observer: *mut GDBusAuthObserver,
11182 cancellable: *mut GCancellable,
11183 error: *mut *mut glib::GError,
11184 ) -> *mut GDBusServer;
11185 pub fn g_dbus_server_get_client_address(server: *mut GDBusServer) -> *const c_char;
11186 pub fn g_dbus_server_get_flags(server: *mut GDBusServer) -> GDBusServerFlags;
11187 pub fn g_dbus_server_get_guid(server: *mut GDBusServer) -> *const c_char;
11188 pub fn g_dbus_server_is_active(server: *mut GDBusServer) -> gboolean;
11189 pub fn g_dbus_server_start(server: *mut GDBusServer);
11190 pub fn g_dbus_server_stop(server: *mut GDBusServer);
11191
11192 pub fn g_data_input_stream_get_type() -> GType;
11196 pub fn g_data_input_stream_new(base_stream: *mut GInputStream) -> *mut GDataInputStream;
11197 pub fn g_data_input_stream_get_byte_order(
11198 stream: *mut GDataInputStream,
11199 ) -> GDataStreamByteOrder;
11200 pub fn g_data_input_stream_get_newline_type(
11201 stream: *mut GDataInputStream,
11202 ) -> GDataStreamNewlineType;
11203 pub fn g_data_input_stream_read_byte(
11204 stream: *mut GDataInputStream,
11205 cancellable: *mut GCancellable,
11206 error: *mut *mut glib::GError,
11207 ) -> c_uchar;
11208 pub fn g_data_input_stream_read_int16(
11209 stream: *mut GDataInputStream,
11210 cancellable: *mut GCancellable,
11211 error: *mut *mut glib::GError,
11212 ) -> i16;
11213 pub fn g_data_input_stream_read_int32(
11214 stream: *mut GDataInputStream,
11215 cancellable: *mut GCancellable,
11216 error: *mut *mut glib::GError,
11217 ) -> i32;
11218 pub fn g_data_input_stream_read_int64(
11219 stream: *mut GDataInputStream,
11220 cancellable: *mut GCancellable,
11221 error: *mut *mut glib::GError,
11222 ) -> i64;
11223 pub fn g_data_input_stream_read_line(
11224 stream: *mut GDataInputStream,
11225 length: *mut size_t,
11226 cancellable: *mut GCancellable,
11227 error: *mut *mut glib::GError,
11228 ) -> *mut u8;
11229 pub fn g_data_input_stream_read_line_async(
11230 stream: *mut GDataInputStream,
11231 io_priority: c_int,
11232 cancellable: *mut GCancellable,
11233 callback: GAsyncReadyCallback,
11234 user_data: gpointer,
11235 );
11236 pub fn g_data_input_stream_read_line_finish(
11237 stream: *mut GDataInputStream,
11238 result: *mut GAsyncResult,
11239 length: *mut size_t,
11240 error: *mut *mut glib::GError,
11241 ) -> *mut u8;
11242 pub fn g_data_input_stream_read_line_finish_utf8(
11243 stream: *mut GDataInputStream,
11244 result: *mut GAsyncResult,
11245 length: *mut size_t,
11246 error: *mut *mut glib::GError,
11247 ) -> *mut c_char;
11248 pub fn g_data_input_stream_read_line_utf8(
11249 stream: *mut GDataInputStream,
11250 length: *mut size_t,
11251 cancellable: *mut GCancellable,
11252 error: *mut *mut glib::GError,
11253 ) -> *mut c_char;
11254 pub fn g_data_input_stream_read_uint16(
11255 stream: *mut GDataInputStream,
11256 cancellable: *mut GCancellable,
11257 error: *mut *mut glib::GError,
11258 ) -> u16;
11259 pub fn g_data_input_stream_read_uint32(
11260 stream: *mut GDataInputStream,
11261 cancellable: *mut GCancellable,
11262 error: *mut *mut glib::GError,
11263 ) -> u32;
11264 pub fn g_data_input_stream_read_uint64(
11265 stream: *mut GDataInputStream,
11266 cancellable: *mut GCancellable,
11267 error: *mut *mut glib::GError,
11268 ) -> u64;
11269 pub fn g_data_input_stream_read_until(
11270 stream: *mut GDataInputStream,
11271 stop_chars: *const c_char,
11272 length: *mut size_t,
11273 cancellable: *mut GCancellable,
11274 error: *mut *mut glib::GError,
11275 ) -> *mut c_char;
11276 pub fn g_data_input_stream_read_until_async(
11277 stream: *mut GDataInputStream,
11278 stop_chars: *const c_char,
11279 io_priority: c_int,
11280 cancellable: *mut GCancellable,
11281 callback: GAsyncReadyCallback,
11282 user_data: gpointer,
11283 );
11284 pub fn g_data_input_stream_read_until_finish(
11285 stream: *mut GDataInputStream,
11286 result: *mut GAsyncResult,
11287 length: *mut size_t,
11288 error: *mut *mut glib::GError,
11289 ) -> *mut c_char;
11290 pub fn g_data_input_stream_read_upto(
11291 stream: *mut GDataInputStream,
11292 stop_chars: *const c_char,
11293 stop_chars_len: ssize_t,
11294 length: *mut size_t,
11295 cancellable: *mut GCancellable,
11296 error: *mut *mut glib::GError,
11297 ) -> *mut c_char;
11298 pub fn g_data_input_stream_read_upto_async(
11299 stream: *mut GDataInputStream,
11300 stop_chars: *const c_char,
11301 stop_chars_len: ssize_t,
11302 io_priority: c_int,
11303 cancellable: *mut GCancellable,
11304 callback: GAsyncReadyCallback,
11305 user_data: gpointer,
11306 );
11307 pub fn g_data_input_stream_read_upto_finish(
11308 stream: *mut GDataInputStream,
11309 result: *mut GAsyncResult,
11310 length: *mut size_t,
11311 error: *mut *mut glib::GError,
11312 ) -> *mut c_char;
11313 pub fn g_data_input_stream_set_byte_order(
11314 stream: *mut GDataInputStream,
11315 order: GDataStreamByteOrder,
11316 );
11317 pub fn g_data_input_stream_set_newline_type(
11318 stream: *mut GDataInputStream,
11319 type_: GDataStreamNewlineType,
11320 );
11321
11322 pub fn g_data_output_stream_get_type() -> GType;
11326 pub fn g_data_output_stream_new(base_stream: *mut GOutputStream) -> *mut GDataOutputStream;
11327 pub fn g_data_output_stream_get_byte_order(
11328 stream: *mut GDataOutputStream,
11329 ) -> GDataStreamByteOrder;
11330 pub fn g_data_output_stream_put_byte(
11331 stream: *mut GDataOutputStream,
11332 data: c_uchar,
11333 cancellable: *mut GCancellable,
11334 error: *mut *mut glib::GError,
11335 ) -> gboolean;
11336 pub fn g_data_output_stream_put_int16(
11337 stream: *mut GDataOutputStream,
11338 data: i16,
11339 cancellable: *mut GCancellable,
11340 error: *mut *mut glib::GError,
11341 ) -> gboolean;
11342 pub fn g_data_output_stream_put_int32(
11343 stream: *mut GDataOutputStream,
11344 data: i32,
11345 cancellable: *mut GCancellable,
11346 error: *mut *mut glib::GError,
11347 ) -> gboolean;
11348 pub fn g_data_output_stream_put_int64(
11349 stream: *mut GDataOutputStream,
11350 data: i64,
11351 cancellable: *mut GCancellable,
11352 error: *mut *mut glib::GError,
11353 ) -> gboolean;
11354 pub fn g_data_output_stream_put_string(
11355 stream: *mut GDataOutputStream,
11356 str: *const c_char,
11357 cancellable: *mut GCancellable,
11358 error: *mut *mut glib::GError,
11359 ) -> gboolean;
11360 pub fn g_data_output_stream_put_uint16(
11361 stream: *mut GDataOutputStream,
11362 data: u16,
11363 cancellable: *mut GCancellable,
11364 error: *mut *mut glib::GError,
11365 ) -> gboolean;
11366 pub fn g_data_output_stream_put_uint32(
11367 stream: *mut GDataOutputStream,
11368 data: u32,
11369 cancellable: *mut GCancellable,
11370 error: *mut *mut glib::GError,
11371 ) -> gboolean;
11372 pub fn g_data_output_stream_put_uint64(
11373 stream: *mut GDataOutputStream,
11374 data: u64,
11375 cancellable: *mut GCancellable,
11376 error: *mut *mut glib::GError,
11377 ) -> gboolean;
11378 pub fn g_data_output_stream_set_byte_order(
11379 stream: *mut GDataOutputStream,
11380 order: GDataStreamByteOrder,
11381 );
11382
11383 #[cfg(feature = "v2_72")]
11387 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11388 pub fn g_debug_controller_dbus_get_type() -> GType;
11389 #[cfg(feature = "v2_72")]
11390 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11391 pub fn g_debug_controller_dbus_new(
11392 connection: *mut GDBusConnection,
11393 cancellable: *mut GCancellable,
11394 error: *mut *mut glib::GError,
11395 ) -> *mut GDebugControllerDBus;
11396 #[cfg(feature = "v2_72")]
11397 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
11398 pub fn g_debug_controller_dbus_stop(self_: *mut GDebugControllerDBus);
11399
11400 pub fn g_emblem_get_type() -> GType;
11404 pub fn g_emblem_new(icon: *mut GIcon) -> *mut GEmblem;
11405 pub fn g_emblem_new_with_origin(icon: *mut GIcon, origin: GEmblemOrigin) -> *mut GEmblem;
11406 pub fn g_emblem_get_icon(emblem: *mut GEmblem) -> *mut GIcon;
11407 pub fn g_emblem_get_origin(emblem: *mut GEmblem) -> GEmblemOrigin;
11408
11409 pub fn g_emblemed_icon_get_type() -> GType;
11413 pub fn g_emblemed_icon_new(icon: *mut GIcon, emblem: *mut GEmblem) -> *mut GEmblemedIcon;
11414 pub fn g_emblemed_icon_add_emblem(emblemed: *mut GEmblemedIcon, emblem: *mut GEmblem);
11415 pub fn g_emblemed_icon_clear_emblems(emblemed: *mut GEmblemedIcon);
11416 pub fn g_emblemed_icon_get_emblems(emblemed: *mut GEmblemedIcon) -> *mut glib::GList;
11417 pub fn g_emblemed_icon_get_icon(emblemed: *mut GEmblemedIcon) -> *mut GIcon;
11418
11419 pub fn g_file_enumerator_get_type() -> GType;
11423 pub fn g_file_enumerator_close(
11424 enumerator: *mut GFileEnumerator,
11425 cancellable: *mut GCancellable,
11426 error: *mut *mut glib::GError,
11427 ) -> gboolean;
11428 pub fn g_file_enumerator_close_async(
11429 enumerator: *mut GFileEnumerator,
11430 io_priority: c_int,
11431 cancellable: *mut GCancellable,
11432 callback: GAsyncReadyCallback,
11433 user_data: gpointer,
11434 );
11435 pub fn g_file_enumerator_close_finish(
11436 enumerator: *mut GFileEnumerator,
11437 result: *mut GAsyncResult,
11438 error: *mut *mut glib::GError,
11439 ) -> gboolean;
11440 pub fn g_file_enumerator_get_child(
11441 enumerator: *mut GFileEnumerator,
11442 info: *mut GFileInfo,
11443 ) -> *mut GFile;
11444 pub fn g_file_enumerator_get_container(enumerator: *mut GFileEnumerator) -> *mut GFile;
11445 pub fn g_file_enumerator_has_pending(enumerator: *mut GFileEnumerator) -> gboolean;
11446 pub fn g_file_enumerator_is_closed(enumerator: *mut GFileEnumerator) -> gboolean;
11447 pub fn g_file_enumerator_iterate(
11448 direnum: *mut GFileEnumerator,
11449 out_info: *mut *mut GFileInfo,
11450 out_child: *mut *mut GFile,
11451 cancellable: *mut GCancellable,
11452 error: *mut *mut glib::GError,
11453 ) -> gboolean;
11454 pub fn g_file_enumerator_next_file(
11455 enumerator: *mut GFileEnumerator,
11456 cancellable: *mut GCancellable,
11457 error: *mut *mut glib::GError,
11458 ) -> *mut GFileInfo;
11459 pub fn g_file_enumerator_next_files_async(
11460 enumerator: *mut GFileEnumerator,
11461 num_files: c_int,
11462 io_priority: c_int,
11463 cancellable: *mut GCancellable,
11464 callback: GAsyncReadyCallback,
11465 user_data: gpointer,
11466 );
11467 pub fn g_file_enumerator_next_files_finish(
11468 enumerator: *mut GFileEnumerator,
11469 result: *mut GAsyncResult,
11470 error: *mut *mut glib::GError,
11471 ) -> *mut glib::GList;
11472 pub fn g_file_enumerator_set_pending(enumerator: *mut GFileEnumerator, pending: gboolean);
11473
11474 pub fn g_file_io_stream_get_type() -> GType;
11478 pub fn g_file_io_stream_get_etag(stream: *mut GFileIOStream) -> *mut c_char;
11479 pub fn g_file_io_stream_query_info(
11480 stream: *mut GFileIOStream,
11481 attributes: *const c_char,
11482 cancellable: *mut GCancellable,
11483 error: *mut *mut glib::GError,
11484 ) -> *mut GFileInfo;
11485 pub fn g_file_io_stream_query_info_async(
11486 stream: *mut GFileIOStream,
11487 attributes: *const c_char,
11488 io_priority: c_int,
11489 cancellable: *mut GCancellable,
11490 callback: GAsyncReadyCallback,
11491 user_data: gpointer,
11492 );
11493 pub fn g_file_io_stream_query_info_finish(
11494 stream: *mut GFileIOStream,
11495 result: *mut GAsyncResult,
11496 error: *mut *mut glib::GError,
11497 ) -> *mut GFileInfo;
11498
11499 pub fn g_file_icon_get_type() -> GType;
11503 pub fn g_file_icon_new(file: *mut GFile) -> *mut GFileIcon;
11504 pub fn g_file_icon_get_file(icon: *mut GFileIcon) -> *mut GFile;
11505
11506 pub fn g_file_info_get_type() -> GType;
11510 pub fn g_file_info_new() -> *mut GFileInfo;
11511 pub fn g_file_info_clear_status(info: *mut GFileInfo);
11512 pub fn g_file_info_copy_into(src_info: *mut GFileInfo, dest_info: *mut GFileInfo);
11513 pub fn g_file_info_dup(other: *mut GFileInfo) -> *mut GFileInfo;
11514 #[cfg(feature = "v2_70")]
11515 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11516 pub fn g_file_info_get_access_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11517 pub fn g_file_info_get_attribute_as_string(
11518 info: *mut GFileInfo,
11519 attribute: *const c_char,
11520 ) -> *mut c_char;
11521 pub fn g_file_info_get_attribute_boolean(
11522 info: *mut GFileInfo,
11523 attribute: *const c_char,
11524 ) -> gboolean;
11525 pub fn g_file_info_get_attribute_byte_string(
11526 info: *mut GFileInfo,
11527 attribute: *const c_char,
11528 ) -> *const c_char;
11529 pub fn g_file_info_get_attribute_data(
11530 info: *mut GFileInfo,
11531 attribute: *const c_char,
11532 type_: *mut GFileAttributeType,
11533 value_pp: *mut gpointer,
11534 status: *mut GFileAttributeStatus,
11535 ) -> gboolean;
11536 #[cfg(feature = "v2_78")]
11537 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
11538 pub fn g_file_info_get_attribute_file_path(
11539 info: *mut GFileInfo,
11540 attribute: *const c_char,
11541 ) -> *const c_char;
11542 pub fn g_file_info_get_attribute_int32(info: *mut GFileInfo, attribute: *const c_char) -> i32;
11543 pub fn g_file_info_get_attribute_int64(info: *mut GFileInfo, attribute: *const c_char) -> i64;
11544 pub fn g_file_info_get_attribute_object(
11545 info: *mut GFileInfo,
11546 attribute: *const c_char,
11547 ) -> *mut gobject::GObject;
11548 pub fn g_file_info_get_attribute_status(
11549 info: *mut GFileInfo,
11550 attribute: *const c_char,
11551 ) -> GFileAttributeStatus;
11552 pub fn g_file_info_get_attribute_string(
11553 info: *mut GFileInfo,
11554 attribute: *const c_char,
11555 ) -> *const c_char;
11556 pub fn g_file_info_get_attribute_stringv(
11557 info: *mut GFileInfo,
11558 attribute: *const c_char,
11559 ) -> *mut *mut c_char;
11560 pub fn g_file_info_get_attribute_type(
11561 info: *mut GFileInfo,
11562 attribute: *const c_char,
11563 ) -> GFileAttributeType;
11564 pub fn g_file_info_get_attribute_uint32(info: *mut GFileInfo, attribute: *const c_char) -> u32;
11565 pub fn g_file_info_get_attribute_uint64(info: *mut GFileInfo, attribute: *const c_char) -> u64;
11566 pub fn g_file_info_get_content_type(info: *mut GFileInfo) -> *const c_char;
11567 #[cfg(feature = "v2_70")]
11568 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11569 pub fn g_file_info_get_creation_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11570 pub fn g_file_info_get_deletion_date(info: *mut GFileInfo) -> *mut glib::GDateTime;
11571 pub fn g_file_info_get_display_name(info: *mut GFileInfo) -> *const c_char;
11572 pub fn g_file_info_get_edit_name(info: *mut GFileInfo) -> *const c_char;
11573 pub fn g_file_info_get_etag(info: *mut GFileInfo) -> *const c_char;
11574 pub fn g_file_info_get_file_type(info: *mut GFileInfo) -> GFileType;
11575 pub fn g_file_info_get_icon(info: *mut GFileInfo) -> *mut GIcon;
11576 pub fn g_file_info_get_is_backup(info: *mut GFileInfo) -> gboolean;
11577 pub fn g_file_info_get_is_hidden(info: *mut GFileInfo) -> gboolean;
11578 pub fn g_file_info_get_is_symlink(info: *mut GFileInfo) -> gboolean;
11579 #[cfg(feature = "v2_62")]
11580 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
11581 pub fn g_file_info_get_modification_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime;
11582 pub fn g_file_info_get_modification_time(info: *mut GFileInfo, result: *mut glib::GTimeVal);
11583 pub fn g_file_info_get_name(info: *mut GFileInfo) -> *const c_char;
11584 pub fn g_file_info_get_size(info: *mut GFileInfo) -> i64;
11585 pub fn g_file_info_get_sort_order(info: *mut GFileInfo) -> i32;
11586 pub fn g_file_info_get_symbolic_icon(info: *mut GFileInfo) -> *mut GIcon;
11587 pub fn g_file_info_get_symlink_target(info: *mut GFileInfo) -> *const c_char;
11588 pub fn g_file_info_has_attribute(info: *mut GFileInfo, attribute: *const c_char) -> gboolean;
11589 pub fn g_file_info_has_namespace(info: *mut GFileInfo, name_space: *const c_char) -> gboolean;
11590 pub fn g_file_info_list_attributes(
11591 info: *mut GFileInfo,
11592 name_space: *const c_char,
11593 ) -> *mut *mut c_char;
11594 pub fn g_file_info_remove_attribute(info: *mut GFileInfo, attribute: *const c_char);
11595 #[cfg(feature = "v2_70")]
11596 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11597 pub fn g_file_info_set_access_date_time(info: *mut GFileInfo, atime: *mut glib::GDateTime);
11598 pub fn g_file_info_set_attribute(
11599 info: *mut GFileInfo,
11600 attribute: *const c_char,
11601 type_: GFileAttributeType,
11602 value_p: gpointer,
11603 );
11604 pub fn g_file_info_set_attribute_boolean(
11605 info: *mut GFileInfo,
11606 attribute: *const c_char,
11607 attr_value: gboolean,
11608 );
11609 pub fn g_file_info_set_attribute_byte_string(
11610 info: *mut GFileInfo,
11611 attribute: *const c_char,
11612 attr_value: *const c_char,
11613 );
11614 #[cfg(feature = "v2_78")]
11615 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
11616 pub fn g_file_info_set_attribute_file_path(
11617 info: *mut GFileInfo,
11618 attribute: *const c_char,
11619 attr_value: *const c_char,
11620 );
11621 pub fn g_file_info_set_attribute_int32(
11622 info: *mut GFileInfo,
11623 attribute: *const c_char,
11624 attr_value: i32,
11625 );
11626 pub fn g_file_info_set_attribute_int64(
11627 info: *mut GFileInfo,
11628 attribute: *const c_char,
11629 attr_value: i64,
11630 );
11631 pub fn g_file_info_set_attribute_mask(info: *mut GFileInfo, mask: *mut GFileAttributeMatcher);
11632 pub fn g_file_info_set_attribute_object(
11633 info: *mut GFileInfo,
11634 attribute: *const c_char,
11635 attr_value: *mut gobject::GObject,
11636 );
11637 pub fn g_file_info_set_attribute_status(
11638 info: *mut GFileInfo,
11639 attribute: *const c_char,
11640 status: GFileAttributeStatus,
11641 ) -> gboolean;
11642 pub fn g_file_info_set_attribute_string(
11643 info: *mut GFileInfo,
11644 attribute: *const c_char,
11645 attr_value: *const c_char,
11646 );
11647 pub fn g_file_info_set_attribute_stringv(
11648 info: *mut GFileInfo,
11649 attribute: *const c_char,
11650 attr_value: *mut *mut c_char,
11651 );
11652 pub fn g_file_info_set_attribute_uint32(
11653 info: *mut GFileInfo,
11654 attribute: *const c_char,
11655 attr_value: u32,
11656 );
11657 pub fn g_file_info_set_attribute_uint64(
11658 info: *mut GFileInfo,
11659 attribute: *const c_char,
11660 attr_value: u64,
11661 );
11662 pub fn g_file_info_set_content_type(info: *mut GFileInfo, content_type: *const c_char);
11663 #[cfg(feature = "v2_70")]
11664 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
11665 pub fn g_file_info_set_creation_date_time(
11666 info: *mut GFileInfo,
11667 creation_time: *mut glib::GDateTime,
11668 );
11669 pub fn g_file_info_set_display_name(info: *mut GFileInfo, display_name: *const c_char);
11670 pub fn g_file_info_set_edit_name(info: *mut GFileInfo, edit_name: *const c_char);
11671 pub fn g_file_info_set_file_type(info: *mut GFileInfo, type_: GFileType);
11672 pub fn g_file_info_set_icon(info: *mut GFileInfo, icon: *mut GIcon);
11673 pub fn g_file_info_set_is_hidden(info: *mut GFileInfo, is_hidden: gboolean);
11674 pub fn g_file_info_set_is_symlink(info: *mut GFileInfo, is_symlink: gboolean);
11675 #[cfg(feature = "v2_62")]
11676 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
11677 pub fn g_file_info_set_modification_date_time(
11678 info: *mut GFileInfo,
11679 mtime: *mut glib::GDateTime,
11680 );
11681 pub fn g_file_info_set_modification_time(info: *mut GFileInfo, mtime: *mut glib::GTimeVal);
11682 pub fn g_file_info_set_name(info: *mut GFileInfo, name: *const c_char);
11683 pub fn g_file_info_set_size(info: *mut GFileInfo, size: i64);
11684 pub fn g_file_info_set_sort_order(info: *mut GFileInfo, sort_order: i32);
11685 pub fn g_file_info_set_symbolic_icon(info: *mut GFileInfo, icon: *mut GIcon);
11686 pub fn g_file_info_set_symlink_target(info: *mut GFileInfo, symlink_target: *const c_char);
11687 pub fn g_file_info_unset_attribute_mask(info: *mut GFileInfo);
11688
11689 pub fn g_file_input_stream_get_type() -> GType;
11693 pub fn g_file_input_stream_query_info(
11694 stream: *mut GFileInputStream,
11695 attributes: *const c_char,
11696 cancellable: *mut GCancellable,
11697 error: *mut *mut glib::GError,
11698 ) -> *mut GFileInfo;
11699 pub fn g_file_input_stream_query_info_async(
11700 stream: *mut GFileInputStream,
11701 attributes: *const c_char,
11702 io_priority: c_int,
11703 cancellable: *mut GCancellable,
11704 callback: GAsyncReadyCallback,
11705 user_data: gpointer,
11706 );
11707 pub fn g_file_input_stream_query_info_finish(
11708 stream: *mut GFileInputStream,
11709 result: *mut GAsyncResult,
11710 error: *mut *mut glib::GError,
11711 ) -> *mut GFileInfo;
11712
11713 pub fn g_file_monitor_get_type() -> GType;
11717 pub fn g_file_monitor_cancel(monitor: *mut GFileMonitor) -> gboolean;
11718 pub fn g_file_monitor_emit_event(
11719 monitor: *mut GFileMonitor,
11720 child: *mut GFile,
11721 other_file: *mut GFile,
11722 event_type: GFileMonitorEvent,
11723 );
11724 pub fn g_file_monitor_is_cancelled(monitor: *mut GFileMonitor) -> gboolean;
11725 pub fn g_file_monitor_set_rate_limit(monitor: *mut GFileMonitor, limit_msecs: c_int);
11726
11727 pub fn g_file_output_stream_get_type() -> GType;
11731 pub fn g_file_output_stream_get_etag(stream: *mut GFileOutputStream) -> *mut c_char;
11732 pub fn g_file_output_stream_query_info(
11733 stream: *mut GFileOutputStream,
11734 attributes: *const c_char,
11735 cancellable: *mut GCancellable,
11736 error: *mut *mut glib::GError,
11737 ) -> *mut GFileInfo;
11738 pub fn g_file_output_stream_query_info_async(
11739 stream: *mut GFileOutputStream,
11740 attributes: *const c_char,
11741 io_priority: c_int,
11742 cancellable: *mut GCancellable,
11743 callback: GAsyncReadyCallback,
11744 user_data: gpointer,
11745 );
11746 pub fn g_file_output_stream_query_info_finish(
11747 stream: *mut GFileOutputStream,
11748 result: *mut GAsyncResult,
11749 error: *mut *mut glib::GError,
11750 ) -> *mut GFileInfo;
11751
11752 pub fn g_filename_completer_get_type() -> GType;
11756 pub fn g_filename_completer_new() -> *mut GFilenameCompleter;
11757 pub fn g_filename_completer_get_completion_suffix(
11758 completer: *mut GFilenameCompleter,
11759 initial_text: *const c_char,
11760 ) -> *mut c_char;
11761 pub fn g_filename_completer_get_completions(
11762 completer: *mut GFilenameCompleter,
11763 initial_text: *const c_char,
11764 ) -> *mut *mut c_char;
11765 pub fn g_filename_completer_set_dirs_only(
11766 completer: *mut GFilenameCompleter,
11767 dirs_only: gboolean,
11768 );
11769
11770 pub fn g_filter_input_stream_get_type() -> GType;
11774 pub fn g_filter_input_stream_get_base_stream(
11775 stream: *mut GFilterInputStream,
11776 ) -> *mut GInputStream;
11777 pub fn g_filter_input_stream_get_close_base_stream(stream: *mut GFilterInputStream)
11778 -> gboolean;
11779 pub fn g_filter_input_stream_set_close_base_stream(
11780 stream: *mut GFilterInputStream,
11781 close_base: gboolean,
11782 );
11783
11784 pub fn g_filter_output_stream_get_type() -> GType;
11788 pub fn g_filter_output_stream_get_base_stream(
11789 stream: *mut GFilterOutputStream,
11790 ) -> *mut GOutputStream;
11791 pub fn g_filter_output_stream_get_close_base_stream(
11792 stream: *mut GFilterOutputStream,
11793 ) -> gboolean;
11794 pub fn g_filter_output_stream_set_close_base_stream(
11795 stream: *mut GFilterOutputStream,
11796 close_base: gboolean,
11797 );
11798
11799 pub fn g_io_module_get_type() -> GType;
11803 pub fn g_io_module_new(filename: *const c_char) -> *mut GIOModule;
11804 pub fn g_io_module_query() -> *mut *mut c_char;
11805 pub fn g_io_module_load(module: *mut GIOModule);
11806 pub fn g_io_module_unload(module: *mut GIOModule);
11807
11808 pub fn g_io_stream_get_type() -> GType;
11812 pub fn g_io_stream_splice_finish(
11813 result: *mut GAsyncResult,
11814 error: *mut *mut glib::GError,
11815 ) -> gboolean;
11816 pub fn g_io_stream_clear_pending(stream: *mut GIOStream);
11817 pub fn g_io_stream_close(
11818 stream: *mut GIOStream,
11819 cancellable: *mut GCancellable,
11820 error: *mut *mut glib::GError,
11821 ) -> gboolean;
11822 pub fn g_io_stream_close_async(
11823 stream: *mut GIOStream,
11824 io_priority: c_int,
11825 cancellable: *mut GCancellable,
11826 callback: GAsyncReadyCallback,
11827 user_data: gpointer,
11828 );
11829 pub fn g_io_stream_close_finish(
11830 stream: *mut GIOStream,
11831 result: *mut GAsyncResult,
11832 error: *mut *mut glib::GError,
11833 ) -> gboolean;
11834 pub fn g_io_stream_get_input_stream(stream: *mut GIOStream) -> *mut GInputStream;
11835 pub fn g_io_stream_get_output_stream(stream: *mut GIOStream) -> *mut GOutputStream;
11836 pub fn g_io_stream_has_pending(stream: *mut GIOStream) -> gboolean;
11837 pub fn g_io_stream_is_closed(stream: *mut GIOStream) -> gboolean;
11838 pub fn g_io_stream_set_pending(
11839 stream: *mut GIOStream,
11840 error: *mut *mut glib::GError,
11841 ) -> gboolean;
11842 pub fn g_io_stream_splice_async(
11843 stream1: *mut GIOStream,
11844 stream2: *mut GIOStream,
11845 flags: GIOStreamSpliceFlags,
11846 io_priority: c_int,
11847 cancellable: *mut GCancellable,
11848 callback: GAsyncReadyCallback,
11849 user_data: gpointer,
11850 );
11851
11852 #[cfg(feature = "v2_88")]
11856 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11857 pub fn g_ip_tos_message_get_type() -> GType;
11858 #[cfg(feature = "v2_88")]
11859 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11860 pub fn g_ip_tos_message_new(dscp: u8, ecn: GEcnCodePoint) -> *mut GSocketControlMessage;
11861 #[cfg(feature = "v2_88")]
11862 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11863 pub fn g_ip_tos_message_get_dscp(message: *mut GIPTosMessage) -> u8;
11864 #[cfg(feature = "v2_88")]
11865 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11866 pub fn g_ip_tos_message_get_ecn(message: *mut GIPTosMessage) -> GEcnCodePoint;
11867
11868 #[cfg(feature = "v2_88")]
11872 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11873 pub fn g_ipv6_tclass_message_get_type() -> GType;
11874 #[cfg(feature = "v2_88")]
11875 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11876 pub fn g_ipv6_tclass_message_new(dscp: u8, ecn: GEcnCodePoint) -> *mut GSocketControlMessage;
11877 #[cfg(feature = "v2_88")]
11878 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11879 pub fn g_ipv6_tclass_message_get_dscp(message: *mut GIPv6TclassMessage) -> u8;
11880 #[cfg(feature = "v2_88")]
11881 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
11882 pub fn g_ipv6_tclass_message_get_ecn(message: *mut GIPv6TclassMessage) -> GEcnCodePoint;
11883
11884 pub fn g_inet_address_get_type() -> GType;
11888 pub fn g_inet_address_new_any(family: GSocketFamily) -> *mut GInetAddress;
11889 pub fn g_inet_address_new_from_bytes(
11890 bytes: *const u8,
11891 family: GSocketFamily,
11892 ) -> *mut GInetAddress;
11893 #[cfg(feature = "v2_86")]
11894 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
11895 pub fn g_inet_address_new_from_bytes_with_ipv6_info(
11896 bytes: *const u8,
11897 family: GSocketFamily,
11898 flowinfo: u32,
11899 scope_id: u32,
11900 ) -> *mut GInetAddress;
11901 pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress;
11902 pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress;
11903 pub fn g_inet_address_equal(
11904 address: *mut GInetAddress,
11905 other_address: *mut GInetAddress,
11906 ) -> gboolean;
11907 pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily;
11908 #[cfg(feature = "v2_86")]
11909 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
11910 pub fn g_inet_address_get_flowinfo(address: *mut GInetAddress) -> u32;
11911 pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean;
11912 pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean;
11913 pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean;
11914 pub fn g_inet_address_get_is_mc_global(address: *mut GInetAddress) -> gboolean;
11915 pub fn g_inet_address_get_is_mc_link_local(address: *mut GInetAddress) -> gboolean;
11916 pub fn g_inet_address_get_is_mc_node_local(address: *mut GInetAddress) -> gboolean;
11917 pub fn g_inet_address_get_is_mc_org_local(address: *mut GInetAddress) -> gboolean;
11918 pub fn g_inet_address_get_is_mc_site_local(address: *mut GInetAddress) -> gboolean;
11919 pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean;
11920 pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean;
11921 pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t;
11922 #[cfg(feature = "v2_86")]
11923 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
11924 pub fn g_inet_address_get_scope_id(address: *mut GInetAddress) -> u32;
11925 pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8;
11926 pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char;
11927
11928 pub fn g_inet_address_mask_get_type() -> GType;
11932 pub fn g_inet_address_mask_new(
11933 addr: *mut GInetAddress,
11934 length: c_uint,
11935 error: *mut *mut glib::GError,
11936 ) -> *mut GInetAddressMask;
11937 pub fn g_inet_address_mask_new_from_string(
11938 mask_string: *const c_char,
11939 error: *mut *mut glib::GError,
11940 ) -> *mut GInetAddressMask;
11941 pub fn g_inet_address_mask_equal(
11942 mask: *mut GInetAddressMask,
11943 mask2: *mut GInetAddressMask,
11944 ) -> gboolean;
11945 pub fn g_inet_address_mask_get_address(mask: *mut GInetAddressMask) -> *mut GInetAddress;
11946 pub fn g_inet_address_mask_get_family(mask: *mut GInetAddressMask) -> GSocketFamily;
11947 pub fn g_inet_address_mask_get_length(mask: *mut GInetAddressMask) -> c_uint;
11948 pub fn g_inet_address_mask_matches(
11949 mask: *mut GInetAddressMask,
11950 address: *mut GInetAddress,
11951 ) -> gboolean;
11952 pub fn g_inet_address_mask_to_string(mask: *mut GInetAddressMask) -> *mut c_char;
11953
11954 pub fn g_inet_socket_address_get_type() -> GType;
11958 pub fn g_inet_socket_address_new(address: *mut GInetAddress, port: u16) -> *mut GSocketAddress;
11959 pub fn g_inet_socket_address_new_from_string(
11960 address: *const c_char,
11961 port: c_uint,
11962 ) -> *mut GSocketAddress;
11963 pub fn g_inet_socket_address_get_address(address: *mut GInetSocketAddress)
11964 -> *mut GInetAddress;
11965 pub fn g_inet_socket_address_get_flowinfo(address: *mut GInetSocketAddress) -> u32;
11966 pub fn g_inet_socket_address_get_port(address: *mut GInetSocketAddress) -> u16;
11967 pub fn g_inet_socket_address_get_scope_id(address: *mut GInetSocketAddress) -> u32;
11968
11969 pub fn g_input_stream_get_type() -> GType;
11973 pub fn g_input_stream_clear_pending(stream: *mut GInputStream);
11974 pub fn g_input_stream_close(
11975 stream: *mut GInputStream,
11976 cancellable: *mut GCancellable,
11977 error: *mut *mut glib::GError,
11978 ) -> gboolean;
11979 pub fn g_input_stream_close_async(
11980 stream: *mut GInputStream,
11981 io_priority: c_int,
11982 cancellable: *mut GCancellable,
11983 callback: GAsyncReadyCallback,
11984 user_data: gpointer,
11985 );
11986 pub fn g_input_stream_close_finish(
11987 stream: *mut GInputStream,
11988 result: *mut GAsyncResult,
11989 error: *mut *mut glib::GError,
11990 ) -> gboolean;
11991 pub fn g_input_stream_has_pending(stream: *mut GInputStream) -> gboolean;
11992 pub fn g_input_stream_is_closed(stream: *mut GInputStream) -> gboolean;
11993 pub fn g_input_stream_read(
11994 stream: *mut GInputStream,
11995 buffer: *mut u8,
11996 count: size_t,
11997 cancellable: *mut GCancellable,
11998 error: *mut *mut glib::GError,
11999 ) -> ssize_t;
12000 pub fn g_input_stream_read_all(
12001 stream: *mut GInputStream,
12002 buffer: *mut u8,
12003 count: size_t,
12004 bytes_read: *mut size_t,
12005 cancellable: *mut GCancellable,
12006 error: *mut *mut glib::GError,
12007 ) -> gboolean;
12008 pub fn g_input_stream_read_all_async(
12009 stream: *mut GInputStream,
12010 buffer: *mut u8,
12011 count: size_t,
12012 io_priority: c_int,
12013 cancellable: *mut GCancellable,
12014 callback: GAsyncReadyCallback,
12015 user_data: gpointer,
12016 );
12017 pub fn g_input_stream_read_all_finish(
12018 stream: *mut GInputStream,
12019 result: *mut GAsyncResult,
12020 bytes_read: *mut size_t,
12021 error: *mut *mut glib::GError,
12022 ) -> gboolean;
12023 pub fn g_input_stream_read_async(
12024 stream: *mut GInputStream,
12025 buffer: *mut u8,
12026 count: size_t,
12027 io_priority: c_int,
12028 cancellable: *mut GCancellable,
12029 callback: GAsyncReadyCallback,
12030 user_data: gpointer,
12031 );
12032 pub fn g_input_stream_read_bytes(
12033 stream: *mut GInputStream,
12034 count: size_t,
12035 cancellable: *mut GCancellable,
12036 error: *mut *mut glib::GError,
12037 ) -> *mut glib::GBytes;
12038 pub fn g_input_stream_read_bytes_async(
12039 stream: *mut GInputStream,
12040 count: size_t,
12041 io_priority: c_int,
12042 cancellable: *mut GCancellable,
12043 callback: GAsyncReadyCallback,
12044 user_data: gpointer,
12045 );
12046 pub fn g_input_stream_read_bytes_finish(
12047 stream: *mut GInputStream,
12048 result: *mut GAsyncResult,
12049 error: *mut *mut glib::GError,
12050 ) -> *mut glib::GBytes;
12051 pub fn g_input_stream_read_finish(
12052 stream: *mut GInputStream,
12053 result: *mut GAsyncResult,
12054 error: *mut *mut glib::GError,
12055 ) -> ssize_t;
12056 pub fn g_input_stream_set_pending(
12057 stream: *mut GInputStream,
12058 error: *mut *mut glib::GError,
12059 ) -> gboolean;
12060 pub fn g_input_stream_skip(
12061 stream: *mut GInputStream,
12062 count: size_t,
12063 cancellable: *mut GCancellable,
12064 error: *mut *mut glib::GError,
12065 ) -> ssize_t;
12066 pub fn g_input_stream_skip_async(
12067 stream: *mut GInputStream,
12068 count: size_t,
12069 io_priority: c_int,
12070 cancellable: *mut GCancellable,
12071 callback: GAsyncReadyCallback,
12072 user_data: gpointer,
12073 );
12074 pub fn g_input_stream_skip_finish(
12075 stream: *mut GInputStream,
12076 result: *mut GAsyncResult,
12077 error: *mut *mut glib::GError,
12078 ) -> ssize_t;
12079
12080 pub fn g_list_store_get_type() -> GType;
12084 pub fn g_list_store_new(item_type: GType) -> *mut GListStore;
12085 pub fn g_list_store_append(store: *mut GListStore, item: *mut gobject::GObject);
12086 #[cfg(feature = "v2_64")]
12087 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
12088 pub fn g_list_store_find(
12089 store: *mut GListStore,
12090 item: *mut gobject::GObject,
12091 position: *mut c_uint,
12092 ) -> gboolean;
12093 #[cfg(feature = "v2_64")]
12094 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
12095 pub fn g_list_store_find_with_equal_func(
12096 store: *mut GListStore,
12097 item: *mut gobject::GObject,
12098 equal_func: glib::GEqualFunc,
12099 position: *mut c_uint,
12100 ) -> gboolean;
12101 #[cfg(feature = "v2_74")]
12102 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
12103 pub fn g_list_store_find_with_equal_func_full(
12104 store: *mut GListStore,
12105 item: *mut gobject::GObject,
12106 equal_func: glib::GEqualFuncFull,
12107 user_data: gpointer,
12108 position: *mut c_uint,
12109 ) -> gboolean;
12110 pub fn g_list_store_insert(
12111 store: *mut GListStore,
12112 position: c_uint,
12113 item: *mut gobject::GObject,
12114 );
12115 pub fn g_list_store_insert_sorted(
12116 store: *mut GListStore,
12117 item: *mut gobject::GObject,
12118 compare_func: glib::GCompareDataFunc,
12119 user_data: gpointer,
12120 ) -> c_uint;
12121 pub fn g_list_store_remove(store: *mut GListStore, position: c_uint);
12122 pub fn g_list_store_remove_all(store: *mut GListStore);
12123 pub fn g_list_store_sort(
12124 store: *mut GListStore,
12125 compare_func: glib::GCompareDataFunc,
12126 user_data: gpointer,
12127 );
12128 pub fn g_list_store_splice(
12129 store: *mut GListStore,
12130 position: c_uint,
12131 n_removals: c_uint,
12132 additions: *mut *mut gobject::GObject,
12133 n_additions: c_uint,
12134 );
12135
12136 pub fn g_memory_input_stream_get_type() -> GType;
12140 pub fn g_memory_input_stream_new() -> *mut GInputStream;
12141 pub fn g_memory_input_stream_new_from_bytes(bytes: *mut glib::GBytes) -> *mut GInputStream;
12142 pub fn g_memory_input_stream_new_from_data(
12143 data: *mut u8,
12144 len: ssize_t,
12145 destroy: glib::GDestroyNotify,
12146 ) -> *mut GInputStream;
12147 pub fn g_memory_input_stream_add_bytes(
12148 stream: *mut GMemoryInputStream,
12149 bytes: *mut glib::GBytes,
12150 );
12151 pub fn g_memory_input_stream_add_data(
12152 stream: *mut GMemoryInputStream,
12153 data: *mut u8,
12154 len: ssize_t,
12155 destroy: glib::GDestroyNotify,
12156 );
12157
12158 pub fn g_memory_output_stream_get_type() -> GType;
12162 pub fn g_memory_output_stream_new(
12163 data: gpointer,
12164 size: size_t,
12165 realloc_function: GReallocFunc,
12166 destroy_function: glib::GDestroyNotify,
12167 ) -> *mut GOutputStream;
12168 pub fn g_memory_output_stream_new_resizable() -> *mut GOutputStream;
12169 pub fn g_memory_output_stream_get_data(ostream: *mut GMemoryOutputStream) -> gpointer;
12170 pub fn g_memory_output_stream_get_data_size(ostream: *mut GMemoryOutputStream) -> size_t;
12171 pub fn g_memory_output_stream_get_size(ostream: *mut GMemoryOutputStream) -> size_t;
12172 pub fn g_memory_output_stream_steal_as_bytes(
12173 ostream: *mut GMemoryOutputStream,
12174 ) -> *mut glib::GBytes;
12175 pub fn g_memory_output_stream_steal_data(ostream: *mut GMemoryOutputStream) -> gpointer;
12176
12177 pub fn g_menu_get_type() -> GType;
12181 pub fn g_menu_new() -> *mut GMenu;
12182 pub fn g_menu_append(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
12183 pub fn g_menu_append_item(menu: *mut GMenu, item: *mut GMenuItem);
12184 pub fn g_menu_append_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
12185 pub fn g_menu_append_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
12186 pub fn g_menu_freeze(menu: *mut GMenu);
12187 pub fn g_menu_insert(
12188 menu: *mut GMenu,
12189 position: c_int,
12190 label: *const c_char,
12191 detailed_action: *const c_char,
12192 );
12193 pub fn g_menu_insert_item(menu: *mut GMenu, position: c_int, item: *mut GMenuItem);
12194 pub fn g_menu_insert_section(
12195 menu: *mut GMenu,
12196 position: c_int,
12197 label: *const c_char,
12198 section: *mut GMenuModel,
12199 );
12200 pub fn g_menu_insert_submenu(
12201 menu: *mut GMenu,
12202 position: c_int,
12203 label: *const c_char,
12204 submenu: *mut GMenuModel,
12205 );
12206 pub fn g_menu_prepend(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char);
12207 pub fn g_menu_prepend_item(menu: *mut GMenu, item: *mut GMenuItem);
12208 pub fn g_menu_prepend_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel);
12209 pub fn g_menu_prepend_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel);
12210 pub fn g_menu_remove(menu: *mut GMenu, position: c_int);
12211 pub fn g_menu_remove_all(menu: *mut GMenu);
12212
12213 pub fn g_menu_attribute_iter_get_type() -> GType;
12217 pub fn g_menu_attribute_iter_get_name(iter: *mut GMenuAttributeIter) -> *const c_char;
12218 pub fn g_menu_attribute_iter_get_next(
12219 iter: *mut GMenuAttributeIter,
12220 out_name: *mut *const c_char,
12221 value: *mut *mut glib::GVariant,
12222 ) -> gboolean;
12223 pub fn g_menu_attribute_iter_get_value(iter: *mut GMenuAttributeIter) -> *mut glib::GVariant;
12224 pub fn g_menu_attribute_iter_next(iter: *mut GMenuAttributeIter) -> gboolean;
12225
12226 pub fn g_menu_item_get_type() -> GType;
12230 pub fn g_menu_item_new(label: *const c_char, detailed_action: *const c_char) -> *mut GMenuItem;
12231 pub fn g_menu_item_new_from_model(model: *mut GMenuModel, item_index: c_int) -> *mut GMenuItem;
12232 pub fn g_menu_item_new_section(
12233 label: *const c_char,
12234 section: *mut GMenuModel,
12235 ) -> *mut GMenuItem;
12236 pub fn g_menu_item_new_submenu(
12237 label: *const c_char,
12238 submenu: *mut GMenuModel,
12239 ) -> *mut GMenuItem;
12240 pub fn g_menu_item_get_attribute(
12241 menu_item: *mut GMenuItem,
12242 attribute: *const c_char,
12243 format_string: *const c_char,
12244 ...
12245 ) -> gboolean;
12246 pub fn g_menu_item_get_attribute_value(
12247 menu_item: *mut GMenuItem,
12248 attribute: *const c_char,
12249 expected_type: *const glib::GVariantType,
12250 ) -> *mut glib::GVariant;
12251 pub fn g_menu_item_get_link(menu_item: *mut GMenuItem, link: *const c_char) -> *mut GMenuModel;
12252 pub fn g_menu_item_set_action_and_target(
12253 menu_item: *mut GMenuItem,
12254 action: *const c_char,
12255 format_string: *const c_char,
12256 ...
12257 );
12258 pub fn g_menu_item_set_action_and_target_value(
12259 menu_item: *mut GMenuItem,
12260 action: *const c_char,
12261 target_value: *mut glib::GVariant,
12262 );
12263 pub fn g_menu_item_set_attribute(
12264 menu_item: *mut GMenuItem,
12265 attribute: *const c_char,
12266 format_string: *const c_char,
12267 ...
12268 );
12269 pub fn g_menu_item_set_attribute_value(
12270 menu_item: *mut GMenuItem,
12271 attribute: *const c_char,
12272 value: *mut glib::GVariant,
12273 );
12274 pub fn g_menu_item_set_detailed_action(
12275 menu_item: *mut GMenuItem,
12276 detailed_action: *const c_char,
12277 );
12278 pub fn g_menu_item_set_icon(menu_item: *mut GMenuItem, icon: *mut GIcon);
12279 pub fn g_menu_item_set_label(menu_item: *mut GMenuItem, label: *const c_char);
12280 pub fn g_menu_item_set_link(
12281 menu_item: *mut GMenuItem,
12282 link: *const c_char,
12283 model: *mut GMenuModel,
12284 );
12285 pub fn g_menu_item_set_section(menu_item: *mut GMenuItem, section: *mut GMenuModel);
12286 pub fn g_menu_item_set_submenu(menu_item: *mut GMenuItem, submenu: *mut GMenuModel);
12287
12288 pub fn g_menu_link_iter_get_type() -> GType;
12292 pub fn g_menu_link_iter_get_name(iter: *mut GMenuLinkIter) -> *const c_char;
12293 pub fn g_menu_link_iter_get_next(
12294 iter: *mut GMenuLinkIter,
12295 out_link: *mut *const c_char,
12296 value: *mut *mut GMenuModel,
12297 ) -> gboolean;
12298 pub fn g_menu_link_iter_get_value(iter: *mut GMenuLinkIter) -> *mut GMenuModel;
12299 pub fn g_menu_link_iter_next(iter: *mut GMenuLinkIter) -> gboolean;
12300
12301 pub fn g_menu_model_get_type() -> GType;
12305 pub fn g_menu_model_get_item_attribute(
12306 model: *mut GMenuModel,
12307 item_index: c_int,
12308 attribute: *const c_char,
12309 format_string: *const c_char,
12310 ...
12311 ) -> gboolean;
12312 pub fn g_menu_model_get_item_attribute_value(
12313 model: *mut GMenuModel,
12314 item_index: c_int,
12315 attribute: *const c_char,
12316 expected_type: *const glib::GVariantType,
12317 ) -> *mut glib::GVariant;
12318 pub fn g_menu_model_get_item_link(
12319 model: *mut GMenuModel,
12320 item_index: c_int,
12321 link: *const c_char,
12322 ) -> *mut GMenuModel;
12323 pub fn g_menu_model_get_n_items(model: *mut GMenuModel) -> c_int;
12324 pub fn g_menu_model_is_mutable(model: *mut GMenuModel) -> gboolean;
12325 pub fn g_menu_model_items_changed(
12326 model: *mut GMenuModel,
12327 position: c_int,
12328 removed: c_int,
12329 added: c_int,
12330 );
12331 pub fn g_menu_model_iterate_item_attributes(
12332 model: *mut GMenuModel,
12333 item_index: c_int,
12334 ) -> *mut GMenuAttributeIter;
12335 pub fn g_menu_model_iterate_item_links(
12336 model: *mut GMenuModel,
12337 item_index: c_int,
12338 ) -> *mut GMenuLinkIter;
12339
12340 pub fn g_mount_operation_get_type() -> GType;
12344 pub fn g_mount_operation_new() -> *mut GMountOperation;
12345 pub fn g_mount_operation_get_anonymous(op: *mut GMountOperation) -> gboolean;
12346 pub fn g_mount_operation_get_choice(op: *mut GMountOperation) -> c_int;
12347 pub fn g_mount_operation_get_domain(op: *mut GMountOperation) -> *const c_char;
12348 #[cfg(feature = "v2_58")]
12349 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12350 pub fn g_mount_operation_get_is_tcrypt_hidden_volume(op: *mut GMountOperation) -> gboolean;
12351 #[cfg(feature = "v2_58")]
12352 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12353 pub fn g_mount_operation_get_is_tcrypt_system_volume(op: *mut GMountOperation) -> gboolean;
12354 pub fn g_mount_operation_get_password(op: *mut GMountOperation) -> *const c_char;
12355 pub fn g_mount_operation_get_password_save(op: *mut GMountOperation) -> GPasswordSave;
12356 #[cfg(feature = "v2_58")]
12357 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12358 pub fn g_mount_operation_get_pim(op: *mut GMountOperation) -> c_uint;
12359 pub fn g_mount_operation_get_username(op: *mut GMountOperation) -> *const c_char;
12360 pub fn g_mount_operation_reply(op: *mut GMountOperation, result: GMountOperationResult);
12361 pub fn g_mount_operation_set_anonymous(op: *mut GMountOperation, anonymous: gboolean);
12362 pub fn g_mount_operation_set_choice(op: *mut GMountOperation, choice: c_int);
12363 pub fn g_mount_operation_set_domain(op: *mut GMountOperation, domain: *const c_char);
12364 #[cfg(feature = "v2_58")]
12365 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12366 pub fn g_mount_operation_set_is_tcrypt_hidden_volume(
12367 op: *mut GMountOperation,
12368 hidden_volume: gboolean,
12369 );
12370 #[cfg(feature = "v2_58")]
12371 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12372 pub fn g_mount_operation_set_is_tcrypt_system_volume(
12373 op: *mut GMountOperation,
12374 system_volume: gboolean,
12375 );
12376 pub fn g_mount_operation_set_password(op: *mut GMountOperation, password: *const c_char);
12377 pub fn g_mount_operation_set_password_save(op: *mut GMountOperation, save: GPasswordSave);
12378 #[cfg(feature = "v2_58")]
12379 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
12380 pub fn g_mount_operation_set_pim(op: *mut GMountOperation, pim: c_uint);
12381 pub fn g_mount_operation_set_username(op: *mut GMountOperation, username: *const c_char);
12382
12383 pub fn g_native_socket_address_get_type() -> GType;
12387 pub fn g_native_socket_address_new(native: gpointer, len: size_t) -> *mut GSocketAddress;
12388
12389 pub fn g_native_volume_monitor_get_type() -> GType;
12393
12394 pub fn g_network_address_get_type() -> GType;
12398 pub fn g_network_address_new(hostname: *const c_char, port: u16) -> *mut GNetworkAddress;
12399 pub fn g_network_address_new_loopback(port: u16) -> *mut GNetworkAddress;
12400 pub fn g_network_address_parse(
12401 host_and_port: *const c_char,
12402 default_port: u16,
12403 error: *mut *mut glib::GError,
12404 ) -> *mut GNetworkAddress;
12405 pub fn g_network_address_parse_uri(
12406 uri: *const c_char,
12407 default_port: u16,
12408 error: *mut *mut glib::GError,
12409 ) -> *mut GNetworkAddress;
12410 pub fn g_network_address_get_hostname(addr: *mut GNetworkAddress) -> *const c_char;
12411 pub fn g_network_address_get_port(addr: *mut GNetworkAddress) -> u16;
12412 pub fn g_network_address_get_scheme(addr: *mut GNetworkAddress) -> *const c_char;
12413
12414 pub fn g_network_service_get_type() -> GType;
12418 pub fn g_network_service_new(
12419 service: *const c_char,
12420 protocol: *const c_char,
12421 domain: *const c_char,
12422 ) -> *mut GNetworkService;
12423 pub fn g_network_service_get_domain(srv: *mut GNetworkService) -> *const c_char;
12424 pub fn g_network_service_get_protocol(srv: *mut GNetworkService) -> *const c_char;
12425 pub fn g_network_service_get_scheme(srv: *mut GNetworkService) -> *const c_char;
12426 pub fn g_network_service_get_service(srv: *mut GNetworkService) -> *const c_char;
12427 pub fn g_network_service_set_scheme(srv: *mut GNetworkService, scheme: *const c_char);
12428
12429 pub fn g_notification_get_type() -> GType;
12433 pub fn g_notification_new(title: *const c_char) -> *mut GNotification;
12434 pub fn g_notification_add_button(
12435 notification: *mut GNotification,
12436 label: *const c_char,
12437 detailed_action: *const c_char,
12438 );
12439 pub fn g_notification_add_button_with_target(
12440 notification: *mut GNotification,
12441 label: *const c_char,
12442 action: *const c_char,
12443 target_format: *const c_char,
12444 ...
12445 );
12446 pub fn g_notification_add_button_with_target_value(
12447 notification: *mut GNotification,
12448 label: *const c_char,
12449 action: *const c_char,
12450 target: *mut glib::GVariant,
12451 );
12452 pub fn g_notification_set_body(notification: *mut GNotification, body: *const c_char);
12453 #[cfg(feature = "v2_70")]
12454 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
12455 pub fn g_notification_set_category(notification: *mut GNotification, category: *const c_char);
12456 pub fn g_notification_set_default_action(
12457 notification: *mut GNotification,
12458 detailed_action: *const c_char,
12459 );
12460 pub fn g_notification_set_default_action_and_target(
12461 notification: *mut GNotification,
12462 action: *const c_char,
12463 target_format: *const c_char,
12464 ...
12465 );
12466 pub fn g_notification_set_default_action_and_target_value(
12467 notification: *mut GNotification,
12468 action: *const c_char,
12469 target: *mut glib::GVariant,
12470 );
12471 pub fn g_notification_set_icon(notification: *mut GNotification, icon: *mut GIcon);
12472 pub fn g_notification_set_priority(
12473 notification: *mut GNotification,
12474 priority: GNotificationPriority,
12475 );
12476 pub fn g_notification_set_title(notification: *mut GNotification, title: *const c_char);
12477 pub fn g_notification_set_urgent(notification: *mut GNotification, urgent: gboolean);
12478
12479 pub fn g_output_stream_get_type() -> GType;
12483 pub fn g_output_stream_clear_pending(stream: *mut GOutputStream);
12484 pub fn g_output_stream_close(
12485 stream: *mut GOutputStream,
12486 cancellable: *mut GCancellable,
12487 error: *mut *mut glib::GError,
12488 ) -> gboolean;
12489 pub fn g_output_stream_close_async(
12490 stream: *mut GOutputStream,
12491 io_priority: c_int,
12492 cancellable: *mut GCancellable,
12493 callback: GAsyncReadyCallback,
12494 user_data: gpointer,
12495 );
12496 pub fn g_output_stream_close_finish(
12497 stream: *mut GOutputStream,
12498 result: *mut GAsyncResult,
12499 error: *mut *mut glib::GError,
12500 ) -> gboolean;
12501 pub fn g_output_stream_flush(
12502 stream: *mut GOutputStream,
12503 cancellable: *mut GCancellable,
12504 error: *mut *mut glib::GError,
12505 ) -> gboolean;
12506 pub fn g_output_stream_flush_async(
12507 stream: *mut GOutputStream,
12508 io_priority: c_int,
12509 cancellable: *mut GCancellable,
12510 callback: GAsyncReadyCallback,
12511 user_data: gpointer,
12512 );
12513 pub fn g_output_stream_flush_finish(
12514 stream: *mut GOutputStream,
12515 result: *mut GAsyncResult,
12516 error: *mut *mut glib::GError,
12517 ) -> gboolean;
12518 pub fn g_output_stream_has_pending(stream: *mut GOutputStream) -> gboolean;
12519 pub fn g_output_stream_is_closed(stream: *mut GOutputStream) -> gboolean;
12520 pub fn g_output_stream_is_closing(stream: *mut GOutputStream) -> gboolean;
12521 pub fn g_output_stream_printf(
12522 stream: *mut GOutputStream,
12523 bytes_written: *mut size_t,
12524 cancellable: *mut GCancellable,
12525 error: *mut *mut glib::GError,
12526 format: *const c_char,
12527 ...
12528 ) -> gboolean;
12529 pub fn g_output_stream_set_pending(
12530 stream: *mut GOutputStream,
12531 error: *mut *mut glib::GError,
12532 ) -> gboolean;
12533 pub fn g_output_stream_splice(
12534 stream: *mut GOutputStream,
12535 source: *mut GInputStream,
12536 flags: GOutputStreamSpliceFlags,
12537 cancellable: *mut GCancellable,
12538 error: *mut *mut glib::GError,
12539 ) -> ssize_t;
12540 pub fn g_output_stream_splice_async(
12541 stream: *mut GOutputStream,
12542 source: *mut GInputStream,
12543 flags: GOutputStreamSpliceFlags,
12544 io_priority: c_int,
12545 cancellable: *mut GCancellable,
12546 callback: GAsyncReadyCallback,
12547 user_data: gpointer,
12548 );
12549 pub fn g_output_stream_splice_finish(
12550 stream: *mut GOutputStream,
12551 result: *mut GAsyncResult,
12552 error: *mut *mut glib::GError,
12553 ) -> ssize_t;
12554 pub fn g_output_stream_write(
12556 stream: *mut GOutputStream,
12557 buffer: *mut u8,
12558 count: size_t,
12559 cancellable: *mut GCancellable,
12560 error: *mut *mut glib::GError,
12561 ) -> ssize_t;
12562 pub fn g_output_stream_write_all(
12563 stream: *mut GOutputStream,
12564 buffer: *mut u8,
12565 count: size_t,
12566 bytes_written: *mut size_t,
12567 cancellable: *mut GCancellable,
12568 error: *mut *mut glib::GError,
12569 ) -> gboolean;
12570 pub fn g_output_stream_write_all_async(
12571 stream: *mut GOutputStream,
12572 buffer: *mut u8,
12573 count: size_t,
12574 io_priority: c_int,
12575 cancellable: *mut GCancellable,
12576 callback: GAsyncReadyCallback,
12577 user_data: gpointer,
12578 );
12579 pub fn g_output_stream_write_all_finish(
12580 stream: *mut GOutputStream,
12581 result: *mut GAsyncResult,
12582 bytes_written: *mut size_t,
12583 error: *mut *mut glib::GError,
12584 ) -> gboolean;
12585 pub fn g_output_stream_write_async(
12586 stream: *mut GOutputStream,
12587 buffer: *mut u8,
12588 count: size_t,
12589 io_priority: c_int,
12590 cancellable: *mut GCancellable,
12591 callback: GAsyncReadyCallback,
12592 user_data: gpointer,
12593 );
12594 pub fn g_output_stream_write_bytes(
12595 stream: *mut GOutputStream,
12596 bytes: *mut glib::GBytes,
12597 cancellable: *mut GCancellable,
12598 error: *mut *mut glib::GError,
12599 ) -> ssize_t;
12600 pub fn g_output_stream_write_bytes_async(
12601 stream: *mut GOutputStream,
12602 bytes: *mut glib::GBytes,
12603 io_priority: c_int,
12604 cancellable: *mut GCancellable,
12605 callback: GAsyncReadyCallback,
12606 user_data: gpointer,
12607 );
12608 pub fn g_output_stream_write_bytes_finish(
12609 stream: *mut GOutputStream,
12610 result: *mut GAsyncResult,
12611 error: *mut *mut glib::GError,
12612 ) -> ssize_t;
12613 pub fn g_output_stream_write_finish(
12614 stream: *mut GOutputStream,
12615 result: *mut GAsyncResult,
12616 error: *mut *mut glib::GError,
12617 ) -> ssize_t;
12618 #[cfg(feature = "v2_60")]
12619 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12620 pub fn g_output_stream_writev(
12621 stream: *mut GOutputStream,
12622 vectors: *const GOutputVector,
12623 n_vectors: size_t,
12624 bytes_written: *mut size_t,
12625 cancellable: *mut GCancellable,
12626 error: *mut *mut glib::GError,
12627 ) -> gboolean;
12628 #[cfg(feature = "v2_60")]
12629 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12630 pub fn g_output_stream_writev_all(
12631 stream: *mut GOutputStream,
12632 vectors: *mut GOutputVector,
12633 n_vectors: size_t,
12634 bytes_written: *mut size_t,
12635 cancellable: *mut GCancellable,
12636 error: *mut *mut glib::GError,
12637 ) -> gboolean;
12638 #[cfg(feature = "v2_60")]
12639 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12640 pub fn g_output_stream_writev_all_async(
12641 stream: *mut GOutputStream,
12642 vectors: *mut GOutputVector,
12643 n_vectors: size_t,
12644 io_priority: c_int,
12645 cancellable: *mut GCancellable,
12646 callback: GAsyncReadyCallback,
12647 user_data: gpointer,
12648 );
12649 #[cfg(feature = "v2_60")]
12650 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12651 pub fn g_output_stream_writev_all_finish(
12652 stream: *mut GOutputStream,
12653 result: *mut GAsyncResult,
12654 bytes_written: *mut size_t,
12655 error: *mut *mut glib::GError,
12656 ) -> gboolean;
12657 #[cfg(feature = "v2_60")]
12658 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12659 pub fn g_output_stream_writev_async(
12660 stream: *mut GOutputStream,
12661 vectors: *const GOutputVector,
12662 n_vectors: size_t,
12663 io_priority: c_int,
12664 cancellable: *mut GCancellable,
12665 callback: GAsyncReadyCallback,
12666 user_data: gpointer,
12667 );
12668 #[cfg(feature = "v2_60")]
12669 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12670 pub fn g_output_stream_writev_finish(
12671 stream: *mut GOutputStream,
12672 result: *mut GAsyncResult,
12673 bytes_written: *mut size_t,
12674 error: *mut *mut glib::GError,
12675 ) -> gboolean;
12676
12677 pub fn g_permission_get_type() -> GType;
12681 pub fn g_permission_acquire(
12682 permission: *mut GPermission,
12683 cancellable: *mut GCancellable,
12684 error: *mut *mut glib::GError,
12685 ) -> gboolean;
12686 pub fn g_permission_acquire_async(
12687 permission: *mut GPermission,
12688 cancellable: *mut GCancellable,
12689 callback: GAsyncReadyCallback,
12690 user_data: gpointer,
12691 );
12692 pub fn g_permission_acquire_finish(
12693 permission: *mut GPermission,
12694 result: *mut GAsyncResult,
12695 error: *mut *mut glib::GError,
12696 ) -> gboolean;
12697 pub fn g_permission_get_allowed(permission: *mut GPermission) -> gboolean;
12698 pub fn g_permission_get_can_acquire(permission: *mut GPermission) -> gboolean;
12699 pub fn g_permission_get_can_release(permission: *mut GPermission) -> gboolean;
12700 pub fn g_permission_impl_update(
12701 permission: *mut GPermission,
12702 allowed: gboolean,
12703 can_acquire: gboolean,
12704 can_release: gboolean,
12705 );
12706 pub fn g_permission_release(
12707 permission: *mut GPermission,
12708 cancellable: *mut GCancellable,
12709 error: *mut *mut glib::GError,
12710 ) -> gboolean;
12711 pub fn g_permission_release_async(
12712 permission: *mut GPermission,
12713 cancellable: *mut GCancellable,
12714 callback: GAsyncReadyCallback,
12715 user_data: gpointer,
12716 );
12717 pub fn g_permission_release_finish(
12718 permission: *mut GPermission,
12719 result: *mut GAsyncResult,
12720 error: *mut *mut glib::GError,
12721 ) -> gboolean;
12722
12723 pub fn g_property_action_get_type() -> GType;
12727 pub fn g_property_action_new(
12728 name: *const c_char,
12729 object: *mut gobject::GObject,
12730 property_name: *const c_char,
12731 ) -> *mut GPropertyAction;
12732
12733 pub fn g_proxy_address_get_type() -> GType;
12737 pub fn g_proxy_address_new(
12738 inetaddr: *mut GInetAddress,
12739 port: u16,
12740 protocol: *const c_char,
12741 dest_hostname: *const c_char,
12742 dest_port: u16,
12743 username: *const c_char,
12744 password: *const c_char,
12745 ) -> *mut GSocketAddress;
12746 pub fn g_proxy_address_get_destination_hostname(proxy: *mut GProxyAddress) -> *const c_char;
12747 pub fn g_proxy_address_get_destination_port(proxy: *mut GProxyAddress) -> u16;
12748 pub fn g_proxy_address_get_destination_protocol(proxy: *mut GProxyAddress) -> *const c_char;
12749 pub fn g_proxy_address_get_password(proxy: *mut GProxyAddress) -> *const c_char;
12750 pub fn g_proxy_address_get_protocol(proxy: *mut GProxyAddress) -> *const c_char;
12751 pub fn g_proxy_address_get_uri(proxy: *mut GProxyAddress) -> *const c_char;
12752 pub fn g_proxy_address_get_username(proxy: *mut GProxyAddress) -> *const c_char;
12753
12754 pub fn g_proxy_address_enumerator_get_type() -> GType;
12758
12759 pub fn g_resolver_get_type() -> GType;
12763 pub fn g_resolver_free_addresses(addresses: *mut glib::GList);
12764 pub fn g_resolver_free_targets(targets: *mut glib::GList);
12765 pub fn g_resolver_get_default() -> *mut GResolver;
12766 #[cfg(feature = "v2_78")]
12767 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
12768 pub fn g_resolver_get_timeout(resolver: *mut GResolver) -> c_uint;
12769 pub fn g_resolver_lookup_by_address(
12770 resolver: *mut GResolver,
12771 address: *mut GInetAddress,
12772 cancellable: *mut GCancellable,
12773 error: *mut *mut glib::GError,
12774 ) -> *mut c_char;
12775 pub fn g_resolver_lookup_by_address_async(
12776 resolver: *mut GResolver,
12777 address: *mut GInetAddress,
12778 cancellable: *mut GCancellable,
12779 callback: GAsyncReadyCallback,
12780 user_data: gpointer,
12781 );
12782 pub fn g_resolver_lookup_by_address_finish(
12783 resolver: *mut GResolver,
12784 result: *mut GAsyncResult,
12785 error: *mut *mut glib::GError,
12786 ) -> *mut c_char;
12787 pub fn g_resolver_lookup_by_name(
12788 resolver: *mut GResolver,
12789 hostname: *const c_char,
12790 cancellable: *mut GCancellable,
12791 error: *mut *mut glib::GError,
12792 ) -> *mut glib::GList;
12793 pub fn g_resolver_lookup_by_name_async(
12794 resolver: *mut GResolver,
12795 hostname: *const c_char,
12796 cancellable: *mut GCancellable,
12797 callback: GAsyncReadyCallback,
12798 user_data: gpointer,
12799 );
12800 pub fn g_resolver_lookup_by_name_finish(
12801 resolver: *mut GResolver,
12802 result: *mut GAsyncResult,
12803 error: *mut *mut glib::GError,
12804 ) -> *mut glib::GList;
12805 #[cfg(feature = "v2_60")]
12806 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12807 pub fn g_resolver_lookup_by_name_with_flags(
12808 resolver: *mut GResolver,
12809 hostname: *const c_char,
12810 flags: GResolverNameLookupFlags,
12811 cancellable: *mut GCancellable,
12812 error: *mut *mut glib::GError,
12813 ) -> *mut glib::GList;
12814 #[cfg(feature = "v2_60")]
12815 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12816 pub fn g_resolver_lookup_by_name_with_flags_async(
12817 resolver: *mut GResolver,
12818 hostname: *const c_char,
12819 flags: GResolverNameLookupFlags,
12820 cancellable: *mut GCancellable,
12821 callback: GAsyncReadyCallback,
12822 user_data: gpointer,
12823 );
12824 #[cfg(feature = "v2_60")]
12825 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
12826 pub fn g_resolver_lookup_by_name_with_flags_finish(
12827 resolver: *mut GResolver,
12828 result: *mut GAsyncResult,
12829 error: *mut *mut glib::GError,
12830 ) -> *mut glib::GList;
12831 pub fn g_resolver_lookup_records(
12832 resolver: *mut GResolver,
12833 rrname: *const c_char,
12834 record_type: GResolverRecordType,
12835 cancellable: *mut GCancellable,
12836 error: *mut *mut glib::GError,
12837 ) -> *mut glib::GList;
12838 pub fn g_resolver_lookup_records_async(
12839 resolver: *mut GResolver,
12840 rrname: *const c_char,
12841 record_type: GResolverRecordType,
12842 cancellable: *mut GCancellable,
12843 callback: GAsyncReadyCallback,
12844 user_data: gpointer,
12845 );
12846 pub fn g_resolver_lookup_records_finish(
12847 resolver: *mut GResolver,
12848 result: *mut GAsyncResult,
12849 error: *mut *mut glib::GError,
12850 ) -> *mut glib::GList;
12851 pub fn g_resolver_lookup_service(
12852 resolver: *mut GResolver,
12853 service: *const c_char,
12854 protocol: *const c_char,
12855 domain: *const c_char,
12856 cancellable: *mut GCancellable,
12857 error: *mut *mut glib::GError,
12858 ) -> *mut glib::GList;
12859 pub fn g_resolver_lookup_service_async(
12860 resolver: *mut GResolver,
12861 service: *const c_char,
12862 protocol: *const c_char,
12863 domain: *const c_char,
12864 cancellable: *mut GCancellable,
12865 callback: GAsyncReadyCallback,
12866 user_data: gpointer,
12867 );
12868 pub fn g_resolver_lookup_service_finish(
12869 resolver: *mut GResolver,
12870 result: *mut GAsyncResult,
12871 error: *mut *mut glib::GError,
12872 ) -> *mut glib::GList;
12873 pub fn g_resolver_set_default(resolver: *mut GResolver);
12874 #[cfg(feature = "v2_78")]
12875 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
12876 pub fn g_resolver_set_timeout(resolver: *mut GResolver, timeout_ms: c_uint);
12877
12878 pub fn g_settings_get_type() -> GType;
12882 pub fn g_settings_new(schema_id: *const c_char) -> *mut GSettings;
12883 pub fn g_settings_new_full(
12884 schema: *mut GSettingsSchema,
12885 backend: *mut GSettingsBackend,
12886 path: *const c_char,
12887 ) -> *mut GSettings;
12888 pub fn g_settings_new_with_backend(
12889 schema_id: *const c_char,
12890 backend: *mut GSettingsBackend,
12891 ) -> *mut GSettings;
12892 pub fn g_settings_new_with_backend_and_path(
12893 schema_id: *const c_char,
12894 backend: *mut GSettingsBackend,
12895 path: *const c_char,
12896 ) -> *mut GSettings;
12897 pub fn g_settings_new_with_path(
12898 schema_id: *const c_char,
12899 path: *const c_char,
12900 ) -> *mut GSettings;
12901 pub fn g_settings_list_relocatable_schemas() -> *const *const c_char;
12902 pub fn g_settings_list_schemas() -> *const *const c_char;
12903 pub fn g_settings_sync();
12904 pub fn g_settings_unbind(object: *mut gobject::GObject, property: *const c_char);
12905 pub fn g_settings_apply(settings: *mut GSettings);
12906 pub fn g_settings_bind(
12907 settings: *mut GSettings,
12908 key: *const c_char,
12909 object: *mut gobject::GObject,
12910 property: *const c_char,
12911 flags: GSettingsBindFlags,
12912 );
12913 pub fn g_settings_bind_with_mapping(
12914 settings: *mut GSettings,
12915 key: *const c_char,
12916 object: *mut gobject::GObject,
12917 property: *const c_char,
12918 flags: GSettingsBindFlags,
12919 get_mapping: GSettingsBindGetMapping,
12920 set_mapping: GSettingsBindSetMapping,
12921 user_data: gpointer,
12922 destroy: glib::GDestroyNotify,
12923 );
12924 #[cfg(feature = "v2_82")]
12925 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
12926 pub fn g_settings_bind_with_mapping_closures(
12927 settings: *mut GSettings,
12928 key: *const c_char,
12929 object: *mut gobject::GObject,
12930 property: *const c_char,
12931 flags: GSettingsBindFlags,
12932 get_mapping: *mut gobject::GClosure,
12933 set_mapping: *mut gobject::GClosure,
12934 );
12935 pub fn g_settings_bind_writable(
12936 settings: *mut GSettings,
12937 key: *const c_char,
12938 object: *mut gobject::GObject,
12939 property: *const c_char,
12940 inverted: gboolean,
12941 );
12942 pub fn g_settings_create_action(settings: *mut GSettings, key: *const c_char) -> *mut GAction;
12943 pub fn g_settings_delay(settings: *mut GSettings);
12944 pub fn g_settings_get(settings: *mut GSettings, key: *const c_char, format: *const c_char, ...);
12945 pub fn g_settings_get_boolean(settings: *mut GSettings, key: *const c_char) -> gboolean;
12946 pub fn g_settings_get_child(settings: *mut GSettings, name: *const c_char) -> *mut GSettings;
12947 pub fn g_settings_get_default_value(
12948 settings: *mut GSettings,
12949 key: *const c_char,
12950 ) -> *mut glib::GVariant;
12951 pub fn g_settings_get_double(settings: *mut GSettings, key: *const c_char) -> c_double;
12952 pub fn g_settings_get_enum(settings: *mut GSettings, key: *const c_char) -> c_int;
12953 pub fn g_settings_get_flags(settings: *mut GSettings, key: *const c_char) -> c_uint;
12954 pub fn g_settings_get_has_unapplied(settings: *mut GSettings) -> gboolean;
12955 pub fn g_settings_get_int(settings: *mut GSettings, key: *const c_char) -> c_int;
12956 pub fn g_settings_get_int64(settings: *mut GSettings, key: *const c_char) -> i64;
12957 pub fn g_settings_get_mapped(
12958 settings: *mut GSettings,
12959 key: *const c_char,
12960 mapping: GSettingsGetMapping,
12961 user_data: gpointer,
12962 ) -> gpointer;
12963 pub fn g_settings_get_range(
12964 settings: *mut GSettings,
12965 key: *const c_char,
12966 ) -> *mut glib::GVariant;
12967 pub fn g_settings_get_string(settings: *mut GSettings, key: *const c_char) -> *mut c_char;
12968 pub fn g_settings_get_strv(settings: *mut GSettings, key: *const c_char) -> *mut *mut c_char;
12969 pub fn g_settings_get_uint(settings: *mut GSettings, key: *const c_char) -> c_uint;
12970 pub fn g_settings_get_uint64(settings: *mut GSettings, key: *const c_char) -> u64;
12971 pub fn g_settings_get_user_value(
12972 settings: *mut GSettings,
12973 key: *const c_char,
12974 ) -> *mut glib::GVariant;
12975 pub fn g_settings_get_value(
12976 settings: *mut GSettings,
12977 key: *const c_char,
12978 ) -> *mut glib::GVariant;
12979 pub fn g_settings_is_writable(settings: *mut GSettings, name: *const c_char) -> gboolean;
12980 pub fn g_settings_list_children(settings: *mut GSettings) -> *mut *mut c_char;
12981 pub fn g_settings_list_keys(settings: *mut GSettings) -> *mut *mut c_char;
12982 pub fn g_settings_range_check(
12983 settings: *mut GSettings,
12984 key: *const c_char,
12985 value: *mut glib::GVariant,
12986 ) -> gboolean;
12987 pub fn g_settings_reset(settings: *mut GSettings, key: *const c_char);
12988 pub fn g_settings_revert(settings: *mut GSettings);
12989 pub fn g_settings_set(
12990 settings: *mut GSettings,
12991 key: *const c_char,
12992 format: *const c_char,
12993 ...
12994 ) -> gboolean;
12995 pub fn g_settings_set_boolean(
12996 settings: *mut GSettings,
12997 key: *const c_char,
12998 value: gboolean,
12999 ) -> gboolean;
13000 pub fn g_settings_set_double(
13001 settings: *mut GSettings,
13002 key: *const c_char,
13003 value: c_double,
13004 ) -> gboolean;
13005 pub fn g_settings_set_enum(
13006 settings: *mut GSettings,
13007 key: *const c_char,
13008 value: c_int,
13009 ) -> gboolean;
13010 pub fn g_settings_set_flags(
13011 settings: *mut GSettings,
13012 key: *const c_char,
13013 value: c_uint,
13014 ) -> gboolean;
13015 pub fn g_settings_set_int(
13016 settings: *mut GSettings,
13017 key: *const c_char,
13018 value: c_int,
13019 ) -> gboolean;
13020 pub fn g_settings_set_int64(
13021 settings: *mut GSettings,
13022 key: *const c_char,
13023 value: i64,
13024 ) -> gboolean;
13025 pub fn g_settings_set_string(
13026 settings: *mut GSettings,
13027 key: *const c_char,
13028 value: *const c_char,
13029 ) -> gboolean;
13030 pub fn g_settings_set_strv(
13031 settings: *mut GSettings,
13032 key: *const c_char,
13033 value: *const *const c_char,
13034 ) -> gboolean;
13035 pub fn g_settings_set_uint(
13036 settings: *mut GSettings,
13037 key: *const c_char,
13038 value: c_uint,
13039 ) -> gboolean;
13040 pub fn g_settings_set_uint64(
13041 settings: *mut GSettings,
13042 key: *const c_char,
13043 value: u64,
13044 ) -> gboolean;
13045 pub fn g_settings_set_value(
13046 settings: *mut GSettings,
13047 key: *const c_char,
13048 value: *mut glib::GVariant,
13049 ) -> gboolean;
13050
13051 pub fn g_settings_backend_get_type() -> GType;
13055 pub fn g_settings_backend_flatten_tree(
13056 tree: *mut glib::GTree,
13057 path: *mut *mut c_char,
13058 keys: *mut *mut *const c_char,
13059 values: *mut *mut *mut glib::GVariant,
13060 );
13061 pub fn g_settings_backend_get_default() -> *mut GSettingsBackend;
13062 pub fn g_settings_backend_changed(
13063 backend: *mut GSettingsBackend,
13064 key: *const c_char,
13065 origin_tag: gpointer,
13066 );
13067 pub fn g_settings_backend_changed_tree(
13068 backend: *mut GSettingsBackend,
13069 tree: *mut glib::GTree,
13070 origin_tag: gpointer,
13071 );
13072 pub fn g_settings_backend_keys_changed(
13073 backend: *mut GSettingsBackend,
13074 path: *const c_char,
13075 items: *const *const c_char,
13076 origin_tag: gpointer,
13077 );
13078 pub fn g_settings_backend_path_changed(
13079 backend: *mut GSettingsBackend,
13080 path: *const c_char,
13081 origin_tag: gpointer,
13082 );
13083 pub fn g_settings_backend_path_writable_changed(
13084 backend: *mut GSettingsBackend,
13085 path: *const c_char,
13086 );
13087 pub fn g_settings_backend_writable_changed(backend: *mut GSettingsBackend, key: *const c_char);
13088
13089 pub fn g_simple_action_get_type() -> GType;
13093 pub fn g_simple_action_new(
13094 name: *const c_char,
13095 parameter_type: *const glib::GVariantType,
13096 ) -> *mut GSimpleAction;
13097 pub fn g_simple_action_new_stateful(
13098 name: *const c_char,
13099 parameter_type: *const glib::GVariantType,
13100 state: *mut glib::GVariant,
13101 ) -> *mut GSimpleAction;
13102 pub fn g_simple_action_set_enabled(simple: *mut GSimpleAction, enabled: gboolean);
13103 pub fn g_simple_action_set_state(simple: *mut GSimpleAction, value: *mut glib::GVariant);
13104 pub fn g_simple_action_set_state_hint(
13105 simple: *mut GSimpleAction,
13106 state_hint: *mut glib::GVariant,
13107 );
13108
13109 pub fn g_simple_action_group_get_type() -> GType;
13113 pub fn g_simple_action_group_new() -> *mut GSimpleActionGroup;
13114 pub fn g_simple_action_group_add_entries(
13115 simple: *mut GSimpleActionGroup,
13116 entries: *const GActionEntry,
13117 n_entries: c_int,
13118 user_data: gpointer,
13119 );
13120 pub fn g_simple_action_group_insert(simple: *mut GSimpleActionGroup, action: *mut GAction);
13121 pub fn g_simple_action_group_lookup(
13122 simple: *mut GSimpleActionGroup,
13123 action_name: *const c_char,
13124 ) -> *mut GAction;
13125 pub fn g_simple_action_group_remove(
13126 simple: *mut GSimpleActionGroup,
13127 action_name: *const c_char,
13128 );
13129
13130 pub fn g_simple_async_result_get_type() -> GType;
13134 pub fn g_simple_async_result_new(
13135 source_object: *mut gobject::GObject,
13136 callback: GAsyncReadyCallback,
13137 user_data: gpointer,
13138 source_tag: gpointer,
13139 ) -> *mut GSimpleAsyncResult;
13140 pub fn g_simple_async_result_new_error(
13141 source_object: *mut gobject::GObject,
13142 callback: GAsyncReadyCallback,
13143 user_data: gpointer,
13144 domain: glib::GQuark,
13145 code: c_int,
13146 format: *const c_char,
13147 ...
13148 ) -> *mut GSimpleAsyncResult;
13149 pub fn g_simple_async_result_new_from_error(
13150 source_object: *mut gobject::GObject,
13151 callback: GAsyncReadyCallback,
13152 user_data: gpointer,
13153 error: *const glib::GError,
13154 ) -> *mut GSimpleAsyncResult;
13155 pub fn g_simple_async_result_new_take_error(
13156 source_object: *mut gobject::GObject,
13157 callback: GAsyncReadyCallback,
13158 user_data: gpointer,
13159 error: *mut glib::GError,
13160 ) -> *mut GSimpleAsyncResult;
13161 pub fn g_simple_async_result_is_valid(
13162 result: *mut GAsyncResult,
13163 source: *mut gobject::GObject,
13164 source_tag: gpointer,
13165 ) -> gboolean;
13166 pub fn g_simple_async_result_complete(simple: *mut GSimpleAsyncResult);
13167 pub fn g_simple_async_result_complete_in_idle(simple: *mut GSimpleAsyncResult);
13168 pub fn g_simple_async_result_get_op_res_gboolean(simple: *mut GSimpleAsyncResult) -> gboolean;
13169 pub fn g_simple_async_result_get_op_res_gpointer(simple: *mut GSimpleAsyncResult) -> gpointer;
13170 pub fn g_simple_async_result_get_op_res_gssize(simple: *mut GSimpleAsyncResult) -> ssize_t;
13171 pub fn g_simple_async_result_get_source_tag(simple: *mut GSimpleAsyncResult) -> gpointer;
13172 pub fn g_simple_async_result_propagate_error(
13173 simple: *mut GSimpleAsyncResult,
13174 error: *mut *mut glib::GError,
13175 ) -> gboolean;
13176 pub fn g_simple_async_result_run_in_thread(
13177 simple: *mut GSimpleAsyncResult,
13178 func: GSimpleAsyncThreadFunc,
13179 io_priority: c_int,
13180 cancellable: *mut GCancellable,
13181 );
13182 pub fn g_simple_async_result_set_check_cancellable(
13183 simple: *mut GSimpleAsyncResult,
13184 check_cancellable: *mut GCancellable,
13185 );
13186 pub fn g_simple_async_result_set_error(
13187 simple: *mut GSimpleAsyncResult,
13188 domain: glib::GQuark,
13189 code: c_int,
13190 format: *const c_char,
13191 ...
13192 );
13193 pub fn g_simple_async_result_set_from_error(
13195 simple: *mut GSimpleAsyncResult,
13196 error: *const glib::GError,
13197 );
13198 pub fn g_simple_async_result_set_handle_cancellation(
13199 simple: *mut GSimpleAsyncResult,
13200 handle_cancellation: gboolean,
13201 );
13202 pub fn g_simple_async_result_set_op_res_gboolean(
13203 simple: *mut GSimpleAsyncResult,
13204 op_res: gboolean,
13205 );
13206 pub fn g_simple_async_result_set_op_res_gpointer(
13207 simple: *mut GSimpleAsyncResult,
13208 op_res: gpointer,
13209 destroy_op_res: glib::GDestroyNotify,
13210 );
13211 pub fn g_simple_async_result_set_op_res_gssize(
13212 simple: *mut GSimpleAsyncResult,
13213 op_res: ssize_t,
13214 );
13215 pub fn g_simple_async_result_take_error(
13216 simple: *mut GSimpleAsyncResult,
13217 error: *mut glib::GError,
13218 );
13219
13220 pub fn g_simple_io_stream_get_type() -> GType;
13224 pub fn g_simple_io_stream_new(
13225 input_stream: *mut GInputStream,
13226 output_stream: *mut GOutputStream,
13227 ) -> *mut GIOStream;
13228
13229 pub fn g_simple_permission_get_type() -> GType;
13233 pub fn g_simple_permission_new(allowed: gboolean) -> *mut GPermission;
13234
13235 pub fn g_simple_proxy_resolver_get_type() -> GType;
13239 pub fn g_simple_proxy_resolver_new(
13240 default_proxy: *const c_char,
13241 ignore_hosts: *mut *mut c_char,
13242 ) -> *mut GProxyResolver;
13243 pub fn g_simple_proxy_resolver_set_default_proxy(
13244 resolver: *mut GSimpleProxyResolver,
13245 default_proxy: *const c_char,
13246 );
13247 pub fn g_simple_proxy_resolver_set_ignore_hosts(
13248 resolver: *mut GSimpleProxyResolver,
13249 ignore_hosts: *mut *mut c_char,
13250 );
13251 pub fn g_simple_proxy_resolver_set_uri_proxy(
13252 resolver: *mut GSimpleProxyResolver,
13253 uri_scheme: *const c_char,
13254 proxy: *const c_char,
13255 );
13256
13257 pub fn g_socket_get_type() -> GType;
13261 pub fn g_socket_new(
13262 family: GSocketFamily,
13263 type_: GSocketType,
13264 protocol: GSocketProtocol,
13265 error: *mut *mut glib::GError,
13266 ) -> *mut GSocket;
13267 pub fn g_socket_new_from_fd(fd: c_int, error: *mut *mut glib::GError) -> *mut GSocket;
13268 pub fn g_socket_accept(
13269 socket: *mut GSocket,
13270 cancellable: *mut GCancellable,
13271 error: *mut *mut glib::GError,
13272 ) -> *mut GSocket;
13273 pub fn g_socket_bind(
13274 socket: *mut GSocket,
13275 address: *mut GSocketAddress,
13276 allow_reuse: gboolean,
13277 error: *mut *mut glib::GError,
13278 ) -> gboolean;
13279 pub fn g_socket_check_connect_result(
13280 socket: *mut GSocket,
13281 error: *mut *mut glib::GError,
13282 ) -> gboolean;
13283 pub fn g_socket_close(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
13284 pub fn g_socket_condition_check(
13285 socket: *mut GSocket,
13286 condition: glib::GIOCondition,
13287 ) -> glib::GIOCondition;
13288 pub fn g_socket_condition_timed_wait(
13289 socket: *mut GSocket,
13290 condition: glib::GIOCondition,
13291 timeout_us: i64,
13292 cancellable: *mut GCancellable,
13293 error: *mut *mut glib::GError,
13294 ) -> gboolean;
13295 pub fn g_socket_condition_wait(
13296 socket: *mut GSocket,
13297 condition: glib::GIOCondition,
13298 cancellable: *mut GCancellable,
13299 error: *mut *mut glib::GError,
13300 ) -> gboolean;
13301 pub fn g_socket_connect(
13302 socket: *mut GSocket,
13303 address: *mut GSocketAddress,
13304 cancellable: *mut GCancellable,
13305 error: *mut *mut glib::GError,
13306 ) -> gboolean;
13307 pub fn g_socket_connection_factory_create_connection(
13308 socket: *mut GSocket,
13309 ) -> *mut GSocketConnection;
13310 pub fn g_socket_create_source(
13311 socket: *mut GSocket,
13312 condition: glib::GIOCondition,
13313 cancellable: *mut GCancellable,
13314 ) -> *mut glib::GSource;
13315 pub fn g_socket_get_available_bytes(socket: *mut GSocket) -> ssize_t;
13316 pub fn g_socket_get_blocking(socket: *mut GSocket) -> gboolean;
13317 pub fn g_socket_get_broadcast(socket: *mut GSocket) -> gboolean;
13318 pub fn g_socket_get_credentials(
13319 socket: *mut GSocket,
13320 error: *mut *mut glib::GError,
13321 ) -> *mut GCredentials;
13322 pub fn g_socket_get_family(socket: *mut GSocket) -> GSocketFamily;
13323 pub fn g_socket_get_fd(socket: *mut GSocket) -> c_int;
13324 pub fn g_socket_get_keepalive(socket: *mut GSocket) -> gboolean;
13325 pub fn g_socket_get_listen_backlog(socket: *mut GSocket) -> c_int;
13326 pub fn g_socket_get_local_address(
13327 socket: *mut GSocket,
13328 error: *mut *mut glib::GError,
13329 ) -> *mut GSocketAddress;
13330 pub fn g_socket_get_multicast_loopback(socket: *mut GSocket) -> gboolean;
13331 pub fn g_socket_get_multicast_ttl(socket: *mut GSocket) -> c_uint;
13332 pub fn g_socket_get_option(
13333 socket: *mut GSocket,
13334 level: c_int,
13335 optname: c_int,
13336 value: *mut c_int,
13337 error: *mut *mut glib::GError,
13338 ) -> gboolean;
13339 pub fn g_socket_get_protocol(socket: *mut GSocket) -> GSocketProtocol;
13340 pub fn g_socket_get_remote_address(
13341 socket: *mut GSocket,
13342 error: *mut *mut glib::GError,
13343 ) -> *mut GSocketAddress;
13344 pub fn g_socket_get_socket_type(socket: *mut GSocket) -> GSocketType;
13345 pub fn g_socket_get_timeout(socket: *mut GSocket) -> c_uint;
13346 pub fn g_socket_get_ttl(socket: *mut GSocket) -> c_uint;
13347 pub fn g_socket_is_closed(socket: *mut GSocket) -> gboolean;
13348 pub fn g_socket_is_connected(socket: *mut GSocket) -> gboolean;
13349 pub fn g_socket_join_multicast_group(
13350 socket: *mut GSocket,
13351 group: *mut GInetAddress,
13352 source_specific: gboolean,
13353 iface: *const c_char,
13354 error: *mut *mut glib::GError,
13355 ) -> gboolean;
13356 pub fn g_socket_join_multicast_group_ssm(
13357 socket: *mut GSocket,
13358 group: *mut GInetAddress,
13359 source_specific: *mut GInetAddress,
13360 iface: *const c_char,
13361 error: *mut *mut glib::GError,
13362 ) -> gboolean;
13363 pub fn g_socket_leave_multicast_group(
13364 socket: *mut GSocket,
13365 group: *mut GInetAddress,
13366 source_specific: gboolean,
13367 iface: *const c_char,
13368 error: *mut *mut glib::GError,
13369 ) -> gboolean;
13370 pub fn g_socket_leave_multicast_group_ssm(
13371 socket: *mut GSocket,
13372 group: *mut GInetAddress,
13373 source_specific: *mut GInetAddress,
13374 iface: *const c_char,
13375 error: *mut *mut glib::GError,
13376 ) -> gboolean;
13377 pub fn g_socket_listen(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean;
13378 pub fn g_socket_receive(
13379 socket: *mut GSocket,
13380 buffer: *mut u8,
13381 size: size_t,
13382 cancellable: *mut GCancellable,
13383 error: *mut *mut glib::GError,
13384 ) -> ssize_t;
13385 #[cfg(feature = "v2_80")]
13386 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
13387 pub fn g_socket_receive_bytes(
13388 socket: *mut GSocket,
13389 size: size_t,
13390 timeout_us: i64,
13391 cancellable: *mut GCancellable,
13392 error: *mut *mut glib::GError,
13393 ) -> *mut glib::GBytes;
13394 #[cfg(feature = "v2_80")]
13395 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
13396 pub fn g_socket_receive_bytes_from(
13397 socket: *mut GSocket,
13398 address: *mut *mut GSocketAddress,
13399 size: size_t,
13400 timeout_us: i64,
13401 cancellable: *mut GCancellable,
13402 error: *mut *mut glib::GError,
13403 ) -> *mut glib::GBytes;
13404 pub fn g_socket_receive_from(
13405 socket: *mut GSocket,
13406 address: *mut *mut GSocketAddress,
13407 buffer: *mut u8,
13408 size: size_t,
13409 cancellable: *mut GCancellable,
13410 error: *mut *mut glib::GError,
13411 ) -> ssize_t;
13412 pub fn g_socket_receive_message(
13413 socket: *mut GSocket,
13414 address: *mut *mut GSocketAddress,
13415 vectors: *mut GInputVector,
13416 num_vectors: c_int,
13417 messages: *mut *mut *mut GSocketControlMessage,
13418 num_messages: *mut c_int,
13419 flags: *mut c_int,
13420 cancellable: *mut GCancellable,
13421 error: *mut *mut glib::GError,
13422 ) -> ssize_t;
13423 pub fn g_socket_receive_messages(
13424 socket: *mut GSocket,
13425 messages: *mut GInputMessage,
13426 num_messages: c_uint,
13427 flags: c_int,
13428 cancellable: *mut GCancellable,
13429 error: *mut *mut glib::GError,
13430 ) -> c_int;
13431 pub fn g_socket_receive_with_blocking(
13432 socket: *mut GSocket,
13433 buffer: *mut u8,
13434 size: size_t,
13435 blocking: gboolean,
13436 cancellable: *mut GCancellable,
13437 error: *mut *mut glib::GError,
13438 ) -> ssize_t;
13439 pub fn g_socket_send(
13440 socket: *mut GSocket,
13441 buffer: *const u8,
13442 size: size_t,
13443 cancellable: *mut GCancellable,
13444 error: *mut *mut glib::GError,
13445 ) -> ssize_t;
13446 pub fn g_socket_send_message(
13447 socket: *mut GSocket,
13448 address: *mut GSocketAddress,
13449 vectors: *mut GOutputVector,
13450 num_vectors: c_int,
13451 messages: *mut *mut GSocketControlMessage,
13452 num_messages: c_int,
13453 flags: c_int,
13454 cancellable: *mut GCancellable,
13455 error: *mut *mut glib::GError,
13456 ) -> ssize_t;
13457 #[cfg(feature = "v2_60")]
13458 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
13459 pub fn g_socket_send_message_with_timeout(
13460 socket: *mut GSocket,
13461 address: *mut GSocketAddress,
13462 vectors: *const GOutputVector,
13463 num_vectors: c_int,
13464 messages: *mut *mut GSocketControlMessage,
13465 num_messages: c_int,
13466 flags: c_int,
13467 timeout_us: i64,
13468 bytes_written: *mut size_t,
13469 cancellable: *mut GCancellable,
13470 error: *mut *mut glib::GError,
13471 ) -> GPollableReturn;
13472 pub fn g_socket_send_messages(
13473 socket: *mut GSocket,
13474 messages: *mut GOutputMessage,
13475 num_messages: c_uint,
13476 flags: c_int,
13477 cancellable: *mut GCancellable,
13478 error: *mut *mut glib::GError,
13479 ) -> c_int;
13480 pub fn g_socket_send_to(
13481 socket: *mut GSocket,
13482 address: *mut GSocketAddress,
13483 buffer: *const u8,
13484 size: size_t,
13485 cancellable: *mut GCancellable,
13486 error: *mut *mut glib::GError,
13487 ) -> ssize_t;
13488 pub fn g_socket_send_with_blocking(
13489 socket: *mut GSocket,
13490 buffer: *const u8,
13491 size: size_t,
13492 blocking: gboolean,
13493 cancellable: *mut GCancellable,
13494 error: *mut *mut glib::GError,
13495 ) -> ssize_t;
13496 pub fn g_socket_set_blocking(socket: *mut GSocket, blocking: gboolean);
13497 pub fn g_socket_set_broadcast(socket: *mut GSocket, broadcast: gboolean);
13498 pub fn g_socket_set_keepalive(socket: *mut GSocket, keepalive: gboolean);
13499 pub fn g_socket_set_listen_backlog(socket: *mut GSocket, backlog: c_int);
13500 pub fn g_socket_set_multicast_loopback(socket: *mut GSocket, loopback: gboolean);
13501 pub fn g_socket_set_multicast_ttl(socket: *mut GSocket, ttl: c_uint);
13502 pub fn g_socket_set_option(
13503 socket: *mut GSocket,
13504 level: c_int,
13505 optname: c_int,
13506 value: c_int,
13507 error: *mut *mut glib::GError,
13508 ) -> gboolean;
13509 pub fn g_socket_set_timeout(socket: *mut GSocket, timeout: c_uint);
13510 pub fn g_socket_set_ttl(socket: *mut GSocket, ttl: c_uint);
13511 pub fn g_socket_shutdown(
13512 socket: *mut GSocket,
13513 shutdown_read: gboolean,
13514 shutdown_write: gboolean,
13515 error: *mut *mut glib::GError,
13516 ) -> gboolean;
13517 pub fn g_socket_speaks_ipv4(socket: *mut GSocket) -> gboolean;
13518
13519 pub fn g_socket_address_get_type() -> GType;
13523 pub fn g_socket_address_new_from_native(native: gpointer, len: size_t) -> *mut GSocketAddress;
13524 pub fn g_socket_address_get_family(address: *mut GSocketAddress) -> GSocketFamily;
13525 pub fn g_socket_address_get_native_size(address: *mut GSocketAddress) -> ssize_t;
13526 pub fn g_socket_address_to_native(
13527 address: *mut GSocketAddress,
13528 dest: gpointer,
13529 destlen: size_t,
13530 error: *mut *mut glib::GError,
13531 ) -> gboolean;
13532
13533 pub fn g_socket_address_enumerator_get_type() -> GType;
13537 pub fn g_socket_address_enumerator_next(
13538 enumerator: *mut GSocketAddressEnumerator,
13539 cancellable: *mut GCancellable,
13540 error: *mut *mut glib::GError,
13541 ) -> *mut GSocketAddress;
13542 pub fn g_socket_address_enumerator_next_async(
13543 enumerator: *mut GSocketAddressEnumerator,
13544 cancellable: *mut GCancellable,
13545 callback: GAsyncReadyCallback,
13546 user_data: gpointer,
13547 );
13548 pub fn g_socket_address_enumerator_next_finish(
13549 enumerator: *mut GSocketAddressEnumerator,
13550 result: *mut GAsyncResult,
13551 error: *mut *mut glib::GError,
13552 ) -> *mut GSocketAddress;
13553
13554 pub fn g_socket_client_get_type() -> GType;
13558 pub fn g_socket_client_new() -> *mut GSocketClient;
13559 pub fn g_socket_client_add_application_proxy(
13560 client: *mut GSocketClient,
13561 protocol: *const c_char,
13562 );
13563 pub fn g_socket_client_connect(
13564 client: *mut GSocketClient,
13565 connectable: *mut GSocketConnectable,
13566 cancellable: *mut GCancellable,
13567 error: *mut *mut glib::GError,
13568 ) -> *mut GSocketConnection;
13569 pub fn g_socket_client_connect_async(
13570 client: *mut GSocketClient,
13571 connectable: *mut GSocketConnectable,
13572 cancellable: *mut GCancellable,
13573 callback: GAsyncReadyCallback,
13574 user_data: gpointer,
13575 );
13576 pub fn g_socket_client_connect_finish(
13577 client: *mut GSocketClient,
13578 result: *mut GAsyncResult,
13579 error: *mut *mut glib::GError,
13580 ) -> *mut GSocketConnection;
13581 pub fn g_socket_client_connect_to_host(
13582 client: *mut GSocketClient,
13583 host_and_port: *const c_char,
13584 default_port: u16,
13585 cancellable: *mut GCancellable,
13586 error: *mut *mut glib::GError,
13587 ) -> *mut GSocketConnection;
13588 pub fn g_socket_client_connect_to_host_async(
13589 client: *mut GSocketClient,
13590 host_and_port: *const c_char,
13591 default_port: u16,
13592 cancellable: *mut GCancellable,
13593 callback: GAsyncReadyCallback,
13594 user_data: gpointer,
13595 );
13596 pub fn g_socket_client_connect_to_host_finish(
13597 client: *mut GSocketClient,
13598 result: *mut GAsyncResult,
13599 error: *mut *mut glib::GError,
13600 ) -> *mut GSocketConnection;
13601 pub fn g_socket_client_connect_to_service(
13602 client: *mut GSocketClient,
13603 domain: *const c_char,
13604 service: *const c_char,
13605 cancellable: *mut GCancellable,
13606 error: *mut *mut glib::GError,
13607 ) -> *mut GSocketConnection;
13608 pub fn g_socket_client_connect_to_service_async(
13609 client: *mut GSocketClient,
13610 domain: *const c_char,
13611 service: *const c_char,
13612 cancellable: *mut GCancellable,
13613 callback: GAsyncReadyCallback,
13614 user_data: gpointer,
13615 );
13616 pub fn g_socket_client_connect_to_service_finish(
13617 client: *mut GSocketClient,
13618 result: *mut GAsyncResult,
13619 error: *mut *mut glib::GError,
13620 ) -> *mut GSocketConnection;
13621 pub fn g_socket_client_connect_to_uri(
13622 client: *mut GSocketClient,
13623 uri: *const c_char,
13624 default_port: u16,
13625 cancellable: *mut GCancellable,
13626 error: *mut *mut glib::GError,
13627 ) -> *mut GSocketConnection;
13628 pub fn g_socket_client_connect_to_uri_async(
13629 client: *mut GSocketClient,
13630 uri: *const c_char,
13631 default_port: u16,
13632 cancellable: *mut GCancellable,
13633 callback: GAsyncReadyCallback,
13634 user_data: gpointer,
13635 );
13636 pub fn g_socket_client_connect_to_uri_finish(
13637 client: *mut GSocketClient,
13638 result: *mut GAsyncResult,
13639 error: *mut *mut glib::GError,
13640 ) -> *mut GSocketConnection;
13641 pub fn g_socket_client_get_enable_proxy(client: *mut GSocketClient) -> gboolean;
13642 pub fn g_socket_client_get_family(client: *mut GSocketClient) -> GSocketFamily;
13643 pub fn g_socket_client_get_local_address(client: *mut GSocketClient) -> *mut GSocketAddress;
13644 pub fn g_socket_client_get_protocol(client: *mut GSocketClient) -> GSocketProtocol;
13645 pub fn g_socket_client_get_proxy_resolver(client: *mut GSocketClient) -> *mut GProxyResolver;
13646 pub fn g_socket_client_get_socket_type(client: *mut GSocketClient) -> GSocketType;
13647 pub fn g_socket_client_get_timeout(client: *mut GSocketClient) -> c_uint;
13648 pub fn g_socket_client_get_tls(client: *mut GSocketClient) -> gboolean;
13649 pub fn g_socket_client_get_tls_validation_flags(
13650 client: *mut GSocketClient,
13651 ) -> GTlsCertificateFlags;
13652 pub fn g_socket_client_set_enable_proxy(client: *mut GSocketClient, enable: gboolean);
13653 pub fn g_socket_client_set_family(client: *mut GSocketClient, family: GSocketFamily);
13654 pub fn g_socket_client_set_local_address(
13655 client: *mut GSocketClient,
13656 address: *mut GSocketAddress,
13657 );
13658 pub fn g_socket_client_set_protocol(client: *mut GSocketClient, protocol: GSocketProtocol);
13659 pub fn g_socket_client_set_proxy_resolver(
13660 client: *mut GSocketClient,
13661 proxy_resolver: *mut GProxyResolver,
13662 );
13663 pub fn g_socket_client_set_socket_type(client: *mut GSocketClient, type_: GSocketType);
13664 pub fn g_socket_client_set_timeout(client: *mut GSocketClient, timeout: c_uint);
13665 pub fn g_socket_client_set_tls(client: *mut GSocketClient, tls: gboolean);
13666 pub fn g_socket_client_set_tls_validation_flags(
13667 client: *mut GSocketClient,
13668 flags: GTlsCertificateFlags,
13669 );
13670
13671 pub fn g_socket_connection_get_type() -> GType;
13675 pub fn g_socket_connection_factory_lookup_type(
13676 family: GSocketFamily,
13677 type_: GSocketType,
13678 protocol_id: c_int,
13679 ) -> GType;
13680 pub fn g_socket_connection_factory_register_type(
13681 g_type: GType,
13682 family: GSocketFamily,
13683 type_: GSocketType,
13684 protocol: c_int,
13685 );
13686 pub fn g_socket_connection_connect(
13687 connection: *mut GSocketConnection,
13688 address: *mut GSocketAddress,
13689 cancellable: *mut GCancellable,
13690 error: *mut *mut glib::GError,
13691 ) -> gboolean;
13692 pub fn g_socket_connection_connect_async(
13693 connection: *mut GSocketConnection,
13694 address: *mut GSocketAddress,
13695 cancellable: *mut GCancellable,
13696 callback: GAsyncReadyCallback,
13697 user_data: gpointer,
13698 );
13699 pub fn g_socket_connection_connect_finish(
13700 connection: *mut GSocketConnection,
13701 result: *mut GAsyncResult,
13702 error: *mut *mut glib::GError,
13703 ) -> gboolean;
13704 pub fn g_socket_connection_get_local_address(
13705 connection: *mut GSocketConnection,
13706 error: *mut *mut glib::GError,
13707 ) -> *mut GSocketAddress;
13708 pub fn g_socket_connection_get_remote_address(
13709 connection: *mut GSocketConnection,
13710 error: *mut *mut glib::GError,
13711 ) -> *mut GSocketAddress;
13712 pub fn g_socket_connection_get_socket(connection: *mut GSocketConnection) -> *mut GSocket;
13713 pub fn g_socket_connection_is_connected(connection: *mut GSocketConnection) -> gboolean;
13714
13715 pub fn g_socket_control_message_get_type() -> GType;
13719 pub fn g_socket_control_message_deserialize(
13720 level: c_int,
13721 type_: c_int,
13722 size: size_t,
13723 data: gpointer,
13724 ) -> *mut GSocketControlMessage;
13725 pub fn g_socket_control_message_get_level(message: *mut GSocketControlMessage) -> c_int;
13726 pub fn g_socket_control_message_get_msg_type(message: *mut GSocketControlMessage) -> c_int;
13727 pub fn g_socket_control_message_get_size(message: *mut GSocketControlMessage) -> size_t;
13728 pub fn g_socket_control_message_serialize(message: *mut GSocketControlMessage, data: gpointer);
13729
13730 pub fn g_socket_listener_get_type() -> GType;
13734 pub fn g_socket_listener_new() -> *mut GSocketListener;
13735 pub fn g_socket_listener_accept(
13736 listener: *mut GSocketListener,
13737 source_object: *mut *mut gobject::GObject,
13738 cancellable: *mut GCancellable,
13739 error: *mut *mut glib::GError,
13740 ) -> *mut GSocketConnection;
13741 pub fn g_socket_listener_accept_async(
13742 listener: *mut GSocketListener,
13743 cancellable: *mut GCancellable,
13744 callback: GAsyncReadyCallback,
13745 user_data: gpointer,
13746 );
13747 pub fn g_socket_listener_accept_finish(
13748 listener: *mut GSocketListener,
13749 result: *mut GAsyncResult,
13750 source_object: *mut *mut gobject::GObject,
13751 error: *mut *mut glib::GError,
13752 ) -> *mut GSocketConnection;
13753 pub fn g_socket_listener_accept_socket(
13754 listener: *mut GSocketListener,
13755 source_object: *mut *mut gobject::GObject,
13756 cancellable: *mut GCancellable,
13757 error: *mut *mut glib::GError,
13758 ) -> *mut GSocket;
13759 pub fn g_socket_listener_accept_socket_async(
13760 listener: *mut GSocketListener,
13761 cancellable: *mut GCancellable,
13762 callback: GAsyncReadyCallback,
13763 user_data: gpointer,
13764 );
13765 pub fn g_socket_listener_accept_socket_finish(
13766 listener: *mut GSocketListener,
13767 result: *mut GAsyncResult,
13768 source_object: *mut *mut gobject::GObject,
13769 error: *mut *mut glib::GError,
13770 ) -> *mut GSocket;
13771 pub fn g_socket_listener_add_address(
13772 listener: *mut GSocketListener,
13773 address: *mut GSocketAddress,
13774 type_: GSocketType,
13775 protocol: GSocketProtocol,
13776 source_object: *mut gobject::GObject,
13777 effective_address: *mut *mut GSocketAddress,
13778 error: *mut *mut glib::GError,
13779 ) -> gboolean;
13780 pub fn g_socket_listener_add_any_inet_port(
13781 listener: *mut GSocketListener,
13782 source_object: *mut gobject::GObject,
13783 error: *mut *mut glib::GError,
13784 ) -> u16;
13785 pub fn g_socket_listener_add_inet_port(
13786 listener: *mut GSocketListener,
13787 port: u16,
13788 source_object: *mut gobject::GObject,
13789 error: *mut *mut glib::GError,
13790 ) -> gboolean;
13791 pub fn g_socket_listener_add_socket(
13792 listener: *mut GSocketListener,
13793 socket: *mut GSocket,
13794 source_object: *mut gobject::GObject,
13795 error: *mut *mut glib::GError,
13796 ) -> gboolean;
13797 pub fn g_socket_listener_close(listener: *mut GSocketListener);
13798 pub fn g_socket_listener_set_backlog(listener: *mut GSocketListener, listen_backlog: c_int);
13799
13800 pub fn g_socket_service_get_type() -> GType;
13804 pub fn g_socket_service_new() -> *mut GSocketService;
13805 pub fn g_socket_service_is_active(service: *mut GSocketService) -> gboolean;
13806 pub fn g_socket_service_start(service: *mut GSocketService);
13807 pub fn g_socket_service_stop(service: *mut GSocketService);
13808
13809 pub fn g_subprocess_get_type() -> GType;
13813 pub fn g_subprocess_new(
13814 flags: GSubprocessFlags,
13815 error: *mut *mut glib::GError,
13816 argv0: *const c_char,
13817 ...
13818 ) -> *mut GSubprocess;
13819 pub fn g_subprocess_newv(
13820 argv: *const *const c_char,
13821 flags: GSubprocessFlags,
13822 error: *mut *mut glib::GError,
13823 ) -> *mut GSubprocess;
13824 pub fn g_subprocess_communicate(
13825 subprocess: *mut GSubprocess,
13826 stdin_buf: *mut glib::GBytes,
13827 cancellable: *mut GCancellable,
13828 stdout_buf: *mut *mut glib::GBytes,
13829 stderr_buf: *mut *mut glib::GBytes,
13830 error: *mut *mut glib::GError,
13831 ) -> gboolean;
13832 pub fn g_subprocess_communicate_async(
13833 subprocess: *mut GSubprocess,
13834 stdin_buf: *mut glib::GBytes,
13835 cancellable: *mut GCancellable,
13836 callback: GAsyncReadyCallback,
13837 user_data: gpointer,
13838 );
13839 pub fn g_subprocess_communicate_finish(
13840 subprocess: *mut GSubprocess,
13841 result: *mut GAsyncResult,
13842 stdout_buf: *mut *mut glib::GBytes,
13843 stderr_buf: *mut *mut glib::GBytes,
13844 error: *mut *mut glib::GError,
13845 ) -> gboolean;
13846 pub fn g_subprocess_communicate_utf8(
13847 subprocess: *mut GSubprocess,
13848 stdin_buf: *const c_char,
13849 cancellable: *mut GCancellable,
13850 stdout_buf: *mut *mut c_char,
13851 stderr_buf: *mut *mut c_char,
13852 error: *mut *mut glib::GError,
13853 ) -> gboolean;
13854 pub fn g_subprocess_communicate_utf8_async(
13855 subprocess: *mut GSubprocess,
13856 stdin_buf: *const c_char,
13857 cancellable: *mut GCancellable,
13858 callback: GAsyncReadyCallback,
13859 user_data: gpointer,
13860 );
13861 pub fn g_subprocess_communicate_utf8_finish(
13862 subprocess: *mut GSubprocess,
13863 result: *mut GAsyncResult,
13864 stdout_buf: *mut *mut c_char,
13865 stderr_buf: *mut *mut c_char,
13866 error: *mut *mut glib::GError,
13867 ) -> gboolean;
13868 pub fn g_subprocess_force_exit(subprocess: *mut GSubprocess);
13869 pub fn g_subprocess_get_exit_status(subprocess: *mut GSubprocess) -> c_int;
13870 pub fn g_subprocess_get_identifier(subprocess: *mut GSubprocess) -> *const c_char;
13871 pub fn g_subprocess_get_if_exited(subprocess: *mut GSubprocess) -> gboolean;
13872 pub fn g_subprocess_get_if_signaled(subprocess: *mut GSubprocess) -> gboolean;
13873 pub fn g_subprocess_get_status(subprocess: *mut GSubprocess) -> c_int;
13874 pub fn g_subprocess_get_stderr_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
13875 pub fn g_subprocess_get_stdin_pipe(subprocess: *mut GSubprocess) -> *mut GOutputStream;
13876 pub fn g_subprocess_get_stdout_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream;
13877 pub fn g_subprocess_get_successful(subprocess: *mut GSubprocess) -> gboolean;
13878 pub fn g_subprocess_get_term_sig(subprocess: *mut GSubprocess) -> c_int;
13879 pub fn g_subprocess_send_signal(subprocess: *mut GSubprocess, signal_num: c_int);
13880 pub fn g_subprocess_wait(
13881 subprocess: *mut GSubprocess,
13882 cancellable: *mut GCancellable,
13883 error: *mut *mut glib::GError,
13884 ) -> gboolean;
13885 pub fn g_subprocess_wait_async(
13886 subprocess: *mut GSubprocess,
13887 cancellable: *mut GCancellable,
13888 callback: GAsyncReadyCallback,
13889 user_data: gpointer,
13890 );
13891 pub fn g_subprocess_wait_check(
13892 subprocess: *mut GSubprocess,
13893 cancellable: *mut GCancellable,
13894 error: *mut *mut glib::GError,
13895 ) -> gboolean;
13896 pub fn g_subprocess_wait_check_async(
13897 subprocess: *mut GSubprocess,
13898 cancellable: *mut GCancellable,
13899 callback: GAsyncReadyCallback,
13900 user_data: gpointer,
13901 );
13902 pub fn g_subprocess_wait_check_finish(
13903 subprocess: *mut GSubprocess,
13904 result: *mut GAsyncResult,
13905 error: *mut *mut glib::GError,
13906 ) -> gboolean;
13907 pub fn g_subprocess_wait_finish(
13908 subprocess: *mut GSubprocess,
13909 result: *mut GAsyncResult,
13910 error: *mut *mut glib::GError,
13911 ) -> gboolean;
13912
13913 pub fn g_subprocess_launcher_get_type() -> GType;
13917 pub fn g_subprocess_launcher_new(flags: GSubprocessFlags) -> *mut GSubprocessLauncher;
13918 #[cfg(feature = "v2_68")]
13919 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
13920 #[cfg(unix)]
13921 #[cfg_attr(docsrs, doc(cfg(unix)))]
13922 pub fn g_subprocess_launcher_close(self_: *mut GSubprocessLauncher);
13923 pub fn g_subprocess_launcher_getenv(
13924 self_: *mut GSubprocessLauncher,
13925 variable: *const c_char,
13926 ) -> *const c_char;
13927 #[cfg(unix)]
13928 #[cfg_attr(docsrs, doc(cfg(unix)))]
13929 pub fn g_subprocess_launcher_set_child_setup(
13930 self_: *mut GSubprocessLauncher,
13931 child_setup: glib::GSpawnChildSetupFunc,
13932 user_data: gpointer,
13933 destroy_notify: glib::GDestroyNotify,
13934 );
13935 pub fn g_subprocess_launcher_set_cwd(self_: *mut GSubprocessLauncher, cwd: *const c_char);
13936 pub fn g_subprocess_launcher_set_environ(
13937 self_: *mut GSubprocessLauncher,
13938 env: *mut *mut c_char,
13939 );
13940 pub fn g_subprocess_launcher_set_flags(
13941 self_: *mut GSubprocessLauncher,
13942 flags: GSubprocessFlags,
13943 );
13944 #[cfg(unix)]
13945 #[cfg_attr(docsrs, doc(cfg(unix)))]
13946 pub fn g_subprocess_launcher_set_stderr_file_path(
13947 self_: *mut GSubprocessLauncher,
13948 path: *const c_char,
13949 );
13950 #[cfg(unix)]
13951 #[cfg_attr(docsrs, doc(cfg(unix)))]
13952 pub fn g_subprocess_launcher_set_stdin_file_path(
13953 self_: *mut GSubprocessLauncher,
13954 path: *const c_char,
13955 );
13956 #[cfg(unix)]
13957 #[cfg_attr(docsrs, doc(cfg(unix)))]
13958 pub fn g_subprocess_launcher_set_stdout_file_path(
13959 self_: *mut GSubprocessLauncher,
13960 path: *const c_char,
13961 );
13962 pub fn g_subprocess_launcher_setenv(
13963 self_: *mut GSubprocessLauncher,
13964 variable: *const c_char,
13965 value: *const c_char,
13966 overwrite: gboolean,
13967 );
13968 pub fn g_subprocess_launcher_spawn(
13969 self_: *mut GSubprocessLauncher,
13970 error: *mut *mut glib::GError,
13971 argv0: *const c_char,
13972 ...
13973 ) -> *mut GSubprocess;
13974 pub fn g_subprocess_launcher_spawnv(
13975 self_: *mut GSubprocessLauncher,
13976 argv: *const *const c_char,
13977 error: *mut *mut glib::GError,
13978 ) -> *mut GSubprocess;
13979 #[cfg(unix)]
13980 #[cfg_attr(docsrs, doc(cfg(unix)))]
13981 pub fn g_subprocess_launcher_take_fd(
13982 self_: *mut GSubprocessLauncher,
13983 source_fd: c_int,
13984 target_fd: c_int,
13985 );
13986 #[cfg(unix)]
13987 #[cfg_attr(docsrs, doc(cfg(unix)))]
13988 pub fn g_subprocess_launcher_take_stderr_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13989 #[cfg(unix)]
13990 #[cfg_attr(docsrs, doc(cfg(unix)))]
13991 pub fn g_subprocess_launcher_take_stdin_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13992 #[cfg(unix)]
13993 #[cfg_attr(docsrs, doc(cfg(unix)))]
13994 pub fn g_subprocess_launcher_take_stdout_fd(self_: *mut GSubprocessLauncher, fd: c_int);
13995 pub fn g_subprocess_launcher_unsetenv(self_: *mut GSubprocessLauncher, variable: *const c_char);
13996
13997 pub fn g_task_get_type() -> GType;
14001 pub fn g_task_new(
14002 source_object: *mut gobject::GObject,
14003 cancellable: *mut GCancellable,
14004 callback: GAsyncReadyCallback,
14005 callback_data: gpointer,
14006 ) -> *mut GTask;
14007 pub fn g_task_is_valid(
14008 result: *mut GAsyncResult,
14009 source_object: *mut gobject::GObject,
14010 ) -> gboolean;
14011 pub fn g_task_report_error(
14012 source_object: *mut gobject::GObject,
14013 callback: GAsyncReadyCallback,
14014 callback_data: gpointer,
14015 source_tag: gpointer,
14016 error: *mut glib::GError,
14017 );
14018 pub fn g_task_report_new_error(
14019 source_object: *mut gobject::GObject,
14020 callback: GAsyncReadyCallback,
14021 callback_data: gpointer,
14022 source_tag: gpointer,
14023 domain: glib::GQuark,
14024 code: c_int,
14025 format: *const c_char,
14026 ...
14027 );
14028 pub fn g_task_attach_source(
14029 task: *mut GTask,
14030 source: *mut glib::GSource,
14031 callback: glib::GSourceFunc,
14032 );
14033 pub fn g_task_get_cancellable(task: *mut GTask) -> *mut GCancellable;
14034 pub fn g_task_get_check_cancellable(task: *mut GTask) -> gboolean;
14035 pub fn g_task_get_completed(task: *mut GTask) -> gboolean;
14036 pub fn g_task_get_context(task: *mut GTask) -> *mut glib::GMainContext;
14037 #[cfg(feature = "v2_60")]
14038 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14039 pub fn g_task_get_name(task: *mut GTask) -> *const c_char;
14040 pub fn g_task_get_priority(task: *mut GTask) -> c_int;
14041 pub fn g_task_get_return_on_cancel(task: *mut GTask) -> gboolean;
14042 pub fn g_task_get_source_object(task: *mut GTask) -> *mut gobject::GObject;
14043 pub fn g_task_get_source_tag(task: *mut GTask) -> gpointer;
14044 pub fn g_task_get_task_data(task: *mut GTask) -> gpointer;
14045 pub fn g_task_had_error(task: *mut GTask) -> gboolean;
14046 pub fn g_task_propagate_boolean(task: *mut GTask, error: *mut *mut glib::GError) -> gboolean;
14047 pub fn g_task_propagate_int(task: *mut GTask, error: *mut *mut glib::GError) -> ssize_t;
14048 pub fn g_task_propagate_pointer(task: *mut GTask, error: *mut *mut glib::GError) -> gpointer;
14049 #[cfg(feature = "v2_64")]
14050 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
14051 pub fn g_task_propagate_value(
14052 task: *mut GTask,
14053 value: *mut gobject::GValue,
14054 error: *mut *mut glib::GError,
14055 ) -> gboolean;
14056 pub fn g_task_return_boolean(task: *mut GTask, result: gboolean);
14057 pub fn g_task_return_error(task: *mut GTask, error: *mut glib::GError);
14058 pub fn g_task_return_error_if_cancelled(task: *mut GTask) -> gboolean;
14059 pub fn g_task_return_int(task: *mut GTask, result: ssize_t);
14060 pub fn g_task_return_new_error(
14061 task: *mut GTask,
14062 domain: glib::GQuark,
14063 code: c_int,
14064 format: *const c_char,
14065 ...
14066 );
14067 #[cfg(feature = "v2_80")]
14068 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
14069 pub fn g_task_return_new_error_literal(
14070 task: *mut GTask,
14071 domain: glib::GQuark,
14072 code: c_int,
14073 message: *const c_char,
14074 );
14075 pub fn g_task_return_pointer(
14076 task: *mut GTask,
14077 result: gpointer,
14078 result_destroy: glib::GDestroyNotify,
14079 );
14080 #[cfg(feature = "v2_80")]
14081 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
14082 pub fn g_task_return_prefixed_error(
14083 task: *mut GTask,
14084 error: *mut glib::GError,
14085 format: *const c_char,
14086 ...
14087 );
14088 #[cfg(feature = "v2_64")]
14089 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
14090 pub fn g_task_return_value(task: *mut GTask, result: *mut gobject::GValue);
14091 pub fn g_task_run_in_thread(task: *mut GTask, task_func: GTaskThreadFunc);
14092 pub fn g_task_run_in_thread_sync(task: *mut GTask, task_func: GTaskThreadFunc);
14093 pub fn g_task_set_check_cancellable(task: *mut GTask, check_cancellable: gboolean);
14094 #[cfg(feature = "v2_60")]
14095 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14096 pub fn g_task_set_name(task: *mut GTask, name: *const c_char);
14097 pub fn g_task_set_priority(task: *mut GTask, priority: c_int);
14098 pub fn g_task_set_return_on_cancel(task: *mut GTask, return_on_cancel: gboolean) -> gboolean;
14099 pub fn g_task_set_source_tag(task: *mut GTask, source_tag: gpointer);
14100 #[cfg(feature = "v2_76")]
14101 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
14102 pub fn g_task_set_static_name(task: *mut GTask, name: *const c_char);
14103 pub fn g_task_set_task_data(
14104 task: *mut GTask,
14105 task_data: gpointer,
14106 task_data_destroy: glib::GDestroyNotify,
14107 );
14108
14109 pub fn g_tcp_connection_get_type() -> GType;
14113 pub fn g_tcp_connection_get_graceful_disconnect(connection: *mut GTcpConnection) -> gboolean;
14114 pub fn g_tcp_connection_set_graceful_disconnect(
14115 connection: *mut GTcpConnection,
14116 graceful_disconnect: gboolean,
14117 );
14118
14119 pub fn g_tcp_wrapper_connection_get_type() -> GType;
14123 pub fn g_tcp_wrapper_connection_new(
14124 base_io_stream: *mut GIOStream,
14125 socket: *mut GSocket,
14126 ) -> *mut GSocketConnection;
14127 pub fn g_tcp_wrapper_connection_get_base_io_stream(
14128 conn: *mut GTcpWrapperConnection,
14129 ) -> *mut GIOStream;
14130
14131 pub fn g_test_dbus_get_type() -> GType;
14135 pub fn g_test_dbus_new(flags: GTestDBusFlags) -> *mut GTestDBus;
14136 pub fn g_test_dbus_unset();
14137 pub fn g_test_dbus_add_service_dir(self_: *mut GTestDBus, path: *const c_char);
14138 pub fn g_test_dbus_down(self_: *mut GTestDBus);
14139 pub fn g_test_dbus_get_bus_address(self_: *mut GTestDBus) -> *const c_char;
14140 pub fn g_test_dbus_get_flags(self_: *mut GTestDBus) -> GTestDBusFlags;
14141 pub fn g_test_dbus_stop(self_: *mut GTestDBus);
14142 pub fn g_test_dbus_up(self_: *mut GTestDBus);
14143
14144 pub fn g_themed_icon_get_type() -> GType;
14148 pub fn g_themed_icon_new(iconname: *const c_char) -> *mut GThemedIcon;
14149 pub fn g_themed_icon_new_from_names(
14150 iconnames: *mut *mut c_char,
14151 len: c_int,
14152 ) -> *mut GThemedIcon;
14153 pub fn g_themed_icon_new_with_default_fallbacks(iconname: *const c_char) -> *mut GThemedIcon;
14154 pub fn g_themed_icon_append_name(icon: *mut GThemedIcon, iconname: *const c_char);
14155 pub fn g_themed_icon_get_names(icon: *mut GThemedIcon) -> *const *const c_char;
14156 pub fn g_themed_icon_prepend_name(icon: *mut GThemedIcon, iconname: *const c_char);
14157
14158 pub fn g_threaded_resolver_get_type() -> GType;
14162
14163 pub fn g_threaded_socket_service_get_type() -> GType;
14167 pub fn g_threaded_socket_service_new(max_threads: c_int) -> *mut GSocketService;
14168
14169 pub fn g_tls_certificate_get_type() -> GType;
14173 pub fn g_tls_certificate_new_from_file(
14174 file: *const c_char,
14175 error: *mut *mut glib::GError,
14176 ) -> *mut GTlsCertificate;
14177 #[cfg(feature = "v2_72")]
14178 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
14179 pub fn g_tls_certificate_new_from_file_with_password(
14180 file: *const c_char,
14181 password: *const c_char,
14182 error: *mut *mut glib::GError,
14183 ) -> *mut GTlsCertificate;
14184 pub fn g_tls_certificate_new_from_files(
14185 cert_file: *const c_char,
14186 key_file: *const c_char,
14187 error: *mut *mut glib::GError,
14188 ) -> *mut GTlsCertificate;
14189 pub fn g_tls_certificate_new_from_pem(
14190 data: *const c_char,
14191 length: ssize_t,
14192 error: *mut *mut glib::GError,
14193 ) -> *mut GTlsCertificate;
14194 #[cfg(feature = "v2_68")]
14195 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
14196 pub fn g_tls_certificate_new_from_pkcs11_uris(
14197 pkcs11_uri: *const c_char,
14198 private_key_pkcs11_uri: *const c_char,
14199 error: *mut *mut glib::GError,
14200 ) -> *mut GTlsCertificate;
14201 #[cfg(feature = "v2_72")]
14202 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
14203 pub fn g_tls_certificate_new_from_pkcs12(
14204 data: *const u8,
14205 length: size_t,
14206 password: *const c_char,
14207 error: *mut *mut glib::GError,
14208 ) -> *mut GTlsCertificate;
14209 pub fn g_tls_certificate_list_new_from_file(
14210 file: *const c_char,
14211 error: *mut *mut glib::GError,
14212 ) -> *mut glib::GList;
14213 #[cfg(feature = "v2_70")]
14214 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14215 pub fn g_tls_certificate_get_dns_names(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray;
14216 #[cfg(feature = "v2_70")]
14217 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14218 pub fn g_tls_certificate_get_ip_addresses(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray;
14219 pub fn g_tls_certificate_get_issuer(cert: *mut GTlsCertificate) -> *mut GTlsCertificate;
14220 #[cfg(feature = "v2_70")]
14221 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14222 pub fn g_tls_certificate_get_issuer_name(cert: *mut GTlsCertificate) -> *mut c_char;
14223 #[cfg(feature = "v2_70")]
14224 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14225 pub fn g_tls_certificate_get_not_valid_after(
14226 cert: *mut GTlsCertificate,
14227 ) -> *mut glib::GDateTime;
14228 #[cfg(feature = "v2_70")]
14229 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14230 pub fn g_tls_certificate_get_not_valid_before(
14231 cert: *mut GTlsCertificate,
14232 ) -> *mut glib::GDateTime;
14233 #[cfg(feature = "v2_70")]
14234 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14235 pub fn g_tls_certificate_get_subject_name(cert: *mut GTlsCertificate) -> *mut c_char;
14236 pub fn g_tls_certificate_is_same(
14237 cert_one: *mut GTlsCertificate,
14238 cert_two: *mut GTlsCertificate,
14239 ) -> gboolean;
14240 pub fn g_tls_certificate_verify(
14241 cert: *mut GTlsCertificate,
14242 identity: *mut GSocketConnectable,
14243 trusted_ca: *mut GTlsCertificate,
14244 ) -> GTlsCertificateFlags;
14245
14246 pub fn g_tls_connection_get_type() -> GType;
14250 pub fn g_tls_connection_emit_accept_certificate(
14251 conn: *mut GTlsConnection,
14252 peer_cert: *mut GTlsCertificate,
14253 errors: GTlsCertificateFlags,
14254 ) -> gboolean;
14255 pub fn g_tls_connection_get_certificate(conn: *mut GTlsConnection) -> *mut GTlsCertificate;
14256 #[cfg(feature = "v2_66")]
14257 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
14258 pub fn g_tls_connection_get_channel_binding_data(
14259 conn: *mut GTlsConnection,
14260 type_: GTlsChannelBindingType,
14261 data: *mut glib::GByteArray,
14262 error: *mut *mut glib::GError,
14263 ) -> gboolean;
14264 #[cfg(feature = "v2_70")]
14265 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14266 pub fn g_tls_connection_get_ciphersuite_name(conn: *mut GTlsConnection) -> *mut c_char;
14267 pub fn g_tls_connection_get_database(conn: *mut GTlsConnection) -> *mut GTlsDatabase;
14268 pub fn g_tls_connection_get_interaction(conn: *mut GTlsConnection) -> *mut GTlsInteraction;
14269 #[cfg(feature = "v2_60")]
14270 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14271 pub fn g_tls_connection_get_negotiated_protocol(conn: *mut GTlsConnection) -> *const c_char;
14272 pub fn g_tls_connection_get_peer_certificate(conn: *mut GTlsConnection)
14273 -> *mut GTlsCertificate;
14274 pub fn g_tls_connection_get_peer_certificate_errors(
14275 conn: *mut GTlsConnection,
14276 ) -> GTlsCertificateFlags;
14277 #[cfg(feature = "v2_70")]
14278 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
14279 pub fn g_tls_connection_get_protocol_version(conn: *mut GTlsConnection) -> GTlsProtocolVersion;
14280 pub fn g_tls_connection_get_rehandshake_mode(conn: *mut GTlsConnection) -> GTlsRehandshakeMode;
14281 pub fn g_tls_connection_get_require_close_notify(conn: *mut GTlsConnection) -> gboolean;
14282 pub fn g_tls_connection_get_use_system_certdb(conn: *mut GTlsConnection) -> gboolean;
14283 pub fn g_tls_connection_handshake(
14284 conn: *mut GTlsConnection,
14285 cancellable: *mut GCancellable,
14286 error: *mut *mut glib::GError,
14287 ) -> gboolean;
14288 pub fn g_tls_connection_handshake_async(
14289 conn: *mut GTlsConnection,
14290 io_priority: c_int,
14291 cancellable: *mut GCancellable,
14292 callback: GAsyncReadyCallback,
14293 user_data: gpointer,
14294 );
14295 pub fn g_tls_connection_handshake_finish(
14296 conn: *mut GTlsConnection,
14297 result: *mut GAsyncResult,
14298 error: *mut *mut glib::GError,
14299 ) -> gboolean;
14300 #[cfg(feature = "v2_60")]
14301 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14302 pub fn g_tls_connection_set_advertised_protocols(
14303 conn: *mut GTlsConnection,
14304 protocols: *const *const c_char,
14305 );
14306 pub fn g_tls_connection_set_certificate(
14307 conn: *mut GTlsConnection,
14308 certificate: *mut GTlsCertificate,
14309 );
14310 pub fn g_tls_connection_set_database(conn: *mut GTlsConnection, database: *mut GTlsDatabase);
14311 pub fn g_tls_connection_set_interaction(
14312 conn: *mut GTlsConnection,
14313 interaction: *mut GTlsInteraction,
14314 );
14315 pub fn g_tls_connection_set_rehandshake_mode(
14316 conn: *mut GTlsConnection,
14317 mode: GTlsRehandshakeMode,
14318 );
14319 pub fn g_tls_connection_set_require_close_notify(
14320 conn: *mut GTlsConnection,
14321 require_close_notify: gboolean,
14322 );
14323 pub fn g_tls_connection_set_use_system_certdb(
14324 conn: *mut GTlsConnection,
14325 use_system_certdb: gboolean,
14326 );
14327
14328 pub fn g_tls_database_get_type() -> GType;
14332 pub fn g_tls_database_create_certificate_handle(
14333 self_: *mut GTlsDatabase,
14334 certificate: *mut GTlsCertificate,
14335 ) -> *mut c_char;
14336 pub fn g_tls_database_lookup_certificate_for_handle(
14337 self_: *mut GTlsDatabase,
14338 handle: *const c_char,
14339 interaction: *mut GTlsInteraction,
14340 flags: GTlsDatabaseLookupFlags,
14341 cancellable: *mut GCancellable,
14342 error: *mut *mut glib::GError,
14343 ) -> *mut GTlsCertificate;
14344 pub fn g_tls_database_lookup_certificate_for_handle_async(
14345 self_: *mut GTlsDatabase,
14346 handle: *const c_char,
14347 interaction: *mut GTlsInteraction,
14348 flags: GTlsDatabaseLookupFlags,
14349 cancellable: *mut GCancellable,
14350 callback: GAsyncReadyCallback,
14351 user_data: gpointer,
14352 );
14353 pub fn g_tls_database_lookup_certificate_for_handle_finish(
14354 self_: *mut GTlsDatabase,
14355 result: *mut GAsyncResult,
14356 error: *mut *mut glib::GError,
14357 ) -> *mut GTlsCertificate;
14358 pub fn g_tls_database_lookup_certificate_issuer(
14359 self_: *mut GTlsDatabase,
14360 certificate: *mut GTlsCertificate,
14361 interaction: *mut GTlsInteraction,
14362 flags: GTlsDatabaseLookupFlags,
14363 cancellable: *mut GCancellable,
14364 error: *mut *mut glib::GError,
14365 ) -> *mut GTlsCertificate;
14366 pub fn g_tls_database_lookup_certificate_issuer_async(
14367 self_: *mut GTlsDatabase,
14368 certificate: *mut GTlsCertificate,
14369 interaction: *mut GTlsInteraction,
14370 flags: GTlsDatabaseLookupFlags,
14371 cancellable: *mut GCancellable,
14372 callback: GAsyncReadyCallback,
14373 user_data: gpointer,
14374 );
14375 pub fn g_tls_database_lookup_certificate_issuer_finish(
14376 self_: *mut GTlsDatabase,
14377 result: *mut GAsyncResult,
14378 error: *mut *mut glib::GError,
14379 ) -> *mut GTlsCertificate;
14380 pub fn g_tls_database_lookup_certificates_issued_by(
14381 self_: *mut GTlsDatabase,
14382 issuer_raw_dn: *mut glib::GByteArray,
14383 interaction: *mut GTlsInteraction,
14384 flags: GTlsDatabaseLookupFlags,
14385 cancellable: *mut GCancellable,
14386 error: *mut *mut glib::GError,
14387 ) -> *mut glib::GList;
14388 pub fn g_tls_database_lookup_certificates_issued_by_async(
14389 self_: *mut GTlsDatabase,
14390 issuer_raw_dn: *mut glib::GByteArray,
14391 interaction: *mut GTlsInteraction,
14392 flags: GTlsDatabaseLookupFlags,
14393 cancellable: *mut GCancellable,
14394 callback: GAsyncReadyCallback,
14395 user_data: gpointer,
14396 );
14397 pub fn g_tls_database_lookup_certificates_issued_by_finish(
14398 self_: *mut GTlsDatabase,
14399 result: *mut GAsyncResult,
14400 error: *mut *mut glib::GError,
14401 ) -> *mut glib::GList;
14402 pub fn g_tls_database_verify_chain(
14403 self_: *mut GTlsDatabase,
14404 chain: *mut GTlsCertificate,
14405 purpose: *const c_char,
14406 identity: *mut GSocketConnectable,
14407 interaction: *mut GTlsInteraction,
14408 flags: GTlsDatabaseVerifyFlags,
14409 cancellable: *mut GCancellable,
14410 error: *mut *mut glib::GError,
14411 ) -> GTlsCertificateFlags;
14412 pub fn g_tls_database_verify_chain_async(
14413 self_: *mut GTlsDatabase,
14414 chain: *mut GTlsCertificate,
14415 purpose: *const c_char,
14416 identity: *mut GSocketConnectable,
14417 interaction: *mut GTlsInteraction,
14418 flags: GTlsDatabaseVerifyFlags,
14419 cancellable: *mut GCancellable,
14420 callback: GAsyncReadyCallback,
14421 user_data: gpointer,
14422 );
14423 pub fn g_tls_database_verify_chain_finish(
14424 self_: *mut GTlsDatabase,
14425 result: *mut GAsyncResult,
14426 error: *mut *mut glib::GError,
14427 ) -> GTlsCertificateFlags;
14428
14429 pub fn g_tls_interaction_get_type() -> GType;
14433 pub fn g_tls_interaction_ask_password(
14434 interaction: *mut GTlsInteraction,
14435 password: *mut GTlsPassword,
14436 cancellable: *mut GCancellable,
14437 error: *mut *mut glib::GError,
14438 ) -> GTlsInteractionResult;
14439 pub fn g_tls_interaction_ask_password_async(
14440 interaction: *mut GTlsInteraction,
14441 password: *mut GTlsPassword,
14442 cancellable: *mut GCancellable,
14443 callback: GAsyncReadyCallback,
14444 user_data: gpointer,
14445 );
14446 pub fn g_tls_interaction_ask_password_finish(
14447 interaction: *mut GTlsInteraction,
14448 result: *mut GAsyncResult,
14449 error: *mut *mut glib::GError,
14450 ) -> GTlsInteractionResult;
14451 pub fn g_tls_interaction_invoke_ask_password(
14452 interaction: *mut GTlsInteraction,
14453 password: *mut GTlsPassword,
14454 cancellable: *mut GCancellable,
14455 error: *mut *mut glib::GError,
14456 ) -> GTlsInteractionResult;
14457 pub fn g_tls_interaction_invoke_request_certificate(
14458 interaction: *mut GTlsInteraction,
14459 connection: *mut GTlsConnection,
14460 flags: GTlsCertificateRequestFlags,
14461 cancellable: *mut GCancellable,
14462 error: *mut *mut glib::GError,
14463 ) -> GTlsInteractionResult;
14464 pub fn g_tls_interaction_request_certificate(
14465 interaction: *mut GTlsInteraction,
14466 connection: *mut GTlsConnection,
14467 flags: GTlsCertificateRequestFlags,
14468 cancellable: *mut GCancellable,
14469 error: *mut *mut glib::GError,
14470 ) -> GTlsInteractionResult;
14471 pub fn g_tls_interaction_request_certificate_async(
14472 interaction: *mut GTlsInteraction,
14473 connection: *mut GTlsConnection,
14474 flags: GTlsCertificateRequestFlags,
14475 cancellable: *mut GCancellable,
14476 callback: GAsyncReadyCallback,
14477 user_data: gpointer,
14478 );
14479 pub fn g_tls_interaction_request_certificate_finish(
14480 interaction: *mut GTlsInteraction,
14481 result: *mut GAsyncResult,
14482 error: *mut *mut glib::GError,
14483 ) -> GTlsInteractionResult;
14484
14485 pub fn g_tls_password_get_type() -> GType;
14489 pub fn g_tls_password_new(
14490 flags: GTlsPasswordFlags,
14491 description: *const c_char,
14492 ) -> *mut GTlsPassword;
14493 pub fn g_tls_password_get_description(password: *mut GTlsPassword) -> *const c_char;
14494 pub fn g_tls_password_get_flags(password: *mut GTlsPassword) -> GTlsPasswordFlags;
14495 pub fn g_tls_password_get_value(password: *mut GTlsPassword, length: *mut size_t) -> *const u8;
14496 pub fn g_tls_password_get_warning(password: *mut GTlsPassword) -> *const c_char;
14497 pub fn g_tls_password_set_description(password: *mut GTlsPassword, description: *const c_char);
14498 pub fn g_tls_password_set_flags(password: *mut GTlsPassword, flags: GTlsPasswordFlags);
14499 pub fn g_tls_password_set_value(password: *mut GTlsPassword, value: *const u8, length: ssize_t);
14500 pub fn g_tls_password_set_value_full(
14501 password: *mut GTlsPassword,
14502 value: *mut u8,
14503 length: ssize_t,
14504 destroy: glib::GDestroyNotify,
14505 );
14506 pub fn g_tls_password_set_warning(password: *mut GTlsPassword, warning: *const c_char);
14507
14508 pub fn g_unix_connection_get_type() -> GType;
14512 pub fn g_unix_connection_receive_credentials(
14513 connection: *mut GUnixConnection,
14514 cancellable: *mut GCancellable,
14515 error: *mut *mut glib::GError,
14516 ) -> *mut GCredentials;
14517 pub fn g_unix_connection_receive_credentials_async(
14518 connection: *mut GUnixConnection,
14519 cancellable: *mut GCancellable,
14520 callback: GAsyncReadyCallback,
14521 user_data: gpointer,
14522 );
14523 pub fn g_unix_connection_receive_credentials_finish(
14524 connection: *mut GUnixConnection,
14525 result: *mut GAsyncResult,
14526 error: *mut *mut glib::GError,
14527 ) -> *mut GCredentials;
14528 pub fn g_unix_connection_receive_fd(
14529 connection: *mut GUnixConnection,
14530 cancellable: *mut GCancellable,
14531 error: *mut *mut glib::GError,
14532 ) -> c_int;
14533 pub fn g_unix_connection_send_credentials(
14534 connection: *mut GUnixConnection,
14535 cancellable: *mut GCancellable,
14536 error: *mut *mut glib::GError,
14537 ) -> gboolean;
14538 pub fn g_unix_connection_send_credentials_async(
14539 connection: *mut GUnixConnection,
14540 cancellable: *mut GCancellable,
14541 callback: GAsyncReadyCallback,
14542 user_data: gpointer,
14543 );
14544 pub fn g_unix_connection_send_credentials_finish(
14545 connection: *mut GUnixConnection,
14546 result: *mut GAsyncResult,
14547 error: *mut *mut glib::GError,
14548 ) -> gboolean;
14549 pub fn g_unix_connection_send_fd(
14550 connection: *mut GUnixConnection,
14551 fd: c_int,
14552 cancellable: *mut GCancellable,
14553 error: *mut *mut glib::GError,
14554 ) -> gboolean;
14555
14556 pub fn g_unix_credentials_message_get_type() -> GType;
14560 pub fn g_unix_credentials_message_new() -> *mut GSocketControlMessage;
14561 pub fn g_unix_credentials_message_new_with_credentials(
14562 credentials: *mut GCredentials,
14563 ) -> *mut GSocketControlMessage;
14564 pub fn g_unix_credentials_message_is_supported() -> gboolean;
14565 pub fn g_unix_credentials_message_get_credentials(
14566 message: *mut GUnixCredentialsMessage,
14567 ) -> *mut GCredentials;
14568
14569 pub fn g_unix_fd_list_get_type() -> GType;
14573 pub fn g_unix_fd_list_new() -> *mut GUnixFDList;
14574 pub fn g_unix_fd_list_new_from_array(fds: *const c_int, n_fds: c_int) -> *mut GUnixFDList;
14575 pub fn g_unix_fd_list_append(
14576 list: *mut GUnixFDList,
14577 fd: c_int,
14578 error: *mut *mut glib::GError,
14579 ) -> c_int;
14580 pub fn g_unix_fd_list_get(
14581 list: *mut GUnixFDList,
14582 index_: c_int,
14583 error: *mut *mut glib::GError,
14584 ) -> c_int;
14585 pub fn g_unix_fd_list_get_length(list: *mut GUnixFDList) -> c_int;
14586 pub fn g_unix_fd_list_peek_fds(list: *mut GUnixFDList, length: *mut c_int) -> *const c_int;
14587 pub fn g_unix_fd_list_steal_fds(list: *mut GUnixFDList, length: *mut c_int) -> *mut c_int;
14588
14589 pub fn g_unix_socket_address_get_type() -> GType;
14593 pub fn g_unix_socket_address_new(path: *const c_char) -> *mut GSocketAddress;
14594 pub fn g_unix_socket_address_new_abstract(
14595 path: *const c_char,
14596 path_len: c_int,
14597 ) -> *mut GSocketAddress;
14598 pub fn g_unix_socket_address_new_with_type(
14599 path: *const c_char,
14600 path_len: c_int,
14601 type_: GUnixSocketAddressType,
14602 ) -> *mut GSocketAddress;
14603 pub fn g_unix_socket_address_abstract_names_supported() -> gboolean;
14604 pub fn g_unix_socket_address_get_address_type(
14605 address: *mut GUnixSocketAddress,
14606 ) -> GUnixSocketAddressType;
14607 pub fn g_unix_socket_address_get_is_abstract(address: *mut GUnixSocketAddress) -> gboolean;
14608 pub fn g_unix_socket_address_get_path(address: *mut GUnixSocketAddress) -> *const c_char;
14609 pub fn g_unix_socket_address_get_path_len(address: *mut GUnixSocketAddress) -> size_t;
14610
14611 pub fn g_vfs_get_type() -> GType;
14615 pub fn g_vfs_get_default() -> *mut GVfs;
14616 pub fn g_vfs_get_local() -> *mut GVfs;
14617 pub fn g_vfs_get_file_for_path(vfs: *mut GVfs, path: *const c_char) -> *mut GFile;
14618 pub fn g_vfs_get_file_for_uri(vfs: *mut GVfs, uri: *const c_char) -> *mut GFile;
14619 pub fn g_vfs_get_supported_uri_schemes(vfs: *mut GVfs) -> *const *const c_char;
14620 pub fn g_vfs_is_active(vfs: *mut GVfs) -> gboolean;
14621 pub fn g_vfs_parse_name(vfs: *mut GVfs, parse_name: *const c_char) -> *mut GFile;
14622 pub fn g_vfs_register_uri_scheme(
14623 vfs: *mut GVfs,
14624 scheme: *const c_char,
14625 uri_func: GVfsFileLookupFunc,
14626 uri_data: gpointer,
14627 uri_destroy: glib::GDestroyNotify,
14628 parse_name_func: GVfsFileLookupFunc,
14629 parse_name_data: gpointer,
14630 parse_name_destroy: glib::GDestroyNotify,
14631 ) -> gboolean;
14632 pub fn g_vfs_unregister_uri_scheme(vfs: *mut GVfs, scheme: *const c_char) -> gboolean;
14633
14634 pub fn g_volume_monitor_get_type() -> GType;
14638 pub fn g_volume_monitor_adopt_orphan_mount(mount: *mut GMount) -> *mut GVolume;
14639 pub fn g_volume_monitor_get() -> *mut GVolumeMonitor;
14640 pub fn g_volume_monitor_get_connected_drives(
14641 volume_monitor: *mut GVolumeMonitor,
14642 ) -> *mut glib::GList;
14643 pub fn g_volume_monitor_get_mount_for_uuid(
14644 volume_monitor: *mut GVolumeMonitor,
14645 uuid: *const c_char,
14646 ) -> *mut GMount;
14647 pub fn g_volume_monitor_get_mounts(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
14648 pub fn g_volume_monitor_get_volume_for_uuid(
14649 volume_monitor: *mut GVolumeMonitor,
14650 uuid: *const c_char,
14651 ) -> *mut GVolume;
14652 pub fn g_volume_monitor_get_volumes(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList;
14653
14654 pub fn g_zlib_compressor_get_type() -> GType;
14658 pub fn g_zlib_compressor_new(
14659 format: GZlibCompressorFormat,
14660 level: c_int,
14661 ) -> *mut GZlibCompressor;
14662 pub fn g_zlib_compressor_get_file_info(compressor: *mut GZlibCompressor) -> *mut GFileInfo;
14663 #[cfg(feature = "v2_86")]
14664 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
14665 pub fn g_zlib_compressor_get_os(compressor: *mut GZlibCompressor) -> c_int;
14666 pub fn g_zlib_compressor_set_file_info(
14667 compressor: *mut GZlibCompressor,
14668 file_info: *mut GFileInfo,
14669 );
14670 #[cfg(feature = "v2_86")]
14671 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
14672 pub fn g_zlib_compressor_set_os(compressor: *mut GZlibCompressor, os: c_int);
14673
14674 pub fn g_zlib_decompressor_get_type() -> GType;
14678 pub fn g_zlib_decompressor_new(format: GZlibCompressorFormat) -> *mut GZlibDecompressor;
14679 pub fn g_zlib_decompressor_get_file_info(
14680 decompressor: *mut GZlibDecompressor,
14681 ) -> *mut GFileInfo;
14682
14683 pub fn g_action_get_type() -> GType;
14687 pub fn g_action_name_is_valid(action_name: *const c_char) -> gboolean;
14688 pub fn g_action_parse_detailed_name(
14689 detailed_name: *const c_char,
14690 action_name: *mut *mut c_char,
14691 target_value: *mut *mut glib::GVariant,
14692 error: *mut *mut glib::GError,
14693 ) -> gboolean;
14694 pub fn g_action_print_detailed_name(
14695 action_name: *const c_char,
14696 target_value: *mut glib::GVariant,
14697 ) -> *mut c_char;
14698 pub fn g_action_activate(action: *mut GAction, parameter: *mut glib::GVariant);
14699 pub fn g_action_change_state(action: *mut GAction, value: *mut glib::GVariant);
14700 pub fn g_action_get_enabled(action: *mut GAction) -> gboolean;
14701 pub fn g_action_get_name(action: *mut GAction) -> *const c_char;
14702 pub fn g_action_get_parameter_type(action: *mut GAction) -> *const glib::GVariantType;
14703 pub fn g_action_get_state(action: *mut GAction) -> *mut glib::GVariant;
14704 pub fn g_action_get_state_hint(action: *mut GAction) -> *mut glib::GVariant;
14705 pub fn g_action_get_state_type(action: *mut GAction) -> *const glib::GVariantType;
14706
14707 pub fn g_action_group_get_type() -> GType;
14711 pub fn g_action_group_action_added(action_group: *mut GActionGroup, action_name: *const c_char);
14712 pub fn g_action_group_action_enabled_changed(
14713 action_group: *mut GActionGroup,
14714 action_name: *const c_char,
14715 enabled: gboolean,
14716 );
14717 pub fn g_action_group_action_removed(
14718 action_group: *mut GActionGroup,
14719 action_name: *const c_char,
14720 );
14721 pub fn g_action_group_action_state_changed(
14722 action_group: *mut GActionGroup,
14723 action_name: *const c_char,
14724 state: *mut glib::GVariant,
14725 );
14726 pub fn g_action_group_activate_action(
14727 action_group: *mut GActionGroup,
14728 action_name: *const c_char,
14729 parameter: *mut glib::GVariant,
14730 );
14731 pub fn g_action_group_change_action_state(
14732 action_group: *mut GActionGroup,
14733 action_name: *const c_char,
14734 value: *mut glib::GVariant,
14735 );
14736 pub fn g_action_group_get_action_enabled(
14737 action_group: *mut GActionGroup,
14738 action_name: *const c_char,
14739 ) -> gboolean;
14740 pub fn g_action_group_get_action_parameter_type(
14741 action_group: *mut GActionGroup,
14742 action_name: *const c_char,
14743 ) -> *const glib::GVariantType;
14744 pub fn g_action_group_get_action_state(
14745 action_group: *mut GActionGroup,
14746 action_name: *const c_char,
14747 ) -> *mut glib::GVariant;
14748 pub fn g_action_group_get_action_state_hint(
14749 action_group: *mut GActionGroup,
14750 action_name: *const c_char,
14751 ) -> *mut glib::GVariant;
14752 pub fn g_action_group_get_action_state_type(
14753 action_group: *mut GActionGroup,
14754 action_name: *const c_char,
14755 ) -> *const glib::GVariantType;
14756 pub fn g_action_group_has_action(
14757 action_group: *mut GActionGroup,
14758 action_name: *const c_char,
14759 ) -> gboolean;
14760 pub fn g_action_group_list_actions(action_group: *mut GActionGroup) -> *mut *mut c_char;
14761 pub fn g_action_group_query_action(
14762 action_group: *mut GActionGroup,
14763 action_name: *const c_char,
14764 enabled: *mut gboolean,
14765 parameter_type: *mut *const glib::GVariantType,
14766 state_type: *mut *const glib::GVariantType,
14767 state_hint: *mut *mut glib::GVariant,
14768 state: *mut *mut glib::GVariant,
14769 ) -> gboolean;
14770
14771 pub fn g_action_map_get_type() -> GType;
14775 pub fn g_action_map_add_action(action_map: *mut GActionMap, action: *mut GAction);
14776 pub fn g_action_map_add_action_entries(
14777 action_map: *mut GActionMap,
14778 entries: *const GActionEntry,
14779 n_entries: c_int,
14780 user_data: gpointer,
14781 );
14782 pub fn g_action_map_lookup_action(
14783 action_map: *mut GActionMap,
14784 action_name: *const c_char,
14785 ) -> *mut GAction;
14786 pub fn g_action_map_remove_action(action_map: *mut GActionMap, action_name: *const c_char);
14787 #[cfg(feature = "v2_78")]
14788 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
14789 pub fn g_action_map_remove_action_entries(
14790 action_map: *mut GActionMap,
14791 entries: *const GActionEntry,
14792 n_entries: c_int,
14793 );
14794
14795 pub fn g_app_info_get_type() -> GType;
14799 pub fn g_app_info_create_from_commandline(
14800 commandline: *const c_char,
14801 application_name: *const c_char,
14802 flags: GAppInfoCreateFlags,
14803 error: *mut *mut glib::GError,
14804 ) -> *mut GAppInfo;
14805 pub fn g_app_info_get_all() -> *mut glib::GList;
14806 pub fn g_app_info_get_all_for_type(content_type: *const c_char) -> *mut glib::GList;
14807 pub fn g_app_info_get_default_for_type(
14808 content_type: *const c_char,
14809 must_support_uris: gboolean,
14810 ) -> *mut GAppInfo;
14811 #[cfg(feature = "v2_74")]
14812 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
14813 pub fn g_app_info_get_default_for_type_async(
14814 content_type: *const c_char,
14815 must_support_uris: gboolean,
14816 cancellable: *mut GCancellable,
14817 callback: GAsyncReadyCallback,
14818 user_data: gpointer,
14819 );
14820 #[cfg(feature = "v2_74")]
14821 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
14822 pub fn g_app_info_get_default_for_type_finish(
14823 result: *mut GAsyncResult,
14824 error: *mut *mut glib::GError,
14825 ) -> *mut GAppInfo;
14826 pub fn g_app_info_get_default_for_uri_scheme(uri_scheme: *const c_char) -> *mut GAppInfo;
14827 #[cfg(feature = "v2_74")]
14828 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
14829 pub fn g_app_info_get_default_for_uri_scheme_async(
14830 uri_scheme: *const c_char,
14831 cancellable: *mut GCancellable,
14832 callback: GAsyncReadyCallback,
14833 user_data: gpointer,
14834 );
14835 #[cfg(feature = "v2_74")]
14836 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
14837 pub fn g_app_info_get_default_for_uri_scheme_finish(
14838 result: *mut GAsyncResult,
14839 error: *mut *mut glib::GError,
14840 ) -> *mut GAppInfo;
14841 pub fn g_app_info_get_fallback_for_type(content_type: *const c_char) -> *mut glib::GList;
14842 pub fn g_app_info_get_recommended_for_type(content_type: *const c_char) -> *mut glib::GList;
14843 pub fn g_app_info_launch_default_for_uri(
14844 uri: *const c_char,
14845 context: *mut GAppLaunchContext,
14846 error: *mut *mut glib::GError,
14847 ) -> gboolean;
14848 pub fn g_app_info_launch_default_for_uri_async(
14849 uri: *const c_char,
14850 context: *mut GAppLaunchContext,
14851 cancellable: *mut GCancellable,
14852 callback: GAsyncReadyCallback,
14853 user_data: gpointer,
14854 );
14855 pub fn g_app_info_launch_default_for_uri_finish(
14856 result: *mut GAsyncResult,
14857 error: *mut *mut glib::GError,
14858 ) -> gboolean;
14859 pub fn g_app_info_reset_type_associations(content_type: *const c_char);
14860 pub fn g_app_info_add_supports_type(
14861 appinfo: *mut GAppInfo,
14862 content_type: *const c_char,
14863 error: *mut *mut glib::GError,
14864 ) -> gboolean;
14865 pub fn g_app_info_can_delete(appinfo: *mut GAppInfo) -> gboolean;
14866 pub fn g_app_info_can_remove_supports_type(appinfo: *mut GAppInfo) -> gboolean;
14867 pub fn g_app_info_delete(appinfo: *mut GAppInfo) -> gboolean;
14868 pub fn g_app_info_dup(appinfo: *mut GAppInfo) -> *mut GAppInfo;
14869 pub fn g_app_info_equal(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean;
14870 pub fn g_app_info_get_commandline(appinfo: *mut GAppInfo) -> *const c_char;
14871 pub fn g_app_info_get_description(appinfo: *mut GAppInfo) -> *const c_char;
14872 pub fn g_app_info_get_display_name(appinfo: *mut GAppInfo) -> *const c_char;
14873 pub fn g_app_info_get_executable(appinfo: *mut GAppInfo) -> *const c_char;
14874 pub fn g_app_info_get_icon(appinfo: *mut GAppInfo) -> *mut GIcon;
14875 pub fn g_app_info_get_id(appinfo: *mut GAppInfo) -> *const c_char;
14876 pub fn g_app_info_get_name(appinfo: *mut GAppInfo) -> *const c_char;
14877 pub fn g_app_info_get_supported_types(appinfo: *mut GAppInfo) -> *mut *const c_char;
14878 pub fn g_app_info_launch(
14879 appinfo: *mut GAppInfo,
14880 files: *mut glib::GList,
14881 context: *mut GAppLaunchContext,
14882 error: *mut *mut glib::GError,
14883 ) -> gboolean;
14884 pub fn g_app_info_launch_uris(
14885 appinfo: *mut GAppInfo,
14886 uris: *mut glib::GList,
14887 context: *mut GAppLaunchContext,
14888 error: *mut *mut glib::GError,
14889 ) -> gboolean;
14890 #[cfg(feature = "v2_60")]
14891 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14892 pub fn g_app_info_launch_uris_async(
14893 appinfo: *mut GAppInfo,
14894 uris: *mut glib::GList,
14895 context: *mut GAppLaunchContext,
14896 cancellable: *mut GCancellable,
14897 callback: GAsyncReadyCallback,
14898 user_data: gpointer,
14899 );
14900 #[cfg(feature = "v2_60")]
14901 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
14902 pub fn g_app_info_launch_uris_finish(
14903 appinfo: *mut GAppInfo,
14904 result: *mut GAsyncResult,
14905 error: *mut *mut glib::GError,
14906 ) -> gboolean;
14907 pub fn g_app_info_remove_supports_type(
14908 appinfo: *mut GAppInfo,
14909 content_type: *const c_char,
14910 error: *mut *mut glib::GError,
14911 ) -> gboolean;
14912 pub fn g_app_info_set_as_default_for_extension(
14913 appinfo: *mut GAppInfo,
14914 extension: *const c_char,
14915 error: *mut *mut glib::GError,
14916 ) -> gboolean;
14917 pub fn g_app_info_set_as_default_for_type(
14918 appinfo: *mut GAppInfo,
14919 content_type: *const c_char,
14920 error: *mut *mut glib::GError,
14921 ) -> gboolean;
14922 pub fn g_app_info_set_as_last_used_for_type(
14923 appinfo: *mut GAppInfo,
14924 content_type: *const c_char,
14925 error: *mut *mut glib::GError,
14926 ) -> gboolean;
14927 pub fn g_app_info_should_show(appinfo: *mut GAppInfo) -> gboolean;
14928 pub fn g_app_info_supports_files(appinfo: *mut GAppInfo) -> gboolean;
14929 pub fn g_app_info_supports_uris(appinfo: *mut GAppInfo) -> gboolean;
14930
14931 pub fn g_async_initable_get_type() -> GType;
14935 pub fn g_async_initable_new_async(
14936 object_type: GType,
14937 io_priority: c_int,
14938 cancellable: *mut GCancellable,
14939 callback: GAsyncReadyCallback,
14940 user_data: gpointer,
14941 first_property_name: *const c_char,
14942 ...
14943 );
14944 pub fn g_async_initable_newv_async(
14946 object_type: GType,
14947 n_parameters: c_uint,
14948 parameters: *mut gobject::GParameter,
14949 io_priority: c_int,
14950 cancellable: *mut GCancellable,
14951 callback: GAsyncReadyCallback,
14952 user_data: gpointer,
14953 );
14954 pub fn g_async_initable_init_async(
14955 initable: *mut GAsyncInitable,
14956 io_priority: c_int,
14957 cancellable: *mut GCancellable,
14958 callback: GAsyncReadyCallback,
14959 user_data: gpointer,
14960 );
14961 pub fn g_async_initable_init_finish(
14962 initable: *mut GAsyncInitable,
14963 res: *mut GAsyncResult,
14964 error: *mut *mut glib::GError,
14965 ) -> gboolean;
14966 pub fn g_async_initable_new_finish(
14967 initable: *mut GAsyncInitable,
14968 res: *mut GAsyncResult,
14969 error: *mut *mut glib::GError,
14970 ) -> *mut gobject::GObject;
14971
14972 pub fn g_async_result_get_type() -> GType;
14976 pub fn g_async_result_get_source_object(res: *mut GAsyncResult) -> *mut gobject::GObject;
14977 pub fn g_async_result_get_user_data(res: *mut GAsyncResult) -> gpointer;
14978 pub fn g_async_result_is_tagged(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean;
14979 pub fn g_async_result_legacy_propagate_error(
14980 res: *mut GAsyncResult,
14981 error: *mut *mut glib::GError,
14982 ) -> gboolean;
14983
14984 pub fn g_converter_get_type() -> GType;
14988 pub fn g_converter_convert(
14989 converter: *mut GConverter,
14990 inbuf: *mut u8,
14991 inbuf_size: size_t,
14992 outbuf: *mut u8,
14993 outbuf_size: size_t,
14994 flags: GConverterFlags,
14995 bytes_read: *mut size_t,
14996 bytes_written: *mut size_t,
14997 error: *mut *mut glib::GError,
14998 ) -> GConverterResult;
14999 #[cfg(feature = "v2_82")]
15000 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
15001 pub fn g_converter_convert_bytes(
15002 converter: *mut GConverter,
15003 bytes: *mut glib::GBytes,
15004 error: *mut *mut glib::GError,
15005 ) -> *mut glib::GBytes;
15006 pub fn g_converter_reset(converter: *mut GConverter);
15007
15008 pub fn g_dbus_interface_get_type() -> GType;
15012 pub fn g_dbus_interface_dup_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
15013 pub fn g_dbus_interface_get_info(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo;
15014 pub fn g_dbus_interface_get_object(interface_: *mut GDBusInterface) -> *mut GDBusObject;
15015 pub fn g_dbus_interface_set_object(interface_: *mut GDBusInterface, object: *mut GDBusObject);
15016
15017 pub fn g_dbus_object_get_type() -> GType;
15021 pub fn g_dbus_object_get_interface(
15022 object: *mut GDBusObject,
15023 interface_name: *const c_char,
15024 ) -> *mut GDBusInterface;
15025 pub fn g_dbus_object_get_interfaces(object: *mut GDBusObject) -> *mut glib::GList;
15026 pub fn g_dbus_object_get_object_path(object: *mut GDBusObject) -> *const c_char;
15027
15028 pub fn g_dbus_object_manager_get_type() -> GType;
15032 pub fn g_dbus_object_manager_get_interface(
15033 manager: *mut GDBusObjectManager,
15034 object_path: *const c_char,
15035 interface_name: *const c_char,
15036 ) -> *mut GDBusInterface;
15037 pub fn g_dbus_object_manager_get_object(
15038 manager: *mut GDBusObjectManager,
15039 object_path: *const c_char,
15040 ) -> *mut GDBusObject;
15041 pub fn g_dbus_object_manager_get_object_path(manager: *mut GDBusObjectManager)
15042 -> *const c_char;
15043 pub fn g_dbus_object_manager_get_objects(manager: *mut GDBusObjectManager) -> *mut glib::GList;
15044
15045 pub fn g_datagram_based_get_type() -> GType;
15049 pub fn g_datagram_based_condition_check(
15050 datagram_based: *mut GDatagramBased,
15051 condition: glib::GIOCondition,
15052 ) -> glib::GIOCondition;
15053 pub fn g_datagram_based_condition_wait(
15054 datagram_based: *mut GDatagramBased,
15055 condition: glib::GIOCondition,
15056 timeout: i64,
15057 cancellable: *mut GCancellable,
15058 error: *mut *mut glib::GError,
15059 ) -> gboolean;
15060 pub fn g_datagram_based_create_source(
15061 datagram_based: *mut GDatagramBased,
15062 condition: glib::GIOCondition,
15063 cancellable: *mut GCancellable,
15064 ) -> *mut glib::GSource;
15065 pub fn g_datagram_based_receive_messages(
15066 datagram_based: *mut GDatagramBased,
15067 messages: *mut GInputMessage,
15068 num_messages: c_uint,
15069 flags: c_int,
15070 timeout: i64,
15071 cancellable: *mut GCancellable,
15072 error: *mut *mut glib::GError,
15073 ) -> c_int;
15074 pub fn g_datagram_based_send_messages(
15075 datagram_based: *mut GDatagramBased,
15076 messages: *mut GOutputMessage,
15077 num_messages: c_uint,
15078 flags: c_int,
15079 timeout: i64,
15080 cancellable: *mut GCancellable,
15081 error: *mut *mut glib::GError,
15082 ) -> c_int;
15083
15084 #[cfg(feature = "v2_72")]
15088 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15089 pub fn g_debug_controller_get_type() -> GType;
15090 #[cfg(feature = "v2_72")]
15091 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15092 pub fn g_debug_controller_get_debug_enabled(self_: *mut GDebugController) -> gboolean;
15093 #[cfg(feature = "v2_72")]
15094 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15095 pub fn g_debug_controller_set_debug_enabled(
15096 self_: *mut GDebugController,
15097 debug_enabled: gboolean,
15098 );
15099
15100 pub fn g_drive_get_type() -> GType;
15104 pub fn g_drive_can_eject(drive: *mut GDrive) -> gboolean;
15105 pub fn g_drive_can_poll_for_media(drive: *mut GDrive) -> gboolean;
15106 pub fn g_drive_can_start(drive: *mut GDrive) -> gboolean;
15107 pub fn g_drive_can_start_degraded(drive: *mut GDrive) -> gboolean;
15108 pub fn g_drive_can_stop(drive: *mut GDrive) -> gboolean;
15109 pub fn g_drive_eject(
15110 drive: *mut GDrive,
15111 flags: GMountUnmountFlags,
15112 cancellable: *mut GCancellable,
15113 callback: GAsyncReadyCallback,
15114 user_data: gpointer,
15115 );
15116 pub fn g_drive_eject_finish(
15117 drive: *mut GDrive,
15118 result: *mut GAsyncResult,
15119 error: *mut *mut glib::GError,
15120 ) -> gboolean;
15121 pub fn g_drive_eject_with_operation(
15122 drive: *mut GDrive,
15123 flags: GMountUnmountFlags,
15124 mount_operation: *mut GMountOperation,
15125 cancellable: *mut GCancellable,
15126 callback: GAsyncReadyCallback,
15127 user_data: gpointer,
15128 );
15129 pub fn g_drive_eject_with_operation_finish(
15130 drive: *mut GDrive,
15131 result: *mut GAsyncResult,
15132 error: *mut *mut glib::GError,
15133 ) -> gboolean;
15134 pub fn g_drive_enumerate_identifiers(drive: *mut GDrive) -> *mut *mut c_char;
15135 pub fn g_drive_get_icon(drive: *mut GDrive) -> *mut GIcon;
15136 pub fn g_drive_get_identifier(drive: *mut GDrive, kind: *const c_char) -> *mut c_char;
15137 pub fn g_drive_get_name(drive: *mut GDrive) -> *mut c_char;
15138 pub fn g_drive_get_sort_key(drive: *mut GDrive) -> *const c_char;
15139 pub fn g_drive_get_start_stop_type(drive: *mut GDrive) -> GDriveStartStopType;
15140 pub fn g_drive_get_symbolic_icon(drive: *mut GDrive) -> *mut GIcon;
15141 pub fn g_drive_get_volumes(drive: *mut GDrive) -> *mut glib::GList;
15142 pub fn g_drive_has_media(drive: *mut GDrive) -> gboolean;
15143 pub fn g_drive_has_volumes(drive: *mut GDrive) -> gboolean;
15144 pub fn g_drive_is_media_check_automatic(drive: *mut GDrive) -> gboolean;
15145 pub fn g_drive_is_media_removable(drive: *mut GDrive) -> gboolean;
15146 pub fn g_drive_is_removable(drive: *mut GDrive) -> gboolean;
15147 pub fn g_drive_poll_for_media(
15148 drive: *mut GDrive,
15149 cancellable: *mut GCancellable,
15150 callback: GAsyncReadyCallback,
15151 user_data: gpointer,
15152 );
15153 pub fn g_drive_poll_for_media_finish(
15154 drive: *mut GDrive,
15155 result: *mut GAsyncResult,
15156 error: *mut *mut glib::GError,
15157 ) -> gboolean;
15158 pub fn g_drive_start(
15159 drive: *mut GDrive,
15160 flags: GDriveStartFlags,
15161 mount_operation: *mut GMountOperation,
15162 cancellable: *mut GCancellable,
15163 callback: GAsyncReadyCallback,
15164 user_data: gpointer,
15165 );
15166 pub fn g_drive_start_finish(
15167 drive: *mut GDrive,
15168 result: *mut GAsyncResult,
15169 error: *mut *mut glib::GError,
15170 ) -> gboolean;
15171 pub fn g_drive_stop(
15172 drive: *mut GDrive,
15173 flags: GMountUnmountFlags,
15174 mount_operation: *mut GMountOperation,
15175 cancellable: *mut GCancellable,
15176 callback: GAsyncReadyCallback,
15177 user_data: gpointer,
15178 );
15179 pub fn g_drive_stop_finish(
15180 drive: *mut GDrive,
15181 result: *mut GAsyncResult,
15182 error: *mut *mut glib::GError,
15183 ) -> gboolean;
15184
15185 pub fn g_dtls_client_connection_get_type() -> GType;
15189 pub fn g_dtls_client_connection_new(
15190 base_socket: *mut GDatagramBased,
15191 server_identity: *mut GSocketConnectable,
15192 error: *mut *mut glib::GError,
15193 ) -> *mut GDtlsClientConnection;
15194 pub fn g_dtls_client_connection_get_accepted_cas(
15195 conn: *mut GDtlsClientConnection,
15196 ) -> *mut glib::GList;
15197 pub fn g_dtls_client_connection_get_server_identity(
15198 conn: *mut GDtlsClientConnection,
15199 ) -> *mut GSocketConnectable;
15200 pub fn g_dtls_client_connection_get_validation_flags(
15201 conn: *mut GDtlsClientConnection,
15202 ) -> GTlsCertificateFlags;
15203 pub fn g_dtls_client_connection_set_server_identity(
15204 conn: *mut GDtlsClientConnection,
15205 identity: *mut GSocketConnectable,
15206 );
15207 pub fn g_dtls_client_connection_set_validation_flags(
15208 conn: *mut GDtlsClientConnection,
15209 flags: GTlsCertificateFlags,
15210 );
15211
15212 pub fn g_dtls_connection_get_type() -> GType;
15216 pub fn g_dtls_connection_close(
15217 conn: *mut GDtlsConnection,
15218 cancellable: *mut GCancellable,
15219 error: *mut *mut glib::GError,
15220 ) -> gboolean;
15221 pub fn g_dtls_connection_close_async(
15222 conn: *mut GDtlsConnection,
15223 io_priority: c_int,
15224 cancellable: *mut GCancellable,
15225 callback: GAsyncReadyCallback,
15226 user_data: gpointer,
15227 );
15228 pub fn g_dtls_connection_close_finish(
15229 conn: *mut GDtlsConnection,
15230 result: *mut GAsyncResult,
15231 error: *mut *mut glib::GError,
15232 ) -> gboolean;
15233 pub fn g_dtls_connection_emit_accept_certificate(
15234 conn: *mut GDtlsConnection,
15235 peer_cert: *mut GTlsCertificate,
15236 errors: GTlsCertificateFlags,
15237 ) -> gboolean;
15238 pub fn g_dtls_connection_get_certificate(conn: *mut GDtlsConnection) -> *mut GTlsCertificate;
15239 #[cfg(feature = "v2_66")]
15240 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
15241 pub fn g_dtls_connection_get_channel_binding_data(
15242 conn: *mut GDtlsConnection,
15243 type_: GTlsChannelBindingType,
15244 data: *mut glib::GByteArray,
15245 error: *mut *mut glib::GError,
15246 ) -> gboolean;
15247 #[cfg(feature = "v2_70")]
15248 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
15249 pub fn g_dtls_connection_get_ciphersuite_name(conn: *mut GDtlsConnection) -> *mut c_char;
15250 pub fn g_dtls_connection_get_database(conn: *mut GDtlsConnection) -> *mut GTlsDatabase;
15251 pub fn g_dtls_connection_get_interaction(conn: *mut GDtlsConnection) -> *mut GTlsInteraction;
15252 #[cfg(feature = "v2_60")]
15253 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15254 pub fn g_dtls_connection_get_negotiated_protocol(conn: *mut GDtlsConnection) -> *const c_char;
15255 pub fn g_dtls_connection_get_peer_certificate(
15256 conn: *mut GDtlsConnection,
15257 ) -> *mut GTlsCertificate;
15258 pub fn g_dtls_connection_get_peer_certificate_errors(
15259 conn: *mut GDtlsConnection,
15260 ) -> GTlsCertificateFlags;
15261 #[cfg(feature = "v2_70")]
15262 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
15263 pub fn g_dtls_connection_get_protocol_version(
15264 conn: *mut GDtlsConnection,
15265 ) -> GTlsProtocolVersion;
15266 pub fn g_dtls_connection_get_rehandshake_mode(
15267 conn: *mut GDtlsConnection,
15268 ) -> GTlsRehandshakeMode;
15269 pub fn g_dtls_connection_get_require_close_notify(conn: *mut GDtlsConnection) -> gboolean;
15270 pub fn g_dtls_connection_handshake(
15271 conn: *mut GDtlsConnection,
15272 cancellable: *mut GCancellable,
15273 error: *mut *mut glib::GError,
15274 ) -> gboolean;
15275 pub fn g_dtls_connection_handshake_async(
15276 conn: *mut GDtlsConnection,
15277 io_priority: c_int,
15278 cancellable: *mut GCancellable,
15279 callback: GAsyncReadyCallback,
15280 user_data: gpointer,
15281 );
15282 pub fn g_dtls_connection_handshake_finish(
15283 conn: *mut GDtlsConnection,
15284 result: *mut GAsyncResult,
15285 error: *mut *mut glib::GError,
15286 ) -> gboolean;
15287 #[cfg(feature = "v2_60")]
15288 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15289 pub fn g_dtls_connection_set_advertised_protocols(
15290 conn: *mut GDtlsConnection,
15291 protocols: *const *const c_char,
15292 );
15293 pub fn g_dtls_connection_set_certificate(
15294 conn: *mut GDtlsConnection,
15295 certificate: *mut GTlsCertificate,
15296 );
15297 pub fn g_dtls_connection_set_database(conn: *mut GDtlsConnection, database: *mut GTlsDatabase);
15298 pub fn g_dtls_connection_set_interaction(
15299 conn: *mut GDtlsConnection,
15300 interaction: *mut GTlsInteraction,
15301 );
15302 pub fn g_dtls_connection_set_rehandshake_mode(
15303 conn: *mut GDtlsConnection,
15304 mode: GTlsRehandshakeMode,
15305 );
15306 pub fn g_dtls_connection_set_require_close_notify(
15307 conn: *mut GDtlsConnection,
15308 require_close_notify: gboolean,
15309 );
15310 pub fn g_dtls_connection_shutdown(
15311 conn: *mut GDtlsConnection,
15312 shutdown_read: gboolean,
15313 shutdown_write: gboolean,
15314 cancellable: *mut GCancellable,
15315 error: *mut *mut glib::GError,
15316 ) -> gboolean;
15317 pub fn g_dtls_connection_shutdown_async(
15318 conn: *mut GDtlsConnection,
15319 shutdown_read: gboolean,
15320 shutdown_write: gboolean,
15321 io_priority: c_int,
15322 cancellable: *mut GCancellable,
15323 callback: GAsyncReadyCallback,
15324 user_data: gpointer,
15325 );
15326 pub fn g_dtls_connection_shutdown_finish(
15327 conn: *mut GDtlsConnection,
15328 result: *mut GAsyncResult,
15329 error: *mut *mut glib::GError,
15330 ) -> gboolean;
15331
15332 pub fn g_dtls_server_connection_get_type() -> GType;
15336 pub fn g_dtls_server_connection_new(
15337 base_socket: *mut GDatagramBased,
15338 certificate: *mut GTlsCertificate,
15339 error: *mut *mut glib::GError,
15340 ) -> *mut GDtlsServerConnection;
15341
15342 pub fn g_file_get_type() -> GType;
15346 pub fn g_file_new_build_filename(first_element: *const c_char, ...) -> *mut GFile;
15347 #[cfg(feature = "v2_78")]
15348 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
15349 pub fn g_file_new_build_filenamev(args: *const *const c_char) -> *mut GFile;
15350 pub fn g_file_new_for_commandline_arg(arg: *const c_char) -> *mut GFile;
15351 pub fn g_file_new_for_commandline_arg_and_cwd(
15352 arg: *const c_char,
15353 cwd: *const c_char,
15354 ) -> *mut GFile;
15355 pub fn g_file_new_for_path(path: *const c_char) -> *mut GFile;
15356 pub fn g_file_new_for_uri(uri: *const c_char) -> *mut GFile;
15357 pub fn g_file_new_tmp(
15358 tmpl: *const c_char,
15359 iostream: *mut *mut GFileIOStream,
15360 error: *mut *mut glib::GError,
15361 ) -> *mut GFile;
15362 #[cfg(feature = "v2_74")]
15363 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15364 pub fn g_file_new_tmp_async(
15365 tmpl: *const c_char,
15366 io_priority: c_int,
15367 cancellable: *mut GCancellable,
15368 callback: GAsyncReadyCallback,
15369 user_data: gpointer,
15370 );
15371 #[cfg(feature = "v2_74")]
15372 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15373 pub fn g_file_new_tmp_dir_async(
15374 tmpl: *const c_char,
15375 io_priority: c_int,
15376 cancellable: *mut GCancellable,
15377 callback: GAsyncReadyCallback,
15378 user_data: gpointer,
15379 );
15380 #[cfg(feature = "v2_74")]
15381 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15382 pub fn g_file_new_tmp_dir_finish(
15383 result: *mut GAsyncResult,
15384 error: *mut *mut glib::GError,
15385 ) -> *mut GFile;
15386 #[cfg(feature = "v2_74")]
15387 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15388 pub fn g_file_new_tmp_finish(
15389 result: *mut GAsyncResult,
15390 iostream: *mut *mut GFileIOStream,
15391 error: *mut *mut glib::GError,
15392 ) -> *mut GFile;
15393 pub fn g_file_parse_name(parse_name: *const c_char) -> *mut GFile;
15394 pub fn g_file_append_to(
15395 file: *mut GFile,
15396 flags: GFileCreateFlags,
15397 cancellable: *mut GCancellable,
15398 error: *mut *mut glib::GError,
15399 ) -> *mut GFileOutputStream;
15400 pub fn g_file_append_to_async(
15401 file: *mut GFile,
15402 flags: GFileCreateFlags,
15403 io_priority: c_int,
15404 cancellable: *mut GCancellable,
15405 callback: GAsyncReadyCallback,
15406 user_data: gpointer,
15407 );
15408 pub fn g_file_append_to_finish(
15409 file: *mut GFile,
15410 res: *mut GAsyncResult,
15411 error: *mut *mut glib::GError,
15412 ) -> *mut GFileOutputStream;
15413 #[cfg(feature = "v2_68")]
15414 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
15415 pub fn g_file_build_attribute_list_for_copy(
15416 file: *mut GFile,
15417 flags: GFileCopyFlags,
15418 cancellable: *mut GCancellable,
15419 error: *mut *mut glib::GError,
15420 ) -> *mut c_char;
15421 pub fn g_file_copy(
15422 source: *mut GFile,
15423 destination: *mut GFile,
15424 flags: GFileCopyFlags,
15425 cancellable: *mut GCancellable,
15426 progress_callback: GFileProgressCallback,
15427 progress_callback_data: gpointer,
15428 error: *mut *mut glib::GError,
15429 ) -> gboolean;
15430 pub fn g_file_copy_async(
15431 source: *mut GFile,
15432 destination: *mut GFile,
15433 flags: GFileCopyFlags,
15434 io_priority: c_int,
15435 cancellable: *mut GCancellable,
15436 progress_callback: GFileProgressCallback,
15437 progress_callback_data: gpointer,
15438 callback: GAsyncReadyCallback,
15439 user_data: gpointer,
15440 );
15441 #[cfg(feature = "v2_82")]
15442 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
15443 pub fn g_file_copy_async_with_closures(
15444 source: *mut GFile,
15445 destination: *mut GFile,
15446 flags: GFileCopyFlags,
15447 io_priority: c_int,
15448 cancellable: *mut GCancellable,
15449 progress_callback_closure: *mut gobject::GClosure,
15450 ready_callback_closure: *mut gobject::GClosure,
15451 );
15452 pub fn g_file_copy_attributes(
15453 source: *mut GFile,
15454 destination: *mut GFile,
15455 flags: GFileCopyFlags,
15456 cancellable: *mut GCancellable,
15457 error: *mut *mut glib::GError,
15458 ) -> gboolean;
15459 pub fn g_file_copy_finish(
15460 file: *mut GFile,
15461 res: *mut GAsyncResult,
15462 error: *mut *mut glib::GError,
15463 ) -> gboolean;
15464 pub fn g_file_create(
15465 file: *mut GFile,
15466 flags: GFileCreateFlags,
15467 cancellable: *mut GCancellable,
15468 error: *mut *mut glib::GError,
15469 ) -> *mut GFileOutputStream;
15470 pub fn g_file_create_async(
15471 file: *mut GFile,
15472 flags: GFileCreateFlags,
15473 io_priority: c_int,
15474 cancellable: *mut GCancellable,
15475 callback: GAsyncReadyCallback,
15476 user_data: gpointer,
15477 );
15478 pub fn g_file_create_finish(
15479 file: *mut GFile,
15480 res: *mut GAsyncResult,
15481 error: *mut *mut glib::GError,
15482 ) -> *mut GFileOutputStream;
15483 pub fn g_file_create_readwrite(
15484 file: *mut GFile,
15485 flags: GFileCreateFlags,
15486 cancellable: *mut GCancellable,
15487 error: *mut *mut glib::GError,
15488 ) -> *mut GFileIOStream;
15489 pub fn g_file_create_readwrite_async(
15490 file: *mut GFile,
15491 flags: GFileCreateFlags,
15492 io_priority: c_int,
15493 cancellable: *mut GCancellable,
15494 callback: GAsyncReadyCallback,
15495 user_data: gpointer,
15496 );
15497 pub fn g_file_create_readwrite_finish(
15498 file: *mut GFile,
15499 res: *mut GAsyncResult,
15500 error: *mut *mut glib::GError,
15501 ) -> *mut GFileIOStream;
15502 pub fn g_file_delete(
15503 file: *mut GFile,
15504 cancellable: *mut GCancellable,
15505 error: *mut *mut glib::GError,
15506 ) -> gboolean;
15507 pub fn g_file_delete_async(
15508 file: *mut GFile,
15509 io_priority: c_int,
15510 cancellable: *mut GCancellable,
15511 callback: GAsyncReadyCallback,
15512 user_data: gpointer,
15513 );
15514 pub fn g_file_delete_finish(
15515 file: *mut GFile,
15516 result: *mut GAsyncResult,
15517 error: *mut *mut glib::GError,
15518 ) -> gboolean;
15519 pub fn g_file_dup(file: *mut GFile) -> *mut GFile;
15520 pub fn g_file_eject_mountable(
15521 file: *mut GFile,
15522 flags: GMountUnmountFlags,
15523 cancellable: *mut GCancellable,
15524 callback: GAsyncReadyCallback,
15525 user_data: gpointer,
15526 );
15527 pub fn g_file_eject_mountable_finish(
15528 file: *mut GFile,
15529 result: *mut GAsyncResult,
15530 error: *mut *mut glib::GError,
15531 ) -> gboolean;
15532 pub fn g_file_eject_mountable_with_operation(
15533 file: *mut GFile,
15534 flags: GMountUnmountFlags,
15535 mount_operation: *mut GMountOperation,
15536 cancellable: *mut GCancellable,
15537 callback: GAsyncReadyCallback,
15538 user_data: gpointer,
15539 );
15540 pub fn g_file_eject_mountable_with_operation_finish(
15541 file: *mut GFile,
15542 result: *mut GAsyncResult,
15543 error: *mut *mut glib::GError,
15544 ) -> gboolean;
15545 pub fn g_file_enumerate_children(
15546 file: *mut GFile,
15547 attributes: *const c_char,
15548 flags: GFileQueryInfoFlags,
15549 cancellable: *mut GCancellable,
15550 error: *mut *mut glib::GError,
15551 ) -> *mut GFileEnumerator;
15552 pub fn g_file_enumerate_children_async(
15553 file: *mut GFile,
15554 attributes: *const c_char,
15555 flags: GFileQueryInfoFlags,
15556 io_priority: c_int,
15557 cancellable: *mut GCancellable,
15558 callback: GAsyncReadyCallback,
15559 user_data: gpointer,
15560 );
15561 pub fn g_file_enumerate_children_finish(
15562 file: *mut GFile,
15563 res: *mut GAsyncResult,
15564 error: *mut *mut glib::GError,
15565 ) -> *mut GFileEnumerator;
15566 pub fn g_file_equal(file1: *mut GFile, file2: *mut GFile) -> gboolean;
15567 pub fn g_file_find_enclosing_mount(
15568 file: *mut GFile,
15569 cancellable: *mut GCancellable,
15570 error: *mut *mut glib::GError,
15571 ) -> *mut GMount;
15572 pub fn g_file_find_enclosing_mount_async(
15573 file: *mut GFile,
15574 io_priority: c_int,
15575 cancellable: *mut GCancellable,
15576 callback: GAsyncReadyCallback,
15577 user_data: gpointer,
15578 );
15579 pub fn g_file_find_enclosing_mount_finish(
15580 file: *mut GFile,
15581 res: *mut GAsyncResult,
15582 error: *mut *mut glib::GError,
15583 ) -> *mut GMount;
15584 pub fn g_file_get_basename(file: *mut GFile) -> *mut c_char;
15585 pub fn g_file_get_child(file: *mut GFile, name: *const c_char) -> *mut GFile;
15586 pub fn g_file_get_child_for_display_name(
15587 file: *mut GFile,
15588 display_name: *const c_char,
15589 error: *mut *mut glib::GError,
15590 ) -> *mut GFile;
15591 pub fn g_file_get_parent(file: *mut GFile) -> *mut GFile;
15592 pub fn g_file_get_parse_name(file: *mut GFile) -> *mut c_char;
15593 pub fn g_file_get_path(file: *mut GFile) -> *mut c_char;
15594 pub fn g_file_get_relative_path(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char;
15595 pub fn g_file_get_uri(file: *mut GFile) -> *mut c_char;
15596 pub fn g_file_get_uri_scheme(file: *mut GFile) -> *mut c_char;
15597 pub fn g_file_has_parent(file: *mut GFile, parent: *mut GFile) -> gboolean;
15598 pub fn g_file_has_prefix(file: *mut GFile, prefix: *mut GFile) -> gboolean;
15599 pub fn g_file_has_uri_scheme(file: *mut GFile, uri_scheme: *const c_char) -> gboolean;
15600 pub fn g_file_hash(file: gconstpointer) -> c_uint;
15601 pub fn g_file_is_native(file: *mut GFile) -> gboolean;
15602 pub fn g_file_load_bytes(
15603 file: *mut GFile,
15604 cancellable: *mut GCancellable,
15605 etag_out: *mut *mut c_char,
15606 error: *mut *mut glib::GError,
15607 ) -> *mut glib::GBytes;
15608 pub fn g_file_load_bytes_async(
15609 file: *mut GFile,
15610 cancellable: *mut GCancellable,
15611 callback: GAsyncReadyCallback,
15612 user_data: gpointer,
15613 );
15614 pub fn g_file_load_bytes_finish(
15615 file: *mut GFile,
15616 result: *mut GAsyncResult,
15617 etag_out: *mut *mut c_char,
15618 error: *mut *mut glib::GError,
15619 ) -> *mut glib::GBytes;
15620 pub fn g_file_load_contents(
15621 file: *mut GFile,
15622 cancellable: *mut GCancellable,
15623 contents: *mut *mut u8,
15624 length: *mut size_t,
15625 etag_out: *mut *mut c_char,
15626 error: *mut *mut glib::GError,
15627 ) -> gboolean;
15628 pub fn g_file_load_contents_async(
15629 file: *mut GFile,
15630 cancellable: *mut GCancellable,
15631 callback: GAsyncReadyCallback,
15632 user_data: gpointer,
15633 );
15634 pub fn g_file_load_contents_finish(
15635 file: *mut GFile,
15636 res: *mut GAsyncResult,
15637 contents: *mut *mut u8,
15638 length: *mut size_t,
15639 etag_out: *mut *mut c_char,
15640 error: *mut *mut glib::GError,
15641 ) -> gboolean;
15642 pub fn g_file_load_partial_contents_async(
15643 file: *mut GFile,
15644 cancellable: *mut GCancellable,
15645 read_more_callback: GFileReadMoreCallback,
15646 callback: GAsyncReadyCallback,
15647 user_data: gpointer,
15648 );
15649 pub fn g_file_load_partial_contents_finish(
15650 file: *mut GFile,
15651 res: *mut GAsyncResult,
15652 contents: *mut *mut u8,
15653 length: *mut size_t,
15654 etag_out: *mut *mut c_char,
15655 error: *mut *mut glib::GError,
15656 ) -> gboolean;
15657 pub fn g_file_make_directory(
15658 file: *mut GFile,
15659 cancellable: *mut GCancellable,
15660 error: *mut *mut glib::GError,
15661 ) -> gboolean;
15662 pub fn g_file_make_directory_async(
15663 file: *mut GFile,
15664 io_priority: c_int,
15665 cancellable: *mut GCancellable,
15666 callback: GAsyncReadyCallback,
15667 user_data: gpointer,
15668 );
15669 pub fn g_file_make_directory_finish(
15670 file: *mut GFile,
15671 result: *mut GAsyncResult,
15672 error: *mut *mut glib::GError,
15673 ) -> gboolean;
15674 pub fn g_file_make_directory_with_parents(
15675 file: *mut GFile,
15676 cancellable: *mut GCancellable,
15677 error: *mut *mut glib::GError,
15678 ) -> gboolean;
15679 pub fn g_file_make_symbolic_link(
15680 file: *mut GFile,
15681 symlink_value: *const c_char,
15682 cancellable: *mut GCancellable,
15683 error: *mut *mut glib::GError,
15684 ) -> gboolean;
15685 #[cfg(feature = "v2_74")]
15686 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15687 pub fn g_file_make_symbolic_link_async(
15688 file: *mut GFile,
15689 symlink_value: *const c_char,
15690 io_priority: c_int,
15691 cancellable: *mut GCancellable,
15692 callback: GAsyncReadyCallback,
15693 user_data: gpointer,
15694 );
15695 #[cfg(feature = "v2_74")]
15696 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
15697 pub fn g_file_make_symbolic_link_finish(
15698 file: *mut GFile,
15699 result: *mut GAsyncResult,
15700 error: *mut *mut glib::GError,
15701 ) -> gboolean;
15702 pub fn g_file_measure_disk_usage(
15703 file: *mut GFile,
15704 flags: GFileMeasureFlags,
15705 cancellable: *mut GCancellable,
15706 progress_callback: GFileMeasureProgressCallback,
15707 progress_data: gpointer,
15708 disk_usage: *mut u64,
15709 num_dirs: *mut u64,
15710 num_files: *mut u64,
15711 error: *mut *mut glib::GError,
15712 ) -> gboolean;
15713 pub fn g_file_measure_disk_usage_async(
15714 file: *mut GFile,
15715 flags: GFileMeasureFlags,
15716 io_priority: c_int,
15717 cancellable: *mut GCancellable,
15718 progress_callback: GFileMeasureProgressCallback,
15719 progress_data: gpointer,
15720 callback: GAsyncReadyCallback,
15721 user_data: gpointer,
15722 );
15723 pub fn g_file_measure_disk_usage_finish(
15724 file: *mut GFile,
15725 result: *mut GAsyncResult,
15726 disk_usage: *mut u64,
15727 num_dirs: *mut u64,
15728 num_files: *mut u64,
15729 error: *mut *mut glib::GError,
15730 ) -> gboolean;
15731 pub fn g_file_monitor(
15732 file: *mut GFile,
15733 flags: GFileMonitorFlags,
15734 cancellable: *mut GCancellable,
15735 error: *mut *mut glib::GError,
15736 ) -> *mut GFileMonitor;
15737 pub fn g_file_monitor_directory(
15738 file: *mut GFile,
15739 flags: GFileMonitorFlags,
15740 cancellable: *mut GCancellable,
15741 error: *mut *mut glib::GError,
15742 ) -> *mut GFileMonitor;
15743 pub fn g_file_monitor_file(
15744 file: *mut GFile,
15745 flags: GFileMonitorFlags,
15746 cancellable: *mut GCancellable,
15747 error: *mut *mut glib::GError,
15748 ) -> *mut GFileMonitor;
15749 pub fn g_file_mount_enclosing_volume(
15750 location: *mut GFile,
15751 flags: GMountMountFlags,
15752 mount_operation: *mut GMountOperation,
15753 cancellable: *mut GCancellable,
15754 callback: GAsyncReadyCallback,
15755 user_data: gpointer,
15756 );
15757 pub fn g_file_mount_enclosing_volume_finish(
15758 location: *mut GFile,
15759 result: *mut GAsyncResult,
15760 error: *mut *mut glib::GError,
15761 ) -> gboolean;
15762 pub fn g_file_mount_mountable(
15763 file: *mut GFile,
15764 flags: GMountMountFlags,
15765 mount_operation: *mut GMountOperation,
15766 cancellable: *mut GCancellable,
15767 callback: GAsyncReadyCallback,
15768 user_data: gpointer,
15769 );
15770 pub fn g_file_mount_mountable_finish(
15771 file: *mut GFile,
15772 result: *mut GAsyncResult,
15773 error: *mut *mut glib::GError,
15774 ) -> *mut GFile;
15775 pub fn g_file_move(
15776 source: *mut GFile,
15777 destination: *mut GFile,
15778 flags: GFileCopyFlags,
15779 cancellable: *mut GCancellable,
15780 progress_callback: GFileProgressCallback,
15781 progress_callback_data: gpointer,
15782 error: *mut *mut glib::GError,
15783 ) -> gboolean;
15784 #[cfg(feature = "v2_72")]
15785 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15786 pub fn g_file_move_async(
15787 source: *mut GFile,
15788 destination: *mut GFile,
15789 flags: GFileCopyFlags,
15790 io_priority: c_int,
15791 cancellable: *mut GCancellable,
15792 progress_callback: GFileProgressCallback,
15793 progress_callback_data: gpointer,
15794 callback: GAsyncReadyCallback,
15795 user_data: gpointer,
15796 );
15797 #[cfg(feature = "v2_82")]
15798 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
15799 pub fn g_file_move_async_with_closures(
15800 source: *mut GFile,
15801 destination: *mut GFile,
15802 flags: GFileCopyFlags,
15803 io_priority: c_int,
15804 cancellable: *mut GCancellable,
15805 progress_callback_closure: *mut gobject::GClosure,
15806 ready_callback_closure: *mut gobject::GClosure,
15807 );
15808 #[cfg(feature = "v2_72")]
15809 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
15810 pub fn g_file_move_finish(
15811 file: *mut GFile,
15812 result: *mut GAsyncResult,
15813 error: *mut *mut glib::GError,
15814 ) -> gboolean;
15815 pub fn g_file_open_readwrite(
15816 file: *mut GFile,
15817 cancellable: *mut GCancellable,
15818 error: *mut *mut glib::GError,
15819 ) -> *mut GFileIOStream;
15820 pub fn g_file_open_readwrite_async(
15821 file: *mut GFile,
15822 io_priority: c_int,
15823 cancellable: *mut GCancellable,
15824 callback: GAsyncReadyCallback,
15825 user_data: gpointer,
15826 );
15827 pub fn g_file_open_readwrite_finish(
15828 file: *mut GFile,
15829 res: *mut GAsyncResult,
15830 error: *mut *mut glib::GError,
15831 ) -> *mut GFileIOStream;
15832 pub fn g_file_peek_path(file: *mut GFile) -> *const c_char;
15833 pub fn g_file_poll_mountable(
15834 file: *mut GFile,
15835 cancellable: *mut GCancellable,
15836 callback: GAsyncReadyCallback,
15837 user_data: gpointer,
15838 );
15839 pub fn g_file_poll_mountable_finish(
15840 file: *mut GFile,
15841 result: *mut GAsyncResult,
15842 error: *mut *mut glib::GError,
15843 ) -> gboolean;
15844 pub fn g_file_query_default_handler(
15845 file: *mut GFile,
15846 cancellable: *mut GCancellable,
15847 error: *mut *mut glib::GError,
15848 ) -> *mut GAppInfo;
15849 #[cfg(feature = "v2_60")]
15850 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15851 pub fn g_file_query_default_handler_async(
15852 file: *mut GFile,
15853 io_priority: c_int,
15854 cancellable: *mut GCancellable,
15855 callback: GAsyncReadyCallback,
15856 user_data: gpointer,
15857 );
15858 #[cfg(feature = "v2_60")]
15859 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
15860 pub fn g_file_query_default_handler_finish(
15861 file: *mut GFile,
15862 result: *mut GAsyncResult,
15863 error: *mut *mut glib::GError,
15864 ) -> *mut GAppInfo;
15865 pub fn g_file_query_exists(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean;
15866 pub fn g_file_query_file_type(
15867 file: *mut GFile,
15868 flags: GFileQueryInfoFlags,
15869 cancellable: *mut GCancellable,
15870 ) -> GFileType;
15871 pub fn g_file_query_filesystem_info(
15872 file: *mut GFile,
15873 attributes: *const c_char,
15874 cancellable: *mut GCancellable,
15875 error: *mut *mut glib::GError,
15876 ) -> *mut GFileInfo;
15877 pub fn g_file_query_filesystem_info_async(
15878 file: *mut GFile,
15879 attributes: *const c_char,
15880 io_priority: c_int,
15881 cancellable: *mut GCancellable,
15882 callback: GAsyncReadyCallback,
15883 user_data: gpointer,
15884 );
15885 pub fn g_file_query_filesystem_info_finish(
15886 file: *mut GFile,
15887 res: *mut GAsyncResult,
15888 error: *mut *mut glib::GError,
15889 ) -> *mut GFileInfo;
15890 pub fn g_file_query_info(
15891 file: *mut GFile,
15892 attributes: *const c_char,
15893 flags: GFileQueryInfoFlags,
15894 cancellable: *mut GCancellable,
15895 error: *mut *mut glib::GError,
15896 ) -> *mut GFileInfo;
15897 pub fn g_file_query_info_async(
15898 file: *mut GFile,
15899 attributes: *const c_char,
15900 flags: GFileQueryInfoFlags,
15901 io_priority: c_int,
15902 cancellable: *mut GCancellable,
15903 callback: GAsyncReadyCallback,
15904 user_data: gpointer,
15905 );
15906 pub fn g_file_query_info_finish(
15907 file: *mut GFile,
15908 res: *mut GAsyncResult,
15909 error: *mut *mut glib::GError,
15910 ) -> *mut GFileInfo;
15911 pub fn g_file_query_settable_attributes(
15912 file: *mut GFile,
15913 cancellable: *mut GCancellable,
15914 error: *mut *mut glib::GError,
15915 ) -> *mut GFileAttributeInfoList;
15916 pub fn g_file_query_writable_namespaces(
15917 file: *mut GFile,
15918 cancellable: *mut GCancellable,
15919 error: *mut *mut glib::GError,
15920 ) -> *mut GFileAttributeInfoList;
15921 pub fn g_file_read(
15922 file: *mut GFile,
15923 cancellable: *mut GCancellable,
15924 error: *mut *mut glib::GError,
15925 ) -> *mut GFileInputStream;
15926 pub fn g_file_read_async(
15927 file: *mut GFile,
15928 io_priority: c_int,
15929 cancellable: *mut GCancellable,
15930 callback: GAsyncReadyCallback,
15931 user_data: gpointer,
15932 );
15933 pub fn g_file_read_finish(
15934 file: *mut GFile,
15935 res: *mut GAsyncResult,
15936 error: *mut *mut glib::GError,
15937 ) -> *mut GFileInputStream;
15938 pub fn g_file_replace(
15939 file: *mut GFile,
15940 etag: *const c_char,
15941 make_backup: gboolean,
15942 flags: GFileCreateFlags,
15943 cancellable: *mut GCancellable,
15944 error: *mut *mut glib::GError,
15945 ) -> *mut GFileOutputStream;
15946 pub fn g_file_replace_async(
15947 file: *mut GFile,
15948 etag: *const c_char,
15949 make_backup: gboolean,
15950 flags: GFileCreateFlags,
15951 io_priority: c_int,
15952 cancellable: *mut GCancellable,
15953 callback: GAsyncReadyCallback,
15954 user_data: gpointer,
15955 );
15956 pub fn g_file_replace_contents(
15957 file: *mut GFile,
15958 contents: *const u8,
15959 length: size_t,
15960 etag: *const c_char,
15961 make_backup: gboolean,
15962 flags: GFileCreateFlags,
15963 new_etag: *mut *mut c_char,
15964 cancellable: *mut GCancellable,
15965 error: *mut *mut glib::GError,
15966 ) -> gboolean;
15967 pub fn g_file_replace_contents_async(
15968 file: *mut GFile,
15969 contents: *const u8,
15970 length: size_t,
15971 etag: *const c_char,
15972 make_backup: gboolean,
15973 flags: GFileCreateFlags,
15974 cancellable: *mut GCancellable,
15975 callback: GAsyncReadyCallback,
15976 user_data: gpointer,
15977 );
15978 pub fn g_file_replace_contents_bytes_async(
15979 file: *mut GFile,
15980 contents: *mut glib::GBytes,
15981 etag: *const c_char,
15982 make_backup: gboolean,
15983 flags: GFileCreateFlags,
15984 cancellable: *mut GCancellable,
15985 callback: GAsyncReadyCallback,
15986 user_data: gpointer,
15987 );
15988 pub fn g_file_replace_contents_finish(
15989 file: *mut GFile,
15990 res: *mut GAsyncResult,
15991 new_etag: *mut *mut c_char,
15992 error: *mut *mut glib::GError,
15993 ) -> gboolean;
15994 pub fn g_file_replace_finish(
15995 file: *mut GFile,
15996 res: *mut GAsyncResult,
15997 error: *mut *mut glib::GError,
15998 ) -> *mut GFileOutputStream;
15999 pub fn g_file_replace_readwrite(
16000 file: *mut GFile,
16001 etag: *const c_char,
16002 make_backup: gboolean,
16003 flags: GFileCreateFlags,
16004 cancellable: *mut GCancellable,
16005 error: *mut *mut glib::GError,
16006 ) -> *mut GFileIOStream;
16007 pub fn g_file_replace_readwrite_async(
16008 file: *mut GFile,
16009 etag: *const c_char,
16010 make_backup: gboolean,
16011 flags: GFileCreateFlags,
16012 io_priority: c_int,
16013 cancellable: *mut GCancellable,
16014 callback: GAsyncReadyCallback,
16015 user_data: gpointer,
16016 );
16017 pub fn g_file_replace_readwrite_finish(
16018 file: *mut GFile,
16019 res: *mut GAsyncResult,
16020 error: *mut *mut glib::GError,
16021 ) -> *mut GFileIOStream;
16022 pub fn g_file_resolve_relative_path(
16023 file: *mut GFile,
16024 relative_path: *const c_char,
16025 ) -> *mut GFile;
16026 pub fn g_file_set_attribute(
16027 file: *mut GFile,
16028 attribute: *const c_char,
16029 type_: GFileAttributeType,
16030 value_p: gpointer,
16031 flags: GFileQueryInfoFlags,
16032 cancellable: *mut GCancellable,
16033 error: *mut *mut glib::GError,
16034 ) -> gboolean;
16035 pub fn g_file_set_attribute_byte_string(
16036 file: *mut GFile,
16037 attribute: *const c_char,
16038 value: *const c_char,
16039 flags: GFileQueryInfoFlags,
16040 cancellable: *mut GCancellable,
16041 error: *mut *mut glib::GError,
16042 ) -> gboolean;
16043 pub fn g_file_set_attribute_int32(
16044 file: *mut GFile,
16045 attribute: *const c_char,
16046 value: i32,
16047 flags: GFileQueryInfoFlags,
16048 cancellable: *mut GCancellable,
16049 error: *mut *mut glib::GError,
16050 ) -> gboolean;
16051 pub fn g_file_set_attribute_int64(
16052 file: *mut GFile,
16053 attribute: *const c_char,
16054 value: i64,
16055 flags: GFileQueryInfoFlags,
16056 cancellable: *mut GCancellable,
16057 error: *mut *mut glib::GError,
16058 ) -> gboolean;
16059 pub fn g_file_set_attribute_string(
16060 file: *mut GFile,
16061 attribute: *const c_char,
16062 value: *const c_char,
16063 flags: GFileQueryInfoFlags,
16064 cancellable: *mut GCancellable,
16065 error: *mut *mut glib::GError,
16066 ) -> gboolean;
16067 pub fn g_file_set_attribute_uint32(
16068 file: *mut GFile,
16069 attribute: *const c_char,
16070 value: u32,
16071 flags: GFileQueryInfoFlags,
16072 cancellable: *mut GCancellable,
16073 error: *mut *mut glib::GError,
16074 ) -> gboolean;
16075 pub fn g_file_set_attribute_uint64(
16076 file: *mut GFile,
16077 attribute: *const c_char,
16078 value: u64,
16079 flags: GFileQueryInfoFlags,
16080 cancellable: *mut GCancellable,
16081 error: *mut *mut glib::GError,
16082 ) -> gboolean;
16083 pub fn g_file_set_attributes_async(
16084 file: *mut GFile,
16085 info: *mut GFileInfo,
16086 flags: GFileQueryInfoFlags,
16087 io_priority: c_int,
16088 cancellable: *mut GCancellable,
16089 callback: GAsyncReadyCallback,
16090 user_data: gpointer,
16091 );
16092 pub fn g_file_set_attributes_finish(
16093 file: *mut GFile,
16094 result: *mut GAsyncResult,
16095 info: *mut *mut GFileInfo,
16096 error: *mut *mut glib::GError,
16097 ) -> gboolean;
16098 pub fn g_file_set_attributes_from_info(
16099 file: *mut GFile,
16100 info: *mut GFileInfo,
16101 flags: GFileQueryInfoFlags,
16102 cancellable: *mut GCancellable,
16103 error: *mut *mut glib::GError,
16104 ) -> gboolean;
16105 pub fn g_file_set_display_name(
16106 file: *mut GFile,
16107 display_name: *const c_char,
16108 cancellable: *mut GCancellable,
16109 error: *mut *mut glib::GError,
16110 ) -> *mut GFile;
16111 pub fn g_file_set_display_name_async(
16112 file: *mut GFile,
16113 display_name: *const c_char,
16114 io_priority: c_int,
16115 cancellable: *mut GCancellable,
16116 callback: GAsyncReadyCallback,
16117 user_data: gpointer,
16118 );
16119 pub fn g_file_set_display_name_finish(
16120 file: *mut GFile,
16121 res: *mut GAsyncResult,
16122 error: *mut *mut glib::GError,
16123 ) -> *mut GFile;
16124 pub fn g_file_start_mountable(
16125 file: *mut GFile,
16126 flags: GDriveStartFlags,
16127 start_operation: *mut GMountOperation,
16128 cancellable: *mut GCancellable,
16129 callback: GAsyncReadyCallback,
16130 user_data: gpointer,
16131 );
16132 pub fn g_file_start_mountable_finish(
16133 file: *mut GFile,
16134 result: *mut GAsyncResult,
16135 error: *mut *mut glib::GError,
16136 ) -> gboolean;
16137 pub fn g_file_stop_mountable(
16138 file: *mut GFile,
16139 flags: GMountUnmountFlags,
16140 mount_operation: *mut GMountOperation,
16141 cancellable: *mut GCancellable,
16142 callback: GAsyncReadyCallback,
16143 user_data: gpointer,
16144 );
16145 pub fn g_file_stop_mountable_finish(
16146 file: *mut GFile,
16147 result: *mut GAsyncResult,
16148 error: *mut *mut glib::GError,
16149 ) -> gboolean;
16150 pub fn g_file_supports_thread_contexts(file: *mut GFile) -> gboolean;
16151 pub fn g_file_trash(
16152 file: *mut GFile,
16153 cancellable: *mut GCancellable,
16154 error: *mut *mut glib::GError,
16155 ) -> gboolean;
16156 pub fn g_file_trash_async(
16157 file: *mut GFile,
16158 io_priority: c_int,
16159 cancellable: *mut GCancellable,
16160 callback: GAsyncReadyCallback,
16161 user_data: gpointer,
16162 );
16163 pub fn g_file_trash_finish(
16164 file: *mut GFile,
16165 result: *mut GAsyncResult,
16166 error: *mut *mut glib::GError,
16167 ) -> gboolean;
16168 pub fn g_file_unmount_mountable(
16169 file: *mut GFile,
16170 flags: GMountUnmountFlags,
16171 cancellable: *mut GCancellable,
16172 callback: GAsyncReadyCallback,
16173 user_data: gpointer,
16174 );
16175 pub fn g_file_unmount_mountable_finish(
16176 file: *mut GFile,
16177 result: *mut GAsyncResult,
16178 error: *mut *mut glib::GError,
16179 ) -> gboolean;
16180 pub fn g_file_unmount_mountable_with_operation(
16181 file: *mut GFile,
16182 flags: GMountUnmountFlags,
16183 mount_operation: *mut GMountOperation,
16184 cancellable: *mut GCancellable,
16185 callback: GAsyncReadyCallback,
16186 user_data: gpointer,
16187 );
16188 pub fn g_file_unmount_mountable_with_operation_finish(
16189 file: *mut GFile,
16190 result: *mut GAsyncResult,
16191 error: *mut *mut glib::GError,
16192 ) -> gboolean;
16193
16194 pub fn g_icon_get_type() -> GType;
16198 pub fn g_icon_deserialize(value: *mut glib::GVariant) -> *mut GIcon;
16199 pub fn g_icon_new_for_string(str: *const c_char, error: *mut *mut glib::GError) -> *mut GIcon;
16200 pub fn g_icon_equal(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean;
16201 pub fn g_icon_hash(icon: gconstpointer) -> c_uint;
16202 pub fn g_icon_serialize(icon: *mut GIcon) -> *mut glib::GVariant;
16203 pub fn g_icon_to_string(icon: *mut GIcon) -> *mut c_char;
16204
16205 pub fn g_initable_get_type() -> GType;
16209 pub fn g_initable_new(
16210 object_type: GType,
16211 cancellable: *mut GCancellable,
16212 error: *mut *mut glib::GError,
16213 first_property_name: *const c_char,
16214 ...
16215 ) -> *mut gobject::GObject;
16216 pub fn g_initable_newv(
16218 object_type: GType,
16219 n_parameters: c_uint,
16220 parameters: *mut gobject::GParameter,
16221 cancellable: *mut GCancellable,
16222 error: *mut *mut glib::GError,
16223 ) -> *mut gobject::GObject;
16224 pub fn g_initable_init(
16225 initable: *mut GInitable,
16226 cancellable: *mut GCancellable,
16227 error: *mut *mut glib::GError,
16228 ) -> gboolean;
16229
16230 pub fn g_list_model_get_type() -> GType;
16234 pub fn g_list_model_get_item(list: *mut GListModel, position: c_uint) -> gpointer;
16235 pub fn g_list_model_get_item_type(list: *mut GListModel) -> GType;
16236 pub fn g_list_model_get_n_items(list: *mut GListModel) -> c_uint;
16237 pub fn g_list_model_get_object(
16238 list: *mut GListModel,
16239 position: c_uint,
16240 ) -> *mut gobject::GObject;
16241 pub fn g_list_model_items_changed(
16242 list: *mut GListModel,
16243 position: c_uint,
16244 removed: c_uint,
16245 added: c_uint,
16246 );
16247
16248 pub fn g_loadable_icon_get_type() -> GType;
16252 pub fn g_loadable_icon_load(
16253 icon: *mut GLoadableIcon,
16254 size: c_int,
16255 type_: *mut *mut c_char,
16256 cancellable: *mut GCancellable,
16257 error: *mut *mut glib::GError,
16258 ) -> *mut GInputStream;
16259 pub fn g_loadable_icon_load_async(
16260 icon: *mut GLoadableIcon,
16261 size: c_int,
16262 cancellable: *mut GCancellable,
16263 callback: GAsyncReadyCallback,
16264 user_data: gpointer,
16265 );
16266 pub fn g_loadable_icon_load_finish(
16267 icon: *mut GLoadableIcon,
16268 res: *mut GAsyncResult,
16269 type_: *mut *mut c_char,
16270 error: *mut *mut glib::GError,
16271 ) -> *mut GInputStream;
16272
16273 #[cfg(feature = "v2_64")]
16277 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
16278 pub fn g_memory_monitor_get_type() -> GType;
16279 #[cfg(feature = "v2_64")]
16280 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
16281 pub fn g_memory_monitor_dup_default() -> *mut GMemoryMonitor;
16282
16283 pub fn g_mount_get_type() -> GType;
16287 pub fn g_mount_can_eject(mount: *mut GMount) -> gboolean;
16288 pub fn g_mount_can_unmount(mount: *mut GMount) -> gboolean;
16289 pub fn g_mount_eject(
16290 mount: *mut GMount,
16291 flags: GMountUnmountFlags,
16292 cancellable: *mut GCancellable,
16293 callback: GAsyncReadyCallback,
16294 user_data: gpointer,
16295 );
16296 pub fn g_mount_eject_finish(
16297 mount: *mut GMount,
16298 result: *mut GAsyncResult,
16299 error: *mut *mut glib::GError,
16300 ) -> gboolean;
16301 pub fn g_mount_eject_with_operation(
16302 mount: *mut GMount,
16303 flags: GMountUnmountFlags,
16304 mount_operation: *mut GMountOperation,
16305 cancellable: *mut GCancellable,
16306 callback: GAsyncReadyCallback,
16307 user_data: gpointer,
16308 );
16309 pub fn g_mount_eject_with_operation_finish(
16310 mount: *mut GMount,
16311 result: *mut GAsyncResult,
16312 error: *mut *mut glib::GError,
16313 ) -> gboolean;
16314 pub fn g_mount_get_default_location(mount: *mut GMount) -> *mut GFile;
16315 pub fn g_mount_get_drive(mount: *mut GMount) -> *mut GDrive;
16316 pub fn g_mount_get_icon(mount: *mut GMount) -> *mut GIcon;
16317 pub fn g_mount_get_name(mount: *mut GMount) -> *mut c_char;
16318 pub fn g_mount_get_root(mount: *mut GMount) -> *mut GFile;
16319 pub fn g_mount_get_sort_key(mount: *mut GMount) -> *const c_char;
16320 pub fn g_mount_get_symbolic_icon(mount: *mut GMount) -> *mut GIcon;
16321 pub fn g_mount_get_uuid(mount: *mut GMount) -> *mut c_char;
16322 pub fn g_mount_get_volume(mount: *mut GMount) -> *mut GVolume;
16323 pub fn g_mount_guess_content_type(
16324 mount: *mut GMount,
16325 force_rescan: gboolean,
16326 cancellable: *mut GCancellable,
16327 callback: GAsyncReadyCallback,
16328 user_data: gpointer,
16329 );
16330 pub fn g_mount_guess_content_type_finish(
16331 mount: *mut GMount,
16332 result: *mut GAsyncResult,
16333 error: *mut *mut glib::GError,
16334 ) -> *mut *mut c_char;
16335 pub fn g_mount_guess_content_type_sync(
16336 mount: *mut GMount,
16337 force_rescan: gboolean,
16338 cancellable: *mut GCancellable,
16339 error: *mut *mut glib::GError,
16340 ) -> *mut *mut c_char;
16341 pub fn g_mount_is_shadowed(mount: *mut GMount) -> gboolean;
16342 pub fn g_mount_remount(
16343 mount: *mut GMount,
16344 flags: GMountMountFlags,
16345 mount_operation: *mut GMountOperation,
16346 cancellable: *mut GCancellable,
16347 callback: GAsyncReadyCallback,
16348 user_data: gpointer,
16349 );
16350 pub fn g_mount_remount_finish(
16351 mount: *mut GMount,
16352 result: *mut GAsyncResult,
16353 error: *mut *mut glib::GError,
16354 ) -> gboolean;
16355 pub fn g_mount_shadow(mount: *mut GMount);
16356 pub fn g_mount_unmount(
16357 mount: *mut GMount,
16358 flags: GMountUnmountFlags,
16359 cancellable: *mut GCancellable,
16360 callback: GAsyncReadyCallback,
16361 user_data: gpointer,
16362 );
16363 pub fn g_mount_unmount_finish(
16364 mount: *mut GMount,
16365 result: *mut GAsyncResult,
16366 error: *mut *mut glib::GError,
16367 ) -> gboolean;
16368 pub fn g_mount_unmount_with_operation(
16369 mount: *mut GMount,
16370 flags: GMountUnmountFlags,
16371 mount_operation: *mut GMountOperation,
16372 cancellable: *mut GCancellable,
16373 callback: GAsyncReadyCallback,
16374 user_data: gpointer,
16375 );
16376 pub fn g_mount_unmount_with_operation_finish(
16377 mount: *mut GMount,
16378 result: *mut GAsyncResult,
16379 error: *mut *mut glib::GError,
16380 ) -> gboolean;
16381 pub fn g_mount_unshadow(mount: *mut GMount);
16382
16383 pub fn g_network_monitor_get_type() -> GType;
16387 pub fn g_network_monitor_get_default() -> *mut GNetworkMonitor;
16388 pub fn g_network_monitor_can_reach(
16389 monitor: *mut GNetworkMonitor,
16390 connectable: *mut GSocketConnectable,
16391 cancellable: *mut GCancellable,
16392 error: *mut *mut glib::GError,
16393 ) -> gboolean;
16394 pub fn g_network_monitor_can_reach_async(
16395 monitor: *mut GNetworkMonitor,
16396 connectable: *mut GSocketConnectable,
16397 cancellable: *mut GCancellable,
16398 callback: GAsyncReadyCallback,
16399 user_data: gpointer,
16400 );
16401 pub fn g_network_monitor_can_reach_finish(
16402 monitor: *mut GNetworkMonitor,
16403 result: *mut GAsyncResult,
16404 error: *mut *mut glib::GError,
16405 ) -> gboolean;
16406 pub fn g_network_monitor_get_connectivity(
16407 monitor: *mut GNetworkMonitor,
16408 ) -> GNetworkConnectivity;
16409 pub fn g_network_monitor_get_network_available(monitor: *mut GNetworkMonitor) -> gboolean;
16410 pub fn g_network_monitor_get_network_metered(monitor: *mut GNetworkMonitor) -> gboolean;
16411
16412 pub fn g_pollable_input_stream_get_type() -> GType;
16416 pub fn g_pollable_input_stream_can_poll(stream: *mut GPollableInputStream) -> gboolean;
16417 pub fn g_pollable_input_stream_create_source(
16418 stream: *mut GPollableInputStream,
16419 cancellable: *mut GCancellable,
16420 ) -> *mut glib::GSource;
16421 pub fn g_pollable_input_stream_is_readable(stream: *mut GPollableInputStream) -> gboolean;
16422 pub fn g_pollable_input_stream_read_nonblocking(
16423 stream: *mut GPollableInputStream,
16424 buffer: *mut u8,
16425 count: size_t,
16426 cancellable: *mut GCancellable,
16427 error: *mut *mut glib::GError,
16428 ) -> ssize_t;
16429
16430 pub fn g_pollable_output_stream_get_type() -> GType;
16434 pub fn g_pollable_output_stream_can_poll(stream: *mut GPollableOutputStream) -> gboolean;
16435 pub fn g_pollable_output_stream_create_source(
16436 stream: *mut GPollableOutputStream,
16437 cancellable: *mut GCancellable,
16438 ) -> *mut glib::GSource;
16439 pub fn g_pollable_output_stream_is_writable(stream: *mut GPollableOutputStream) -> gboolean;
16440 pub fn g_pollable_output_stream_write_nonblocking(
16441 stream: *mut GPollableOutputStream,
16442 buffer: *mut u8,
16443 count: size_t,
16444 cancellable: *mut GCancellable,
16445 error: *mut *mut glib::GError,
16446 ) -> ssize_t;
16447 #[cfg(feature = "v2_60")]
16448 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16449 pub fn g_pollable_output_stream_writev_nonblocking(
16450 stream: *mut GPollableOutputStream,
16451 vectors: *const GOutputVector,
16452 n_vectors: size_t,
16453 bytes_written: *mut size_t,
16454 cancellable: *mut GCancellable,
16455 error: *mut *mut glib::GError,
16456 ) -> GPollableReturn;
16457
16458 #[cfg(feature = "v2_70")]
16462 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16463 pub fn g_power_profile_monitor_get_type() -> GType;
16464 #[cfg(feature = "v2_70")]
16465 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16466 pub fn g_power_profile_monitor_dup_default() -> *mut GPowerProfileMonitor;
16467 #[cfg(feature = "v2_70")]
16468 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16469 pub fn g_power_profile_monitor_get_power_saver_enabled(
16470 monitor: *mut GPowerProfileMonitor,
16471 ) -> gboolean;
16472
16473 pub fn g_proxy_get_type() -> GType;
16477 pub fn g_proxy_get_default_for_protocol(protocol: *const c_char) -> *mut GProxy;
16478 pub fn g_proxy_connect(
16479 proxy: *mut GProxy,
16480 connection: *mut GIOStream,
16481 proxy_address: *mut GProxyAddress,
16482 cancellable: *mut GCancellable,
16483 error: *mut *mut glib::GError,
16484 ) -> *mut GIOStream;
16485 pub fn g_proxy_connect_async(
16486 proxy: *mut GProxy,
16487 connection: *mut GIOStream,
16488 proxy_address: *mut GProxyAddress,
16489 cancellable: *mut GCancellable,
16490 callback: GAsyncReadyCallback,
16491 user_data: gpointer,
16492 );
16493 pub fn g_proxy_connect_finish(
16494 proxy: *mut GProxy,
16495 result: *mut GAsyncResult,
16496 error: *mut *mut glib::GError,
16497 ) -> *mut GIOStream;
16498 pub fn g_proxy_supports_hostname(proxy: *mut GProxy) -> gboolean;
16499
16500 pub fn g_proxy_resolver_get_type() -> GType;
16504 pub fn g_proxy_resolver_get_default() -> *mut GProxyResolver;
16505 pub fn g_proxy_resolver_is_supported(resolver: *mut GProxyResolver) -> gboolean;
16506 pub fn g_proxy_resolver_lookup(
16507 resolver: *mut GProxyResolver,
16508 uri: *const c_char,
16509 cancellable: *mut GCancellable,
16510 error: *mut *mut glib::GError,
16511 ) -> *mut *mut c_char;
16512 pub fn g_proxy_resolver_lookup_async(
16513 resolver: *mut GProxyResolver,
16514 uri: *const c_char,
16515 cancellable: *mut GCancellable,
16516 callback: GAsyncReadyCallback,
16517 user_data: gpointer,
16518 );
16519 pub fn g_proxy_resolver_lookup_finish(
16520 resolver: *mut GProxyResolver,
16521 result: *mut GAsyncResult,
16522 error: *mut *mut glib::GError,
16523 ) -> *mut *mut c_char;
16524
16525 pub fn g_remote_action_group_get_type() -> GType;
16529 pub fn g_remote_action_group_activate_action_full(
16530 remote: *mut GRemoteActionGroup,
16531 action_name: *const c_char,
16532 parameter: *mut glib::GVariant,
16533 platform_data: *mut glib::GVariant,
16534 );
16535 pub fn g_remote_action_group_change_action_state_full(
16536 remote: *mut GRemoteActionGroup,
16537 action_name: *const c_char,
16538 value: *mut glib::GVariant,
16539 platform_data: *mut glib::GVariant,
16540 );
16541
16542 pub fn g_seekable_get_type() -> GType;
16546 pub fn g_seekable_can_seek(seekable: *mut GSeekable) -> gboolean;
16547 pub fn g_seekable_can_truncate(seekable: *mut GSeekable) -> gboolean;
16548 pub fn g_seekable_seek(
16549 seekable: *mut GSeekable,
16550 offset: i64,
16551 type_: glib::GSeekType,
16552 cancellable: *mut GCancellable,
16553 error: *mut *mut glib::GError,
16554 ) -> gboolean;
16555 pub fn g_seekable_tell(seekable: *mut GSeekable) -> i64;
16556 pub fn g_seekable_truncate(
16557 seekable: *mut GSeekable,
16558 offset: i64,
16559 cancellable: *mut GCancellable,
16560 error: *mut *mut glib::GError,
16561 ) -> gboolean;
16562
16563 pub fn g_socket_connectable_get_type() -> GType;
16567 pub fn g_socket_connectable_enumerate(
16568 connectable: *mut GSocketConnectable,
16569 ) -> *mut GSocketAddressEnumerator;
16570 pub fn g_socket_connectable_proxy_enumerate(
16571 connectable: *mut GSocketConnectable,
16572 ) -> *mut GSocketAddressEnumerator;
16573 pub fn g_socket_connectable_to_string(connectable: *mut GSocketConnectable) -> *mut c_char;
16574
16575 pub fn g_tls_backend_get_type() -> GType;
16579 pub fn g_tls_backend_get_default() -> *mut GTlsBackend;
16580 pub fn g_tls_backend_get_certificate_type(backend: *mut GTlsBackend) -> GType;
16581 pub fn g_tls_backend_get_client_connection_type(backend: *mut GTlsBackend) -> GType;
16582 pub fn g_tls_backend_get_default_database(backend: *mut GTlsBackend) -> *mut GTlsDatabase;
16583 pub fn g_tls_backend_get_dtls_client_connection_type(backend: *mut GTlsBackend) -> GType;
16584 pub fn g_tls_backend_get_dtls_server_connection_type(backend: *mut GTlsBackend) -> GType;
16585 pub fn g_tls_backend_get_file_database_type(backend: *mut GTlsBackend) -> GType;
16586 pub fn g_tls_backend_get_server_connection_type(backend: *mut GTlsBackend) -> GType;
16587 #[cfg(feature = "v2_60")]
16588 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16589 pub fn g_tls_backend_set_default_database(
16590 backend: *mut GTlsBackend,
16591 database: *mut GTlsDatabase,
16592 );
16593 pub fn g_tls_backend_supports_dtls(backend: *mut GTlsBackend) -> gboolean;
16594 pub fn g_tls_backend_supports_tls(backend: *mut GTlsBackend) -> gboolean;
16595
16596 pub fn g_tls_client_connection_get_type() -> GType;
16600 pub fn g_tls_client_connection_new(
16601 base_io_stream: *mut GIOStream,
16602 server_identity: *mut GSocketConnectable,
16603 error: *mut *mut glib::GError,
16604 ) -> *mut GTlsClientConnection;
16605 pub fn g_tls_client_connection_copy_session_state(
16606 conn: *mut GTlsClientConnection,
16607 source: *mut GTlsClientConnection,
16608 );
16609 pub fn g_tls_client_connection_get_accepted_cas(
16610 conn: *mut GTlsClientConnection,
16611 ) -> *mut glib::GList;
16612 pub fn g_tls_client_connection_get_server_identity(
16613 conn: *mut GTlsClientConnection,
16614 ) -> *mut GSocketConnectable;
16615 pub fn g_tls_client_connection_get_use_ssl3(conn: *mut GTlsClientConnection) -> gboolean;
16616 pub fn g_tls_client_connection_get_validation_flags(
16617 conn: *mut GTlsClientConnection,
16618 ) -> GTlsCertificateFlags;
16619 pub fn g_tls_client_connection_set_server_identity(
16620 conn: *mut GTlsClientConnection,
16621 identity: *mut GSocketConnectable,
16622 );
16623 pub fn g_tls_client_connection_set_use_ssl3(
16624 conn: *mut GTlsClientConnection,
16625 use_ssl3: gboolean,
16626 );
16627 pub fn g_tls_client_connection_set_validation_flags(
16628 conn: *mut GTlsClientConnection,
16629 flags: GTlsCertificateFlags,
16630 );
16631
16632 pub fn g_tls_file_database_get_type() -> GType;
16636 pub fn g_tls_file_database_new(
16637 anchors: *const c_char,
16638 error: *mut *mut glib::GError,
16639 ) -> *mut GTlsFileDatabase;
16640
16641 pub fn g_tls_server_connection_get_type() -> GType;
16645 pub fn g_tls_server_connection_new(
16646 base_io_stream: *mut GIOStream,
16647 certificate: *mut GTlsCertificate,
16648 error: *mut *mut glib::GError,
16649 ) -> *mut GTlsServerConnection;
16650
16651 pub fn g_volume_get_type() -> GType;
16655 pub fn g_volume_can_eject(volume: *mut GVolume) -> gboolean;
16656 pub fn g_volume_can_mount(volume: *mut GVolume) -> gboolean;
16657 pub fn g_volume_eject(
16658 volume: *mut GVolume,
16659 flags: GMountUnmountFlags,
16660 cancellable: *mut GCancellable,
16661 callback: GAsyncReadyCallback,
16662 user_data: gpointer,
16663 );
16664 pub fn g_volume_eject_finish(
16665 volume: *mut GVolume,
16666 result: *mut GAsyncResult,
16667 error: *mut *mut glib::GError,
16668 ) -> gboolean;
16669 pub fn g_volume_eject_with_operation(
16670 volume: *mut GVolume,
16671 flags: GMountUnmountFlags,
16672 mount_operation: *mut GMountOperation,
16673 cancellable: *mut GCancellable,
16674 callback: GAsyncReadyCallback,
16675 user_data: gpointer,
16676 );
16677 pub fn g_volume_eject_with_operation_finish(
16678 volume: *mut GVolume,
16679 result: *mut GAsyncResult,
16680 error: *mut *mut glib::GError,
16681 ) -> gboolean;
16682 pub fn g_volume_enumerate_identifiers(volume: *mut GVolume) -> *mut *mut c_char;
16683 pub fn g_volume_get_activation_root(volume: *mut GVolume) -> *mut GFile;
16684 pub fn g_volume_get_drive(volume: *mut GVolume) -> *mut GDrive;
16685 pub fn g_volume_get_icon(volume: *mut GVolume) -> *mut GIcon;
16686 pub fn g_volume_get_identifier(volume: *mut GVolume, kind: *const c_char) -> *mut c_char;
16687 pub fn g_volume_get_mount(volume: *mut GVolume) -> *mut GMount;
16688 pub fn g_volume_get_name(volume: *mut GVolume) -> *mut c_char;
16689 pub fn g_volume_get_sort_key(volume: *mut GVolume) -> *const c_char;
16690 pub fn g_volume_get_symbolic_icon(volume: *mut GVolume) -> *mut GIcon;
16691 pub fn g_volume_get_uuid(volume: *mut GVolume) -> *mut c_char;
16692 pub fn g_volume_mount(
16693 volume: *mut GVolume,
16694 flags: GMountMountFlags,
16695 mount_operation: *mut GMountOperation,
16696 cancellable: *mut GCancellable,
16697 callback: GAsyncReadyCallback,
16698 user_data: gpointer,
16699 );
16700 pub fn g_volume_mount_finish(
16701 volume: *mut GVolume,
16702 result: *mut GAsyncResult,
16703 error: *mut *mut glib::GError,
16704 ) -> gboolean;
16705 pub fn g_volume_should_automount(volume: *mut GVolume) -> gboolean;
16706
16707 pub fn g_bus_get(
16711 bus_type: GBusType,
16712 cancellable: *mut GCancellable,
16713 callback: GAsyncReadyCallback,
16714 user_data: gpointer,
16715 );
16716 pub fn g_bus_get_finish(
16717 res: *mut GAsyncResult,
16718 error: *mut *mut glib::GError,
16719 ) -> *mut GDBusConnection;
16720 pub fn g_bus_get_sync(
16721 bus_type: GBusType,
16722 cancellable: *mut GCancellable,
16723 error: *mut *mut glib::GError,
16724 ) -> *mut GDBusConnection;
16725 pub fn g_bus_own_name(
16726 bus_type: GBusType,
16727 name: *const c_char,
16728 flags: GBusNameOwnerFlags,
16729 bus_acquired_handler: GBusAcquiredCallback,
16730 name_acquired_handler: GBusNameAcquiredCallback,
16731 name_lost_handler: GBusNameLostCallback,
16732 user_data: gpointer,
16733 user_data_free_func: glib::GDestroyNotify,
16734 ) -> c_uint;
16735 pub fn g_bus_own_name_on_connection(
16736 connection: *mut GDBusConnection,
16737 name: *const c_char,
16738 flags: GBusNameOwnerFlags,
16739 name_acquired_handler: GBusNameAcquiredCallback,
16740 name_lost_handler: GBusNameLostCallback,
16741 user_data: gpointer,
16742 user_data_free_func: glib::GDestroyNotify,
16743 ) -> c_uint;
16744 pub fn g_bus_own_name_on_connection_with_closures(
16745 connection: *mut GDBusConnection,
16746 name: *const c_char,
16747 flags: GBusNameOwnerFlags,
16748 name_acquired_closure: *mut gobject::GClosure,
16749 name_lost_closure: *mut gobject::GClosure,
16750 ) -> c_uint;
16751 pub fn g_bus_own_name_with_closures(
16752 bus_type: GBusType,
16753 name: *const c_char,
16754 flags: GBusNameOwnerFlags,
16755 bus_acquired_closure: *mut gobject::GClosure,
16756 name_acquired_closure: *mut gobject::GClosure,
16757 name_lost_closure: *mut gobject::GClosure,
16758 ) -> c_uint;
16759 pub fn g_bus_unown_name(owner_id: c_uint);
16760 pub fn g_bus_unwatch_name(watcher_id: c_uint);
16761 pub fn g_bus_watch_name(
16762 bus_type: GBusType,
16763 name: *const c_char,
16764 flags: GBusNameWatcherFlags,
16765 name_appeared_handler: GBusNameAppearedCallback,
16766 name_vanished_handler: GBusNameVanishedCallback,
16767 user_data: gpointer,
16768 user_data_free_func: glib::GDestroyNotify,
16769 ) -> c_uint;
16770 pub fn g_bus_watch_name_on_connection(
16771 connection: *mut GDBusConnection,
16772 name: *const c_char,
16773 flags: GBusNameWatcherFlags,
16774 name_appeared_handler: GBusNameAppearedCallback,
16775 name_vanished_handler: GBusNameVanishedCallback,
16776 user_data: gpointer,
16777 user_data_free_func: glib::GDestroyNotify,
16778 ) -> c_uint;
16779 pub fn g_bus_watch_name_on_connection_with_closures(
16780 connection: *mut GDBusConnection,
16781 name: *const c_char,
16782 flags: GBusNameWatcherFlags,
16783 name_appeared_closure: *mut gobject::GClosure,
16784 name_vanished_closure: *mut gobject::GClosure,
16785 ) -> c_uint;
16786 pub fn g_bus_watch_name_with_closures(
16787 bus_type: GBusType,
16788 name: *const c_char,
16789 flags: GBusNameWatcherFlags,
16790 name_appeared_closure: *mut gobject::GClosure,
16791 name_vanished_closure: *mut gobject::GClosure,
16792 ) -> c_uint;
16793 pub fn g_content_type_can_be_executable(type_: *const c_char) -> gboolean;
16794 pub fn g_content_type_equals(type1: *const c_char, type2: *const c_char) -> gboolean;
16795 pub fn g_content_type_from_mime_type(mime_type: *const c_char) -> *mut c_char;
16796 pub fn g_content_type_get_description(type_: *const c_char) -> *mut c_char;
16797 pub fn g_content_type_get_generic_icon_name(type_: *const c_char) -> *mut c_char;
16798 pub fn g_content_type_get_icon(type_: *const c_char) -> *mut GIcon;
16799 #[cfg(feature = "v2_60")]
16800 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16801 pub fn g_content_type_get_mime_dirs() -> *const *const c_char;
16802 pub fn g_content_type_get_mime_type(type_: *const c_char) -> *mut c_char;
16803 pub fn g_content_type_get_symbolic_icon(type_: *const c_char) -> *mut GIcon;
16804 pub fn g_content_type_guess(
16805 filename: *const c_char,
16806 data: *const u8,
16807 data_size: size_t,
16808 result_uncertain: *mut gboolean,
16809 ) -> *mut c_char;
16810 pub fn g_content_type_guess_for_tree(root: *mut GFile) -> *mut *mut c_char;
16811 pub fn g_content_type_is_a(type_: *const c_char, supertype: *const c_char) -> gboolean;
16812 pub fn g_content_type_is_mime_type(type_: *const c_char, mime_type: *const c_char) -> gboolean;
16813 pub fn g_content_type_is_unknown(type_: *const c_char) -> gboolean;
16814 #[cfg(feature = "v2_60")]
16815 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
16816 pub fn g_content_type_set_mime_dirs(dirs: *const *const c_char);
16817 pub fn g_content_types_get_registered() -> *mut glib::GList;
16818 pub fn g_dbus_address_escape_value(string: *const c_char) -> *mut c_char;
16819 pub fn g_dbus_address_get_for_bus_sync(
16820 bus_type: GBusType,
16821 cancellable: *mut GCancellable,
16822 error: *mut *mut glib::GError,
16823 ) -> *mut c_char;
16824 pub fn g_dbus_address_get_stream(
16825 address: *const c_char,
16826 cancellable: *mut GCancellable,
16827 callback: GAsyncReadyCallback,
16828 user_data: gpointer,
16829 );
16830 pub fn g_dbus_address_get_stream_finish(
16831 res: *mut GAsyncResult,
16832 out_guid: *mut *mut c_char,
16833 error: *mut *mut glib::GError,
16834 ) -> *mut GIOStream;
16835 pub fn g_dbus_address_get_stream_sync(
16836 address: *const c_char,
16837 out_guid: *mut *mut c_char,
16838 cancellable: *mut GCancellable,
16839 error: *mut *mut glib::GError,
16840 ) -> *mut GIOStream;
16841 #[cfg(feature = "v2_68")]
16842 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
16843 pub fn g_dbus_escape_object_path(s: *const c_char) -> *mut c_char;
16844 #[cfg(feature = "v2_68")]
16845 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
16846 pub fn g_dbus_escape_object_path_bytestring(bytes: *const u8) -> *mut c_char;
16847 pub fn g_dbus_generate_guid() -> *mut c_char;
16848 pub fn g_dbus_gvalue_to_gvariant(
16849 gvalue: *const gobject::GValue,
16850 type_: *const glib::GVariantType,
16851 ) -> *mut glib::GVariant;
16852 pub fn g_dbus_gvariant_to_gvalue(value: *mut glib::GVariant, out_gvalue: *mut gobject::GValue);
16853 pub fn g_dbus_is_address(string: *const c_char) -> gboolean;
16854 #[cfg(feature = "v2_70")]
16855 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
16856 pub fn g_dbus_is_error_name(string: *const c_char) -> gboolean;
16857 pub fn g_dbus_is_guid(string: *const c_char) -> gboolean;
16858 pub fn g_dbus_is_interface_name(string: *const c_char) -> gboolean;
16859 pub fn g_dbus_is_member_name(string: *const c_char) -> gboolean;
16860 pub fn g_dbus_is_name(string: *const c_char) -> gboolean;
16861 pub fn g_dbus_is_supported_address(
16862 string: *const c_char,
16863 error: *mut *mut glib::GError,
16864 ) -> gboolean;
16865 pub fn g_dbus_is_unique_name(string: *const c_char) -> gboolean;
16866 #[cfg(feature = "v2_68")]
16867 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
16868 pub fn g_dbus_unescape_object_path(s: *const c_char) -> *mut u8;
16869 pub fn g_io_error_from_errno(err_no: c_int) -> GIOErrorEnum;
16870 #[cfg(feature = "v2_74")]
16871 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
16872 pub fn g_io_error_from_file_error(file_error: glib::GFileError) -> GIOErrorEnum;
16873 pub fn g_io_error_quark() -> glib::GQuark;
16874 pub fn g_io_modules_load_all_in_directory(dirname: *const c_char) -> *mut glib::GList;
16875 pub fn g_io_modules_load_all_in_directory_with_scope(
16876 dirname: *const c_char,
16877 scope: *mut GIOModuleScope,
16878 ) -> *mut glib::GList;
16879 pub fn g_io_modules_scan_all_in_directory(dirname: *const c_char);
16880 pub fn g_io_modules_scan_all_in_directory_with_scope(
16881 dirname: *const c_char,
16882 scope: *mut GIOModuleScope,
16883 );
16884 pub fn g_io_scheduler_cancel_all_jobs();
16885 pub fn g_io_scheduler_push_job(
16886 job_func: GIOSchedulerJobFunc,
16887 user_data: gpointer,
16888 notify: glib::GDestroyNotify,
16889 io_priority: c_int,
16890 cancellable: *mut GCancellable,
16891 );
16892 pub fn g_keyfile_settings_backend_new(
16893 filename: *const c_char,
16894 root_path: *const c_char,
16895 root_group: *const c_char,
16896 ) -> *mut GSettingsBackend;
16897 pub fn g_memory_settings_backend_new() -> *mut GSettingsBackend;
16898 pub fn g_networking_init();
16899 pub fn g_null_settings_backend_new() -> *mut GSettingsBackend;
16900 pub fn g_pollable_source_new(pollable_stream: *mut gobject::GObject) -> *mut glib::GSource;
16901 pub fn g_pollable_source_new_full(
16902 pollable_stream: *mut gobject::GObject,
16903 child_source: *mut glib::GSource,
16904 cancellable: *mut GCancellable,
16905 ) -> *mut glib::GSource;
16906 pub fn g_pollable_stream_read(
16907 stream: *mut GInputStream,
16908 buffer: *mut u8,
16909 count: size_t,
16910 blocking: gboolean,
16911 cancellable: *mut GCancellable,
16912 error: *mut *mut glib::GError,
16913 ) -> ssize_t;
16914 pub fn g_pollable_stream_write(
16915 stream: *mut GOutputStream,
16916 buffer: *mut u8,
16917 count: size_t,
16918 blocking: gboolean,
16919 cancellable: *mut GCancellable,
16920 error: *mut *mut glib::GError,
16921 ) -> ssize_t;
16922 pub fn g_pollable_stream_write_all(
16923 stream: *mut GOutputStream,
16924 buffer: *mut u8,
16925 count: size_t,
16926 blocking: gboolean,
16927 bytes_written: *mut size_t,
16928 cancellable: *mut GCancellable,
16929 error: *mut *mut glib::GError,
16930 ) -> gboolean;
16931 pub fn g_resources_enumerate_children(
16932 path: *const c_char,
16933 lookup_flags: GResourceLookupFlags,
16934 error: *mut *mut glib::GError,
16935 ) -> *mut *mut c_char;
16936 pub fn g_resources_get_info(
16937 path: *const c_char,
16938 lookup_flags: GResourceLookupFlags,
16939 size: *mut size_t,
16940 flags: *mut u32,
16941 error: *mut *mut glib::GError,
16942 ) -> gboolean;
16943 #[cfg(feature = "v2_84")]
16944 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
16945 pub fn g_resources_has_children(path: *const c_char) -> gboolean;
16946 pub fn g_resources_lookup_data(
16947 path: *const c_char,
16948 lookup_flags: GResourceLookupFlags,
16949 error: *mut *mut glib::GError,
16950 ) -> *mut glib::GBytes;
16951 pub fn g_resources_open_stream(
16952 path: *const c_char,
16953 lookup_flags: GResourceLookupFlags,
16954 error: *mut *mut glib::GError,
16955 ) -> *mut GInputStream;
16956 pub fn g_resources_register(resource: *mut GResource);
16957 pub fn g_resources_unregister(resource: *mut GResource);
16958 pub fn g_simple_async_report_error_in_idle(
16959 object: *mut gobject::GObject,
16960 callback: GAsyncReadyCallback,
16961 user_data: gpointer,
16962 domain: glib::GQuark,
16963 code: c_int,
16964 format: *const c_char,
16965 ...
16966 );
16967 pub fn g_simple_async_report_gerror_in_idle(
16968 object: *mut gobject::GObject,
16969 callback: GAsyncReadyCallback,
16970 user_data: gpointer,
16971 error: *const glib::GError,
16972 );
16973 pub fn g_simple_async_report_take_gerror_in_idle(
16974 object: *mut gobject::GObject,
16975 callback: GAsyncReadyCallback,
16976 user_data: gpointer,
16977 error: *mut glib::GError,
16978 );
16979
16980}