1 | // This file was generated by gir (https://github.com/gtk-rs/gir) |
2 | // from gir-files (https://github.com/gtk-rs/gir-files) |
3 | // DO NOT EDIT |
4 | |
5 | #![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 | |
14 | mod manual; |
15 | |
16 | pub use manual::*; |
17 | |
18 | #[allow (unused_imports)] |
19 | use libc::{ |
20 | c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, |
21 | intptr_t, size_t, ssize_t, uintptr_t, FILE, |
22 | }; |
23 | |
24 | #[allow (unused_imports)] |
25 | use glib::{gboolean, gconstpointer, gpointer, GType}; |
26 | |
27 | // Enums |
28 | pub type GBusType = c_int; |
29 | pub const G_BUS_TYPE_STARTER: GBusType = -1; |
30 | pub const G_BUS_TYPE_NONE: GBusType = 0; |
31 | pub const G_BUS_TYPE_SYSTEM: GBusType = 1; |
32 | pub const G_BUS_TYPE_SESSION: GBusType = 2; |
33 | |
34 | pub type GConverterResult = c_int; |
35 | pub const G_CONVERTER_ERROR: GConverterResult = 0; |
36 | pub const G_CONVERTER_CONVERTED: GConverterResult = 1; |
37 | pub const G_CONVERTER_FINISHED: GConverterResult = 2; |
38 | pub const G_CONVERTER_FLUSHED: GConverterResult = 3; |
39 | |
40 | pub type GCredentialsType = c_int; |
41 | pub const G_CREDENTIALS_TYPE_INVALID: GCredentialsType = 0; |
42 | pub const G_CREDENTIALS_TYPE_LINUX_UCRED: GCredentialsType = 1; |
43 | pub const G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED: GCredentialsType = 2; |
44 | pub const G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED: GCredentialsType = 3; |
45 | pub const G_CREDENTIALS_TYPE_SOLARIS_UCRED: GCredentialsType = 4; |
46 | pub const G_CREDENTIALS_TYPE_NETBSD_UNPCBID: GCredentialsType = 5; |
47 | pub const G_CREDENTIALS_TYPE_APPLE_XUCRED: GCredentialsType = 6; |
48 | pub const G_CREDENTIALS_TYPE_WIN32_PID: GCredentialsType = 7; |
49 | |
50 | pub type GDBusError = c_int; |
51 | pub const G_DBUS_ERROR_FAILED: GDBusError = 0; |
52 | pub const G_DBUS_ERROR_NO_MEMORY: GDBusError = 1; |
53 | pub const G_DBUS_ERROR_SERVICE_UNKNOWN: GDBusError = 2; |
54 | pub const G_DBUS_ERROR_NAME_HAS_NO_OWNER: GDBusError = 3; |
55 | pub const G_DBUS_ERROR_NO_REPLY: GDBusError = 4; |
56 | pub const G_DBUS_ERROR_IO_ERROR: GDBusError = 5; |
57 | pub const G_DBUS_ERROR_BAD_ADDRESS: GDBusError = 6; |
58 | pub const G_DBUS_ERROR_NOT_SUPPORTED: GDBusError = 7; |
59 | pub const G_DBUS_ERROR_LIMITS_EXCEEDED: GDBusError = 8; |
60 | pub const G_DBUS_ERROR_ACCESS_DENIED: GDBusError = 9; |
61 | pub const G_DBUS_ERROR_AUTH_FAILED: GDBusError = 10; |
62 | pub const G_DBUS_ERROR_NO_SERVER: GDBusError = 11; |
63 | pub const G_DBUS_ERROR_TIMEOUT: GDBusError = 12; |
64 | pub const G_DBUS_ERROR_NO_NETWORK: GDBusError = 13; |
65 | pub const G_DBUS_ERROR_ADDRESS_IN_USE: GDBusError = 14; |
66 | pub const G_DBUS_ERROR_DISCONNECTED: GDBusError = 15; |
67 | pub const G_DBUS_ERROR_INVALID_ARGS: GDBusError = 16; |
68 | pub const G_DBUS_ERROR_FILE_NOT_FOUND: GDBusError = 17; |
69 | pub const G_DBUS_ERROR_FILE_EXISTS: GDBusError = 18; |
70 | pub const G_DBUS_ERROR_UNKNOWN_METHOD: GDBusError = 19; |
71 | pub const G_DBUS_ERROR_TIMED_OUT: GDBusError = 20; |
72 | pub const G_DBUS_ERROR_MATCH_RULE_NOT_FOUND: GDBusError = 21; |
73 | pub const G_DBUS_ERROR_MATCH_RULE_INVALID: GDBusError = 22; |
74 | pub const G_DBUS_ERROR_SPAWN_EXEC_FAILED: GDBusError = 23; |
75 | pub const G_DBUS_ERROR_SPAWN_FORK_FAILED: GDBusError = 24; |
76 | pub const G_DBUS_ERROR_SPAWN_CHILD_EXITED: GDBusError = 25; |
77 | pub const G_DBUS_ERROR_SPAWN_CHILD_SIGNALED: GDBusError = 26; |
78 | pub const G_DBUS_ERROR_SPAWN_FAILED: GDBusError = 27; |
79 | pub const G_DBUS_ERROR_SPAWN_SETUP_FAILED: GDBusError = 28; |
80 | pub const G_DBUS_ERROR_SPAWN_CONFIG_INVALID: GDBusError = 29; |
81 | pub const G_DBUS_ERROR_SPAWN_SERVICE_INVALID: GDBusError = 30; |
82 | pub const G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND: GDBusError = 31; |
83 | pub const G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID: GDBusError = 32; |
84 | pub const G_DBUS_ERROR_SPAWN_FILE_INVALID: GDBusError = 33; |
85 | pub const G_DBUS_ERROR_SPAWN_NO_MEMORY: GDBusError = 34; |
86 | pub const G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN: GDBusError = 35; |
87 | pub const G_DBUS_ERROR_INVALID_SIGNATURE: GDBusError = 36; |
88 | pub const G_DBUS_ERROR_INVALID_FILE_CONTENT: GDBusError = 37; |
89 | pub const G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN: GDBusError = 38; |
90 | pub const G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN: GDBusError = 39; |
91 | pub const G_DBUS_ERROR_OBJECT_PATH_IN_USE: GDBusError = 40; |
92 | pub const G_DBUS_ERROR_UNKNOWN_OBJECT: GDBusError = 41; |
93 | pub const G_DBUS_ERROR_UNKNOWN_INTERFACE: GDBusError = 42; |
94 | pub const G_DBUS_ERROR_UNKNOWN_PROPERTY: GDBusError = 43; |
95 | pub const G_DBUS_ERROR_PROPERTY_READ_ONLY: GDBusError = 44; |
96 | |
97 | pub type GDBusMessageByteOrder = c_int; |
98 | pub const G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN: GDBusMessageByteOrder = 66; |
99 | pub const G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN: GDBusMessageByteOrder = 108; |
100 | |
101 | pub type GDBusMessageHeaderField = c_int; |
102 | pub const G_DBUS_MESSAGE_HEADER_FIELD_INVALID: GDBusMessageHeaderField = 0; |
103 | pub const G_DBUS_MESSAGE_HEADER_FIELD_PATH: GDBusMessageHeaderField = 1; |
104 | pub const G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE: GDBusMessageHeaderField = 2; |
105 | pub const G_DBUS_MESSAGE_HEADER_FIELD_MEMBER: GDBusMessageHeaderField = 3; |
106 | pub const G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME: GDBusMessageHeaderField = 4; |
107 | pub const G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL: GDBusMessageHeaderField = 5; |
108 | pub const G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION: GDBusMessageHeaderField = 6; |
109 | pub const G_DBUS_MESSAGE_HEADER_FIELD_SENDER: GDBusMessageHeaderField = 7; |
110 | pub const G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE: GDBusMessageHeaderField = 8; |
111 | pub const G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS: GDBusMessageHeaderField = 9; |
112 | |
113 | pub type GDBusMessageType = c_int; |
114 | pub const G_DBUS_MESSAGE_TYPE_INVALID: GDBusMessageType = 0; |
115 | pub const G_DBUS_MESSAGE_TYPE_METHOD_CALL: GDBusMessageType = 1; |
116 | pub const G_DBUS_MESSAGE_TYPE_METHOD_RETURN: GDBusMessageType = 2; |
117 | pub const G_DBUS_MESSAGE_TYPE_ERROR: GDBusMessageType = 3; |
118 | pub const G_DBUS_MESSAGE_TYPE_SIGNAL: GDBusMessageType = 4; |
119 | |
120 | pub type GDataStreamByteOrder = c_int; |
121 | pub const G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN: GDataStreamByteOrder = 0; |
122 | pub const G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN: GDataStreamByteOrder = 1; |
123 | pub const G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN: GDataStreamByteOrder = 2; |
124 | |
125 | pub type GDataStreamNewlineType = c_int; |
126 | pub const G_DATA_STREAM_NEWLINE_TYPE_LF: GDataStreamNewlineType = 0; |
127 | pub const G_DATA_STREAM_NEWLINE_TYPE_CR: GDataStreamNewlineType = 1; |
128 | pub const G_DATA_STREAM_NEWLINE_TYPE_CR_LF: GDataStreamNewlineType = 2; |
129 | pub const G_DATA_STREAM_NEWLINE_TYPE_ANY: GDataStreamNewlineType = 3; |
130 | |
131 | pub type GDriveStartStopType = c_int; |
132 | pub const G_DRIVE_START_STOP_TYPE_UNKNOWN: GDriveStartStopType = 0; |
133 | pub const G_DRIVE_START_STOP_TYPE_SHUTDOWN: GDriveStartStopType = 1; |
134 | pub const G_DRIVE_START_STOP_TYPE_NETWORK: GDriveStartStopType = 2; |
135 | pub const G_DRIVE_START_STOP_TYPE_MULTIDISK: GDriveStartStopType = 3; |
136 | pub const G_DRIVE_START_STOP_TYPE_PASSWORD: GDriveStartStopType = 4; |
137 | |
138 | pub type GEmblemOrigin = c_int; |
139 | pub const G_EMBLEM_ORIGIN_UNKNOWN: GEmblemOrigin = 0; |
140 | pub const G_EMBLEM_ORIGIN_DEVICE: GEmblemOrigin = 1; |
141 | pub const G_EMBLEM_ORIGIN_LIVEMETADATA: GEmblemOrigin = 2; |
142 | pub const G_EMBLEM_ORIGIN_TAG: GEmblemOrigin = 3; |
143 | |
144 | pub type GFileAttributeStatus = c_int; |
145 | pub const G_FILE_ATTRIBUTE_STATUS_UNSET: GFileAttributeStatus = 0; |
146 | pub const G_FILE_ATTRIBUTE_STATUS_SET: GFileAttributeStatus = 1; |
147 | pub const G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING: GFileAttributeStatus = 2; |
148 | |
149 | pub type GFileAttributeType = c_int; |
150 | pub const G_FILE_ATTRIBUTE_TYPE_INVALID: GFileAttributeType = 0; |
151 | pub const G_FILE_ATTRIBUTE_TYPE_STRING: GFileAttributeType = 1; |
152 | pub const G_FILE_ATTRIBUTE_TYPE_BYTE_STRING: GFileAttributeType = 2; |
153 | pub const G_FILE_ATTRIBUTE_TYPE_BOOLEAN: GFileAttributeType = 3; |
154 | pub const G_FILE_ATTRIBUTE_TYPE_UINT32: GFileAttributeType = 4; |
155 | pub const G_FILE_ATTRIBUTE_TYPE_INT32: GFileAttributeType = 5; |
156 | pub const G_FILE_ATTRIBUTE_TYPE_UINT64: GFileAttributeType = 6; |
157 | pub const G_FILE_ATTRIBUTE_TYPE_INT64: GFileAttributeType = 7; |
158 | pub const G_FILE_ATTRIBUTE_TYPE_OBJECT: GFileAttributeType = 8; |
159 | pub const G_FILE_ATTRIBUTE_TYPE_STRINGV: GFileAttributeType = 9; |
160 | |
161 | pub type GFileMonitorEvent = c_int; |
162 | pub const G_FILE_MONITOR_EVENT_CHANGED: GFileMonitorEvent = 0; |
163 | pub const G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: GFileMonitorEvent = 1; |
164 | pub const G_FILE_MONITOR_EVENT_DELETED: GFileMonitorEvent = 2; |
165 | pub const G_FILE_MONITOR_EVENT_CREATED: GFileMonitorEvent = 3; |
166 | pub const G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: GFileMonitorEvent = 4; |
167 | pub const G_FILE_MONITOR_EVENT_PRE_UNMOUNT: GFileMonitorEvent = 5; |
168 | pub const G_FILE_MONITOR_EVENT_UNMOUNTED: GFileMonitorEvent = 6; |
169 | pub const G_FILE_MONITOR_EVENT_MOVED: GFileMonitorEvent = 7; |
170 | pub const G_FILE_MONITOR_EVENT_RENAMED: GFileMonitorEvent = 8; |
171 | pub const G_FILE_MONITOR_EVENT_MOVED_IN: GFileMonitorEvent = 9; |
172 | pub const G_FILE_MONITOR_EVENT_MOVED_OUT: GFileMonitorEvent = 10; |
173 | |
174 | pub type GFileType = c_int; |
175 | pub const G_FILE_TYPE_UNKNOWN: GFileType = 0; |
176 | pub const G_FILE_TYPE_REGULAR: GFileType = 1; |
177 | pub const G_FILE_TYPE_DIRECTORY: GFileType = 2; |
178 | pub const G_FILE_TYPE_SYMBOLIC_LINK: GFileType = 3; |
179 | pub const G_FILE_TYPE_SPECIAL: GFileType = 4; |
180 | pub const G_FILE_TYPE_SHORTCUT: GFileType = 5; |
181 | pub const G_FILE_TYPE_MOUNTABLE: GFileType = 6; |
182 | |
183 | pub type GFilesystemPreviewType = c_int; |
184 | pub const G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS: GFilesystemPreviewType = 0; |
185 | pub const G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL: GFilesystemPreviewType = 1; |
186 | pub const G_FILESYSTEM_PREVIEW_TYPE_NEVER: GFilesystemPreviewType = 2; |
187 | |
188 | pub type GIOErrorEnum = c_int; |
189 | pub const G_IO_ERROR_FAILED: GIOErrorEnum = 0; |
190 | pub const G_IO_ERROR_NOT_FOUND: GIOErrorEnum = 1; |
191 | pub const G_IO_ERROR_EXISTS: GIOErrorEnum = 2; |
192 | pub const G_IO_ERROR_IS_DIRECTORY: GIOErrorEnum = 3; |
193 | pub const G_IO_ERROR_NOT_DIRECTORY: GIOErrorEnum = 4; |
194 | pub const G_IO_ERROR_NOT_EMPTY: GIOErrorEnum = 5; |
195 | pub const G_IO_ERROR_NOT_REGULAR_FILE: GIOErrorEnum = 6; |
196 | pub const G_IO_ERROR_NOT_SYMBOLIC_LINK: GIOErrorEnum = 7; |
197 | pub const G_IO_ERROR_NOT_MOUNTABLE_FILE: GIOErrorEnum = 8; |
198 | pub const G_IO_ERROR_FILENAME_TOO_LONG: GIOErrorEnum = 9; |
199 | pub const G_IO_ERROR_INVALID_FILENAME: GIOErrorEnum = 10; |
200 | pub const G_IO_ERROR_TOO_MANY_LINKS: GIOErrorEnum = 11; |
201 | pub const G_IO_ERROR_NO_SPACE: GIOErrorEnum = 12; |
202 | pub const G_IO_ERROR_INVALID_ARGUMENT: GIOErrorEnum = 13; |
203 | pub const G_IO_ERROR_PERMISSION_DENIED: GIOErrorEnum = 14; |
204 | pub const G_IO_ERROR_NOT_SUPPORTED: GIOErrorEnum = 15; |
205 | pub const G_IO_ERROR_NOT_MOUNTED: GIOErrorEnum = 16; |
206 | pub const G_IO_ERROR_ALREADY_MOUNTED: GIOErrorEnum = 17; |
207 | pub const G_IO_ERROR_CLOSED: GIOErrorEnum = 18; |
208 | pub const G_IO_ERROR_CANCELLED: GIOErrorEnum = 19; |
209 | pub const G_IO_ERROR_PENDING: GIOErrorEnum = 20; |
210 | pub const G_IO_ERROR_READ_ONLY: GIOErrorEnum = 21; |
211 | pub const G_IO_ERROR_CANT_CREATE_BACKUP: GIOErrorEnum = 22; |
212 | pub const G_IO_ERROR_WRONG_ETAG: GIOErrorEnum = 23; |
213 | pub const G_IO_ERROR_TIMED_OUT: GIOErrorEnum = 24; |
214 | pub const G_IO_ERROR_WOULD_RECURSE: GIOErrorEnum = 25; |
215 | pub const G_IO_ERROR_BUSY: GIOErrorEnum = 26; |
216 | pub const G_IO_ERROR_WOULD_BLOCK: GIOErrorEnum = 27; |
217 | pub const G_IO_ERROR_HOST_NOT_FOUND: GIOErrorEnum = 28; |
218 | pub const G_IO_ERROR_WOULD_MERGE: GIOErrorEnum = 29; |
219 | pub const G_IO_ERROR_FAILED_HANDLED: GIOErrorEnum = 30; |
220 | pub const G_IO_ERROR_TOO_MANY_OPEN_FILES: GIOErrorEnum = 31; |
221 | pub const G_IO_ERROR_NOT_INITIALIZED: GIOErrorEnum = 32; |
222 | pub const G_IO_ERROR_ADDRESS_IN_USE: GIOErrorEnum = 33; |
223 | pub const G_IO_ERROR_PARTIAL_INPUT: GIOErrorEnum = 34; |
224 | pub const G_IO_ERROR_INVALID_DATA: GIOErrorEnum = 35; |
225 | pub const G_IO_ERROR_DBUS_ERROR: GIOErrorEnum = 36; |
226 | pub const G_IO_ERROR_HOST_UNREACHABLE: GIOErrorEnum = 37; |
227 | pub const G_IO_ERROR_NETWORK_UNREACHABLE: GIOErrorEnum = 38; |
228 | pub const G_IO_ERROR_CONNECTION_REFUSED: GIOErrorEnum = 39; |
229 | pub const G_IO_ERROR_PROXY_FAILED: GIOErrorEnum = 40; |
230 | pub const G_IO_ERROR_PROXY_AUTH_FAILED: GIOErrorEnum = 41; |
231 | pub const G_IO_ERROR_PROXY_NEED_AUTH: GIOErrorEnum = 42; |
232 | pub const G_IO_ERROR_PROXY_NOT_ALLOWED: GIOErrorEnum = 43; |
233 | pub const G_IO_ERROR_BROKEN_PIPE: GIOErrorEnum = 44; |
234 | pub const G_IO_ERROR_CONNECTION_CLOSED: GIOErrorEnum = 44; |
235 | pub const G_IO_ERROR_NOT_CONNECTED: GIOErrorEnum = 45; |
236 | pub const G_IO_ERROR_MESSAGE_TOO_LARGE: GIOErrorEnum = 46; |
237 | pub const G_IO_ERROR_NO_SUCH_DEVICE: GIOErrorEnum = 47; |
238 | |
239 | pub type GIOModuleScopeFlags = c_int; |
240 | pub const G_IO_MODULE_SCOPE_NONE: GIOModuleScopeFlags = 0; |
241 | pub const G_IO_MODULE_SCOPE_BLOCK_DUPLICATES: GIOModuleScopeFlags = 1; |
242 | |
243 | pub type GMemoryMonitorWarningLevel = c_int; |
244 | pub const G_MEMORY_MONITOR_WARNING_LEVEL_LOW: GMemoryMonitorWarningLevel = 50; |
245 | pub const G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM: GMemoryMonitorWarningLevel = 100; |
246 | pub const G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL: GMemoryMonitorWarningLevel = 255; |
247 | |
248 | pub type GMountOperationResult = c_int; |
249 | pub const G_MOUNT_OPERATION_HANDLED: GMountOperationResult = 0; |
250 | pub const G_MOUNT_OPERATION_ABORTED: GMountOperationResult = 1; |
251 | pub const G_MOUNT_OPERATION_UNHANDLED: GMountOperationResult = 2; |
252 | |
253 | pub type GNetworkConnectivity = c_int; |
254 | pub const G_NETWORK_CONNECTIVITY_LOCAL: GNetworkConnectivity = 1; |
255 | pub const G_NETWORK_CONNECTIVITY_LIMITED: GNetworkConnectivity = 2; |
256 | pub const G_NETWORK_CONNECTIVITY_PORTAL: GNetworkConnectivity = 3; |
257 | pub const G_NETWORK_CONNECTIVITY_FULL: GNetworkConnectivity = 4; |
258 | |
259 | pub type GNotificationPriority = c_int; |
260 | pub const G_NOTIFICATION_PRIORITY_NORMAL: GNotificationPriority = 0; |
261 | pub const G_NOTIFICATION_PRIORITY_LOW: GNotificationPriority = 1; |
262 | pub const G_NOTIFICATION_PRIORITY_HIGH: GNotificationPriority = 2; |
263 | pub const G_NOTIFICATION_PRIORITY_URGENT: GNotificationPriority = 3; |
264 | |
265 | pub type GPasswordSave = c_int; |
266 | pub const G_PASSWORD_SAVE_NEVER: GPasswordSave = 0; |
267 | pub const G_PASSWORD_SAVE_FOR_SESSION: GPasswordSave = 1; |
268 | pub const G_PASSWORD_SAVE_PERMANENTLY: GPasswordSave = 2; |
269 | |
270 | pub type GPollableReturn = c_int; |
271 | pub const G_POLLABLE_RETURN_FAILED: GPollableReturn = 0; |
272 | pub const G_POLLABLE_RETURN_OK: GPollableReturn = 1; |
273 | pub const G_POLLABLE_RETURN_WOULD_BLOCK: GPollableReturn = -27; |
274 | |
275 | pub type GResolverError = c_int; |
276 | pub const G_RESOLVER_ERROR_NOT_FOUND: GResolverError = 0; |
277 | pub const G_RESOLVER_ERROR_TEMPORARY_FAILURE: GResolverError = 1; |
278 | pub const G_RESOLVER_ERROR_INTERNAL: GResolverError = 2; |
279 | |
280 | pub type GResolverRecordType = c_int; |
281 | pub const G_RESOLVER_RECORD_SRV: GResolverRecordType = 1; |
282 | pub const G_RESOLVER_RECORD_MX: GResolverRecordType = 2; |
283 | pub const G_RESOLVER_RECORD_TXT: GResolverRecordType = 3; |
284 | pub const G_RESOLVER_RECORD_SOA: GResolverRecordType = 4; |
285 | pub const G_RESOLVER_RECORD_NS: GResolverRecordType = 5; |
286 | |
287 | pub type GResourceError = c_int; |
288 | pub const G_RESOURCE_ERROR_NOT_FOUND: GResourceError = 0; |
289 | pub const G_RESOURCE_ERROR_INTERNAL: GResourceError = 1; |
290 | |
291 | pub type GSocketClientEvent = c_int; |
292 | pub const G_SOCKET_CLIENT_RESOLVING: GSocketClientEvent = 0; |
293 | pub const G_SOCKET_CLIENT_RESOLVED: GSocketClientEvent = 1; |
294 | pub const G_SOCKET_CLIENT_CONNECTING: GSocketClientEvent = 2; |
295 | pub const G_SOCKET_CLIENT_CONNECTED: GSocketClientEvent = 3; |
296 | pub const G_SOCKET_CLIENT_PROXY_NEGOTIATING: GSocketClientEvent = 4; |
297 | pub const G_SOCKET_CLIENT_PROXY_NEGOTIATED: GSocketClientEvent = 5; |
298 | pub const G_SOCKET_CLIENT_TLS_HANDSHAKING: GSocketClientEvent = 6; |
299 | pub const G_SOCKET_CLIENT_TLS_HANDSHAKED: GSocketClientEvent = 7; |
300 | pub const G_SOCKET_CLIENT_COMPLETE: GSocketClientEvent = 8; |
301 | |
302 | pub type GSocketListenerEvent = c_int; |
303 | pub const G_SOCKET_LISTENER_BINDING: GSocketListenerEvent = 0; |
304 | pub const G_SOCKET_LISTENER_BOUND: GSocketListenerEvent = 1; |
305 | pub const G_SOCKET_LISTENER_LISTENING: GSocketListenerEvent = 2; |
306 | pub const G_SOCKET_LISTENER_LISTENED: GSocketListenerEvent = 3; |
307 | |
308 | pub type GSocketProtocol = c_int; |
309 | pub const G_SOCKET_PROTOCOL_UNKNOWN: GSocketProtocol = -1; |
310 | pub const G_SOCKET_PROTOCOL_DEFAULT: GSocketProtocol = 0; |
311 | pub const G_SOCKET_PROTOCOL_TCP: GSocketProtocol = 6; |
312 | pub const G_SOCKET_PROTOCOL_UDP: GSocketProtocol = 17; |
313 | pub const G_SOCKET_PROTOCOL_SCTP: GSocketProtocol = 132; |
314 | |
315 | pub type GSocketType = c_int; |
316 | pub const G_SOCKET_TYPE_INVALID: GSocketType = 0; |
317 | pub const G_SOCKET_TYPE_STREAM: GSocketType = 1; |
318 | pub const G_SOCKET_TYPE_DATAGRAM: GSocketType = 2; |
319 | pub const G_SOCKET_TYPE_SEQPACKET: GSocketType = 3; |
320 | |
321 | pub type GTlsAuthenticationMode = c_int; |
322 | pub const G_TLS_AUTHENTICATION_NONE: GTlsAuthenticationMode = 0; |
323 | pub const G_TLS_AUTHENTICATION_REQUESTED: GTlsAuthenticationMode = 1; |
324 | pub const G_TLS_AUTHENTICATION_REQUIRED: GTlsAuthenticationMode = 2; |
325 | |
326 | pub type GTlsCertificateRequestFlags = c_int; |
327 | pub const G_TLS_CERTIFICATE_REQUEST_NONE: GTlsCertificateRequestFlags = 0; |
328 | |
329 | pub type GTlsChannelBindingError = c_int; |
330 | pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_IMPLEMENTED: GTlsChannelBindingError = 0; |
331 | pub const G_TLS_CHANNEL_BINDING_ERROR_INVALID_STATE: GTlsChannelBindingError = 1; |
332 | pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_AVAILABLE: GTlsChannelBindingError = 2; |
333 | pub const G_TLS_CHANNEL_BINDING_ERROR_NOT_SUPPORTED: GTlsChannelBindingError = 3; |
334 | pub const G_TLS_CHANNEL_BINDING_ERROR_GENERAL_ERROR: GTlsChannelBindingError = 4; |
335 | |
336 | pub type GTlsChannelBindingType = c_int; |
337 | pub const G_TLS_CHANNEL_BINDING_TLS_UNIQUE: GTlsChannelBindingType = 0; |
338 | pub const G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT: GTlsChannelBindingType = 1; |
339 | pub const G_TLS_CHANNEL_BINDING_TLS_EXPORTER: GTlsChannelBindingType = 2; |
340 | |
341 | pub type GTlsDatabaseLookupFlags = c_int; |
342 | pub const G_TLS_DATABASE_LOOKUP_NONE: GTlsDatabaseLookupFlags = 0; |
343 | pub const G_TLS_DATABASE_LOOKUP_KEYPAIR: GTlsDatabaseLookupFlags = 1; |
344 | |
345 | pub type GTlsError = c_int; |
346 | pub const G_TLS_ERROR_UNAVAILABLE: GTlsError = 0; |
347 | pub const G_TLS_ERROR_MISC: GTlsError = 1; |
348 | pub const G_TLS_ERROR_BAD_CERTIFICATE: GTlsError = 2; |
349 | pub const G_TLS_ERROR_NOT_TLS: GTlsError = 3; |
350 | pub const G_TLS_ERROR_HANDSHAKE: GTlsError = 4; |
351 | pub const G_TLS_ERROR_CERTIFICATE_REQUIRED: GTlsError = 5; |
352 | pub const G_TLS_ERROR_EOF: GTlsError = 6; |
353 | pub const G_TLS_ERROR_INAPPROPRIATE_FALLBACK: GTlsError = 7; |
354 | pub const G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD: GTlsError = 8; |
355 | |
356 | pub type GTlsInteractionResult = c_int; |
357 | pub const G_TLS_INTERACTION_UNHANDLED: GTlsInteractionResult = 0; |
358 | pub const G_TLS_INTERACTION_HANDLED: GTlsInteractionResult = 1; |
359 | pub const G_TLS_INTERACTION_FAILED: GTlsInteractionResult = 2; |
360 | |
361 | pub type GTlsProtocolVersion = c_int; |
362 | pub const G_TLS_PROTOCOL_VERSION_UNKNOWN: GTlsProtocolVersion = 0; |
363 | pub const G_TLS_PROTOCOL_VERSION_SSL_3_0: GTlsProtocolVersion = 1; |
364 | pub const G_TLS_PROTOCOL_VERSION_TLS_1_0: GTlsProtocolVersion = 2; |
365 | pub const G_TLS_PROTOCOL_VERSION_TLS_1_1: GTlsProtocolVersion = 3; |
366 | pub const G_TLS_PROTOCOL_VERSION_TLS_1_2: GTlsProtocolVersion = 4; |
367 | pub const G_TLS_PROTOCOL_VERSION_TLS_1_3: GTlsProtocolVersion = 5; |
368 | pub const G_TLS_PROTOCOL_VERSION_DTLS_1_0: GTlsProtocolVersion = 201; |
369 | pub const G_TLS_PROTOCOL_VERSION_DTLS_1_2: GTlsProtocolVersion = 202; |
370 | |
371 | pub type GTlsRehandshakeMode = c_int; |
372 | pub const G_TLS_REHANDSHAKE_NEVER: GTlsRehandshakeMode = 0; |
373 | pub const G_TLS_REHANDSHAKE_SAFELY: GTlsRehandshakeMode = 1; |
374 | pub const G_TLS_REHANDSHAKE_UNSAFELY: GTlsRehandshakeMode = 2; |
375 | |
376 | pub type GUnixSocketAddressType = c_int; |
377 | pub const G_UNIX_SOCKET_ADDRESS_INVALID: GUnixSocketAddressType = 0; |
378 | pub const G_UNIX_SOCKET_ADDRESS_ANONYMOUS: GUnixSocketAddressType = 1; |
379 | pub const G_UNIX_SOCKET_ADDRESS_PATH: GUnixSocketAddressType = 2; |
380 | pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT: GUnixSocketAddressType = 3; |
381 | pub const G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED: GUnixSocketAddressType = 4; |
382 | |
383 | pub type GZlibCompressorFormat = c_int; |
384 | pub const G_ZLIB_COMPRESSOR_FORMAT_ZLIB: GZlibCompressorFormat = 0; |
385 | pub const G_ZLIB_COMPRESSOR_FORMAT_GZIP: GZlibCompressorFormat = 1; |
386 | pub const G_ZLIB_COMPRESSOR_FORMAT_RAW: GZlibCompressorFormat = 2; |
387 | |
388 | // Constants |
389 | pub const G_DBUS_METHOD_INVOCATION_HANDLED: gboolean = glib::GTRUE; |
390 | pub const G_DBUS_METHOD_INVOCATION_UNHANDLED: gboolean = glib::GFALSE; |
391 | pub const G_DEBUG_CONTROLLER_EXTENSION_POINT_NAME: &[u8] = b"gio-debug-controller \0" ; |
392 | pub const G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: &[u8] = b"gio-desktop-app-info-lookup \0" ; |
393 | pub const G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device \0" ; |
394 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE: &[u8] = b"access::can-delete \0" ; |
395 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: &[u8] = b"access::can-execute \0" ; |
396 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_READ: &[u8] = b"access::can-read \0" ; |
397 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME: &[u8] = b"access::can-rename \0" ; |
398 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH: &[u8] = b"access::can-trash \0" ; |
399 | pub const G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE: &[u8] = b"access::can-write \0" ; |
400 | pub const G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE: &[u8] = b"dos::is-archive \0" ; |
401 | pub const G_FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: &[u8] = b"dos::is-mountpoint \0" ; |
402 | pub const G_FILE_ATTRIBUTE_DOS_IS_SYSTEM: &[u8] = b"dos::is-system \0" ; |
403 | pub const G_FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: &[u8] = b"dos::reparse-point-tag \0" ; |
404 | pub const G_FILE_ATTRIBUTE_ETAG_VALUE: &[u8] = b"etag::value \0" ; |
405 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_FREE: &[u8] = b"filesystem::free \0" ; |
406 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_READONLY: &[u8] = b"filesystem::readonly \0" ; |
407 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE: &[u8] = b"filesystem::remote \0" ; |
408 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_SIZE: &[u8] = b"filesystem::size \0" ; |
409 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_TYPE: &[u8] = b"filesystem::type \0" ; |
410 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_USED: &[u8] = b"filesystem::used \0" ; |
411 | pub const G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: &[u8] = b"filesystem::use-preview \0" ; |
412 | pub const G_FILE_ATTRIBUTE_GVFS_BACKEND: &[u8] = b"gvfs::backend \0" ; |
413 | pub const G_FILE_ATTRIBUTE_ID_FILE: &[u8] = b"id::file \0" ; |
414 | pub const G_FILE_ATTRIBUTE_ID_FILESYSTEM: &[u8] = b"id::filesystem \0" ; |
415 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: &[u8] = b"mountable::can-eject \0" ; |
416 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: &[u8] = b"mountable::can-mount \0" ; |
417 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: &[u8] = b"mountable::can-poll \0" ; |
418 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START: &[u8] = b"mountable::can-start \0" ; |
419 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: &[u8] = b"mountable::can-start-degraded \0" ; |
420 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: &[u8] = b"mountable::can-stop \0" ; |
421 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: &[u8] = b"mountable::can-unmount \0" ; |
422 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: &[u8] = b"mountable::hal-udi \0" ; |
423 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: &[u8] = |
424 | b"mountable::is-media-check-automatic \0" ; |
425 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: &[u8] = b"mountable::start-stop-type \0" ; |
426 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: &[u8] = b"mountable::unix-device \0" ; |
427 | pub const G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: &[u8] = b"mountable::unix-device-file \0" ; |
428 | pub const G_FILE_ATTRIBUTE_OWNER_GROUP: &[u8] = b"owner::group \0" ; |
429 | pub const G_FILE_ATTRIBUTE_OWNER_USER: &[u8] = b"owner::user \0" ; |
430 | pub const G_FILE_ATTRIBUTE_OWNER_USER_REAL: &[u8] = b"owner::user-real \0" ; |
431 | pub const G_FILE_ATTRIBUTE_PREVIEW_ICON: &[u8] = b"preview::icon \0" ; |
432 | pub const G_FILE_ATTRIBUTE_RECENT_MODIFIED: &[u8] = b"recent::modified \0" ; |
433 | pub const G_FILE_ATTRIBUTE_SELINUX_CONTEXT: &[u8] = b"selinux::context \0" ; |
434 | pub const G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: &[u8] = b"standard::allocated-size \0" ; |
435 | pub const G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: &[u8] = b"standard::content-type \0" ; |
436 | pub const G_FILE_ATTRIBUTE_STANDARD_COPY_NAME: &[u8] = b"standard::copy-name \0" ; |
437 | pub const G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION: &[u8] = b"standard::description \0" ; |
438 | pub const G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: &[u8] = b"standard::display-name \0" ; |
439 | pub const G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME: &[u8] = b"standard::edit-name \0" ; |
440 | pub const G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: &[u8] = b"standard::fast-content-type \0" ; |
441 | pub const G_FILE_ATTRIBUTE_STANDARD_ICON: &[u8] = b"standard::icon \0" ; |
442 | pub const G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP: &[u8] = b"standard::is-backup \0" ; |
443 | pub const G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: &[u8] = b"standard::is-hidden \0" ; |
444 | pub const G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: &[u8] = b"standard::is-symlink \0" ; |
445 | pub const G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: &[u8] = b"standard::is-virtual \0" ; |
446 | pub const G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: &[u8] = b"standard::is-volatile \0" ; |
447 | pub const G_FILE_ATTRIBUTE_STANDARD_NAME: &[u8] = b"standard::name \0" ; |
448 | pub const G_FILE_ATTRIBUTE_STANDARD_SIZE: &[u8] = b"standard::size \0" ; |
449 | pub const G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER: &[u8] = b"standard::sort-order \0" ; |
450 | pub const G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: &[u8] = b"standard::symbolic-icon \0" ; |
451 | pub const G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: &[u8] = b"standard::symlink-target \0" ; |
452 | pub const G_FILE_ATTRIBUTE_STANDARD_TARGET_URI: &[u8] = b"standard::target-uri \0" ; |
453 | pub const G_FILE_ATTRIBUTE_STANDARD_TYPE: &[u8] = b"standard::type \0" ; |
454 | pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED: &[u8] = b"thumbnail::failed \0" ; |
455 | pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_LARGE: &[u8] = b"thumbnail::failed-large \0" ; |
456 | pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_NORMAL: &[u8] = b"thumbnail::failed-normal \0" ; |
457 | pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XLARGE: &[u8] = b"thumbnail::failed-xlarge \0" ; |
458 | pub const G_FILE_ATTRIBUTE_THUMBNAILING_FAILED_XXLARGE: &[u8] = b"thumbnail::failed-xxlarge \0" ; |
459 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: &[u8] = b"thumbnail::is-valid \0" ; |
460 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_LARGE: &[u8] = b"thumbnail::is-valid-large \0" ; |
461 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_NORMAL: &[u8] = b"thumbnail::is-valid-normal \0" ; |
462 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XLARGE: &[u8] = b"thumbnail::is-valid-xlarge \0" ; |
463 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID_XXLARGE: &[u8] = b"thumbnail::is-valid-xxlarge \0" ; |
464 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH: &[u8] = b"thumbnail::path \0" ; |
465 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_LARGE: &[u8] = b"thumbnail::path-large \0" ; |
466 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_NORMAL: &[u8] = b"thumbnail::path-normal \0" ; |
467 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XLARGE: &[u8] = b"thumbnail::path-xlarge \0" ; |
468 | pub const G_FILE_ATTRIBUTE_THUMBNAIL_PATH_XXLARGE: &[u8] = b"thumbnail::path-xxlarge \0" ; |
469 | pub const G_FILE_ATTRIBUTE_TIME_ACCESS: &[u8] = b"time::access \0" ; |
470 | pub const G_FILE_ATTRIBUTE_TIME_ACCESS_NSEC: &[u8] = b"time::access-nsec \0" ; |
471 | pub const G_FILE_ATTRIBUTE_TIME_ACCESS_USEC: &[u8] = b"time::access-usec \0" ; |
472 | pub const G_FILE_ATTRIBUTE_TIME_CHANGED: &[u8] = b"time::changed \0" ; |
473 | pub const G_FILE_ATTRIBUTE_TIME_CHANGED_NSEC: &[u8] = b"time::changed-nsec \0" ; |
474 | pub const G_FILE_ATTRIBUTE_TIME_CHANGED_USEC: &[u8] = b"time::changed-usec \0" ; |
475 | pub const G_FILE_ATTRIBUTE_TIME_CREATED: &[u8] = b"time::created \0" ; |
476 | pub const G_FILE_ATTRIBUTE_TIME_CREATED_NSEC: &[u8] = b"time::created-nsec \0" ; |
477 | pub const G_FILE_ATTRIBUTE_TIME_CREATED_USEC: &[u8] = b"time::created-usec \0" ; |
478 | pub const G_FILE_ATTRIBUTE_TIME_MODIFIED: &[u8] = b"time::modified \0" ; |
479 | pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_NSEC: &[u8] = b"time::modified-nsec \0" ; |
480 | pub const G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC: &[u8] = b"time::modified-usec \0" ; |
481 | pub const G_FILE_ATTRIBUTE_TRASH_DELETION_DATE: &[u8] = b"trash::deletion-date \0" ; |
482 | pub const G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT: &[u8] = b"trash::item-count \0" ; |
483 | pub const G_FILE_ATTRIBUTE_TRASH_ORIG_PATH: &[u8] = b"trash::orig-path \0" ; |
484 | pub const G_FILE_ATTRIBUTE_UNIX_BLOCKS: &[u8] = b"unix::blocks \0" ; |
485 | pub const G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: &[u8] = b"unix::block-size \0" ; |
486 | pub const G_FILE_ATTRIBUTE_UNIX_DEVICE: &[u8] = b"unix::device \0" ; |
487 | pub const G_FILE_ATTRIBUTE_UNIX_GID: &[u8] = b"unix::gid \0" ; |
488 | pub const G_FILE_ATTRIBUTE_UNIX_INODE: &[u8] = b"unix::inode \0" ; |
489 | pub const G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: &[u8] = b"unix::is-mountpoint \0" ; |
490 | pub const G_FILE_ATTRIBUTE_UNIX_MODE: &[u8] = b"unix::mode \0" ; |
491 | pub const G_FILE_ATTRIBUTE_UNIX_NLINK: &[u8] = b"unix::nlink \0" ; |
492 | pub const G_FILE_ATTRIBUTE_UNIX_RDEV: &[u8] = b"unix::rdev \0" ; |
493 | pub const G_FILE_ATTRIBUTE_UNIX_UID: &[u8] = b"unix::uid \0" ; |
494 | pub const G_MEMORY_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-memory-monitor \0" ; |
495 | pub const G_MENU_ATTRIBUTE_ACTION: &[u8] = b"action \0" ; |
496 | pub const G_MENU_ATTRIBUTE_ACTION_NAMESPACE: &[u8] = b"action-namespace \0" ; |
497 | pub const G_MENU_ATTRIBUTE_ICON: &[u8] = b"icon \0" ; |
498 | pub const G_MENU_ATTRIBUTE_LABEL: &[u8] = b"label \0" ; |
499 | pub const G_MENU_ATTRIBUTE_TARGET: &[u8] = b"target \0" ; |
500 | pub const G_MENU_EXPORTER_MAX_SECTION_SIZE: c_int = 1000; |
501 | pub const G_MENU_LINK_SECTION: &[u8] = b"section \0" ; |
502 | pub const G_MENU_LINK_SUBMENU: &[u8] = b"submenu \0" ; |
503 | pub const G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-native-volume-monitor \0" ; |
504 | pub const G_NETWORK_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-network-monitor \0" ; |
505 | pub const G_POWER_PROFILE_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-power-profile-monitor \0" ; |
506 | pub const G_PROXY_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy \0" ; |
507 | pub const G_PROXY_RESOLVER_EXTENSION_POINT_NAME: &[u8] = b"gio-proxy-resolver \0" ; |
508 | pub const G_SETTINGS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gsettings-backend \0" ; |
509 | pub const G_TLS_BACKEND_EXTENSION_POINT_NAME: &[u8] = b"gio-tls-backend \0" ; |
510 | pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: &[u8] = b"1.3.6.1.5.5.7.3.2 \0" ; |
511 | pub const G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: &[u8] = b"1.3.6.1.5.5.7.3.1 \0" ; |
512 | pub const G_VFS_EXTENSION_POINT_NAME: &[u8] = b"gio-vfs \0" ; |
513 | pub const G_VOLUME_IDENTIFIER_KIND_CLASS: &[u8] = b"class \0" ; |
514 | pub const G_VOLUME_IDENTIFIER_KIND_HAL_UDI: &[u8] = b"hal-udi \0" ; |
515 | pub const G_VOLUME_IDENTIFIER_KIND_LABEL: &[u8] = b"label \0" ; |
516 | pub const G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT: &[u8] = b"nfs-mount \0" ; |
517 | pub const G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: &[u8] = b"unix-device \0" ; |
518 | pub const G_VOLUME_IDENTIFIER_KIND_UUID: &[u8] = b"uuid \0" ; |
519 | pub const G_VOLUME_MONITOR_EXTENSION_POINT_NAME: &[u8] = b"gio-volume-monitor \0" ; |
520 | |
521 | // Flags |
522 | pub type GAppInfoCreateFlags = c_uint; |
523 | pub const G_APP_INFO_CREATE_NONE: GAppInfoCreateFlags = 0; |
524 | pub const G_APP_INFO_CREATE_NEEDS_TERMINAL: GAppInfoCreateFlags = 1; |
525 | pub const G_APP_INFO_CREATE_SUPPORTS_URIS: GAppInfoCreateFlags = 2; |
526 | pub const G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION: GAppInfoCreateFlags = 4; |
527 | |
528 | pub type GApplicationFlags = c_uint; |
529 | pub const G_APPLICATION_FLAGS_NONE: GApplicationFlags = 0; |
530 | pub const G_APPLICATION_DEFAULT_FLAGS: GApplicationFlags = 0; |
531 | pub const G_APPLICATION_IS_SERVICE: GApplicationFlags = 1; |
532 | pub const G_APPLICATION_IS_LAUNCHER: GApplicationFlags = 2; |
533 | pub const G_APPLICATION_HANDLES_OPEN: GApplicationFlags = 4; |
534 | pub const G_APPLICATION_HANDLES_COMMAND_LINE: GApplicationFlags = 8; |
535 | pub const G_APPLICATION_SEND_ENVIRONMENT: GApplicationFlags = 16; |
536 | pub const G_APPLICATION_NON_UNIQUE: GApplicationFlags = 32; |
537 | pub const G_APPLICATION_CAN_OVERRIDE_APP_ID: GApplicationFlags = 64; |
538 | pub const G_APPLICATION_ALLOW_REPLACEMENT: GApplicationFlags = 128; |
539 | pub const G_APPLICATION_REPLACE: GApplicationFlags = 256; |
540 | |
541 | pub type GAskPasswordFlags = c_uint; |
542 | pub const G_ASK_PASSWORD_NEED_PASSWORD: GAskPasswordFlags = 1; |
543 | pub const G_ASK_PASSWORD_NEED_USERNAME: GAskPasswordFlags = 2; |
544 | pub const G_ASK_PASSWORD_NEED_DOMAIN: GAskPasswordFlags = 4; |
545 | pub const G_ASK_PASSWORD_SAVING_SUPPORTED: GAskPasswordFlags = 8; |
546 | pub const G_ASK_PASSWORD_ANONYMOUS_SUPPORTED: GAskPasswordFlags = 16; |
547 | pub const G_ASK_PASSWORD_TCRYPT: GAskPasswordFlags = 32; |
548 | |
549 | pub type GBusNameOwnerFlags = c_uint; |
550 | pub const G_BUS_NAME_OWNER_FLAGS_NONE: GBusNameOwnerFlags = 0; |
551 | pub const G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT: GBusNameOwnerFlags = 1; |
552 | pub const G_BUS_NAME_OWNER_FLAGS_REPLACE: GBusNameOwnerFlags = 2; |
553 | pub const G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE: GBusNameOwnerFlags = 4; |
554 | |
555 | pub type GBusNameWatcherFlags = c_uint; |
556 | pub const G_BUS_NAME_WATCHER_FLAGS_NONE: GBusNameWatcherFlags = 0; |
557 | pub const G_BUS_NAME_WATCHER_FLAGS_AUTO_START: GBusNameWatcherFlags = 1; |
558 | |
559 | pub type GConverterFlags = c_uint; |
560 | pub const G_CONVERTER_NO_FLAGS: GConverterFlags = 0; |
561 | pub const G_CONVERTER_INPUT_AT_END: GConverterFlags = 1; |
562 | pub const G_CONVERTER_FLUSH: GConverterFlags = 2; |
563 | |
564 | pub type GDBusCallFlags = c_uint; |
565 | pub const G_DBUS_CALL_FLAGS_NONE: GDBusCallFlags = 0; |
566 | pub const G_DBUS_CALL_FLAGS_NO_AUTO_START: GDBusCallFlags = 1; |
567 | pub const G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusCallFlags = 2; |
568 | |
569 | pub type GDBusCapabilityFlags = c_uint; |
570 | pub const G_DBUS_CAPABILITY_FLAGS_NONE: GDBusCapabilityFlags = 0; |
571 | pub const G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING: GDBusCapabilityFlags = 1; |
572 | |
573 | pub type GDBusConnectionFlags = c_uint; |
574 | pub const G_DBUS_CONNECTION_FLAGS_NONE: GDBusConnectionFlags = 0; |
575 | pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT: GDBusConnectionFlags = 1; |
576 | pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER: GDBusConnectionFlags = 2; |
577 | pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusConnectionFlags = 4; |
578 | pub const G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION: GDBusConnectionFlags = 8; |
579 | pub const G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING: GDBusConnectionFlags = 16; |
580 | pub const G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusConnectionFlags = 32; |
581 | pub const G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE: GDBusConnectionFlags = 64; |
582 | |
583 | pub type GDBusInterfaceSkeletonFlags = c_uint; |
584 | pub const G_DBUS_INTERFACE_SKELETON_FLAGS_NONE: GDBusInterfaceSkeletonFlags = 0; |
585 | pub const G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD: |
586 | GDBusInterfaceSkeletonFlags = 1; |
587 | |
588 | pub type GDBusMessageFlags = c_uint; |
589 | pub const G_DBUS_MESSAGE_FLAGS_NONE: GDBusMessageFlags = 0; |
590 | pub const G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED: GDBusMessageFlags = 1; |
591 | pub const G_DBUS_MESSAGE_FLAGS_NO_AUTO_START: GDBusMessageFlags = 2; |
592 | pub const G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION: GDBusMessageFlags = 4; |
593 | |
594 | pub type GDBusObjectManagerClientFlags = c_uint; |
595 | pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE: GDBusObjectManagerClientFlags = 0; |
596 | pub const G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START: GDBusObjectManagerClientFlags = 1; |
597 | |
598 | pub type GDBusPropertyInfoFlags = c_uint; |
599 | pub const G_DBUS_PROPERTY_INFO_FLAGS_NONE: GDBusPropertyInfoFlags = 0; |
600 | pub const G_DBUS_PROPERTY_INFO_FLAGS_READABLE: GDBusPropertyInfoFlags = 1; |
601 | pub const G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE: GDBusPropertyInfoFlags = 2; |
602 | |
603 | pub type GDBusProxyFlags = c_uint; |
604 | pub const G_DBUS_PROXY_FLAGS_NONE: GDBusProxyFlags = 0; |
605 | pub const G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES: GDBusProxyFlags = 1; |
606 | pub const G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS: GDBusProxyFlags = 2; |
607 | pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START: GDBusProxyFlags = 4; |
608 | pub const G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES: GDBusProxyFlags = 8; |
609 | pub const G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION: GDBusProxyFlags = 16; |
610 | pub const G_DBUS_PROXY_FLAGS_NO_MATCH_RULE: GDBusProxyFlags = 32; |
611 | |
612 | pub type GDBusSendMessageFlags = c_uint; |
613 | pub const G_DBUS_SEND_MESSAGE_FLAGS_NONE: GDBusSendMessageFlags = 0; |
614 | pub const G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL: GDBusSendMessageFlags = 1; |
615 | |
616 | pub type GDBusServerFlags = c_uint; |
617 | pub const G_DBUS_SERVER_FLAGS_NONE: GDBusServerFlags = 0; |
618 | pub const G_DBUS_SERVER_FLAGS_RUN_IN_THREAD: GDBusServerFlags = 1; |
619 | pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS: GDBusServerFlags = 2; |
620 | pub const G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER: GDBusServerFlags = 4; |
621 | |
622 | pub type GDBusSignalFlags = c_uint; |
623 | pub const G_DBUS_SIGNAL_FLAGS_NONE: GDBusSignalFlags = 0; |
624 | pub const G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE: GDBusSignalFlags = 1; |
625 | pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE: GDBusSignalFlags = 2; |
626 | pub const G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH: GDBusSignalFlags = 4; |
627 | |
628 | pub type GDBusSubtreeFlags = c_uint; |
629 | pub const G_DBUS_SUBTREE_FLAGS_NONE: GDBusSubtreeFlags = 0; |
630 | pub const G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES: GDBusSubtreeFlags = 1; |
631 | |
632 | pub type GDriveStartFlags = c_uint; |
633 | pub const G_DRIVE_START_NONE: GDriveStartFlags = 0; |
634 | |
635 | pub type GFileAttributeInfoFlags = c_uint; |
636 | pub const G_FILE_ATTRIBUTE_INFO_NONE: GFileAttributeInfoFlags = 0; |
637 | pub const G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE: GFileAttributeInfoFlags = 1; |
638 | pub const G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED: GFileAttributeInfoFlags = 2; |
639 | |
640 | pub type GFileCopyFlags = c_uint; |
641 | pub const G_FILE_COPY_NONE: GFileCopyFlags = 0; |
642 | pub const G_FILE_COPY_OVERWRITE: GFileCopyFlags = 1; |
643 | pub const G_FILE_COPY_BACKUP: GFileCopyFlags = 2; |
644 | pub const G_FILE_COPY_NOFOLLOW_SYMLINKS: GFileCopyFlags = 4; |
645 | pub const G_FILE_COPY_ALL_METADATA: GFileCopyFlags = 8; |
646 | pub const G_FILE_COPY_NO_FALLBACK_FOR_MOVE: GFileCopyFlags = 16; |
647 | pub const G_FILE_COPY_TARGET_DEFAULT_PERMS: GFileCopyFlags = 32; |
648 | |
649 | pub type GFileCreateFlags = c_uint; |
650 | pub const G_FILE_CREATE_NONE: GFileCreateFlags = 0; |
651 | pub const G_FILE_CREATE_PRIVATE: GFileCreateFlags = 1; |
652 | pub const G_FILE_CREATE_REPLACE_DESTINATION: GFileCreateFlags = 2; |
653 | |
654 | pub type GFileMeasureFlags = c_uint; |
655 | pub const G_FILE_MEASURE_NONE: GFileMeasureFlags = 0; |
656 | pub const G_FILE_MEASURE_REPORT_ANY_ERROR: GFileMeasureFlags = 2; |
657 | pub const G_FILE_MEASURE_APPARENT_SIZE: GFileMeasureFlags = 4; |
658 | pub const G_FILE_MEASURE_NO_XDEV: GFileMeasureFlags = 8; |
659 | |
660 | pub type GFileMonitorFlags = c_uint; |
661 | pub const G_FILE_MONITOR_NONE: GFileMonitorFlags = 0; |
662 | pub const G_FILE_MONITOR_WATCH_MOUNTS: GFileMonitorFlags = 1; |
663 | pub const G_FILE_MONITOR_SEND_MOVED: GFileMonitorFlags = 2; |
664 | pub const G_FILE_MONITOR_WATCH_HARD_LINKS: GFileMonitorFlags = 4; |
665 | pub const G_FILE_MONITOR_WATCH_MOVES: GFileMonitorFlags = 8; |
666 | |
667 | pub type GFileQueryInfoFlags = c_uint; |
668 | pub const G_FILE_QUERY_INFO_NONE: GFileQueryInfoFlags = 0; |
669 | pub const G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS: GFileQueryInfoFlags = 1; |
670 | |
671 | pub type GIOStreamSpliceFlags = c_uint; |
672 | pub const G_IO_STREAM_SPLICE_NONE: GIOStreamSpliceFlags = 0; |
673 | pub const G_IO_STREAM_SPLICE_CLOSE_STREAM1: GIOStreamSpliceFlags = 1; |
674 | pub const G_IO_STREAM_SPLICE_CLOSE_STREAM2: GIOStreamSpliceFlags = 2; |
675 | pub const G_IO_STREAM_SPLICE_WAIT_FOR_BOTH: GIOStreamSpliceFlags = 4; |
676 | |
677 | pub type GMountMountFlags = c_uint; |
678 | pub const G_MOUNT_MOUNT_NONE: GMountMountFlags = 0; |
679 | |
680 | pub type GMountUnmountFlags = c_uint; |
681 | pub const G_MOUNT_UNMOUNT_NONE: GMountUnmountFlags = 0; |
682 | pub const G_MOUNT_UNMOUNT_FORCE: GMountUnmountFlags = 1; |
683 | |
684 | pub type GOutputStreamSpliceFlags = c_uint; |
685 | pub const G_OUTPUT_STREAM_SPLICE_NONE: GOutputStreamSpliceFlags = 0; |
686 | pub const G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE: GOutputStreamSpliceFlags = 1; |
687 | pub const G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET: GOutputStreamSpliceFlags = 2; |
688 | |
689 | pub type GResolverNameLookupFlags = c_uint; |
690 | pub const G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT: GResolverNameLookupFlags = 0; |
691 | pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY: GResolverNameLookupFlags = 1; |
692 | pub const G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY: GResolverNameLookupFlags = 2; |
693 | |
694 | pub type GResourceFlags = c_uint; |
695 | pub const G_RESOURCE_FLAGS_NONE: GResourceFlags = 0; |
696 | pub const G_RESOURCE_FLAGS_COMPRESSED: GResourceFlags = 1; |
697 | |
698 | pub type GResourceLookupFlags = c_uint; |
699 | pub const G_RESOURCE_LOOKUP_FLAGS_NONE: GResourceLookupFlags = 0; |
700 | |
701 | pub type GSettingsBindFlags = c_uint; |
702 | pub const G_SETTINGS_BIND_DEFAULT: GSettingsBindFlags = 0; |
703 | pub const G_SETTINGS_BIND_GET: GSettingsBindFlags = 1; |
704 | pub const G_SETTINGS_BIND_SET: GSettingsBindFlags = 2; |
705 | pub const G_SETTINGS_BIND_NO_SENSITIVITY: GSettingsBindFlags = 4; |
706 | pub const G_SETTINGS_BIND_GET_NO_CHANGES: GSettingsBindFlags = 8; |
707 | pub const G_SETTINGS_BIND_INVERT_BOOLEAN: GSettingsBindFlags = 16; |
708 | |
709 | pub type GSubprocessFlags = c_uint; |
710 | pub const G_SUBPROCESS_FLAGS_NONE: GSubprocessFlags = 0; |
711 | pub const G_SUBPROCESS_FLAGS_STDIN_PIPE: GSubprocessFlags = 1; |
712 | pub const G_SUBPROCESS_FLAGS_STDIN_INHERIT: GSubprocessFlags = 2; |
713 | pub const G_SUBPROCESS_FLAGS_STDOUT_PIPE: GSubprocessFlags = 4; |
714 | pub const G_SUBPROCESS_FLAGS_STDOUT_SILENCE: GSubprocessFlags = 8; |
715 | pub const G_SUBPROCESS_FLAGS_STDERR_PIPE: GSubprocessFlags = 16; |
716 | pub const G_SUBPROCESS_FLAGS_STDERR_SILENCE: GSubprocessFlags = 32; |
717 | pub const G_SUBPROCESS_FLAGS_STDERR_MERGE: GSubprocessFlags = 64; |
718 | pub const G_SUBPROCESS_FLAGS_INHERIT_FDS: GSubprocessFlags = 128; |
719 | pub const G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP: GSubprocessFlags = 256; |
720 | |
721 | pub type GTestDBusFlags = c_uint; |
722 | pub const G_TEST_DBUS_NONE: GTestDBusFlags = 0; |
723 | |
724 | pub type GTlsCertificateFlags = c_uint; |
725 | pub const G_TLS_CERTIFICATE_NO_FLAGS: GTlsCertificateFlags = 0; |
726 | pub const G_TLS_CERTIFICATE_UNKNOWN_CA: GTlsCertificateFlags = 1; |
727 | pub const G_TLS_CERTIFICATE_BAD_IDENTITY: GTlsCertificateFlags = 2; |
728 | pub const G_TLS_CERTIFICATE_NOT_ACTIVATED: GTlsCertificateFlags = 4; |
729 | pub const G_TLS_CERTIFICATE_EXPIRED: GTlsCertificateFlags = 8; |
730 | pub const G_TLS_CERTIFICATE_REVOKED: GTlsCertificateFlags = 16; |
731 | pub const G_TLS_CERTIFICATE_INSECURE: GTlsCertificateFlags = 32; |
732 | pub const G_TLS_CERTIFICATE_GENERIC_ERROR: GTlsCertificateFlags = 64; |
733 | pub const G_TLS_CERTIFICATE_VALIDATE_ALL: GTlsCertificateFlags = 127; |
734 | |
735 | pub type GTlsDatabaseVerifyFlags = c_uint; |
736 | pub const G_TLS_DATABASE_VERIFY_NONE: GTlsDatabaseVerifyFlags = 0; |
737 | |
738 | pub type GTlsPasswordFlags = c_uint; |
739 | pub const G_TLS_PASSWORD_NONE: GTlsPasswordFlags = 0; |
740 | pub const G_TLS_PASSWORD_RETRY: GTlsPasswordFlags = 2; |
741 | pub const G_TLS_PASSWORD_MANY_TRIES: GTlsPasswordFlags = 4; |
742 | pub const G_TLS_PASSWORD_FINAL_TRY: GTlsPasswordFlags = 8; |
743 | pub const G_TLS_PASSWORD_PKCS11_USER: GTlsPasswordFlags = 16; |
744 | pub const G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER: GTlsPasswordFlags = 32; |
745 | pub const G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC: GTlsPasswordFlags = 64; |
746 | |
747 | // Callbacks |
748 | pub type GAsyncReadyCallback = |
749 | Option<unsafe extern "C" fn(*mut gobject::GObject, *mut GAsyncResult, gpointer)>; |
750 | pub type GBusAcquiredCallback = |
751 | Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>; |
752 | pub type GBusNameAcquiredCallback = |
753 | Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>; |
754 | pub type GBusNameAppearedCallback = |
755 | Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, *const c_char, gpointer)>; |
756 | pub type GBusNameLostCallback = |
757 | Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>; |
758 | pub type GBusNameVanishedCallback = |
759 | Option<unsafe extern "C" fn(*mut GDBusConnection, *const c_char, gpointer)>; |
760 | pub type GCancellableSourceFunc = |
761 | Option<unsafe extern "C" fn(*mut GCancellable, gpointer) -> gboolean>; |
762 | pub type GDBusInterfaceGetPropertyFunc = Option< |
763 | unsafe extern "C" fn( |
764 | *mut GDBusConnection, |
765 | *const c_char, |
766 | *const c_char, |
767 | *const c_char, |
768 | *const c_char, |
769 | *mut *mut glib::GError, |
770 | gpointer, |
771 | ) -> *mut glib::GVariant, |
772 | >; |
773 | pub type GDBusInterfaceMethodCallFunc = Option< |
774 | unsafe extern "C" fn( |
775 | *mut GDBusConnection, |
776 | *const c_char, |
777 | *const c_char, |
778 | *const c_char, |
779 | *const c_char, |
780 | *mut glib::GVariant, |
781 | *mut GDBusMethodInvocation, |
782 | gpointer, |
783 | ), |
784 | >; |
785 | pub type GDBusInterfaceSetPropertyFunc = Option< |
786 | unsafe extern "C" fn( |
787 | *mut GDBusConnection, |
788 | *const c_char, |
789 | *const c_char, |
790 | *const c_char, |
791 | *const c_char, |
792 | *mut glib::GVariant, |
793 | *mut *mut glib::GError, |
794 | gpointer, |
795 | ) -> gboolean, |
796 | >; |
797 | pub type GDBusMessageFilterFunction = Option< |
798 | unsafe extern "C" fn( |
799 | *mut GDBusConnection, |
800 | *mut GDBusMessage, |
801 | gboolean, |
802 | gpointer, |
803 | ) -> *mut GDBusMessage, |
804 | >; |
805 | pub type GDBusProxyTypeFunc = Option< |
806 | unsafe extern "C" fn( |
807 | *mut GDBusObjectManagerClient, |
808 | *const c_char, |
809 | *const c_char, |
810 | gpointer, |
811 | ) -> GType, |
812 | >; |
813 | pub type GDBusSignalCallback = Option< |
814 | unsafe extern "C" fn( |
815 | *mut GDBusConnection, |
816 | *const c_char, |
817 | *const c_char, |
818 | *const c_char, |
819 | *const c_char, |
820 | *mut glib::GVariant, |
821 | gpointer, |
822 | ), |
823 | >; |
824 | pub type GDBusSubtreeDispatchFunc = Option< |
825 | unsafe extern "C" fn( |
826 | *mut GDBusConnection, |
827 | *const c_char, |
828 | *const c_char, |
829 | *const c_char, |
830 | *const c_char, |
831 | *mut gpointer, |
832 | gpointer, |
833 | ) -> *const GDBusInterfaceVTable, |
834 | >; |
835 | pub type GDBusSubtreeEnumerateFunc = Option< |
836 | unsafe extern "C" fn( |
837 | *mut GDBusConnection, |
838 | *const c_char, |
839 | *const c_char, |
840 | gpointer, |
841 | ) -> *mut *mut c_char, |
842 | >; |
843 | pub type GDBusSubtreeIntrospectFunc = Option< |
844 | unsafe extern "C" fn( |
845 | *mut GDBusConnection, |
846 | *const c_char, |
847 | *const c_char, |
848 | *const c_char, |
849 | gpointer, |
850 | ) -> *mut *mut GDBusInterfaceInfo, |
851 | >; |
852 | pub type GDatagramBasedSourceFunc = |
853 | Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition, gpointer) -> gboolean>; |
854 | pub type GDesktopAppLaunchCallback = |
855 | Option<unsafe extern "C" fn(*mut GDesktopAppInfo, glib::GPid, gpointer)>; |
856 | pub type GFileMeasureProgressCallback = |
857 | Option<unsafe extern "C" fn(gboolean, u64, u64, u64, gpointer)>; |
858 | pub type GFileProgressCallback = Option<unsafe extern "C" fn(i64, i64, gpointer)>; |
859 | pub type GFileReadMoreCallback = |
860 | Option<unsafe extern "C" fn(*const c_char, i64, gpointer) -> gboolean>; |
861 | pub type GIOSchedulerJobFunc = |
862 | Option<unsafe extern "C" fn(*mut GIOSchedulerJob, *mut GCancellable, gpointer) -> gboolean>; |
863 | pub type GPollableSourceFunc = |
864 | Option<unsafe extern "C" fn(*mut gobject::GObject, gpointer) -> gboolean>; |
865 | pub type GReallocFunc = Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>; |
866 | pub type GSettingsBindGetMapping = |
867 | Option<unsafe extern "C" fn(*mut gobject::GValue, *mut glib::GVariant, gpointer) -> gboolean>; |
868 | pub type GSettingsBindSetMapping = Option< |
869 | unsafe extern "C" fn( |
870 | *const gobject::GValue, |
871 | *const glib::GVariantType, |
872 | gpointer, |
873 | ) -> *mut glib::GVariant, |
874 | >; |
875 | pub type GSettingsGetMapping = |
876 | Option<unsafe extern "C" fn(*mut glib::GVariant, *mut gpointer, gpointer) -> gboolean>; |
877 | pub type GSimpleAsyncThreadFunc = |
878 | Option<unsafe extern "C" fn(*mut GSimpleAsyncResult, *mut gobject::GObject, *mut GCancellable)>; |
879 | pub type GSocketSourceFunc = |
880 | Option<unsafe extern "C" fn(*mut GSocket, glib::GIOCondition, gpointer) -> gboolean>; |
881 | pub type GTaskThreadFunc = |
882 | Option<unsafe extern "C" fn(*mut GTask, *mut gobject::GObject, gpointer, *mut GCancellable)>; |
883 | pub type GVfsFileLookupFunc = |
884 | Option<unsafe extern "C" fn(*mut GVfs, *const c_char, gpointer) -> *mut GFile>; |
885 | |
886 | // Records |
887 | #[derive (Copy, Clone)] |
888 | #[repr (C)] |
889 | pub struct GActionEntry { |
890 | pub name: *const c_char, |
891 | pub activate: Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>, |
892 | pub parameter_type: *const c_char, |
893 | pub state: *const c_char, |
894 | pub change_state: |
895 | Option<unsafe extern "C" fn(*mut GSimpleAction, *mut glib::GVariant, gpointer)>, |
896 | pub padding: [size_t; 3], |
897 | } |
898 | |
899 | impl ::std::fmt::Debug for GActionEntry { |
900 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
901 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GActionEntry @ {self:p}" )) |
902 | .field("name" , &self.name) |
903 | .field("activate" , &self.activate) |
904 | .field("parameter_type" , &self.parameter_type) |
905 | .field("state" , &self.state) |
906 | .field(name:"change_state" , &self.change_state) |
907 | .finish() |
908 | } |
909 | } |
910 | |
911 | #[derive (Copy, Clone)] |
912 | #[repr (C)] |
913 | pub struct GActionGroupInterface { |
914 | pub g_iface: gobject::GTypeInterface, |
915 | pub has_action: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>, |
916 | pub list_actions: Option<unsafe extern "C" fn(*mut GActionGroup) -> *mut *mut c_char>, |
917 | pub get_action_enabled: |
918 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> gboolean>, |
919 | pub get_action_parameter_type: |
920 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>, |
921 | pub get_action_state_type: |
922 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *const glib::GVariantType>, |
923 | pub get_action_state_hint: |
924 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>, |
925 | pub get_action_state: |
926 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char) -> *mut glib::GVariant>, |
927 | pub change_action_state: |
928 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>, |
929 | pub activate_action: |
930 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>, |
931 | pub action_added: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>, |
932 | pub action_removed: Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char)>, |
933 | pub action_enabled_changed: |
934 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, gboolean)>, |
935 | pub action_state_changed: |
936 | Option<unsafe extern "C" fn(*mut GActionGroup, *const c_char, *mut glib::GVariant)>, |
937 | pub query_action: Option< |
938 | unsafe extern "C" fn( |
939 | *mut GActionGroup, |
940 | *const c_char, |
941 | *mut gboolean, |
942 | *mut *const glib::GVariantType, |
943 | *mut *const glib::GVariantType, |
944 | *mut *mut glib::GVariant, |
945 | *mut *mut glib::GVariant, |
946 | ) -> gboolean, |
947 | >, |
948 | } |
949 | |
950 | impl ::std::fmt::Debug for GActionGroupInterface { |
951 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
952 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GActionGroupInterface @ {self:p}" )) |
953 | .field("g_iface" , &self.g_iface) |
954 | .field("has_action" , &self.has_action) |
955 | .field("list_actions" , &self.list_actions) |
956 | .field("get_action_enabled" , &self.get_action_enabled) |
957 | .field("get_action_parameter_type" , &self.get_action_parameter_type) |
958 | .field("get_action_state_type" , &self.get_action_state_type) |
959 | .field("get_action_state_hint" , &self.get_action_state_hint) |
960 | .field("get_action_state" , &self.get_action_state) |
961 | .field("change_action_state" , &self.change_action_state) |
962 | .field("activate_action" , &self.activate_action) |
963 | .field("action_added" , &self.action_added) |
964 | .field("action_removed" , &self.action_removed) |
965 | .field("action_enabled_changed" , &self.action_enabled_changed) |
966 | .field("action_state_changed" , &self.action_state_changed) |
967 | .field(name:"query_action" , &self.query_action) |
968 | .finish() |
969 | } |
970 | } |
971 | |
972 | #[derive (Copy, Clone)] |
973 | #[repr (C)] |
974 | pub struct GActionInterface { |
975 | pub g_iface: gobject::GTypeInterface, |
976 | pub get_name: Option<unsafe extern "C" fn(*mut GAction) -> *const c_char>, |
977 | pub get_parameter_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>, |
978 | pub get_state_type: Option<unsafe extern "C" fn(*mut GAction) -> *const glib::GVariantType>, |
979 | pub get_state_hint: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>, |
980 | pub get_enabled: Option<unsafe extern "C" fn(*mut GAction) -> gboolean>, |
981 | pub get_state: Option<unsafe extern "C" fn(*mut GAction) -> *mut glib::GVariant>, |
982 | pub change_state: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>, |
983 | pub activate: Option<unsafe extern "C" fn(*mut GAction, *mut glib::GVariant)>, |
984 | } |
985 | |
986 | impl ::std::fmt::Debug for GActionInterface { |
987 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
988 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GActionInterface @ {self:p}" )) |
989 | .field("g_iface" , &self.g_iface) |
990 | .field("get_name" , &self.get_name) |
991 | .field("get_parameter_type" , &self.get_parameter_type) |
992 | .field("get_state_type" , &self.get_state_type) |
993 | .field("get_state_hint" , &self.get_state_hint) |
994 | .field("get_enabled" , &self.get_enabled) |
995 | .field("get_state" , &self.get_state) |
996 | .field("change_state" , &self.change_state) |
997 | .field(name:"activate" , &self.activate) |
998 | .finish() |
999 | } |
1000 | } |
1001 | |
1002 | #[derive (Copy, Clone)] |
1003 | #[repr (C)] |
1004 | pub struct GActionMapInterface { |
1005 | pub g_iface: gobject::GTypeInterface, |
1006 | pub lookup_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char) -> *mut GAction>, |
1007 | pub add_action: Option<unsafe extern "C" fn(*mut GActionMap, *mut GAction)>, |
1008 | pub remove_action: Option<unsafe extern "C" fn(*mut GActionMap, *const c_char)>, |
1009 | } |
1010 | |
1011 | impl ::std::fmt::Debug for GActionMapInterface { |
1012 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1013 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GActionMapInterface @ {self:p}" )) |
1014 | .field("g_iface" , &self.g_iface) |
1015 | .field("lookup_action" , &self.lookup_action) |
1016 | .field("add_action" , &self.add_action) |
1017 | .field(name:"remove_action" , &self.remove_action) |
1018 | .finish() |
1019 | } |
1020 | } |
1021 | |
1022 | #[derive (Copy, Clone)] |
1023 | #[repr (C)] |
1024 | pub struct GAppInfoIface { |
1025 | pub g_iface: gobject::GTypeInterface, |
1026 | pub dup: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GAppInfo>, |
1027 | pub equal: Option<unsafe extern "C" fn(*mut GAppInfo, *mut GAppInfo) -> gboolean>, |
1028 | pub get_id: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1029 | pub get_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1030 | pub get_description: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1031 | pub get_executable: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1032 | pub get_icon: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut GIcon>, |
1033 | pub launch: Option< |
1034 | unsafe extern "C" fn( |
1035 | *mut GAppInfo, |
1036 | *mut glib::GList, |
1037 | *mut GAppLaunchContext, |
1038 | *mut *mut glib::GError, |
1039 | ) -> gboolean, |
1040 | >, |
1041 | pub supports_uris: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1042 | pub supports_files: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1043 | pub launch_uris: Option< |
1044 | unsafe extern "C" fn( |
1045 | *mut GAppInfo, |
1046 | *mut glib::GList, |
1047 | *mut GAppLaunchContext, |
1048 | *mut *mut glib::GError, |
1049 | ) -> gboolean, |
1050 | >, |
1051 | pub should_show: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1052 | pub set_as_default_for_type: Option< |
1053 | unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean, |
1054 | >, |
1055 | pub set_as_default_for_extension: Option< |
1056 | unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean, |
1057 | >, |
1058 | pub add_supports_type: Option< |
1059 | unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean, |
1060 | >, |
1061 | pub can_remove_supports_type: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1062 | pub remove_supports_type: Option< |
1063 | unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean, |
1064 | >, |
1065 | pub can_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1066 | pub do_delete: Option<unsafe extern "C" fn(*mut GAppInfo) -> gboolean>, |
1067 | pub get_commandline: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1068 | pub get_display_name: Option<unsafe extern "C" fn(*mut GAppInfo) -> *const c_char>, |
1069 | pub set_as_last_used_for_type: Option< |
1070 | unsafe extern "C" fn(*mut GAppInfo, *const c_char, *mut *mut glib::GError) -> gboolean, |
1071 | >, |
1072 | pub get_supported_types: Option<unsafe extern "C" fn(*mut GAppInfo) -> *mut *const c_char>, |
1073 | pub launch_uris_async: Option< |
1074 | unsafe extern "C" fn( |
1075 | *mut GAppInfo, |
1076 | *mut glib::GList, |
1077 | *mut GAppLaunchContext, |
1078 | *mut GCancellable, |
1079 | GAsyncReadyCallback, |
1080 | gpointer, |
1081 | ), |
1082 | >, |
1083 | pub launch_uris_finish: Option< |
1084 | unsafe extern "C" fn(*mut GAppInfo, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
1085 | >, |
1086 | } |
1087 | |
1088 | impl ::std::fmt::Debug for GAppInfoIface { |
1089 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1090 | f.debug_struct(&format!("GAppInfoIface @ {self:p}" )) |
1091 | .field("g_iface" , &self.g_iface) |
1092 | .field("dup" , &self.dup) |
1093 | .field("equal" , &self.equal) |
1094 | .field("get_id" , &self.get_id) |
1095 | .field("get_name" , &self.get_name) |
1096 | .field("get_description" , &self.get_description) |
1097 | .field("get_executable" , &self.get_executable) |
1098 | .field("get_icon" , &self.get_icon) |
1099 | .field("launch" , &self.launch) |
1100 | .field("supports_uris" , &self.supports_uris) |
1101 | .field("supports_files" , &self.supports_files) |
1102 | .field("launch_uris" , &self.launch_uris) |
1103 | .field("should_show" , &self.should_show) |
1104 | .field("set_as_default_for_type" , &self.set_as_default_for_type) |
1105 | .field( |
1106 | "set_as_default_for_extension" , |
1107 | &self.set_as_default_for_extension, |
1108 | ) |
1109 | .field("add_supports_type" , &self.add_supports_type) |
1110 | .field("can_remove_supports_type" , &self.can_remove_supports_type) |
1111 | .field("remove_supports_type" , &self.remove_supports_type) |
1112 | .field("can_delete" , &self.can_delete) |
1113 | .field("do_delete" , &self.do_delete) |
1114 | .field("get_commandline" , &self.get_commandline) |
1115 | .field("get_display_name" , &self.get_display_name) |
1116 | .field("set_as_last_used_for_type" , &self.set_as_last_used_for_type) |
1117 | .field("get_supported_types" , &self.get_supported_types) |
1118 | .field("launch_uris_async" , &self.launch_uris_async) |
1119 | .field("launch_uris_finish" , &self.launch_uris_finish) |
1120 | .finish() |
1121 | } |
1122 | } |
1123 | |
1124 | #[derive (Copy, Clone)] |
1125 | #[repr (C)] |
1126 | pub struct GAppLaunchContextClass { |
1127 | pub parent_class: gobject::GObjectClass, |
1128 | pub get_display: Option< |
1129 | unsafe extern "C" fn( |
1130 | *mut GAppLaunchContext, |
1131 | *mut GAppInfo, |
1132 | *mut glib::GList, |
1133 | ) -> *mut c_char, |
1134 | >, |
1135 | pub get_startup_notify_id: Option< |
1136 | unsafe extern "C" fn( |
1137 | *mut GAppLaunchContext, |
1138 | *mut GAppInfo, |
1139 | *mut glib::GList, |
1140 | ) -> *mut c_char, |
1141 | >, |
1142 | pub launch_failed: Option<unsafe extern "C" fn(*mut GAppLaunchContext, *const c_char)>, |
1143 | pub launched: |
1144 | Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>, |
1145 | pub launch_started: |
1146 | Option<unsafe extern "C" fn(*mut GAppLaunchContext, *mut GAppInfo, *mut glib::GVariant)>, |
1147 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1148 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1149 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
1150 | } |
1151 | |
1152 | impl ::std::fmt::Debug for GAppLaunchContextClass { |
1153 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1154 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GAppLaunchContextClass @ {self:p}" )) |
1155 | .field("parent_class" , &self.parent_class) |
1156 | .field("get_display" , &self.get_display) |
1157 | .field("get_startup_notify_id" , &self.get_startup_notify_id) |
1158 | .field("launch_failed" , &self.launch_failed) |
1159 | .field("launched" , &self.launched) |
1160 | .field("launch_started" , &self.launch_started) |
1161 | .field("_g_reserved1" , &self._g_reserved1) |
1162 | .field("_g_reserved2" , &self._g_reserved2) |
1163 | .field(name:"_g_reserved3" , &self._g_reserved3) |
1164 | .finish() |
1165 | } |
1166 | } |
1167 | |
1168 | #[repr (C)] |
1169 | pub struct _GAppLaunchContextPrivate { |
1170 | _data: [u8; 0], |
1171 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1172 | } |
1173 | |
1174 | pub type GAppLaunchContextPrivate = *mut _GAppLaunchContextPrivate; |
1175 | |
1176 | #[derive (Copy, Clone)] |
1177 | #[repr (C)] |
1178 | pub struct GApplicationClass { |
1179 | pub parent_class: gobject::GObjectClass, |
1180 | pub startup: Option<unsafe extern "C" fn(*mut GApplication)>, |
1181 | pub activate: Option<unsafe extern "C" fn(*mut GApplication)>, |
1182 | pub open: |
1183 | Option<unsafe extern "C" fn(*mut GApplication, *mut *mut GFile, c_int, *const c_char)>, |
1184 | pub command_line: |
1185 | Option<unsafe extern "C" fn(*mut GApplication, *mut GApplicationCommandLine) -> c_int>, |
1186 | pub local_command_line: Option< |
1187 | unsafe extern "C" fn(*mut GApplication, *mut *mut *mut c_char, *mut c_int) -> gboolean, |
1188 | >, |
1189 | pub before_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>, |
1190 | pub after_emit: Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariant)>, |
1191 | pub add_platform_data: |
1192 | Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantBuilder)>, |
1193 | pub quit_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>, |
1194 | pub run_mainloop: Option<unsafe extern "C" fn(*mut GApplication)>, |
1195 | pub shutdown: Option<unsafe extern "C" fn(*mut GApplication)>, |
1196 | pub dbus_register: Option< |
1197 | unsafe extern "C" fn( |
1198 | *mut GApplication, |
1199 | *mut GDBusConnection, |
1200 | *const c_char, |
1201 | *mut *mut glib::GError, |
1202 | ) -> gboolean, |
1203 | >, |
1204 | pub dbus_unregister: |
1205 | Option<unsafe extern "C" fn(*mut GApplication, *mut GDBusConnection, *const c_char)>, |
1206 | pub handle_local_options: |
1207 | Option<unsafe extern "C" fn(*mut GApplication, *mut glib::GVariantDict) -> c_int>, |
1208 | pub name_lost: Option<unsafe extern "C" fn(*mut GApplication) -> gboolean>, |
1209 | pub padding: [gpointer; 7], |
1210 | } |
1211 | |
1212 | impl ::std::fmt::Debug for GApplicationClass { |
1213 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1214 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GApplicationClass @ {self:p}" )) |
1215 | .field("startup" , &self.startup) |
1216 | .field("activate" , &self.activate) |
1217 | .field("open" , &self.open) |
1218 | .field("command_line" , &self.command_line) |
1219 | .field("local_command_line" , &self.local_command_line) |
1220 | .field("before_emit" , &self.before_emit) |
1221 | .field("after_emit" , &self.after_emit) |
1222 | .field("add_platform_data" , &self.add_platform_data) |
1223 | .field("quit_mainloop" , &self.quit_mainloop) |
1224 | .field("run_mainloop" , &self.run_mainloop) |
1225 | .field("shutdown" , &self.shutdown) |
1226 | .field("dbus_register" , &self.dbus_register) |
1227 | .field("dbus_unregister" , &self.dbus_unregister) |
1228 | .field("handle_local_options" , &self.handle_local_options) |
1229 | .field(name:"name_lost" , &self.name_lost) |
1230 | .finish() |
1231 | } |
1232 | } |
1233 | |
1234 | #[derive (Copy, Clone)] |
1235 | #[repr (C)] |
1236 | pub struct GApplicationCommandLineClass { |
1237 | pub parent_class: gobject::GObjectClass, |
1238 | pub print_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>, |
1239 | pub printerr_literal: Option<unsafe extern "C" fn(*mut GApplicationCommandLine, *const c_char)>, |
1240 | pub get_stdin: Option<unsafe extern "C" fn(*mut GApplicationCommandLine) -> *mut GInputStream>, |
1241 | pub padding: [gpointer; 11], |
1242 | } |
1243 | |
1244 | impl ::std::fmt::Debug for GApplicationCommandLineClass { |
1245 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1246 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GApplicationCommandLineClass @ {self:p}" )) |
1247 | .field("print_literal" , &self.print_literal) |
1248 | .field("printerr_literal" , &self.printerr_literal) |
1249 | .field(name:"get_stdin" , &self.get_stdin) |
1250 | .finish() |
1251 | } |
1252 | } |
1253 | |
1254 | #[repr (C)] |
1255 | pub struct _GApplicationCommandLinePrivate { |
1256 | _data: [u8; 0], |
1257 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1258 | } |
1259 | |
1260 | pub type GApplicationCommandLinePrivate = *mut _GApplicationCommandLinePrivate; |
1261 | |
1262 | #[repr (C)] |
1263 | pub struct _GApplicationPrivate { |
1264 | _data: [u8; 0], |
1265 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1266 | } |
1267 | |
1268 | pub type GApplicationPrivate = *mut _GApplicationPrivate; |
1269 | |
1270 | #[derive (Copy, Clone)] |
1271 | #[repr (C)] |
1272 | pub struct GAsyncInitableIface { |
1273 | pub g_iface: gobject::GTypeInterface, |
1274 | pub init_async: Option< |
1275 | unsafe extern "C" fn( |
1276 | *mut GAsyncInitable, |
1277 | c_int, |
1278 | *mut GCancellable, |
1279 | GAsyncReadyCallback, |
1280 | gpointer, |
1281 | ), |
1282 | >, |
1283 | pub init_finish: Option< |
1284 | unsafe extern "C" fn( |
1285 | *mut GAsyncInitable, |
1286 | *mut GAsyncResult, |
1287 | *mut *mut glib::GError, |
1288 | ) -> gboolean, |
1289 | >, |
1290 | } |
1291 | |
1292 | impl ::std::fmt::Debug for GAsyncInitableIface { |
1293 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1294 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GAsyncInitableIface @ {self:p}" )) |
1295 | .field("g_iface" , &self.g_iface) |
1296 | .field("init_async" , &self.init_async) |
1297 | .field(name:"init_finish" , &self.init_finish) |
1298 | .finish() |
1299 | } |
1300 | } |
1301 | |
1302 | #[derive (Copy, Clone)] |
1303 | #[repr (C)] |
1304 | pub struct GAsyncResultIface { |
1305 | pub g_iface: gobject::GTypeInterface, |
1306 | pub get_user_data: Option<unsafe extern "C" fn(*mut GAsyncResult) -> gpointer>, |
1307 | pub get_source_object: Option<unsafe extern "C" fn(*mut GAsyncResult) -> *mut gobject::GObject>, |
1308 | pub is_tagged: Option<unsafe extern "C" fn(*mut GAsyncResult, gpointer) -> gboolean>, |
1309 | } |
1310 | |
1311 | impl ::std::fmt::Debug for GAsyncResultIface { |
1312 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1313 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GAsyncResultIface @ {self:p}" )) |
1314 | .field("g_iface" , &self.g_iface) |
1315 | .field("get_user_data" , &self.get_user_data) |
1316 | .field("get_source_object" , &self.get_source_object) |
1317 | .field(name:"is_tagged" , &self.is_tagged) |
1318 | .finish() |
1319 | } |
1320 | } |
1321 | |
1322 | #[derive (Copy, Clone)] |
1323 | #[repr (C)] |
1324 | pub struct GBufferedInputStreamClass { |
1325 | pub parent_class: GFilterInputStreamClass, |
1326 | pub fill: Option< |
1327 | unsafe extern "C" fn( |
1328 | *mut GBufferedInputStream, |
1329 | ssize_t, |
1330 | *mut GCancellable, |
1331 | *mut *mut glib::GError, |
1332 | ) -> ssize_t, |
1333 | >, |
1334 | pub fill_async: Option< |
1335 | unsafe extern "C" fn( |
1336 | *mut GBufferedInputStream, |
1337 | ssize_t, |
1338 | c_int, |
1339 | *mut GCancellable, |
1340 | GAsyncReadyCallback, |
1341 | gpointer, |
1342 | ), |
1343 | >, |
1344 | pub fill_finish: Option< |
1345 | unsafe extern "C" fn( |
1346 | *mut GBufferedInputStream, |
1347 | *mut GAsyncResult, |
1348 | *mut *mut glib::GError, |
1349 | ) -> ssize_t, |
1350 | >, |
1351 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1352 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1353 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
1354 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
1355 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
1356 | } |
1357 | |
1358 | impl ::std::fmt::Debug for GBufferedInputStreamClass { |
1359 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1360 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GBufferedInputStreamClass @ {self:p}" )) |
1361 | .field("parent_class" , &self.parent_class) |
1362 | .field("fill" , &self.fill) |
1363 | .field("fill_async" , &self.fill_async) |
1364 | .field("fill_finish" , &self.fill_finish) |
1365 | .field("_g_reserved1" , &self._g_reserved1) |
1366 | .field("_g_reserved2" , &self._g_reserved2) |
1367 | .field("_g_reserved3" , &self._g_reserved3) |
1368 | .field("_g_reserved4" , &self._g_reserved4) |
1369 | .field(name:"_g_reserved5" , &self._g_reserved5) |
1370 | .finish() |
1371 | } |
1372 | } |
1373 | |
1374 | #[repr (C)] |
1375 | pub struct _GBufferedInputStreamPrivate { |
1376 | _data: [u8; 0], |
1377 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1378 | } |
1379 | |
1380 | pub type GBufferedInputStreamPrivate = *mut _GBufferedInputStreamPrivate; |
1381 | |
1382 | #[derive (Copy, Clone)] |
1383 | #[repr (C)] |
1384 | pub struct GBufferedOutputStreamClass { |
1385 | pub parent_class: GFilterOutputStreamClass, |
1386 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1387 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1388 | } |
1389 | |
1390 | impl ::std::fmt::Debug for GBufferedOutputStreamClass { |
1391 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1392 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GBufferedOutputStreamClass @ {self:p}" )) |
1393 | .field("parent_class" , &self.parent_class) |
1394 | .field("_g_reserved1" , &self._g_reserved1) |
1395 | .field(name:"_g_reserved2" , &self._g_reserved2) |
1396 | .finish() |
1397 | } |
1398 | } |
1399 | |
1400 | #[repr (C)] |
1401 | pub struct _GBufferedOutputStreamPrivate { |
1402 | _data: [u8; 0], |
1403 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1404 | } |
1405 | |
1406 | pub type GBufferedOutputStreamPrivate = *mut _GBufferedOutputStreamPrivate; |
1407 | |
1408 | #[derive (Copy, Clone)] |
1409 | #[repr (C)] |
1410 | pub struct GCancellableClass { |
1411 | pub parent_class: gobject::GObjectClass, |
1412 | pub cancelled: Option<unsafe extern "C" fn(*mut GCancellable)>, |
1413 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1414 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1415 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
1416 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
1417 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
1418 | } |
1419 | |
1420 | impl ::std::fmt::Debug for GCancellableClass { |
1421 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1422 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GCancellableClass @ {self:p}" )) |
1423 | .field("parent_class" , &self.parent_class) |
1424 | .field("cancelled" , &self.cancelled) |
1425 | .field("_g_reserved1" , &self._g_reserved1) |
1426 | .field("_g_reserved2" , &self._g_reserved2) |
1427 | .field("_g_reserved3" , &self._g_reserved3) |
1428 | .field("_g_reserved4" , &self._g_reserved4) |
1429 | .field(name:"_g_reserved5" , &self._g_reserved5) |
1430 | .finish() |
1431 | } |
1432 | } |
1433 | |
1434 | #[repr (C)] |
1435 | pub struct _GCancellablePrivate { |
1436 | _data: [u8; 0], |
1437 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1438 | } |
1439 | |
1440 | pub type GCancellablePrivate = *mut _GCancellablePrivate; |
1441 | |
1442 | #[derive (Copy, Clone)] |
1443 | #[repr (C)] |
1444 | pub struct GCharsetConverterClass { |
1445 | pub parent_class: gobject::GObjectClass, |
1446 | } |
1447 | |
1448 | impl ::std::fmt::Debug for GCharsetConverterClass { |
1449 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1450 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GCharsetConverterClass @ {self:p}" )) |
1451 | .field(name:"parent_class" , &self.parent_class) |
1452 | .finish() |
1453 | } |
1454 | } |
1455 | |
1456 | #[derive (Copy, Clone)] |
1457 | #[repr (C)] |
1458 | pub struct GConverterIface { |
1459 | pub g_iface: gobject::GTypeInterface, |
1460 | pub convert: Option< |
1461 | unsafe extern "C" fn( |
1462 | *mut GConverter, |
1463 | *mut u8, |
1464 | size_t, |
1465 | *mut u8, |
1466 | size_t, |
1467 | GConverterFlags, |
1468 | *mut size_t, |
1469 | *mut size_t, |
1470 | *mut *mut glib::GError, |
1471 | ) -> GConverterResult, |
1472 | >, |
1473 | pub reset: Option<unsafe extern "C" fn(*mut GConverter)>, |
1474 | } |
1475 | |
1476 | impl ::std::fmt::Debug for GConverterIface { |
1477 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1478 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GConverterIface @ {self:p}" )) |
1479 | .field("g_iface" , &self.g_iface) |
1480 | .field("convert" , &self.convert) |
1481 | .field(name:"reset" , &self.reset) |
1482 | .finish() |
1483 | } |
1484 | } |
1485 | |
1486 | #[derive (Copy, Clone)] |
1487 | #[repr (C)] |
1488 | pub struct GConverterInputStreamClass { |
1489 | pub parent_class: GFilterInputStreamClass, |
1490 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1491 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1492 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
1493 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
1494 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
1495 | } |
1496 | |
1497 | impl ::std::fmt::Debug for GConverterInputStreamClass { |
1498 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1499 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GConverterInputStreamClass @ {self:p}" )) |
1500 | .field("parent_class" , &self.parent_class) |
1501 | .field("_g_reserved1" , &self._g_reserved1) |
1502 | .field("_g_reserved2" , &self._g_reserved2) |
1503 | .field("_g_reserved3" , &self._g_reserved3) |
1504 | .field("_g_reserved4" , &self._g_reserved4) |
1505 | .field(name:"_g_reserved5" , &self._g_reserved5) |
1506 | .finish() |
1507 | } |
1508 | } |
1509 | |
1510 | #[repr (C)] |
1511 | pub struct _GConverterInputStreamPrivate { |
1512 | _data: [u8; 0], |
1513 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1514 | } |
1515 | |
1516 | pub type GConverterInputStreamPrivate = *mut _GConverterInputStreamPrivate; |
1517 | |
1518 | #[derive (Copy, Clone)] |
1519 | #[repr (C)] |
1520 | pub struct GConverterOutputStreamClass { |
1521 | pub parent_class: GFilterOutputStreamClass, |
1522 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
1523 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
1524 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
1525 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
1526 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
1527 | } |
1528 | |
1529 | impl ::std::fmt::Debug for GConverterOutputStreamClass { |
1530 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1531 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GConverterOutputStreamClass @ {self:p}" )) |
1532 | .field("parent_class" , &self.parent_class) |
1533 | .field("_g_reserved1" , &self._g_reserved1) |
1534 | .field("_g_reserved2" , &self._g_reserved2) |
1535 | .field("_g_reserved3" , &self._g_reserved3) |
1536 | .field("_g_reserved4" , &self._g_reserved4) |
1537 | .field(name:"_g_reserved5" , &self._g_reserved5) |
1538 | .finish() |
1539 | } |
1540 | } |
1541 | |
1542 | #[repr (C)] |
1543 | pub struct _GConverterOutputStreamPrivate { |
1544 | _data: [u8; 0], |
1545 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1546 | } |
1547 | |
1548 | pub type GConverterOutputStreamPrivate = *mut _GConverterOutputStreamPrivate; |
1549 | |
1550 | #[repr (C)] |
1551 | pub struct _GCredentialsClass { |
1552 | _data: [u8; 0], |
1553 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1554 | } |
1555 | |
1556 | pub type GCredentialsClass = *mut _GCredentialsClass; |
1557 | |
1558 | #[derive (Copy, Clone)] |
1559 | #[repr (C)] |
1560 | pub struct GDBusAnnotationInfo { |
1561 | pub ref_count: c_int, |
1562 | pub key: *mut c_char, |
1563 | pub value: *mut c_char, |
1564 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1565 | } |
1566 | |
1567 | impl ::std::fmt::Debug for GDBusAnnotationInfo { |
1568 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1569 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusAnnotationInfo @ {self:p}" )) |
1570 | .field("ref_count" , &self.ref_count) |
1571 | .field("key" , &self.key) |
1572 | .field("value" , &self.value) |
1573 | .field(name:"annotations" , &self.annotations) |
1574 | .finish() |
1575 | } |
1576 | } |
1577 | |
1578 | #[derive (Copy, Clone)] |
1579 | #[repr (C)] |
1580 | pub struct GDBusArgInfo { |
1581 | pub ref_count: c_int, |
1582 | pub name: *mut c_char, |
1583 | pub signature: *mut c_char, |
1584 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1585 | } |
1586 | |
1587 | impl ::std::fmt::Debug for GDBusArgInfo { |
1588 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1589 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusArgInfo @ {self:p}" )) |
1590 | .field("ref_count" , &self.ref_count) |
1591 | .field("name" , &self.name) |
1592 | .field("signature" , &self.signature) |
1593 | .field(name:"annotations" , &self.annotations) |
1594 | .finish() |
1595 | } |
1596 | } |
1597 | |
1598 | #[derive (Copy, Clone)] |
1599 | #[repr (C)] |
1600 | pub struct GDBusErrorEntry { |
1601 | pub error_code: c_int, |
1602 | pub dbus_error_name: *const c_char, |
1603 | } |
1604 | |
1605 | impl ::std::fmt::Debug for GDBusErrorEntry { |
1606 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1607 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusErrorEntry @ {self:p}" )) |
1608 | .field("error_code" , &self.error_code) |
1609 | .field(name:"dbus_error_name" , &self.dbus_error_name) |
1610 | .finish() |
1611 | } |
1612 | } |
1613 | |
1614 | #[derive (Copy, Clone)] |
1615 | #[repr (C)] |
1616 | pub struct GDBusInterfaceIface { |
1617 | pub parent_iface: gobject::GTypeInterface, |
1618 | pub get_info: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusInterfaceInfo>, |
1619 | pub get_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>, |
1620 | pub set_object: Option<unsafe extern "C" fn(*mut GDBusInterface, *mut GDBusObject)>, |
1621 | pub dup_object: Option<unsafe extern "C" fn(*mut GDBusInterface) -> *mut GDBusObject>, |
1622 | } |
1623 | |
1624 | impl ::std::fmt::Debug for GDBusInterfaceIface { |
1625 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1626 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusInterfaceIface @ {self:p}" )) |
1627 | .field("parent_iface" , &self.parent_iface) |
1628 | .field("get_info" , &self.get_info) |
1629 | .field("get_object" , &self.get_object) |
1630 | .field("set_object" , &self.set_object) |
1631 | .field(name:"dup_object" , &self.dup_object) |
1632 | .finish() |
1633 | } |
1634 | } |
1635 | |
1636 | #[derive (Copy, Clone)] |
1637 | #[repr (C)] |
1638 | pub struct GDBusInterfaceInfo { |
1639 | pub ref_count: c_int, |
1640 | pub name: *mut c_char, |
1641 | pub methods: *mut *mut GDBusMethodInfo, |
1642 | pub signals: *mut *mut GDBusSignalInfo, |
1643 | pub properties: *mut *mut GDBusPropertyInfo, |
1644 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1645 | } |
1646 | |
1647 | impl ::std::fmt::Debug for GDBusInterfaceInfo { |
1648 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1649 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusInterfaceInfo @ {self:p}" )) |
1650 | .field("ref_count" , &self.ref_count) |
1651 | .field("name" , &self.name) |
1652 | .field("methods" , &self.methods) |
1653 | .field("signals" , &self.signals) |
1654 | .field("properties" , &self.properties) |
1655 | .field(name:"annotations" , &self.annotations) |
1656 | .finish() |
1657 | } |
1658 | } |
1659 | |
1660 | #[derive (Copy, Clone)] |
1661 | #[repr (C)] |
1662 | pub struct GDBusInterfaceSkeletonClass { |
1663 | pub parent_class: gobject::GObjectClass, |
1664 | pub get_info: |
1665 | Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceInfo>, |
1666 | pub get_vtable: |
1667 | Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut GDBusInterfaceVTable>, |
1668 | pub get_properties: |
1669 | Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton) -> *mut glib::GVariant>, |
1670 | pub flush: Option<unsafe extern "C" fn(*mut GDBusInterfaceSkeleton)>, |
1671 | pub vfunc_padding: [gpointer; 8], |
1672 | pub g_authorize_method: Option< |
1673 | unsafe extern "C" fn(*mut GDBusInterfaceSkeleton, *mut GDBusMethodInvocation) -> gboolean, |
1674 | >, |
1675 | pub signal_padding: [gpointer; 8], |
1676 | } |
1677 | |
1678 | impl ::std::fmt::Debug for GDBusInterfaceSkeletonClass { |
1679 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1680 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusInterfaceSkeletonClass @ {self:p}" )) |
1681 | .field("parent_class" , &self.parent_class) |
1682 | .field("get_info" , &self.get_info) |
1683 | .field("get_vtable" , &self.get_vtable) |
1684 | .field("get_properties" , &self.get_properties) |
1685 | .field("flush" , &self.flush) |
1686 | .field(name:"g_authorize_method" , &self.g_authorize_method) |
1687 | .finish() |
1688 | } |
1689 | } |
1690 | |
1691 | #[repr (C)] |
1692 | pub struct _GDBusInterfaceSkeletonPrivate { |
1693 | _data: [u8; 0], |
1694 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1695 | } |
1696 | |
1697 | pub type GDBusInterfaceSkeletonPrivate = *mut _GDBusInterfaceSkeletonPrivate; |
1698 | |
1699 | #[derive (Copy, Clone)] |
1700 | #[repr (C)] |
1701 | pub struct GDBusInterfaceVTable { |
1702 | pub method_call: GDBusInterfaceMethodCallFunc, |
1703 | pub get_property: GDBusInterfaceGetPropertyFunc, |
1704 | pub set_property: GDBusInterfaceSetPropertyFunc, |
1705 | pub padding: [gpointer; 8], |
1706 | } |
1707 | |
1708 | impl ::std::fmt::Debug for GDBusInterfaceVTable { |
1709 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1710 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusInterfaceVTable @ {self:p}" )) |
1711 | .field("method_call" , &self.method_call) |
1712 | .field("get_property" , &self.get_property) |
1713 | .field(name:"set_property" , &self.set_property) |
1714 | .finish() |
1715 | } |
1716 | } |
1717 | |
1718 | #[derive (Copy, Clone)] |
1719 | #[repr (C)] |
1720 | pub struct GDBusMethodInfo { |
1721 | pub ref_count: c_int, |
1722 | pub name: *mut c_char, |
1723 | pub in_args: *mut *mut GDBusArgInfo, |
1724 | pub out_args: *mut *mut GDBusArgInfo, |
1725 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1726 | } |
1727 | |
1728 | impl ::std::fmt::Debug for GDBusMethodInfo { |
1729 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1730 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusMethodInfo @ {self:p}" )) |
1731 | .field("ref_count" , &self.ref_count) |
1732 | .field("name" , &self.name) |
1733 | .field("in_args" , &self.in_args) |
1734 | .field("out_args" , &self.out_args) |
1735 | .field(name:"annotations" , &self.annotations) |
1736 | .finish() |
1737 | } |
1738 | } |
1739 | |
1740 | #[derive (Copy, Clone)] |
1741 | #[repr (C)] |
1742 | pub struct GDBusNodeInfo { |
1743 | pub ref_count: c_int, |
1744 | pub path: *mut c_char, |
1745 | pub interfaces: *mut *mut GDBusInterfaceInfo, |
1746 | pub nodes: *mut *mut GDBusNodeInfo, |
1747 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1748 | } |
1749 | |
1750 | impl ::std::fmt::Debug for GDBusNodeInfo { |
1751 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1752 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusNodeInfo @ {self:p}" )) |
1753 | .field("ref_count" , &self.ref_count) |
1754 | .field("path" , &self.path) |
1755 | .field("interfaces" , &self.interfaces) |
1756 | .field("nodes" , &self.nodes) |
1757 | .field(name:"annotations" , &self.annotations) |
1758 | .finish() |
1759 | } |
1760 | } |
1761 | |
1762 | #[derive (Copy, Clone)] |
1763 | #[repr (C)] |
1764 | pub struct GDBusObjectIface { |
1765 | pub parent_iface: gobject::GTypeInterface, |
1766 | pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObject) -> *const c_char>, |
1767 | pub get_interfaces: Option<unsafe extern "C" fn(*mut GDBusObject) -> *mut glib::GList>, |
1768 | pub get_interface: |
1769 | Option<unsafe extern "C" fn(*mut GDBusObject, *const c_char) -> *mut GDBusInterface>, |
1770 | pub interface_added: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>, |
1771 | pub interface_removed: Option<unsafe extern "C" fn(*mut GDBusObject, *mut GDBusInterface)>, |
1772 | } |
1773 | |
1774 | impl ::std::fmt::Debug for GDBusObjectIface { |
1775 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1776 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectIface @ {self:p}" )) |
1777 | .field("parent_iface" , &self.parent_iface) |
1778 | .field("get_object_path" , &self.get_object_path) |
1779 | .field("get_interfaces" , &self.get_interfaces) |
1780 | .field("get_interface" , &self.get_interface) |
1781 | .field("interface_added" , &self.interface_added) |
1782 | .field(name:"interface_removed" , &self.interface_removed) |
1783 | .finish() |
1784 | } |
1785 | } |
1786 | |
1787 | #[derive (Copy, Clone)] |
1788 | #[repr (C)] |
1789 | pub struct GDBusObjectManagerClientClass { |
1790 | pub parent_class: gobject::GObjectClass, |
1791 | pub interface_proxy_signal: Option< |
1792 | unsafe extern "C" fn( |
1793 | *mut GDBusObjectManagerClient, |
1794 | *mut GDBusObjectProxy, |
1795 | *mut GDBusProxy, |
1796 | *const c_char, |
1797 | *const c_char, |
1798 | *mut glib::GVariant, |
1799 | ), |
1800 | >, |
1801 | pub interface_proxy_properties_changed: Option< |
1802 | unsafe extern "C" fn( |
1803 | *mut GDBusObjectManagerClient, |
1804 | *mut GDBusObjectProxy, |
1805 | *mut GDBusProxy, |
1806 | *mut glib::GVariant, |
1807 | *const *const c_char, |
1808 | ), |
1809 | >, |
1810 | pub padding: [gpointer; 8], |
1811 | } |
1812 | |
1813 | impl ::std::fmt::Debug for GDBusObjectManagerClientClass { |
1814 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1815 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectManagerClientClass @ {self:p}" )) |
1816 | .field("parent_class" , &self.parent_class) |
1817 | .field("interface_proxy_signal" , &self.interface_proxy_signal) |
1818 | .field( |
1819 | name:"interface_proxy_properties_changed" , |
1820 | &self.interface_proxy_properties_changed, |
1821 | ) |
1822 | .finish() |
1823 | } |
1824 | } |
1825 | |
1826 | #[repr (C)] |
1827 | pub struct _GDBusObjectManagerClientPrivate { |
1828 | _data: [u8; 0], |
1829 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1830 | } |
1831 | |
1832 | pub type GDBusObjectManagerClientPrivate = *mut _GDBusObjectManagerClientPrivate; |
1833 | |
1834 | #[derive (Copy, Clone)] |
1835 | #[repr (C)] |
1836 | pub struct GDBusObjectManagerIface { |
1837 | pub parent_iface: gobject::GTypeInterface, |
1838 | pub get_object_path: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *const c_char>, |
1839 | pub get_objects: Option<unsafe extern "C" fn(*mut GDBusObjectManager) -> *mut glib::GList>, |
1840 | pub get_object: |
1841 | Option<unsafe extern "C" fn(*mut GDBusObjectManager, *const c_char) -> *mut GDBusObject>, |
1842 | pub get_interface: Option< |
1843 | unsafe extern "C" fn( |
1844 | *mut GDBusObjectManager, |
1845 | *const c_char, |
1846 | *const c_char, |
1847 | ) -> *mut GDBusInterface, |
1848 | >, |
1849 | pub object_added: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>, |
1850 | pub object_removed: Option<unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject)>, |
1851 | pub interface_added: Option< |
1852 | unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface), |
1853 | >, |
1854 | pub interface_removed: Option< |
1855 | unsafe extern "C" fn(*mut GDBusObjectManager, *mut GDBusObject, *mut GDBusInterface), |
1856 | >, |
1857 | } |
1858 | |
1859 | impl ::std::fmt::Debug for GDBusObjectManagerIface { |
1860 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1861 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectManagerIface @ {self:p}" )) |
1862 | .field("parent_iface" , &self.parent_iface) |
1863 | .field("get_object_path" , &self.get_object_path) |
1864 | .field("get_objects" , &self.get_objects) |
1865 | .field("get_object" , &self.get_object) |
1866 | .field("get_interface" , &self.get_interface) |
1867 | .field("object_added" , &self.object_added) |
1868 | .field("object_removed" , &self.object_removed) |
1869 | .field("interface_added" , &self.interface_added) |
1870 | .field(name:"interface_removed" , &self.interface_removed) |
1871 | .finish() |
1872 | } |
1873 | } |
1874 | |
1875 | #[derive (Copy, Clone)] |
1876 | #[repr (C)] |
1877 | pub struct GDBusObjectManagerServerClass { |
1878 | pub parent_class: gobject::GObjectClass, |
1879 | pub padding: [gpointer; 8], |
1880 | } |
1881 | |
1882 | impl ::std::fmt::Debug for GDBusObjectManagerServerClass { |
1883 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1884 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectManagerServerClass @ {self:p}" )) |
1885 | .field(name:"parent_class" , &self.parent_class) |
1886 | .finish() |
1887 | } |
1888 | } |
1889 | |
1890 | #[repr (C)] |
1891 | pub struct _GDBusObjectManagerServerPrivate { |
1892 | _data: [u8; 0], |
1893 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1894 | } |
1895 | |
1896 | pub type GDBusObjectManagerServerPrivate = *mut _GDBusObjectManagerServerPrivate; |
1897 | |
1898 | #[derive (Copy, Clone)] |
1899 | #[repr (C)] |
1900 | pub struct GDBusObjectProxyClass { |
1901 | pub parent_class: gobject::GObjectClass, |
1902 | pub padding: [gpointer; 8], |
1903 | } |
1904 | |
1905 | impl ::std::fmt::Debug for GDBusObjectProxyClass { |
1906 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1907 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectProxyClass @ {self:p}" )) |
1908 | .field(name:"parent_class" , &self.parent_class) |
1909 | .finish() |
1910 | } |
1911 | } |
1912 | |
1913 | #[repr (C)] |
1914 | pub struct _GDBusObjectProxyPrivate { |
1915 | _data: [u8; 0], |
1916 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1917 | } |
1918 | |
1919 | pub type GDBusObjectProxyPrivate = *mut _GDBusObjectProxyPrivate; |
1920 | |
1921 | #[derive (Copy, Clone)] |
1922 | #[repr (C)] |
1923 | pub struct GDBusObjectSkeletonClass { |
1924 | pub parent_class: gobject::GObjectClass, |
1925 | pub authorize_method: Option< |
1926 | unsafe extern "C" fn( |
1927 | *mut GDBusObjectSkeleton, |
1928 | *mut GDBusInterfaceSkeleton, |
1929 | *mut GDBusMethodInvocation, |
1930 | ) -> gboolean, |
1931 | >, |
1932 | pub padding: [gpointer; 8], |
1933 | } |
1934 | |
1935 | impl ::std::fmt::Debug for GDBusObjectSkeletonClass { |
1936 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1937 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectSkeletonClass @ {self:p}" )) |
1938 | .field("parent_class" , &self.parent_class) |
1939 | .field(name:"authorize_method" , &self.authorize_method) |
1940 | .finish() |
1941 | } |
1942 | } |
1943 | |
1944 | #[repr (C)] |
1945 | pub struct _GDBusObjectSkeletonPrivate { |
1946 | _data: [u8; 0], |
1947 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1948 | } |
1949 | |
1950 | pub type GDBusObjectSkeletonPrivate = *mut _GDBusObjectSkeletonPrivate; |
1951 | |
1952 | #[derive (Copy, Clone)] |
1953 | #[repr (C)] |
1954 | pub struct GDBusPropertyInfo { |
1955 | pub ref_count: c_int, |
1956 | pub name: *mut c_char, |
1957 | pub signature: *mut c_char, |
1958 | pub flags: GDBusPropertyInfoFlags, |
1959 | pub annotations: *mut *mut GDBusAnnotationInfo, |
1960 | } |
1961 | |
1962 | impl ::std::fmt::Debug for GDBusPropertyInfo { |
1963 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1964 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusPropertyInfo @ {self:p}" )) |
1965 | .field("ref_count" , &self.ref_count) |
1966 | .field("name" , &self.name) |
1967 | .field("signature" , &self.signature) |
1968 | .field("flags" , &self.flags) |
1969 | .field(name:"annotations" , &self.annotations) |
1970 | .finish() |
1971 | } |
1972 | } |
1973 | |
1974 | #[derive (Copy, Clone)] |
1975 | #[repr (C)] |
1976 | pub struct GDBusProxyClass { |
1977 | pub parent_class: gobject::GObjectClass, |
1978 | pub g_properties_changed: |
1979 | Option<unsafe extern "C" fn(*mut GDBusProxy, *mut glib::GVariant, *const *const c_char)>, |
1980 | pub g_signal: Option< |
1981 | unsafe extern "C" fn(*mut GDBusProxy, *const c_char, *const c_char, *mut glib::GVariant), |
1982 | >, |
1983 | pub padding: [gpointer; 32], |
1984 | } |
1985 | |
1986 | impl ::std::fmt::Debug for GDBusProxyClass { |
1987 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
1988 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusProxyClass @ {self:p}" )) |
1989 | .field("g_properties_changed" , &self.g_properties_changed) |
1990 | .field(name:"g_signal" , &self.g_signal) |
1991 | .finish() |
1992 | } |
1993 | } |
1994 | |
1995 | #[repr (C)] |
1996 | pub struct _GDBusProxyPrivate { |
1997 | _data: [u8; 0], |
1998 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
1999 | } |
2000 | |
2001 | pub type GDBusProxyPrivate = *mut _GDBusProxyPrivate; |
2002 | |
2003 | #[derive (Copy, Clone)] |
2004 | #[repr (C)] |
2005 | pub struct GDBusSignalInfo { |
2006 | pub ref_count: c_int, |
2007 | pub name: *mut c_char, |
2008 | pub args: *mut *mut GDBusArgInfo, |
2009 | pub annotations: *mut *mut GDBusAnnotationInfo, |
2010 | } |
2011 | |
2012 | impl ::std::fmt::Debug for GDBusSignalInfo { |
2013 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2014 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusSignalInfo @ {self:p}" )) |
2015 | .field("ref_count" , &self.ref_count) |
2016 | .field("name" , &self.name) |
2017 | .field("args" , &self.args) |
2018 | .field(name:"annotations" , &self.annotations) |
2019 | .finish() |
2020 | } |
2021 | } |
2022 | |
2023 | #[derive (Copy, Clone)] |
2024 | #[repr (C)] |
2025 | pub struct GDBusSubtreeVTable { |
2026 | pub enumerate: GDBusSubtreeEnumerateFunc, |
2027 | pub introspect: GDBusSubtreeIntrospectFunc, |
2028 | pub dispatch: GDBusSubtreeDispatchFunc, |
2029 | pub padding: [gpointer; 8], |
2030 | } |
2031 | |
2032 | impl ::std::fmt::Debug for GDBusSubtreeVTable { |
2033 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2034 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDBusSubtreeVTable @ {self:p}" )) |
2035 | .field("enumerate" , &self.enumerate) |
2036 | .field("introspect" , &self.introspect) |
2037 | .field(name:"dispatch" , &self.dispatch) |
2038 | .finish() |
2039 | } |
2040 | } |
2041 | |
2042 | #[derive (Copy, Clone)] |
2043 | #[repr (C)] |
2044 | pub struct GDataInputStreamClass { |
2045 | pub parent_class: GBufferedInputStreamClass, |
2046 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
2047 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
2048 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
2049 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
2050 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
2051 | } |
2052 | |
2053 | impl ::std::fmt::Debug for GDataInputStreamClass { |
2054 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2055 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDataInputStreamClass @ {self:p}" )) |
2056 | .field("parent_class" , &self.parent_class) |
2057 | .field("_g_reserved1" , &self._g_reserved1) |
2058 | .field("_g_reserved2" , &self._g_reserved2) |
2059 | .field("_g_reserved3" , &self._g_reserved3) |
2060 | .field("_g_reserved4" , &self._g_reserved4) |
2061 | .field(name:"_g_reserved5" , &self._g_reserved5) |
2062 | .finish() |
2063 | } |
2064 | } |
2065 | |
2066 | #[repr (C)] |
2067 | pub struct _GDataInputStreamPrivate { |
2068 | _data: [u8; 0], |
2069 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2070 | } |
2071 | |
2072 | pub type GDataInputStreamPrivate = *mut _GDataInputStreamPrivate; |
2073 | |
2074 | #[derive (Copy, Clone)] |
2075 | #[repr (C)] |
2076 | pub struct GDataOutputStreamClass { |
2077 | pub parent_class: GFilterOutputStreamClass, |
2078 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
2079 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
2080 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
2081 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
2082 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
2083 | } |
2084 | |
2085 | impl ::std::fmt::Debug for GDataOutputStreamClass { |
2086 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2087 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDataOutputStreamClass @ {self:p}" )) |
2088 | .field("parent_class" , &self.parent_class) |
2089 | .field("_g_reserved1" , &self._g_reserved1) |
2090 | .field("_g_reserved2" , &self._g_reserved2) |
2091 | .field("_g_reserved3" , &self._g_reserved3) |
2092 | .field("_g_reserved4" , &self._g_reserved4) |
2093 | .field(name:"_g_reserved5" , &self._g_reserved5) |
2094 | .finish() |
2095 | } |
2096 | } |
2097 | |
2098 | #[repr (C)] |
2099 | pub struct _GDataOutputStreamPrivate { |
2100 | _data: [u8; 0], |
2101 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2102 | } |
2103 | |
2104 | pub type GDataOutputStreamPrivate = *mut _GDataOutputStreamPrivate; |
2105 | |
2106 | #[derive (Copy, Clone)] |
2107 | #[repr (C)] |
2108 | pub struct GDatagramBasedInterface { |
2109 | pub g_iface: gobject::GTypeInterface, |
2110 | pub receive_messages: Option< |
2111 | unsafe extern "C" fn( |
2112 | *mut GDatagramBased, |
2113 | *mut GInputMessage, |
2114 | c_uint, |
2115 | c_int, |
2116 | i64, |
2117 | *mut GCancellable, |
2118 | *mut *mut glib::GError, |
2119 | ) -> c_int, |
2120 | >, |
2121 | pub send_messages: Option< |
2122 | unsafe extern "C" fn( |
2123 | *mut GDatagramBased, |
2124 | *mut GOutputMessage, |
2125 | c_uint, |
2126 | c_int, |
2127 | i64, |
2128 | *mut GCancellable, |
2129 | *mut *mut glib::GError, |
2130 | ) -> c_int, |
2131 | >, |
2132 | pub create_source: Option< |
2133 | unsafe extern "C" fn( |
2134 | *mut GDatagramBased, |
2135 | glib::GIOCondition, |
2136 | *mut GCancellable, |
2137 | ) -> *mut glib::GSource, |
2138 | >, |
2139 | pub condition_check: |
2140 | Option<unsafe extern "C" fn(*mut GDatagramBased, glib::GIOCondition) -> glib::GIOCondition>, |
2141 | pub condition_wait: Option< |
2142 | unsafe extern "C" fn( |
2143 | *mut GDatagramBased, |
2144 | glib::GIOCondition, |
2145 | i64, |
2146 | *mut GCancellable, |
2147 | *mut *mut glib::GError, |
2148 | ) -> gboolean, |
2149 | >, |
2150 | } |
2151 | |
2152 | impl ::std::fmt::Debug for GDatagramBasedInterface { |
2153 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2154 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDatagramBasedInterface @ {self:p}" )) |
2155 | .field("g_iface" , &self.g_iface) |
2156 | .field("receive_messages" , &self.receive_messages) |
2157 | .field("send_messages" , &self.send_messages) |
2158 | .field("create_source" , &self.create_source) |
2159 | .field("condition_check" , &self.condition_check) |
2160 | .field(name:"condition_wait" , &self.condition_wait) |
2161 | .finish() |
2162 | } |
2163 | } |
2164 | |
2165 | #[derive (Copy, Clone)] |
2166 | #[repr (C)] |
2167 | pub struct GDebugControllerDBusClass { |
2168 | pub parent_class: gobject::GObjectClass, |
2169 | pub authorize: Option< |
2170 | unsafe extern "C" fn(*mut GDebugControllerDBus, *mut GDBusMethodInvocation) -> gboolean, |
2171 | >, |
2172 | pub padding: [gpointer; 12], |
2173 | } |
2174 | |
2175 | impl ::std::fmt::Debug for GDebugControllerDBusClass { |
2176 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2177 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDebugControllerDBusClass @ {self:p}" )) |
2178 | .field("parent_class" , &self.parent_class) |
2179 | .field("authorize" , &self.authorize) |
2180 | .field(name:"padding" , &self.padding) |
2181 | .finish() |
2182 | } |
2183 | } |
2184 | |
2185 | #[derive (Copy, Clone)] |
2186 | #[repr (C)] |
2187 | pub struct GDebugControllerInterface { |
2188 | pub g_iface: gobject::GTypeInterface, |
2189 | } |
2190 | |
2191 | impl ::std::fmt::Debug for GDebugControllerInterface { |
2192 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2193 | fDebugStruct<'_, '_>.debug_struct(&format!("GDebugControllerInterface @ {self:p}" )) |
2194 | .finish() |
2195 | } |
2196 | } |
2197 | |
2198 | #[derive (Copy, Clone)] |
2199 | #[repr (C)] |
2200 | pub struct GDesktopAppInfoClass { |
2201 | pub parent_class: gobject::GObjectClass, |
2202 | } |
2203 | |
2204 | impl ::std::fmt::Debug for GDesktopAppInfoClass { |
2205 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2206 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDesktopAppInfoClass @ {self:p}" )) |
2207 | .field(name:"parent_class" , &self.parent_class) |
2208 | .finish() |
2209 | } |
2210 | } |
2211 | |
2212 | #[derive (Copy, Clone)] |
2213 | #[repr (C)] |
2214 | pub struct GDesktopAppInfoLookupIface { |
2215 | pub g_iface: gobject::GTypeInterface, |
2216 | pub get_default_for_uri_scheme: |
2217 | Option<unsafe extern "C" fn(*mut GDesktopAppInfoLookup, *const c_char) -> *mut GAppInfo>, |
2218 | } |
2219 | |
2220 | impl ::std::fmt::Debug for GDesktopAppInfoLookupIface { |
2221 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2222 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDesktopAppInfoLookupIface @ {self:p}" )) |
2223 | .field("g_iface" , &self.g_iface) |
2224 | .field( |
2225 | name:"get_default_for_uri_scheme" , |
2226 | &self.get_default_for_uri_scheme, |
2227 | ) |
2228 | .finish() |
2229 | } |
2230 | } |
2231 | |
2232 | #[derive (Copy, Clone)] |
2233 | #[repr (C)] |
2234 | pub struct GDriveIface { |
2235 | pub g_iface: gobject::GTypeInterface, |
2236 | pub changed: Option<unsafe extern "C" fn(*mut GDrive)>, |
2237 | pub disconnected: Option<unsafe extern "C" fn(*mut GDrive)>, |
2238 | pub eject_button: Option<unsafe extern "C" fn(*mut GDrive)>, |
2239 | pub get_name: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>, |
2240 | pub get_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>, |
2241 | pub has_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2242 | pub get_volumes: Option<unsafe extern "C" fn(*mut GDrive) -> *mut glib::GList>, |
2243 | pub is_media_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2244 | pub has_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2245 | pub is_media_check_automatic: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2246 | pub can_eject: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2247 | pub can_poll_for_media: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2248 | pub eject: Option< |
2249 | unsafe extern "C" fn( |
2250 | *mut GDrive, |
2251 | GMountUnmountFlags, |
2252 | *mut GCancellable, |
2253 | GAsyncReadyCallback, |
2254 | gpointer, |
2255 | ), |
2256 | >, |
2257 | pub eject_finish: Option< |
2258 | unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
2259 | >, |
2260 | pub poll_for_media: |
2261 | Option<unsafe extern "C" fn(*mut GDrive, *mut GCancellable, GAsyncReadyCallback, gpointer)>, |
2262 | pub poll_for_media_finish: Option< |
2263 | unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
2264 | >, |
2265 | pub get_identifier: Option<unsafe extern "C" fn(*mut GDrive, *const c_char) -> *mut c_char>, |
2266 | pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GDrive) -> *mut *mut c_char>, |
2267 | pub get_start_stop_type: Option<unsafe extern "C" fn(*mut GDrive) -> GDriveStartStopType>, |
2268 | pub can_start: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2269 | pub can_start_degraded: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2270 | pub start: Option< |
2271 | unsafe extern "C" fn( |
2272 | *mut GDrive, |
2273 | GDriveStartFlags, |
2274 | *mut GMountOperation, |
2275 | *mut GCancellable, |
2276 | GAsyncReadyCallback, |
2277 | gpointer, |
2278 | ), |
2279 | >, |
2280 | pub start_finish: Option< |
2281 | unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
2282 | >, |
2283 | pub can_stop: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2284 | pub stop: Option< |
2285 | unsafe extern "C" fn( |
2286 | *mut GDrive, |
2287 | GMountUnmountFlags, |
2288 | *mut GMountOperation, |
2289 | *mut GCancellable, |
2290 | GAsyncReadyCallback, |
2291 | gpointer, |
2292 | ), |
2293 | >, |
2294 | pub stop_finish: Option< |
2295 | unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
2296 | >, |
2297 | pub stop_button: Option<unsafe extern "C" fn(*mut GDrive)>, |
2298 | pub eject_with_operation: Option< |
2299 | unsafe extern "C" fn( |
2300 | *mut GDrive, |
2301 | GMountUnmountFlags, |
2302 | *mut GMountOperation, |
2303 | *mut GCancellable, |
2304 | GAsyncReadyCallback, |
2305 | gpointer, |
2306 | ), |
2307 | >, |
2308 | pub eject_with_operation_finish: Option< |
2309 | unsafe extern "C" fn(*mut GDrive, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
2310 | >, |
2311 | pub get_sort_key: Option<unsafe extern "C" fn(*mut GDrive) -> *const c_char>, |
2312 | pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GDrive) -> *mut GIcon>, |
2313 | pub is_removable: Option<unsafe extern "C" fn(*mut GDrive) -> gboolean>, |
2314 | } |
2315 | |
2316 | impl ::std::fmt::Debug for GDriveIface { |
2317 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2318 | f.debug_struct(&format!("GDriveIface @ {self:p}" )) |
2319 | .field("g_iface" , &self.g_iface) |
2320 | .field("changed" , &self.changed) |
2321 | .field("disconnected" , &self.disconnected) |
2322 | .field("eject_button" , &self.eject_button) |
2323 | .field("get_name" , &self.get_name) |
2324 | .field("get_icon" , &self.get_icon) |
2325 | .field("has_volumes" , &self.has_volumes) |
2326 | .field("get_volumes" , &self.get_volumes) |
2327 | .field("is_media_removable" , &self.is_media_removable) |
2328 | .field("has_media" , &self.has_media) |
2329 | .field("is_media_check_automatic" , &self.is_media_check_automatic) |
2330 | .field("can_eject" , &self.can_eject) |
2331 | .field("can_poll_for_media" , &self.can_poll_for_media) |
2332 | .field("eject" , &self.eject) |
2333 | .field("eject_finish" , &self.eject_finish) |
2334 | .field("poll_for_media" , &self.poll_for_media) |
2335 | .field("poll_for_media_finish" , &self.poll_for_media_finish) |
2336 | .field("get_identifier" , &self.get_identifier) |
2337 | .field("enumerate_identifiers" , &self.enumerate_identifiers) |
2338 | .field("get_start_stop_type" , &self.get_start_stop_type) |
2339 | .field("can_start" , &self.can_start) |
2340 | .field("can_start_degraded" , &self.can_start_degraded) |
2341 | .field("start" , &self.start) |
2342 | .field("start_finish" , &self.start_finish) |
2343 | .field("can_stop" , &self.can_stop) |
2344 | .field("stop" , &self.stop) |
2345 | .field("stop_finish" , &self.stop_finish) |
2346 | .field("stop_button" , &self.stop_button) |
2347 | .field("eject_with_operation" , &self.eject_with_operation) |
2348 | .field( |
2349 | "eject_with_operation_finish" , |
2350 | &self.eject_with_operation_finish, |
2351 | ) |
2352 | .field("get_sort_key" , &self.get_sort_key) |
2353 | .field("get_symbolic_icon" , &self.get_symbolic_icon) |
2354 | .field("is_removable" , &self.is_removable) |
2355 | .finish() |
2356 | } |
2357 | } |
2358 | |
2359 | #[derive (Copy, Clone)] |
2360 | #[repr (C)] |
2361 | pub struct GDtlsClientConnectionInterface { |
2362 | pub g_iface: gobject::GTypeInterface, |
2363 | } |
2364 | |
2365 | impl ::std::fmt::Debug for GDtlsClientConnectionInterface { |
2366 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2367 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDtlsClientConnectionInterface @ {self:p}" )) |
2368 | .field(name:"g_iface" , &self.g_iface) |
2369 | .finish() |
2370 | } |
2371 | } |
2372 | |
2373 | #[derive (Copy, Clone)] |
2374 | #[repr (C)] |
2375 | pub struct GDtlsConnectionInterface { |
2376 | pub g_iface: gobject::GTypeInterface, |
2377 | pub accept_certificate: Option< |
2378 | unsafe extern "C" fn( |
2379 | *mut GDtlsConnection, |
2380 | *mut GTlsCertificate, |
2381 | GTlsCertificateFlags, |
2382 | ) -> gboolean, |
2383 | >, |
2384 | pub handshake: Option< |
2385 | unsafe extern "C" fn( |
2386 | *mut GDtlsConnection, |
2387 | *mut GCancellable, |
2388 | *mut *mut glib::GError, |
2389 | ) -> gboolean, |
2390 | >, |
2391 | pub handshake_async: Option< |
2392 | unsafe extern "C" fn( |
2393 | *mut GDtlsConnection, |
2394 | c_int, |
2395 | *mut GCancellable, |
2396 | GAsyncReadyCallback, |
2397 | gpointer, |
2398 | ), |
2399 | >, |
2400 | pub handshake_finish: Option< |
2401 | unsafe extern "C" fn( |
2402 | *mut GDtlsConnection, |
2403 | *mut GAsyncResult, |
2404 | *mut *mut glib::GError, |
2405 | ) -> gboolean, |
2406 | >, |
2407 | pub shutdown: Option< |
2408 | unsafe extern "C" fn( |
2409 | *mut GDtlsConnection, |
2410 | gboolean, |
2411 | gboolean, |
2412 | *mut GCancellable, |
2413 | *mut *mut glib::GError, |
2414 | ) -> gboolean, |
2415 | >, |
2416 | pub shutdown_async: Option< |
2417 | unsafe extern "C" fn( |
2418 | *mut GDtlsConnection, |
2419 | gboolean, |
2420 | gboolean, |
2421 | c_int, |
2422 | *mut GCancellable, |
2423 | GAsyncReadyCallback, |
2424 | gpointer, |
2425 | ), |
2426 | >, |
2427 | pub shutdown_finish: Option< |
2428 | unsafe extern "C" fn( |
2429 | *mut GDtlsConnection, |
2430 | *mut GAsyncResult, |
2431 | *mut *mut glib::GError, |
2432 | ) -> gboolean, |
2433 | >, |
2434 | pub set_advertised_protocols: |
2435 | Option<unsafe extern "C" fn(*mut GDtlsConnection, *const *const c_char)>, |
2436 | pub get_negotiated_protocol: |
2437 | Option<unsafe extern "C" fn(*mut GDtlsConnection) -> *const c_char>, |
2438 | pub get_binding_data: Option< |
2439 | unsafe extern "C" fn( |
2440 | *mut GDtlsConnection, |
2441 | GTlsChannelBindingType, |
2442 | *mut glib::GByteArray, |
2443 | *mut *mut glib::GError, |
2444 | ) -> gboolean, |
2445 | >, |
2446 | } |
2447 | |
2448 | impl ::std::fmt::Debug for GDtlsConnectionInterface { |
2449 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2450 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDtlsConnectionInterface @ {self:p}" )) |
2451 | .field("g_iface" , &self.g_iface) |
2452 | .field("accept_certificate" , &self.accept_certificate) |
2453 | .field("handshake" , &self.handshake) |
2454 | .field("handshake_async" , &self.handshake_async) |
2455 | .field("handshake_finish" , &self.handshake_finish) |
2456 | .field("shutdown" , &self.shutdown) |
2457 | .field("shutdown_async" , &self.shutdown_async) |
2458 | .field("shutdown_finish" , &self.shutdown_finish) |
2459 | .field("set_advertised_protocols" , &self.set_advertised_protocols) |
2460 | .field("get_negotiated_protocol" , &self.get_negotiated_protocol) |
2461 | .field(name:"get_binding_data" , &self.get_binding_data) |
2462 | .finish() |
2463 | } |
2464 | } |
2465 | |
2466 | #[derive (Copy, Clone)] |
2467 | #[repr (C)] |
2468 | pub struct GDtlsServerConnectionInterface { |
2469 | pub g_iface: gobject::GTypeInterface, |
2470 | } |
2471 | |
2472 | impl ::std::fmt::Debug for GDtlsServerConnectionInterface { |
2473 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2474 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDtlsServerConnectionInterface @ {self:p}" )) |
2475 | .field(name:"g_iface" , &self.g_iface) |
2476 | .finish() |
2477 | } |
2478 | } |
2479 | |
2480 | #[repr (C)] |
2481 | pub struct _GEmblemClass { |
2482 | _data: [u8; 0], |
2483 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2484 | } |
2485 | |
2486 | pub type GEmblemClass = *mut _GEmblemClass; |
2487 | |
2488 | #[derive (Copy, Clone)] |
2489 | #[repr (C)] |
2490 | pub struct GEmblemedIconClass { |
2491 | pub parent_class: gobject::GObjectClass, |
2492 | } |
2493 | |
2494 | impl ::std::fmt::Debug for GEmblemedIconClass { |
2495 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2496 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GEmblemedIconClass @ {self:p}" )) |
2497 | .field(name:"parent_class" , &self.parent_class) |
2498 | .finish() |
2499 | } |
2500 | } |
2501 | |
2502 | #[repr (C)] |
2503 | pub struct _GEmblemedIconPrivate { |
2504 | _data: [u8; 0], |
2505 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2506 | } |
2507 | |
2508 | pub type GEmblemedIconPrivate = *mut _GEmblemedIconPrivate; |
2509 | |
2510 | #[derive (Copy, Clone)] |
2511 | #[repr (C)] |
2512 | pub struct GFileAttributeInfo { |
2513 | pub name: *mut c_char, |
2514 | pub type_: GFileAttributeType, |
2515 | pub flags: GFileAttributeInfoFlags, |
2516 | } |
2517 | |
2518 | impl ::std::fmt::Debug for GFileAttributeInfo { |
2519 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2520 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileAttributeInfo @ {self:p}" )) |
2521 | .field("name" , &self.name) |
2522 | .field("type_" , &self.type_) |
2523 | .field(name:"flags" , &self.flags) |
2524 | .finish() |
2525 | } |
2526 | } |
2527 | |
2528 | #[derive (Copy, Clone)] |
2529 | #[repr (C)] |
2530 | pub struct GFileAttributeInfoList { |
2531 | pub infos: *mut GFileAttributeInfo, |
2532 | pub n_infos: c_int, |
2533 | } |
2534 | |
2535 | impl ::std::fmt::Debug for GFileAttributeInfoList { |
2536 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2537 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileAttributeInfoList @ {self:p}" )) |
2538 | .field("infos" , &self.infos) |
2539 | .field(name:"n_infos" , &self.n_infos) |
2540 | .finish() |
2541 | } |
2542 | } |
2543 | |
2544 | #[repr (C)] |
2545 | pub struct GFileAttributeMatcher { |
2546 | _data: [u8; 0], |
2547 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2548 | } |
2549 | |
2550 | impl ::std::fmt::Debug for GFileAttributeMatcher { |
2551 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2552 | fDebugStruct<'_, '_>.debug_struct(&format!("GFileAttributeMatcher @ {self:p}" )) |
2553 | .finish() |
2554 | } |
2555 | } |
2556 | |
2557 | #[derive (Copy, Clone)] |
2558 | #[repr (C)] |
2559 | pub struct GFileDescriptorBasedIface { |
2560 | pub g_iface: gobject::GTypeInterface, |
2561 | pub get_fd: Option<unsafe extern "C" fn(*mut GFileDescriptorBased) -> c_int>, |
2562 | } |
2563 | |
2564 | impl ::std::fmt::Debug for GFileDescriptorBasedIface { |
2565 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2566 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileDescriptorBasedIface @ {self:p}" )) |
2567 | .field("g_iface" , &self.g_iface) |
2568 | .field(name:"get_fd" , &self.get_fd) |
2569 | .finish() |
2570 | } |
2571 | } |
2572 | |
2573 | #[derive (Copy, Clone)] |
2574 | #[repr (C)] |
2575 | pub struct GFileEnumeratorClass { |
2576 | pub parent_class: gobject::GObjectClass, |
2577 | pub next_file: Option< |
2578 | unsafe extern "C" fn( |
2579 | *mut GFileEnumerator, |
2580 | *mut GCancellable, |
2581 | *mut *mut glib::GError, |
2582 | ) -> *mut GFileInfo, |
2583 | >, |
2584 | pub close_fn: Option< |
2585 | unsafe extern "C" fn( |
2586 | *mut GFileEnumerator, |
2587 | *mut GCancellable, |
2588 | *mut *mut glib::GError, |
2589 | ) -> gboolean, |
2590 | >, |
2591 | pub next_files_async: Option< |
2592 | unsafe extern "C" fn( |
2593 | *mut GFileEnumerator, |
2594 | c_int, |
2595 | c_int, |
2596 | *mut GCancellable, |
2597 | GAsyncReadyCallback, |
2598 | gpointer, |
2599 | ), |
2600 | >, |
2601 | pub next_files_finish: Option< |
2602 | unsafe extern "C" fn( |
2603 | *mut GFileEnumerator, |
2604 | *mut GAsyncResult, |
2605 | *mut *mut glib::GError, |
2606 | ) -> *mut glib::GList, |
2607 | >, |
2608 | pub close_async: Option< |
2609 | unsafe extern "C" fn( |
2610 | *mut GFileEnumerator, |
2611 | c_int, |
2612 | *mut GCancellable, |
2613 | GAsyncReadyCallback, |
2614 | gpointer, |
2615 | ), |
2616 | >, |
2617 | pub close_finish: Option< |
2618 | unsafe extern "C" fn( |
2619 | *mut GFileEnumerator, |
2620 | *mut GAsyncResult, |
2621 | *mut *mut glib::GError, |
2622 | ) -> gboolean, |
2623 | >, |
2624 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
2625 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
2626 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
2627 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
2628 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
2629 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
2630 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
2631 | } |
2632 | |
2633 | impl ::std::fmt::Debug for GFileEnumeratorClass { |
2634 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2635 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileEnumeratorClass @ {self:p}" )) |
2636 | .field("parent_class" , &self.parent_class) |
2637 | .field("next_file" , &self.next_file) |
2638 | .field("close_fn" , &self.close_fn) |
2639 | .field("next_files_async" , &self.next_files_async) |
2640 | .field("next_files_finish" , &self.next_files_finish) |
2641 | .field("close_async" , &self.close_async) |
2642 | .field("close_finish" , &self.close_finish) |
2643 | .field("_g_reserved1" , &self._g_reserved1) |
2644 | .field("_g_reserved2" , &self._g_reserved2) |
2645 | .field("_g_reserved3" , &self._g_reserved3) |
2646 | .field("_g_reserved4" , &self._g_reserved4) |
2647 | .field("_g_reserved5" , &self._g_reserved5) |
2648 | .field("_g_reserved6" , &self._g_reserved6) |
2649 | .field(name:"_g_reserved7" , &self._g_reserved7) |
2650 | .finish() |
2651 | } |
2652 | } |
2653 | |
2654 | #[repr (C)] |
2655 | pub struct _GFileEnumeratorPrivate { |
2656 | _data: [u8; 0], |
2657 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2658 | } |
2659 | |
2660 | pub type GFileEnumeratorPrivate = *mut _GFileEnumeratorPrivate; |
2661 | |
2662 | #[derive (Copy, Clone)] |
2663 | #[repr (C)] |
2664 | pub struct GFileIOStreamClass { |
2665 | pub parent_class: GIOStreamClass, |
2666 | pub tell: Option<unsafe extern "C" fn(*mut GFileIOStream) -> i64>, |
2667 | pub can_seek: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>, |
2668 | pub seek: Option< |
2669 | unsafe extern "C" fn( |
2670 | *mut GFileIOStream, |
2671 | i64, |
2672 | glib::GSeekType, |
2673 | *mut GCancellable, |
2674 | *mut *mut glib::GError, |
2675 | ) -> gboolean, |
2676 | >, |
2677 | pub can_truncate: Option<unsafe extern "C" fn(*mut GFileIOStream) -> gboolean>, |
2678 | pub truncate_fn: Option< |
2679 | unsafe extern "C" fn( |
2680 | *mut GFileIOStream, |
2681 | i64, |
2682 | *mut GCancellable, |
2683 | *mut *mut glib::GError, |
2684 | ) -> gboolean, |
2685 | >, |
2686 | pub query_info: Option< |
2687 | unsafe extern "C" fn( |
2688 | *mut GFileIOStream, |
2689 | *const c_char, |
2690 | *mut GCancellable, |
2691 | *mut *mut glib::GError, |
2692 | ) -> *mut GFileInfo, |
2693 | >, |
2694 | pub query_info_async: Option< |
2695 | unsafe extern "C" fn( |
2696 | *mut GFileIOStream, |
2697 | *const c_char, |
2698 | c_int, |
2699 | *mut GCancellable, |
2700 | GAsyncReadyCallback, |
2701 | gpointer, |
2702 | ), |
2703 | >, |
2704 | pub query_info_finish: Option< |
2705 | unsafe extern "C" fn( |
2706 | *mut GFileIOStream, |
2707 | *mut GAsyncResult, |
2708 | *mut *mut glib::GError, |
2709 | ) -> *mut GFileInfo, |
2710 | >, |
2711 | pub get_etag: Option<unsafe extern "C" fn(*mut GFileIOStream) -> *mut c_char>, |
2712 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
2713 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
2714 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
2715 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
2716 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
2717 | } |
2718 | |
2719 | impl ::std::fmt::Debug for GFileIOStreamClass { |
2720 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
2721 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileIOStreamClass @ {self:p}" )) |
2722 | .field("parent_class" , &self.parent_class) |
2723 | .field("tell" , &self.tell) |
2724 | .field("can_seek" , &self.can_seek) |
2725 | .field("seek" , &self.seek) |
2726 | .field("can_truncate" , &self.can_truncate) |
2727 | .field("truncate_fn" , &self.truncate_fn) |
2728 | .field("query_info" , &self.query_info) |
2729 | .field("query_info_async" , &self.query_info_async) |
2730 | .field("query_info_finish" , &self.query_info_finish) |
2731 | .field("get_etag" , &self.get_etag) |
2732 | .field("_g_reserved1" , &self._g_reserved1) |
2733 | .field("_g_reserved2" , &self._g_reserved2) |
2734 | .field("_g_reserved3" , &self._g_reserved3) |
2735 | .field("_g_reserved4" , &self._g_reserved4) |
2736 | .field(name:"_g_reserved5" , &self._g_reserved5) |
2737 | .finish() |
2738 | } |
2739 | } |
2740 | |
2741 | #[repr (C)] |
2742 | pub struct _GFileIOStreamPrivate { |
2743 | _data: [u8; 0], |
2744 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2745 | } |
2746 | |
2747 | pub type GFileIOStreamPrivate = *mut _GFileIOStreamPrivate; |
2748 | |
2749 | #[repr (C)] |
2750 | pub struct _GFileIconClass { |
2751 | _data: [u8; 0], |
2752 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
2753 | } |
2754 | |
2755 | pub type GFileIconClass = *mut _GFileIconClass; |
2756 | |
2757 | #[derive (Copy, Clone)] |
2758 | #[repr (C)] |
2759 | pub struct GFileIface { |
2760 | pub g_iface: gobject::GTypeInterface, |
2761 | pub dup: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>, |
2762 | pub hash: Option<unsafe extern "C" fn(*mut GFile) -> c_uint>, |
2763 | pub equal: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>, |
2764 | pub is_native: Option<unsafe extern "C" fn(*mut GFile) -> gboolean>, |
2765 | pub has_uri_scheme: Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> gboolean>, |
2766 | pub get_uri_scheme: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>, |
2767 | pub get_basename: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>, |
2768 | pub get_path: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>, |
2769 | pub get_uri: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>, |
2770 | pub get_parse_name: Option<unsafe extern "C" fn(*mut GFile) -> *mut c_char>, |
2771 | pub get_parent: Option<unsafe extern "C" fn(*mut GFile) -> *mut GFile>, |
2772 | pub prefix_matches: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> gboolean>, |
2773 | pub get_relative_path: Option<unsafe extern "C" fn(*mut GFile, *mut GFile) -> *mut c_char>, |
2774 | pub resolve_relative_path: |
2775 | Option<unsafe extern "C" fn(*mut GFile, *const c_char) -> *mut GFile>, |
2776 | pub get_child_for_display_name: Option< |
2777 | unsafe extern "C" fn(*mut GFile, *const c_char, *mut *mut glib::GError) -> *mut GFile, |
2778 | >, |
2779 | pub enumerate_children: Option< |
2780 | unsafe extern "C" fn( |
2781 | *mut GFile, |
2782 | *const c_char, |
2783 | GFileQueryInfoFlags, |
2784 | *mut GCancellable, |
2785 | *mut *mut glib::GError, |
2786 | ) -> *mut GFileEnumerator, |
2787 | >, |
2788 | pub enumerate_children_async: Option< |
2789 | unsafe extern "C" fn( |
2790 | *mut GFile, |
2791 | *const c_char, |
2792 | GFileQueryInfoFlags, |
2793 | c_int, |
2794 | *mut GCancellable, |
2795 | GAsyncReadyCallback, |
2796 | gpointer, |
2797 | ), |
2798 | >, |
2799 | pub enumerate_children_finish: Option< |
2800 | unsafe extern "C" fn( |
2801 | *mut GFile, |
2802 | *mut GAsyncResult, |
2803 | *mut *mut glib::GError, |
2804 | ) -> *mut GFileEnumerator, |
2805 | >, |
2806 | pub query_info: Option< |
2807 | unsafe extern "C" fn( |
2808 | *mut GFile, |
2809 | *const c_char, |
2810 | GFileQueryInfoFlags, |
2811 | *mut GCancellable, |
2812 | *mut *mut glib::GError, |
2813 | ) -> *mut GFileInfo, |
2814 | >, |
2815 | pub query_info_async: Option< |
2816 | unsafe extern "C" fn( |
2817 | *mut GFile, |
2818 | *const c_char, |
2819 | GFileQueryInfoFlags, |
2820 | c_int, |
2821 | *mut GCancellable, |
2822 | GAsyncReadyCallback, |
2823 | gpointer, |
2824 | ), |
2825 | >, |
2826 | pub query_info_finish: Option< |
2827 | unsafe extern "C" fn( |
2828 | *mut GFile, |
2829 | *mut GAsyncResult, |
2830 | *mut *mut glib::GError, |
2831 | ) -> *mut GFileInfo, |
2832 | >, |
2833 | pub query_filesystem_info: Option< |
2834 | unsafe extern "C" fn( |
2835 | *mut GFile, |
2836 | *const c_char, |
2837 | *mut GCancellable, |
2838 | *mut *mut glib::GError, |
2839 | ) -> *mut GFileInfo, |
2840 | >, |
2841 | pub query_filesystem_info_async: Option< |
2842 | unsafe extern "C" fn( |
2843 | *mut GFile, |
2844 | *const c_char, |
2845 | c_int, |
2846 | *mut GCancellable, |
2847 | GAsyncReadyCallback, |
2848 | gpointer, |
2849 | ), |
2850 | >, |
2851 | pub query_filesystem_info_finish: Option< |
2852 | unsafe extern "C" fn( |
2853 | *mut GFile, |
2854 | *mut GAsyncResult, |
2855 | *mut *mut glib::GError, |
2856 | ) -> *mut GFileInfo, |
2857 | >, |
2858 | pub find_enclosing_mount: Option< |
2859 | unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> *mut GMount, |
2860 | >, |
2861 | pub find_enclosing_mount_async: Option< |
2862 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
2863 | >, |
2864 | pub find_enclosing_mount_finish: Option< |
2865 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GMount, |
2866 | >, |
2867 | pub set_display_name: Option< |
2868 | unsafe extern "C" fn( |
2869 | *mut GFile, |
2870 | *const c_char, |
2871 | *mut GCancellable, |
2872 | *mut *mut glib::GError, |
2873 | ) -> *mut GFile, |
2874 | >, |
2875 | pub set_display_name_async: Option< |
2876 | unsafe extern "C" fn( |
2877 | *mut GFile, |
2878 | *const c_char, |
2879 | c_int, |
2880 | *mut GCancellable, |
2881 | GAsyncReadyCallback, |
2882 | gpointer, |
2883 | ), |
2884 | >, |
2885 | pub set_display_name_finish: Option< |
2886 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile, |
2887 | >, |
2888 | pub query_settable_attributes: Option< |
2889 | unsafe extern "C" fn( |
2890 | *mut GFile, |
2891 | *mut GCancellable, |
2892 | *mut *mut glib::GError, |
2893 | ) -> *mut GFileAttributeInfoList, |
2894 | >, |
2895 | pub _query_settable_attributes_async: Option<unsafe extern "C" fn()>, |
2896 | pub _query_settable_attributes_finish: Option<unsafe extern "C" fn()>, |
2897 | pub query_writable_namespaces: Option< |
2898 | unsafe extern "C" fn( |
2899 | *mut GFile, |
2900 | *mut GCancellable, |
2901 | *mut *mut glib::GError, |
2902 | ) -> *mut GFileAttributeInfoList, |
2903 | >, |
2904 | pub _query_writable_namespaces_async: Option<unsafe extern "C" fn()>, |
2905 | pub _query_writable_namespaces_finish: Option<unsafe extern "C" fn()>, |
2906 | pub set_attribute: Option< |
2907 | unsafe extern "C" fn( |
2908 | *mut GFile, |
2909 | *const c_char, |
2910 | GFileAttributeType, |
2911 | gpointer, |
2912 | GFileQueryInfoFlags, |
2913 | *mut GCancellable, |
2914 | *mut *mut glib::GError, |
2915 | ) -> gboolean, |
2916 | >, |
2917 | pub set_attributes_from_info: Option< |
2918 | unsafe extern "C" fn( |
2919 | *mut GFile, |
2920 | *mut GFileInfo, |
2921 | GFileQueryInfoFlags, |
2922 | *mut GCancellable, |
2923 | *mut *mut glib::GError, |
2924 | ) -> gboolean, |
2925 | >, |
2926 | pub set_attributes_async: Option< |
2927 | unsafe extern "C" fn( |
2928 | *mut GFile, |
2929 | *mut GFileInfo, |
2930 | GFileQueryInfoFlags, |
2931 | c_int, |
2932 | *mut GCancellable, |
2933 | GAsyncReadyCallback, |
2934 | gpointer, |
2935 | ), |
2936 | >, |
2937 | pub set_attributes_finish: Option< |
2938 | unsafe extern "C" fn( |
2939 | *mut GFile, |
2940 | *mut GAsyncResult, |
2941 | *mut *mut GFileInfo, |
2942 | *mut *mut glib::GError, |
2943 | ) -> gboolean, |
2944 | >, |
2945 | pub read_fn: Option< |
2946 | unsafe extern "C" fn( |
2947 | *mut GFile, |
2948 | *mut GCancellable, |
2949 | *mut *mut glib::GError, |
2950 | ) -> *mut GFileInputStream, |
2951 | >, |
2952 | pub read_async: Option< |
2953 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
2954 | >, |
2955 | pub read_finish: Option< |
2956 | unsafe extern "C" fn( |
2957 | *mut GFile, |
2958 | *mut GAsyncResult, |
2959 | *mut *mut glib::GError, |
2960 | ) -> *mut GFileInputStream, |
2961 | >, |
2962 | pub append_to: Option< |
2963 | unsafe extern "C" fn( |
2964 | *mut GFile, |
2965 | GFileCreateFlags, |
2966 | *mut GCancellable, |
2967 | *mut *mut glib::GError, |
2968 | ) -> *mut GFileOutputStream, |
2969 | >, |
2970 | pub append_to_async: Option< |
2971 | unsafe extern "C" fn( |
2972 | *mut GFile, |
2973 | GFileCreateFlags, |
2974 | c_int, |
2975 | *mut GCancellable, |
2976 | GAsyncReadyCallback, |
2977 | gpointer, |
2978 | ), |
2979 | >, |
2980 | pub append_to_finish: Option< |
2981 | unsafe extern "C" fn( |
2982 | *mut GFile, |
2983 | *mut GAsyncResult, |
2984 | *mut *mut glib::GError, |
2985 | ) -> *mut GFileOutputStream, |
2986 | >, |
2987 | pub create: Option< |
2988 | unsafe extern "C" fn( |
2989 | *mut GFile, |
2990 | GFileCreateFlags, |
2991 | *mut GCancellable, |
2992 | *mut *mut glib::GError, |
2993 | ) -> *mut GFileOutputStream, |
2994 | >, |
2995 | pub create_async: Option< |
2996 | unsafe extern "C" fn( |
2997 | *mut GFile, |
2998 | GFileCreateFlags, |
2999 | c_int, |
3000 | *mut GCancellable, |
3001 | GAsyncReadyCallback, |
3002 | gpointer, |
3003 | ), |
3004 | >, |
3005 | pub create_finish: Option< |
3006 | unsafe extern "C" fn( |
3007 | *mut GFile, |
3008 | *mut GAsyncResult, |
3009 | *mut *mut glib::GError, |
3010 | ) -> *mut GFileOutputStream, |
3011 | >, |
3012 | pub replace: Option< |
3013 | unsafe extern "C" fn( |
3014 | *mut GFile, |
3015 | *const c_char, |
3016 | gboolean, |
3017 | GFileCreateFlags, |
3018 | *mut GCancellable, |
3019 | *mut *mut glib::GError, |
3020 | ) -> *mut GFileOutputStream, |
3021 | >, |
3022 | pub replace_async: Option< |
3023 | unsafe extern "C" fn( |
3024 | *mut GFile, |
3025 | *const c_char, |
3026 | gboolean, |
3027 | GFileCreateFlags, |
3028 | c_int, |
3029 | *mut GCancellable, |
3030 | GAsyncReadyCallback, |
3031 | gpointer, |
3032 | ), |
3033 | >, |
3034 | pub replace_finish: Option< |
3035 | unsafe extern "C" fn( |
3036 | *mut GFile, |
3037 | *mut GAsyncResult, |
3038 | *mut *mut glib::GError, |
3039 | ) -> *mut GFileOutputStream, |
3040 | >, |
3041 | pub delete_file: Option< |
3042 | unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean, |
3043 | >, |
3044 | pub delete_file_async: Option< |
3045 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
3046 | >, |
3047 | pub delete_file_finish: Option< |
3048 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3049 | >, |
3050 | pub trash: Option< |
3051 | unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean, |
3052 | >, |
3053 | pub trash_async: Option< |
3054 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
3055 | >, |
3056 | pub trash_finish: Option< |
3057 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3058 | >, |
3059 | pub make_directory: Option< |
3060 | unsafe extern "C" fn(*mut GFile, *mut GCancellable, *mut *mut glib::GError) -> gboolean, |
3061 | >, |
3062 | pub make_directory_async: Option< |
3063 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
3064 | >, |
3065 | pub make_directory_finish: Option< |
3066 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3067 | >, |
3068 | pub make_symbolic_link: Option< |
3069 | unsafe extern "C" fn( |
3070 | *mut GFile, |
3071 | *const c_char, |
3072 | *mut GCancellable, |
3073 | *mut *mut glib::GError, |
3074 | ) -> gboolean, |
3075 | >, |
3076 | pub make_symbolic_link_async: Option< |
3077 | unsafe extern "C" fn( |
3078 | *mut GFile, |
3079 | *const c_char, |
3080 | c_int, |
3081 | *mut GCancellable, |
3082 | GAsyncReadyCallback, |
3083 | gpointer, |
3084 | ), |
3085 | >, |
3086 | pub make_symbolic_link_finish: Option< |
3087 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3088 | >, |
3089 | pub copy: Option< |
3090 | unsafe extern "C" fn( |
3091 | *mut GFile, |
3092 | *mut GFile, |
3093 | GFileCopyFlags, |
3094 | *mut GCancellable, |
3095 | GFileProgressCallback, |
3096 | gpointer, |
3097 | *mut *mut glib::GError, |
3098 | ) -> gboolean, |
3099 | >, |
3100 | pub copy_async: Option< |
3101 | unsafe extern "C" fn( |
3102 | *mut GFile, |
3103 | *mut GFile, |
3104 | GFileCopyFlags, |
3105 | c_int, |
3106 | *mut GCancellable, |
3107 | GFileProgressCallback, |
3108 | gpointer, |
3109 | GAsyncReadyCallback, |
3110 | gpointer, |
3111 | ), |
3112 | >, |
3113 | pub copy_finish: Option< |
3114 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3115 | >, |
3116 | pub move_: Option< |
3117 | unsafe extern "C" fn( |
3118 | *mut GFile, |
3119 | *mut GFile, |
3120 | GFileCopyFlags, |
3121 | *mut GCancellable, |
3122 | GFileProgressCallback, |
3123 | gpointer, |
3124 | *mut *mut glib::GError, |
3125 | ) -> gboolean, |
3126 | >, |
3127 | pub move_async: Option< |
3128 | unsafe extern "C" fn( |
3129 | *mut GFile, |
3130 | *mut GFile, |
3131 | GFileCopyFlags, |
3132 | c_int, |
3133 | *mut GCancellable, |
3134 | GFileProgressCallback, |
3135 | gpointer, |
3136 | GAsyncReadyCallback, |
3137 | gpointer, |
3138 | ), |
3139 | >, |
3140 | pub move_finish: Option< |
3141 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3142 | >, |
3143 | pub mount_mountable: Option< |
3144 | unsafe extern "C" fn( |
3145 | *mut GFile, |
3146 | GMountMountFlags, |
3147 | *mut GMountOperation, |
3148 | *mut GCancellable, |
3149 | GAsyncReadyCallback, |
3150 | gpointer, |
3151 | ), |
3152 | >, |
3153 | pub mount_mountable_finish: Option< |
3154 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> *mut GFile, |
3155 | >, |
3156 | pub unmount_mountable: Option< |
3157 | unsafe extern "C" fn( |
3158 | *mut GFile, |
3159 | GMountUnmountFlags, |
3160 | *mut GCancellable, |
3161 | GAsyncReadyCallback, |
3162 | gpointer, |
3163 | ), |
3164 | >, |
3165 | pub unmount_mountable_finish: Option< |
3166 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3167 | >, |
3168 | pub eject_mountable: Option< |
3169 | unsafe extern "C" fn( |
3170 | *mut GFile, |
3171 | GMountUnmountFlags, |
3172 | *mut GCancellable, |
3173 | GAsyncReadyCallback, |
3174 | gpointer, |
3175 | ), |
3176 | >, |
3177 | pub eject_mountable_finish: Option< |
3178 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3179 | >, |
3180 | pub mount_enclosing_volume: Option< |
3181 | unsafe extern "C" fn( |
3182 | *mut GFile, |
3183 | GMountMountFlags, |
3184 | *mut GMountOperation, |
3185 | *mut GCancellable, |
3186 | GAsyncReadyCallback, |
3187 | gpointer, |
3188 | ), |
3189 | >, |
3190 | pub mount_enclosing_volume_finish: Option< |
3191 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3192 | >, |
3193 | pub monitor_dir: Option< |
3194 | unsafe extern "C" fn( |
3195 | *mut GFile, |
3196 | GFileMonitorFlags, |
3197 | *mut GCancellable, |
3198 | *mut *mut glib::GError, |
3199 | ) -> *mut GFileMonitor, |
3200 | >, |
3201 | pub monitor_file: Option< |
3202 | unsafe extern "C" fn( |
3203 | *mut GFile, |
3204 | GFileMonitorFlags, |
3205 | *mut GCancellable, |
3206 | *mut *mut glib::GError, |
3207 | ) -> *mut GFileMonitor, |
3208 | >, |
3209 | pub open_readwrite: Option< |
3210 | unsafe extern "C" fn( |
3211 | *mut GFile, |
3212 | *mut GCancellable, |
3213 | *mut *mut glib::GError, |
3214 | ) -> *mut GFileIOStream, |
3215 | >, |
3216 | pub open_readwrite_async: Option< |
3217 | unsafe extern "C" fn(*mut GFile, c_int, *mut GCancellable, GAsyncReadyCallback, gpointer), |
3218 | >, |
3219 | pub open_readwrite_finish: Option< |
3220 | unsafe extern "C" fn( |
3221 | *mut GFile, |
3222 | *mut GAsyncResult, |
3223 | *mut *mut glib::GError, |
3224 | ) -> *mut GFileIOStream, |
3225 | >, |
3226 | pub create_readwrite: Option< |
3227 | unsafe extern "C" fn( |
3228 | *mut GFile, |
3229 | GFileCreateFlags, |
3230 | *mut GCancellable, |
3231 | *mut *mut glib::GError, |
3232 | ) -> *mut GFileIOStream, |
3233 | >, |
3234 | pub create_readwrite_async: Option< |
3235 | unsafe extern "C" fn( |
3236 | *mut GFile, |
3237 | GFileCreateFlags, |
3238 | c_int, |
3239 | *mut GCancellable, |
3240 | GAsyncReadyCallback, |
3241 | gpointer, |
3242 | ), |
3243 | >, |
3244 | pub create_readwrite_finish: Option< |
3245 | unsafe extern "C" fn( |
3246 | *mut GFile, |
3247 | *mut GAsyncResult, |
3248 | *mut *mut glib::GError, |
3249 | ) -> *mut GFileIOStream, |
3250 | >, |
3251 | pub replace_readwrite: Option< |
3252 | unsafe extern "C" fn( |
3253 | *mut GFile, |
3254 | *const c_char, |
3255 | gboolean, |
3256 | GFileCreateFlags, |
3257 | *mut GCancellable, |
3258 | *mut *mut glib::GError, |
3259 | ) -> *mut GFileIOStream, |
3260 | >, |
3261 | pub replace_readwrite_async: Option< |
3262 | unsafe extern "C" fn( |
3263 | *mut GFile, |
3264 | *const c_char, |
3265 | gboolean, |
3266 | GFileCreateFlags, |
3267 | c_int, |
3268 | *mut GCancellable, |
3269 | GAsyncReadyCallback, |
3270 | gpointer, |
3271 | ), |
3272 | >, |
3273 | pub replace_readwrite_finish: Option< |
3274 | unsafe extern "C" fn( |
3275 | *mut GFile, |
3276 | *mut GAsyncResult, |
3277 | *mut *mut glib::GError, |
3278 | ) -> *mut GFileIOStream, |
3279 | >, |
3280 | pub start_mountable: Option< |
3281 | unsafe extern "C" fn( |
3282 | *mut GFile, |
3283 | GDriveStartFlags, |
3284 | *mut GMountOperation, |
3285 | *mut GCancellable, |
3286 | GAsyncReadyCallback, |
3287 | gpointer, |
3288 | ), |
3289 | >, |
3290 | pub start_mountable_finish: Option< |
3291 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3292 | >, |
3293 | pub stop_mountable: Option< |
3294 | unsafe extern "C" fn( |
3295 | *mut GFile, |
3296 | GMountUnmountFlags, |
3297 | *mut GMountOperation, |
3298 | *mut GCancellable, |
3299 | GAsyncReadyCallback, |
3300 | gpointer, |
3301 | ), |
3302 | >, |
3303 | pub stop_mountable_finish: Option< |
3304 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3305 | >, |
3306 | pub supports_thread_contexts: gboolean, |
3307 | pub unmount_mountable_with_operation: Option< |
3308 | unsafe extern "C" fn( |
3309 | *mut GFile, |
3310 | GMountUnmountFlags, |
3311 | *mut GMountOperation, |
3312 | *mut GCancellable, |
3313 | GAsyncReadyCallback, |
3314 | gpointer, |
3315 | ), |
3316 | >, |
3317 | pub unmount_mountable_with_operation_finish: Option< |
3318 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3319 | >, |
3320 | pub eject_mountable_with_operation: Option< |
3321 | unsafe extern "C" fn( |
3322 | *mut GFile, |
3323 | GMountUnmountFlags, |
3324 | *mut GMountOperation, |
3325 | *mut GCancellable, |
3326 | GAsyncReadyCallback, |
3327 | gpointer, |
3328 | ), |
3329 | >, |
3330 | pub eject_mountable_with_operation_finish: Option< |
3331 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3332 | >, |
3333 | pub poll_mountable: |
3334 | Option<unsafe extern "C" fn(*mut GFile, *mut GCancellable, GAsyncReadyCallback, gpointer)>, |
3335 | pub poll_mountable_finish: Option< |
3336 | unsafe extern "C" fn(*mut GFile, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3337 | >, |
3338 | pub measure_disk_usage: Option< |
3339 | unsafe extern "C" fn( |
3340 | *mut GFile, |
3341 | GFileMeasureFlags, |
3342 | *mut GCancellable, |
3343 | GFileMeasureProgressCallback, |
3344 | gpointer, |
3345 | *mut u64, |
3346 | *mut u64, |
3347 | *mut u64, |
3348 | *mut *mut glib::GError, |
3349 | ) -> gboolean, |
3350 | >, |
3351 | pub measure_disk_usage_async: Option< |
3352 | unsafe extern "C" fn( |
3353 | *mut GFile, |
3354 | GFileMeasureFlags, |
3355 | c_int, |
3356 | *mut GCancellable, |
3357 | GFileMeasureProgressCallback, |
3358 | gpointer, |
3359 | GAsyncReadyCallback, |
3360 | gpointer, |
3361 | ), |
3362 | >, |
3363 | pub measure_disk_usage_finish: Option< |
3364 | unsafe extern "C" fn( |
3365 | *mut GFile, |
3366 | *mut GAsyncResult, |
3367 | *mut u64, |
3368 | *mut u64, |
3369 | *mut u64, |
3370 | *mut *mut glib::GError, |
3371 | ) -> gboolean, |
3372 | >, |
3373 | } |
3374 | |
3375 | impl ::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 | .finish() |
3525 | } |
3526 | } |
3527 | |
3528 | #[repr (C)] |
3529 | pub struct _GFileInfoClass { |
3530 | _data: [u8; 0], |
3531 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3532 | } |
3533 | |
3534 | pub type GFileInfoClass = *mut _GFileInfoClass; |
3535 | |
3536 | #[derive (Copy, Clone)] |
3537 | #[repr (C)] |
3538 | pub struct GFileInputStreamClass { |
3539 | pub parent_class: GInputStreamClass, |
3540 | pub tell: Option<unsafe extern "C" fn(*mut GFileInputStream) -> i64>, |
3541 | pub can_seek: Option<unsafe extern "C" fn(*mut GFileInputStream) -> gboolean>, |
3542 | pub seek: Option< |
3543 | unsafe extern "C" fn( |
3544 | *mut GFileInputStream, |
3545 | i64, |
3546 | glib::GSeekType, |
3547 | *mut GCancellable, |
3548 | *mut *mut glib::GError, |
3549 | ) -> gboolean, |
3550 | >, |
3551 | pub query_info: Option< |
3552 | unsafe extern "C" fn( |
3553 | *mut GFileInputStream, |
3554 | *const c_char, |
3555 | *mut GCancellable, |
3556 | *mut *mut glib::GError, |
3557 | ) -> *mut GFileInfo, |
3558 | >, |
3559 | pub query_info_async: Option< |
3560 | unsafe extern "C" fn( |
3561 | *mut GFileInputStream, |
3562 | *const c_char, |
3563 | c_int, |
3564 | *mut GCancellable, |
3565 | GAsyncReadyCallback, |
3566 | gpointer, |
3567 | ), |
3568 | >, |
3569 | pub query_info_finish: Option< |
3570 | unsafe extern "C" fn( |
3571 | *mut GFileInputStream, |
3572 | *mut GAsyncResult, |
3573 | *mut *mut glib::GError, |
3574 | ) -> *mut GFileInfo, |
3575 | >, |
3576 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3577 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3578 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3579 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
3580 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
3581 | } |
3582 | |
3583 | impl ::std::fmt::Debug for GFileInputStreamClass { |
3584 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3585 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileInputStreamClass @ {self:p}" )) |
3586 | .field("parent_class" , &self.parent_class) |
3587 | .field("tell" , &self.tell) |
3588 | .field("can_seek" , &self.can_seek) |
3589 | .field("seek" , &self.seek) |
3590 | .field("query_info" , &self.query_info) |
3591 | .field("query_info_async" , &self.query_info_async) |
3592 | .field("query_info_finish" , &self.query_info_finish) |
3593 | .field("_g_reserved1" , &self._g_reserved1) |
3594 | .field("_g_reserved2" , &self._g_reserved2) |
3595 | .field("_g_reserved3" , &self._g_reserved3) |
3596 | .field("_g_reserved4" , &self._g_reserved4) |
3597 | .field(name:"_g_reserved5" , &self._g_reserved5) |
3598 | .finish() |
3599 | } |
3600 | } |
3601 | |
3602 | #[repr (C)] |
3603 | pub struct _GFileInputStreamPrivate { |
3604 | _data: [u8; 0], |
3605 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3606 | } |
3607 | |
3608 | pub type GFileInputStreamPrivate = *mut _GFileInputStreamPrivate; |
3609 | |
3610 | #[derive (Copy, Clone)] |
3611 | #[repr (C)] |
3612 | pub struct GFileMonitorClass { |
3613 | pub parent_class: gobject::GObjectClass, |
3614 | pub changed: |
3615 | Option<unsafe extern "C" fn(*mut GFileMonitor, *mut GFile, *mut GFile, GFileMonitorEvent)>, |
3616 | pub cancel: Option<unsafe extern "C" fn(*mut GFileMonitor) -> gboolean>, |
3617 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3618 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3619 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3620 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
3621 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
3622 | } |
3623 | |
3624 | impl ::std::fmt::Debug for GFileMonitorClass { |
3625 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3626 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileMonitorClass @ {self:p}" )) |
3627 | .field("parent_class" , &self.parent_class) |
3628 | .field("changed" , &self.changed) |
3629 | .field("cancel" , &self.cancel) |
3630 | .field("_g_reserved1" , &self._g_reserved1) |
3631 | .field("_g_reserved2" , &self._g_reserved2) |
3632 | .field("_g_reserved3" , &self._g_reserved3) |
3633 | .field("_g_reserved4" , &self._g_reserved4) |
3634 | .field(name:"_g_reserved5" , &self._g_reserved5) |
3635 | .finish() |
3636 | } |
3637 | } |
3638 | |
3639 | #[repr (C)] |
3640 | pub struct _GFileMonitorPrivate { |
3641 | _data: [u8; 0], |
3642 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3643 | } |
3644 | |
3645 | pub type GFileMonitorPrivate = *mut _GFileMonitorPrivate; |
3646 | |
3647 | #[derive (Copy, Clone)] |
3648 | #[repr (C)] |
3649 | pub struct GFileOutputStreamClass { |
3650 | pub parent_class: GOutputStreamClass, |
3651 | pub tell: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> i64>, |
3652 | pub can_seek: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>, |
3653 | pub seek: Option< |
3654 | unsafe extern "C" fn( |
3655 | *mut GFileOutputStream, |
3656 | i64, |
3657 | glib::GSeekType, |
3658 | *mut GCancellable, |
3659 | *mut *mut glib::GError, |
3660 | ) -> gboolean, |
3661 | >, |
3662 | pub can_truncate: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> gboolean>, |
3663 | pub truncate_fn: Option< |
3664 | unsafe extern "C" fn( |
3665 | *mut GFileOutputStream, |
3666 | i64, |
3667 | *mut GCancellable, |
3668 | *mut *mut glib::GError, |
3669 | ) -> gboolean, |
3670 | >, |
3671 | pub query_info: Option< |
3672 | unsafe extern "C" fn( |
3673 | *mut GFileOutputStream, |
3674 | *const c_char, |
3675 | *mut GCancellable, |
3676 | *mut *mut glib::GError, |
3677 | ) -> *mut GFileInfo, |
3678 | >, |
3679 | pub query_info_async: Option< |
3680 | unsafe extern "C" fn( |
3681 | *mut GFileOutputStream, |
3682 | *const c_char, |
3683 | c_int, |
3684 | *mut GCancellable, |
3685 | GAsyncReadyCallback, |
3686 | gpointer, |
3687 | ), |
3688 | >, |
3689 | pub query_info_finish: Option< |
3690 | unsafe extern "C" fn( |
3691 | *mut GFileOutputStream, |
3692 | *mut GAsyncResult, |
3693 | *mut *mut glib::GError, |
3694 | ) -> *mut GFileInfo, |
3695 | >, |
3696 | pub get_etag: Option<unsafe extern "C" fn(*mut GFileOutputStream) -> *mut c_char>, |
3697 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3698 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3699 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3700 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
3701 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
3702 | } |
3703 | |
3704 | impl ::std::fmt::Debug for GFileOutputStreamClass { |
3705 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3706 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileOutputStreamClass @ {self:p}" )) |
3707 | .field("parent_class" , &self.parent_class) |
3708 | .field("tell" , &self.tell) |
3709 | .field("can_seek" , &self.can_seek) |
3710 | .field("seek" , &self.seek) |
3711 | .field("can_truncate" , &self.can_truncate) |
3712 | .field("truncate_fn" , &self.truncate_fn) |
3713 | .field("query_info" , &self.query_info) |
3714 | .field("query_info_async" , &self.query_info_async) |
3715 | .field("query_info_finish" , &self.query_info_finish) |
3716 | .field("get_etag" , &self.get_etag) |
3717 | .field("_g_reserved1" , &self._g_reserved1) |
3718 | .field("_g_reserved2" , &self._g_reserved2) |
3719 | .field("_g_reserved3" , &self._g_reserved3) |
3720 | .field("_g_reserved4" , &self._g_reserved4) |
3721 | .field(name:"_g_reserved5" , &self._g_reserved5) |
3722 | .finish() |
3723 | } |
3724 | } |
3725 | |
3726 | #[repr (C)] |
3727 | pub struct _GFileOutputStreamPrivate { |
3728 | _data: [u8; 0], |
3729 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3730 | } |
3731 | |
3732 | pub type GFileOutputStreamPrivate = *mut _GFileOutputStreamPrivate; |
3733 | |
3734 | #[derive (Copy, Clone)] |
3735 | #[repr (C)] |
3736 | pub struct GFilenameCompleterClass { |
3737 | pub parent_class: gobject::GObjectClass, |
3738 | pub got_completion_data: Option<unsafe extern "C" fn(*mut GFilenameCompleter)>, |
3739 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3740 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3741 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3742 | } |
3743 | |
3744 | impl ::std::fmt::Debug for GFilenameCompleterClass { |
3745 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3746 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFilenameCompleterClass @ {self:p}" )) |
3747 | .field("parent_class" , &self.parent_class) |
3748 | .field("got_completion_data" , &self.got_completion_data) |
3749 | .field("_g_reserved1" , &self._g_reserved1) |
3750 | .field("_g_reserved2" , &self._g_reserved2) |
3751 | .field(name:"_g_reserved3" , &self._g_reserved3) |
3752 | .finish() |
3753 | } |
3754 | } |
3755 | |
3756 | #[derive (Copy, Clone)] |
3757 | #[repr (C)] |
3758 | pub struct GFilterInputStreamClass { |
3759 | pub parent_class: GInputStreamClass, |
3760 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3761 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3762 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3763 | } |
3764 | |
3765 | impl ::std::fmt::Debug for GFilterInputStreamClass { |
3766 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3767 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFilterInputStreamClass @ {self:p}" )) |
3768 | .field("parent_class" , &self.parent_class) |
3769 | .field("_g_reserved1" , &self._g_reserved1) |
3770 | .field("_g_reserved2" , &self._g_reserved2) |
3771 | .field(name:"_g_reserved3" , &self._g_reserved3) |
3772 | .finish() |
3773 | } |
3774 | } |
3775 | |
3776 | #[derive (Copy, Clone)] |
3777 | #[repr (C)] |
3778 | pub struct GFilterOutputStreamClass { |
3779 | pub parent_class: GOutputStreamClass, |
3780 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3781 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3782 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3783 | } |
3784 | |
3785 | impl ::std::fmt::Debug for GFilterOutputStreamClass { |
3786 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3787 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFilterOutputStreamClass @ {self:p}" )) |
3788 | .field("parent_class" , &self.parent_class) |
3789 | .field("_g_reserved1" , &self._g_reserved1) |
3790 | .field("_g_reserved2" , &self._g_reserved2) |
3791 | .field(name:"_g_reserved3" , &self._g_reserved3) |
3792 | .finish() |
3793 | } |
3794 | } |
3795 | |
3796 | #[repr (C)] |
3797 | pub struct _GIOExtension { |
3798 | _data: [u8; 0], |
3799 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3800 | } |
3801 | |
3802 | pub type GIOExtension = *mut _GIOExtension; |
3803 | |
3804 | #[repr (C)] |
3805 | pub struct _GIOExtensionPoint { |
3806 | _data: [u8; 0], |
3807 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3808 | } |
3809 | |
3810 | pub type GIOExtensionPoint = *mut _GIOExtensionPoint; |
3811 | |
3812 | #[repr (C)] |
3813 | pub struct _GIOModuleClass { |
3814 | _data: [u8; 0], |
3815 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3816 | } |
3817 | |
3818 | pub type GIOModuleClass = *mut _GIOModuleClass; |
3819 | |
3820 | #[repr (C)] |
3821 | pub struct _GIOModuleScope { |
3822 | _data: [u8; 0], |
3823 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3824 | } |
3825 | |
3826 | pub type GIOModuleScope = *mut _GIOModuleScope; |
3827 | |
3828 | #[repr (C)] |
3829 | pub struct _GIOSchedulerJob { |
3830 | _data: [u8; 0], |
3831 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3832 | } |
3833 | |
3834 | pub type GIOSchedulerJob = *mut _GIOSchedulerJob; |
3835 | |
3836 | #[repr (C)] |
3837 | pub struct _GIOStreamAdapter { |
3838 | _data: [u8; 0], |
3839 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3840 | } |
3841 | |
3842 | pub type GIOStreamAdapter = *mut _GIOStreamAdapter; |
3843 | |
3844 | #[derive (Copy, Clone)] |
3845 | #[repr (C)] |
3846 | pub struct GIOStreamClass { |
3847 | pub parent_class: gobject::GObjectClass, |
3848 | pub get_input_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GInputStream>, |
3849 | pub get_output_stream: Option<unsafe extern "C" fn(*mut GIOStream) -> *mut GOutputStream>, |
3850 | pub close_fn: Option< |
3851 | unsafe extern "C" fn(*mut GIOStream, *mut GCancellable, *mut *mut glib::GError) -> gboolean, |
3852 | >, |
3853 | pub close_async: Option< |
3854 | unsafe extern "C" fn( |
3855 | *mut GIOStream, |
3856 | c_int, |
3857 | *mut GCancellable, |
3858 | GAsyncReadyCallback, |
3859 | gpointer, |
3860 | ), |
3861 | >, |
3862 | pub close_finish: Option< |
3863 | unsafe extern "C" fn(*mut GIOStream, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
3864 | >, |
3865 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
3866 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
3867 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
3868 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
3869 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
3870 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
3871 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
3872 | pub _g_reserved8: Option<unsafe extern "C" fn()>, |
3873 | pub _g_reserved9: Option<unsafe extern "C" fn()>, |
3874 | pub _g_reserved10: Option<unsafe extern "C" fn()>, |
3875 | } |
3876 | |
3877 | impl ::std::fmt::Debug for GIOStreamClass { |
3878 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3879 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GIOStreamClass @ {self:p}" )) |
3880 | .field("parent_class" , &self.parent_class) |
3881 | .field("get_input_stream" , &self.get_input_stream) |
3882 | .field("get_output_stream" , &self.get_output_stream) |
3883 | .field("close_fn" , &self.close_fn) |
3884 | .field("close_async" , &self.close_async) |
3885 | .field("close_finish" , &self.close_finish) |
3886 | .field("_g_reserved1" , &self._g_reserved1) |
3887 | .field("_g_reserved2" , &self._g_reserved2) |
3888 | .field("_g_reserved3" , &self._g_reserved3) |
3889 | .field("_g_reserved4" , &self._g_reserved4) |
3890 | .field("_g_reserved5" , &self._g_reserved5) |
3891 | .field("_g_reserved6" , &self._g_reserved6) |
3892 | .field("_g_reserved7" , &self._g_reserved7) |
3893 | .field("_g_reserved8" , &self._g_reserved8) |
3894 | .field("_g_reserved9" , &self._g_reserved9) |
3895 | .field(name:"_g_reserved10" , &self._g_reserved10) |
3896 | .finish() |
3897 | } |
3898 | } |
3899 | |
3900 | #[repr (C)] |
3901 | pub struct _GIOStreamPrivate { |
3902 | _data: [u8; 0], |
3903 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3904 | } |
3905 | |
3906 | pub type GIOStreamPrivate = *mut _GIOStreamPrivate; |
3907 | |
3908 | #[derive (Copy, Clone)] |
3909 | #[repr (C)] |
3910 | pub struct GIconIface { |
3911 | pub g_iface: gobject::GTypeInterface, |
3912 | pub hash: Option<unsafe extern "C" fn(*mut GIcon) -> c_uint>, |
3913 | pub equal: Option<unsafe extern "C" fn(*mut GIcon, *mut GIcon) -> gboolean>, |
3914 | pub to_tokens: |
3915 | Option<unsafe extern "C" fn(*mut GIcon, *mut glib::GPtrArray, *mut c_int) -> gboolean>, |
3916 | pub from_tokens: Option< |
3917 | unsafe extern "C" fn(*mut *mut c_char, c_int, c_int, *mut *mut glib::GError) -> *mut GIcon, |
3918 | >, |
3919 | pub serialize: Option<unsafe extern "C" fn(*mut GIcon) -> *mut glib::GVariant>, |
3920 | } |
3921 | |
3922 | impl ::std::fmt::Debug for GIconIface { |
3923 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3924 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GIconIface @ {self:p}" )) |
3925 | .field("g_iface" , &self.g_iface) |
3926 | .field("hash" , &self.hash) |
3927 | .field("equal" , &self.equal) |
3928 | .field("to_tokens" , &self.to_tokens) |
3929 | .field("from_tokens" , &self.from_tokens) |
3930 | .field(name:"serialize" , &self.serialize) |
3931 | .finish() |
3932 | } |
3933 | } |
3934 | |
3935 | #[derive (Copy, Clone)] |
3936 | #[repr (C)] |
3937 | pub struct GInetAddressClass { |
3938 | pub parent_class: gobject::GObjectClass, |
3939 | pub to_string: Option<unsafe extern "C" fn(*mut GInetAddress) -> *mut c_char>, |
3940 | pub to_bytes: Option<unsafe extern "C" fn(*mut GInetAddress) -> *const u8>, |
3941 | } |
3942 | |
3943 | impl ::std::fmt::Debug for GInetAddressClass { |
3944 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3945 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetAddressClass @ {self:p}" )) |
3946 | .field("parent_class" , &self.parent_class) |
3947 | .field("to_string" , &self.to_string) |
3948 | .field(name:"to_bytes" , &self.to_bytes) |
3949 | .finish() |
3950 | } |
3951 | } |
3952 | |
3953 | #[derive (Copy, Clone)] |
3954 | #[repr (C)] |
3955 | pub struct GInetAddressMaskClass { |
3956 | pub parent_class: gobject::GObjectClass, |
3957 | } |
3958 | |
3959 | impl ::std::fmt::Debug for GInetAddressMaskClass { |
3960 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3961 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetAddressMaskClass @ {self:p}" )) |
3962 | .field(name:"parent_class" , &self.parent_class) |
3963 | .finish() |
3964 | } |
3965 | } |
3966 | |
3967 | #[repr (C)] |
3968 | pub struct _GInetAddressMaskPrivate { |
3969 | _data: [u8; 0], |
3970 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3971 | } |
3972 | |
3973 | pub type GInetAddressMaskPrivate = *mut _GInetAddressMaskPrivate; |
3974 | |
3975 | #[repr (C)] |
3976 | pub struct _GInetAddressPrivate { |
3977 | _data: [u8; 0], |
3978 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
3979 | } |
3980 | |
3981 | pub type GInetAddressPrivate = *mut _GInetAddressPrivate; |
3982 | |
3983 | #[derive (Copy, Clone)] |
3984 | #[repr (C)] |
3985 | pub struct GInetSocketAddressClass { |
3986 | pub parent_class: GSocketAddressClass, |
3987 | } |
3988 | |
3989 | impl ::std::fmt::Debug for GInetSocketAddressClass { |
3990 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
3991 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetSocketAddressClass @ {self:p}" )) |
3992 | .field(name:"parent_class" , &self.parent_class) |
3993 | .finish() |
3994 | } |
3995 | } |
3996 | |
3997 | #[repr (C)] |
3998 | pub struct _GInetSocketAddressPrivate { |
3999 | _data: [u8; 0], |
4000 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4001 | } |
4002 | |
4003 | pub type GInetSocketAddressPrivate = *mut _GInetSocketAddressPrivate; |
4004 | |
4005 | #[derive (Copy, Clone)] |
4006 | #[repr (C)] |
4007 | pub struct GInitableIface { |
4008 | pub g_iface: gobject::GTypeInterface, |
4009 | pub init: Option< |
4010 | unsafe extern "C" fn(*mut GInitable, *mut GCancellable, *mut *mut glib::GError) -> gboolean, |
4011 | >, |
4012 | } |
4013 | |
4014 | impl ::std::fmt::Debug for GInitableIface { |
4015 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4016 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInitableIface @ {self:p}" )) |
4017 | .field("g_iface" , &self.g_iface) |
4018 | .field(name:"init" , &self.init) |
4019 | .finish() |
4020 | } |
4021 | } |
4022 | |
4023 | #[derive (Copy, Clone)] |
4024 | #[repr (C)] |
4025 | pub struct GInputMessage { |
4026 | pub address: *mut *mut GSocketAddress, |
4027 | pub vectors: *mut GInputVector, |
4028 | pub num_vectors: c_uint, |
4029 | pub bytes_received: size_t, |
4030 | pub flags: c_int, |
4031 | pub control_messages: *mut *mut *mut GSocketControlMessage, |
4032 | pub num_control_messages: *mut c_uint, |
4033 | } |
4034 | |
4035 | impl ::std::fmt::Debug for GInputMessage { |
4036 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4037 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInputMessage @ {self:p}" )) |
4038 | .field("address" , &self.address) |
4039 | .field("vectors" , &self.vectors) |
4040 | .field("num_vectors" , &self.num_vectors) |
4041 | .field("bytes_received" , &self.bytes_received) |
4042 | .field("flags" , &self.flags) |
4043 | .field("control_messages" , &self.control_messages) |
4044 | .field(name:"num_control_messages" , &self.num_control_messages) |
4045 | .finish() |
4046 | } |
4047 | } |
4048 | |
4049 | #[derive (Copy, Clone)] |
4050 | #[repr (C)] |
4051 | pub struct GInputStreamClass { |
4052 | pub parent_class: gobject::GObjectClass, |
4053 | pub read_fn: Option< |
4054 | unsafe extern "C" fn( |
4055 | *mut GInputStream, |
4056 | *mut c_void, |
4057 | size_t, |
4058 | *mut GCancellable, |
4059 | *mut *mut glib::GError, |
4060 | ) -> ssize_t, |
4061 | >, |
4062 | pub skip: Option< |
4063 | unsafe extern "C" fn( |
4064 | *mut GInputStream, |
4065 | size_t, |
4066 | *mut GCancellable, |
4067 | *mut *mut glib::GError, |
4068 | ) -> ssize_t, |
4069 | >, |
4070 | pub close_fn: Option< |
4071 | unsafe extern "C" fn( |
4072 | *mut GInputStream, |
4073 | *mut GCancellable, |
4074 | *mut *mut glib::GError, |
4075 | ) -> gboolean, |
4076 | >, |
4077 | pub read_async: Option< |
4078 | unsafe extern "C" fn( |
4079 | *mut GInputStream, |
4080 | *mut u8, |
4081 | size_t, |
4082 | c_int, |
4083 | *mut GCancellable, |
4084 | GAsyncReadyCallback, |
4085 | gpointer, |
4086 | ), |
4087 | >, |
4088 | pub read_finish: Option< |
4089 | unsafe extern "C" fn( |
4090 | *mut GInputStream, |
4091 | *mut GAsyncResult, |
4092 | *mut *mut glib::GError, |
4093 | ) -> ssize_t, |
4094 | >, |
4095 | pub skip_async: Option< |
4096 | unsafe extern "C" fn( |
4097 | *mut GInputStream, |
4098 | size_t, |
4099 | c_int, |
4100 | *mut GCancellable, |
4101 | GAsyncReadyCallback, |
4102 | gpointer, |
4103 | ), |
4104 | >, |
4105 | pub skip_finish: Option< |
4106 | unsafe extern "C" fn( |
4107 | *mut GInputStream, |
4108 | *mut GAsyncResult, |
4109 | *mut *mut glib::GError, |
4110 | ) -> ssize_t, |
4111 | >, |
4112 | pub close_async: Option< |
4113 | unsafe extern "C" fn( |
4114 | *mut GInputStream, |
4115 | c_int, |
4116 | *mut GCancellable, |
4117 | GAsyncReadyCallback, |
4118 | gpointer, |
4119 | ), |
4120 | >, |
4121 | pub close_finish: Option< |
4122 | unsafe extern "C" fn( |
4123 | *mut GInputStream, |
4124 | *mut GAsyncResult, |
4125 | *mut *mut glib::GError, |
4126 | ) -> gboolean, |
4127 | >, |
4128 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
4129 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
4130 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
4131 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
4132 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
4133 | } |
4134 | |
4135 | impl ::std::fmt::Debug for GInputStreamClass { |
4136 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4137 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInputStreamClass @ {self:p}" )) |
4138 | .field("parent_class" , &self.parent_class) |
4139 | .field("read_fn" , &self.read_fn) |
4140 | .field("skip" , &self.skip) |
4141 | .field("close_fn" , &self.close_fn) |
4142 | .field("read_async" , &self.read_async) |
4143 | .field("read_finish" , &self.read_finish) |
4144 | .field("skip_async" , &self.skip_async) |
4145 | .field("skip_finish" , &self.skip_finish) |
4146 | .field("close_async" , &self.close_async) |
4147 | .field("close_finish" , &self.close_finish) |
4148 | .field("_g_reserved1" , &self._g_reserved1) |
4149 | .field("_g_reserved2" , &self._g_reserved2) |
4150 | .field("_g_reserved3" , &self._g_reserved3) |
4151 | .field("_g_reserved4" , &self._g_reserved4) |
4152 | .field(name:"_g_reserved5" , &self._g_reserved5) |
4153 | .finish() |
4154 | } |
4155 | } |
4156 | |
4157 | #[repr (C)] |
4158 | pub struct _GInputStreamPrivate { |
4159 | _data: [u8; 0], |
4160 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4161 | } |
4162 | |
4163 | pub type GInputStreamPrivate = *mut _GInputStreamPrivate; |
4164 | |
4165 | #[derive (Copy, Clone)] |
4166 | #[repr (C)] |
4167 | pub struct GInputVector { |
4168 | pub buffer: gpointer, |
4169 | pub size: size_t, |
4170 | } |
4171 | |
4172 | impl ::std::fmt::Debug for GInputVector { |
4173 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4174 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInputVector @ {self:p}" )) |
4175 | .field("buffer" , &self.buffer) |
4176 | .field(name:"size" , &self.size) |
4177 | .finish() |
4178 | } |
4179 | } |
4180 | |
4181 | #[derive (Copy, Clone)] |
4182 | #[repr (C)] |
4183 | pub struct GListModelInterface { |
4184 | pub g_iface: gobject::GTypeInterface, |
4185 | pub get_item_type: Option<unsafe extern "C" fn(*mut GListModel) -> GType>, |
4186 | pub get_n_items: Option<unsafe extern "C" fn(*mut GListModel) -> c_uint>, |
4187 | pub get_item: Option<unsafe extern "C" fn(*mut GListModel, c_uint) -> *mut gobject::GObject>, |
4188 | } |
4189 | |
4190 | impl ::std::fmt::Debug for GListModelInterface { |
4191 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4192 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GListModelInterface @ {self:p}" )) |
4193 | .field("g_iface" , &self.g_iface) |
4194 | .field("get_item_type" , &self.get_item_type) |
4195 | .field("get_n_items" , &self.get_n_items) |
4196 | .field(name:"get_item" , &self.get_item) |
4197 | .finish() |
4198 | } |
4199 | } |
4200 | |
4201 | #[derive (Copy, Clone)] |
4202 | #[repr (C)] |
4203 | pub struct GListStoreClass { |
4204 | pub parent_class: gobject::GObjectClass, |
4205 | } |
4206 | |
4207 | impl ::std::fmt::Debug for GListStoreClass { |
4208 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4209 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GListStoreClass @ {self:p}" )) |
4210 | .field(name:"parent_class" , &self.parent_class) |
4211 | .finish() |
4212 | } |
4213 | } |
4214 | |
4215 | #[derive (Copy, Clone)] |
4216 | #[repr (C)] |
4217 | pub struct GLoadableIconIface { |
4218 | pub g_iface: gobject::GTypeInterface, |
4219 | pub load: Option< |
4220 | unsafe extern "C" fn( |
4221 | *mut GLoadableIcon, |
4222 | c_int, |
4223 | *mut *mut c_char, |
4224 | *mut GCancellable, |
4225 | *mut *mut glib::GError, |
4226 | ) -> *mut GInputStream, |
4227 | >, |
4228 | pub load_async: Option< |
4229 | unsafe extern "C" fn( |
4230 | *mut GLoadableIcon, |
4231 | c_int, |
4232 | *mut GCancellable, |
4233 | GAsyncReadyCallback, |
4234 | gpointer, |
4235 | ), |
4236 | >, |
4237 | pub load_finish: Option< |
4238 | unsafe extern "C" fn( |
4239 | *mut GLoadableIcon, |
4240 | *mut GAsyncResult, |
4241 | *mut *mut c_char, |
4242 | *mut *mut glib::GError, |
4243 | ) -> *mut GInputStream, |
4244 | >, |
4245 | } |
4246 | |
4247 | impl ::std::fmt::Debug for GLoadableIconIface { |
4248 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4249 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GLoadableIconIface @ {self:p}" )) |
4250 | .field("g_iface" , &self.g_iface) |
4251 | .field("load" , &self.load) |
4252 | .field("load_async" , &self.load_async) |
4253 | .field(name:"load_finish" , &self.load_finish) |
4254 | .finish() |
4255 | } |
4256 | } |
4257 | |
4258 | #[derive (Copy, Clone)] |
4259 | #[repr (C)] |
4260 | pub struct GMemoryInputStreamClass { |
4261 | pub parent_class: GInputStreamClass, |
4262 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
4263 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
4264 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
4265 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
4266 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
4267 | } |
4268 | |
4269 | impl ::std::fmt::Debug for GMemoryInputStreamClass { |
4270 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4271 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMemoryInputStreamClass @ {self:p}" )) |
4272 | .field("parent_class" , &self.parent_class) |
4273 | .field("_g_reserved1" , &self._g_reserved1) |
4274 | .field("_g_reserved2" , &self._g_reserved2) |
4275 | .field("_g_reserved3" , &self._g_reserved3) |
4276 | .field("_g_reserved4" , &self._g_reserved4) |
4277 | .field(name:"_g_reserved5" , &self._g_reserved5) |
4278 | .finish() |
4279 | } |
4280 | } |
4281 | |
4282 | #[repr (C)] |
4283 | pub struct _GMemoryInputStreamPrivate { |
4284 | _data: [u8; 0], |
4285 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4286 | } |
4287 | |
4288 | pub type GMemoryInputStreamPrivate = *mut _GMemoryInputStreamPrivate; |
4289 | |
4290 | #[derive (Copy, Clone)] |
4291 | #[repr (C)] |
4292 | pub struct GMemoryMonitorInterface { |
4293 | pub g_iface: gobject::GTypeInterface, |
4294 | pub low_memory_warning: |
4295 | Option<unsafe extern "C" fn(*mut GMemoryMonitor, GMemoryMonitorWarningLevel)>, |
4296 | } |
4297 | |
4298 | impl ::std::fmt::Debug for GMemoryMonitorInterface { |
4299 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4300 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMemoryMonitorInterface @ {self:p}" )) |
4301 | .field(name:"low_memory_warning" , &self.low_memory_warning) |
4302 | .finish() |
4303 | } |
4304 | } |
4305 | |
4306 | #[derive (Copy, Clone)] |
4307 | #[repr (C)] |
4308 | pub struct GMemoryOutputStreamClass { |
4309 | pub parent_class: GOutputStreamClass, |
4310 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
4311 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
4312 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
4313 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
4314 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
4315 | } |
4316 | |
4317 | impl ::std::fmt::Debug for GMemoryOutputStreamClass { |
4318 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4319 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMemoryOutputStreamClass @ {self:p}" )) |
4320 | .field("parent_class" , &self.parent_class) |
4321 | .field("_g_reserved1" , &self._g_reserved1) |
4322 | .field("_g_reserved2" , &self._g_reserved2) |
4323 | .field("_g_reserved3" , &self._g_reserved3) |
4324 | .field("_g_reserved4" , &self._g_reserved4) |
4325 | .field(name:"_g_reserved5" , &self._g_reserved5) |
4326 | .finish() |
4327 | } |
4328 | } |
4329 | |
4330 | #[repr (C)] |
4331 | pub struct _GMemoryOutputStreamPrivate { |
4332 | _data: [u8; 0], |
4333 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4334 | } |
4335 | |
4336 | pub type GMemoryOutputStreamPrivate = *mut _GMemoryOutputStreamPrivate; |
4337 | |
4338 | #[derive (Copy, Clone)] |
4339 | #[repr (C)] |
4340 | pub struct GMenuAttributeIterClass { |
4341 | pub parent_class: gobject::GObjectClass, |
4342 | pub get_next: Option< |
4343 | unsafe extern "C" fn( |
4344 | *mut GMenuAttributeIter, |
4345 | *mut *const c_char, |
4346 | *mut *mut glib::GVariant, |
4347 | ) -> gboolean, |
4348 | >, |
4349 | } |
4350 | |
4351 | impl ::std::fmt::Debug for GMenuAttributeIterClass { |
4352 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4353 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuAttributeIterClass @ {self:p}" )) |
4354 | .field("parent_class" , &self.parent_class) |
4355 | .field(name:"get_next" , &self.get_next) |
4356 | .finish() |
4357 | } |
4358 | } |
4359 | |
4360 | #[repr (C)] |
4361 | pub struct _GMenuAttributeIterPrivate { |
4362 | _data: [u8; 0], |
4363 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4364 | } |
4365 | |
4366 | pub type GMenuAttributeIterPrivate = *mut _GMenuAttributeIterPrivate; |
4367 | |
4368 | #[derive (Copy, Clone)] |
4369 | #[repr (C)] |
4370 | pub struct GMenuLinkIterClass { |
4371 | pub parent_class: gobject::GObjectClass, |
4372 | pub get_next: Option< |
4373 | unsafe extern "C" fn( |
4374 | *mut GMenuLinkIter, |
4375 | *mut *const c_char, |
4376 | *mut *mut GMenuModel, |
4377 | ) -> gboolean, |
4378 | >, |
4379 | } |
4380 | |
4381 | impl ::std::fmt::Debug for GMenuLinkIterClass { |
4382 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4383 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuLinkIterClass @ {self:p}" )) |
4384 | .field("parent_class" , &self.parent_class) |
4385 | .field(name:"get_next" , &self.get_next) |
4386 | .finish() |
4387 | } |
4388 | } |
4389 | |
4390 | #[repr (C)] |
4391 | pub struct _GMenuLinkIterPrivate { |
4392 | _data: [u8; 0], |
4393 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4394 | } |
4395 | |
4396 | pub type GMenuLinkIterPrivate = *mut _GMenuLinkIterPrivate; |
4397 | |
4398 | #[derive (Copy, Clone)] |
4399 | #[repr (C)] |
4400 | pub struct GMenuModelClass { |
4401 | pub parent_class: gobject::GObjectClass, |
4402 | pub is_mutable: Option<unsafe extern "C" fn(*mut GMenuModel) -> gboolean>, |
4403 | pub get_n_items: Option<unsafe extern "C" fn(*mut GMenuModel) -> c_int>, |
4404 | pub get_item_attributes: |
4405 | Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>, |
4406 | pub iterate_item_attributes: |
4407 | Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuAttributeIter>, |
4408 | pub get_item_attribute_value: Option< |
4409 | unsafe extern "C" fn( |
4410 | *mut GMenuModel, |
4411 | c_int, |
4412 | *const c_char, |
4413 | *const glib::GVariantType, |
4414 | ) -> *mut glib::GVariant, |
4415 | >, |
4416 | pub get_item_links: |
4417 | Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *mut *mut glib::GHashTable)>, |
4418 | pub iterate_item_links: |
4419 | Option<unsafe extern "C" fn(*mut GMenuModel, c_int) -> *mut GMenuLinkIter>, |
4420 | pub get_item_link: |
4421 | Option<unsafe extern "C" fn(*mut GMenuModel, c_int, *const c_char) -> *mut GMenuModel>, |
4422 | } |
4423 | |
4424 | impl ::std::fmt::Debug for GMenuModelClass { |
4425 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4426 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuModelClass @ {self:p}" )) |
4427 | .field("parent_class" , &self.parent_class) |
4428 | .field("is_mutable" , &self.is_mutable) |
4429 | .field("get_n_items" , &self.get_n_items) |
4430 | .field("get_item_attributes" , &self.get_item_attributes) |
4431 | .field("iterate_item_attributes" , &self.iterate_item_attributes) |
4432 | .field("get_item_attribute_value" , &self.get_item_attribute_value) |
4433 | .field("get_item_links" , &self.get_item_links) |
4434 | .field("iterate_item_links" , &self.iterate_item_links) |
4435 | .field(name:"get_item_link" , &self.get_item_link) |
4436 | .finish() |
4437 | } |
4438 | } |
4439 | |
4440 | #[repr (C)] |
4441 | pub struct _GMenuModelPrivate { |
4442 | _data: [u8; 0], |
4443 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4444 | } |
4445 | |
4446 | pub type GMenuModelPrivate = *mut _GMenuModelPrivate; |
4447 | |
4448 | #[derive (Copy, Clone)] |
4449 | #[repr (C)] |
4450 | pub struct GMountIface { |
4451 | pub g_iface: gobject::GTypeInterface, |
4452 | pub changed: Option<unsafe extern "C" fn(*mut GMount)>, |
4453 | pub unmounted: Option<unsafe extern "C" fn(*mut GMount)>, |
4454 | pub get_root: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>, |
4455 | pub get_name: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>, |
4456 | pub get_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>, |
4457 | pub get_uuid: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>, |
4458 | pub get_volume: Option<unsafe extern "C" fn(*mut GMount) -> *mut GVolume>, |
4459 | pub get_drive: Option<unsafe extern "C" fn(*mut GMount) -> *mut GDrive>, |
4460 | pub can_unmount: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>, |
4461 | pub can_eject: Option<unsafe extern "C" fn(*mut GMount) -> gboolean>, |
4462 | pub unmount: Option< |
4463 | unsafe extern "C" fn( |
4464 | *mut GMount, |
4465 | GMountUnmountFlags, |
4466 | *mut GCancellable, |
4467 | GAsyncReadyCallback, |
4468 | gpointer, |
4469 | ), |
4470 | >, |
4471 | pub unmount_finish: Option< |
4472 | unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
4473 | >, |
4474 | pub eject: Option< |
4475 | unsafe extern "C" fn( |
4476 | *mut GMount, |
4477 | GMountUnmountFlags, |
4478 | *mut GCancellable, |
4479 | GAsyncReadyCallback, |
4480 | gpointer, |
4481 | ), |
4482 | >, |
4483 | pub eject_finish: Option< |
4484 | unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
4485 | >, |
4486 | pub remount: Option< |
4487 | unsafe extern "C" fn( |
4488 | *mut GMount, |
4489 | GMountMountFlags, |
4490 | *mut GMountOperation, |
4491 | *mut GCancellable, |
4492 | GAsyncReadyCallback, |
4493 | gpointer, |
4494 | ), |
4495 | >, |
4496 | pub remount_finish: Option< |
4497 | unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
4498 | >, |
4499 | pub guess_content_type: Option< |
4500 | unsafe extern "C" fn( |
4501 | *mut GMount, |
4502 | gboolean, |
4503 | *mut GCancellable, |
4504 | GAsyncReadyCallback, |
4505 | gpointer, |
4506 | ), |
4507 | >, |
4508 | pub guess_content_type_finish: Option< |
4509 | unsafe extern "C" fn( |
4510 | *mut GMount, |
4511 | *mut GAsyncResult, |
4512 | *mut *mut glib::GError, |
4513 | ) -> *mut *mut c_char, |
4514 | >, |
4515 | pub guess_content_type_sync: Option< |
4516 | unsafe extern "C" fn( |
4517 | *mut GMount, |
4518 | gboolean, |
4519 | *mut GCancellable, |
4520 | *mut *mut glib::GError, |
4521 | ) -> *mut *mut c_char, |
4522 | >, |
4523 | pub pre_unmount: Option<unsafe extern "C" fn(*mut GMount)>, |
4524 | pub unmount_with_operation: Option< |
4525 | unsafe extern "C" fn( |
4526 | *mut GMount, |
4527 | GMountUnmountFlags, |
4528 | *mut GMountOperation, |
4529 | *mut GCancellable, |
4530 | GAsyncReadyCallback, |
4531 | gpointer, |
4532 | ), |
4533 | >, |
4534 | pub unmount_with_operation_finish: Option< |
4535 | unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
4536 | >, |
4537 | pub eject_with_operation: Option< |
4538 | unsafe extern "C" fn( |
4539 | *mut GMount, |
4540 | GMountUnmountFlags, |
4541 | *mut GMountOperation, |
4542 | *mut GCancellable, |
4543 | GAsyncReadyCallback, |
4544 | gpointer, |
4545 | ), |
4546 | >, |
4547 | pub eject_with_operation_finish: Option< |
4548 | unsafe extern "C" fn(*mut GMount, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
4549 | >, |
4550 | pub get_default_location: Option<unsafe extern "C" fn(*mut GMount) -> *mut GFile>, |
4551 | pub get_sort_key: Option<unsafe extern "C" fn(*mut GMount) -> *const c_char>, |
4552 | pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GMount) -> *mut GIcon>, |
4553 | } |
4554 | |
4555 | impl ::std::fmt::Debug for GMountIface { |
4556 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4557 | f.debug_struct(&format!("GMountIface @ {self:p}" )) |
4558 | .field("g_iface" , &self.g_iface) |
4559 | .field("changed" , &self.changed) |
4560 | .field("unmounted" , &self.unmounted) |
4561 | .field("get_root" , &self.get_root) |
4562 | .field("get_name" , &self.get_name) |
4563 | .field("get_icon" , &self.get_icon) |
4564 | .field("get_uuid" , &self.get_uuid) |
4565 | .field("get_volume" , &self.get_volume) |
4566 | .field("get_drive" , &self.get_drive) |
4567 | .field("can_unmount" , &self.can_unmount) |
4568 | .field("can_eject" , &self.can_eject) |
4569 | .field("unmount" , &self.unmount) |
4570 | .field("unmount_finish" , &self.unmount_finish) |
4571 | .field("eject" , &self.eject) |
4572 | .field("eject_finish" , &self.eject_finish) |
4573 | .field("remount" , &self.remount) |
4574 | .field("remount_finish" , &self.remount_finish) |
4575 | .field("guess_content_type" , &self.guess_content_type) |
4576 | .field("guess_content_type_finish" , &self.guess_content_type_finish) |
4577 | .field("guess_content_type_sync" , &self.guess_content_type_sync) |
4578 | .field("pre_unmount" , &self.pre_unmount) |
4579 | .field("unmount_with_operation" , &self.unmount_with_operation) |
4580 | .field( |
4581 | "unmount_with_operation_finish" , |
4582 | &self.unmount_with_operation_finish, |
4583 | ) |
4584 | .field("eject_with_operation" , &self.eject_with_operation) |
4585 | .field( |
4586 | "eject_with_operation_finish" , |
4587 | &self.eject_with_operation_finish, |
4588 | ) |
4589 | .field("get_default_location" , &self.get_default_location) |
4590 | .field("get_sort_key" , &self.get_sort_key) |
4591 | .field("get_symbolic_icon" , &self.get_symbolic_icon) |
4592 | .finish() |
4593 | } |
4594 | } |
4595 | |
4596 | #[derive (Copy, Clone)] |
4597 | #[repr (C)] |
4598 | pub struct GMountOperationClass { |
4599 | pub parent_class: gobject::GObjectClass, |
4600 | pub ask_password: Option< |
4601 | unsafe extern "C" fn( |
4602 | *mut GMountOperation, |
4603 | *const c_char, |
4604 | *const c_char, |
4605 | *const c_char, |
4606 | GAskPasswordFlags, |
4607 | ), |
4608 | >, |
4609 | pub ask_question: |
4610 | Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, *mut *const c_char)>, |
4611 | pub reply: Option<unsafe extern "C" fn(*mut GMountOperation, GMountOperationResult)>, |
4612 | pub aborted: Option<unsafe extern "C" fn(*mut GMountOperation)>, |
4613 | pub show_processes: Option< |
4614 | unsafe extern "C" fn( |
4615 | *mut GMountOperation, |
4616 | *const c_char, |
4617 | *mut glib::GArray, |
4618 | *mut *const c_char, |
4619 | ), |
4620 | >, |
4621 | pub show_unmount_progress: |
4622 | Option<unsafe extern "C" fn(*mut GMountOperation, *const c_char, i64, i64)>, |
4623 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
4624 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
4625 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
4626 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
4627 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
4628 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
4629 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
4630 | pub _g_reserved8: Option<unsafe extern "C" fn()>, |
4631 | pub _g_reserved9: Option<unsafe extern "C" fn()>, |
4632 | } |
4633 | |
4634 | impl ::std::fmt::Debug for GMountOperationClass { |
4635 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4636 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMountOperationClass @ {self:p}" )) |
4637 | .field("parent_class" , &self.parent_class) |
4638 | .field("ask_password" , &self.ask_password) |
4639 | .field("ask_question" , &self.ask_question) |
4640 | .field("reply" , &self.reply) |
4641 | .field("aborted" , &self.aborted) |
4642 | .field("show_processes" , &self.show_processes) |
4643 | .field("show_unmount_progress" , &self.show_unmount_progress) |
4644 | .field("_g_reserved1" , &self._g_reserved1) |
4645 | .field("_g_reserved2" , &self._g_reserved2) |
4646 | .field("_g_reserved3" , &self._g_reserved3) |
4647 | .field("_g_reserved4" , &self._g_reserved4) |
4648 | .field("_g_reserved5" , &self._g_reserved5) |
4649 | .field("_g_reserved6" , &self._g_reserved6) |
4650 | .field("_g_reserved7" , &self._g_reserved7) |
4651 | .field("_g_reserved8" , &self._g_reserved8) |
4652 | .field(name:"_g_reserved9" , &self._g_reserved9) |
4653 | .finish() |
4654 | } |
4655 | } |
4656 | |
4657 | #[repr (C)] |
4658 | pub struct _GMountOperationPrivate { |
4659 | _data: [u8; 0], |
4660 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4661 | } |
4662 | |
4663 | pub type GMountOperationPrivate = *mut _GMountOperationPrivate; |
4664 | |
4665 | #[derive (Copy, Clone)] |
4666 | #[repr (C)] |
4667 | pub struct GNativeSocketAddressClass { |
4668 | pub parent_class: GSocketAddressClass, |
4669 | } |
4670 | |
4671 | impl ::std::fmt::Debug for GNativeSocketAddressClass { |
4672 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4673 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNativeSocketAddressClass @ {self:p}" )) |
4674 | .field(name:"parent_class" , &self.parent_class) |
4675 | .finish() |
4676 | } |
4677 | } |
4678 | |
4679 | #[repr (C)] |
4680 | pub struct _GNativeSocketAddressPrivate { |
4681 | _data: [u8; 0], |
4682 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4683 | } |
4684 | |
4685 | pub type GNativeSocketAddressPrivate = *mut _GNativeSocketAddressPrivate; |
4686 | |
4687 | #[derive (Copy, Clone)] |
4688 | #[repr (C)] |
4689 | pub struct GNativeVolumeMonitorClass { |
4690 | pub parent_class: GVolumeMonitorClass, |
4691 | pub get_mount_for_mount_path: |
4692 | Option<unsafe extern "C" fn(*const c_char, *mut GCancellable) -> *mut GMount>, |
4693 | } |
4694 | |
4695 | impl ::std::fmt::Debug for GNativeVolumeMonitorClass { |
4696 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4697 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNativeVolumeMonitorClass @ {self:p}" )) |
4698 | .field("parent_class" , &self.parent_class) |
4699 | .field(name:"get_mount_for_mount_path" , &self.get_mount_for_mount_path) |
4700 | .finish() |
4701 | } |
4702 | } |
4703 | |
4704 | #[derive (Copy, Clone)] |
4705 | #[repr (C)] |
4706 | pub struct GNetworkAddressClass { |
4707 | pub parent_class: gobject::GObjectClass, |
4708 | } |
4709 | |
4710 | impl ::std::fmt::Debug for GNetworkAddressClass { |
4711 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4712 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNetworkAddressClass @ {self:p}" )) |
4713 | .field(name:"parent_class" , &self.parent_class) |
4714 | .finish() |
4715 | } |
4716 | } |
4717 | |
4718 | #[repr (C)] |
4719 | pub struct _GNetworkAddressPrivate { |
4720 | _data: [u8; 0], |
4721 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4722 | } |
4723 | |
4724 | pub type GNetworkAddressPrivate = *mut _GNetworkAddressPrivate; |
4725 | |
4726 | #[derive (Copy, Clone)] |
4727 | #[repr (C)] |
4728 | pub struct GNetworkMonitorInterface { |
4729 | pub g_iface: gobject::GTypeInterface, |
4730 | pub network_changed: Option<unsafe extern "C" fn(*mut GNetworkMonitor, gboolean)>, |
4731 | pub can_reach: Option< |
4732 | unsafe extern "C" fn( |
4733 | *mut GNetworkMonitor, |
4734 | *mut GSocketConnectable, |
4735 | *mut GCancellable, |
4736 | *mut *mut glib::GError, |
4737 | ) -> gboolean, |
4738 | >, |
4739 | pub can_reach_async: Option< |
4740 | unsafe extern "C" fn( |
4741 | *mut GNetworkMonitor, |
4742 | *mut GSocketConnectable, |
4743 | *mut GCancellable, |
4744 | GAsyncReadyCallback, |
4745 | gpointer, |
4746 | ), |
4747 | >, |
4748 | pub can_reach_finish: Option< |
4749 | unsafe extern "C" fn( |
4750 | *mut GNetworkMonitor, |
4751 | *mut GAsyncResult, |
4752 | *mut *mut glib::GError, |
4753 | ) -> gboolean, |
4754 | >, |
4755 | } |
4756 | |
4757 | impl ::std::fmt::Debug for GNetworkMonitorInterface { |
4758 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4759 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNetworkMonitorInterface @ {self:p}" )) |
4760 | .field("g_iface" , &self.g_iface) |
4761 | .field("network_changed" , &self.network_changed) |
4762 | .field("can_reach" , &self.can_reach) |
4763 | .field("can_reach_async" , &self.can_reach_async) |
4764 | .field(name:"can_reach_finish" , &self.can_reach_finish) |
4765 | .finish() |
4766 | } |
4767 | } |
4768 | |
4769 | #[derive (Copy, Clone)] |
4770 | #[repr (C)] |
4771 | pub struct GNetworkServiceClass { |
4772 | pub parent_class: gobject::GObjectClass, |
4773 | } |
4774 | |
4775 | impl ::std::fmt::Debug for GNetworkServiceClass { |
4776 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4777 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNetworkServiceClass @ {self:p}" )) |
4778 | .field(name:"parent_class" , &self.parent_class) |
4779 | .finish() |
4780 | } |
4781 | } |
4782 | |
4783 | #[repr (C)] |
4784 | pub struct _GNetworkServicePrivate { |
4785 | _data: [u8; 0], |
4786 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4787 | } |
4788 | |
4789 | pub type GNetworkServicePrivate = *mut _GNetworkServicePrivate; |
4790 | |
4791 | #[derive (Copy, Clone)] |
4792 | #[repr (C)] |
4793 | pub struct GOutputMessage { |
4794 | pub address: *mut GSocketAddress, |
4795 | pub vectors: *mut GOutputVector, |
4796 | pub num_vectors: c_uint, |
4797 | pub bytes_sent: c_uint, |
4798 | pub control_messages: *mut *mut GSocketControlMessage, |
4799 | pub num_control_messages: c_uint, |
4800 | } |
4801 | |
4802 | impl ::std::fmt::Debug for GOutputMessage { |
4803 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4804 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GOutputMessage @ {self:p}" )) |
4805 | .field("address" , &self.address) |
4806 | .field("vectors" , &self.vectors) |
4807 | .field("num_vectors" , &self.num_vectors) |
4808 | .field("bytes_sent" , &self.bytes_sent) |
4809 | .field("control_messages" , &self.control_messages) |
4810 | .field(name:"num_control_messages" , &self.num_control_messages) |
4811 | .finish() |
4812 | } |
4813 | } |
4814 | |
4815 | #[derive (Copy, Clone)] |
4816 | #[repr (C)] |
4817 | pub struct GOutputStreamClass { |
4818 | pub parent_class: gobject::GObjectClass, |
4819 | pub write_fn: Option< |
4820 | unsafe extern "C" fn( |
4821 | *mut GOutputStream, |
4822 | *mut u8, |
4823 | size_t, |
4824 | *mut GCancellable, |
4825 | *mut *mut glib::GError, |
4826 | ) -> ssize_t, |
4827 | >, |
4828 | pub splice: Option< |
4829 | unsafe extern "C" fn( |
4830 | *mut GOutputStream, |
4831 | *mut GInputStream, |
4832 | GOutputStreamSpliceFlags, |
4833 | *mut GCancellable, |
4834 | *mut *mut glib::GError, |
4835 | ) -> ssize_t, |
4836 | >, |
4837 | pub flush: Option< |
4838 | unsafe extern "C" fn( |
4839 | *mut GOutputStream, |
4840 | *mut GCancellable, |
4841 | *mut *mut glib::GError, |
4842 | ) -> gboolean, |
4843 | >, |
4844 | pub close_fn: Option< |
4845 | unsafe extern "C" fn( |
4846 | *mut GOutputStream, |
4847 | *mut GCancellable, |
4848 | *mut *mut glib::GError, |
4849 | ) -> gboolean, |
4850 | >, |
4851 | pub write_async: Option< |
4852 | unsafe extern "C" fn( |
4853 | *mut GOutputStream, |
4854 | *mut u8, |
4855 | size_t, |
4856 | c_int, |
4857 | *mut GCancellable, |
4858 | GAsyncReadyCallback, |
4859 | gpointer, |
4860 | ), |
4861 | >, |
4862 | pub write_finish: Option< |
4863 | unsafe extern "C" fn( |
4864 | *mut GOutputStream, |
4865 | *mut GAsyncResult, |
4866 | *mut *mut glib::GError, |
4867 | ) -> ssize_t, |
4868 | >, |
4869 | pub splice_async: Option< |
4870 | unsafe extern "C" fn( |
4871 | *mut GOutputStream, |
4872 | *mut GInputStream, |
4873 | GOutputStreamSpliceFlags, |
4874 | c_int, |
4875 | *mut GCancellable, |
4876 | GAsyncReadyCallback, |
4877 | gpointer, |
4878 | ), |
4879 | >, |
4880 | pub splice_finish: Option< |
4881 | unsafe extern "C" fn( |
4882 | *mut GOutputStream, |
4883 | *mut GAsyncResult, |
4884 | *mut *mut glib::GError, |
4885 | ) -> ssize_t, |
4886 | >, |
4887 | pub flush_async: Option< |
4888 | unsafe extern "C" fn( |
4889 | *mut GOutputStream, |
4890 | c_int, |
4891 | *mut GCancellable, |
4892 | GAsyncReadyCallback, |
4893 | gpointer, |
4894 | ), |
4895 | >, |
4896 | pub flush_finish: Option< |
4897 | unsafe extern "C" fn( |
4898 | *mut GOutputStream, |
4899 | *mut GAsyncResult, |
4900 | *mut *mut glib::GError, |
4901 | ) -> gboolean, |
4902 | >, |
4903 | pub close_async: Option< |
4904 | unsafe extern "C" fn( |
4905 | *mut GOutputStream, |
4906 | c_int, |
4907 | *mut GCancellable, |
4908 | GAsyncReadyCallback, |
4909 | gpointer, |
4910 | ), |
4911 | >, |
4912 | pub close_finish: Option< |
4913 | unsafe extern "C" fn( |
4914 | *mut GOutputStream, |
4915 | *mut GAsyncResult, |
4916 | *mut *mut glib::GError, |
4917 | ) -> gboolean, |
4918 | >, |
4919 | pub writev_fn: Option< |
4920 | unsafe extern "C" fn( |
4921 | *mut GOutputStream, |
4922 | *const GOutputVector, |
4923 | size_t, |
4924 | *mut size_t, |
4925 | *mut GCancellable, |
4926 | *mut *mut glib::GError, |
4927 | ) -> gboolean, |
4928 | >, |
4929 | pub writev_async: Option< |
4930 | unsafe extern "C" fn( |
4931 | *mut GOutputStream, |
4932 | *const GOutputVector, |
4933 | size_t, |
4934 | c_int, |
4935 | *mut GCancellable, |
4936 | GAsyncReadyCallback, |
4937 | gpointer, |
4938 | ), |
4939 | >, |
4940 | pub writev_finish: Option< |
4941 | unsafe extern "C" fn( |
4942 | *mut GOutputStream, |
4943 | *mut GAsyncResult, |
4944 | *mut size_t, |
4945 | *mut *mut glib::GError, |
4946 | ) -> gboolean, |
4947 | >, |
4948 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
4949 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
4950 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
4951 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
4952 | pub _g_reserved8: Option<unsafe extern "C" fn()>, |
4953 | } |
4954 | |
4955 | impl ::std::fmt::Debug for GOutputStreamClass { |
4956 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
4957 | f.debug_struct(&format!("GOutputStreamClass @ {self:p}" )) |
4958 | .field("parent_class" , &self.parent_class) |
4959 | .field("write_fn" , &self.write_fn) |
4960 | .field("splice" , &self.splice) |
4961 | .field("flush" , &self.flush) |
4962 | .field("close_fn" , &self.close_fn) |
4963 | .field("write_async" , &self.write_async) |
4964 | .field("write_finish" , &self.write_finish) |
4965 | .field("splice_async" , &self.splice_async) |
4966 | .field("splice_finish" , &self.splice_finish) |
4967 | .field("flush_async" , &self.flush_async) |
4968 | .field("flush_finish" , &self.flush_finish) |
4969 | .field("close_async" , &self.close_async) |
4970 | .field("close_finish" , &self.close_finish) |
4971 | .field("writev_fn" , &self.writev_fn) |
4972 | .field("writev_async" , &self.writev_async) |
4973 | .field("writev_finish" , &self.writev_finish) |
4974 | .field("_g_reserved4" , &self._g_reserved4) |
4975 | .field("_g_reserved5" , &self._g_reserved5) |
4976 | .field("_g_reserved6" , &self._g_reserved6) |
4977 | .field("_g_reserved7" , &self._g_reserved7) |
4978 | .field("_g_reserved8" , &self._g_reserved8) |
4979 | .finish() |
4980 | } |
4981 | } |
4982 | |
4983 | #[repr (C)] |
4984 | pub struct _GOutputStreamPrivate { |
4985 | _data: [u8; 0], |
4986 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
4987 | } |
4988 | |
4989 | pub type GOutputStreamPrivate = *mut _GOutputStreamPrivate; |
4990 | |
4991 | #[derive (Copy, Clone)] |
4992 | #[repr (C)] |
4993 | pub struct GOutputVector { |
4994 | pub buffer: gconstpointer, |
4995 | pub size: size_t, |
4996 | } |
4997 | |
4998 | impl ::std::fmt::Debug for GOutputVector { |
4999 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5000 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GOutputVector @ {self:p}" )) |
5001 | .field("buffer" , &self.buffer) |
5002 | .field(name:"size" , &self.size) |
5003 | .finish() |
5004 | } |
5005 | } |
5006 | |
5007 | #[derive (Copy, Clone)] |
5008 | #[repr (C)] |
5009 | pub struct GPermissionClass { |
5010 | pub parent_class: gobject::GObjectClass, |
5011 | pub acquire: Option< |
5012 | unsafe extern "C" fn( |
5013 | *mut GPermission, |
5014 | *mut GCancellable, |
5015 | *mut *mut glib::GError, |
5016 | ) -> gboolean, |
5017 | >, |
5018 | pub acquire_async: Option< |
5019 | unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer), |
5020 | >, |
5021 | pub acquire_finish: Option< |
5022 | unsafe extern "C" fn( |
5023 | *mut GPermission, |
5024 | *mut GAsyncResult, |
5025 | *mut *mut glib::GError, |
5026 | ) -> gboolean, |
5027 | >, |
5028 | pub release: Option< |
5029 | unsafe extern "C" fn( |
5030 | *mut GPermission, |
5031 | *mut GCancellable, |
5032 | *mut *mut glib::GError, |
5033 | ) -> gboolean, |
5034 | >, |
5035 | pub release_async: Option< |
5036 | unsafe extern "C" fn(*mut GPermission, *mut GCancellable, GAsyncReadyCallback, gpointer), |
5037 | >, |
5038 | pub release_finish: Option< |
5039 | unsafe extern "C" fn( |
5040 | *mut GPermission, |
5041 | *mut GAsyncResult, |
5042 | *mut *mut glib::GError, |
5043 | ) -> gboolean, |
5044 | >, |
5045 | pub reserved: [gpointer; 16], |
5046 | } |
5047 | |
5048 | impl ::std::fmt::Debug for GPermissionClass { |
5049 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5050 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GPermissionClass @ {self:p}" )) |
5051 | .field("parent_class" , &self.parent_class) |
5052 | .field("acquire" , &self.acquire) |
5053 | .field("acquire_async" , &self.acquire_async) |
5054 | .field("acquire_finish" , &self.acquire_finish) |
5055 | .field("release" , &self.release) |
5056 | .field("release_async" , &self.release_async) |
5057 | .field("release_finish" , &self.release_finish) |
5058 | .field(name:"reserved" , &self.reserved) |
5059 | .finish() |
5060 | } |
5061 | } |
5062 | |
5063 | #[repr (C)] |
5064 | pub struct _GPermissionPrivate { |
5065 | _data: [u8; 0], |
5066 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5067 | } |
5068 | |
5069 | pub type GPermissionPrivate = *mut _GPermissionPrivate; |
5070 | |
5071 | #[derive (Copy, Clone)] |
5072 | #[repr (C)] |
5073 | pub struct GPollableInputStreamInterface { |
5074 | pub g_iface: gobject::GTypeInterface, |
5075 | pub can_poll: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>, |
5076 | pub is_readable: Option<unsafe extern "C" fn(*mut GPollableInputStream) -> gboolean>, |
5077 | pub create_source: Option< |
5078 | unsafe extern "C" fn(*mut GPollableInputStream, *mut GCancellable) -> *mut glib::GSource, |
5079 | >, |
5080 | pub read_nonblocking: Option< |
5081 | unsafe extern "C" fn( |
5082 | *mut GPollableInputStream, |
5083 | *mut u8, |
5084 | size_t, |
5085 | *mut *mut glib::GError, |
5086 | ) -> ssize_t, |
5087 | >, |
5088 | } |
5089 | |
5090 | impl ::std::fmt::Debug for GPollableInputStreamInterface { |
5091 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5092 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GPollableInputStreamInterface @ {self:p}" )) |
5093 | .field("g_iface" , &self.g_iface) |
5094 | .field("can_poll" , &self.can_poll) |
5095 | .field("is_readable" , &self.is_readable) |
5096 | .field("create_source" , &self.create_source) |
5097 | .field(name:"read_nonblocking" , &self.read_nonblocking) |
5098 | .finish() |
5099 | } |
5100 | } |
5101 | |
5102 | #[derive (Copy, Clone)] |
5103 | #[repr (C)] |
5104 | pub struct GPollableOutputStreamInterface { |
5105 | pub g_iface: gobject::GTypeInterface, |
5106 | pub can_poll: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>, |
5107 | pub is_writable: Option<unsafe extern "C" fn(*mut GPollableOutputStream) -> gboolean>, |
5108 | pub create_source: Option< |
5109 | unsafe extern "C" fn(*mut GPollableOutputStream, *mut GCancellable) -> *mut glib::GSource, |
5110 | >, |
5111 | pub write_nonblocking: Option< |
5112 | unsafe extern "C" fn( |
5113 | *mut GPollableOutputStream, |
5114 | *mut u8, |
5115 | size_t, |
5116 | *mut *mut glib::GError, |
5117 | ) -> ssize_t, |
5118 | >, |
5119 | pub writev_nonblocking: Option< |
5120 | unsafe extern "C" fn( |
5121 | *mut GPollableOutputStream, |
5122 | *const GOutputVector, |
5123 | size_t, |
5124 | *mut size_t, |
5125 | *mut *mut glib::GError, |
5126 | ) -> GPollableReturn, |
5127 | >, |
5128 | } |
5129 | |
5130 | impl ::std::fmt::Debug for GPollableOutputStreamInterface { |
5131 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5132 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GPollableOutputStreamInterface @ {self:p}" )) |
5133 | .field("g_iface" , &self.g_iface) |
5134 | .field("can_poll" , &self.can_poll) |
5135 | .field("is_writable" , &self.is_writable) |
5136 | .field("create_source" , &self.create_source) |
5137 | .field("write_nonblocking" , &self.write_nonblocking) |
5138 | .field(name:"writev_nonblocking" , &self.writev_nonblocking) |
5139 | .finish() |
5140 | } |
5141 | } |
5142 | |
5143 | #[derive (Copy, Clone)] |
5144 | #[repr (C)] |
5145 | pub struct GPowerProfileMonitorInterface { |
5146 | pub g_iface: gobject::GTypeInterface, |
5147 | } |
5148 | |
5149 | impl ::std::fmt::Debug for GPowerProfileMonitorInterface { |
5150 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5151 | fDebugStruct<'_, '_>.debug_struct(&format!("GPowerProfileMonitorInterface @ {self:p}" )) |
5152 | .finish() |
5153 | } |
5154 | } |
5155 | |
5156 | #[derive (Copy, Clone)] |
5157 | #[repr (C)] |
5158 | pub struct GProxyAddressClass { |
5159 | pub parent_class: GInetSocketAddressClass, |
5160 | } |
5161 | |
5162 | impl ::std::fmt::Debug for GProxyAddressClass { |
5163 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5164 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GProxyAddressClass @ {self:p}" )) |
5165 | .field(name:"parent_class" , &self.parent_class) |
5166 | .finish() |
5167 | } |
5168 | } |
5169 | |
5170 | #[derive (Copy, Clone)] |
5171 | #[repr (C)] |
5172 | pub struct GProxyAddressEnumeratorClass { |
5173 | pub parent_class: GSocketAddressEnumeratorClass, |
5174 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5175 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5176 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5177 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5178 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
5179 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
5180 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
5181 | } |
5182 | |
5183 | impl ::std::fmt::Debug for GProxyAddressEnumeratorClass { |
5184 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5185 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GProxyAddressEnumeratorClass @ {self:p}" )) |
5186 | .field("_g_reserved1" , &self._g_reserved1) |
5187 | .field("_g_reserved2" , &self._g_reserved2) |
5188 | .field("_g_reserved3" , &self._g_reserved3) |
5189 | .field("_g_reserved4" , &self._g_reserved4) |
5190 | .field("_g_reserved5" , &self._g_reserved5) |
5191 | .field("_g_reserved6" , &self._g_reserved6) |
5192 | .field(name:"_g_reserved7" , &self._g_reserved7) |
5193 | .finish() |
5194 | } |
5195 | } |
5196 | |
5197 | #[repr (C)] |
5198 | pub struct _GProxyAddressEnumeratorPrivate { |
5199 | _data: [u8; 0], |
5200 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5201 | } |
5202 | |
5203 | pub type GProxyAddressEnumeratorPrivate = *mut _GProxyAddressEnumeratorPrivate; |
5204 | |
5205 | #[repr (C)] |
5206 | pub struct _GProxyAddressPrivate { |
5207 | _data: [u8; 0], |
5208 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5209 | } |
5210 | |
5211 | pub type GProxyAddressPrivate = *mut _GProxyAddressPrivate; |
5212 | |
5213 | #[derive (Copy, Clone)] |
5214 | #[repr (C)] |
5215 | pub struct GProxyInterface { |
5216 | pub g_iface: gobject::GTypeInterface, |
5217 | pub connect: Option< |
5218 | unsafe extern "C" fn( |
5219 | *mut GProxy, |
5220 | *mut GIOStream, |
5221 | *mut GProxyAddress, |
5222 | *mut GCancellable, |
5223 | *mut *mut glib::GError, |
5224 | ) -> *mut GIOStream, |
5225 | >, |
5226 | pub connect_async: Option< |
5227 | unsafe extern "C" fn( |
5228 | *mut GProxy, |
5229 | *mut GIOStream, |
5230 | *mut GProxyAddress, |
5231 | *mut GCancellable, |
5232 | GAsyncReadyCallback, |
5233 | gpointer, |
5234 | ), |
5235 | >, |
5236 | pub connect_finish: Option< |
5237 | unsafe extern "C" fn( |
5238 | *mut GProxy, |
5239 | *mut GAsyncResult, |
5240 | *mut *mut glib::GError, |
5241 | ) -> *mut GIOStream, |
5242 | >, |
5243 | pub supports_hostname: Option<unsafe extern "C" fn(*mut GProxy) -> gboolean>, |
5244 | } |
5245 | |
5246 | impl ::std::fmt::Debug for GProxyInterface { |
5247 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5248 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GProxyInterface @ {self:p}" )) |
5249 | .field("g_iface" , &self.g_iface) |
5250 | .field("connect" , &self.connect) |
5251 | .field("connect_async" , &self.connect_async) |
5252 | .field("connect_finish" , &self.connect_finish) |
5253 | .field(name:"supports_hostname" , &self.supports_hostname) |
5254 | .finish() |
5255 | } |
5256 | } |
5257 | |
5258 | #[derive (Copy, Clone)] |
5259 | #[repr (C)] |
5260 | pub struct GProxyResolverInterface { |
5261 | pub g_iface: gobject::GTypeInterface, |
5262 | pub is_supported: Option<unsafe extern "C" fn(*mut GProxyResolver) -> gboolean>, |
5263 | pub lookup: Option< |
5264 | unsafe extern "C" fn( |
5265 | *mut GProxyResolver, |
5266 | *const c_char, |
5267 | *mut GCancellable, |
5268 | *mut *mut glib::GError, |
5269 | ) -> *mut *mut c_char, |
5270 | >, |
5271 | pub lookup_async: Option< |
5272 | unsafe extern "C" fn( |
5273 | *mut GProxyResolver, |
5274 | *const c_char, |
5275 | *mut GCancellable, |
5276 | GAsyncReadyCallback, |
5277 | gpointer, |
5278 | ), |
5279 | >, |
5280 | pub lookup_finish: Option< |
5281 | unsafe extern "C" fn( |
5282 | *mut GProxyResolver, |
5283 | *mut GAsyncResult, |
5284 | *mut *mut glib::GError, |
5285 | ) -> *mut *mut c_char, |
5286 | >, |
5287 | } |
5288 | |
5289 | impl ::std::fmt::Debug for GProxyResolverInterface { |
5290 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5291 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GProxyResolverInterface @ {self:p}" )) |
5292 | .field("g_iface" , &self.g_iface) |
5293 | .field("is_supported" , &self.is_supported) |
5294 | .field("lookup" , &self.lookup) |
5295 | .field("lookup_async" , &self.lookup_async) |
5296 | .field(name:"lookup_finish" , &self.lookup_finish) |
5297 | .finish() |
5298 | } |
5299 | } |
5300 | |
5301 | #[derive (Copy, Clone)] |
5302 | #[repr (C)] |
5303 | pub struct GRemoteActionGroupInterface { |
5304 | pub g_iface: gobject::GTypeInterface, |
5305 | pub activate_action_full: Option< |
5306 | unsafe extern "C" fn( |
5307 | *mut GRemoteActionGroup, |
5308 | *const c_char, |
5309 | *mut glib::GVariant, |
5310 | *mut glib::GVariant, |
5311 | ), |
5312 | >, |
5313 | pub change_action_state_full: Option< |
5314 | unsafe extern "C" fn( |
5315 | *mut GRemoteActionGroup, |
5316 | *const c_char, |
5317 | *mut glib::GVariant, |
5318 | *mut glib::GVariant, |
5319 | ), |
5320 | >, |
5321 | } |
5322 | |
5323 | impl ::std::fmt::Debug for GRemoteActionGroupInterface { |
5324 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5325 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GRemoteActionGroupInterface @ {self:p}" )) |
5326 | .field("g_iface" , &self.g_iface) |
5327 | .field("activate_action_full" , &self.activate_action_full) |
5328 | .field(name:"change_action_state_full" , &self.change_action_state_full) |
5329 | .finish() |
5330 | } |
5331 | } |
5332 | |
5333 | #[derive (Copy, Clone)] |
5334 | #[repr (C)] |
5335 | pub struct GResolverClass { |
5336 | pub parent_class: gobject::GObjectClass, |
5337 | pub reload: Option<unsafe extern "C" fn(*mut GResolver)>, |
5338 | pub lookup_by_name: Option< |
5339 | unsafe extern "C" fn( |
5340 | *mut GResolver, |
5341 | *const c_char, |
5342 | *mut GCancellable, |
5343 | *mut *mut glib::GError, |
5344 | ) -> *mut glib::GList, |
5345 | >, |
5346 | pub lookup_by_name_async: Option< |
5347 | unsafe extern "C" fn( |
5348 | *mut GResolver, |
5349 | *const c_char, |
5350 | *mut GCancellable, |
5351 | GAsyncReadyCallback, |
5352 | gpointer, |
5353 | ), |
5354 | >, |
5355 | pub lookup_by_name_finish: Option< |
5356 | unsafe extern "C" fn( |
5357 | *mut GResolver, |
5358 | *mut GAsyncResult, |
5359 | *mut *mut glib::GError, |
5360 | ) -> *mut glib::GList, |
5361 | >, |
5362 | pub lookup_by_address: Option< |
5363 | unsafe extern "C" fn( |
5364 | *mut GResolver, |
5365 | *mut GInetAddress, |
5366 | *mut GCancellable, |
5367 | *mut *mut glib::GError, |
5368 | ) -> *mut c_char, |
5369 | >, |
5370 | pub lookup_by_address_async: Option< |
5371 | unsafe extern "C" fn( |
5372 | *mut GResolver, |
5373 | *mut GInetAddress, |
5374 | *mut GCancellable, |
5375 | GAsyncReadyCallback, |
5376 | gpointer, |
5377 | ), |
5378 | >, |
5379 | pub lookup_by_address_finish: Option< |
5380 | unsafe extern "C" fn( |
5381 | *mut GResolver, |
5382 | *mut GAsyncResult, |
5383 | *mut *mut glib::GError, |
5384 | ) -> *mut c_char, |
5385 | >, |
5386 | pub lookup_service: Option< |
5387 | unsafe extern "C" fn( |
5388 | *mut GResolver, |
5389 | *const c_char, |
5390 | *mut GCancellable, |
5391 | *mut *mut glib::GError, |
5392 | ) -> *mut glib::GList, |
5393 | >, |
5394 | pub lookup_service_async: Option< |
5395 | unsafe extern "C" fn( |
5396 | *mut GResolver, |
5397 | *const c_char, |
5398 | *mut GCancellable, |
5399 | GAsyncReadyCallback, |
5400 | gpointer, |
5401 | ), |
5402 | >, |
5403 | pub lookup_service_finish: Option< |
5404 | unsafe extern "C" fn( |
5405 | *mut GResolver, |
5406 | *mut GAsyncResult, |
5407 | *mut *mut glib::GError, |
5408 | ) -> *mut glib::GList, |
5409 | >, |
5410 | pub lookup_records: Option< |
5411 | unsafe extern "C" fn( |
5412 | *mut GResolver, |
5413 | *const c_char, |
5414 | GResolverRecordType, |
5415 | *mut GCancellable, |
5416 | *mut *mut glib::GError, |
5417 | ) -> *mut glib::GList, |
5418 | >, |
5419 | pub lookup_records_async: Option< |
5420 | unsafe extern "C" fn( |
5421 | *mut GResolver, |
5422 | *const c_char, |
5423 | GResolverRecordType, |
5424 | *mut GCancellable, |
5425 | GAsyncReadyCallback, |
5426 | gpointer, |
5427 | ), |
5428 | >, |
5429 | pub lookup_records_finish: Option< |
5430 | unsafe extern "C" fn( |
5431 | *mut GResolver, |
5432 | *mut GAsyncResult, |
5433 | *mut *mut glib::GError, |
5434 | ) -> *mut glib::GList, |
5435 | >, |
5436 | pub lookup_by_name_with_flags_async: Option< |
5437 | unsafe extern "C" fn( |
5438 | *mut GResolver, |
5439 | *const c_char, |
5440 | GResolverNameLookupFlags, |
5441 | *mut GCancellable, |
5442 | GAsyncReadyCallback, |
5443 | gpointer, |
5444 | ), |
5445 | >, |
5446 | pub lookup_by_name_with_flags_finish: Option< |
5447 | unsafe extern "C" fn( |
5448 | *mut GResolver, |
5449 | *mut GAsyncResult, |
5450 | *mut *mut glib::GError, |
5451 | ) -> *mut glib::GList, |
5452 | >, |
5453 | pub lookup_by_name_with_flags: Option< |
5454 | unsafe extern "C" fn( |
5455 | *mut GResolver, |
5456 | *const c_char, |
5457 | GResolverNameLookupFlags, |
5458 | *mut GCancellable, |
5459 | *mut *mut glib::GError, |
5460 | ) -> *mut glib::GList, |
5461 | >, |
5462 | } |
5463 | |
5464 | impl ::std::fmt::Debug for GResolverClass { |
5465 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5466 | f.debug_struct(&format!("GResolverClass @ {self:p}" )) |
5467 | .field("parent_class" , &self.parent_class) |
5468 | .field("reload" , &self.reload) |
5469 | .field("lookup_by_name" , &self.lookup_by_name) |
5470 | .field("lookup_by_name_async" , &self.lookup_by_name_async) |
5471 | .field("lookup_by_name_finish" , &self.lookup_by_name_finish) |
5472 | .field("lookup_by_address" , &self.lookup_by_address) |
5473 | .field("lookup_by_address_async" , &self.lookup_by_address_async) |
5474 | .field("lookup_by_address_finish" , &self.lookup_by_address_finish) |
5475 | .field("lookup_service" , &self.lookup_service) |
5476 | .field("lookup_service_async" , &self.lookup_service_async) |
5477 | .field("lookup_service_finish" , &self.lookup_service_finish) |
5478 | .field("lookup_records" , &self.lookup_records) |
5479 | .field("lookup_records_async" , &self.lookup_records_async) |
5480 | .field("lookup_records_finish" , &self.lookup_records_finish) |
5481 | .field( |
5482 | "lookup_by_name_with_flags_async" , |
5483 | &self.lookup_by_name_with_flags_async, |
5484 | ) |
5485 | .field( |
5486 | "lookup_by_name_with_flags_finish" , |
5487 | &self.lookup_by_name_with_flags_finish, |
5488 | ) |
5489 | .field("lookup_by_name_with_flags" , &self.lookup_by_name_with_flags) |
5490 | .finish() |
5491 | } |
5492 | } |
5493 | |
5494 | #[repr (C)] |
5495 | pub struct _GResolverPrivate { |
5496 | _data: [u8; 0], |
5497 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5498 | } |
5499 | |
5500 | pub type GResolverPrivate = *mut _GResolverPrivate; |
5501 | |
5502 | #[repr (C)] |
5503 | pub struct GResource { |
5504 | _data: [u8; 0], |
5505 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5506 | } |
5507 | |
5508 | impl ::std::fmt::Debug for GResource { |
5509 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5510 | f.debug_struct(&format!("GResource @ {self:p}" )).finish() |
5511 | } |
5512 | } |
5513 | |
5514 | #[derive (Copy, Clone)] |
5515 | #[repr (C)] |
5516 | pub struct GSeekableIface { |
5517 | pub g_iface: gobject::GTypeInterface, |
5518 | pub tell: Option<unsafe extern "C" fn(*mut GSeekable) -> i64>, |
5519 | pub can_seek: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>, |
5520 | pub seek: Option< |
5521 | unsafe extern "C" fn( |
5522 | *mut GSeekable, |
5523 | i64, |
5524 | glib::GSeekType, |
5525 | *mut GCancellable, |
5526 | *mut *mut glib::GError, |
5527 | ) -> gboolean, |
5528 | >, |
5529 | pub can_truncate: Option<unsafe extern "C" fn(*mut GSeekable) -> gboolean>, |
5530 | pub truncate_fn: Option< |
5531 | unsafe extern "C" fn( |
5532 | *mut GSeekable, |
5533 | i64, |
5534 | *mut GCancellable, |
5535 | *mut *mut glib::GError, |
5536 | ) -> gboolean, |
5537 | >, |
5538 | } |
5539 | |
5540 | impl ::std::fmt::Debug for GSeekableIface { |
5541 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5542 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSeekableIface @ {self:p}" )) |
5543 | .field("g_iface" , &self.g_iface) |
5544 | .field("tell" , &self.tell) |
5545 | .field("can_seek" , &self.can_seek) |
5546 | .field("seek" , &self.seek) |
5547 | .field("can_truncate" , &self.can_truncate) |
5548 | .field(name:"truncate_fn" , &self.truncate_fn) |
5549 | .finish() |
5550 | } |
5551 | } |
5552 | |
5553 | #[derive (Copy, Clone)] |
5554 | #[repr (C)] |
5555 | pub struct GSettingsBackendClass { |
5556 | pub parent_class: gobject::GObjectClass, |
5557 | pub read: Option< |
5558 | unsafe extern "C" fn( |
5559 | *mut GSettingsBackend, |
5560 | *const c_char, |
5561 | *const glib::GVariantType, |
5562 | gboolean, |
5563 | ) -> *mut glib::GVariant, |
5564 | >, |
5565 | pub get_writable: |
5566 | Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> gboolean>, |
5567 | pub write: Option< |
5568 | unsafe extern "C" fn( |
5569 | *mut GSettingsBackend, |
5570 | *const c_char, |
5571 | *mut glib::GVariant, |
5572 | gpointer, |
5573 | ) -> gboolean, |
5574 | >, |
5575 | pub write_tree: |
5576 | Option<unsafe extern "C" fn(*mut GSettingsBackend, *mut glib::GTree, gpointer) -> gboolean>, |
5577 | pub reset: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char, gpointer)>, |
5578 | pub subscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>, |
5579 | pub unsubscribe: Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char)>, |
5580 | pub sync: Option<unsafe extern "C" fn(*mut GSettingsBackend)>, |
5581 | pub get_permission: |
5582 | Option<unsafe extern "C" fn(*mut GSettingsBackend, *const c_char) -> *mut GPermission>, |
5583 | pub read_user_value: Option< |
5584 | unsafe extern "C" fn( |
5585 | *mut GSettingsBackend, |
5586 | *const c_char, |
5587 | *const glib::GVariantType, |
5588 | ) -> *mut glib::GVariant, |
5589 | >, |
5590 | pub padding: [gpointer; 23], |
5591 | } |
5592 | |
5593 | impl ::std::fmt::Debug for GSettingsBackendClass { |
5594 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5595 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSettingsBackendClass @ {self:p}" )) |
5596 | .field("parent_class" , &self.parent_class) |
5597 | .field("read" , &self.read) |
5598 | .field("get_writable" , &self.get_writable) |
5599 | .field("write" , &self.write) |
5600 | .field("write_tree" , &self.write_tree) |
5601 | .field("reset" , &self.reset) |
5602 | .field("subscribe" , &self.subscribe) |
5603 | .field("unsubscribe" , &self.unsubscribe) |
5604 | .field("sync" , &self.sync) |
5605 | .field("get_permission" , &self.get_permission) |
5606 | .field(name:"read_user_value" , &self.read_user_value) |
5607 | .finish() |
5608 | } |
5609 | } |
5610 | |
5611 | #[repr (C)] |
5612 | pub struct _GSettingsBackendPrivate { |
5613 | _data: [u8; 0], |
5614 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5615 | } |
5616 | |
5617 | pub type GSettingsBackendPrivate = *mut _GSettingsBackendPrivate; |
5618 | |
5619 | #[derive (Copy, Clone)] |
5620 | #[repr (C)] |
5621 | pub struct GSettingsClass { |
5622 | pub parent_class: gobject::GObjectClass, |
5623 | pub writable_changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>, |
5624 | pub changed: Option<unsafe extern "C" fn(*mut GSettings, *const c_char)>, |
5625 | pub writable_change_event: |
5626 | Option<unsafe extern "C" fn(*mut GSettings, glib::GQuark) -> gboolean>, |
5627 | pub change_event: |
5628 | Option<unsafe extern "C" fn(*mut GSettings, *const glib::GQuark, c_int) -> gboolean>, |
5629 | pub padding: [gpointer; 20], |
5630 | } |
5631 | |
5632 | impl ::std::fmt::Debug for GSettingsClass { |
5633 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5634 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSettingsClass @ {self:p}" )) |
5635 | .field("parent_class" , &self.parent_class) |
5636 | .field("writable_changed" , &self.writable_changed) |
5637 | .field("changed" , &self.changed) |
5638 | .field("writable_change_event" , &self.writable_change_event) |
5639 | .field("change_event" , &self.change_event) |
5640 | .field(name:"padding" , &self.padding) |
5641 | .finish() |
5642 | } |
5643 | } |
5644 | |
5645 | #[repr (C)] |
5646 | pub struct _GSettingsPrivate { |
5647 | _data: [u8; 0], |
5648 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5649 | } |
5650 | |
5651 | pub type GSettingsPrivate = *mut _GSettingsPrivate; |
5652 | |
5653 | #[repr (C)] |
5654 | pub struct GSettingsSchema { |
5655 | _data: [u8; 0], |
5656 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5657 | } |
5658 | |
5659 | impl ::std::fmt::Debug for GSettingsSchema { |
5660 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5661 | fDebugStruct<'_, '_>.debug_struct(&format!("GSettingsSchema @ {self:p}" )) |
5662 | .finish() |
5663 | } |
5664 | } |
5665 | |
5666 | #[repr (C)] |
5667 | pub struct GSettingsSchemaKey { |
5668 | _data: [u8; 0], |
5669 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5670 | } |
5671 | |
5672 | impl ::std::fmt::Debug for GSettingsSchemaKey { |
5673 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5674 | fDebugStruct<'_, '_>.debug_struct(&format!("GSettingsSchemaKey @ {self:p}" )) |
5675 | .finish() |
5676 | } |
5677 | } |
5678 | |
5679 | #[repr (C)] |
5680 | pub struct GSettingsSchemaSource { |
5681 | _data: [u8; 0], |
5682 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5683 | } |
5684 | |
5685 | impl ::std::fmt::Debug for GSettingsSchemaSource { |
5686 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5687 | fDebugStruct<'_, '_>.debug_struct(&format!("GSettingsSchemaSource @ {self:p}" )) |
5688 | .finish() |
5689 | } |
5690 | } |
5691 | |
5692 | #[derive (Copy, Clone)] |
5693 | #[repr (C)] |
5694 | pub struct GSimpleActionGroupClass { |
5695 | pub parent_class: gobject::GObjectClass, |
5696 | pub padding: [gpointer; 12], |
5697 | } |
5698 | |
5699 | impl ::std::fmt::Debug for GSimpleActionGroupClass { |
5700 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5701 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimpleActionGroupClass @ {self:p}" )) |
5702 | .finish() |
5703 | } |
5704 | } |
5705 | |
5706 | #[repr (C)] |
5707 | pub struct _GSimpleActionGroupPrivate { |
5708 | _data: [u8; 0], |
5709 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5710 | } |
5711 | |
5712 | pub type GSimpleActionGroupPrivate = *mut _GSimpleActionGroupPrivate; |
5713 | |
5714 | #[repr (C)] |
5715 | pub struct _GSimpleAsyncResultClass { |
5716 | _data: [u8; 0], |
5717 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5718 | } |
5719 | |
5720 | pub type GSimpleAsyncResultClass = *mut _GSimpleAsyncResultClass; |
5721 | |
5722 | #[derive (Copy, Clone)] |
5723 | #[repr (C)] |
5724 | pub struct GSimpleProxyResolverClass { |
5725 | pub parent_class: gobject::GObjectClass, |
5726 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5727 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5728 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5729 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5730 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
5731 | } |
5732 | |
5733 | impl ::std::fmt::Debug for GSimpleProxyResolverClass { |
5734 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5735 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSimpleProxyResolverClass @ {self:p}" )) |
5736 | .field("parent_class" , &self.parent_class) |
5737 | .field("_g_reserved1" , &self._g_reserved1) |
5738 | .field("_g_reserved2" , &self._g_reserved2) |
5739 | .field("_g_reserved3" , &self._g_reserved3) |
5740 | .field("_g_reserved4" , &self._g_reserved4) |
5741 | .field(name:"_g_reserved5" , &self._g_reserved5) |
5742 | .finish() |
5743 | } |
5744 | } |
5745 | |
5746 | #[repr (C)] |
5747 | pub struct _GSimpleProxyResolverPrivate { |
5748 | _data: [u8; 0], |
5749 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5750 | } |
5751 | |
5752 | pub type GSimpleProxyResolverPrivate = *mut _GSimpleProxyResolverPrivate; |
5753 | |
5754 | #[derive (Copy, Clone)] |
5755 | #[repr (C)] |
5756 | pub struct GSocketAddressClass { |
5757 | pub parent_class: gobject::GObjectClass, |
5758 | pub get_family: Option<unsafe extern "C" fn(*mut GSocketAddress) -> GSocketFamily>, |
5759 | pub get_native_size: Option<unsafe extern "C" fn(*mut GSocketAddress) -> ssize_t>, |
5760 | pub to_native: Option< |
5761 | unsafe extern "C" fn( |
5762 | *mut GSocketAddress, |
5763 | gpointer, |
5764 | size_t, |
5765 | *mut *mut glib::GError, |
5766 | ) -> gboolean, |
5767 | >, |
5768 | } |
5769 | |
5770 | impl ::std::fmt::Debug for GSocketAddressClass { |
5771 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5772 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketAddressClass @ {self:p}" )) |
5773 | .field("parent_class" , &self.parent_class) |
5774 | .field("get_family" , &self.get_family) |
5775 | .field("get_native_size" , &self.get_native_size) |
5776 | .field(name:"to_native" , &self.to_native) |
5777 | .finish() |
5778 | } |
5779 | } |
5780 | |
5781 | #[derive (Copy, Clone)] |
5782 | #[repr (C)] |
5783 | pub struct GSocketAddressEnumeratorClass { |
5784 | pub parent_class: gobject::GObjectClass, |
5785 | pub next: Option< |
5786 | unsafe extern "C" fn( |
5787 | *mut GSocketAddressEnumerator, |
5788 | *mut GCancellable, |
5789 | *mut *mut glib::GError, |
5790 | ) -> *mut GSocketAddress, |
5791 | >, |
5792 | pub next_async: Option< |
5793 | unsafe extern "C" fn( |
5794 | *mut GSocketAddressEnumerator, |
5795 | *mut GCancellable, |
5796 | GAsyncReadyCallback, |
5797 | gpointer, |
5798 | ), |
5799 | >, |
5800 | pub next_finish: Option< |
5801 | unsafe extern "C" fn( |
5802 | *mut GSocketAddressEnumerator, |
5803 | *mut GAsyncResult, |
5804 | *mut *mut glib::GError, |
5805 | ) -> *mut GSocketAddress, |
5806 | >, |
5807 | } |
5808 | |
5809 | impl ::std::fmt::Debug for GSocketAddressEnumeratorClass { |
5810 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5811 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketAddressEnumeratorClass @ {self:p}" )) |
5812 | .field("next" , &self.next) |
5813 | .field("next_async" , &self.next_async) |
5814 | .field(name:"next_finish" , &self.next_finish) |
5815 | .finish() |
5816 | } |
5817 | } |
5818 | |
5819 | #[derive (Copy, Clone)] |
5820 | #[repr (C)] |
5821 | pub struct GSocketClass { |
5822 | pub parent_class: gobject::GObjectClass, |
5823 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5824 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5825 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5826 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5827 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
5828 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
5829 | pub _g_reserved7: Option<unsafe extern "C" fn()>, |
5830 | pub _g_reserved8: Option<unsafe extern "C" fn()>, |
5831 | pub _g_reserved9: Option<unsafe extern "C" fn()>, |
5832 | pub _g_reserved10: Option<unsafe extern "C" fn()>, |
5833 | } |
5834 | |
5835 | impl ::std::fmt::Debug for GSocketClass { |
5836 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5837 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketClass @ {self:p}" )) |
5838 | .field("parent_class" , &self.parent_class) |
5839 | .field("_g_reserved1" , &self._g_reserved1) |
5840 | .field("_g_reserved2" , &self._g_reserved2) |
5841 | .field("_g_reserved3" , &self._g_reserved3) |
5842 | .field("_g_reserved4" , &self._g_reserved4) |
5843 | .field("_g_reserved5" , &self._g_reserved5) |
5844 | .field("_g_reserved6" , &self._g_reserved6) |
5845 | .field("_g_reserved7" , &self._g_reserved7) |
5846 | .field("_g_reserved8" , &self._g_reserved8) |
5847 | .field("_g_reserved9" , &self._g_reserved9) |
5848 | .field(name:"_g_reserved10" , &self._g_reserved10) |
5849 | .finish() |
5850 | } |
5851 | } |
5852 | |
5853 | #[derive (Copy, Clone)] |
5854 | #[repr (C)] |
5855 | pub struct GSocketClientClass { |
5856 | pub parent_class: gobject::GObjectClass, |
5857 | pub event: Option< |
5858 | unsafe extern "C" fn( |
5859 | *mut GSocketClient, |
5860 | GSocketClientEvent, |
5861 | *mut GSocketConnectable, |
5862 | *mut GIOStream, |
5863 | ), |
5864 | >, |
5865 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5866 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5867 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5868 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5869 | } |
5870 | |
5871 | impl ::std::fmt::Debug for GSocketClientClass { |
5872 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5873 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketClientClass @ {self:p}" )) |
5874 | .field("parent_class" , &self.parent_class) |
5875 | .field("event" , &self.event) |
5876 | .field("_g_reserved1" , &self._g_reserved1) |
5877 | .field("_g_reserved2" , &self._g_reserved2) |
5878 | .field("_g_reserved3" , &self._g_reserved3) |
5879 | .field(name:"_g_reserved4" , &self._g_reserved4) |
5880 | .finish() |
5881 | } |
5882 | } |
5883 | |
5884 | #[repr (C)] |
5885 | pub struct _GSocketClientPrivate { |
5886 | _data: [u8; 0], |
5887 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5888 | } |
5889 | |
5890 | pub type GSocketClientPrivate = *mut _GSocketClientPrivate; |
5891 | |
5892 | #[derive (Copy, Clone)] |
5893 | #[repr (C)] |
5894 | pub struct GSocketConnectableIface { |
5895 | pub g_iface: gobject::GTypeInterface, |
5896 | pub enumerate: |
5897 | Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>, |
5898 | pub proxy_enumerate: |
5899 | Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut GSocketAddressEnumerator>, |
5900 | pub to_string: Option<unsafe extern "C" fn(*mut GSocketConnectable) -> *mut c_char>, |
5901 | } |
5902 | |
5903 | impl ::std::fmt::Debug for GSocketConnectableIface { |
5904 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5905 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketConnectableIface @ {self:p}" )) |
5906 | .field("g_iface" , &self.g_iface) |
5907 | .field("enumerate" , &self.enumerate) |
5908 | .field("proxy_enumerate" , &self.proxy_enumerate) |
5909 | .field(name:"to_string" , &self.to_string) |
5910 | .finish() |
5911 | } |
5912 | } |
5913 | |
5914 | #[derive (Copy, Clone)] |
5915 | #[repr (C)] |
5916 | pub struct GSocketConnectionClass { |
5917 | pub parent_class: GIOStreamClass, |
5918 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5919 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5920 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5921 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5922 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
5923 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
5924 | } |
5925 | |
5926 | impl ::std::fmt::Debug for GSocketConnectionClass { |
5927 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5928 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketConnectionClass @ {self:p}" )) |
5929 | .field("parent_class" , &self.parent_class) |
5930 | .field("_g_reserved1" , &self._g_reserved1) |
5931 | .field("_g_reserved2" , &self._g_reserved2) |
5932 | .field("_g_reserved3" , &self._g_reserved3) |
5933 | .field("_g_reserved4" , &self._g_reserved4) |
5934 | .field("_g_reserved5" , &self._g_reserved5) |
5935 | .field(name:"_g_reserved6" , &self._g_reserved6) |
5936 | .finish() |
5937 | } |
5938 | } |
5939 | |
5940 | #[repr (C)] |
5941 | pub struct _GSocketConnectionPrivate { |
5942 | _data: [u8; 0], |
5943 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5944 | } |
5945 | |
5946 | pub type GSocketConnectionPrivate = *mut _GSocketConnectionPrivate; |
5947 | |
5948 | #[derive (Copy, Clone)] |
5949 | #[repr (C)] |
5950 | pub struct GSocketControlMessageClass { |
5951 | pub parent_class: gobject::GObjectClass, |
5952 | pub get_size: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> size_t>, |
5953 | pub get_level: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>, |
5954 | pub get_type: Option<unsafe extern "C" fn(*mut GSocketControlMessage) -> c_int>, |
5955 | pub serialize: Option<unsafe extern "C" fn(*mut GSocketControlMessage, gpointer)>, |
5956 | pub deserialize: |
5957 | Option<unsafe extern "C" fn(c_int, c_int, size_t, gpointer) -> *mut GSocketControlMessage>, |
5958 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
5959 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5960 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
5961 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
5962 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
5963 | } |
5964 | |
5965 | impl ::std::fmt::Debug for GSocketControlMessageClass { |
5966 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
5967 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketControlMessageClass @ {self:p}" )) |
5968 | .field("parent_class" , &self.parent_class) |
5969 | .field("get_size" , &self.get_size) |
5970 | .field("get_level" , &self.get_level) |
5971 | .field("get_type" , &self.get_type) |
5972 | .field("serialize" , &self.serialize) |
5973 | .field("deserialize" , &self.deserialize) |
5974 | .field("_g_reserved1" , &self._g_reserved1) |
5975 | .field("_g_reserved2" , &self._g_reserved2) |
5976 | .field("_g_reserved3" , &self._g_reserved3) |
5977 | .field("_g_reserved4" , &self._g_reserved4) |
5978 | .field(name:"_g_reserved5" , &self._g_reserved5) |
5979 | .finish() |
5980 | } |
5981 | } |
5982 | |
5983 | #[repr (C)] |
5984 | pub struct _GSocketControlMessagePrivate { |
5985 | _data: [u8; 0], |
5986 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
5987 | } |
5988 | |
5989 | pub type GSocketControlMessagePrivate = *mut _GSocketControlMessagePrivate; |
5990 | |
5991 | #[derive (Copy, Clone)] |
5992 | #[repr (C)] |
5993 | pub struct GSocketListenerClass { |
5994 | pub parent_class: gobject::GObjectClass, |
5995 | pub changed: Option<unsafe extern "C" fn(*mut GSocketListener)>, |
5996 | pub event: |
5997 | Option<unsafe extern "C" fn(*mut GSocketListener, GSocketListenerEvent, *mut GSocket)>, |
5998 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
5999 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6000 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6001 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6002 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
6003 | } |
6004 | |
6005 | impl ::std::fmt::Debug for GSocketListenerClass { |
6006 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6007 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketListenerClass @ {self:p}" )) |
6008 | .field("parent_class" , &self.parent_class) |
6009 | .field("changed" , &self.changed) |
6010 | .field("event" , &self.event) |
6011 | .field("_g_reserved2" , &self._g_reserved2) |
6012 | .field("_g_reserved3" , &self._g_reserved3) |
6013 | .field("_g_reserved4" , &self._g_reserved4) |
6014 | .field("_g_reserved5" , &self._g_reserved5) |
6015 | .field(name:"_g_reserved6" , &self._g_reserved6) |
6016 | .finish() |
6017 | } |
6018 | } |
6019 | |
6020 | #[repr (C)] |
6021 | pub struct _GSocketListenerPrivate { |
6022 | _data: [u8; 0], |
6023 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6024 | } |
6025 | |
6026 | pub type GSocketListenerPrivate = *mut _GSocketListenerPrivate; |
6027 | |
6028 | #[repr (C)] |
6029 | pub struct _GSocketPrivate { |
6030 | _data: [u8; 0], |
6031 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6032 | } |
6033 | |
6034 | pub type GSocketPrivate = *mut _GSocketPrivate; |
6035 | |
6036 | #[derive (Copy, Clone)] |
6037 | #[repr (C)] |
6038 | pub struct GSocketServiceClass { |
6039 | pub parent_class: GSocketListenerClass, |
6040 | pub incoming: Option< |
6041 | unsafe extern "C" fn( |
6042 | *mut GSocketService, |
6043 | *mut GSocketConnection, |
6044 | *mut gobject::GObject, |
6045 | ) -> gboolean, |
6046 | >, |
6047 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6048 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6049 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6050 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6051 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6052 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
6053 | } |
6054 | |
6055 | impl ::std::fmt::Debug for GSocketServiceClass { |
6056 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6057 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketServiceClass @ {self:p}" )) |
6058 | .field("parent_class" , &self.parent_class) |
6059 | .field("incoming" , &self.incoming) |
6060 | .field("_g_reserved1" , &self._g_reserved1) |
6061 | .field("_g_reserved2" , &self._g_reserved2) |
6062 | .field("_g_reserved3" , &self._g_reserved3) |
6063 | .field("_g_reserved4" , &self._g_reserved4) |
6064 | .field("_g_reserved5" , &self._g_reserved5) |
6065 | .field(name:"_g_reserved6" , &self._g_reserved6) |
6066 | .finish() |
6067 | } |
6068 | } |
6069 | |
6070 | #[repr (C)] |
6071 | pub struct _GSocketServicePrivate { |
6072 | _data: [u8; 0], |
6073 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6074 | } |
6075 | |
6076 | pub type GSocketServicePrivate = *mut _GSocketServicePrivate; |
6077 | |
6078 | #[repr (C)] |
6079 | pub struct GSrvTarget { |
6080 | _data: [u8; 0], |
6081 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6082 | } |
6083 | |
6084 | impl ::std::fmt::Debug for GSrvTarget { |
6085 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6086 | f.debug_struct(&format!("GSrvTarget @ {self:p}" )).finish() |
6087 | } |
6088 | } |
6089 | |
6090 | #[derive (Copy, Clone)] |
6091 | #[repr (C)] |
6092 | pub struct GStaticResource { |
6093 | pub data: *const u8, |
6094 | pub data_len: size_t, |
6095 | pub resource: *mut GResource, |
6096 | pub next: *mut GStaticResource, |
6097 | pub padding: gpointer, |
6098 | } |
6099 | |
6100 | impl ::std::fmt::Debug for GStaticResource { |
6101 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6102 | fDebugStruct<'_, '_>.debug_struct(&format!("GStaticResource @ {self:p}" )) |
6103 | .finish() |
6104 | } |
6105 | } |
6106 | |
6107 | #[repr (C)] |
6108 | pub struct _GTaskClass { |
6109 | _data: [u8; 0], |
6110 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6111 | } |
6112 | |
6113 | pub type GTaskClass = *mut _GTaskClass; |
6114 | |
6115 | #[derive (Copy, Clone)] |
6116 | #[repr (C)] |
6117 | pub struct GTcpConnectionClass { |
6118 | pub parent_class: GSocketConnectionClass, |
6119 | } |
6120 | |
6121 | impl ::std::fmt::Debug for GTcpConnectionClass { |
6122 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6123 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTcpConnectionClass @ {self:p}" )) |
6124 | .field(name:"parent_class" , &self.parent_class) |
6125 | .finish() |
6126 | } |
6127 | } |
6128 | |
6129 | #[repr (C)] |
6130 | pub struct _GTcpConnectionPrivate { |
6131 | _data: [u8; 0], |
6132 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6133 | } |
6134 | |
6135 | pub type GTcpConnectionPrivate = *mut _GTcpConnectionPrivate; |
6136 | |
6137 | #[derive (Copy, Clone)] |
6138 | #[repr (C)] |
6139 | pub struct GTcpWrapperConnectionClass { |
6140 | pub parent_class: GTcpConnectionClass, |
6141 | } |
6142 | |
6143 | impl ::std::fmt::Debug for GTcpWrapperConnectionClass { |
6144 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6145 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTcpWrapperConnectionClass @ {self:p}" )) |
6146 | .field(name:"parent_class" , &self.parent_class) |
6147 | .finish() |
6148 | } |
6149 | } |
6150 | |
6151 | #[repr (C)] |
6152 | pub struct _GTcpWrapperConnectionPrivate { |
6153 | _data: [u8; 0], |
6154 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6155 | } |
6156 | |
6157 | pub type GTcpWrapperConnectionPrivate = *mut _GTcpWrapperConnectionPrivate; |
6158 | |
6159 | #[repr (C)] |
6160 | pub struct _GThemedIconClass { |
6161 | _data: [u8; 0], |
6162 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6163 | } |
6164 | |
6165 | pub type GThemedIconClass = *mut _GThemedIconClass; |
6166 | |
6167 | #[derive (Copy, Clone)] |
6168 | #[repr (C)] |
6169 | pub struct GThreadedSocketServiceClass { |
6170 | pub parent_class: GSocketServiceClass, |
6171 | pub run: Option< |
6172 | unsafe extern "C" fn( |
6173 | *mut GThreadedSocketService, |
6174 | *mut GSocketConnection, |
6175 | *mut gobject::GObject, |
6176 | ) -> gboolean, |
6177 | >, |
6178 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6179 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6180 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6181 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6182 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6183 | } |
6184 | |
6185 | impl ::std::fmt::Debug for GThreadedSocketServiceClass { |
6186 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6187 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GThreadedSocketServiceClass @ {self:p}" )) |
6188 | .field("parent_class" , &self.parent_class) |
6189 | .field("run" , &self.run) |
6190 | .field("_g_reserved1" , &self._g_reserved1) |
6191 | .field("_g_reserved2" , &self._g_reserved2) |
6192 | .field("_g_reserved3" , &self._g_reserved3) |
6193 | .field("_g_reserved4" , &self._g_reserved4) |
6194 | .field(name:"_g_reserved5" , &self._g_reserved5) |
6195 | .finish() |
6196 | } |
6197 | } |
6198 | |
6199 | #[repr (C)] |
6200 | pub struct _GThreadedSocketServicePrivate { |
6201 | _data: [u8; 0], |
6202 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6203 | } |
6204 | |
6205 | pub type GThreadedSocketServicePrivate = *mut _GThreadedSocketServicePrivate; |
6206 | |
6207 | #[derive (Copy, Clone)] |
6208 | #[repr (C)] |
6209 | pub struct GTlsBackendInterface { |
6210 | pub g_iface: gobject::GTypeInterface, |
6211 | pub supports_tls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>, |
6212 | pub get_certificate_type: Option<unsafe extern "C" fn() -> GType>, |
6213 | pub get_client_connection_type: Option<unsafe extern "C" fn() -> GType>, |
6214 | pub get_server_connection_type: Option<unsafe extern "C" fn() -> GType>, |
6215 | pub get_file_database_type: Option<unsafe extern "C" fn() -> GType>, |
6216 | pub get_default_database: Option<unsafe extern "C" fn(*mut GTlsBackend) -> *mut GTlsDatabase>, |
6217 | pub supports_dtls: Option<unsafe extern "C" fn(*mut GTlsBackend) -> gboolean>, |
6218 | pub get_dtls_client_connection_type: Option<unsafe extern "C" fn() -> GType>, |
6219 | pub get_dtls_server_connection_type: Option<unsafe extern "C" fn() -> GType>, |
6220 | } |
6221 | |
6222 | impl ::std::fmt::Debug for GTlsBackendInterface { |
6223 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6224 | f.debug_struct(&format!("GTlsBackendInterface @ {self:p}" )) |
6225 | .field("g_iface" , &self.g_iface) |
6226 | .field("supports_tls" , &self.supports_tls) |
6227 | .field("get_certificate_type" , &self.get_certificate_type) |
6228 | .field( |
6229 | "get_client_connection_type" , |
6230 | &self.get_client_connection_type, |
6231 | ) |
6232 | .field( |
6233 | "get_server_connection_type" , |
6234 | &self.get_server_connection_type, |
6235 | ) |
6236 | .field("get_file_database_type" , &self.get_file_database_type) |
6237 | .field("get_default_database" , &self.get_default_database) |
6238 | .field("supports_dtls" , &self.supports_dtls) |
6239 | .field( |
6240 | "get_dtls_client_connection_type" , |
6241 | &self.get_dtls_client_connection_type, |
6242 | ) |
6243 | .field( |
6244 | "get_dtls_server_connection_type" , |
6245 | &self.get_dtls_server_connection_type, |
6246 | ) |
6247 | .finish() |
6248 | } |
6249 | } |
6250 | |
6251 | #[derive (Copy, Clone)] |
6252 | #[repr (C)] |
6253 | pub struct GTlsCertificateClass { |
6254 | pub parent_class: gobject::GObjectClass, |
6255 | pub verify: Option< |
6256 | unsafe extern "C" fn( |
6257 | *mut GTlsCertificate, |
6258 | *mut GSocketConnectable, |
6259 | *mut GTlsCertificate, |
6260 | ) -> GTlsCertificateFlags, |
6261 | >, |
6262 | pub padding: [gpointer; 8], |
6263 | } |
6264 | |
6265 | impl ::std::fmt::Debug for GTlsCertificateClass { |
6266 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6267 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsCertificateClass @ {self:p}" )) |
6268 | .field("parent_class" , &self.parent_class) |
6269 | .field(name:"verify" , &self.verify) |
6270 | .finish() |
6271 | } |
6272 | } |
6273 | |
6274 | #[repr (C)] |
6275 | pub struct _GTlsCertificatePrivate { |
6276 | _data: [u8; 0], |
6277 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6278 | } |
6279 | |
6280 | pub type GTlsCertificatePrivate = *mut _GTlsCertificatePrivate; |
6281 | |
6282 | #[derive (Copy, Clone)] |
6283 | #[repr (C)] |
6284 | pub struct GTlsClientConnectionInterface { |
6285 | pub g_iface: gobject::GTypeInterface, |
6286 | pub copy_session_state: |
6287 | Option<unsafe extern "C" fn(*mut GTlsClientConnection, *mut GTlsClientConnection)>, |
6288 | } |
6289 | |
6290 | impl ::std::fmt::Debug for GTlsClientConnectionInterface { |
6291 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6292 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsClientConnectionInterface @ {self:p}" )) |
6293 | .field("g_iface" , &self.g_iface) |
6294 | .field(name:"copy_session_state" , &self.copy_session_state) |
6295 | .finish() |
6296 | } |
6297 | } |
6298 | |
6299 | #[derive (Copy, Clone)] |
6300 | #[repr (C)] |
6301 | pub struct GTlsConnectionClass { |
6302 | pub parent_class: GIOStreamClass, |
6303 | pub accept_certificate: Option< |
6304 | unsafe extern "C" fn( |
6305 | *mut GTlsConnection, |
6306 | *mut GTlsCertificate, |
6307 | GTlsCertificateFlags, |
6308 | ) -> gboolean, |
6309 | >, |
6310 | pub handshake: Option< |
6311 | unsafe extern "C" fn( |
6312 | *mut GTlsConnection, |
6313 | *mut GCancellable, |
6314 | *mut *mut glib::GError, |
6315 | ) -> gboolean, |
6316 | >, |
6317 | pub handshake_async: Option< |
6318 | unsafe extern "C" fn( |
6319 | *mut GTlsConnection, |
6320 | c_int, |
6321 | *mut GCancellable, |
6322 | GAsyncReadyCallback, |
6323 | gpointer, |
6324 | ), |
6325 | >, |
6326 | pub handshake_finish: Option< |
6327 | unsafe extern "C" fn( |
6328 | *mut GTlsConnection, |
6329 | *mut GAsyncResult, |
6330 | *mut *mut glib::GError, |
6331 | ) -> gboolean, |
6332 | >, |
6333 | pub get_binding_data: Option< |
6334 | unsafe extern "C" fn( |
6335 | *mut GTlsConnection, |
6336 | GTlsChannelBindingType, |
6337 | *mut glib::GByteArray, |
6338 | *mut *mut glib::GError, |
6339 | ) -> gboolean, |
6340 | >, |
6341 | pub get_negotiated_protocol: Option<unsafe extern "C" fn(*mut GTlsConnection) -> *const c_char>, |
6342 | pub padding: [gpointer; 6], |
6343 | } |
6344 | |
6345 | impl ::std::fmt::Debug for GTlsConnectionClass { |
6346 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6347 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsConnectionClass @ {self:p}" )) |
6348 | .field("parent_class" , &self.parent_class) |
6349 | .field("accept_certificate" , &self.accept_certificate) |
6350 | .field("handshake" , &self.handshake) |
6351 | .field("handshake_async" , &self.handshake_async) |
6352 | .field("handshake_finish" , &self.handshake_finish) |
6353 | .field("get_binding_data" , &self.get_binding_data) |
6354 | .field(name:"get_negotiated_protocol" , &self.get_negotiated_protocol) |
6355 | .finish() |
6356 | } |
6357 | } |
6358 | |
6359 | #[repr (C)] |
6360 | pub struct _GTlsConnectionPrivate { |
6361 | _data: [u8; 0], |
6362 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6363 | } |
6364 | |
6365 | pub type GTlsConnectionPrivate = *mut _GTlsConnectionPrivate; |
6366 | |
6367 | #[derive (Copy, Clone)] |
6368 | #[repr (C)] |
6369 | pub struct GTlsDatabaseClass { |
6370 | pub parent_class: gobject::GObjectClass, |
6371 | pub verify_chain: Option< |
6372 | unsafe extern "C" fn( |
6373 | *mut GTlsDatabase, |
6374 | *mut GTlsCertificate, |
6375 | *const c_char, |
6376 | *mut GSocketConnectable, |
6377 | *mut GTlsInteraction, |
6378 | GTlsDatabaseVerifyFlags, |
6379 | *mut GCancellable, |
6380 | *mut *mut glib::GError, |
6381 | ) -> GTlsCertificateFlags, |
6382 | >, |
6383 | pub verify_chain_async: Option< |
6384 | unsafe extern "C" fn( |
6385 | *mut GTlsDatabase, |
6386 | *mut GTlsCertificate, |
6387 | *const c_char, |
6388 | *mut GSocketConnectable, |
6389 | *mut GTlsInteraction, |
6390 | GTlsDatabaseVerifyFlags, |
6391 | *mut GCancellable, |
6392 | GAsyncReadyCallback, |
6393 | gpointer, |
6394 | ), |
6395 | >, |
6396 | pub verify_chain_finish: Option< |
6397 | unsafe extern "C" fn( |
6398 | *mut GTlsDatabase, |
6399 | *mut GAsyncResult, |
6400 | *mut *mut glib::GError, |
6401 | ) -> GTlsCertificateFlags, |
6402 | >, |
6403 | pub create_certificate_handle: |
6404 | Option<unsafe extern "C" fn(*mut GTlsDatabase, *mut GTlsCertificate) -> *mut c_char>, |
6405 | pub lookup_certificate_for_handle: Option< |
6406 | unsafe extern "C" fn( |
6407 | *mut GTlsDatabase, |
6408 | *const c_char, |
6409 | *mut GTlsInteraction, |
6410 | GTlsDatabaseLookupFlags, |
6411 | *mut GCancellable, |
6412 | *mut *mut glib::GError, |
6413 | ) -> *mut GTlsCertificate, |
6414 | >, |
6415 | pub lookup_certificate_for_handle_async: Option< |
6416 | unsafe extern "C" fn( |
6417 | *mut GTlsDatabase, |
6418 | *const c_char, |
6419 | *mut GTlsInteraction, |
6420 | GTlsDatabaseLookupFlags, |
6421 | *mut GCancellable, |
6422 | GAsyncReadyCallback, |
6423 | gpointer, |
6424 | ), |
6425 | >, |
6426 | pub lookup_certificate_for_handle_finish: Option< |
6427 | unsafe extern "C" fn( |
6428 | *mut GTlsDatabase, |
6429 | *mut GAsyncResult, |
6430 | *mut *mut glib::GError, |
6431 | ) -> *mut GTlsCertificate, |
6432 | >, |
6433 | pub lookup_certificate_issuer: Option< |
6434 | unsafe extern "C" fn( |
6435 | *mut GTlsDatabase, |
6436 | *mut GTlsCertificate, |
6437 | *mut GTlsInteraction, |
6438 | GTlsDatabaseLookupFlags, |
6439 | *mut GCancellable, |
6440 | *mut *mut glib::GError, |
6441 | ) -> *mut GTlsCertificate, |
6442 | >, |
6443 | pub lookup_certificate_issuer_async: Option< |
6444 | unsafe extern "C" fn( |
6445 | *mut GTlsDatabase, |
6446 | *mut GTlsCertificate, |
6447 | *mut GTlsInteraction, |
6448 | GTlsDatabaseLookupFlags, |
6449 | *mut GCancellable, |
6450 | GAsyncReadyCallback, |
6451 | gpointer, |
6452 | ), |
6453 | >, |
6454 | pub lookup_certificate_issuer_finish: Option< |
6455 | unsafe extern "C" fn( |
6456 | *mut GTlsDatabase, |
6457 | *mut GAsyncResult, |
6458 | *mut *mut glib::GError, |
6459 | ) -> *mut GTlsCertificate, |
6460 | >, |
6461 | pub lookup_certificates_issued_by: Option< |
6462 | unsafe extern "C" fn( |
6463 | *mut GTlsDatabase, |
6464 | *mut glib::GByteArray, |
6465 | *mut GTlsInteraction, |
6466 | GTlsDatabaseLookupFlags, |
6467 | *mut GCancellable, |
6468 | *mut *mut glib::GError, |
6469 | ) -> *mut glib::GList, |
6470 | >, |
6471 | pub lookup_certificates_issued_by_async: Option< |
6472 | unsafe extern "C" fn( |
6473 | *mut GTlsDatabase, |
6474 | *mut glib::GByteArray, |
6475 | *mut GTlsInteraction, |
6476 | GTlsDatabaseLookupFlags, |
6477 | *mut GCancellable, |
6478 | GAsyncReadyCallback, |
6479 | gpointer, |
6480 | ), |
6481 | >, |
6482 | pub lookup_certificates_issued_by_finish: Option< |
6483 | unsafe extern "C" fn( |
6484 | *mut GTlsDatabase, |
6485 | *mut GAsyncResult, |
6486 | *mut *mut glib::GError, |
6487 | ) -> *mut glib::GList, |
6488 | >, |
6489 | pub padding: [gpointer; 16], |
6490 | } |
6491 | |
6492 | impl ::std::fmt::Debug for GTlsDatabaseClass { |
6493 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6494 | f.debug_struct(&format!("GTlsDatabaseClass @ {self:p}" )) |
6495 | .field("parent_class" , &self.parent_class) |
6496 | .field("verify_chain" , &self.verify_chain) |
6497 | .field("verify_chain_async" , &self.verify_chain_async) |
6498 | .field("verify_chain_finish" , &self.verify_chain_finish) |
6499 | .field("create_certificate_handle" , &self.create_certificate_handle) |
6500 | .field( |
6501 | "lookup_certificate_for_handle" , |
6502 | &self.lookup_certificate_for_handle, |
6503 | ) |
6504 | .field( |
6505 | "lookup_certificate_for_handle_async" , |
6506 | &self.lookup_certificate_for_handle_async, |
6507 | ) |
6508 | .field( |
6509 | "lookup_certificate_for_handle_finish" , |
6510 | &self.lookup_certificate_for_handle_finish, |
6511 | ) |
6512 | .field("lookup_certificate_issuer" , &self.lookup_certificate_issuer) |
6513 | .field( |
6514 | "lookup_certificate_issuer_async" , |
6515 | &self.lookup_certificate_issuer_async, |
6516 | ) |
6517 | .field( |
6518 | "lookup_certificate_issuer_finish" , |
6519 | &self.lookup_certificate_issuer_finish, |
6520 | ) |
6521 | .field( |
6522 | "lookup_certificates_issued_by" , |
6523 | &self.lookup_certificates_issued_by, |
6524 | ) |
6525 | .field( |
6526 | "lookup_certificates_issued_by_async" , |
6527 | &self.lookup_certificates_issued_by_async, |
6528 | ) |
6529 | .field( |
6530 | "lookup_certificates_issued_by_finish" , |
6531 | &self.lookup_certificates_issued_by_finish, |
6532 | ) |
6533 | .finish() |
6534 | } |
6535 | } |
6536 | |
6537 | #[repr (C)] |
6538 | pub struct _GTlsDatabasePrivate { |
6539 | _data: [u8; 0], |
6540 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6541 | } |
6542 | |
6543 | pub type GTlsDatabasePrivate = *mut _GTlsDatabasePrivate; |
6544 | |
6545 | #[derive (Copy, Clone)] |
6546 | #[repr (C)] |
6547 | pub struct GTlsFileDatabaseInterface { |
6548 | pub g_iface: gobject::GTypeInterface, |
6549 | pub padding: [gpointer; 8], |
6550 | } |
6551 | |
6552 | impl ::std::fmt::Debug for GTlsFileDatabaseInterface { |
6553 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6554 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsFileDatabaseInterface @ {self:p}" )) |
6555 | .field(name:"g_iface" , &self.g_iface) |
6556 | .finish() |
6557 | } |
6558 | } |
6559 | |
6560 | #[derive (Copy, Clone)] |
6561 | #[repr (C)] |
6562 | pub struct GTlsInteractionClass { |
6563 | pub parent_class: gobject::GObjectClass, |
6564 | pub ask_password: Option< |
6565 | unsafe extern "C" fn( |
6566 | *mut GTlsInteraction, |
6567 | *mut GTlsPassword, |
6568 | *mut GCancellable, |
6569 | *mut *mut glib::GError, |
6570 | ) -> GTlsInteractionResult, |
6571 | >, |
6572 | pub ask_password_async: Option< |
6573 | unsafe extern "C" fn( |
6574 | *mut GTlsInteraction, |
6575 | *mut GTlsPassword, |
6576 | *mut GCancellable, |
6577 | GAsyncReadyCallback, |
6578 | gpointer, |
6579 | ), |
6580 | >, |
6581 | pub ask_password_finish: Option< |
6582 | unsafe extern "C" fn( |
6583 | *mut GTlsInteraction, |
6584 | *mut GAsyncResult, |
6585 | *mut *mut glib::GError, |
6586 | ) -> GTlsInteractionResult, |
6587 | >, |
6588 | pub request_certificate: Option< |
6589 | unsafe extern "C" fn( |
6590 | *mut GTlsInteraction, |
6591 | *mut GTlsConnection, |
6592 | GTlsCertificateRequestFlags, |
6593 | *mut GCancellable, |
6594 | *mut *mut glib::GError, |
6595 | ) -> GTlsInteractionResult, |
6596 | >, |
6597 | pub request_certificate_async: Option< |
6598 | unsafe extern "C" fn( |
6599 | *mut GTlsInteraction, |
6600 | *mut GTlsConnection, |
6601 | GTlsCertificateRequestFlags, |
6602 | *mut GCancellable, |
6603 | GAsyncReadyCallback, |
6604 | gpointer, |
6605 | ), |
6606 | >, |
6607 | pub request_certificate_finish: Option< |
6608 | unsafe extern "C" fn( |
6609 | *mut GTlsInteraction, |
6610 | *mut GAsyncResult, |
6611 | *mut *mut glib::GError, |
6612 | ) -> GTlsInteractionResult, |
6613 | >, |
6614 | pub padding: [gpointer; 21], |
6615 | } |
6616 | |
6617 | impl ::std::fmt::Debug for GTlsInteractionClass { |
6618 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6619 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsInteractionClass @ {self:p}" )) |
6620 | .field("ask_password" , &self.ask_password) |
6621 | .field("ask_password_async" , &self.ask_password_async) |
6622 | .field("ask_password_finish" , &self.ask_password_finish) |
6623 | .field("request_certificate" , &self.request_certificate) |
6624 | .field("request_certificate_async" , &self.request_certificate_async) |
6625 | .field( |
6626 | name:"request_certificate_finish" , |
6627 | &self.request_certificate_finish, |
6628 | ) |
6629 | .finish() |
6630 | } |
6631 | } |
6632 | |
6633 | #[repr (C)] |
6634 | pub struct _GTlsInteractionPrivate { |
6635 | _data: [u8; 0], |
6636 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6637 | } |
6638 | |
6639 | pub type GTlsInteractionPrivate = *mut _GTlsInteractionPrivate; |
6640 | |
6641 | #[derive (Copy, Clone)] |
6642 | #[repr (C)] |
6643 | pub struct GTlsPasswordClass { |
6644 | pub parent_class: gobject::GObjectClass, |
6645 | pub get_value: Option<unsafe extern "C" fn(*mut GTlsPassword, *mut size_t) -> *const u8>, |
6646 | pub set_value: |
6647 | Option<unsafe extern "C" fn(*mut GTlsPassword, *mut u8, ssize_t, glib::GDestroyNotify)>, |
6648 | pub get_default_warning: Option<unsafe extern "C" fn(*mut GTlsPassword) -> *const c_char>, |
6649 | pub padding: [gpointer; 4], |
6650 | } |
6651 | |
6652 | impl ::std::fmt::Debug for GTlsPasswordClass { |
6653 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6654 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsPasswordClass @ {self:p}" )) |
6655 | .field("parent_class" , &self.parent_class) |
6656 | .field("get_value" , &self.get_value) |
6657 | .field("set_value" , &self.set_value) |
6658 | .field(name:"get_default_warning" , &self.get_default_warning) |
6659 | .finish() |
6660 | } |
6661 | } |
6662 | |
6663 | #[repr (C)] |
6664 | pub struct _GTlsPasswordPrivate { |
6665 | _data: [u8; 0], |
6666 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6667 | } |
6668 | |
6669 | pub type GTlsPasswordPrivate = *mut _GTlsPasswordPrivate; |
6670 | |
6671 | #[derive (Copy, Clone)] |
6672 | #[repr (C)] |
6673 | pub struct GTlsServerConnectionInterface { |
6674 | pub g_iface: gobject::GTypeInterface, |
6675 | } |
6676 | |
6677 | impl ::std::fmt::Debug for GTlsServerConnectionInterface { |
6678 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6679 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsServerConnectionInterface @ {self:p}" )) |
6680 | .field(name:"g_iface" , &self.g_iface) |
6681 | .finish() |
6682 | } |
6683 | } |
6684 | |
6685 | #[derive (Copy, Clone)] |
6686 | #[repr (C)] |
6687 | pub struct GUnixConnectionClass { |
6688 | pub parent_class: GSocketConnectionClass, |
6689 | } |
6690 | |
6691 | impl ::std::fmt::Debug for GUnixConnectionClass { |
6692 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6693 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixConnectionClass @ {self:p}" )) |
6694 | .field(name:"parent_class" , &self.parent_class) |
6695 | .finish() |
6696 | } |
6697 | } |
6698 | |
6699 | #[repr (C)] |
6700 | pub struct _GUnixConnectionPrivate { |
6701 | _data: [u8; 0], |
6702 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6703 | } |
6704 | |
6705 | pub type GUnixConnectionPrivate = *mut _GUnixConnectionPrivate; |
6706 | |
6707 | #[derive (Copy, Clone)] |
6708 | #[repr (C)] |
6709 | pub struct GUnixCredentialsMessageClass { |
6710 | pub parent_class: GSocketControlMessageClass, |
6711 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6712 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6713 | } |
6714 | |
6715 | impl ::std::fmt::Debug for GUnixCredentialsMessageClass { |
6716 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6717 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixCredentialsMessageClass @ {self:p}" )) |
6718 | .field("parent_class" , &self.parent_class) |
6719 | .field("_g_reserved1" , &self._g_reserved1) |
6720 | .field(name:"_g_reserved2" , &self._g_reserved2) |
6721 | .finish() |
6722 | } |
6723 | } |
6724 | |
6725 | #[repr (C)] |
6726 | pub struct _GUnixCredentialsMessagePrivate { |
6727 | _data: [u8; 0], |
6728 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6729 | } |
6730 | |
6731 | pub type GUnixCredentialsMessagePrivate = *mut _GUnixCredentialsMessagePrivate; |
6732 | |
6733 | #[derive (Copy, Clone)] |
6734 | #[repr (C)] |
6735 | pub struct GUnixFDListClass { |
6736 | pub parent_class: gobject::GObjectClass, |
6737 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6738 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6739 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6740 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6741 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6742 | } |
6743 | |
6744 | impl ::std::fmt::Debug for GUnixFDListClass { |
6745 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6746 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixFDListClass @ {self:p}" )) |
6747 | .field("parent_class" , &self.parent_class) |
6748 | .field("_g_reserved1" , &self._g_reserved1) |
6749 | .field("_g_reserved2" , &self._g_reserved2) |
6750 | .field("_g_reserved3" , &self._g_reserved3) |
6751 | .field("_g_reserved4" , &self._g_reserved4) |
6752 | .field(name:"_g_reserved5" , &self._g_reserved5) |
6753 | .finish() |
6754 | } |
6755 | } |
6756 | |
6757 | #[repr (C)] |
6758 | pub struct _GUnixFDListPrivate { |
6759 | _data: [u8; 0], |
6760 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6761 | } |
6762 | |
6763 | pub type GUnixFDListPrivate = *mut _GUnixFDListPrivate; |
6764 | |
6765 | #[derive (Copy, Clone)] |
6766 | #[repr (C)] |
6767 | pub struct GUnixFDMessageClass { |
6768 | pub parent_class: GSocketControlMessageClass, |
6769 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6770 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6771 | } |
6772 | |
6773 | impl ::std::fmt::Debug for GUnixFDMessageClass { |
6774 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6775 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixFDMessageClass @ {self:p}" )) |
6776 | .field("parent_class" , &self.parent_class) |
6777 | .field("_g_reserved1" , &self._g_reserved1) |
6778 | .field(name:"_g_reserved2" , &self._g_reserved2) |
6779 | .finish() |
6780 | } |
6781 | } |
6782 | |
6783 | #[repr (C)] |
6784 | pub struct _GUnixFDMessagePrivate { |
6785 | _data: [u8; 0], |
6786 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6787 | } |
6788 | |
6789 | pub type GUnixFDMessagePrivate = *mut _GUnixFDMessagePrivate; |
6790 | |
6791 | #[derive (Copy, Clone)] |
6792 | #[repr (C)] |
6793 | pub struct GUnixInputStreamClass { |
6794 | pub parent_class: GInputStreamClass, |
6795 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6796 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6797 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6798 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6799 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6800 | } |
6801 | |
6802 | impl ::std::fmt::Debug for GUnixInputStreamClass { |
6803 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6804 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixInputStreamClass @ {self:p}" )) |
6805 | .field("parent_class" , &self.parent_class) |
6806 | .field("_g_reserved1" , &self._g_reserved1) |
6807 | .field("_g_reserved2" , &self._g_reserved2) |
6808 | .field("_g_reserved3" , &self._g_reserved3) |
6809 | .field("_g_reserved4" , &self._g_reserved4) |
6810 | .field(name:"_g_reserved5" , &self._g_reserved5) |
6811 | .finish() |
6812 | } |
6813 | } |
6814 | |
6815 | #[repr (C)] |
6816 | pub struct _GUnixInputStreamPrivate { |
6817 | _data: [u8; 0], |
6818 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6819 | } |
6820 | |
6821 | pub type GUnixInputStreamPrivate = *mut _GUnixInputStreamPrivate; |
6822 | |
6823 | #[repr (C)] |
6824 | pub struct GUnixMountEntry { |
6825 | _data: [u8; 0], |
6826 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6827 | } |
6828 | |
6829 | impl ::std::fmt::Debug for GUnixMountEntry { |
6830 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6831 | fDebugStruct<'_, '_>.debug_struct(&format!("GUnixMountEntry @ {self:p}" )) |
6832 | .finish() |
6833 | } |
6834 | } |
6835 | |
6836 | #[repr (C)] |
6837 | pub struct _GUnixMountMonitorClass { |
6838 | _data: [u8; 0], |
6839 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6840 | } |
6841 | |
6842 | pub type GUnixMountMonitorClass = *mut _GUnixMountMonitorClass; |
6843 | |
6844 | #[repr (C)] |
6845 | pub struct GUnixMountPoint { |
6846 | _data: [u8; 0], |
6847 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6848 | } |
6849 | |
6850 | impl ::std::fmt::Debug for GUnixMountPoint { |
6851 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6852 | fDebugStruct<'_, '_>.debug_struct(&format!("GUnixMountPoint @ {self:p}" )) |
6853 | .finish() |
6854 | } |
6855 | } |
6856 | |
6857 | #[derive (Copy, Clone)] |
6858 | #[repr (C)] |
6859 | pub struct GUnixOutputStreamClass { |
6860 | pub parent_class: GOutputStreamClass, |
6861 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6862 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6863 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6864 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6865 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6866 | } |
6867 | |
6868 | impl ::std::fmt::Debug for GUnixOutputStreamClass { |
6869 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6870 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixOutputStreamClass @ {self:p}" )) |
6871 | .field("parent_class" , &self.parent_class) |
6872 | .field("_g_reserved1" , &self._g_reserved1) |
6873 | .field("_g_reserved2" , &self._g_reserved2) |
6874 | .field("_g_reserved3" , &self._g_reserved3) |
6875 | .field("_g_reserved4" , &self._g_reserved4) |
6876 | .field(name:"_g_reserved5" , &self._g_reserved5) |
6877 | .finish() |
6878 | } |
6879 | } |
6880 | |
6881 | #[repr (C)] |
6882 | pub struct _GUnixOutputStreamPrivate { |
6883 | _data: [u8; 0], |
6884 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6885 | } |
6886 | |
6887 | pub type GUnixOutputStreamPrivate = *mut _GUnixOutputStreamPrivate; |
6888 | |
6889 | #[derive (Copy, Clone)] |
6890 | #[repr (C)] |
6891 | pub struct GUnixSocketAddressClass { |
6892 | pub parent_class: GSocketAddressClass, |
6893 | } |
6894 | |
6895 | impl ::std::fmt::Debug for GUnixSocketAddressClass { |
6896 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6897 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixSocketAddressClass @ {self:p}" )) |
6898 | .field(name:"parent_class" , &self.parent_class) |
6899 | .finish() |
6900 | } |
6901 | } |
6902 | |
6903 | #[repr (C)] |
6904 | pub struct _GUnixSocketAddressPrivate { |
6905 | _data: [u8; 0], |
6906 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
6907 | } |
6908 | |
6909 | pub type GUnixSocketAddressPrivate = *mut _GUnixSocketAddressPrivate; |
6910 | |
6911 | #[derive (Copy, Clone)] |
6912 | #[repr (C)] |
6913 | pub struct GVfsClass { |
6914 | pub parent_class: gobject::GObjectClass, |
6915 | pub is_active: Option<unsafe extern "C" fn(*mut GVfs) -> gboolean>, |
6916 | pub get_file_for_path: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>, |
6917 | pub get_file_for_uri: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>, |
6918 | pub get_supported_uri_schemes: Option<unsafe extern "C" fn(*mut GVfs) -> *const *const c_char>, |
6919 | pub parse_name: Option<unsafe extern "C" fn(*mut GVfs, *const c_char) -> *mut GFile>, |
6920 | pub local_file_add_info: Option< |
6921 | unsafe extern "C" fn( |
6922 | *mut GVfs, |
6923 | *const c_char, |
6924 | u64, |
6925 | *mut GFileAttributeMatcher, |
6926 | *mut GFileInfo, |
6927 | *mut GCancellable, |
6928 | *mut gpointer, |
6929 | *mut glib::GDestroyNotify, |
6930 | ), |
6931 | >, |
6932 | pub add_writable_namespaces: |
6933 | Option<unsafe extern "C" fn(*mut GVfs, *mut GFileAttributeInfoList)>, |
6934 | pub local_file_set_attributes: Option< |
6935 | unsafe extern "C" fn( |
6936 | *mut GVfs, |
6937 | *const c_char, |
6938 | *mut GFileInfo, |
6939 | GFileQueryInfoFlags, |
6940 | *mut GCancellable, |
6941 | *mut *mut glib::GError, |
6942 | ) -> gboolean, |
6943 | >, |
6944 | pub local_file_removed: Option<unsafe extern "C" fn(*mut GVfs, *const c_char)>, |
6945 | pub local_file_moved: Option<unsafe extern "C" fn(*mut GVfs, *const c_char, *const c_char)>, |
6946 | pub deserialize_icon: |
6947 | Option<unsafe extern "C" fn(*mut GVfs, *mut glib::GVariant) -> *mut GIcon>, |
6948 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
6949 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
6950 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
6951 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
6952 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
6953 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
6954 | } |
6955 | |
6956 | impl ::std::fmt::Debug for GVfsClass { |
6957 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
6958 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GVfsClass @ {self:p}" )) |
6959 | .field("parent_class" , &self.parent_class) |
6960 | .field("is_active" , &self.is_active) |
6961 | .field("get_file_for_path" , &self.get_file_for_path) |
6962 | .field("get_file_for_uri" , &self.get_file_for_uri) |
6963 | .field("get_supported_uri_schemes" , &self.get_supported_uri_schemes) |
6964 | .field("parse_name" , &self.parse_name) |
6965 | .field("local_file_add_info" , &self.local_file_add_info) |
6966 | .field("add_writable_namespaces" , &self.add_writable_namespaces) |
6967 | .field("local_file_set_attributes" , &self.local_file_set_attributes) |
6968 | .field("local_file_removed" , &self.local_file_removed) |
6969 | .field("local_file_moved" , &self.local_file_moved) |
6970 | .field("deserialize_icon" , &self.deserialize_icon) |
6971 | .field("_g_reserved1" , &self._g_reserved1) |
6972 | .field("_g_reserved2" , &self._g_reserved2) |
6973 | .field("_g_reserved3" , &self._g_reserved3) |
6974 | .field("_g_reserved4" , &self._g_reserved4) |
6975 | .field("_g_reserved5" , &self._g_reserved5) |
6976 | .field(name:"_g_reserved6" , &self._g_reserved6) |
6977 | .finish() |
6978 | } |
6979 | } |
6980 | |
6981 | #[derive (Copy, Clone)] |
6982 | #[repr (C)] |
6983 | pub struct GVolumeIface { |
6984 | pub g_iface: gobject::GTypeInterface, |
6985 | pub changed: Option<unsafe extern "C" fn(*mut GVolume)>, |
6986 | pub removed: Option<unsafe extern "C" fn(*mut GVolume)>, |
6987 | pub get_name: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>, |
6988 | pub get_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>, |
6989 | pub get_uuid: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>, |
6990 | pub get_drive: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GDrive>, |
6991 | pub get_mount: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GMount>, |
6992 | pub can_mount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>, |
6993 | pub can_eject: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>, |
6994 | pub mount_fn: Option< |
6995 | unsafe extern "C" fn( |
6996 | *mut GVolume, |
6997 | GMountMountFlags, |
6998 | *mut GMountOperation, |
6999 | *mut GCancellable, |
7000 | GAsyncReadyCallback, |
7001 | gpointer, |
7002 | ), |
7003 | >, |
7004 | pub mount_finish: Option< |
7005 | unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
7006 | >, |
7007 | pub eject: Option< |
7008 | unsafe extern "C" fn( |
7009 | *mut GVolume, |
7010 | GMountUnmountFlags, |
7011 | *mut GCancellable, |
7012 | GAsyncReadyCallback, |
7013 | gpointer, |
7014 | ), |
7015 | >, |
7016 | pub eject_finish: Option< |
7017 | unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
7018 | >, |
7019 | pub get_identifier: Option<unsafe extern "C" fn(*mut GVolume, *const c_char) -> *mut c_char>, |
7020 | pub enumerate_identifiers: Option<unsafe extern "C" fn(*mut GVolume) -> *mut *mut c_char>, |
7021 | pub should_automount: Option<unsafe extern "C" fn(*mut GVolume) -> gboolean>, |
7022 | pub get_activation_root: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GFile>, |
7023 | pub eject_with_operation: Option< |
7024 | unsafe extern "C" fn( |
7025 | *mut GVolume, |
7026 | GMountUnmountFlags, |
7027 | *mut GMountOperation, |
7028 | *mut GCancellable, |
7029 | GAsyncReadyCallback, |
7030 | gpointer, |
7031 | ), |
7032 | >, |
7033 | pub eject_with_operation_finish: Option< |
7034 | unsafe extern "C" fn(*mut GVolume, *mut GAsyncResult, *mut *mut glib::GError) -> gboolean, |
7035 | >, |
7036 | pub get_sort_key: Option<unsafe extern "C" fn(*mut GVolume) -> *const c_char>, |
7037 | pub get_symbolic_icon: Option<unsafe extern "C" fn(*mut GVolume) -> *mut GIcon>, |
7038 | } |
7039 | |
7040 | impl ::std::fmt::Debug for GVolumeIface { |
7041 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7042 | f.debug_struct(&format!("GVolumeIface @ {self:p}" )) |
7043 | .field("g_iface" , &self.g_iface) |
7044 | .field("changed" , &self.changed) |
7045 | .field("removed" , &self.removed) |
7046 | .field("get_name" , &self.get_name) |
7047 | .field("get_icon" , &self.get_icon) |
7048 | .field("get_uuid" , &self.get_uuid) |
7049 | .field("get_drive" , &self.get_drive) |
7050 | .field("get_mount" , &self.get_mount) |
7051 | .field("can_mount" , &self.can_mount) |
7052 | .field("can_eject" , &self.can_eject) |
7053 | .field("mount_fn" , &self.mount_fn) |
7054 | .field("mount_finish" , &self.mount_finish) |
7055 | .field("eject" , &self.eject) |
7056 | .field("eject_finish" , &self.eject_finish) |
7057 | .field("get_identifier" , &self.get_identifier) |
7058 | .field("enumerate_identifiers" , &self.enumerate_identifiers) |
7059 | .field("should_automount" , &self.should_automount) |
7060 | .field("get_activation_root" , &self.get_activation_root) |
7061 | .field("eject_with_operation" , &self.eject_with_operation) |
7062 | .field( |
7063 | "eject_with_operation_finish" , |
7064 | &self.eject_with_operation_finish, |
7065 | ) |
7066 | .field("get_sort_key" , &self.get_sort_key) |
7067 | .field("get_symbolic_icon" , &self.get_symbolic_icon) |
7068 | .finish() |
7069 | } |
7070 | } |
7071 | |
7072 | #[derive (Copy, Clone)] |
7073 | #[repr (C)] |
7074 | pub struct GVolumeMonitorClass { |
7075 | pub parent_class: gobject::GObjectClass, |
7076 | pub volume_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>, |
7077 | pub volume_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>, |
7078 | pub volume_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GVolume)>, |
7079 | pub mount_added: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>, |
7080 | pub mount_removed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>, |
7081 | pub mount_pre_unmount: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>, |
7082 | pub mount_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GMount)>, |
7083 | pub drive_connected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>, |
7084 | pub drive_disconnected: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>, |
7085 | pub drive_changed: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>, |
7086 | pub is_supported: Option<unsafe extern "C" fn() -> gboolean>, |
7087 | pub get_connected_drives: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>, |
7088 | pub get_volumes: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>, |
7089 | pub get_mounts: Option<unsafe extern "C" fn(*mut GVolumeMonitor) -> *mut glib::GList>, |
7090 | pub get_volume_for_uuid: |
7091 | Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GVolume>, |
7092 | pub get_mount_for_uuid: |
7093 | Option<unsafe extern "C" fn(*mut GVolumeMonitor, *const c_char) -> *mut GMount>, |
7094 | pub adopt_orphan_mount: |
7095 | Option<unsafe extern "C" fn(*mut GMount, *mut GVolumeMonitor) -> *mut GVolume>, |
7096 | pub drive_eject_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>, |
7097 | pub drive_stop_button: Option<unsafe extern "C" fn(*mut GVolumeMonitor, *mut GDrive)>, |
7098 | pub _g_reserved1: Option<unsafe extern "C" fn()>, |
7099 | pub _g_reserved2: Option<unsafe extern "C" fn()>, |
7100 | pub _g_reserved3: Option<unsafe extern "C" fn()>, |
7101 | pub _g_reserved4: Option<unsafe extern "C" fn()>, |
7102 | pub _g_reserved5: Option<unsafe extern "C" fn()>, |
7103 | pub _g_reserved6: Option<unsafe extern "C" fn()>, |
7104 | } |
7105 | |
7106 | impl ::std::fmt::Debug for GVolumeMonitorClass { |
7107 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7108 | f.debug_struct(&format!("GVolumeMonitorClass @ {self:p}" )) |
7109 | .field("parent_class" , &self.parent_class) |
7110 | .field("volume_added" , &self.volume_added) |
7111 | .field("volume_removed" , &self.volume_removed) |
7112 | .field("volume_changed" , &self.volume_changed) |
7113 | .field("mount_added" , &self.mount_added) |
7114 | .field("mount_removed" , &self.mount_removed) |
7115 | .field("mount_pre_unmount" , &self.mount_pre_unmount) |
7116 | .field("mount_changed" , &self.mount_changed) |
7117 | .field("drive_connected" , &self.drive_connected) |
7118 | .field("drive_disconnected" , &self.drive_disconnected) |
7119 | .field("drive_changed" , &self.drive_changed) |
7120 | .field("is_supported" , &self.is_supported) |
7121 | .field("get_connected_drives" , &self.get_connected_drives) |
7122 | .field("get_volumes" , &self.get_volumes) |
7123 | .field("get_mounts" , &self.get_mounts) |
7124 | .field("get_volume_for_uuid" , &self.get_volume_for_uuid) |
7125 | .field("get_mount_for_uuid" , &self.get_mount_for_uuid) |
7126 | .field("adopt_orphan_mount" , &self.adopt_orphan_mount) |
7127 | .field("drive_eject_button" , &self.drive_eject_button) |
7128 | .field("drive_stop_button" , &self.drive_stop_button) |
7129 | .field("_g_reserved1" , &self._g_reserved1) |
7130 | .field("_g_reserved2" , &self._g_reserved2) |
7131 | .field("_g_reserved3" , &self._g_reserved3) |
7132 | .field("_g_reserved4" , &self._g_reserved4) |
7133 | .field("_g_reserved5" , &self._g_reserved5) |
7134 | .field("_g_reserved6" , &self._g_reserved6) |
7135 | .finish() |
7136 | } |
7137 | } |
7138 | |
7139 | #[derive (Copy, Clone)] |
7140 | #[repr (C)] |
7141 | pub struct GZlibCompressorClass { |
7142 | pub parent_class: gobject::GObjectClass, |
7143 | } |
7144 | |
7145 | impl ::std::fmt::Debug for GZlibCompressorClass { |
7146 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7147 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GZlibCompressorClass @ {self:p}" )) |
7148 | .field(name:"parent_class" , &self.parent_class) |
7149 | .finish() |
7150 | } |
7151 | } |
7152 | |
7153 | #[derive (Copy, Clone)] |
7154 | #[repr (C)] |
7155 | pub struct GZlibDecompressorClass { |
7156 | pub parent_class: gobject::GObjectClass, |
7157 | } |
7158 | |
7159 | impl ::std::fmt::Debug for GZlibDecompressorClass { |
7160 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7161 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GZlibDecompressorClass @ {self:p}" )) |
7162 | .field(name:"parent_class" , &self.parent_class) |
7163 | .finish() |
7164 | } |
7165 | } |
7166 | |
7167 | // Classes |
7168 | #[repr (C)] |
7169 | pub struct GAppInfoMonitor { |
7170 | _data: [u8; 0], |
7171 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7172 | } |
7173 | |
7174 | impl ::std::fmt::Debug for GAppInfoMonitor { |
7175 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7176 | fDebugStruct<'_, '_>.debug_struct(&format!("GAppInfoMonitor @ {self:p}" )) |
7177 | .finish() |
7178 | } |
7179 | } |
7180 | |
7181 | #[derive (Copy, Clone)] |
7182 | #[repr (C)] |
7183 | pub struct GAppLaunchContext { |
7184 | pub parent_instance: gobject::GObject, |
7185 | pub priv_: *mut GAppLaunchContextPrivate, |
7186 | } |
7187 | |
7188 | impl ::std::fmt::Debug for GAppLaunchContext { |
7189 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7190 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GAppLaunchContext @ {self:p}" )) |
7191 | .field(name:"parent_instance" , &self.parent_instance) |
7192 | .finish() |
7193 | } |
7194 | } |
7195 | |
7196 | #[derive (Copy, Clone)] |
7197 | #[repr (C)] |
7198 | pub struct GApplication { |
7199 | pub parent_instance: gobject::GObject, |
7200 | pub priv_: *mut GApplicationPrivate, |
7201 | } |
7202 | |
7203 | impl ::std::fmt::Debug for GApplication { |
7204 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7205 | f.debug_struct(&format!("GApplication @ {self:p}" )).finish() |
7206 | } |
7207 | } |
7208 | |
7209 | #[derive (Copy, Clone)] |
7210 | #[repr (C)] |
7211 | pub struct GApplicationCommandLine { |
7212 | pub parent_instance: gobject::GObject, |
7213 | pub priv_: *mut GApplicationCommandLinePrivate, |
7214 | } |
7215 | |
7216 | impl ::std::fmt::Debug for GApplicationCommandLine { |
7217 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7218 | fDebugStruct<'_, '_>.debug_struct(&format!("GApplicationCommandLine @ {self:p}" )) |
7219 | .finish() |
7220 | } |
7221 | } |
7222 | |
7223 | #[derive (Copy, Clone)] |
7224 | #[repr (C)] |
7225 | pub struct GBufferedInputStream { |
7226 | pub parent_instance: GFilterInputStream, |
7227 | pub priv_: *mut GBufferedInputStreamPrivate, |
7228 | } |
7229 | |
7230 | impl ::std::fmt::Debug for GBufferedInputStream { |
7231 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7232 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GBufferedInputStream @ {self:p}" )) |
7233 | .field(name:"parent_instance" , &self.parent_instance) |
7234 | .finish() |
7235 | } |
7236 | } |
7237 | |
7238 | #[derive (Copy, Clone)] |
7239 | #[repr (C)] |
7240 | pub struct GBufferedOutputStream { |
7241 | pub parent_instance: GFilterOutputStream, |
7242 | pub priv_: *mut GBufferedOutputStreamPrivate, |
7243 | } |
7244 | |
7245 | impl ::std::fmt::Debug for GBufferedOutputStream { |
7246 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7247 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GBufferedOutputStream @ {self:p}" )) |
7248 | .field("parent_instance" , &self.parent_instance) |
7249 | .field(name:"priv_" , &self.priv_) |
7250 | .finish() |
7251 | } |
7252 | } |
7253 | |
7254 | #[repr (C)] |
7255 | pub struct GBytesIcon { |
7256 | _data: [u8; 0], |
7257 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7258 | } |
7259 | |
7260 | impl ::std::fmt::Debug for GBytesIcon { |
7261 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7262 | f.debug_struct(&format!("GBytesIcon @ {self:p}" )).finish() |
7263 | } |
7264 | } |
7265 | |
7266 | #[derive (Copy, Clone)] |
7267 | #[repr (C)] |
7268 | pub struct GCancellable { |
7269 | pub parent_instance: gobject::GObject, |
7270 | pub priv_: *mut GCancellablePrivate, |
7271 | } |
7272 | |
7273 | impl ::std::fmt::Debug for GCancellable { |
7274 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7275 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GCancellable @ {self:p}" )) |
7276 | .field(name:"parent_instance" , &self.parent_instance) |
7277 | .finish() |
7278 | } |
7279 | } |
7280 | |
7281 | #[repr (C)] |
7282 | pub struct GCharsetConverter { |
7283 | _data: [u8; 0], |
7284 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7285 | } |
7286 | |
7287 | impl ::std::fmt::Debug for GCharsetConverter { |
7288 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7289 | fDebugStruct<'_, '_>.debug_struct(&format!("GCharsetConverter @ {self:p}" )) |
7290 | .finish() |
7291 | } |
7292 | } |
7293 | |
7294 | #[derive (Copy, Clone)] |
7295 | #[repr (C)] |
7296 | pub struct GConverterInputStream { |
7297 | pub parent_instance: GFilterInputStream, |
7298 | pub priv_: *mut GConverterInputStreamPrivate, |
7299 | } |
7300 | |
7301 | impl ::std::fmt::Debug for GConverterInputStream { |
7302 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7303 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GConverterInputStream @ {self:p}" )) |
7304 | .field(name:"parent_instance" , &self.parent_instance) |
7305 | .finish() |
7306 | } |
7307 | } |
7308 | |
7309 | #[derive (Copy, Clone)] |
7310 | #[repr (C)] |
7311 | pub struct GConverterOutputStream { |
7312 | pub parent_instance: GFilterOutputStream, |
7313 | pub priv_: *mut GConverterOutputStreamPrivate, |
7314 | } |
7315 | |
7316 | impl ::std::fmt::Debug for GConverterOutputStream { |
7317 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7318 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GConverterOutputStream @ {self:p}" )) |
7319 | .field(name:"parent_instance" , &self.parent_instance) |
7320 | .finish() |
7321 | } |
7322 | } |
7323 | |
7324 | #[repr (C)] |
7325 | pub struct GCredentials { |
7326 | _data: [u8; 0], |
7327 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7328 | } |
7329 | |
7330 | impl ::std::fmt::Debug for GCredentials { |
7331 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7332 | f.debug_struct(&format!("GCredentials @ {self:p}" )).finish() |
7333 | } |
7334 | } |
7335 | |
7336 | #[repr (C)] |
7337 | pub struct GDBusActionGroup { |
7338 | _data: [u8; 0], |
7339 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7340 | } |
7341 | |
7342 | impl ::std::fmt::Debug for GDBusActionGroup { |
7343 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7344 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusActionGroup @ {self:p}" )) |
7345 | .finish() |
7346 | } |
7347 | } |
7348 | |
7349 | #[repr (C)] |
7350 | pub struct GDBusAuthObserver { |
7351 | _data: [u8; 0], |
7352 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7353 | } |
7354 | |
7355 | impl ::std::fmt::Debug for GDBusAuthObserver { |
7356 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7357 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusAuthObserver @ {self:p}" )) |
7358 | .finish() |
7359 | } |
7360 | } |
7361 | |
7362 | #[repr (C)] |
7363 | pub struct GDBusConnection { |
7364 | _data: [u8; 0], |
7365 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7366 | } |
7367 | |
7368 | impl ::std::fmt::Debug for GDBusConnection { |
7369 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7370 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusConnection @ {self:p}" )) |
7371 | .finish() |
7372 | } |
7373 | } |
7374 | |
7375 | #[derive (Copy, Clone)] |
7376 | #[repr (C)] |
7377 | pub struct GDBusInterfaceSkeleton { |
7378 | pub parent_instance: gobject::GObject, |
7379 | pub priv_: *mut GDBusInterfaceSkeletonPrivate, |
7380 | } |
7381 | |
7382 | impl ::std::fmt::Debug for GDBusInterfaceSkeleton { |
7383 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7384 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusInterfaceSkeleton @ {self:p}" )) |
7385 | .finish() |
7386 | } |
7387 | } |
7388 | |
7389 | #[repr (C)] |
7390 | pub struct GDBusMenuModel { |
7391 | _data: [u8; 0], |
7392 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7393 | } |
7394 | |
7395 | impl ::std::fmt::Debug for GDBusMenuModel { |
7396 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7397 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusMenuModel @ {self:p}" )) |
7398 | .finish() |
7399 | } |
7400 | } |
7401 | |
7402 | #[repr (C)] |
7403 | pub struct GDBusMessage { |
7404 | _data: [u8; 0], |
7405 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7406 | } |
7407 | |
7408 | impl ::std::fmt::Debug for GDBusMessage { |
7409 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7410 | f.debug_struct(&format!("GDBusMessage @ {self:p}" )).finish() |
7411 | } |
7412 | } |
7413 | |
7414 | #[repr (C)] |
7415 | pub struct GDBusMethodInvocation { |
7416 | _data: [u8; 0], |
7417 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7418 | } |
7419 | |
7420 | impl ::std::fmt::Debug for GDBusMethodInvocation { |
7421 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7422 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusMethodInvocation @ {self:p}" )) |
7423 | .finish() |
7424 | } |
7425 | } |
7426 | |
7427 | #[derive (Copy, Clone)] |
7428 | #[repr (C)] |
7429 | pub struct GDBusObjectManagerClient { |
7430 | pub parent_instance: gobject::GObject, |
7431 | pub priv_: *mut GDBusObjectManagerClientPrivate, |
7432 | } |
7433 | |
7434 | impl ::std::fmt::Debug for GDBusObjectManagerClient { |
7435 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7436 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectManagerClient @ {self:p}" )) |
7437 | .finish() |
7438 | } |
7439 | } |
7440 | |
7441 | #[derive (Copy, Clone)] |
7442 | #[repr (C)] |
7443 | pub struct GDBusObjectManagerServer { |
7444 | pub parent_instance: gobject::GObject, |
7445 | pub priv_: *mut GDBusObjectManagerServerPrivate, |
7446 | } |
7447 | |
7448 | impl ::std::fmt::Debug for GDBusObjectManagerServer { |
7449 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7450 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectManagerServer @ {self:p}" )) |
7451 | .finish() |
7452 | } |
7453 | } |
7454 | |
7455 | #[derive (Copy, Clone)] |
7456 | #[repr (C)] |
7457 | pub struct GDBusObjectProxy { |
7458 | pub parent_instance: gobject::GObject, |
7459 | pub priv_: *mut GDBusObjectProxyPrivate, |
7460 | } |
7461 | |
7462 | impl ::std::fmt::Debug for GDBusObjectProxy { |
7463 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7464 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectProxy @ {self:p}" )) |
7465 | .finish() |
7466 | } |
7467 | } |
7468 | |
7469 | #[derive (Copy, Clone)] |
7470 | #[repr (C)] |
7471 | pub struct GDBusObjectSkeleton { |
7472 | pub parent_instance: gobject::GObject, |
7473 | pub priv_: *mut GDBusObjectSkeletonPrivate, |
7474 | } |
7475 | |
7476 | impl ::std::fmt::Debug for GDBusObjectSkeleton { |
7477 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7478 | fDebugStruct<'_, '_>.debug_struct(&format!("GDBusObjectSkeleton @ {self:p}" )) |
7479 | .finish() |
7480 | } |
7481 | } |
7482 | |
7483 | #[derive (Copy, Clone)] |
7484 | #[repr (C)] |
7485 | pub struct GDBusProxy { |
7486 | pub parent_instance: gobject::GObject, |
7487 | pub priv_: *mut GDBusProxyPrivate, |
7488 | } |
7489 | |
7490 | impl ::std::fmt::Debug for GDBusProxy { |
7491 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7492 | f.debug_struct(&format!("GDBusProxy @ {self:p}" )).finish() |
7493 | } |
7494 | } |
7495 | |
7496 | #[repr (C)] |
7497 | pub struct GDBusServer { |
7498 | _data: [u8; 0], |
7499 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7500 | } |
7501 | |
7502 | impl ::std::fmt::Debug for GDBusServer { |
7503 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7504 | f.debug_struct(&format!("GDBusServer @ {self:p}" )).finish() |
7505 | } |
7506 | } |
7507 | |
7508 | #[derive (Copy, Clone)] |
7509 | #[repr (C)] |
7510 | pub struct GDataInputStream { |
7511 | pub parent_instance: GBufferedInputStream, |
7512 | pub priv_: *mut GDataInputStreamPrivate, |
7513 | } |
7514 | |
7515 | impl ::std::fmt::Debug for GDataInputStream { |
7516 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7517 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDataInputStream @ {self:p}" )) |
7518 | .field(name:"parent_instance" , &self.parent_instance) |
7519 | .finish() |
7520 | } |
7521 | } |
7522 | |
7523 | #[derive (Copy, Clone)] |
7524 | #[repr (C)] |
7525 | pub struct GDataOutputStream { |
7526 | pub parent_instance: GFilterOutputStream, |
7527 | pub priv_: *mut GDataOutputStreamPrivate, |
7528 | } |
7529 | |
7530 | impl ::std::fmt::Debug for GDataOutputStream { |
7531 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7532 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDataOutputStream @ {self:p}" )) |
7533 | .field(name:"parent_instance" , &self.parent_instance) |
7534 | .finish() |
7535 | } |
7536 | } |
7537 | |
7538 | #[derive (Copy, Clone)] |
7539 | #[repr (C)] |
7540 | pub struct GDebugControllerDBus { |
7541 | pub parent_instance: gobject::GObject, |
7542 | } |
7543 | |
7544 | impl ::std::fmt::Debug for GDebugControllerDBus { |
7545 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7546 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GDebugControllerDBus @ {self:p}" )) |
7547 | .field(name:"parent_instance" , &self.parent_instance) |
7548 | .finish() |
7549 | } |
7550 | } |
7551 | |
7552 | #[repr (C)] |
7553 | pub struct GDesktopAppInfo { |
7554 | _data: [u8; 0], |
7555 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7556 | } |
7557 | |
7558 | impl ::std::fmt::Debug for GDesktopAppInfo { |
7559 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7560 | fDebugStruct<'_, '_>.debug_struct(&format!("GDesktopAppInfo @ {self:p}" )) |
7561 | .finish() |
7562 | } |
7563 | } |
7564 | |
7565 | #[repr (C)] |
7566 | pub struct GEmblem { |
7567 | _data: [u8; 0], |
7568 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7569 | } |
7570 | |
7571 | impl ::std::fmt::Debug for GEmblem { |
7572 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7573 | f.debug_struct(&format!("GEmblem @ {self:p}" )).finish() |
7574 | } |
7575 | } |
7576 | |
7577 | #[derive (Copy, Clone)] |
7578 | #[repr (C)] |
7579 | pub struct GEmblemedIcon { |
7580 | pub parent_instance: gobject::GObject, |
7581 | pub priv_: *mut GEmblemedIconPrivate, |
7582 | } |
7583 | |
7584 | impl ::std::fmt::Debug for GEmblemedIcon { |
7585 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7586 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GEmblemedIcon @ {self:p}" )) |
7587 | .field(name:"parent_instance" , &self.parent_instance) |
7588 | .finish() |
7589 | } |
7590 | } |
7591 | |
7592 | #[derive (Copy, Clone)] |
7593 | #[repr (C)] |
7594 | pub struct GFileEnumerator { |
7595 | pub parent_instance: gobject::GObject, |
7596 | pub priv_: *mut GFileEnumeratorPrivate, |
7597 | } |
7598 | |
7599 | impl ::std::fmt::Debug for GFileEnumerator { |
7600 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7601 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileEnumerator @ {self:p}" )) |
7602 | .field(name:"parent_instance" , &self.parent_instance) |
7603 | .finish() |
7604 | } |
7605 | } |
7606 | |
7607 | #[derive (Copy, Clone)] |
7608 | #[repr (C)] |
7609 | pub struct GFileIOStream { |
7610 | pub parent_instance: GIOStream, |
7611 | pub priv_: *mut GFileIOStreamPrivate, |
7612 | } |
7613 | |
7614 | impl ::std::fmt::Debug for GFileIOStream { |
7615 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7616 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileIOStream @ {self:p}" )) |
7617 | .field(name:"parent_instance" , &self.parent_instance) |
7618 | .finish() |
7619 | } |
7620 | } |
7621 | |
7622 | #[repr (C)] |
7623 | pub struct GFileIcon { |
7624 | _data: [u8; 0], |
7625 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7626 | } |
7627 | |
7628 | impl ::std::fmt::Debug for GFileIcon { |
7629 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7630 | f.debug_struct(&format!("GFileIcon @ {self:p}" )).finish() |
7631 | } |
7632 | } |
7633 | |
7634 | #[repr (C)] |
7635 | pub struct GFileInfo { |
7636 | _data: [u8; 0], |
7637 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7638 | } |
7639 | |
7640 | impl ::std::fmt::Debug for GFileInfo { |
7641 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7642 | f.debug_struct(&format!("GFileInfo @ {self:p}" )).finish() |
7643 | } |
7644 | } |
7645 | |
7646 | #[derive (Copy, Clone)] |
7647 | #[repr (C)] |
7648 | pub struct GFileInputStream { |
7649 | pub parent_instance: GInputStream, |
7650 | pub priv_: *mut GFileInputStreamPrivate, |
7651 | } |
7652 | |
7653 | impl ::std::fmt::Debug for GFileInputStream { |
7654 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7655 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileInputStream @ {self:p}" )) |
7656 | .field(name:"parent_instance" , &self.parent_instance) |
7657 | .finish() |
7658 | } |
7659 | } |
7660 | |
7661 | #[derive (Copy, Clone)] |
7662 | #[repr (C)] |
7663 | pub struct GFileMonitor { |
7664 | pub parent_instance: gobject::GObject, |
7665 | pub priv_: *mut GFileMonitorPrivate, |
7666 | } |
7667 | |
7668 | impl ::std::fmt::Debug for GFileMonitor { |
7669 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7670 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileMonitor @ {self:p}" )) |
7671 | .field(name:"parent_instance" , &self.parent_instance) |
7672 | .finish() |
7673 | } |
7674 | } |
7675 | |
7676 | #[derive (Copy, Clone)] |
7677 | #[repr (C)] |
7678 | pub struct GFileOutputStream { |
7679 | pub parent_instance: GOutputStream, |
7680 | pub priv_: *mut GFileOutputStreamPrivate, |
7681 | } |
7682 | |
7683 | impl ::std::fmt::Debug for GFileOutputStream { |
7684 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7685 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFileOutputStream @ {self:p}" )) |
7686 | .field(name:"parent_instance" , &self.parent_instance) |
7687 | .finish() |
7688 | } |
7689 | } |
7690 | |
7691 | #[repr (C)] |
7692 | pub struct GFilenameCompleter { |
7693 | _data: [u8; 0], |
7694 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7695 | } |
7696 | |
7697 | impl ::std::fmt::Debug for GFilenameCompleter { |
7698 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7699 | fDebugStruct<'_, '_>.debug_struct(&format!("GFilenameCompleter @ {self:p}" )) |
7700 | .finish() |
7701 | } |
7702 | } |
7703 | |
7704 | #[derive (Copy, Clone)] |
7705 | #[repr (C)] |
7706 | pub struct GFilterInputStream { |
7707 | pub parent_instance: GInputStream, |
7708 | pub base_stream: *mut GInputStream, |
7709 | } |
7710 | |
7711 | impl ::std::fmt::Debug for GFilterInputStream { |
7712 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7713 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFilterInputStream @ {self:p}" )) |
7714 | .field("parent_instance" , &self.parent_instance) |
7715 | .field(name:"base_stream" , &self.base_stream) |
7716 | .finish() |
7717 | } |
7718 | } |
7719 | |
7720 | #[derive (Copy, Clone)] |
7721 | #[repr (C)] |
7722 | pub struct GFilterOutputStream { |
7723 | pub parent_instance: GOutputStream, |
7724 | pub base_stream: *mut GOutputStream, |
7725 | } |
7726 | |
7727 | impl ::std::fmt::Debug for GFilterOutputStream { |
7728 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7729 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GFilterOutputStream @ {self:p}" )) |
7730 | .field("parent_instance" , &self.parent_instance) |
7731 | .field(name:"base_stream" , &self.base_stream) |
7732 | .finish() |
7733 | } |
7734 | } |
7735 | |
7736 | #[repr (C)] |
7737 | pub struct GIOModule { |
7738 | _data: [u8; 0], |
7739 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7740 | } |
7741 | |
7742 | impl ::std::fmt::Debug for GIOModule { |
7743 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7744 | f.debug_struct(&format!("GIOModule @ {self:p}" )).finish() |
7745 | } |
7746 | } |
7747 | |
7748 | #[derive (Copy, Clone)] |
7749 | #[repr (C)] |
7750 | pub struct GIOStream { |
7751 | pub parent_instance: gobject::GObject, |
7752 | pub priv_: *mut GIOStreamPrivate, |
7753 | } |
7754 | |
7755 | impl ::std::fmt::Debug for GIOStream { |
7756 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7757 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GIOStream @ {self:p}" )) |
7758 | .field(name:"parent_instance" , &self.parent_instance) |
7759 | .finish() |
7760 | } |
7761 | } |
7762 | |
7763 | #[derive (Copy, Clone)] |
7764 | #[repr (C)] |
7765 | pub struct GInetAddress { |
7766 | pub parent_instance: gobject::GObject, |
7767 | pub priv_: *mut GInetAddressPrivate, |
7768 | } |
7769 | |
7770 | impl ::std::fmt::Debug for GInetAddress { |
7771 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7772 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetAddress @ {self:p}" )) |
7773 | .field(name:"parent_instance" , &self.parent_instance) |
7774 | .finish() |
7775 | } |
7776 | } |
7777 | |
7778 | #[derive (Copy, Clone)] |
7779 | #[repr (C)] |
7780 | pub struct GInetAddressMask { |
7781 | pub parent_instance: gobject::GObject, |
7782 | pub priv_: *mut GInetAddressMaskPrivate, |
7783 | } |
7784 | |
7785 | impl ::std::fmt::Debug for GInetAddressMask { |
7786 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7787 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetAddressMask @ {self:p}" )) |
7788 | .field(name:"parent_instance" , &self.parent_instance) |
7789 | .finish() |
7790 | } |
7791 | } |
7792 | |
7793 | #[derive (Copy, Clone)] |
7794 | #[repr (C)] |
7795 | pub struct GInetSocketAddress { |
7796 | pub parent_instance: GSocketAddress, |
7797 | pub priv_: *mut GInetSocketAddressPrivate, |
7798 | } |
7799 | |
7800 | impl ::std::fmt::Debug for GInetSocketAddress { |
7801 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7802 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInetSocketAddress @ {self:p}" )) |
7803 | .field(name:"parent_instance" , &self.parent_instance) |
7804 | .finish() |
7805 | } |
7806 | } |
7807 | |
7808 | #[derive (Copy, Clone)] |
7809 | #[repr (C)] |
7810 | pub struct GInputStream { |
7811 | pub parent_instance: gobject::GObject, |
7812 | pub priv_: *mut GInputStreamPrivate, |
7813 | } |
7814 | |
7815 | impl ::std::fmt::Debug for GInputStream { |
7816 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7817 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GInputStream @ {self:p}" )) |
7818 | .field(name:"parent_instance" , &self.parent_instance) |
7819 | .finish() |
7820 | } |
7821 | } |
7822 | |
7823 | #[repr (C)] |
7824 | pub struct GListStore { |
7825 | _data: [u8; 0], |
7826 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7827 | } |
7828 | |
7829 | impl ::std::fmt::Debug for GListStore { |
7830 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7831 | f.debug_struct(&format!("GListStore @ {self:p}" )).finish() |
7832 | } |
7833 | } |
7834 | |
7835 | #[derive (Copy, Clone)] |
7836 | #[repr (C)] |
7837 | pub struct GMemoryInputStream { |
7838 | pub parent_instance: GInputStream, |
7839 | pub priv_: *mut GMemoryInputStreamPrivate, |
7840 | } |
7841 | |
7842 | impl ::std::fmt::Debug for GMemoryInputStream { |
7843 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7844 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMemoryInputStream @ {self:p}" )) |
7845 | .field(name:"parent_instance" , &self.parent_instance) |
7846 | .finish() |
7847 | } |
7848 | } |
7849 | |
7850 | #[derive (Copy, Clone)] |
7851 | #[repr (C)] |
7852 | pub struct GMemoryOutputStream { |
7853 | pub parent_instance: GOutputStream, |
7854 | pub priv_: *mut GMemoryOutputStreamPrivate, |
7855 | } |
7856 | |
7857 | impl ::std::fmt::Debug for GMemoryOutputStream { |
7858 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7859 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMemoryOutputStream @ {self:p}" )) |
7860 | .field(name:"parent_instance" , &self.parent_instance) |
7861 | .finish() |
7862 | } |
7863 | } |
7864 | |
7865 | #[repr (C)] |
7866 | pub struct GMenu { |
7867 | _data: [u8; 0], |
7868 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7869 | } |
7870 | |
7871 | impl ::std::fmt::Debug for GMenu { |
7872 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7873 | f.debug_struct(&format!("GMenu @ {self:p}" )).finish() |
7874 | } |
7875 | } |
7876 | |
7877 | #[derive (Copy, Clone)] |
7878 | #[repr (C)] |
7879 | pub struct GMenuAttributeIter { |
7880 | pub parent_instance: gobject::GObject, |
7881 | pub priv_: *mut GMenuAttributeIterPrivate, |
7882 | } |
7883 | |
7884 | impl ::std::fmt::Debug for GMenuAttributeIter { |
7885 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7886 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuAttributeIter @ {self:p}" )) |
7887 | .field("parent_instance" , &self.parent_instance) |
7888 | .field(name:"priv_" , &self.priv_) |
7889 | .finish() |
7890 | } |
7891 | } |
7892 | |
7893 | #[repr (C)] |
7894 | pub struct GMenuItem { |
7895 | _data: [u8; 0], |
7896 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
7897 | } |
7898 | |
7899 | impl ::std::fmt::Debug for GMenuItem { |
7900 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7901 | f.debug_struct(&format!("GMenuItem @ {self:p}" )).finish() |
7902 | } |
7903 | } |
7904 | |
7905 | #[derive (Copy, Clone)] |
7906 | #[repr (C)] |
7907 | pub struct GMenuLinkIter { |
7908 | pub parent_instance: gobject::GObject, |
7909 | pub priv_: *mut GMenuLinkIterPrivate, |
7910 | } |
7911 | |
7912 | impl ::std::fmt::Debug for GMenuLinkIter { |
7913 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7914 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuLinkIter @ {self:p}" )) |
7915 | .field("parent_instance" , &self.parent_instance) |
7916 | .field(name:"priv_" , &self.priv_) |
7917 | .finish() |
7918 | } |
7919 | } |
7920 | |
7921 | #[derive (Copy, Clone)] |
7922 | #[repr (C)] |
7923 | pub struct GMenuModel { |
7924 | pub parent_instance: gobject::GObject, |
7925 | pub priv_: *mut GMenuModelPrivate, |
7926 | } |
7927 | |
7928 | impl ::std::fmt::Debug for GMenuModel { |
7929 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7930 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMenuModel @ {self:p}" )) |
7931 | .field("parent_instance" , &self.parent_instance) |
7932 | .field(name:"priv_" , &self.priv_) |
7933 | .finish() |
7934 | } |
7935 | } |
7936 | |
7937 | #[derive (Copy, Clone)] |
7938 | #[repr (C)] |
7939 | pub struct GMountOperation { |
7940 | pub parent_instance: gobject::GObject, |
7941 | pub priv_: *mut GMountOperationPrivate, |
7942 | } |
7943 | |
7944 | impl ::std::fmt::Debug for GMountOperation { |
7945 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7946 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GMountOperation @ {self:p}" )) |
7947 | .field("parent_instance" , &self.parent_instance) |
7948 | .field(name:"priv_" , &self.priv_) |
7949 | .finish() |
7950 | } |
7951 | } |
7952 | |
7953 | #[derive (Copy, Clone)] |
7954 | #[repr (C)] |
7955 | pub struct GNativeSocketAddress { |
7956 | pub parent_instance: GSocketAddress, |
7957 | pub priv_: *mut GNativeSocketAddressPrivate, |
7958 | } |
7959 | |
7960 | impl ::std::fmt::Debug for GNativeSocketAddress { |
7961 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7962 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNativeSocketAddress @ {self:p}" )) |
7963 | .field(name:"parent_instance" , &self.parent_instance) |
7964 | .finish() |
7965 | } |
7966 | } |
7967 | |
7968 | #[derive (Copy, Clone)] |
7969 | #[repr (C)] |
7970 | pub struct GNativeVolumeMonitor { |
7971 | pub parent_instance: GVolumeMonitor, |
7972 | } |
7973 | |
7974 | impl ::std::fmt::Debug for GNativeVolumeMonitor { |
7975 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7976 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNativeVolumeMonitor @ {self:p}" )) |
7977 | .field(name:"parent_instance" , &self.parent_instance) |
7978 | .finish() |
7979 | } |
7980 | } |
7981 | |
7982 | #[derive (Copy, Clone)] |
7983 | #[repr (C)] |
7984 | pub struct GNetworkAddress { |
7985 | pub parent_instance: gobject::GObject, |
7986 | pub priv_: *mut GNetworkAddressPrivate, |
7987 | } |
7988 | |
7989 | impl ::std::fmt::Debug for GNetworkAddress { |
7990 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
7991 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNetworkAddress @ {self:p}" )) |
7992 | .field(name:"parent_instance" , &self.parent_instance) |
7993 | .finish() |
7994 | } |
7995 | } |
7996 | |
7997 | #[derive (Copy, Clone)] |
7998 | #[repr (C)] |
7999 | pub struct GNetworkService { |
8000 | pub parent_instance: gobject::GObject, |
8001 | pub priv_: *mut GNetworkServicePrivate, |
8002 | } |
8003 | |
8004 | impl ::std::fmt::Debug for GNetworkService { |
8005 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8006 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GNetworkService @ {self:p}" )) |
8007 | .field(name:"parent_instance" , &self.parent_instance) |
8008 | .finish() |
8009 | } |
8010 | } |
8011 | |
8012 | #[repr (C)] |
8013 | pub struct GNotification { |
8014 | _data: [u8; 0], |
8015 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8016 | } |
8017 | |
8018 | impl ::std::fmt::Debug for GNotification { |
8019 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8020 | fDebugStruct<'_, '_>.debug_struct(&format!("GNotification @ {self:p}" )) |
8021 | .finish() |
8022 | } |
8023 | } |
8024 | |
8025 | #[derive (Copy, Clone)] |
8026 | #[repr (C)] |
8027 | pub struct GOutputStream { |
8028 | pub parent_instance: gobject::GObject, |
8029 | pub priv_: *mut GOutputStreamPrivate, |
8030 | } |
8031 | |
8032 | impl ::std::fmt::Debug for GOutputStream { |
8033 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8034 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GOutputStream @ {self:p}" )) |
8035 | .field(name:"parent_instance" , &self.parent_instance) |
8036 | .finish() |
8037 | } |
8038 | } |
8039 | |
8040 | #[derive (Copy, Clone)] |
8041 | #[repr (C)] |
8042 | pub struct GPermission { |
8043 | pub parent_instance: gobject::GObject, |
8044 | pub priv_: *mut GPermissionPrivate, |
8045 | } |
8046 | |
8047 | impl ::std::fmt::Debug for GPermission { |
8048 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8049 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GPermission @ {self:p}" )) |
8050 | .field(name:"parent_instance" , &self.parent_instance) |
8051 | .finish() |
8052 | } |
8053 | } |
8054 | |
8055 | #[repr (C)] |
8056 | pub struct GPropertyAction { |
8057 | _data: [u8; 0], |
8058 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8059 | } |
8060 | |
8061 | impl ::std::fmt::Debug for GPropertyAction { |
8062 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8063 | fDebugStruct<'_, '_>.debug_struct(&format!("GPropertyAction @ {self:p}" )) |
8064 | .finish() |
8065 | } |
8066 | } |
8067 | |
8068 | #[derive (Copy, Clone)] |
8069 | #[repr (C)] |
8070 | pub struct GProxyAddress { |
8071 | pub parent_instance: GInetSocketAddress, |
8072 | pub priv_: *mut GProxyAddressPrivate, |
8073 | } |
8074 | |
8075 | impl ::std::fmt::Debug for GProxyAddress { |
8076 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8077 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GProxyAddress @ {self:p}" )) |
8078 | .field(name:"parent_instance" , &self.parent_instance) |
8079 | .finish() |
8080 | } |
8081 | } |
8082 | |
8083 | #[derive (Copy, Clone)] |
8084 | #[repr (C)] |
8085 | pub struct GProxyAddressEnumerator { |
8086 | pub parent_instance: GSocketAddressEnumerator, |
8087 | pub priv_: *mut GProxyAddressEnumeratorPrivate, |
8088 | } |
8089 | |
8090 | impl ::std::fmt::Debug for GProxyAddressEnumerator { |
8091 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8092 | fDebugStruct<'_, '_>.debug_struct(&format!("GProxyAddressEnumerator @ {self:p}" )) |
8093 | .finish() |
8094 | } |
8095 | } |
8096 | |
8097 | #[derive (Copy, Clone)] |
8098 | #[repr (C)] |
8099 | pub struct GResolver { |
8100 | pub parent_instance: gobject::GObject, |
8101 | pub priv_: *mut GResolverPrivate, |
8102 | } |
8103 | |
8104 | impl ::std::fmt::Debug for GResolver { |
8105 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8106 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GResolver @ {self:p}" )) |
8107 | .field("parent_instance" , &self.parent_instance) |
8108 | .field(name:"priv_" , &self.priv_) |
8109 | .finish() |
8110 | } |
8111 | } |
8112 | |
8113 | #[derive (Copy, Clone)] |
8114 | #[repr (C)] |
8115 | pub struct GSettings { |
8116 | pub parent_instance: gobject::GObject, |
8117 | pub priv_: *mut GSettingsPrivate, |
8118 | } |
8119 | |
8120 | impl ::std::fmt::Debug for GSettings { |
8121 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8122 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSettings @ {self:p}" )) |
8123 | .field("parent_instance" , &self.parent_instance) |
8124 | .field(name:"priv_" , &self.priv_) |
8125 | .finish() |
8126 | } |
8127 | } |
8128 | |
8129 | #[derive (Copy, Clone)] |
8130 | #[repr (C)] |
8131 | pub struct GSettingsBackend { |
8132 | pub parent_instance: gobject::GObject, |
8133 | pub priv_: *mut GSettingsBackendPrivate, |
8134 | } |
8135 | |
8136 | impl ::std::fmt::Debug for GSettingsBackend { |
8137 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8138 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSettingsBackend @ {self:p}" )) |
8139 | .field(name:"parent_instance" , &self.parent_instance) |
8140 | .finish() |
8141 | } |
8142 | } |
8143 | |
8144 | #[repr (C)] |
8145 | pub struct GSimpleAction { |
8146 | _data: [u8; 0], |
8147 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8148 | } |
8149 | |
8150 | impl ::std::fmt::Debug for GSimpleAction { |
8151 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8152 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimpleAction @ {self:p}" )) |
8153 | .finish() |
8154 | } |
8155 | } |
8156 | |
8157 | #[derive (Copy, Clone)] |
8158 | #[repr (C)] |
8159 | pub struct GSimpleActionGroup { |
8160 | pub parent_instance: gobject::GObject, |
8161 | pub priv_: *mut GSimpleActionGroupPrivate, |
8162 | } |
8163 | |
8164 | impl ::std::fmt::Debug for GSimpleActionGroup { |
8165 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8166 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimpleActionGroup @ {self:p}" )) |
8167 | .finish() |
8168 | } |
8169 | } |
8170 | |
8171 | #[repr (C)] |
8172 | pub struct GSimpleAsyncResult { |
8173 | _data: [u8; 0], |
8174 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8175 | } |
8176 | |
8177 | impl ::std::fmt::Debug for GSimpleAsyncResult { |
8178 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8179 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimpleAsyncResult @ {self:p}" )) |
8180 | .finish() |
8181 | } |
8182 | } |
8183 | |
8184 | #[repr (C)] |
8185 | pub struct GSimpleIOStream { |
8186 | _data: [u8; 0], |
8187 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8188 | } |
8189 | |
8190 | impl ::std::fmt::Debug for GSimpleIOStream { |
8191 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8192 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimpleIOStream @ {self:p}" )) |
8193 | .finish() |
8194 | } |
8195 | } |
8196 | |
8197 | #[repr (C)] |
8198 | pub struct GSimplePermission { |
8199 | _data: [u8; 0], |
8200 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8201 | } |
8202 | |
8203 | impl ::std::fmt::Debug for GSimplePermission { |
8204 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8205 | fDebugStruct<'_, '_>.debug_struct(&format!("GSimplePermission @ {self:p}" )) |
8206 | .finish() |
8207 | } |
8208 | } |
8209 | |
8210 | #[derive (Copy, Clone)] |
8211 | #[repr (C)] |
8212 | pub struct GSimpleProxyResolver { |
8213 | pub parent_instance: gobject::GObject, |
8214 | pub priv_: *mut GSimpleProxyResolverPrivate, |
8215 | } |
8216 | |
8217 | impl ::std::fmt::Debug for GSimpleProxyResolver { |
8218 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8219 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSimpleProxyResolver @ {self:p}" )) |
8220 | .field(name:"parent_instance" , &self.parent_instance) |
8221 | .finish() |
8222 | } |
8223 | } |
8224 | |
8225 | #[derive (Copy, Clone)] |
8226 | #[repr (C)] |
8227 | pub struct GSocket { |
8228 | pub parent_instance: gobject::GObject, |
8229 | pub priv_: *mut GSocketPrivate, |
8230 | } |
8231 | |
8232 | impl ::std::fmt::Debug for GSocket { |
8233 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8234 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocket @ {self:p}" )) |
8235 | .field("parent_instance" , &self.parent_instance) |
8236 | .field(name:"priv_" , &self.priv_) |
8237 | .finish() |
8238 | } |
8239 | } |
8240 | |
8241 | #[derive (Copy, Clone)] |
8242 | #[repr (C)] |
8243 | pub struct GSocketAddress { |
8244 | pub parent_instance: gobject::GObject, |
8245 | } |
8246 | |
8247 | impl ::std::fmt::Debug for GSocketAddress { |
8248 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8249 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketAddress @ {self:p}" )) |
8250 | .field(name:"parent_instance" , &self.parent_instance) |
8251 | .finish() |
8252 | } |
8253 | } |
8254 | |
8255 | #[derive (Copy, Clone)] |
8256 | #[repr (C)] |
8257 | pub struct GSocketAddressEnumerator { |
8258 | pub parent_instance: gobject::GObject, |
8259 | } |
8260 | |
8261 | impl ::std::fmt::Debug for GSocketAddressEnumerator { |
8262 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8263 | fDebugStruct<'_, '_>.debug_struct(&format!("GSocketAddressEnumerator @ {self:p}" )) |
8264 | .finish() |
8265 | } |
8266 | } |
8267 | |
8268 | #[derive (Copy, Clone)] |
8269 | #[repr (C)] |
8270 | pub struct GSocketClient { |
8271 | pub parent_instance: gobject::GObject, |
8272 | pub priv_: *mut GSocketClientPrivate, |
8273 | } |
8274 | |
8275 | impl ::std::fmt::Debug for GSocketClient { |
8276 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8277 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketClient @ {self:p}" )) |
8278 | .field("parent_instance" , &self.parent_instance) |
8279 | .field(name:"priv_" , &self.priv_) |
8280 | .finish() |
8281 | } |
8282 | } |
8283 | |
8284 | #[derive (Copy, Clone)] |
8285 | #[repr (C)] |
8286 | pub struct GSocketConnection { |
8287 | pub parent_instance: GIOStream, |
8288 | pub priv_: *mut GSocketConnectionPrivate, |
8289 | } |
8290 | |
8291 | impl ::std::fmt::Debug for GSocketConnection { |
8292 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8293 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketConnection @ {self:p}" )) |
8294 | .field("parent_instance" , &self.parent_instance) |
8295 | .field(name:"priv_" , &self.priv_) |
8296 | .finish() |
8297 | } |
8298 | } |
8299 | |
8300 | #[derive (Copy, Clone)] |
8301 | #[repr (C)] |
8302 | pub struct GSocketControlMessage { |
8303 | pub parent_instance: gobject::GObject, |
8304 | pub priv_: *mut GSocketControlMessagePrivate, |
8305 | } |
8306 | |
8307 | impl ::std::fmt::Debug for GSocketControlMessage { |
8308 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8309 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketControlMessage @ {self:p}" )) |
8310 | .field("parent_instance" , &self.parent_instance) |
8311 | .field(name:"priv_" , &self.priv_) |
8312 | .finish() |
8313 | } |
8314 | } |
8315 | |
8316 | #[derive (Copy, Clone)] |
8317 | #[repr (C)] |
8318 | pub struct GSocketListener { |
8319 | pub parent_instance: gobject::GObject, |
8320 | pub priv_: *mut GSocketListenerPrivate, |
8321 | } |
8322 | |
8323 | impl ::std::fmt::Debug for GSocketListener { |
8324 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8325 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketListener @ {self:p}" )) |
8326 | .field("parent_instance" , &self.parent_instance) |
8327 | .field(name:"priv_" , &self.priv_) |
8328 | .finish() |
8329 | } |
8330 | } |
8331 | |
8332 | #[derive (Copy, Clone)] |
8333 | #[repr (C)] |
8334 | pub struct GSocketService { |
8335 | pub parent_instance: GSocketListener, |
8336 | pub priv_: *mut GSocketServicePrivate, |
8337 | } |
8338 | |
8339 | impl ::std::fmt::Debug for GSocketService { |
8340 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8341 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GSocketService @ {self:p}" )) |
8342 | .field("parent_instance" , &self.parent_instance) |
8343 | .field(name:"priv_" , &self.priv_) |
8344 | .finish() |
8345 | } |
8346 | } |
8347 | |
8348 | #[repr (C)] |
8349 | pub struct GSubprocess { |
8350 | _data: [u8; 0], |
8351 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8352 | } |
8353 | |
8354 | impl ::std::fmt::Debug for GSubprocess { |
8355 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8356 | f.debug_struct(&format!("GSubprocess @ {self:p}" )).finish() |
8357 | } |
8358 | } |
8359 | |
8360 | #[repr (C)] |
8361 | pub struct GSubprocessLauncher { |
8362 | _data: [u8; 0], |
8363 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8364 | } |
8365 | |
8366 | impl ::std::fmt::Debug for GSubprocessLauncher { |
8367 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8368 | fDebugStruct<'_, '_>.debug_struct(&format!("GSubprocessLauncher @ {self:p}" )) |
8369 | .finish() |
8370 | } |
8371 | } |
8372 | |
8373 | #[repr (C)] |
8374 | pub struct GTask { |
8375 | _data: [u8; 0], |
8376 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8377 | } |
8378 | |
8379 | impl ::std::fmt::Debug for GTask { |
8380 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8381 | f.debug_struct(&format!("GTask @ {self:p}" )).finish() |
8382 | } |
8383 | } |
8384 | |
8385 | #[derive (Copy, Clone)] |
8386 | #[repr (C)] |
8387 | pub struct GTcpConnection { |
8388 | pub parent_instance: GSocketConnection, |
8389 | pub priv_: *mut GTcpConnectionPrivate, |
8390 | } |
8391 | |
8392 | impl ::std::fmt::Debug for GTcpConnection { |
8393 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8394 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTcpConnection @ {self:p}" )) |
8395 | .field("parent_instance" , &self.parent_instance) |
8396 | .field(name:"priv_" , &self.priv_) |
8397 | .finish() |
8398 | } |
8399 | } |
8400 | |
8401 | #[derive (Copy, Clone)] |
8402 | #[repr (C)] |
8403 | pub struct GTcpWrapperConnection { |
8404 | pub parent_instance: GTcpConnection, |
8405 | pub priv_: *mut GTcpWrapperConnectionPrivate, |
8406 | } |
8407 | |
8408 | impl ::std::fmt::Debug for GTcpWrapperConnection { |
8409 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8410 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTcpWrapperConnection @ {self:p}" )) |
8411 | .field("parent_instance" , &self.parent_instance) |
8412 | .field(name:"priv_" , &self.priv_) |
8413 | .finish() |
8414 | } |
8415 | } |
8416 | |
8417 | #[repr (C)] |
8418 | pub struct GTestDBus { |
8419 | _data: [u8; 0], |
8420 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8421 | } |
8422 | |
8423 | impl ::std::fmt::Debug for GTestDBus { |
8424 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8425 | f.debug_struct(&format!("GTestDBus @ {self:p}" )).finish() |
8426 | } |
8427 | } |
8428 | |
8429 | #[repr (C)] |
8430 | pub struct GThemedIcon { |
8431 | _data: [u8; 0], |
8432 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8433 | } |
8434 | |
8435 | impl ::std::fmt::Debug for GThemedIcon { |
8436 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8437 | f.debug_struct(&format!("GThemedIcon @ {self:p}" )).finish() |
8438 | } |
8439 | } |
8440 | |
8441 | #[derive (Copy, Clone)] |
8442 | #[repr (C)] |
8443 | pub struct GThreadedSocketService { |
8444 | pub parent_instance: GSocketService, |
8445 | pub priv_: *mut GThreadedSocketServicePrivate, |
8446 | } |
8447 | |
8448 | impl ::std::fmt::Debug for GThreadedSocketService { |
8449 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8450 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GThreadedSocketService @ {self:p}" )) |
8451 | .field("parent_instance" , &self.parent_instance) |
8452 | .field(name:"priv_" , &self.priv_) |
8453 | .finish() |
8454 | } |
8455 | } |
8456 | |
8457 | #[derive (Copy, Clone)] |
8458 | #[repr (C)] |
8459 | pub struct GTlsCertificate { |
8460 | pub parent_instance: gobject::GObject, |
8461 | pub priv_: *mut GTlsCertificatePrivate, |
8462 | } |
8463 | |
8464 | impl ::std::fmt::Debug for GTlsCertificate { |
8465 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8466 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsCertificate @ {self:p}" )) |
8467 | .field("parent_instance" , &self.parent_instance) |
8468 | .field(name:"priv_" , &self.priv_) |
8469 | .finish() |
8470 | } |
8471 | } |
8472 | |
8473 | #[derive (Copy, Clone)] |
8474 | #[repr (C)] |
8475 | pub struct GTlsConnection { |
8476 | pub parent_instance: GIOStream, |
8477 | pub priv_: *mut GTlsConnectionPrivate, |
8478 | } |
8479 | |
8480 | impl ::std::fmt::Debug for GTlsConnection { |
8481 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8482 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsConnection @ {self:p}" )) |
8483 | .field("parent_instance" , &self.parent_instance) |
8484 | .field(name:"priv_" , &self.priv_) |
8485 | .finish() |
8486 | } |
8487 | } |
8488 | |
8489 | #[derive (Copy, Clone)] |
8490 | #[repr (C)] |
8491 | pub struct GTlsDatabase { |
8492 | pub parent_instance: gobject::GObject, |
8493 | pub priv_: *mut GTlsDatabasePrivate, |
8494 | } |
8495 | |
8496 | impl ::std::fmt::Debug for GTlsDatabase { |
8497 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8498 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsDatabase @ {self:p}" )) |
8499 | .field("parent_instance" , &self.parent_instance) |
8500 | .field(name:"priv_" , &self.priv_) |
8501 | .finish() |
8502 | } |
8503 | } |
8504 | |
8505 | #[derive (Copy, Clone)] |
8506 | #[repr (C)] |
8507 | pub struct GTlsInteraction { |
8508 | pub parent_instance: gobject::GObject, |
8509 | pub priv_: *mut GTlsInteractionPrivate, |
8510 | } |
8511 | |
8512 | impl ::std::fmt::Debug for GTlsInteraction { |
8513 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8514 | fDebugStruct<'_, '_>.debug_struct(&format!("GTlsInteraction @ {self:p}" )) |
8515 | .finish() |
8516 | } |
8517 | } |
8518 | |
8519 | #[derive (Copy, Clone)] |
8520 | #[repr (C)] |
8521 | pub struct GTlsPassword { |
8522 | pub parent_instance: gobject::GObject, |
8523 | pub priv_: *mut GTlsPasswordPrivate, |
8524 | } |
8525 | |
8526 | impl ::std::fmt::Debug for GTlsPassword { |
8527 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8528 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GTlsPassword @ {self:p}" )) |
8529 | .field("parent_instance" , &self.parent_instance) |
8530 | .field(name:"priv_" , &self.priv_) |
8531 | .finish() |
8532 | } |
8533 | } |
8534 | |
8535 | #[derive (Copy, Clone)] |
8536 | #[repr (C)] |
8537 | pub struct GUnixConnection { |
8538 | pub parent_instance: GSocketConnection, |
8539 | pub priv_: *mut GUnixConnectionPrivate, |
8540 | } |
8541 | |
8542 | impl ::std::fmt::Debug for GUnixConnection { |
8543 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8544 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixConnection @ {self:p}" )) |
8545 | .field("parent_instance" , &self.parent_instance) |
8546 | .field(name:"priv_" , &self.priv_) |
8547 | .finish() |
8548 | } |
8549 | } |
8550 | |
8551 | #[derive (Copy, Clone)] |
8552 | #[repr (C)] |
8553 | pub struct GUnixCredentialsMessage { |
8554 | pub parent_instance: GSocketControlMessage, |
8555 | pub priv_: *mut GUnixCredentialsMessagePrivate, |
8556 | } |
8557 | |
8558 | impl ::std::fmt::Debug for GUnixCredentialsMessage { |
8559 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8560 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixCredentialsMessage @ {self:p}" )) |
8561 | .field("parent_instance" , &self.parent_instance) |
8562 | .field(name:"priv_" , &self.priv_) |
8563 | .finish() |
8564 | } |
8565 | } |
8566 | |
8567 | #[derive (Copy, Clone)] |
8568 | #[repr (C)] |
8569 | pub struct GUnixFDList { |
8570 | pub parent_instance: gobject::GObject, |
8571 | pub priv_: *mut GUnixFDListPrivate, |
8572 | } |
8573 | |
8574 | impl ::std::fmt::Debug for GUnixFDList { |
8575 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8576 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixFDList @ {self:p}" )) |
8577 | .field("parent_instance" , &self.parent_instance) |
8578 | .field(name:"priv_" , &self.priv_) |
8579 | .finish() |
8580 | } |
8581 | } |
8582 | |
8583 | #[derive (Copy, Clone)] |
8584 | #[repr (C)] |
8585 | pub struct GUnixFDMessage { |
8586 | pub parent_instance: GSocketControlMessage, |
8587 | pub priv_: *mut GUnixFDMessagePrivate, |
8588 | } |
8589 | |
8590 | impl ::std::fmt::Debug for GUnixFDMessage { |
8591 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8592 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixFDMessage @ {self:p}" )) |
8593 | .field("parent_instance" , &self.parent_instance) |
8594 | .field(name:"priv_" , &self.priv_) |
8595 | .finish() |
8596 | } |
8597 | } |
8598 | |
8599 | #[derive (Copy, Clone)] |
8600 | #[repr (C)] |
8601 | pub struct GUnixInputStream { |
8602 | pub parent_instance: GInputStream, |
8603 | pub priv_: *mut GUnixInputStreamPrivate, |
8604 | } |
8605 | |
8606 | impl ::std::fmt::Debug for GUnixInputStream { |
8607 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8608 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixInputStream @ {self:p}" )) |
8609 | .field(name:"parent_instance" , &self.parent_instance) |
8610 | .finish() |
8611 | } |
8612 | } |
8613 | |
8614 | #[repr (C)] |
8615 | pub struct GUnixMountMonitor { |
8616 | _data: [u8; 0], |
8617 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8618 | } |
8619 | |
8620 | impl ::std::fmt::Debug for GUnixMountMonitor { |
8621 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8622 | fDebugStruct<'_, '_>.debug_struct(&format!("GUnixMountMonitor @ {self:p}" )) |
8623 | .finish() |
8624 | } |
8625 | } |
8626 | |
8627 | #[derive (Copy, Clone)] |
8628 | #[repr (C)] |
8629 | pub struct GUnixOutputStream { |
8630 | pub parent_instance: GOutputStream, |
8631 | pub priv_: *mut GUnixOutputStreamPrivate, |
8632 | } |
8633 | |
8634 | impl ::std::fmt::Debug for GUnixOutputStream { |
8635 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8636 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixOutputStream @ {self:p}" )) |
8637 | .field(name:"parent_instance" , &self.parent_instance) |
8638 | .finish() |
8639 | } |
8640 | } |
8641 | |
8642 | #[derive (Copy, Clone)] |
8643 | #[repr (C)] |
8644 | pub struct GUnixSocketAddress { |
8645 | pub parent_instance: GSocketAddress, |
8646 | pub priv_: *mut GUnixSocketAddressPrivate, |
8647 | } |
8648 | |
8649 | impl ::std::fmt::Debug for GUnixSocketAddress { |
8650 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8651 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GUnixSocketAddress @ {self:p}" )) |
8652 | .field(name:"parent_instance" , &self.parent_instance) |
8653 | .finish() |
8654 | } |
8655 | } |
8656 | |
8657 | #[derive (Copy, Clone)] |
8658 | #[repr (C)] |
8659 | pub struct GVfs { |
8660 | pub parent_instance: gobject::GObject, |
8661 | } |
8662 | |
8663 | impl ::std::fmt::Debug for GVfs { |
8664 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8665 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GVfs @ {self:p}" )) |
8666 | .field(name:"parent_instance" , &self.parent_instance) |
8667 | .finish() |
8668 | } |
8669 | } |
8670 | |
8671 | #[derive (Copy, Clone)] |
8672 | #[repr (C)] |
8673 | pub struct GVolumeMonitor { |
8674 | pub parent_instance: gobject::GObject, |
8675 | pub priv_: gpointer, |
8676 | } |
8677 | |
8678 | impl ::std::fmt::Debug for GVolumeMonitor { |
8679 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8680 | f&mut DebugStruct<'_, '_>.debug_struct(&format!("GVolumeMonitor @ {self:p}" )) |
8681 | .field(name:"parent_instance" , &self.parent_instance) |
8682 | .finish() |
8683 | } |
8684 | } |
8685 | |
8686 | #[repr (C)] |
8687 | pub struct GZlibCompressor { |
8688 | _data: [u8; 0], |
8689 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8690 | } |
8691 | |
8692 | impl ::std::fmt::Debug for GZlibCompressor { |
8693 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8694 | fDebugStruct<'_, '_>.debug_struct(&format!("GZlibCompressor @ {self:p}" )) |
8695 | .finish() |
8696 | } |
8697 | } |
8698 | |
8699 | #[repr (C)] |
8700 | pub struct GZlibDecompressor { |
8701 | _data: [u8; 0], |
8702 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8703 | } |
8704 | |
8705 | impl ::std::fmt::Debug for GZlibDecompressor { |
8706 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8707 | fDebugStruct<'_, '_>.debug_struct(&format!("GZlibDecompressor @ {self:p}" )) |
8708 | .finish() |
8709 | } |
8710 | } |
8711 | |
8712 | // Interfaces |
8713 | #[repr (C)] |
8714 | pub struct GAction { |
8715 | _data: [u8; 0], |
8716 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8717 | } |
8718 | |
8719 | impl ::std::fmt::Debug for GAction { |
8720 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8721 | write!(f, "GAction @ {self:p}" ) |
8722 | } |
8723 | } |
8724 | |
8725 | #[repr (C)] |
8726 | pub struct GActionGroup { |
8727 | _data: [u8; 0], |
8728 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8729 | } |
8730 | |
8731 | impl ::std::fmt::Debug for GActionGroup { |
8732 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8733 | write!(f, "GActionGroup @ {self:p}" ) |
8734 | } |
8735 | } |
8736 | |
8737 | #[repr (C)] |
8738 | pub struct GActionMap { |
8739 | _data: [u8; 0], |
8740 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8741 | } |
8742 | |
8743 | impl ::std::fmt::Debug for GActionMap { |
8744 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8745 | write!(f, "GActionMap @ {self:p}" ) |
8746 | } |
8747 | } |
8748 | |
8749 | #[repr (C)] |
8750 | pub struct GAppInfo { |
8751 | _data: [u8; 0], |
8752 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8753 | } |
8754 | |
8755 | impl ::std::fmt::Debug for GAppInfo { |
8756 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8757 | write!(f, "GAppInfo @ {self:p}" ) |
8758 | } |
8759 | } |
8760 | |
8761 | #[repr (C)] |
8762 | pub struct GAsyncInitable { |
8763 | _data: [u8; 0], |
8764 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8765 | } |
8766 | |
8767 | impl ::std::fmt::Debug for GAsyncInitable { |
8768 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8769 | write!(f, "GAsyncInitable @ {self:p}" ) |
8770 | } |
8771 | } |
8772 | |
8773 | #[repr (C)] |
8774 | pub struct GAsyncResult { |
8775 | _data: [u8; 0], |
8776 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8777 | } |
8778 | |
8779 | impl ::std::fmt::Debug for GAsyncResult { |
8780 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8781 | write!(f, "GAsyncResult @ {self:p}" ) |
8782 | } |
8783 | } |
8784 | |
8785 | #[repr (C)] |
8786 | pub struct GConverter { |
8787 | _data: [u8; 0], |
8788 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8789 | } |
8790 | |
8791 | impl ::std::fmt::Debug for GConverter { |
8792 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8793 | write!(f, "GConverter @ {self:p}" ) |
8794 | } |
8795 | } |
8796 | |
8797 | #[repr (C)] |
8798 | pub struct GDBusInterface { |
8799 | _data: [u8; 0], |
8800 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8801 | } |
8802 | |
8803 | impl ::std::fmt::Debug for GDBusInterface { |
8804 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8805 | write!(f, "GDBusInterface @ {self:p}" ) |
8806 | } |
8807 | } |
8808 | |
8809 | #[repr (C)] |
8810 | pub struct GDBusObject { |
8811 | _data: [u8; 0], |
8812 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8813 | } |
8814 | |
8815 | impl ::std::fmt::Debug for GDBusObject { |
8816 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8817 | write!(f, "GDBusObject @ {self:p}" ) |
8818 | } |
8819 | } |
8820 | |
8821 | #[repr (C)] |
8822 | pub struct GDBusObjectManager { |
8823 | _data: [u8; 0], |
8824 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8825 | } |
8826 | |
8827 | impl ::std::fmt::Debug for GDBusObjectManager { |
8828 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8829 | write!(f, "GDBusObjectManager @ {self:p}" ) |
8830 | } |
8831 | } |
8832 | |
8833 | #[repr (C)] |
8834 | pub struct GDatagramBased { |
8835 | _data: [u8; 0], |
8836 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8837 | } |
8838 | |
8839 | impl ::std::fmt::Debug for GDatagramBased { |
8840 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8841 | write!(f, "GDatagramBased @ {self:p}" ) |
8842 | } |
8843 | } |
8844 | |
8845 | #[repr (C)] |
8846 | pub struct GDebugController { |
8847 | _data: [u8; 0], |
8848 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8849 | } |
8850 | |
8851 | impl ::std::fmt::Debug for GDebugController { |
8852 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8853 | write!(f, "GDebugController @ {self:p}" ) |
8854 | } |
8855 | } |
8856 | |
8857 | #[repr (C)] |
8858 | pub struct GDesktopAppInfoLookup { |
8859 | _data: [u8; 0], |
8860 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8861 | } |
8862 | |
8863 | impl ::std::fmt::Debug for GDesktopAppInfoLookup { |
8864 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8865 | write!(f, "GDesktopAppInfoLookup @ {self:p}" ) |
8866 | } |
8867 | } |
8868 | |
8869 | #[repr (C)] |
8870 | pub struct GDrive { |
8871 | _data: [u8; 0], |
8872 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8873 | } |
8874 | |
8875 | impl ::std::fmt::Debug for GDrive { |
8876 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8877 | write!(f, "GDrive @ {self:p}" ) |
8878 | } |
8879 | } |
8880 | |
8881 | #[repr (C)] |
8882 | pub struct GDtlsClientConnection { |
8883 | _data: [u8; 0], |
8884 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8885 | } |
8886 | |
8887 | impl ::std::fmt::Debug for GDtlsClientConnection { |
8888 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8889 | write!(f, "GDtlsClientConnection @ {self:p}" ) |
8890 | } |
8891 | } |
8892 | |
8893 | #[repr (C)] |
8894 | pub struct GDtlsConnection { |
8895 | _data: [u8; 0], |
8896 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8897 | } |
8898 | |
8899 | impl ::std::fmt::Debug for GDtlsConnection { |
8900 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8901 | write!(f, "GDtlsConnection @ {self:p}" ) |
8902 | } |
8903 | } |
8904 | |
8905 | #[repr (C)] |
8906 | pub struct GDtlsServerConnection { |
8907 | _data: [u8; 0], |
8908 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8909 | } |
8910 | |
8911 | impl ::std::fmt::Debug for GDtlsServerConnection { |
8912 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8913 | write!(f, "GDtlsServerConnection @ {self:p}" ) |
8914 | } |
8915 | } |
8916 | |
8917 | #[repr (C)] |
8918 | pub struct GFile { |
8919 | _data: [u8; 0], |
8920 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8921 | } |
8922 | |
8923 | impl ::std::fmt::Debug for GFile { |
8924 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8925 | write!(f, "GFile @ {self:p}" ) |
8926 | } |
8927 | } |
8928 | |
8929 | #[repr (C)] |
8930 | pub struct GFileDescriptorBased { |
8931 | _data: [u8; 0], |
8932 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8933 | } |
8934 | |
8935 | impl ::std::fmt::Debug for GFileDescriptorBased { |
8936 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8937 | write!(f, "GFileDescriptorBased @ {self:p}" ) |
8938 | } |
8939 | } |
8940 | |
8941 | #[repr (C)] |
8942 | pub struct GIcon { |
8943 | _data: [u8; 0], |
8944 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8945 | } |
8946 | |
8947 | impl ::std::fmt::Debug for GIcon { |
8948 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8949 | write!(f, "GIcon @ {self:p}" ) |
8950 | } |
8951 | } |
8952 | |
8953 | #[repr (C)] |
8954 | pub struct GInitable { |
8955 | _data: [u8; 0], |
8956 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8957 | } |
8958 | |
8959 | impl ::std::fmt::Debug for GInitable { |
8960 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8961 | write!(f, "GInitable @ {self:p}" ) |
8962 | } |
8963 | } |
8964 | |
8965 | #[repr (C)] |
8966 | pub struct GListModel { |
8967 | _data: [u8; 0], |
8968 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8969 | } |
8970 | |
8971 | impl ::std::fmt::Debug for GListModel { |
8972 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8973 | write!(f, "GListModel @ {self:p}" ) |
8974 | } |
8975 | } |
8976 | |
8977 | #[repr (C)] |
8978 | pub struct GLoadableIcon { |
8979 | _data: [u8; 0], |
8980 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8981 | } |
8982 | |
8983 | impl ::std::fmt::Debug for GLoadableIcon { |
8984 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8985 | write!(f, "GLoadableIcon @ {self:p}" ) |
8986 | } |
8987 | } |
8988 | |
8989 | #[repr (C)] |
8990 | pub struct GMemoryMonitor { |
8991 | _data: [u8; 0], |
8992 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
8993 | } |
8994 | |
8995 | impl ::std::fmt::Debug for GMemoryMonitor { |
8996 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
8997 | write!(f, "GMemoryMonitor @ {self:p}" ) |
8998 | } |
8999 | } |
9000 | |
9001 | #[repr (C)] |
9002 | pub struct GMount { |
9003 | _data: [u8; 0], |
9004 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9005 | } |
9006 | |
9007 | impl ::std::fmt::Debug for GMount { |
9008 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9009 | write!(f, "GMount @ {self:p}" ) |
9010 | } |
9011 | } |
9012 | |
9013 | #[repr (C)] |
9014 | pub struct GNetworkMonitor { |
9015 | _data: [u8; 0], |
9016 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9017 | } |
9018 | |
9019 | impl ::std::fmt::Debug for GNetworkMonitor { |
9020 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9021 | write!(f, "GNetworkMonitor @ {self:p}" ) |
9022 | } |
9023 | } |
9024 | |
9025 | #[repr (C)] |
9026 | pub struct GPollableInputStream { |
9027 | _data: [u8; 0], |
9028 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9029 | } |
9030 | |
9031 | impl ::std::fmt::Debug for GPollableInputStream { |
9032 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9033 | write!(f, "GPollableInputStream @ {self:p}" ) |
9034 | } |
9035 | } |
9036 | |
9037 | #[repr (C)] |
9038 | pub struct GPollableOutputStream { |
9039 | _data: [u8; 0], |
9040 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9041 | } |
9042 | |
9043 | impl ::std::fmt::Debug for GPollableOutputStream { |
9044 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9045 | write!(f, "GPollableOutputStream @ {self:p}" ) |
9046 | } |
9047 | } |
9048 | |
9049 | #[repr (C)] |
9050 | pub struct GPowerProfileMonitor { |
9051 | _data: [u8; 0], |
9052 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9053 | } |
9054 | |
9055 | impl ::std::fmt::Debug for GPowerProfileMonitor { |
9056 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9057 | write!(f, "GPowerProfileMonitor @ {self:p}" ) |
9058 | } |
9059 | } |
9060 | |
9061 | #[repr (C)] |
9062 | pub struct GProxy { |
9063 | _data: [u8; 0], |
9064 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9065 | } |
9066 | |
9067 | impl ::std::fmt::Debug for GProxy { |
9068 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9069 | write!(f, "GProxy @ {self:p}" ) |
9070 | } |
9071 | } |
9072 | |
9073 | #[repr (C)] |
9074 | pub struct GProxyResolver { |
9075 | _data: [u8; 0], |
9076 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9077 | } |
9078 | |
9079 | impl ::std::fmt::Debug for GProxyResolver { |
9080 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9081 | write!(f, "GProxyResolver @ {self:p}" ) |
9082 | } |
9083 | } |
9084 | |
9085 | #[repr (C)] |
9086 | pub struct GRemoteActionGroup { |
9087 | _data: [u8; 0], |
9088 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9089 | } |
9090 | |
9091 | impl ::std::fmt::Debug for GRemoteActionGroup { |
9092 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9093 | write!(f, "GRemoteActionGroup @ {self:p}" ) |
9094 | } |
9095 | } |
9096 | |
9097 | #[repr (C)] |
9098 | pub struct GSeekable { |
9099 | _data: [u8; 0], |
9100 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9101 | } |
9102 | |
9103 | impl ::std::fmt::Debug for GSeekable { |
9104 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9105 | write!(f, "GSeekable @ {self:p}" ) |
9106 | } |
9107 | } |
9108 | |
9109 | #[repr (C)] |
9110 | pub struct GSocketConnectable { |
9111 | _data: [u8; 0], |
9112 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9113 | } |
9114 | |
9115 | impl ::std::fmt::Debug for GSocketConnectable { |
9116 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9117 | write!(f, "GSocketConnectable @ {self:p}" ) |
9118 | } |
9119 | } |
9120 | |
9121 | #[repr (C)] |
9122 | pub struct GTlsBackend { |
9123 | _data: [u8; 0], |
9124 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9125 | } |
9126 | |
9127 | impl ::std::fmt::Debug for GTlsBackend { |
9128 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9129 | write!(f, "GTlsBackend @ {self:p}" ) |
9130 | } |
9131 | } |
9132 | |
9133 | #[repr (C)] |
9134 | pub struct GTlsClientConnection { |
9135 | _data: [u8; 0], |
9136 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9137 | } |
9138 | |
9139 | impl ::std::fmt::Debug for GTlsClientConnection { |
9140 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9141 | write!(f, "GTlsClientConnection @ {self:p}" ) |
9142 | } |
9143 | } |
9144 | |
9145 | #[repr (C)] |
9146 | pub struct GTlsFileDatabase { |
9147 | _data: [u8; 0], |
9148 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9149 | } |
9150 | |
9151 | impl ::std::fmt::Debug for GTlsFileDatabase { |
9152 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9153 | write!(f, "GTlsFileDatabase @ {self:p}" ) |
9154 | } |
9155 | } |
9156 | |
9157 | #[repr (C)] |
9158 | pub struct GTlsServerConnection { |
9159 | _data: [u8; 0], |
9160 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9161 | } |
9162 | |
9163 | impl ::std::fmt::Debug for GTlsServerConnection { |
9164 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9165 | write!(f, "GTlsServerConnection @ {self:p}" ) |
9166 | } |
9167 | } |
9168 | |
9169 | #[repr (C)] |
9170 | pub struct GVolume { |
9171 | _data: [u8; 0], |
9172 | _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, |
9173 | } |
9174 | |
9175 | impl ::std::fmt::Debug for GVolume { |
9176 | fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { |
9177 | write!(f, "GVolume @ {self:p}" ) |
9178 | } |
9179 | } |
9180 | |
9181 | #[link (name = "gio-2.0" )] |
9182 | extern "C" { |
9183 | |
9184 | //========================================================================= |
9185 | // GBusType |
9186 | //========================================================================= |
9187 | pub fn g_bus_type_get_type() -> GType; |
9188 | |
9189 | //========================================================================= |
9190 | // GConverterResult |
9191 | //========================================================================= |
9192 | pub fn g_converter_result_get_type() -> GType; |
9193 | |
9194 | //========================================================================= |
9195 | // GCredentialsType |
9196 | //========================================================================= |
9197 | pub fn g_credentials_type_get_type() -> GType; |
9198 | |
9199 | //========================================================================= |
9200 | // GDBusError |
9201 | //========================================================================= |
9202 | pub fn g_dbus_error_get_type() -> GType; |
9203 | pub fn g_dbus_error_encode_gerror(error: *const glib::GError) -> *mut c_char; |
9204 | pub fn g_dbus_error_get_remote_error(error: *const glib::GError) -> *mut c_char; |
9205 | pub fn g_dbus_error_is_remote_error(error: *const glib::GError) -> gboolean; |
9206 | pub fn g_dbus_error_new_for_dbus_error( |
9207 | dbus_error_name: *const c_char, |
9208 | dbus_error_message: *const c_char, |
9209 | ) -> *mut glib::GError; |
9210 | pub fn g_dbus_error_quark() -> glib::GQuark; |
9211 | pub fn g_dbus_error_register_error( |
9212 | error_domain: glib::GQuark, |
9213 | error_code: c_int, |
9214 | dbus_error_name: *const c_char, |
9215 | ) -> gboolean; |
9216 | pub fn g_dbus_error_register_error_domain( |
9217 | error_domain_quark_name: *const c_char, |
9218 | quark_volatile: *mut size_t, |
9219 | entries: *const GDBusErrorEntry, |
9220 | num_entries: c_uint, |
9221 | ); |
9222 | pub fn g_dbus_error_set_dbus_error( |
9223 | error: *mut *mut glib::GError, |
9224 | dbus_error_name: *const c_char, |
9225 | dbus_error_message: *const c_char, |
9226 | format: *const c_char, |
9227 | ... |
9228 | ); |
9229 | //pub fn g_dbus_error_set_dbus_error_valist(error: *mut *mut glib::GError, dbus_error_name: *const c_char, dbus_error_message: *const c_char, format: *const c_char, var_args: /*Unimplemented*/va_list); |
9230 | pub fn g_dbus_error_strip_remote_error(error: *mut glib::GError) -> gboolean; |
9231 | pub fn g_dbus_error_unregister_error( |
9232 | error_domain: glib::GQuark, |
9233 | error_code: c_int, |
9234 | dbus_error_name: *const c_char, |
9235 | ) -> gboolean; |
9236 | |
9237 | //========================================================================= |
9238 | // GDBusMessageByteOrder |
9239 | //========================================================================= |
9240 | pub fn g_dbus_message_byte_order_get_type() -> GType; |
9241 | |
9242 | //========================================================================= |
9243 | // GDBusMessageHeaderField |
9244 | //========================================================================= |
9245 | pub fn g_dbus_message_header_field_get_type() -> GType; |
9246 | |
9247 | //========================================================================= |
9248 | // GDBusMessageType |
9249 | //========================================================================= |
9250 | pub fn g_dbus_message_type_get_type() -> GType; |
9251 | |
9252 | //========================================================================= |
9253 | // GDataStreamByteOrder |
9254 | //========================================================================= |
9255 | pub fn g_data_stream_byte_order_get_type() -> GType; |
9256 | |
9257 | //========================================================================= |
9258 | // GDataStreamNewlineType |
9259 | //========================================================================= |
9260 | pub fn g_data_stream_newline_type_get_type() -> GType; |
9261 | |
9262 | //========================================================================= |
9263 | // GDriveStartStopType |
9264 | //========================================================================= |
9265 | pub fn g_drive_start_stop_type_get_type() -> GType; |
9266 | |
9267 | //========================================================================= |
9268 | // GEmblemOrigin |
9269 | //========================================================================= |
9270 | pub fn g_emblem_origin_get_type() -> GType; |
9271 | |
9272 | //========================================================================= |
9273 | // GFileAttributeStatus |
9274 | //========================================================================= |
9275 | pub fn g_file_attribute_status_get_type() -> GType; |
9276 | |
9277 | //========================================================================= |
9278 | // GFileAttributeType |
9279 | //========================================================================= |
9280 | pub fn g_file_attribute_type_get_type() -> GType; |
9281 | |
9282 | //========================================================================= |
9283 | // GFileMonitorEvent |
9284 | //========================================================================= |
9285 | pub fn g_file_monitor_event_get_type() -> GType; |
9286 | |
9287 | //========================================================================= |
9288 | // GFileType |
9289 | //========================================================================= |
9290 | pub fn g_file_type_get_type() -> GType; |
9291 | |
9292 | //========================================================================= |
9293 | // GFilesystemPreviewType |
9294 | //========================================================================= |
9295 | pub fn g_filesystem_preview_type_get_type() -> GType; |
9296 | |
9297 | //========================================================================= |
9298 | // GIOErrorEnum |
9299 | //========================================================================= |
9300 | pub fn g_io_error_enum_get_type() -> GType; |
9301 | |
9302 | //========================================================================= |
9303 | // GIOModuleScopeFlags |
9304 | //========================================================================= |
9305 | pub fn g_io_module_scope_flags_get_type() -> GType; |
9306 | |
9307 | //========================================================================= |
9308 | // GMemoryMonitorWarningLevel |
9309 | //========================================================================= |
9310 | #[cfg (feature = "v2_64" )] |
9311 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
9312 | pub fn g_memory_monitor_warning_level_get_type() -> GType; |
9313 | |
9314 | //========================================================================= |
9315 | // GMountOperationResult |
9316 | //========================================================================= |
9317 | pub fn g_mount_operation_result_get_type() -> GType; |
9318 | |
9319 | //========================================================================= |
9320 | // GNetworkConnectivity |
9321 | //========================================================================= |
9322 | pub fn g_network_connectivity_get_type() -> GType; |
9323 | |
9324 | //========================================================================= |
9325 | // GNotificationPriority |
9326 | //========================================================================= |
9327 | pub fn g_notification_priority_get_type() -> GType; |
9328 | |
9329 | //========================================================================= |
9330 | // GPasswordSave |
9331 | //========================================================================= |
9332 | pub fn g_password_save_get_type() -> GType; |
9333 | |
9334 | //========================================================================= |
9335 | // GPollableReturn |
9336 | //========================================================================= |
9337 | #[cfg (feature = "v2_60" )] |
9338 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
9339 | pub fn g_pollable_return_get_type() -> GType; |
9340 | |
9341 | //========================================================================= |
9342 | // GResolverError |
9343 | //========================================================================= |
9344 | pub fn g_resolver_error_get_type() -> GType; |
9345 | pub fn g_resolver_error_quark() -> glib::GQuark; |
9346 | |
9347 | //========================================================================= |
9348 | // GResolverRecordType |
9349 | //========================================================================= |
9350 | pub fn g_resolver_record_type_get_type() -> GType; |
9351 | |
9352 | //========================================================================= |
9353 | // GResourceError |
9354 | //========================================================================= |
9355 | pub fn g_resource_error_get_type() -> GType; |
9356 | pub fn g_resource_error_quark() -> glib::GQuark; |
9357 | |
9358 | //========================================================================= |
9359 | // GSocketClientEvent |
9360 | //========================================================================= |
9361 | pub fn g_socket_client_event_get_type() -> GType; |
9362 | |
9363 | //========================================================================= |
9364 | // GSocketFamily |
9365 | //========================================================================= |
9366 | pub fn g_socket_family_get_type() -> GType; |
9367 | |
9368 | //========================================================================= |
9369 | // GSocketListenerEvent |
9370 | //========================================================================= |
9371 | pub fn g_socket_listener_event_get_type() -> GType; |
9372 | |
9373 | //========================================================================= |
9374 | // GSocketProtocol |
9375 | //========================================================================= |
9376 | pub fn g_socket_protocol_get_type() -> GType; |
9377 | |
9378 | //========================================================================= |
9379 | // GSocketType |
9380 | //========================================================================= |
9381 | pub fn g_socket_type_get_type() -> GType; |
9382 | |
9383 | //========================================================================= |
9384 | // GTlsAuthenticationMode |
9385 | //========================================================================= |
9386 | pub fn g_tls_authentication_mode_get_type() -> GType; |
9387 | |
9388 | //========================================================================= |
9389 | // GTlsCertificateRequestFlags |
9390 | //========================================================================= |
9391 | pub fn g_tls_certificate_request_flags_get_type() -> GType; |
9392 | |
9393 | //========================================================================= |
9394 | // GTlsChannelBindingError |
9395 | //========================================================================= |
9396 | #[cfg (feature = "v2_66" )] |
9397 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
9398 | pub fn g_tls_channel_binding_error_get_type() -> GType; |
9399 | #[cfg (feature = "v2_66" )] |
9400 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
9401 | pub fn g_tls_channel_binding_error_quark() -> glib::GQuark; |
9402 | |
9403 | //========================================================================= |
9404 | // GTlsChannelBindingType |
9405 | //========================================================================= |
9406 | #[cfg (feature = "v2_66" )] |
9407 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
9408 | pub fn g_tls_channel_binding_type_get_type() -> GType; |
9409 | |
9410 | //========================================================================= |
9411 | // GTlsDatabaseLookupFlags |
9412 | //========================================================================= |
9413 | pub fn g_tls_database_lookup_flags_get_type() -> GType; |
9414 | |
9415 | //========================================================================= |
9416 | // GTlsError |
9417 | //========================================================================= |
9418 | pub fn g_tls_error_get_type() -> GType; |
9419 | pub fn g_tls_error_quark() -> glib::GQuark; |
9420 | |
9421 | //========================================================================= |
9422 | // GTlsInteractionResult |
9423 | //========================================================================= |
9424 | pub fn g_tls_interaction_result_get_type() -> GType; |
9425 | |
9426 | //========================================================================= |
9427 | // GTlsProtocolVersion |
9428 | //========================================================================= |
9429 | #[cfg (feature = "v2_70" )] |
9430 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
9431 | pub fn g_tls_protocol_version_get_type() -> GType; |
9432 | |
9433 | //========================================================================= |
9434 | // GTlsRehandshakeMode |
9435 | //========================================================================= |
9436 | pub fn g_tls_rehandshake_mode_get_type() -> GType; |
9437 | |
9438 | //========================================================================= |
9439 | // GUnixSocketAddressType |
9440 | //========================================================================= |
9441 | pub fn g_unix_socket_address_type_get_type() -> GType; |
9442 | |
9443 | //========================================================================= |
9444 | // GZlibCompressorFormat |
9445 | //========================================================================= |
9446 | pub fn g_zlib_compressor_format_get_type() -> GType; |
9447 | |
9448 | //========================================================================= |
9449 | // GAppInfoCreateFlags |
9450 | //========================================================================= |
9451 | pub fn g_app_info_create_flags_get_type() -> GType; |
9452 | |
9453 | //========================================================================= |
9454 | // GApplicationFlags |
9455 | //========================================================================= |
9456 | pub fn g_application_flags_get_type() -> GType; |
9457 | |
9458 | //========================================================================= |
9459 | // GAskPasswordFlags |
9460 | //========================================================================= |
9461 | pub fn g_ask_password_flags_get_type() -> GType; |
9462 | |
9463 | //========================================================================= |
9464 | // GBusNameOwnerFlags |
9465 | //========================================================================= |
9466 | pub fn g_bus_name_owner_flags_get_type() -> GType; |
9467 | |
9468 | //========================================================================= |
9469 | // GBusNameWatcherFlags |
9470 | //========================================================================= |
9471 | pub fn g_bus_name_watcher_flags_get_type() -> GType; |
9472 | |
9473 | //========================================================================= |
9474 | // GConverterFlags |
9475 | //========================================================================= |
9476 | pub fn g_converter_flags_get_type() -> GType; |
9477 | |
9478 | //========================================================================= |
9479 | // GDBusCallFlags |
9480 | //========================================================================= |
9481 | pub fn g_dbus_call_flags_get_type() -> GType; |
9482 | |
9483 | //========================================================================= |
9484 | // GDBusCapabilityFlags |
9485 | //========================================================================= |
9486 | pub fn g_dbus_capability_flags_get_type() -> GType; |
9487 | |
9488 | //========================================================================= |
9489 | // GDBusConnectionFlags |
9490 | //========================================================================= |
9491 | pub fn g_dbus_connection_flags_get_type() -> GType; |
9492 | |
9493 | //========================================================================= |
9494 | // GDBusInterfaceSkeletonFlags |
9495 | //========================================================================= |
9496 | pub fn g_dbus_interface_skeleton_flags_get_type() -> GType; |
9497 | |
9498 | //========================================================================= |
9499 | // GDBusMessageFlags |
9500 | //========================================================================= |
9501 | pub fn g_dbus_message_flags_get_type() -> GType; |
9502 | |
9503 | //========================================================================= |
9504 | // GDBusObjectManagerClientFlags |
9505 | //========================================================================= |
9506 | pub fn g_dbus_object_manager_client_flags_get_type() -> GType; |
9507 | |
9508 | //========================================================================= |
9509 | // GDBusPropertyInfoFlags |
9510 | //========================================================================= |
9511 | pub fn g_dbus_property_info_flags_get_type() -> GType; |
9512 | |
9513 | //========================================================================= |
9514 | // GDBusProxyFlags |
9515 | //========================================================================= |
9516 | pub fn g_dbus_proxy_flags_get_type() -> GType; |
9517 | |
9518 | //========================================================================= |
9519 | // GDBusSendMessageFlags |
9520 | //========================================================================= |
9521 | pub fn g_dbus_send_message_flags_get_type() -> GType; |
9522 | |
9523 | //========================================================================= |
9524 | // GDBusServerFlags |
9525 | //========================================================================= |
9526 | pub fn g_dbus_server_flags_get_type() -> GType; |
9527 | |
9528 | //========================================================================= |
9529 | // GDBusSignalFlags |
9530 | //========================================================================= |
9531 | pub fn g_dbus_signal_flags_get_type() -> GType; |
9532 | |
9533 | //========================================================================= |
9534 | // GDBusSubtreeFlags |
9535 | //========================================================================= |
9536 | pub fn g_dbus_subtree_flags_get_type() -> GType; |
9537 | |
9538 | //========================================================================= |
9539 | // GDriveStartFlags |
9540 | //========================================================================= |
9541 | pub fn g_drive_start_flags_get_type() -> GType; |
9542 | |
9543 | //========================================================================= |
9544 | // GFileAttributeInfoFlags |
9545 | //========================================================================= |
9546 | pub fn g_file_attribute_info_flags_get_type() -> GType; |
9547 | |
9548 | //========================================================================= |
9549 | // GFileCopyFlags |
9550 | //========================================================================= |
9551 | pub fn g_file_copy_flags_get_type() -> GType; |
9552 | |
9553 | //========================================================================= |
9554 | // GFileCreateFlags |
9555 | //========================================================================= |
9556 | pub fn g_file_create_flags_get_type() -> GType; |
9557 | |
9558 | //========================================================================= |
9559 | // GFileMeasureFlags |
9560 | //========================================================================= |
9561 | pub fn g_file_measure_flags_get_type() -> GType; |
9562 | |
9563 | //========================================================================= |
9564 | // GFileMonitorFlags |
9565 | //========================================================================= |
9566 | pub fn g_file_monitor_flags_get_type() -> GType; |
9567 | |
9568 | //========================================================================= |
9569 | // GFileQueryInfoFlags |
9570 | //========================================================================= |
9571 | pub fn g_file_query_info_flags_get_type() -> GType; |
9572 | |
9573 | //========================================================================= |
9574 | // GIOStreamSpliceFlags |
9575 | //========================================================================= |
9576 | pub fn g_io_stream_splice_flags_get_type() -> GType; |
9577 | |
9578 | //========================================================================= |
9579 | // GMountMountFlags |
9580 | //========================================================================= |
9581 | pub fn g_mount_mount_flags_get_type() -> GType; |
9582 | |
9583 | //========================================================================= |
9584 | // GMountUnmountFlags |
9585 | //========================================================================= |
9586 | pub fn g_mount_unmount_flags_get_type() -> GType; |
9587 | |
9588 | //========================================================================= |
9589 | // GOutputStreamSpliceFlags |
9590 | //========================================================================= |
9591 | pub fn g_output_stream_splice_flags_get_type() -> GType; |
9592 | |
9593 | //========================================================================= |
9594 | // GResolverNameLookupFlags |
9595 | //========================================================================= |
9596 | #[cfg (feature = "v2_60" )] |
9597 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
9598 | pub fn g_resolver_name_lookup_flags_get_type() -> GType; |
9599 | |
9600 | //========================================================================= |
9601 | // GResourceFlags |
9602 | //========================================================================= |
9603 | pub fn g_resource_flags_get_type() -> GType; |
9604 | |
9605 | //========================================================================= |
9606 | // GResourceLookupFlags |
9607 | //========================================================================= |
9608 | pub fn g_resource_lookup_flags_get_type() -> GType; |
9609 | |
9610 | //========================================================================= |
9611 | // GSettingsBindFlags |
9612 | //========================================================================= |
9613 | pub fn g_settings_bind_flags_get_type() -> GType; |
9614 | |
9615 | //========================================================================= |
9616 | // GSocketMsgFlags |
9617 | //========================================================================= |
9618 | pub fn g_socket_msg_flags_get_type() -> GType; |
9619 | |
9620 | //========================================================================= |
9621 | // GSubprocessFlags |
9622 | //========================================================================= |
9623 | pub fn g_subprocess_flags_get_type() -> GType; |
9624 | |
9625 | //========================================================================= |
9626 | // GTestDBusFlags |
9627 | //========================================================================= |
9628 | pub fn g_test_dbus_flags_get_type() -> GType; |
9629 | |
9630 | //========================================================================= |
9631 | // GTlsCertificateFlags |
9632 | //========================================================================= |
9633 | pub fn g_tls_certificate_flags_get_type() -> GType; |
9634 | |
9635 | //========================================================================= |
9636 | // GTlsDatabaseVerifyFlags |
9637 | //========================================================================= |
9638 | pub fn g_tls_database_verify_flags_get_type() -> GType; |
9639 | |
9640 | //========================================================================= |
9641 | // GTlsPasswordFlags |
9642 | //========================================================================= |
9643 | pub fn g_tls_password_flags_get_type() -> GType; |
9644 | |
9645 | //========================================================================= |
9646 | // GDBusAnnotationInfo |
9647 | //========================================================================= |
9648 | pub fn g_dbus_annotation_info_get_type() -> GType; |
9649 | pub fn g_dbus_annotation_info_ref(info: *mut GDBusAnnotationInfo) -> *mut GDBusAnnotationInfo; |
9650 | pub fn g_dbus_annotation_info_unref(info: *mut GDBusAnnotationInfo); |
9651 | pub fn g_dbus_annotation_info_lookup( |
9652 | annotations: *mut *mut GDBusAnnotationInfo, |
9653 | name: *const c_char, |
9654 | ) -> *const c_char; |
9655 | |
9656 | //========================================================================= |
9657 | // GDBusArgInfo |
9658 | //========================================================================= |
9659 | pub fn g_dbus_arg_info_get_type() -> GType; |
9660 | pub fn g_dbus_arg_info_ref(info: *mut GDBusArgInfo) -> *mut GDBusArgInfo; |
9661 | pub fn g_dbus_arg_info_unref(info: *mut GDBusArgInfo); |
9662 | |
9663 | //========================================================================= |
9664 | // GDBusInterfaceInfo |
9665 | //========================================================================= |
9666 | pub fn g_dbus_interface_info_get_type() -> GType; |
9667 | pub fn g_dbus_interface_info_cache_build(info: *mut GDBusInterfaceInfo); |
9668 | pub fn g_dbus_interface_info_cache_release(info: *mut GDBusInterfaceInfo); |
9669 | pub fn g_dbus_interface_info_generate_xml( |
9670 | info: *mut GDBusInterfaceInfo, |
9671 | indent: c_uint, |
9672 | string_builder: *mut glib::GString, |
9673 | ); |
9674 | pub fn g_dbus_interface_info_lookup_method( |
9675 | info: *mut GDBusInterfaceInfo, |
9676 | name: *const c_char, |
9677 | ) -> *mut GDBusMethodInfo; |
9678 | pub fn g_dbus_interface_info_lookup_property( |
9679 | info: *mut GDBusInterfaceInfo, |
9680 | name: *const c_char, |
9681 | ) -> *mut GDBusPropertyInfo; |
9682 | pub fn g_dbus_interface_info_lookup_signal( |
9683 | info: *mut GDBusInterfaceInfo, |
9684 | name: *const c_char, |
9685 | ) -> *mut GDBusSignalInfo; |
9686 | pub fn g_dbus_interface_info_ref(info: *mut GDBusInterfaceInfo) -> *mut GDBusInterfaceInfo; |
9687 | pub fn g_dbus_interface_info_unref(info: *mut GDBusInterfaceInfo); |
9688 | |
9689 | //========================================================================= |
9690 | // GDBusMethodInfo |
9691 | //========================================================================= |
9692 | pub fn g_dbus_method_info_get_type() -> GType; |
9693 | pub fn g_dbus_method_info_ref(info: *mut GDBusMethodInfo) -> *mut GDBusMethodInfo; |
9694 | pub fn g_dbus_method_info_unref(info: *mut GDBusMethodInfo); |
9695 | |
9696 | //========================================================================= |
9697 | // GDBusNodeInfo |
9698 | //========================================================================= |
9699 | pub fn g_dbus_node_info_get_type() -> GType; |
9700 | pub fn g_dbus_node_info_new_for_xml( |
9701 | xml_data: *const c_char, |
9702 | error: *mut *mut glib::GError, |
9703 | ) -> *mut GDBusNodeInfo; |
9704 | pub fn g_dbus_node_info_generate_xml( |
9705 | info: *mut GDBusNodeInfo, |
9706 | indent: c_uint, |
9707 | string_builder: *mut glib::GString, |
9708 | ); |
9709 | pub fn g_dbus_node_info_lookup_interface( |
9710 | info: *mut GDBusNodeInfo, |
9711 | name: *const c_char, |
9712 | ) -> *mut GDBusInterfaceInfo; |
9713 | pub fn g_dbus_node_info_ref(info: *mut GDBusNodeInfo) -> *mut GDBusNodeInfo; |
9714 | pub fn g_dbus_node_info_unref(info: *mut GDBusNodeInfo); |
9715 | |
9716 | //========================================================================= |
9717 | // GDBusPropertyInfo |
9718 | //========================================================================= |
9719 | pub fn g_dbus_property_info_get_type() -> GType; |
9720 | pub fn g_dbus_property_info_ref(info: *mut GDBusPropertyInfo) -> *mut GDBusPropertyInfo; |
9721 | pub fn g_dbus_property_info_unref(info: *mut GDBusPropertyInfo); |
9722 | |
9723 | //========================================================================= |
9724 | // GDBusSignalInfo |
9725 | //========================================================================= |
9726 | pub fn g_dbus_signal_info_get_type() -> GType; |
9727 | pub fn g_dbus_signal_info_ref(info: *mut GDBusSignalInfo) -> *mut GDBusSignalInfo; |
9728 | pub fn g_dbus_signal_info_unref(info: *mut GDBusSignalInfo); |
9729 | |
9730 | //========================================================================= |
9731 | // GFileAttributeInfoList |
9732 | //========================================================================= |
9733 | pub fn g_file_attribute_info_list_get_type() -> GType; |
9734 | pub fn g_file_attribute_info_list_new() -> *mut GFileAttributeInfoList; |
9735 | pub fn g_file_attribute_info_list_add( |
9736 | list: *mut GFileAttributeInfoList, |
9737 | name: *const c_char, |
9738 | type_: GFileAttributeType, |
9739 | flags: GFileAttributeInfoFlags, |
9740 | ); |
9741 | pub fn g_file_attribute_info_list_dup( |
9742 | list: *mut GFileAttributeInfoList, |
9743 | ) -> *mut GFileAttributeInfoList; |
9744 | pub fn g_file_attribute_info_list_lookup( |
9745 | list: *mut GFileAttributeInfoList, |
9746 | name: *const c_char, |
9747 | ) -> *const GFileAttributeInfo; |
9748 | pub fn g_file_attribute_info_list_ref( |
9749 | list: *mut GFileAttributeInfoList, |
9750 | ) -> *mut GFileAttributeInfoList; |
9751 | pub fn g_file_attribute_info_list_unref(list: *mut GFileAttributeInfoList); |
9752 | |
9753 | //========================================================================= |
9754 | // GFileAttributeMatcher |
9755 | //========================================================================= |
9756 | pub fn g_file_attribute_matcher_get_type() -> GType; |
9757 | pub fn g_file_attribute_matcher_new(attributes: *const c_char) -> *mut GFileAttributeMatcher; |
9758 | pub fn g_file_attribute_matcher_enumerate_namespace( |
9759 | matcher: *mut GFileAttributeMatcher, |
9760 | ns: *const c_char, |
9761 | ) -> gboolean; |
9762 | pub fn g_file_attribute_matcher_enumerate_next( |
9763 | matcher: *mut GFileAttributeMatcher, |
9764 | ) -> *const c_char; |
9765 | pub fn g_file_attribute_matcher_matches( |
9766 | matcher: *mut GFileAttributeMatcher, |
9767 | attribute: *const c_char, |
9768 | ) -> gboolean; |
9769 | pub fn g_file_attribute_matcher_matches_only( |
9770 | matcher: *mut GFileAttributeMatcher, |
9771 | attribute: *const c_char, |
9772 | ) -> gboolean; |
9773 | pub fn g_file_attribute_matcher_ref( |
9774 | matcher: *mut GFileAttributeMatcher, |
9775 | ) -> *mut GFileAttributeMatcher; |
9776 | pub fn g_file_attribute_matcher_subtract( |
9777 | matcher: *mut GFileAttributeMatcher, |
9778 | subtract: *mut GFileAttributeMatcher, |
9779 | ) -> *mut GFileAttributeMatcher; |
9780 | pub fn g_file_attribute_matcher_to_string(matcher: *mut GFileAttributeMatcher) -> *mut c_char; |
9781 | pub fn g_file_attribute_matcher_unref(matcher: *mut GFileAttributeMatcher); |
9782 | |
9783 | //========================================================================= |
9784 | // GIOExtension |
9785 | //========================================================================= |
9786 | pub fn g_io_extension_get_name(extension: *mut GIOExtension) -> *const c_char; |
9787 | pub fn g_io_extension_get_priority(extension: *mut GIOExtension) -> c_int; |
9788 | pub fn g_io_extension_get_type(extension: *mut GIOExtension) -> GType; |
9789 | pub fn g_io_extension_ref_class(extension: *mut GIOExtension) -> *mut gobject::GTypeClass; |
9790 | |
9791 | //========================================================================= |
9792 | // GIOExtensionPoint |
9793 | //========================================================================= |
9794 | pub fn g_io_extension_point_get_extension_by_name( |
9795 | extension_point: *mut GIOExtensionPoint, |
9796 | name: *const c_char, |
9797 | ) -> *mut GIOExtension; |
9798 | pub fn g_io_extension_point_get_extensions( |
9799 | extension_point: *mut GIOExtensionPoint, |
9800 | ) -> *mut glib::GList; |
9801 | pub fn g_io_extension_point_get_required_type(extension_point: *mut GIOExtensionPoint) |
9802 | -> GType; |
9803 | pub fn g_io_extension_point_set_required_type( |
9804 | extension_point: *mut GIOExtensionPoint, |
9805 | type_: GType, |
9806 | ); |
9807 | pub fn g_io_extension_point_implement( |
9808 | extension_point_name: *const c_char, |
9809 | type_: GType, |
9810 | extension_name: *const c_char, |
9811 | priority: c_int, |
9812 | ) -> *mut GIOExtension; |
9813 | pub fn g_io_extension_point_lookup(name: *const c_char) -> *mut GIOExtensionPoint; |
9814 | pub fn g_io_extension_point_register(name: *const c_char) -> *mut GIOExtensionPoint; |
9815 | |
9816 | //========================================================================= |
9817 | // GIOModuleScope |
9818 | //========================================================================= |
9819 | pub fn g_io_module_scope_block(scope: *mut GIOModuleScope, basename: *const c_char); |
9820 | pub fn g_io_module_scope_free(scope: *mut GIOModuleScope); |
9821 | pub fn g_io_module_scope_new(flags: GIOModuleScopeFlags) -> *mut GIOModuleScope; |
9822 | |
9823 | //========================================================================= |
9824 | // GIOSchedulerJob |
9825 | //========================================================================= |
9826 | pub fn g_io_scheduler_job_send_to_mainloop( |
9827 | job: *mut GIOSchedulerJob, |
9828 | func: glib::GSourceFunc, |
9829 | user_data: gpointer, |
9830 | notify: glib::GDestroyNotify, |
9831 | ) -> gboolean; |
9832 | pub fn g_io_scheduler_job_send_to_mainloop_async( |
9833 | job: *mut GIOSchedulerJob, |
9834 | func: glib::GSourceFunc, |
9835 | user_data: gpointer, |
9836 | notify: glib::GDestroyNotify, |
9837 | ); |
9838 | |
9839 | //========================================================================= |
9840 | // GResource |
9841 | //========================================================================= |
9842 | pub fn g_resource_get_type() -> GType; |
9843 | pub fn g_resource_new_from_data( |
9844 | data: *mut glib::GBytes, |
9845 | error: *mut *mut glib::GError, |
9846 | ) -> *mut GResource; |
9847 | pub fn g_resource_enumerate_children( |
9848 | resource: *mut GResource, |
9849 | path: *const c_char, |
9850 | lookup_flags: GResourceLookupFlags, |
9851 | error: *mut *mut glib::GError, |
9852 | ) -> *mut *mut c_char; |
9853 | pub fn g_resource_get_info( |
9854 | resource: *mut GResource, |
9855 | path: *const c_char, |
9856 | lookup_flags: GResourceLookupFlags, |
9857 | size: *mut size_t, |
9858 | flags: *mut u32, |
9859 | error: *mut *mut glib::GError, |
9860 | ) -> gboolean; |
9861 | pub fn g_resource_lookup_data( |
9862 | resource: *mut GResource, |
9863 | path: *const c_char, |
9864 | lookup_flags: GResourceLookupFlags, |
9865 | error: *mut *mut glib::GError, |
9866 | ) -> *mut glib::GBytes; |
9867 | pub fn g_resource_open_stream( |
9868 | resource: *mut GResource, |
9869 | path: *const c_char, |
9870 | lookup_flags: GResourceLookupFlags, |
9871 | error: *mut *mut glib::GError, |
9872 | ) -> *mut GInputStream; |
9873 | pub fn g_resource_ref(resource: *mut GResource) -> *mut GResource; |
9874 | pub fn g_resource_unref(resource: *mut GResource); |
9875 | pub fn g_resource_load( |
9876 | filename: *const c_char, |
9877 | error: *mut *mut glib::GError, |
9878 | ) -> *mut GResource; |
9879 | |
9880 | //========================================================================= |
9881 | // GSettingsSchema |
9882 | //========================================================================= |
9883 | pub fn g_settings_schema_get_type() -> GType; |
9884 | pub fn g_settings_schema_get_id(schema: *mut GSettingsSchema) -> *const c_char; |
9885 | pub fn g_settings_schema_get_key( |
9886 | schema: *mut GSettingsSchema, |
9887 | name: *const c_char, |
9888 | ) -> *mut GSettingsSchemaKey; |
9889 | pub fn g_settings_schema_get_path(schema: *mut GSettingsSchema) -> *const c_char; |
9890 | pub fn g_settings_schema_has_key(schema: *mut GSettingsSchema, name: *const c_char) |
9891 | -> gboolean; |
9892 | pub fn g_settings_schema_list_children(schema: *mut GSettingsSchema) -> *mut *mut c_char; |
9893 | pub fn g_settings_schema_list_keys(schema: *mut GSettingsSchema) -> *mut *mut c_char; |
9894 | pub fn g_settings_schema_ref(schema: *mut GSettingsSchema) -> *mut GSettingsSchema; |
9895 | pub fn g_settings_schema_unref(schema: *mut GSettingsSchema); |
9896 | |
9897 | //========================================================================= |
9898 | // GSettingsSchemaKey |
9899 | //========================================================================= |
9900 | pub fn g_settings_schema_key_get_type() -> GType; |
9901 | pub fn g_settings_schema_key_get_default_value( |
9902 | key: *mut GSettingsSchemaKey, |
9903 | ) -> *mut glib::GVariant; |
9904 | pub fn g_settings_schema_key_get_description(key: *mut GSettingsSchemaKey) -> *const c_char; |
9905 | pub fn g_settings_schema_key_get_name(key: *mut GSettingsSchemaKey) -> *const c_char; |
9906 | pub fn g_settings_schema_key_get_range(key: *mut GSettingsSchemaKey) -> *mut glib::GVariant; |
9907 | pub fn g_settings_schema_key_get_summary(key: *mut GSettingsSchemaKey) -> *const c_char; |
9908 | pub fn g_settings_schema_key_get_value_type( |
9909 | key: *mut GSettingsSchemaKey, |
9910 | ) -> *const glib::GVariantType; |
9911 | pub fn g_settings_schema_key_range_check( |
9912 | key: *mut GSettingsSchemaKey, |
9913 | value: *mut glib::GVariant, |
9914 | ) -> gboolean; |
9915 | pub fn g_settings_schema_key_ref(key: *mut GSettingsSchemaKey) -> *mut GSettingsSchemaKey; |
9916 | pub fn g_settings_schema_key_unref(key: *mut GSettingsSchemaKey); |
9917 | |
9918 | //========================================================================= |
9919 | // GSettingsSchemaSource |
9920 | //========================================================================= |
9921 | pub fn g_settings_schema_source_get_type() -> GType; |
9922 | pub fn g_settings_schema_source_new_from_directory( |
9923 | directory: *const c_char, |
9924 | parent: *mut GSettingsSchemaSource, |
9925 | trusted: gboolean, |
9926 | error: *mut *mut glib::GError, |
9927 | ) -> *mut GSettingsSchemaSource; |
9928 | pub fn g_settings_schema_source_list_schemas( |
9929 | source: *mut GSettingsSchemaSource, |
9930 | recursive: gboolean, |
9931 | non_relocatable: *mut *mut *mut c_char, |
9932 | relocatable: *mut *mut *mut c_char, |
9933 | ); |
9934 | pub fn g_settings_schema_source_lookup( |
9935 | source: *mut GSettingsSchemaSource, |
9936 | schema_id: *const c_char, |
9937 | recursive: gboolean, |
9938 | ) -> *mut GSettingsSchema; |
9939 | pub fn g_settings_schema_source_ref( |
9940 | source: *mut GSettingsSchemaSource, |
9941 | ) -> *mut GSettingsSchemaSource; |
9942 | pub fn g_settings_schema_source_unref(source: *mut GSettingsSchemaSource); |
9943 | pub fn g_settings_schema_source_get_default() -> *mut GSettingsSchemaSource; |
9944 | |
9945 | //========================================================================= |
9946 | // GSrvTarget |
9947 | //========================================================================= |
9948 | pub fn g_srv_target_get_type() -> GType; |
9949 | pub fn g_srv_target_new( |
9950 | hostname: *const c_char, |
9951 | port: u16, |
9952 | priority: u16, |
9953 | weight: u16, |
9954 | ) -> *mut GSrvTarget; |
9955 | pub fn g_srv_target_copy(target: *mut GSrvTarget) -> *mut GSrvTarget; |
9956 | pub fn g_srv_target_free(target: *mut GSrvTarget); |
9957 | pub fn g_srv_target_get_hostname(target: *mut GSrvTarget) -> *const c_char; |
9958 | pub fn g_srv_target_get_port(target: *mut GSrvTarget) -> u16; |
9959 | pub fn g_srv_target_get_priority(target: *mut GSrvTarget) -> u16; |
9960 | pub fn g_srv_target_get_weight(target: *mut GSrvTarget) -> u16; |
9961 | pub fn g_srv_target_list_sort(targets: *mut glib::GList) -> *mut glib::GList; |
9962 | |
9963 | //========================================================================= |
9964 | // GStaticResource |
9965 | //========================================================================= |
9966 | pub fn g_static_resource_fini(static_resource: *mut GStaticResource); |
9967 | pub fn g_static_resource_get_resource(static_resource: *mut GStaticResource) -> *mut GResource; |
9968 | pub fn g_static_resource_init(static_resource: *mut GStaticResource); |
9969 | |
9970 | //========================================================================= |
9971 | // GUnixMountEntry |
9972 | //========================================================================= |
9973 | pub fn g_unix_mount_entry_get_type() -> GType; |
9974 | |
9975 | //========================================================================= |
9976 | // GUnixMountPoint |
9977 | //========================================================================= |
9978 | pub fn g_unix_mount_point_get_type() -> GType; |
9979 | pub fn g_unix_mount_point_compare( |
9980 | mount1: *mut GUnixMountPoint, |
9981 | mount2: *mut GUnixMountPoint, |
9982 | ) -> c_int; |
9983 | pub fn g_unix_mount_point_copy(mount_point: *mut GUnixMountPoint) -> *mut GUnixMountPoint; |
9984 | pub fn g_unix_mount_point_free(mount_point: *mut GUnixMountPoint); |
9985 | pub fn g_unix_mount_point_get_device_path(mount_point: *mut GUnixMountPoint) -> *const c_char; |
9986 | pub fn g_unix_mount_point_get_fs_type(mount_point: *mut GUnixMountPoint) -> *const c_char; |
9987 | pub fn g_unix_mount_point_get_mount_path(mount_point: *mut GUnixMountPoint) -> *const c_char; |
9988 | pub fn g_unix_mount_point_get_options(mount_point: *mut GUnixMountPoint) -> *const c_char; |
9989 | pub fn g_unix_mount_point_guess_can_eject(mount_point: *mut GUnixMountPoint) -> gboolean; |
9990 | pub fn g_unix_mount_point_guess_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon; |
9991 | pub fn g_unix_mount_point_guess_name(mount_point: *mut GUnixMountPoint) -> *mut c_char; |
9992 | pub fn g_unix_mount_point_guess_symbolic_icon(mount_point: *mut GUnixMountPoint) -> *mut GIcon; |
9993 | pub fn g_unix_mount_point_is_loopback(mount_point: *mut GUnixMountPoint) -> gboolean; |
9994 | pub fn g_unix_mount_point_is_readonly(mount_point: *mut GUnixMountPoint) -> gboolean; |
9995 | pub fn g_unix_mount_point_is_user_mountable(mount_point: *mut GUnixMountPoint) -> gboolean; |
9996 | #[cfg (feature = "v2_66" )] |
9997 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
9998 | pub fn g_unix_mount_point_at( |
9999 | mount_path: *const c_char, |
10000 | time_read: *mut u64, |
10001 | ) -> *mut GUnixMountPoint; |
10002 | |
10003 | //========================================================================= |
10004 | // GAppInfoMonitor |
10005 | //========================================================================= |
10006 | pub fn g_app_info_monitor_get_type() -> GType; |
10007 | pub fn g_app_info_monitor_get() -> *mut GAppInfoMonitor; |
10008 | |
10009 | //========================================================================= |
10010 | // GAppLaunchContext |
10011 | //========================================================================= |
10012 | pub fn g_app_launch_context_get_type() -> GType; |
10013 | pub fn g_app_launch_context_new() -> *mut GAppLaunchContext; |
10014 | pub fn g_app_launch_context_get_display( |
10015 | context: *mut GAppLaunchContext, |
10016 | info: *mut GAppInfo, |
10017 | files: *mut glib::GList, |
10018 | ) -> *mut c_char; |
10019 | pub fn g_app_launch_context_get_environment( |
10020 | context: *mut GAppLaunchContext, |
10021 | ) -> *mut *mut c_char; |
10022 | pub fn g_app_launch_context_get_startup_notify_id( |
10023 | context: *mut GAppLaunchContext, |
10024 | info: *mut GAppInfo, |
10025 | files: *mut glib::GList, |
10026 | ) -> *mut c_char; |
10027 | pub fn g_app_launch_context_launch_failed( |
10028 | context: *mut GAppLaunchContext, |
10029 | startup_notify_id: *const c_char, |
10030 | ); |
10031 | pub fn g_app_launch_context_setenv( |
10032 | context: *mut GAppLaunchContext, |
10033 | variable: *const c_char, |
10034 | value: *const c_char, |
10035 | ); |
10036 | pub fn g_app_launch_context_unsetenv(context: *mut GAppLaunchContext, variable: *const c_char); |
10037 | |
10038 | //========================================================================= |
10039 | // GApplication |
10040 | //========================================================================= |
10041 | pub fn g_application_get_type() -> GType; |
10042 | pub fn g_application_new( |
10043 | application_id: *const c_char, |
10044 | flags: GApplicationFlags, |
10045 | ) -> *mut GApplication; |
10046 | pub fn g_application_get_default() -> *mut GApplication; |
10047 | pub fn g_application_id_is_valid(application_id: *const c_char) -> gboolean; |
10048 | pub fn g_application_activate(application: *mut GApplication); |
10049 | pub fn g_application_add_main_option( |
10050 | application: *mut GApplication, |
10051 | long_name: *const c_char, |
10052 | short_name: c_char, |
10053 | flags: glib::GOptionFlags, |
10054 | arg: glib::GOptionArg, |
10055 | description: *const c_char, |
10056 | arg_description: *const c_char, |
10057 | ); |
10058 | pub fn g_application_add_main_option_entries( |
10059 | application: *mut GApplication, |
10060 | entries: *const glib::GOptionEntry, |
10061 | ); |
10062 | pub fn g_application_add_option_group( |
10063 | application: *mut GApplication, |
10064 | group: *mut glib::GOptionGroup, |
10065 | ); |
10066 | pub fn g_application_bind_busy_property( |
10067 | application: *mut GApplication, |
10068 | object: *mut gobject::GObject, |
10069 | property: *const c_char, |
10070 | ); |
10071 | pub fn g_application_get_application_id(application: *mut GApplication) -> *const c_char; |
10072 | pub fn g_application_get_dbus_connection( |
10073 | application: *mut GApplication, |
10074 | ) -> *mut GDBusConnection; |
10075 | pub fn g_application_get_dbus_object_path(application: *mut GApplication) -> *const c_char; |
10076 | pub fn g_application_get_flags(application: *mut GApplication) -> GApplicationFlags; |
10077 | pub fn g_application_get_inactivity_timeout(application: *mut GApplication) -> c_uint; |
10078 | pub fn g_application_get_is_busy(application: *mut GApplication) -> gboolean; |
10079 | pub fn g_application_get_is_registered(application: *mut GApplication) -> gboolean; |
10080 | pub fn g_application_get_is_remote(application: *mut GApplication) -> gboolean; |
10081 | pub fn g_application_get_resource_base_path(application: *mut GApplication) -> *const c_char; |
10082 | pub fn g_application_hold(application: *mut GApplication); |
10083 | pub fn g_application_mark_busy(application: *mut GApplication); |
10084 | pub fn g_application_open( |
10085 | application: *mut GApplication, |
10086 | files: *mut *mut GFile, |
10087 | n_files: c_int, |
10088 | hint: *const c_char, |
10089 | ); |
10090 | pub fn g_application_quit(application: *mut GApplication); |
10091 | pub fn g_application_register( |
10092 | application: *mut GApplication, |
10093 | cancellable: *mut GCancellable, |
10094 | error: *mut *mut glib::GError, |
10095 | ) -> gboolean; |
10096 | pub fn g_application_release(application: *mut GApplication); |
10097 | pub fn g_application_run( |
10098 | application: *mut GApplication, |
10099 | argc: c_int, |
10100 | argv: *mut *mut c_char, |
10101 | ) -> c_int; |
10102 | pub fn g_application_send_notification( |
10103 | application: *mut GApplication, |
10104 | id: *const c_char, |
10105 | notification: *mut GNotification, |
10106 | ); |
10107 | pub fn g_application_set_action_group( |
10108 | application: *mut GApplication, |
10109 | action_group: *mut GActionGroup, |
10110 | ); |
10111 | pub fn g_application_set_application_id( |
10112 | application: *mut GApplication, |
10113 | application_id: *const c_char, |
10114 | ); |
10115 | pub fn g_application_set_default(application: *mut GApplication); |
10116 | pub fn g_application_set_flags(application: *mut GApplication, flags: GApplicationFlags); |
10117 | pub fn g_application_set_inactivity_timeout( |
10118 | application: *mut GApplication, |
10119 | inactivity_timeout: c_uint, |
10120 | ); |
10121 | pub fn g_application_set_option_context_description( |
10122 | application: *mut GApplication, |
10123 | description: *const c_char, |
10124 | ); |
10125 | pub fn g_application_set_option_context_parameter_string( |
10126 | application: *mut GApplication, |
10127 | parameter_string: *const c_char, |
10128 | ); |
10129 | pub fn g_application_set_option_context_summary( |
10130 | application: *mut GApplication, |
10131 | summary: *const c_char, |
10132 | ); |
10133 | pub fn g_application_set_resource_base_path( |
10134 | application: *mut GApplication, |
10135 | resource_path: *const c_char, |
10136 | ); |
10137 | pub fn g_application_unbind_busy_property( |
10138 | application: *mut GApplication, |
10139 | object: *mut gobject::GObject, |
10140 | property: *const c_char, |
10141 | ); |
10142 | pub fn g_application_unmark_busy(application: *mut GApplication); |
10143 | pub fn g_application_withdraw_notification(application: *mut GApplication, id: *const c_char); |
10144 | |
10145 | //========================================================================= |
10146 | // GApplicationCommandLine |
10147 | //========================================================================= |
10148 | pub fn g_application_command_line_get_type() -> GType; |
10149 | pub fn g_application_command_line_create_file_for_arg( |
10150 | cmdline: *mut GApplicationCommandLine, |
10151 | arg: *const c_char, |
10152 | ) -> *mut GFile; |
10153 | pub fn g_application_command_line_get_arguments( |
10154 | cmdline: *mut GApplicationCommandLine, |
10155 | argc: *mut c_int, |
10156 | ) -> *mut *mut c_char; |
10157 | pub fn g_application_command_line_get_cwd( |
10158 | cmdline: *mut GApplicationCommandLine, |
10159 | ) -> *const c_char; |
10160 | pub fn g_application_command_line_get_environ( |
10161 | cmdline: *mut GApplicationCommandLine, |
10162 | ) -> *const *const c_char; |
10163 | pub fn g_application_command_line_get_exit_status( |
10164 | cmdline: *mut GApplicationCommandLine, |
10165 | ) -> c_int; |
10166 | pub fn g_application_command_line_get_is_remote( |
10167 | cmdline: *mut GApplicationCommandLine, |
10168 | ) -> gboolean; |
10169 | pub fn g_application_command_line_get_options_dict( |
10170 | cmdline: *mut GApplicationCommandLine, |
10171 | ) -> *mut glib::GVariantDict; |
10172 | pub fn g_application_command_line_get_platform_data( |
10173 | cmdline: *mut GApplicationCommandLine, |
10174 | ) -> *mut glib::GVariant; |
10175 | pub fn g_application_command_line_get_stdin( |
10176 | cmdline: *mut GApplicationCommandLine, |
10177 | ) -> *mut GInputStream; |
10178 | pub fn g_application_command_line_getenv( |
10179 | cmdline: *mut GApplicationCommandLine, |
10180 | name: *const c_char, |
10181 | ) -> *const c_char; |
10182 | pub fn g_application_command_line_print( |
10183 | cmdline: *mut GApplicationCommandLine, |
10184 | format: *const c_char, |
10185 | ... |
10186 | ); |
10187 | pub fn g_application_command_line_printerr( |
10188 | cmdline: *mut GApplicationCommandLine, |
10189 | format: *const c_char, |
10190 | ... |
10191 | ); |
10192 | pub fn g_application_command_line_set_exit_status( |
10193 | cmdline: *mut GApplicationCommandLine, |
10194 | exit_status: c_int, |
10195 | ); |
10196 | |
10197 | //========================================================================= |
10198 | // GBufferedInputStream |
10199 | //========================================================================= |
10200 | pub fn g_buffered_input_stream_get_type() -> GType; |
10201 | pub fn g_buffered_input_stream_new(base_stream: *mut GInputStream) -> *mut GInputStream; |
10202 | pub fn g_buffered_input_stream_new_sized( |
10203 | base_stream: *mut GInputStream, |
10204 | size: size_t, |
10205 | ) -> *mut GInputStream; |
10206 | pub fn g_buffered_input_stream_fill( |
10207 | stream: *mut GBufferedInputStream, |
10208 | count: ssize_t, |
10209 | cancellable: *mut GCancellable, |
10210 | error: *mut *mut glib::GError, |
10211 | ) -> ssize_t; |
10212 | pub fn g_buffered_input_stream_fill_async( |
10213 | stream: *mut GBufferedInputStream, |
10214 | count: ssize_t, |
10215 | io_priority: c_int, |
10216 | cancellable: *mut GCancellable, |
10217 | callback: GAsyncReadyCallback, |
10218 | user_data: gpointer, |
10219 | ); |
10220 | pub fn g_buffered_input_stream_fill_finish( |
10221 | stream: *mut GBufferedInputStream, |
10222 | result: *mut GAsyncResult, |
10223 | error: *mut *mut glib::GError, |
10224 | ) -> ssize_t; |
10225 | pub fn g_buffered_input_stream_get_available(stream: *mut GBufferedInputStream) -> size_t; |
10226 | pub fn g_buffered_input_stream_get_buffer_size(stream: *mut GBufferedInputStream) -> size_t; |
10227 | pub fn g_buffered_input_stream_peek( |
10228 | stream: *mut GBufferedInputStream, |
10229 | buffer: *mut u8, |
10230 | offset: size_t, |
10231 | count: size_t, |
10232 | ) -> size_t; |
10233 | pub fn g_buffered_input_stream_peek_buffer( |
10234 | stream: *mut GBufferedInputStream, |
10235 | count: *mut size_t, |
10236 | ) -> *mut u8; |
10237 | pub fn g_buffered_input_stream_read_byte( |
10238 | stream: *mut GBufferedInputStream, |
10239 | cancellable: *mut GCancellable, |
10240 | error: *mut *mut glib::GError, |
10241 | ) -> c_int; |
10242 | pub fn g_buffered_input_stream_set_buffer_size(stream: *mut GBufferedInputStream, size: size_t); |
10243 | |
10244 | //========================================================================= |
10245 | // GBufferedOutputStream |
10246 | //========================================================================= |
10247 | pub fn g_buffered_output_stream_get_type() -> GType; |
10248 | pub fn g_buffered_output_stream_new(base_stream: *mut GOutputStream) -> *mut GOutputStream; |
10249 | pub fn g_buffered_output_stream_new_sized( |
10250 | base_stream: *mut GOutputStream, |
10251 | size: size_t, |
10252 | ) -> *mut GOutputStream; |
10253 | pub fn g_buffered_output_stream_get_auto_grow(stream: *mut GBufferedOutputStream) -> gboolean; |
10254 | pub fn g_buffered_output_stream_get_buffer_size(stream: *mut GBufferedOutputStream) -> size_t; |
10255 | pub fn g_buffered_output_stream_set_auto_grow( |
10256 | stream: *mut GBufferedOutputStream, |
10257 | auto_grow: gboolean, |
10258 | ); |
10259 | pub fn g_buffered_output_stream_set_buffer_size( |
10260 | stream: *mut GBufferedOutputStream, |
10261 | size: size_t, |
10262 | ); |
10263 | |
10264 | //========================================================================= |
10265 | // GBytesIcon |
10266 | //========================================================================= |
10267 | pub fn g_bytes_icon_get_type() -> GType; |
10268 | pub fn g_bytes_icon_new(bytes: *mut glib::GBytes) -> *mut GBytesIcon; |
10269 | pub fn g_bytes_icon_get_bytes(icon: *mut GBytesIcon) -> *mut glib::GBytes; |
10270 | |
10271 | //========================================================================= |
10272 | // GCancellable |
10273 | //========================================================================= |
10274 | pub fn g_cancellable_get_type() -> GType; |
10275 | pub fn g_cancellable_new() -> *mut GCancellable; |
10276 | pub fn g_cancellable_get_current() -> *mut GCancellable; |
10277 | pub fn g_cancellable_cancel(cancellable: *mut GCancellable); |
10278 | pub fn g_cancellable_connect( |
10279 | cancellable: *mut GCancellable, |
10280 | callback: gobject::GCallback, |
10281 | data: gpointer, |
10282 | data_destroy_func: glib::GDestroyNotify, |
10283 | ) -> c_ulong; |
10284 | pub fn g_cancellable_disconnect(cancellable: *mut GCancellable, handler_id: c_ulong); |
10285 | pub fn g_cancellable_get_fd(cancellable: *mut GCancellable) -> c_int; |
10286 | pub fn g_cancellable_is_cancelled(cancellable: *mut GCancellable) -> gboolean; |
10287 | pub fn g_cancellable_make_pollfd( |
10288 | cancellable: *mut GCancellable, |
10289 | pollfd: *mut glib::GPollFD, |
10290 | ) -> gboolean; |
10291 | pub fn g_cancellable_pop_current(cancellable: *mut GCancellable); |
10292 | pub fn g_cancellable_push_current(cancellable: *mut GCancellable); |
10293 | pub fn g_cancellable_release_fd(cancellable: *mut GCancellable); |
10294 | pub fn g_cancellable_reset(cancellable: *mut GCancellable); |
10295 | pub fn g_cancellable_set_error_if_cancelled( |
10296 | cancellable: *mut GCancellable, |
10297 | error: *mut *mut glib::GError, |
10298 | ) -> gboolean; |
10299 | pub fn g_cancellable_source_new(cancellable: *mut GCancellable) -> *mut glib::GSource; |
10300 | |
10301 | //========================================================================= |
10302 | // GCharsetConverter |
10303 | //========================================================================= |
10304 | pub fn g_charset_converter_get_type() -> GType; |
10305 | pub fn g_charset_converter_new( |
10306 | to_charset: *const c_char, |
10307 | from_charset: *const c_char, |
10308 | error: *mut *mut glib::GError, |
10309 | ) -> *mut GCharsetConverter; |
10310 | pub fn g_charset_converter_get_num_fallbacks(converter: *mut GCharsetConverter) -> c_uint; |
10311 | pub fn g_charset_converter_get_use_fallback(converter: *mut GCharsetConverter) -> gboolean; |
10312 | pub fn g_charset_converter_set_use_fallback( |
10313 | converter: *mut GCharsetConverter, |
10314 | use_fallback: gboolean, |
10315 | ); |
10316 | |
10317 | //========================================================================= |
10318 | // GConverterInputStream |
10319 | //========================================================================= |
10320 | pub fn g_converter_input_stream_get_type() -> GType; |
10321 | pub fn g_converter_input_stream_new( |
10322 | base_stream: *mut GInputStream, |
10323 | converter: *mut GConverter, |
10324 | ) -> *mut GInputStream; |
10325 | pub fn g_converter_input_stream_get_converter( |
10326 | converter_stream: *mut GConverterInputStream, |
10327 | ) -> *mut GConverter; |
10328 | |
10329 | //========================================================================= |
10330 | // GConverterOutputStream |
10331 | //========================================================================= |
10332 | pub fn g_converter_output_stream_get_type() -> GType; |
10333 | pub fn g_converter_output_stream_new( |
10334 | base_stream: *mut GOutputStream, |
10335 | converter: *mut GConverter, |
10336 | ) -> *mut GOutputStream; |
10337 | pub fn g_converter_output_stream_get_converter( |
10338 | converter_stream: *mut GConverterOutputStream, |
10339 | ) -> *mut GConverter; |
10340 | |
10341 | //========================================================================= |
10342 | // GCredentials |
10343 | //========================================================================= |
10344 | pub fn g_credentials_get_type() -> GType; |
10345 | pub fn g_credentials_new() -> *mut GCredentials; |
10346 | pub fn g_credentials_get_native( |
10347 | credentials: *mut GCredentials, |
10348 | native_type: GCredentialsType, |
10349 | ) -> gpointer; |
10350 | pub fn g_credentials_get_unix_pid( |
10351 | credentials: *mut GCredentials, |
10352 | error: *mut *mut glib::GError, |
10353 | ) -> c_int; |
10354 | pub fn g_credentials_get_unix_user( |
10355 | credentials: *mut GCredentials, |
10356 | error: *mut *mut glib::GError, |
10357 | ) -> c_uint; |
10358 | pub fn g_credentials_is_same_user( |
10359 | credentials: *mut GCredentials, |
10360 | other_credentials: *mut GCredentials, |
10361 | error: *mut *mut glib::GError, |
10362 | ) -> gboolean; |
10363 | pub fn g_credentials_set_native( |
10364 | credentials: *mut GCredentials, |
10365 | native_type: GCredentialsType, |
10366 | native: gpointer, |
10367 | ); |
10368 | pub fn g_credentials_set_unix_user( |
10369 | credentials: *mut GCredentials, |
10370 | uid: c_uint, |
10371 | error: *mut *mut glib::GError, |
10372 | ) -> gboolean; |
10373 | pub fn g_credentials_to_string(credentials: *mut GCredentials) -> *mut c_char; |
10374 | |
10375 | //========================================================================= |
10376 | // GDBusActionGroup |
10377 | //========================================================================= |
10378 | pub fn g_dbus_action_group_get_type() -> GType; |
10379 | pub fn g_dbus_action_group_get( |
10380 | connection: *mut GDBusConnection, |
10381 | bus_name: *const c_char, |
10382 | object_path: *const c_char, |
10383 | ) -> *mut GDBusActionGroup; |
10384 | |
10385 | //========================================================================= |
10386 | // GDBusAuthObserver |
10387 | //========================================================================= |
10388 | pub fn g_dbus_auth_observer_get_type() -> GType; |
10389 | pub fn g_dbus_auth_observer_new() -> *mut GDBusAuthObserver; |
10390 | pub fn g_dbus_auth_observer_allow_mechanism( |
10391 | observer: *mut GDBusAuthObserver, |
10392 | mechanism: *const c_char, |
10393 | ) -> gboolean; |
10394 | pub fn g_dbus_auth_observer_authorize_authenticated_peer( |
10395 | observer: *mut GDBusAuthObserver, |
10396 | stream: *mut GIOStream, |
10397 | credentials: *mut GCredentials, |
10398 | ) -> gboolean; |
10399 | |
10400 | //========================================================================= |
10401 | // GDBusConnection |
10402 | //========================================================================= |
10403 | pub fn g_dbus_connection_get_type() -> GType; |
10404 | pub fn g_dbus_connection_new_finish( |
10405 | res: *mut GAsyncResult, |
10406 | error: *mut *mut glib::GError, |
10407 | ) -> *mut GDBusConnection; |
10408 | pub fn g_dbus_connection_new_for_address_finish( |
10409 | res: *mut GAsyncResult, |
10410 | error: *mut *mut glib::GError, |
10411 | ) -> *mut GDBusConnection; |
10412 | pub fn g_dbus_connection_new_for_address_sync( |
10413 | address: *const c_char, |
10414 | flags: GDBusConnectionFlags, |
10415 | observer: *mut GDBusAuthObserver, |
10416 | cancellable: *mut GCancellable, |
10417 | error: *mut *mut glib::GError, |
10418 | ) -> *mut GDBusConnection; |
10419 | pub fn g_dbus_connection_new_sync( |
10420 | stream: *mut GIOStream, |
10421 | guid: *const c_char, |
10422 | flags: GDBusConnectionFlags, |
10423 | observer: *mut GDBusAuthObserver, |
10424 | cancellable: *mut GCancellable, |
10425 | error: *mut *mut glib::GError, |
10426 | ) -> *mut GDBusConnection; |
10427 | pub fn g_dbus_connection_new( |
10428 | stream: *mut GIOStream, |
10429 | guid: *const c_char, |
10430 | flags: GDBusConnectionFlags, |
10431 | observer: *mut GDBusAuthObserver, |
10432 | cancellable: *mut GCancellable, |
10433 | callback: GAsyncReadyCallback, |
10434 | user_data: gpointer, |
10435 | ); |
10436 | pub fn g_dbus_connection_new_for_address( |
10437 | address: *const c_char, |
10438 | flags: GDBusConnectionFlags, |
10439 | observer: *mut GDBusAuthObserver, |
10440 | cancellable: *mut GCancellable, |
10441 | callback: GAsyncReadyCallback, |
10442 | user_data: gpointer, |
10443 | ); |
10444 | pub fn g_dbus_connection_add_filter( |
10445 | connection: *mut GDBusConnection, |
10446 | filter_function: GDBusMessageFilterFunction, |
10447 | user_data: gpointer, |
10448 | user_data_free_func: glib::GDestroyNotify, |
10449 | ) -> c_uint; |
10450 | pub fn g_dbus_connection_call( |
10451 | connection: *mut GDBusConnection, |
10452 | bus_name: *const c_char, |
10453 | object_path: *const c_char, |
10454 | interface_name: *const c_char, |
10455 | method_name: *const c_char, |
10456 | parameters: *mut glib::GVariant, |
10457 | reply_type: *const glib::GVariantType, |
10458 | flags: GDBusCallFlags, |
10459 | timeout_msec: c_int, |
10460 | cancellable: *mut GCancellable, |
10461 | callback: GAsyncReadyCallback, |
10462 | user_data: gpointer, |
10463 | ); |
10464 | pub fn g_dbus_connection_call_finish( |
10465 | connection: *mut GDBusConnection, |
10466 | res: *mut GAsyncResult, |
10467 | error: *mut *mut glib::GError, |
10468 | ) -> *mut glib::GVariant; |
10469 | pub fn g_dbus_connection_call_sync( |
10470 | connection: *mut GDBusConnection, |
10471 | bus_name: *const c_char, |
10472 | object_path: *const c_char, |
10473 | interface_name: *const c_char, |
10474 | method_name: *const c_char, |
10475 | parameters: *mut glib::GVariant, |
10476 | reply_type: *const glib::GVariantType, |
10477 | flags: GDBusCallFlags, |
10478 | timeout_msec: c_int, |
10479 | cancellable: *mut GCancellable, |
10480 | error: *mut *mut glib::GError, |
10481 | ) -> *mut glib::GVariant; |
10482 | pub fn g_dbus_connection_call_with_unix_fd_list( |
10483 | connection: *mut GDBusConnection, |
10484 | bus_name: *const c_char, |
10485 | object_path: *const c_char, |
10486 | interface_name: *const c_char, |
10487 | method_name: *const c_char, |
10488 | parameters: *mut glib::GVariant, |
10489 | reply_type: *const glib::GVariantType, |
10490 | flags: GDBusCallFlags, |
10491 | timeout_msec: c_int, |
10492 | fd_list: *mut GUnixFDList, |
10493 | cancellable: *mut GCancellable, |
10494 | callback: GAsyncReadyCallback, |
10495 | user_data: gpointer, |
10496 | ); |
10497 | pub fn g_dbus_connection_call_with_unix_fd_list_finish( |
10498 | connection: *mut GDBusConnection, |
10499 | out_fd_list: *mut *mut GUnixFDList, |
10500 | res: *mut GAsyncResult, |
10501 | error: *mut *mut glib::GError, |
10502 | ) -> *mut glib::GVariant; |
10503 | pub fn g_dbus_connection_call_with_unix_fd_list_sync( |
10504 | connection: *mut GDBusConnection, |
10505 | bus_name: *const c_char, |
10506 | object_path: *const c_char, |
10507 | interface_name: *const c_char, |
10508 | method_name: *const c_char, |
10509 | parameters: *mut glib::GVariant, |
10510 | reply_type: *const glib::GVariantType, |
10511 | flags: GDBusCallFlags, |
10512 | timeout_msec: c_int, |
10513 | fd_list: *mut GUnixFDList, |
10514 | out_fd_list: *mut *mut GUnixFDList, |
10515 | cancellable: *mut GCancellable, |
10516 | error: *mut *mut glib::GError, |
10517 | ) -> *mut glib::GVariant; |
10518 | pub fn g_dbus_connection_close( |
10519 | connection: *mut GDBusConnection, |
10520 | cancellable: *mut GCancellable, |
10521 | callback: GAsyncReadyCallback, |
10522 | user_data: gpointer, |
10523 | ); |
10524 | pub fn g_dbus_connection_close_finish( |
10525 | connection: *mut GDBusConnection, |
10526 | res: *mut GAsyncResult, |
10527 | error: *mut *mut glib::GError, |
10528 | ) -> gboolean; |
10529 | pub fn g_dbus_connection_close_sync( |
10530 | connection: *mut GDBusConnection, |
10531 | cancellable: *mut GCancellable, |
10532 | error: *mut *mut glib::GError, |
10533 | ) -> gboolean; |
10534 | pub fn g_dbus_connection_emit_signal( |
10535 | connection: *mut GDBusConnection, |
10536 | destination_bus_name: *const c_char, |
10537 | object_path: *const c_char, |
10538 | interface_name: *const c_char, |
10539 | signal_name: *const c_char, |
10540 | parameters: *mut glib::GVariant, |
10541 | error: *mut *mut glib::GError, |
10542 | ) -> gboolean; |
10543 | pub fn g_dbus_connection_export_action_group( |
10544 | connection: *mut GDBusConnection, |
10545 | object_path: *const c_char, |
10546 | action_group: *mut GActionGroup, |
10547 | error: *mut *mut glib::GError, |
10548 | ) -> c_uint; |
10549 | pub fn g_dbus_connection_export_menu_model( |
10550 | connection: *mut GDBusConnection, |
10551 | object_path: *const c_char, |
10552 | menu: *mut GMenuModel, |
10553 | error: *mut *mut glib::GError, |
10554 | ) -> c_uint; |
10555 | pub fn g_dbus_connection_flush( |
10556 | connection: *mut GDBusConnection, |
10557 | cancellable: *mut GCancellable, |
10558 | callback: GAsyncReadyCallback, |
10559 | user_data: gpointer, |
10560 | ); |
10561 | pub fn g_dbus_connection_flush_finish( |
10562 | connection: *mut GDBusConnection, |
10563 | res: *mut GAsyncResult, |
10564 | error: *mut *mut glib::GError, |
10565 | ) -> gboolean; |
10566 | pub fn g_dbus_connection_flush_sync( |
10567 | connection: *mut GDBusConnection, |
10568 | cancellable: *mut GCancellable, |
10569 | error: *mut *mut glib::GError, |
10570 | ) -> gboolean; |
10571 | pub fn g_dbus_connection_get_capabilities( |
10572 | connection: *mut GDBusConnection, |
10573 | ) -> GDBusCapabilityFlags; |
10574 | pub fn g_dbus_connection_get_exit_on_close(connection: *mut GDBusConnection) -> gboolean; |
10575 | #[cfg (feature = "v2_60" )] |
10576 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
10577 | pub fn g_dbus_connection_get_flags(connection: *mut GDBusConnection) -> GDBusConnectionFlags; |
10578 | pub fn g_dbus_connection_get_guid(connection: *mut GDBusConnection) -> *const c_char; |
10579 | pub fn g_dbus_connection_get_last_serial(connection: *mut GDBusConnection) -> u32; |
10580 | pub fn g_dbus_connection_get_peer_credentials( |
10581 | connection: *mut GDBusConnection, |
10582 | ) -> *mut GCredentials; |
10583 | pub fn g_dbus_connection_get_stream(connection: *mut GDBusConnection) -> *mut GIOStream; |
10584 | pub fn g_dbus_connection_get_unique_name(connection: *mut GDBusConnection) -> *const c_char; |
10585 | pub fn g_dbus_connection_is_closed(connection: *mut GDBusConnection) -> gboolean; |
10586 | pub fn g_dbus_connection_register_object( |
10587 | connection: *mut GDBusConnection, |
10588 | object_path: *const c_char, |
10589 | interface_info: *mut GDBusInterfaceInfo, |
10590 | vtable: *const GDBusInterfaceVTable, |
10591 | user_data: gpointer, |
10592 | user_data_free_func: glib::GDestroyNotify, |
10593 | error: *mut *mut glib::GError, |
10594 | ) -> c_uint; |
10595 | pub fn g_dbus_connection_register_object_with_closures( |
10596 | connection: *mut GDBusConnection, |
10597 | object_path: *const c_char, |
10598 | interface_info: *mut GDBusInterfaceInfo, |
10599 | method_call_closure: *mut gobject::GClosure, |
10600 | get_property_closure: *mut gobject::GClosure, |
10601 | set_property_closure: *mut gobject::GClosure, |
10602 | error: *mut *mut glib::GError, |
10603 | ) -> c_uint; |
10604 | pub fn g_dbus_connection_register_subtree( |
10605 | connection: *mut GDBusConnection, |
10606 | object_path: *const c_char, |
10607 | vtable: *const GDBusSubtreeVTable, |
10608 | flags: GDBusSubtreeFlags, |
10609 | user_data: gpointer, |
10610 | user_data_free_func: glib::GDestroyNotify, |
10611 | error: *mut *mut glib::GError, |
10612 | ) -> c_uint; |
10613 | pub fn g_dbus_connection_remove_filter(connection: *mut GDBusConnection, filter_id: c_uint); |
10614 | pub fn g_dbus_connection_send_message( |
10615 | connection: *mut GDBusConnection, |
10616 | message: *mut GDBusMessage, |
10617 | flags: GDBusSendMessageFlags, |
10618 | out_serial: *mut u32, |
10619 | error: *mut *mut glib::GError, |
10620 | ) -> gboolean; |
10621 | pub fn g_dbus_connection_send_message_with_reply( |
10622 | connection: *mut GDBusConnection, |
10623 | message: *mut GDBusMessage, |
10624 | flags: GDBusSendMessageFlags, |
10625 | timeout_msec: c_int, |
10626 | out_serial: *mut u32, |
10627 | cancellable: *mut GCancellable, |
10628 | callback: GAsyncReadyCallback, |
10629 | user_data: gpointer, |
10630 | ); |
10631 | pub fn g_dbus_connection_send_message_with_reply_finish( |
10632 | connection: *mut GDBusConnection, |
10633 | res: *mut GAsyncResult, |
10634 | error: *mut *mut glib::GError, |
10635 | ) -> *mut GDBusMessage; |
10636 | pub fn g_dbus_connection_send_message_with_reply_sync( |
10637 | connection: *mut GDBusConnection, |
10638 | message: *mut GDBusMessage, |
10639 | flags: GDBusSendMessageFlags, |
10640 | timeout_msec: c_int, |
10641 | out_serial: *mut u32, |
10642 | cancellable: *mut GCancellable, |
10643 | error: *mut *mut glib::GError, |
10644 | ) -> *mut GDBusMessage; |
10645 | pub fn g_dbus_connection_set_exit_on_close( |
10646 | connection: *mut GDBusConnection, |
10647 | exit_on_close: gboolean, |
10648 | ); |
10649 | pub fn g_dbus_connection_signal_subscribe( |
10650 | connection: *mut GDBusConnection, |
10651 | sender: *const c_char, |
10652 | interface_name: *const c_char, |
10653 | member: *const c_char, |
10654 | object_path: *const c_char, |
10655 | arg0: *const c_char, |
10656 | flags: GDBusSignalFlags, |
10657 | callback: GDBusSignalCallback, |
10658 | user_data: gpointer, |
10659 | user_data_free_func: glib::GDestroyNotify, |
10660 | ) -> c_uint; |
10661 | pub fn g_dbus_connection_signal_unsubscribe( |
10662 | connection: *mut GDBusConnection, |
10663 | subscription_id: c_uint, |
10664 | ); |
10665 | pub fn g_dbus_connection_start_message_processing(connection: *mut GDBusConnection); |
10666 | pub fn g_dbus_connection_unexport_action_group( |
10667 | connection: *mut GDBusConnection, |
10668 | export_id: c_uint, |
10669 | ); |
10670 | pub fn g_dbus_connection_unexport_menu_model( |
10671 | connection: *mut GDBusConnection, |
10672 | export_id: c_uint, |
10673 | ); |
10674 | pub fn g_dbus_connection_unregister_object( |
10675 | connection: *mut GDBusConnection, |
10676 | registration_id: c_uint, |
10677 | ) -> gboolean; |
10678 | pub fn g_dbus_connection_unregister_subtree( |
10679 | connection: *mut GDBusConnection, |
10680 | registration_id: c_uint, |
10681 | ) -> gboolean; |
10682 | |
10683 | //========================================================================= |
10684 | // GDBusInterfaceSkeleton |
10685 | //========================================================================= |
10686 | pub fn g_dbus_interface_skeleton_get_type() -> GType; |
10687 | pub fn g_dbus_interface_skeleton_export( |
10688 | interface_: *mut GDBusInterfaceSkeleton, |
10689 | connection: *mut GDBusConnection, |
10690 | object_path: *const c_char, |
10691 | error: *mut *mut glib::GError, |
10692 | ) -> gboolean; |
10693 | pub fn g_dbus_interface_skeleton_flush(interface_: *mut GDBusInterfaceSkeleton); |
10694 | pub fn g_dbus_interface_skeleton_get_connection( |
10695 | interface_: *mut GDBusInterfaceSkeleton, |
10696 | ) -> *mut GDBusConnection; |
10697 | pub fn g_dbus_interface_skeleton_get_connections( |
10698 | interface_: *mut GDBusInterfaceSkeleton, |
10699 | ) -> *mut glib::GList; |
10700 | pub fn g_dbus_interface_skeleton_get_flags( |
10701 | interface_: *mut GDBusInterfaceSkeleton, |
10702 | ) -> GDBusInterfaceSkeletonFlags; |
10703 | pub fn g_dbus_interface_skeleton_get_info( |
10704 | interface_: *mut GDBusInterfaceSkeleton, |
10705 | ) -> *mut GDBusInterfaceInfo; |
10706 | pub fn g_dbus_interface_skeleton_get_object_path( |
10707 | interface_: *mut GDBusInterfaceSkeleton, |
10708 | ) -> *const c_char; |
10709 | pub fn g_dbus_interface_skeleton_get_properties( |
10710 | interface_: *mut GDBusInterfaceSkeleton, |
10711 | ) -> *mut glib::GVariant; |
10712 | pub fn g_dbus_interface_skeleton_get_vtable( |
10713 | interface_: *mut GDBusInterfaceSkeleton, |
10714 | ) -> *mut GDBusInterfaceVTable; |
10715 | pub fn g_dbus_interface_skeleton_has_connection( |
10716 | interface_: *mut GDBusInterfaceSkeleton, |
10717 | connection: *mut GDBusConnection, |
10718 | ) -> gboolean; |
10719 | pub fn g_dbus_interface_skeleton_set_flags( |
10720 | interface_: *mut GDBusInterfaceSkeleton, |
10721 | flags: GDBusInterfaceSkeletonFlags, |
10722 | ); |
10723 | pub fn g_dbus_interface_skeleton_unexport(interface_: *mut GDBusInterfaceSkeleton); |
10724 | pub fn g_dbus_interface_skeleton_unexport_from_connection( |
10725 | interface_: *mut GDBusInterfaceSkeleton, |
10726 | connection: *mut GDBusConnection, |
10727 | ); |
10728 | |
10729 | //========================================================================= |
10730 | // GDBusMenuModel |
10731 | //========================================================================= |
10732 | pub fn g_dbus_menu_model_get_type() -> GType; |
10733 | pub fn g_dbus_menu_model_get( |
10734 | connection: *mut GDBusConnection, |
10735 | bus_name: *const c_char, |
10736 | object_path: *const c_char, |
10737 | ) -> *mut GDBusMenuModel; |
10738 | |
10739 | //========================================================================= |
10740 | // GDBusMessage |
10741 | //========================================================================= |
10742 | pub fn g_dbus_message_get_type() -> GType; |
10743 | pub fn g_dbus_message_new() -> *mut GDBusMessage; |
10744 | pub fn g_dbus_message_new_from_blob( |
10745 | blob: *mut u8, |
10746 | blob_len: size_t, |
10747 | capabilities: GDBusCapabilityFlags, |
10748 | error: *mut *mut glib::GError, |
10749 | ) -> *mut GDBusMessage; |
10750 | pub fn g_dbus_message_new_method_call( |
10751 | name: *const c_char, |
10752 | path: *const c_char, |
10753 | interface_: *const c_char, |
10754 | method: *const c_char, |
10755 | ) -> *mut GDBusMessage; |
10756 | pub fn g_dbus_message_new_signal( |
10757 | path: *const c_char, |
10758 | interface_: *const c_char, |
10759 | signal: *const c_char, |
10760 | ) -> *mut GDBusMessage; |
10761 | pub fn g_dbus_message_bytes_needed( |
10762 | blob: *mut u8, |
10763 | blob_len: size_t, |
10764 | error: *mut *mut glib::GError, |
10765 | ) -> ssize_t; |
10766 | pub fn g_dbus_message_copy( |
10767 | message: *mut GDBusMessage, |
10768 | error: *mut *mut glib::GError, |
10769 | ) -> *mut GDBusMessage; |
10770 | pub fn g_dbus_message_get_arg0(message: *mut GDBusMessage) -> *const c_char; |
10771 | pub fn g_dbus_message_get_body(message: *mut GDBusMessage) -> *mut glib::GVariant; |
10772 | pub fn g_dbus_message_get_byte_order(message: *mut GDBusMessage) -> GDBusMessageByteOrder; |
10773 | pub fn g_dbus_message_get_destination(message: *mut GDBusMessage) -> *const c_char; |
10774 | pub fn g_dbus_message_get_error_name(message: *mut GDBusMessage) -> *const c_char; |
10775 | pub fn g_dbus_message_get_flags(message: *mut GDBusMessage) -> GDBusMessageFlags; |
10776 | pub fn g_dbus_message_get_header( |
10777 | message: *mut GDBusMessage, |
10778 | header_field: GDBusMessageHeaderField, |
10779 | ) -> *mut glib::GVariant; |
10780 | pub fn g_dbus_message_get_header_fields(message: *mut GDBusMessage) -> *mut u8; |
10781 | pub fn g_dbus_message_get_interface(message: *mut GDBusMessage) -> *const c_char; |
10782 | pub fn g_dbus_message_get_locked(message: *mut GDBusMessage) -> gboolean; |
10783 | pub fn g_dbus_message_get_member(message: *mut GDBusMessage) -> *const c_char; |
10784 | pub fn g_dbus_message_get_message_type(message: *mut GDBusMessage) -> GDBusMessageType; |
10785 | pub fn g_dbus_message_get_num_unix_fds(message: *mut GDBusMessage) -> u32; |
10786 | pub fn g_dbus_message_get_path(message: *mut GDBusMessage) -> *const c_char; |
10787 | pub fn g_dbus_message_get_reply_serial(message: *mut GDBusMessage) -> u32; |
10788 | pub fn g_dbus_message_get_sender(message: *mut GDBusMessage) -> *const c_char; |
10789 | pub fn g_dbus_message_get_serial(message: *mut GDBusMessage) -> u32; |
10790 | pub fn g_dbus_message_get_signature(message: *mut GDBusMessage) -> *const c_char; |
10791 | pub fn g_dbus_message_get_unix_fd_list(message: *mut GDBusMessage) -> *mut GUnixFDList; |
10792 | pub fn g_dbus_message_lock(message: *mut GDBusMessage); |
10793 | pub fn g_dbus_message_new_method_error( |
10794 | method_call_message: *mut GDBusMessage, |
10795 | error_name: *const c_char, |
10796 | error_message_format: *const c_char, |
10797 | ... |
10798 | ) -> *mut GDBusMessage; |
10799 | pub fn g_dbus_message_new_method_error_literal( |
10800 | method_call_message: *mut GDBusMessage, |
10801 | error_name: *const c_char, |
10802 | error_message: *const c_char, |
10803 | ) -> *mut GDBusMessage; |
10804 | //pub fn g_dbus_message_new_method_error_valist(method_call_message: *mut GDBusMessage, error_name: *const c_char, error_message_format: *const c_char, var_args: /*Unimplemented*/va_list) -> *mut GDBusMessage; |
10805 | pub fn g_dbus_message_new_method_reply( |
10806 | method_call_message: *mut GDBusMessage, |
10807 | ) -> *mut GDBusMessage; |
10808 | pub fn g_dbus_message_print(message: *mut GDBusMessage, indent: c_uint) -> *mut c_char; |
10809 | pub fn g_dbus_message_set_body(message: *mut GDBusMessage, body: *mut glib::GVariant); |
10810 | pub fn g_dbus_message_set_byte_order( |
10811 | message: *mut GDBusMessage, |
10812 | byte_order: GDBusMessageByteOrder, |
10813 | ); |
10814 | pub fn g_dbus_message_set_destination(message: *mut GDBusMessage, value: *const c_char); |
10815 | pub fn g_dbus_message_set_error_name(message: *mut GDBusMessage, value: *const c_char); |
10816 | pub fn g_dbus_message_set_flags(message: *mut GDBusMessage, flags: GDBusMessageFlags); |
10817 | pub fn g_dbus_message_set_header( |
10818 | message: *mut GDBusMessage, |
10819 | header_field: GDBusMessageHeaderField, |
10820 | value: *mut glib::GVariant, |
10821 | ); |
10822 | pub fn g_dbus_message_set_interface(message: *mut GDBusMessage, value: *const c_char); |
10823 | pub fn g_dbus_message_set_member(message: *mut GDBusMessage, value: *const c_char); |
10824 | pub fn g_dbus_message_set_message_type(message: *mut GDBusMessage, type_: GDBusMessageType); |
10825 | pub fn g_dbus_message_set_num_unix_fds(message: *mut GDBusMessage, value: u32); |
10826 | pub fn g_dbus_message_set_path(message: *mut GDBusMessage, value: *const c_char); |
10827 | pub fn g_dbus_message_set_reply_serial(message: *mut GDBusMessage, value: u32); |
10828 | pub fn g_dbus_message_set_sender(message: *mut GDBusMessage, value: *const c_char); |
10829 | pub fn g_dbus_message_set_serial(message: *mut GDBusMessage, serial: u32); |
10830 | pub fn g_dbus_message_set_signature(message: *mut GDBusMessage, value: *const c_char); |
10831 | pub fn g_dbus_message_set_unix_fd_list(message: *mut GDBusMessage, fd_list: *mut GUnixFDList); |
10832 | pub fn g_dbus_message_to_blob( |
10833 | message: *mut GDBusMessage, |
10834 | out_size: *mut size_t, |
10835 | capabilities: GDBusCapabilityFlags, |
10836 | error: *mut *mut glib::GError, |
10837 | ) -> *mut u8; |
10838 | pub fn g_dbus_message_to_gerror( |
10839 | message: *mut GDBusMessage, |
10840 | error: *mut *mut glib::GError, |
10841 | ) -> gboolean; |
10842 | |
10843 | //========================================================================= |
10844 | // GDBusMethodInvocation |
10845 | //========================================================================= |
10846 | pub fn g_dbus_method_invocation_get_type() -> GType; |
10847 | pub fn g_dbus_method_invocation_get_connection( |
10848 | invocation: *mut GDBusMethodInvocation, |
10849 | ) -> *mut GDBusConnection; |
10850 | pub fn g_dbus_method_invocation_get_interface_name( |
10851 | invocation: *mut GDBusMethodInvocation, |
10852 | ) -> *const c_char; |
10853 | pub fn g_dbus_method_invocation_get_message( |
10854 | invocation: *mut GDBusMethodInvocation, |
10855 | ) -> *mut GDBusMessage; |
10856 | pub fn g_dbus_method_invocation_get_method_info( |
10857 | invocation: *mut GDBusMethodInvocation, |
10858 | ) -> *const GDBusMethodInfo; |
10859 | pub fn g_dbus_method_invocation_get_method_name( |
10860 | invocation: *mut GDBusMethodInvocation, |
10861 | ) -> *const c_char; |
10862 | pub fn g_dbus_method_invocation_get_object_path( |
10863 | invocation: *mut GDBusMethodInvocation, |
10864 | ) -> *const c_char; |
10865 | pub fn g_dbus_method_invocation_get_parameters( |
10866 | invocation: *mut GDBusMethodInvocation, |
10867 | ) -> *mut glib::GVariant; |
10868 | pub fn g_dbus_method_invocation_get_property_info( |
10869 | invocation: *mut GDBusMethodInvocation, |
10870 | ) -> *const GDBusPropertyInfo; |
10871 | pub fn g_dbus_method_invocation_get_sender( |
10872 | invocation: *mut GDBusMethodInvocation, |
10873 | ) -> *const c_char; |
10874 | pub fn g_dbus_method_invocation_get_user_data( |
10875 | invocation: *mut GDBusMethodInvocation, |
10876 | ) -> gpointer; |
10877 | pub fn g_dbus_method_invocation_return_dbus_error( |
10878 | invocation: *mut GDBusMethodInvocation, |
10879 | error_name: *const c_char, |
10880 | error_message: *const c_char, |
10881 | ); |
10882 | pub fn g_dbus_method_invocation_return_error( |
10883 | invocation: *mut GDBusMethodInvocation, |
10884 | domain: glib::GQuark, |
10885 | code: c_int, |
10886 | format: *const c_char, |
10887 | ... |
10888 | ); |
10889 | pub fn g_dbus_method_invocation_return_error_literal( |
10890 | invocation: *mut GDBusMethodInvocation, |
10891 | domain: glib::GQuark, |
10892 | code: c_int, |
10893 | message: *const c_char, |
10894 | ); |
10895 | //pub fn g_dbus_method_invocation_return_error_valist(invocation: *mut GDBusMethodInvocation, domain: glib::GQuark, code: c_int, format: *const c_char, var_args: /*Unimplemented*/va_list); |
10896 | pub fn g_dbus_method_invocation_return_gerror( |
10897 | invocation: *mut GDBusMethodInvocation, |
10898 | error: *const glib::GError, |
10899 | ); |
10900 | pub fn g_dbus_method_invocation_return_value( |
10901 | invocation: *mut GDBusMethodInvocation, |
10902 | parameters: *mut glib::GVariant, |
10903 | ); |
10904 | pub fn g_dbus_method_invocation_return_value_with_unix_fd_list( |
10905 | invocation: *mut GDBusMethodInvocation, |
10906 | parameters: *mut glib::GVariant, |
10907 | fd_list: *mut GUnixFDList, |
10908 | ); |
10909 | pub fn g_dbus_method_invocation_take_error( |
10910 | invocation: *mut GDBusMethodInvocation, |
10911 | error: *mut glib::GError, |
10912 | ); |
10913 | |
10914 | //========================================================================= |
10915 | // GDBusObjectManagerClient |
10916 | //========================================================================= |
10917 | pub fn g_dbus_object_manager_client_get_type() -> GType; |
10918 | pub fn g_dbus_object_manager_client_new_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_finish( |
10923 | res: *mut GAsyncResult, |
10924 | error: *mut *mut glib::GError, |
10925 | ) -> *mut GDBusObjectManagerClient; |
10926 | pub fn g_dbus_object_manager_client_new_for_bus_sync( |
10927 | bus_type: GBusType, |
10928 | flags: GDBusObjectManagerClientFlags, |
10929 | name: *const c_char, |
10930 | object_path: *const c_char, |
10931 | get_proxy_type_func: GDBusProxyTypeFunc, |
10932 | get_proxy_type_user_data: gpointer, |
10933 | get_proxy_type_destroy_notify: glib::GDestroyNotify, |
10934 | cancellable: *mut GCancellable, |
10935 | error: *mut *mut glib::GError, |
10936 | ) -> *mut GDBusObjectManagerClient; |
10937 | pub fn g_dbus_object_manager_client_new_sync( |
10938 | connection: *mut GDBusConnection, |
10939 | flags: GDBusObjectManagerClientFlags, |
10940 | name: *const c_char, |
10941 | object_path: *const c_char, |
10942 | get_proxy_type_func: GDBusProxyTypeFunc, |
10943 | get_proxy_type_user_data: gpointer, |
10944 | get_proxy_type_destroy_notify: glib::GDestroyNotify, |
10945 | cancellable: *mut GCancellable, |
10946 | error: *mut *mut glib::GError, |
10947 | ) -> *mut GDBusObjectManagerClient; |
10948 | pub fn g_dbus_object_manager_client_new( |
10949 | connection: *mut GDBusConnection, |
10950 | flags: GDBusObjectManagerClientFlags, |
10951 | name: *const c_char, |
10952 | object_path: *const c_char, |
10953 | get_proxy_type_func: GDBusProxyTypeFunc, |
10954 | get_proxy_type_user_data: gpointer, |
10955 | get_proxy_type_destroy_notify: glib::GDestroyNotify, |
10956 | cancellable: *mut GCancellable, |
10957 | callback: GAsyncReadyCallback, |
10958 | user_data: gpointer, |
10959 | ); |
10960 | pub fn g_dbus_object_manager_client_new_for_bus( |
10961 | bus_type: GBusType, |
10962 | flags: GDBusObjectManagerClientFlags, |
10963 | name: *const c_char, |
10964 | object_path: *const c_char, |
10965 | get_proxy_type_func: GDBusProxyTypeFunc, |
10966 | get_proxy_type_user_data: gpointer, |
10967 | get_proxy_type_destroy_notify: glib::GDestroyNotify, |
10968 | cancellable: *mut GCancellable, |
10969 | callback: GAsyncReadyCallback, |
10970 | user_data: gpointer, |
10971 | ); |
10972 | pub fn g_dbus_object_manager_client_get_connection( |
10973 | manager: *mut GDBusObjectManagerClient, |
10974 | ) -> *mut GDBusConnection; |
10975 | pub fn g_dbus_object_manager_client_get_flags( |
10976 | manager: *mut GDBusObjectManagerClient, |
10977 | ) -> GDBusObjectManagerClientFlags; |
10978 | pub fn g_dbus_object_manager_client_get_name( |
10979 | manager: *mut GDBusObjectManagerClient, |
10980 | ) -> *const c_char; |
10981 | pub fn g_dbus_object_manager_client_get_name_owner( |
10982 | manager: *mut GDBusObjectManagerClient, |
10983 | ) -> *mut c_char; |
10984 | |
10985 | //========================================================================= |
10986 | // GDBusObjectManagerServer |
10987 | //========================================================================= |
10988 | pub fn g_dbus_object_manager_server_get_type() -> GType; |
10989 | pub fn g_dbus_object_manager_server_new( |
10990 | object_path: *const c_char, |
10991 | ) -> *mut GDBusObjectManagerServer; |
10992 | pub fn g_dbus_object_manager_server_export( |
10993 | manager: *mut GDBusObjectManagerServer, |
10994 | object: *mut GDBusObjectSkeleton, |
10995 | ); |
10996 | pub fn g_dbus_object_manager_server_export_uniquely( |
10997 | manager: *mut GDBusObjectManagerServer, |
10998 | object: *mut GDBusObjectSkeleton, |
10999 | ); |
11000 | pub fn g_dbus_object_manager_server_get_connection( |
11001 | manager: *mut GDBusObjectManagerServer, |
11002 | ) -> *mut GDBusConnection; |
11003 | pub fn g_dbus_object_manager_server_is_exported( |
11004 | manager: *mut GDBusObjectManagerServer, |
11005 | object: *mut GDBusObjectSkeleton, |
11006 | ) -> gboolean; |
11007 | pub fn g_dbus_object_manager_server_set_connection( |
11008 | manager: *mut GDBusObjectManagerServer, |
11009 | connection: *mut GDBusConnection, |
11010 | ); |
11011 | pub fn g_dbus_object_manager_server_unexport( |
11012 | manager: *mut GDBusObjectManagerServer, |
11013 | object_path: *const c_char, |
11014 | ) -> gboolean; |
11015 | |
11016 | //========================================================================= |
11017 | // GDBusObjectProxy |
11018 | //========================================================================= |
11019 | pub fn g_dbus_object_proxy_get_type() -> GType; |
11020 | pub fn g_dbus_object_proxy_new( |
11021 | connection: *mut GDBusConnection, |
11022 | object_path: *const c_char, |
11023 | ) -> *mut GDBusObjectProxy; |
11024 | pub fn g_dbus_object_proxy_get_connection(proxy: *mut GDBusObjectProxy) |
11025 | -> *mut GDBusConnection; |
11026 | |
11027 | //========================================================================= |
11028 | // GDBusObjectSkeleton |
11029 | //========================================================================= |
11030 | pub fn g_dbus_object_skeleton_get_type() -> GType; |
11031 | pub fn g_dbus_object_skeleton_new(object_path: *const c_char) -> *mut GDBusObjectSkeleton; |
11032 | pub fn g_dbus_object_skeleton_add_interface( |
11033 | object: *mut GDBusObjectSkeleton, |
11034 | interface_: *mut GDBusInterfaceSkeleton, |
11035 | ); |
11036 | pub fn g_dbus_object_skeleton_flush(object: *mut GDBusObjectSkeleton); |
11037 | pub fn g_dbus_object_skeleton_remove_interface( |
11038 | object: *mut GDBusObjectSkeleton, |
11039 | interface_: *mut GDBusInterfaceSkeleton, |
11040 | ); |
11041 | pub fn g_dbus_object_skeleton_remove_interface_by_name( |
11042 | object: *mut GDBusObjectSkeleton, |
11043 | interface_name: *const c_char, |
11044 | ); |
11045 | pub fn g_dbus_object_skeleton_set_object_path( |
11046 | object: *mut GDBusObjectSkeleton, |
11047 | object_path: *const c_char, |
11048 | ); |
11049 | |
11050 | //========================================================================= |
11051 | // GDBusProxy |
11052 | //========================================================================= |
11053 | pub fn g_dbus_proxy_get_type() -> GType; |
11054 | pub fn g_dbus_proxy_new_finish( |
11055 | res: *mut GAsyncResult, |
11056 | error: *mut *mut glib::GError, |
11057 | ) -> *mut GDBusProxy; |
11058 | pub fn g_dbus_proxy_new_for_bus_finish( |
11059 | res: *mut GAsyncResult, |
11060 | error: *mut *mut glib::GError, |
11061 | ) -> *mut GDBusProxy; |
11062 | pub fn g_dbus_proxy_new_for_bus_sync( |
11063 | bus_type: GBusType, |
11064 | flags: GDBusProxyFlags, |
11065 | info: *mut GDBusInterfaceInfo, |
11066 | name: *const c_char, |
11067 | object_path: *const c_char, |
11068 | interface_name: *const c_char, |
11069 | cancellable: *mut GCancellable, |
11070 | error: *mut *mut glib::GError, |
11071 | ) -> *mut GDBusProxy; |
11072 | pub fn g_dbus_proxy_new_sync( |
11073 | connection: *mut GDBusConnection, |
11074 | flags: GDBusProxyFlags, |
11075 | info: *mut GDBusInterfaceInfo, |
11076 | name: *const c_char, |
11077 | object_path: *const c_char, |
11078 | interface_name: *const c_char, |
11079 | cancellable: *mut GCancellable, |
11080 | error: *mut *mut glib::GError, |
11081 | ) -> *mut GDBusProxy; |
11082 | pub fn g_dbus_proxy_new( |
11083 | connection: *mut GDBusConnection, |
11084 | flags: GDBusProxyFlags, |
11085 | info: *mut GDBusInterfaceInfo, |
11086 | name: *const c_char, |
11087 | object_path: *const c_char, |
11088 | interface_name: *const c_char, |
11089 | cancellable: *mut GCancellable, |
11090 | callback: GAsyncReadyCallback, |
11091 | user_data: gpointer, |
11092 | ); |
11093 | pub fn g_dbus_proxy_new_for_bus( |
11094 | bus_type: GBusType, |
11095 | flags: GDBusProxyFlags, |
11096 | info: *mut GDBusInterfaceInfo, |
11097 | name: *const c_char, |
11098 | object_path: *const c_char, |
11099 | interface_name: *const c_char, |
11100 | cancellable: *mut GCancellable, |
11101 | callback: GAsyncReadyCallback, |
11102 | user_data: gpointer, |
11103 | ); |
11104 | pub fn g_dbus_proxy_call( |
11105 | proxy: *mut GDBusProxy, |
11106 | method_name: *const c_char, |
11107 | parameters: *mut glib::GVariant, |
11108 | flags: GDBusCallFlags, |
11109 | timeout_msec: c_int, |
11110 | cancellable: *mut GCancellable, |
11111 | callback: GAsyncReadyCallback, |
11112 | user_data: gpointer, |
11113 | ); |
11114 | pub fn g_dbus_proxy_call_finish( |
11115 | proxy: *mut GDBusProxy, |
11116 | res: *mut GAsyncResult, |
11117 | error: *mut *mut glib::GError, |
11118 | ) -> *mut glib::GVariant; |
11119 | pub fn g_dbus_proxy_call_sync( |
11120 | proxy: *mut GDBusProxy, |
11121 | method_name: *const c_char, |
11122 | parameters: *mut glib::GVariant, |
11123 | flags: GDBusCallFlags, |
11124 | timeout_msec: c_int, |
11125 | cancellable: *mut GCancellable, |
11126 | error: *mut *mut glib::GError, |
11127 | ) -> *mut glib::GVariant; |
11128 | pub fn g_dbus_proxy_call_with_unix_fd_list( |
11129 | proxy: *mut GDBusProxy, |
11130 | method_name: *const c_char, |
11131 | parameters: *mut glib::GVariant, |
11132 | flags: GDBusCallFlags, |
11133 | timeout_msec: c_int, |
11134 | fd_list: *mut GUnixFDList, |
11135 | cancellable: *mut GCancellable, |
11136 | callback: GAsyncReadyCallback, |
11137 | user_data: gpointer, |
11138 | ); |
11139 | pub fn g_dbus_proxy_call_with_unix_fd_list_finish( |
11140 | proxy: *mut GDBusProxy, |
11141 | out_fd_list: *mut *mut GUnixFDList, |
11142 | res: *mut GAsyncResult, |
11143 | error: *mut *mut glib::GError, |
11144 | ) -> *mut glib::GVariant; |
11145 | pub fn g_dbus_proxy_call_with_unix_fd_list_sync( |
11146 | proxy: *mut GDBusProxy, |
11147 | method_name: *const c_char, |
11148 | parameters: *mut glib::GVariant, |
11149 | flags: GDBusCallFlags, |
11150 | timeout_msec: c_int, |
11151 | fd_list: *mut GUnixFDList, |
11152 | out_fd_list: *mut *mut GUnixFDList, |
11153 | cancellable: *mut GCancellable, |
11154 | error: *mut *mut glib::GError, |
11155 | ) -> *mut glib::GVariant; |
11156 | pub fn g_dbus_proxy_get_cached_property( |
11157 | proxy: *mut GDBusProxy, |
11158 | property_name: *const c_char, |
11159 | ) -> *mut glib::GVariant; |
11160 | pub fn g_dbus_proxy_get_cached_property_names(proxy: *mut GDBusProxy) -> *mut *mut c_char; |
11161 | pub fn g_dbus_proxy_get_connection(proxy: *mut GDBusProxy) -> *mut GDBusConnection; |
11162 | pub fn g_dbus_proxy_get_default_timeout(proxy: *mut GDBusProxy) -> c_int; |
11163 | pub fn g_dbus_proxy_get_flags(proxy: *mut GDBusProxy) -> GDBusProxyFlags; |
11164 | pub fn g_dbus_proxy_get_interface_info(proxy: *mut GDBusProxy) -> *mut GDBusInterfaceInfo; |
11165 | pub fn g_dbus_proxy_get_interface_name(proxy: *mut GDBusProxy) -> *const c_char; |
11166 | pub fn g_dbus_proxy_get_name(proxy: *mut GDBusProxy) -> *const c_char; |
11167 | pub fn g_dbus_proxy_get_name_owner(proxy: *mut GDBusProxy) -> *mut c_char; |
11168 | pub fn g_dbus_proxy_get_object_path(proxy: *mut GDBusProxy) -> *const c_char; |
11169 | pub fn g_dbus_proxy_set_cached_property( |
11170 | proxy: *mut GDBusProxy, |
11171 | property_name: *const c_char, |
11172 | value: *mut glib::GVariant, |
11173 | ); |
11174 | pub fn g_dbus_proxy_set_default_timeout(proxy: *mut GDBusProxy, timeout_msec: c_int); |
11175 | pub fn g_dbus_proxy_set_interface_info(proxy: *mut GDBusProxy, info: *mut GDBusInterfaceInfo); |
11176 | |
11177 | //========================================================================= |
11178 | // GDBusServer |
11179 | //========================================================================= |
11180 | pub fn g_dbus_server_get_type() -> GType; |
11181 | pub fn g_dbus_server_new_sync( |
11182 | address: *const c_char, |
11183 | flags: GDBusServerFlags, |
11184 | guid: *const c_char, |
11185 | observer: *mut GDBusAuthObserver, |
11186 | cancellable: *mut GCancellable, |
11187 | error: *mut *mut glib::GError, |
11188 | ) -> *mut GDBusServer; |
11189 | pub fn g_dbus_server_get_client_address(server: *mut GDBusServer) -> *const c_char; |
11190 | pub fn g_dbus_server_get_flags(server: *mut GDBusServer) -> GDBusServerFlags; |
11191 | pub fn g_dbus_server_get_guid(server: *mut GDBusServer) -> *const c_char; |
11192 | pub fn g_dbus_server_is_active(server: *mut GDBusServer) -> gboolean; |
11193 | pub fn g_dbus_server_start(server: *mut GDBusServer); |
11194 | pub fn g_dbus_server_stop(server: *mut GDBusServer); |
11195 | |
11196 | //========================================================================= |
11197 | // GDataInputStream |
11198 | //========================================================================= |
11199 | pub fn g_data_input_stream_get_type() -> GType; |
11200 | pub fn g_data_input_stream_new(base_stream: *mut GInputStream) -> *mut GDataInputStream; |
11201 | pub fn g_data_input_stream_get_byte_order( |
11202 | stream: *mut GDataInputStream, |
11203 | ) -> GDataStreamByteOrder; |
11204 | pub fn g_data_input_stream_get_newline_type( |
11205 | stream: *mut GDataInputStream, |
11206 | ) -> GDataStreamNewlineType; |
11207 | pub fn g_data_input_stream_read_byte( |
11208 | stream: *mut GDataInputStream, |
11209 | cancellable: *mut GCancellable, |
11210 | error: *mut *mut glib::GError, |
11211 | ) -> c_uchar; |
11212 | pub fn g_data_input_stream_read_int16( |
11213 | stream: *mut GDataInputStream, |
11214 | cancellable: *mut GCancellable, |
11215 | error: *mut *mut glib::GError, |
11216 | ) -> i16; |
11217 | pub fn g_data_input_stream_read_int32( |
11218 | stream: *mut GDataInputStream, |
11219 | cancellable: *mut GCancellable, |
11220 | error: *mut *mut glib::GError, |
11221 | ) -> i32; |
11222 | pub fn g_data_input_stream_read_int64( |
11223 | stream: *mut GDataInputStream, |
11224 | cancellable: *mut GCancellable, |
11225 | error: *mut *mut glib::GError, |
11226 | ) -> i64; |
11227 | pub fn g_data_input_stream_read_line( |
11228 | stream: *mut GDataInputStream, |
11229 | length: *mut size_t, |
11230 | cancellable: *mut GCancellable, |
11231 | error: *mut *mut glib::GError, |
11232 | ) -> *mut u8; |
11233 | pub fn g_data_input_stream_read_line_async( |
11234 | stream: *mut GDataInputStream, |
11235 | io_priority: c_int, |
11236 | cancellable: *mut GCancellable, |
11237 | callback: GAsyncReadyCallback, |
11238 | user_data: gpointer, |
11239 | ); |
11240 | pub fn g_data_input_stream_read_line_finish( |
11241 | stream: *mut GDataInputStream, |
11242 | result: *mut GAsyncResult, |
11243 | length: *mut size_t, |
11244 | error: *mut *mut glib::GError, |
11245 | ) -> *mut u8; |
11246 | pub fn g_data_input_stream_read_line_finish_utf8( |
11247 | stream: *mut GDataInputStream, |
11248 | result: *mut GAsyncResult, |
11249 | length: *mut size_t, |
11250 | error: *mut *mut glib::GError, |
11251 | ) -> *mut c_char; |
11252 | pub fn g_data_input_stream_read_line_utf8( |
11253 | stream: *mut GDataInputStream, |
11254 | length: *mut size_t, |
11255 | cancellable: *mut GCancellable, |
11256 | error: *mut *mut glib::GError, |
11257 | ) -> *mut c_char; |
11258 | pub fn g_data_input_stream_read_uint16( |
11259 | stream: *mut GDataInputStream, |
11260 | cancellable: *mut GCancellable, |
11261 | error: *mut *mut glib::GError, |
11262 | ) -> u16; |
11263 | pub fn g_data_input_stream_read_uint32( |
11264 | stream: *mut GDataInputStream, |
11265 | cancellable: *mut GCancellable, |
11266 | error: *mut *mut glib::GError, |
11267 | ) -> u32; |
11268 | pub fn g_data_input_stream_read_uint64( |
11269 | stream: *mut GDataInputStream, |
11270 | cancellable: *mut GCancellable, |
11271 | error: *mut *mut glib::GError, |
11272 | ) -> u64; |
11273 | pub fn g_data_input_stream_read_until( |
11274 | stream: *mut GDataInputStream, |
11275 | stop_chars: *const c_char, |
11276 | length: *mut size_t, |
11277 | cancellable: *mut GCancellable, |
11278 | error: *mut *mut glib::GError, |
11279 | ) -> *mut c_char; |
11280 | pub fn g_data_input_stream_read_until_async( |
11281 | stream: *mut GDataInputStream, |
11282 | stop_chars: *const c_char, |
11283 | io_priority: c_int, |
11284 | cancellable: *mut GCancellable, |
11285 | callback: GAsyncReadyCallback, |
11286 | user_data: gpointer, |
11287 | ); |
11288 | pub fn g_data_input_stream_read_until_finish( |
11289 | stream: *mut GDataInputStream, |
11290 | result: *mut GAsyncResult, |
11291 | length: *mut size_t, |
11292 | error: *mut *mut glib::GError, |
11293 | ) -> *mut c_char; |
11294 | pub fn g_data_input_stream_read_upto( |
11295 | stream: *mut GDataInputStream, |
11296 | stop_chars: *const c_char, |
11297 | stop_chars_len: ssize_t, |
11298 | length: *mut size_t, |
11299 | cancellable: *mut GCancellable, |
11300 | error: *mut *mut glib::GError, |
11301 | ) -> *mut c_char; |
11302 | pub fn g_data_input_stream_read_upto_async( |
11303 | stream: *mut GDataInputStream, |
11304 | stop_chars: *const c_char, |
11305 | stop_chars_len: ssize_t, |
11306 | io_priority: c_int, |
11307 | cancellable: *mut GCancellable, |
11308 | callback: GAsyncReadyCallback, |
11309 | user_data: gpointer, |
11310 | ); |
11311 | pub fn g_data_input_stream_read_upto_finish( |
11312 | stream: *mut GDataInputStream, |
11313 | result: *mut GAsyncResult, |
11314 | length: *mut size_t, |
11315 | error: *mut *mut glib::GError, |
11316 | ) -> *mut c_char; |
11317 | pub fn g_data_input_stream_set_byte_order( |
11318 | stream: *mut GDataInputStream, |
11319 | order: GDataStreamByteOrder, |
11320 | ); |
11321 | pub fn g_data_input_stream_set_newline_type( |
11322 | stream: *mut GDataInputStream, |
11323 | type_: GDataStreamNewlineType, |
11324 | ); |
11325 | |
11326 | //========================================================================= |
11327 | // GDataOutputStream |
11328 | //========================================================================= |
11329 | pub fn g_data_output_stream_get_type() -> GType; |
11330 | pub fn g_data_output_stream_new(base_stream: *mut GOutputStream) -> *mut GDataOutputStream; |
11331 | pub fn g_data_output_stream_get_byte_order( |
11332 | stream: *mut GDataOutputStream, |
11333 | ) -> GDataStreamByteOrder; |
11334 | pub fn g_data_output_stream_put_byte( |
11335 | stream: *mut GDataOutputStream, |
11336 | data: c_uchar, |
11337 | cancellable: *mut GCancellable, |
11338 | error: *mut *mut glib::GError, |
11339 | ) -> gboolean; |
11340 | pub fn g_data_output_stream_put_int16( |
11341 | stream: *mut GDataOutputStream, |
11342 | data: i16, |
11343 | cancellable: *mut GCancellable, |
11344 | error: *mut *mut glib::GError, |
11345 | ) -> gboolean; |
11346 | pub fn g_data_output_stream_put_int32( |
11347 | stream: *mut GDataOutputStream, |
11348 | data: i32, |
11349 | cancellable: *mut GCancellable, |
11350 | error: *mut *mut glib::GError, |
11351 | ) -> gboolean; |
11352 | pub fn g_data_output_stream_put_int64( |
11353 | stream: *mut GDataOutputStream, |
11354 | data: i64, |
11355 | cancellable: *mut GCancellable, |
11356 | error: *mut *mut glib::GError, |
11357 | ) -> gboolean; |
11358 | pub fn g_data_output_stream_put_string( |
11359 | stream: *mut GDataOutputStream, |
11360 | str: *const c_char, |
11361 | cancellable: *mut GCancellable, |
11362 | error: *mut *mut glib::GError, |
11363 | ) -> gboolean; |
11364 | pub fn g_data_output_stream_put_uint16( |
11365 | stream: *mut GDataOutputStream, |
11366 | data: u16, |
11367 | cancellable: *mut GCancellable, |
11368 | error: *mut *mut glib::GError, |
11369 | ) -> gboolean; |
11370 | pub fn g_data_output_stream_put_uint32( |
11371 | stream: *mut GDataOutputStream, |
11372 | data: u32, |
11373 | cancellable: *mut GCancellable, |
11374 | error: *mut *mut glib::GError, |
11375 | ) -> gboolean; |
11376 | pub fn g_data_output_stream_put_uint64( |
11377 | stream: *mut GDataOutputStream, |
11378 | data: u64, |
11379 | cancellable: *mut GCancellable, |
11380 | error: *mut *mut glib::GError, |
11381 | ) -> gboolean; |
11382 | pub fn g_data_output_stream_set_byte_order( |
11383 | stream: *mut GDataOutputStream, |
11384 | order: GDataStreamByteOrder, |
11385 | ); |
11386 | |
11387 | //========================================================================= |
11388 | // GDebugControllerDBus |
11389 | //========================================================================= |
11390 | #[cfg (feature = "v2_72" )] |
11391 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
11392 | pub fn g_debug_controller_dbus_get_type() -> GType; |
11393 | #[cfg (feature = "v2_72" )] |
11394 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
11395 | pub fn g_debug_controller_dbus_new( |
11396 | connection: *mut GDBusConnection, |
11397 | cancellable: *mut GCancellable, |
11398 | error: *mut *mut glib::GError, |
11399 | ) -> *mut GDebugControllerDBus; |
11400 | #[cfg (feature = "v2_72" )] |
11401 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
11402 | pub fn g_debug_controller_dbus_stop(self_: *mut GDebugControllerDBus); |
11403 | |
11404 | //========================================================================= |
11405 | // GDesktopAppInfo |
11406 | //========================================================================= |
11407 | pub fn g_desktop_app_info_get_type() -> GType; |
11408 | pub fn g_desktop_app_info_new(desktop_id: *const c_char) -> *mut GDesktopAppInfo; |
11409 | pub fn g_desktop_app_info_new_from_filename(filename: *const c_char) -> *mut GDesktopAppInfo; |
11410 | pub fn g_desktop_app_info_new_from_keyfile( |
11411 | key_file: *mut glib::GKeyFile, |
11412 | ) -> *mut GDesktopAppInfo; |
11413 | pub fn g_desktop_app_info_get_implementations(interface: *const c_char) -> *mut glib::GList; |
11414 | pub fn g_desktop_app_info_search(search_string: *const c_char) -> *mut *mut *mut c_char; |
11415 | pub fn g_desktop_app_info_set_desktop_env(desktop_env: *const c_char); |
11416 | pub fn g_desktop_app_info_get_action_name( |
11417 | info: *mut GDesktopAppInfo, |
11418 | action_name: *const c_char, |
11419 | ) -> *mut c_char; |
11420 | pub fn g_desktop_app_info_get_boolean( |
11421 | info: *mut GDesktopAppInfo, |
11422 | key: *const c_char, |
11423 | ) -> gboolean; |
11424 | pub fn g_desktop_app_info_get_categories(info: *mut GDesktopAppInfo) -> *const c_char; |
11425 | pub fn g_desktop_app_info_get_filename(info: *mut GDesktopAppInfo) -> *const c_char; |
11426 | pub fn g_desktop_app_info_get_generic_name(info: *mut GDesktopAppInfo) -> *const c_char; |
11427 | pub fn g_desktop_app_info_get_is_hidden(info: *mut GDesktopAppInfo) -> gboolean; |
11428 | pub fn g_desktop_app_info_get_keywords(info: *mut GDesktopAppInfo) -> *const *const c_char; |
11429 | pub fn g_desktop_app_info_get_locale_string( |
11430 | info: *mut GDesktopAppInfo, |
11431 | key: *const c_char, |
11432 | ) -> *mut c_char; |
11433 | pub fn g_desktop_app_info_get_nodisplay(info: *mut GDesktopAppInfo) -> gboolean; |
11434 | pub fn g_desktop_app_info_get_show_in( |
11435 | info: *mut GDesktopAppInfo, |
11436 | desktop_env: *const c_char, |
11437 | ) -> gboolean; |
11438 | pub fn g_desktop_app_info_get_startup_wm_class(info: *mut GDesktopAppInfo) -> *const c_char; |
11439 | pub fn g_desktop_app_info_get_string( |
11440 | info: *mut GDesktopAppInfo, |
11441 | key: *const c_char, |
11442 | ) -> *mut c_char; |
11443 | #[cfg (feature = "v2_60" )] |
11444 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
11445 | pub fn g_desktop_app_info_get_string_list( |
11446 | info: *mut GDesktopAppInfo, |
11447 | key: *const c_char, |
11448 | length: *mut size_t, |
11449 | ) -> *mut *mut c_char; |
11450 | pub fn g_desktop_app_info_has_key(info: *mut GDesktopAppInfo, key: *const c_char) -> gboolean; |
11451 | pub fn g_desktop_app_info_launch_action( |
11452 | info: *mut GDesktopAppInfo, |
11453 | action_name: *const c_char, |
11454 | launch_context: *mut GAppLaunchContext, |
11455 | ); |
11456 | pub fn g_desktop_app_info_launch_uris_as_manager( |
11457 | appinfo: *mut GDesktopAppInfo, |
11458 | uris: *mut glib::GList, |
11459 | launch_context: *mut GAppLaunchContext, |
11460 | spawn_flags: glib::GSpawnFlags, |
11461 | user_setup: glib::GSpawnChildSetupFunc, |
11462 | user_setup_data: gpointer, |
11463 | pid_callback: GDesktopAppLaunchCallback, |
11464 | pid_callback_data: gpointer, |
11465 | error: *mut *mut glib::GError, |
11466 | ) -> gboolean; |
11467 | #[cfg (feature = "v2_58" )] |
11468 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
11469 | pub fn g_desktop_app_info_launch_uris_as_manager_with_fds( |
11470 | appinfo: *mut GDesktopAppInfo, |
11471 | uris: *mut glib::GList, |
11472 | launch_context: *mut GAppLaunchContext, |
11473 | spawn_flags: glib::GSpawnFlags, |
11474 | user_setup: glib::GSpawnChildSetupFunc, |
11475 | user_setup_data: gpointer, |
11476 | pid_callback: GDesktopAppLaunchCallback, |
11477 | pid_callback_data: gpointer, |
11478 | stdin_fd: c_int, |
11479 | stdout_fd: c_int, |
11480 | stderr_fd: c_int, |
11481 | error: *mut *mut glib::GError, |
11482 | ) -> gboolean; |
11483 | pub fn g_desktop_app_info_list_actions(info: *mut GDesktopAppInfo) -> *const *const c_char; |
11484 | |
11485 | //========================================================================= |
11486 | // GEmblem |
11487 | //========================================================================= |
11488 | pub fn g_emblem_get_type() -> GType; |
11489 | pub fn g_emblem_new(icon: *mut GIcon) -> *mut GEmblem; |
11490 | pub fn g_emblem_new_with_origin(icon: *mut GIcon, origin: GEmblemOrigin) -> *mut GEmblem; |
11491 | pub fn g_emblem_get_icon(emblem: *mut GEmblem) -> *mut GIcon; |
11492 | pub fn g_emblem_get_origin(emblem: *mut GEmblem) -> GEmblemOrigin; |
11493 | |
11494 | //========================================================================= |
11495 | // GEmblemedIcon |
11496 | //========================================================================= |
11497 | pub fn g_emblemed_icon_get_type() -> GType; |
11498 | pub fn g_emblemed_icon_new(icon: *mut GIcon, emblem: *mut GEmblem) -> *mut GEmblemedIcon; |
11499 | pub fn g_emblemed_icon_add_emblem(emblemed: *mut GEmblemedIcon, emblem: *mut GEmblem); |
11500 | pub fn g_emblemed_icon_clear_emblems(emblemed: *mut GEmblemedIcon); |
11501 | pub fn g_emblemed_icon_get_emblems(emblemed: *mut GEmblemedIcon) -> *mut glib::GList; |
11502 | pub fn g_emblemed_icon_get_icon(emblemed: *mut GEmblemedIcon) -> *mut GIcon; |
11503 | |
11504 | //========================================================================= |
11505 | // GFileEnumerator |
11506 | //========================================================================= |
11507 | pub fn g_file_enumerator_get_type() -> GType; |
11508 | pub fn g_file_enumerator_close( |
11509 | enumerator: *mut GFileEnumerator, |
11510 | cancellable: *mut GCancellable, |
11511 | error: *mut *mut glib::GError, |
11512 | ) -> gboolean; |
11513 | pub fn g_file_enumerator_close_async( |
11514 | enumerator: *mut GFileEnumerator, |
11515 | io_priority: c_int, |
11516 | cancellable: *mut GCancellable, |
11517 | callback: GAsyncReadyCallback, |
11518 | user_data: gpointer, |
11519 | ); |
11520 | pub fn g_file_enumerator_close_finish( |
11521 | enumerator: *mut GFileEnumerator, |
11522 | result: *mut GAsyncResult, |
11523 | error: *mut *mut glib::GError, |
11524 | ) -> gboolean; |
11525 | pub fn g_file_enumerator_get_child( |
11526 | enumerator: *mut GFileEnumerator, |
11527 | info: *mut GFileInfo, |
11528 | ) -> *mut GFile; |
11529 | pub fn g_file_enumerator_get_container(enumerator: *mut GFileEnumerator) -> *mut GFile; |
11530 | pub fn g_file_enumerator_has_pending(enumerator: *mut GFileEnumerator) -> gboolean; |
11531 | pub fn g_file_enumerator_is_closed(enumerator: *mut GFileEnumerator) -> gboolean; |
11532 | pub fn g_file_enumerator_iterate( |
11533 | direnum: *mut GFileEnumerator, |
11534 | out_info: *mut *mut GFileInfo, |
11535 | out_child: *mut *mut GFile, |
11536 | cancellable: *mut GCancellable, |
11537 | error: *mut *mut glib::GError, |
11538 | ) -> gboolean; |
11539 | pub fn g_file_enumerator_next_file( |
11540 | enumerator: *mut GFileEnumerator, |
11541 | cancellable: *mut GCancellable, |
11542 | error: *mut *mut glib::GError, |
11543 | ) -> *mut GFileInfo; |
11544 | pub fn g_file_enumerator_next_files_async( |
11545 | enumerator: *mut GFileEnumerator, |
11546 | num_files: c_int, |
11547 | io_priority: c_int, |
11548 | cancellable: *mut GCancellable, |
11549 | callback: GAsyncReadyCallback, |
11550 | user_data: gpointer, |
11551 | ); |
11552 | pub fn g_file_enumerator_next_files_finish( |
11553 | enumerator: *mut GFileEnumerator, |
11554 | result: *mut GAsyncResult, |
11555 | error: *mut *mut glib::GError, |
11556 | ) -> *mut glib::GList; |
11557 | pub fn g_file_enumerator_set_pending(enumerator: *mut GFileEnumerator, pending: gboolean); |
11558 | |
11559 | //========================================================================= |
11560 | // GFileIOStream |
11561 | //========================================================================= |
11562 | pub fn g_file_io_stream_get_type() -> GType; |
11563 | pub fn g_file_io_stream_get_etag(stream: *mut GFileIOStream) -> *mut c_char; |
11564 | pub fn g_file_io_stream_query_info( |
11565 | stream: *mut GFileIOStream, |
11566 | attributes: *const c_char, |
11567 | cancellable: *mut GCancellable, |
11568 | error: *mut *mut glib::GError, |
11569 | ) -> *mut GFileInfo; |
11570 | pub fn g_file_io_stream_query_info_async( |
11571 | stream: *mut GFileIOStream, |
11572 | attributes: *const c_char, |
11573 | io_priority: c_int, |
11574 | cancellable: *mut GCancellable, |
11575 | callback: GAsyncReadyCallback, |
11576 | user_data: gpointer, |
11577 | ); |
11578 | pub fn g_file_io_stream_query_info_finish( |
11579 | stream: *mut GFileIOStream, |
11580 | result: *mut GAsyncResult, |
11581 | error: *mut *mut glib::GError, |
11582 | ) -> *mut GFileInfo; |
11583 | |
11584 | //========================================================================= |
11585 | // GFileIcon |
11586 | //========================================================================= |
11587 | pub fn g_file_icon_get_type() -> GType; |
11588 | pub fn g_file_icon_new(file: *mut GFile) -> *mut GFileIcon; |
11589 | pub fn g_file_icon_get_file(icon: *mut GFileIcon) -> *mut GFile; |
11590 | |
11591 | //========================================================================= |
11592 | // GFileInfo |
11593 | //========================================================================= |
11594 | pub fn g_file_info_get_type() -> GType; |
11595 | pub fn g_file_info_new() -> *mut GFileInfo; |
11596 | pub fn g_file_info_clear_status(info: *mut GFileInfo); |
11597 | pub fn g_file_info_copy_into(src_info: *mut GFileInfo, dest_info: *mut GFileInfo); |
11598 | pub fn g_file_info_dup(other: *mut GFileInfo) -> *mut GFileInfo; |
11599 | #[cfg (feature = "v2_70" )] |
11600 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
11601 | pub fn g_file_info_get_access_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime; |
11602 | pub fn g_file_info_get_attribute_as_string( |
11603 | info: *mut GFileInfo, |
11604 | attribute: *const c_char, |
11605 | ) -> *mut c_char; |
11606 | pub fn g_file_info_get_attribute_boolean( |
11607 | info: *mut GFileInfo, |
11608 | attribute: *const c_char, |
11609 | ) -> gboolean; |
11610 | pub fn g_file_info_get_attribute_byte_string( |
11611 | info: *mut GFileInfo, |
11612 | attribute: *const c_char, |
11613 | ) -> *const c_char; |
11614 | pub fn g_file_info_get_attribute_data( |
11615 | info: *mut GFileInfo, |
11616 | attribute: *const c_char, |
11617 | type_: *mut GFileAttributeType, |
11618 | value_pp: *mut gpointer, |
11619 | status: *mut GFileAttributeStatus, |
11620 | ) -> gboolean; |
11621 | #[cfg (feature = "v2_78" )] |
11622 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
11623 | pub fn g_file_info_get_attribute_file_path( |
11624 | info: *mut GFileInfo, |
11625 | attribute: *const c_char, |
11626 | ) -> *const c_char; |
11627 | pub fn g_file_info_get_attribute_int32(info: *mut GFileInfo, attribute: *const c_char) -> i32; |
11628 | pub fn g_file_info_get_attribute_int64(info: *mut GFileInfo, attribute: *const c_char) -> i64; |
11629 | pub fn g_file_info_get_attribute_object( |
11630 | info: *mut GFileInfo, |
11631 | attribute: *const c_char, |
11632 | ) -> *mut gobject::GObject; |
11633 | pub fn g_file_info_get_attribute_status( |
11634 | info: *mut GFileInfo, |
11635 | attribute: *const c_char, |
11636 | ) -> GFileAttributeStatus; |
11637 | pub fn g_file_info_get_attribute_string( |
11638 | info: *mut GFileInfo, |
11639 | attribute: *const c_char, |
11640 | ) -> *const c_char; |
11641 | pub fn g_file_info_get_attribute_stringv( |
11642 | info: *mut GFileInfo, |
11643 | attribute: *const c_char, |
11644 | ) -> *mut *mut c_char; |
11645 | pub fn g_file_info_get_attribute_type( |
11646 | info: *mut GFileInfo, |
11647 | attribute: *const c_char, |
11648 | ) -> GFileAttributeType; |
11649 | pub fn g_file_info_get_attribute_uint32(info: *mut GFileInfo, attribute: *const c_char) -> u32; |
11650 | pub fn g_file_info_get_attribute_uint64(info: *mut GFileInfo, attribute: *const c_char) -> u64; |
11651 | pub fn g_file_info_get_content_type(info: *mut GFileInfo) -> *const c_char; |
11652 | #[cfg (feature = "v2_70" )] |
11653 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
11654 | pub fn g_file_info_get_creation_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime; |
11655 | pub fn g_file_info_get_deletion_date(info: *mut GFileInfo) -> *mut glib::GDateTime; |
11656 | pub fn g_file_info_get_display_name(info: *mut GFileInfo) -> *const c_char; |
11657 | pub fn g_file_info_get_edit_name(info: *mut GFileInfo) -> *const c_char; |
11658 | pub fn g_file_info_get_etag(info: *mut GFileInfo) -> *const c_char; |
11659 | pub fn g_file_info_get_file_type(info: *mut GFileInfo) -> GFileType; |
11660 | pub fn g_file_info_get_icon(info: *mut GFileInfo) -> *mut GIcon; |
11661 | pub fn g_file_info_get_is_backup(info: *mut GFileInfo) -> gboolean; |
11662 | pub fn g_file_info_get_is_hidden(info: *mut GFileInfo) -> gboolean; |
11663 | pub fn g_file_info_get_is_symlink(info: *mut GFileInfo) -> gboolean; |
11664 | #[cfg (feature = "v2_62" )] |
11665 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_62" )))] |
11666 | pub fn g_file_info_get_modification_date_time(info: *mut GFileInfo) -> *mut glib::GDateTime; |
11667 | pub fn g_file_info_get_modification_time(info: *mut GFileInfo, result: *mut glib::GTimeVal); |
11668 | pub fn g_file_info_get_name(info: *mut GFileInfo) -> *const c_char; |
11669 | pub fn g_file_info_get_size(info: *mut GFileInfo) -> i64; |
11670 | pub fn g_file_info_get_sort_order(info: *mut GFileInfo) -> i32; |
11671 | pub fn g_file_info_get_symbolic_icon(info: *mut GFileInfo) -> *mut GIcon; |
11672 | pub fn g_file_info_get_symlink_target(info: *mut GFileInfo) -> *const c_char; |
11673 | pub fn g_file_info_has_attribute(info: *mut GFileInfo, attribute: *const c_char) -> gboolean; |
11674 | pub fn g_file_info_has_namespace(info: *mut GFileInfo, name_space: *const c_char) -> gboolean; |
11675 | pub fn g_file_info_list_attributes( |
11676 | info: *mut GFileInfo, |
11677 | name_space: *const c_char, |
11678 | ) -> *mut *mut c_char; |
11679 | pub fn g_file_info_remove_attribute(info: *mut GFileInfo, attribute: *const c_char); |
11680 | #[cfg (feature = "v2_70" )] |
11681 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
11682 | pub fn g_file_info_set_access_date_time(info: *mut GFileInfo, atime: *mut glib::GDateTime); |
11683 | pub fn g_file_info_set_attribute( |
11684 | info: *mut GFileInfo, |
11685 | attribute: *const c_char, |
11686 | type_: GFileAttributeType, |
11687 | value_p: gpointer, |
11688 | ); |
11689 | pub fn g_file_info_set_attribute_boolean( |
11690 | info: *mut GFileInfo, |
11691 | attribute: *const c_char, |
11692 | attr_value: gboolean, |
11693 | ); |
11694 | pub fn g_file_info_set_attribute_byte_string( |
11695 | info: *mut GFileInfo, |
11696 | attribute: *const c_char, |
11697 | attr_value: *const c_char, |
11698 | ); |
11699 | #[cfg (feature = "v2_78" )] |
11700 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
11701 | pub fn g_file_info_set_attribute_file_path( |
11702 | info: *mut GFileInfo, |
11703 | attribute: *const c_char, |
11704 | attr_value: *const c_char, |
11705 | ); |
11706 | pub fn g_file_info_set_attribute_int32( |
11707 | info: *mut GFileInfo, |
11708 | attribute: *const c_char, |
11709 | attr_value: i32, |
11710 | ); |
11711 | pub fn g_file_info_set_attribute_int64( |
11712 | info: *mut GFileInfo, |
11713 | attribute: *const c_char, |
11714 | attr_value: i64, |
11715 | ); |
11716 | pub fn g_file_info_set_attribute_mask(info: *mut GFileInfo, mask: *mut GFileAttributeMatcher); |
11717 | pub fn g_file_info_set_attribute_object( |
11718 | info: *mut GFileInfo, |
11719 | attribute: *const c_char, |
11720 | attr_value: *mut gobject::GObject, |
11721 | ); |
11722 | pub fn g_file_info_set_attribute_status( |
11723 | info: *mut GFileInfo, |
11724 | attribute: *const c_char, |
11725 | status: GFileAttributeStatus, |
11726 | ) -> gboolean; |
11727 | pub fn g_file_info_set_attribute_string( |
11728 | info: *mut GFileInfo, |
11729 | attribute: *const c_char, |
11730 | attr_value: *const c_char, |
11731 | ); |
11732 | pub fn g_file_info_set_attribute_stringv( |
11733 | info: *mut GFileInfo, |
11734 | attribute: *const c_char, |
11735 | attr_value: *mut *mut c_char, |
11736 | ); |
11737 | pub fn g_file_info_set_attribute_uint32( |
11738 | info: *mut GFileInfo, |
11739 | attribute: *const c_char, |
11740 | attr_value: u32, |
11741 | ); |
11742 | pub fn g_file_info_set_attribute_uint64( |
11743 | info: *mut GFileInfo, |
11744 | attribute: *const c_char, |
11745 | attr_value: u64, |
11746 | ); |
11747 | pub fn g_file_info_set_content_type(info: *mut GFileInfo, content_type: *const c_char); |
11748 | #[cfg (feature = "v2_70" )] |
11749 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
11750 | pub fn g_file_info_set_creation_date_time( |
11751 | info: *mut GFileInfo, |
11752 | creation_time: *mut glib::GDateTime, |
11753 | ); |
11754 | pub fn g_file_info_set_display_name(info: *mut GFileInfo, display_name: *const c_char); |
11755 | pub fn g_file_info_set_edit_name(info: *mut GFileInfo, edit_name: *const c_char); |
11756 | pub fn g_file_info_set_file_type(info: *mut GFileInfo, type_: GFileType); |
11757 | pub fn g_file_info_set_icon(info: *mut GFileInfo, icon: *mut GIcon); |
11758 | pub fn g_file_info_set_is_hidden(info: *mut GFileInfo, is_hidden: gboolean); |
11759 | pub fn g_file_info_set_is_symlink(info: *mut GFileInfo, is_symlink: gboolean); |
11760 | #[cfg (feature = "v2_62" )] |
11761 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_62" )))] |
11762 | pub fn g_file_info_set_modification_date_time( |
11763 | info: *mut GFileInfo, |
11764 | mtime: *mut glib::GDateTime, |
11765 | ); |
11766 | pub fn g_file_info_set_modification_time(info: *mut GFileInfo, mtime: *mut glib::GTimeVal); |
11767 | pub fn g_file_info_set_name(info: *mut GFileInfo, name: *const c_char); |
11768 | pub fn g_file_info_set_size(info: *mut GFileInfo, size: i64); |
11769 | pub fn g_file_info_set_sort_order(info: *mut GFileInfo, sort_order: i32); |
11770 | pub fn g_file_info_set_symbolic_icon(info: *mut GFileInfo, icon: *mut GIcon); |
11771 | pub fn g_file_info_set_symlink_target(info: *mut GFileInfo, symlink_target: *const c_char); |
11772 | pub fn g_file_info_unset_attribute_mask(info: *mut GFileInfo); |
11773 | |
11774 | //========================================================================= |
11775 | // GFileInputStream |
11776 | //========================================================================= |
11777 | pub fn g_file_input_stream_get_type() -> GType; |
11778 | pub fn g_file_input_stream_query_info( |
11779 | stream: *mut GFileInputStream, |
11780 | attributes: *const c_char, |
11781 | cancellable: *mut GCancellable, |
11782 | error: *mut *mut glib::GError, |
11783 | ) -> *mut GFileInfo; |
11784 | pub fn g_file_input_stream_query_info_async( |
11785 | stream: *mut GFileInputStream, |
11786 | attributes: *const c_char, |
11787 | io_priority: c_int, |
11788 | cancellable: *mut GCancellable, |
11789 | callback: GAsyncReadyCallback, |
11790 | user_data: gpointer, |
11791 | ); |
11792 | pub fn g_file_input_stream_query_info_finish( |
11793 | stream: *mut GFileInputStream, |
11794 | result: *mut GAsyncResult, |
11795 | error: *mut *mut glib::GError, |
11796 | ) -> *mut GFileInfo; |
11797 | |
11798 | //========================================================================= |
11799 | // GFileMonitor |
11800 | //========================================================================= |
11801 | pub fn g_file_monitor_get_type() -> GType; |
11802 | pub fn g_file_monitor_cancel(monitor: *mut GFileMonitor) -> gboolean; |
11803 | pub fn g_file_monitor_emit_event( |
11804 | monitor: *mut GFileMonitor, |
11805 | child: *mut GFile, |
11806 | other_file: *mut GFile, |
11807 | event_type: GFileMonitorEvent, |
11808 | ); |
11809 | pub fn g_file_monitor_is_cancelled(monitor: *mut GFileMonitor) -> gboolean; |
11810 | pub fn g_file_monitor_set_rate_limit(monitor: *mut GFileMonitor, limit_msecs: c_int); |
11811 | |
11812 | //========================================================================= |
11813 | // GFileOutputStream |
11814 | //========================================================================= |
11815 | pub fn g_file_output_stream_get_type() -> GType; |
11816 | pub fn g_file_output_stream_get_etag(stream: *mut GFileOutputStream) -> *mut c_char; |
11817 | pub fn g_file_output_stream_query_info( |
11818 | stream: *mut GFileOutputStream, |
11819 | attributes: *const c_char, |
11820 | cancellable: *mut GCancellable, |
11821 | error: *mut *mut glib::GError, |
11822 | ) -> *mut GFileInfo; |
11823 | pub fn g_file_output_stream_query_info_async( |
11824 | stream: *mut GFileOutputStream, |
11825 | attributes: *const c_char, |
11826 | io_priority: c_int, |
11827 | cancellable: *mut GCancellable, |
11828 | callback: GAsyncReadyCallback, |
11829 | user_data: gpointer, |
11830 | ); |
11831 | pub fn g_file_output_stream_query_info_finish( |
11832 | stream: *mut GFileOutputStream, |
11833 | result: *mut GAsyncResult, |
11834 | error: *mut *mut glib::GError, |
11835 | ) -> *mut GFileInfo; |
11836 | |
11837 | //========================================================================= |
11838 | // GFilenameCompleter |
11839 | //========================================================================= |
11840 | pub fn g_filename_completer_get_type() -> GType; |
11841 | pub fn g_filename_completer_new() -> *mut GFilenameCompleter; |
11842 | pub fn g_filename_completer_get_completion_suffix( |
11843 | completer: *mut GFilenameCompleter, |
11844 | initial_text: *const c_char, |
11845 | ) -> *mut c_char; |
11846 | pub fn g_filename_completer_get_completions( |
11847 | completer: *mut GFilenameCompleter, |
11848 | initial_text: *const c_char, |
11849 | ) -> *mut *mut c_char; |
11850 | pub fn g_filename_completer_set_dirs_only( |
11851 | completer: *mut GFilenameCompleter, |
11852 | dirs_only: gboolean, |
11853 | ); |
11854 | |
11855 | //========================================================================= |
11856 | // GFilterInputStream |
11857 | //========================================================================= |
11858 | pub fn g_filter_input_stream_get_type() -> GType; |
11859 | pub fn g_filter_input_stream_get_base_stream( |
11860 | stream: *mut GFilterInputStream, |
11861 | ) -> *mut GInputStream; |
11862 | pub fn g_filter_input_stream_get_close_base_stream(stream: *mut GFilterInputStream) |
11863 | -> gboolean; |
11864 | pub fn g_filter_input_stream_set_close_base_stream( |
11865 | stream: *mut GFilterInputStream, |
11866 | close_base: gboolean, |
11867 | ); |
11868 | |
11869 | //========================================================================= |
11870 | // GFilterOutputStream |
11871 | //========================================================================= |
11872 | pub fn g_filter_output_stream_get_type() -> GType; |
11873 | pub fn g_filter_output_stream_get_base_stream( |
11874 | stream: *mut GFilterOutputStream, |
11875 | ) -> *mut GOutputStream; |
11876 | pub fn g_filter_output_stream_get_close_base_stream( |
11877 | stream: *mut GFilterOutputStream, |
11878 | ) -> gboolean; |
11879 | pub fn g_filter_output_stream_set_close_base_stream( |
11880 | stream: *mut GFilterOutputStream, |
11881 | close_base: gboolean, |
11882 | ); |
11883 | |
11884 | //========================================================================= |
11885 | // GIOModule |
11886 | //========================================================================= |
11887 | pub fn g_io_module_get_type() -> GType; |
11888 | pub fn g_io_module_new(filename: *const c_char) -> *mut GIOModule; |
11889 | pub fn g_io_module_query() -> *mut *mut c_char; |
11890 | pub fn g_io_module_load(module: *mut GIOModule); |
11891 | pub fn g_io_module_unload(module: *mut GIOModule); |
11892 | |
11893 | //========================================================================= |
11894 | // GIOStream |
11895 | //========================================================================= |
11896 | pub fn g_io_stream_get_type() -> GType; |
11897 | pub fn g_io_stream_splice_finish( |
11898 | result: *mut GAsyncResult, |
11899 | error: *mut *mut glib::GError, |
11900 | ) -> gboolean; |
11901 | pub fn g_io_stream_clear_pending(stream: *mut GIOStream); |
11902 | pub fn g_io_stream_close( |
11903 | stream: *mut GIOStream, |
11904 | cancellable: *mut GCancellable, |
11905 | error: *mut *mut glib::GError, |
11906 | ) -> gboolean; |
11907 | pub fn g_io_stream_close_async( |
11908 | stream: *mut GIOStream, |
11909 | io_priority: c_int, |
11910 | cancellable: *mut GCancellable, |
11911 | callback: GAsyncReadyCallback, |
11912 | user_data: gpointer, |
11913 | ); |
11914 | pub fn g_io_stream_close_finish( |
11915 | stream: *mut GIOStream, |
11916 | result: *mut GAsyncResult, |
11917 | error: *mut *mut glib::GError, |
11918 | ) -> gboolean; |
11919 | pub fn g_io_stream_get_input_stream(stream: *mut GIOStream) -> *mut GInputStream; |
11920 | pub fn g_io_stream_get_output_stream(stream: *mut GIOStream) -> *mut GOutputStream; |
11921 | pub fn g_io_stream_has_pending(stream: *mut GIOStream) -> gboolean; |
11922 | pub fn g_io_stream_is_closed(stream: *mut GIOStream) -> gboolean; |
11923 | pub fn g_io_stream_set_pending( |
11924 | stream: *mut GIOStream, |
11925 | error: *mut *mut glib::GError, |
11926 | ) -> gboolean; |
11927 | pub fn g_io_stream_splice_async( |
11928 | stream1: *mut GIOStream, |
11929 | stream2: *mut GIOStream, |
11930 | flags: GIOStreamSpliceFlags, |
11931 | io_priority: c_int, |
11932 | cancellable: *mut GCancellable, |
11933 | callback: GAsyncReadyCallback, |
11934 | user_data: gpointer, |
11935 | ); |
11936 | |
11937 | //========================================================================= |
11938 | // GInetAddress |
11939 | //========================================================================= |
11940 | pub fn g_inet_address_get_type() -> GType; |
11941 | pub fn g_inet_address_new_any(family: GSocketFamily) -> *mut GInetAddress; |
11942 | pub fn g_inet_address_new_from_bytes( |
11943 | bytes: *const u8, |
11944 | family: GSocketFamily, |
11945 | ) -> *mut GInetAddress; |
11946 | pub fn g_inet_address_new_from_string(string: *const c_char) -> *mut GInetAddress; |
11947 | pub fn g_inet_address_new_loopback(family: GSocketFamily) -> *mut GInetAddress; |
11948 | pub fn g_inet_address_equal( |
11949 | address: *mut GInetAddress, |
11950 | other_address: *mut GInetAddress, |
11951 | ) -> gboolean; |
11952 | pub fn g_inet_address_get_family(address: *mut GInetAddress) -> GSocketFamily; |
11953 | pub fn g_inet_address_get_is_any(address: *mut GInetAddress) -> gboolean; |
11954 | pub fn g_inet_address_get_is_link_local(address: *mut GInetAddress) -> gboolean; |
11955 | pub fn g_inet_address_get_is_loopback(address: *mut GInetAddress) -> gboolean; |
11956 | pub fn g_inet_address_get_is_mc_global(address: *mut GInetAddress) -> gboolean; |
11957 | pub fn g_inet_address_get_is_mc_link_local(address: *mut GInetAddress) -> gboolean; |
11958 | pub fn g_inet_address_get_is_mc_node_local(address: *mut GInetAddress) -> gboolean; |
11959 | pub fn g_inet_address_get_is_mc_org_local(address: *mut GInetAddress) -> gboolean; |
11960 | pub fn g_inet_address_get_is_mc_site_local(address: *mut GInetAddress) -> gboolean; |
11961 | pub fn g_inet_address_get_is_multicast(address: *mut GInetAddress) -> gboolean; |
11962 | pub fn g_inet_address_get_is_site_local(address: *mut GInetAddress) -> gboolean; |
11963 | pub fn g_inet_address_get_native_size(address: *mut GInetAddress) -> size_t; |
11964 | pub fn g_inet_address_to_bytes(address: *mut GInetAddress) -> *const u8; |
11965 | pub fn g_inet_address_to_string(address: *mut GInetAddress) -> *mut c_char; |
11966 | |
11967 | //========================================================================= |
11968 | // GInetAddressMask |
11969 | //========================================================================= |
11970 | pub fn g_inet_address_mask_get_type() -> GType; |
11971 | pub fn g_inet_address_mask_new( |
11972 | addr: *mut GInetAddress, |
11973 | length: c_uint, |
11974 | error: *mut *mut glib::GError, |
11975 | ) -> *mut GInetAddressMask; |
11976 | pub fn g_inet_address_mask_new_from_string( |
11977 | mask_string: *const c_char, |
11978 | error: *mut *mut glib::GError, |
11979 | ) -> *mut GInetAddressMask; |
11980 | pub fn g_inet_address_mask_equal( |
11981 | mask: *mut GInetAddressMask, |
11982 | mask2: *mut GInetAddressMask, |
11983 | ) -> gboolean; |
11984 | pub fn g_inet_address_mask_get_address(mask: *mut GInetAddressMask) -> *mut GInetAddress; |
11985 | pub fn g_inet_address_mask_get_family(mask: *mut GInetAddressMask) -> GSocketFamily; |
11986 | pub fn g_inet_address_mask_get_length(mask: *mut GInetAddressMask) -> c_uint; |
11987 | pub fn g_inet_address_mask_matches( |
11988 | mask: *mut GInetAddressMask, |
11989 | address: *mut GInetAddress, |
11990 | ) -> gboolean; |
11991 | pub fn g_inet_address_mask_to_string(mask: *mut GInetAddressMask) -> *mut c_char; |
11992 | |
11993 | //========================================================================= |
11994 | // GInetSocketAddress |
11995 | //========================================================================= |
11996 | pub fn g_inet_socket_address_get_type() -> GType; |
11997 | pub fn g_inet_socket_address_new(address: *mut GInetAddress, port: u16) -> *mut GSocketAddress; |
11998 | pub fn g_inet_socket_address_new_from_string( |
11999 | address: *const c_char, |
12000 | port: c_uint, |
12001 | ) -> *mut GSocketAddress; |
12002 | pub fn g_inet_socket_address_get_address(address: *mut GInetSocketAddress) |
12003 | -> *mut GInetAddress; |
12004 | pub fn g_inet_socket_address_get_flowinfo(address: *mut GInetSocketAddress) -> u32; |
12005 | pub fn g_inet_socket_address_get_port(address: *mut GInetSocketAddress) -> u16; |
12006 | pub fn g_inet_socket_address_get_scope_id(address: *mut GInetSocketAddress) -> u32; |
12007 | |
12008 | //========================================================================= |
12009 | // GInputStream |
12010 | //========================================================================= |
12011 | pub fn g_input_stream_get_type() -> GType; |
12012 | pub fn g_input_stream_clear_pending(stream: *mut GInputStream); |
12013 | pub fn g_input_stream_close( |
12014 | stream: *mut GInputStream, |
12015 | cancellable: *mut GCancellable, |
12016 | error: *mut *mut glib::GError, |
12017 | ) -> gboolean; |
12018 | pub fn g_input_stream_close_async( |
12019 | stream: *mut GInputStream, |
12020 | io_priority: c_int, |
12021 | cancellable: *mut GCancellable, |
12022 | callback: GAsyncReadyCallback, |
12023 | user_data: gpointer, |
12024 | ); |
12025 | pub fn g_input_stream_close_finish( |
12026 | stream: *mut GInputStream, |
12027 | result: *mut GAsyncResult, |
12028 | error: *mut *mut glib::GError, |
12029 | ) -> gboolean; |
12030 | pub fn g_input_stream_has_pending(stream: *mut GInputStream) -> gboolean; |
12031 | pub fn g_input_stream_is_closed(stream: *mut GInputStream) -> gboolean; |
12032 | pub fn g_input_stream_read( |
12033 | stream: *mut GInputStream, |
12034 | buffer: *mut u8, |
12035 | count: size_t, |
12036 | cancellable: *mut GCancellable, |
12037 | error: *mut *mut glib::GError, |
12038 | ) -> ssize_t; |
12039 | pub fn g_input_stream_read_all( |
12040 | stream: *mut GInputStream, |
12041 | buffer: *mut u8, |
12042 | count: size_t, |
12043 | bytes_read: *mut size_t, |
12044 | cancellable: *mut GCancellable, |
12045 | error: *mut *mut glib::GError, |
12046 | ) -> gboolean; |
12047 | pub fn g_input_stream_read_all_async( |
12048 | stream: *mut GInputStream, |
12049 | buffer: *mut u8, |
12050 | count: size_t, |
12051 | io_priority: c_int, |
12052 | cancellable: *mut GCancellable, |
12053 | callback: GAsyncReadyCallback, |
12054 | user_data: gpointer, |
12055 | ); |
12056 | pub fn g_input_stream_read_all_finish( |
12057 | stream: *mut GInputStream, |
12058 | result: *mut GAsyncResult, |
12059 | bytes_read: *mut size_t, |
12060 | error: *mut *mut glib::GError, |
12061 | ) -> gboolean; |
12062 | pub fn g_input_stream_read_async( |
12063 | stream: *mut GInputStream, |
12064 | buffer: *mut u8, |
12065 | count: size_t, |
12066 | io_priority: c_int, |
12067 | cancellable: *mut GCancellable, |
12068 | callback: GAsyncReadyCallback, |
12069 | user_data: gpointer, |
12070 | ); |
12071 | pub fn g_input_stream_read_bytes( |
12072 | stream: *mut GInputStream, |
12073 | count: size_t, |
12074 | cancellable: *mut GCancellable, |
12075 | error: *mut *mut glib::GError, |
12076 | ) -> *mut glib::GBytes; |
12077 | pub fn g_input_stream_read_bytes_async( |
12078 | stream: *mut GInputStream, |
12079 | count: size_t, |
12080 | io_priority: c_int, |
12081 | cancellable: *mut GCancellable, |
12082 | callback: GAsyncReadyCallback, |
12083 | user_data: gpointer, |
12084 | ); |
12085 | pub fn g_input_stream_read_bytes_finish( |
12086 | stream: *mut GInputStream, |
12087 | result: *mut GAsyncResult, |
12088 | error: *mut *mut glib::GError, |
12089 | ) -> *mut glib::GBytes; |
12090 | pub fn g_input_stream_read_finish( |
12091 | stream: *mut GInputStream, |
12092 | result: *mut GAsyncResult, |
12093 | error: *mut *mut glib::GError, |
12094 | ) -> ssize_t; |
12095 | pub fn g_input_stream_set_pending( |
12096 | stream: *mut GInputStream, |
12097 | error: *mut *mut glib::GError, |
12098 | ) -> gboolean; |
12099 | pub fn g_input_stream_skip( |
12100 | stream: *mut GInputStream, |
12101 | count: size_t, |
12102 | cancellable: *mut GCancellable, |
12103 | error: *mut *mut glib::GError, |
12104 | ) -> ssize_t; |
12105 | pub fn g_input_stream_skip_async( |
12106 | stream: *mut GInputStream, |
12107 | count: size_t, |
12108 | io_priority: c_int, |
12109 | cancellable: *mut GCancellable, |
12110 | callback: GAsyncReadyCallback, |
12111 | user_data: gpointer, |
12112 | ); |
12113 | pub fn g_input_stream_skip_finish( |
12114 | stream: *mut GInputStream, |
12115 | result: *mut GAsyncResult, |
12116 | error: *mut *mut glib::GError, |
12117 | ) -> ssize_t; |
12118 | |
12119 | //========================================================================= |
12120 | // GListStore |
12121 | //========================================================================= |
12122 | pub fn g_list_store_get_type() -> GType; |
12123 | pub fn g_list_store_new(item_type: GType) -> *mut GListStore; |
12124 | pub fn g_list_store_append(store: *mut GListStore, item: *mut gobject::GObject); |
12125 | #[cfg (feature = "v2_64" )] |
12126 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
12127 | pub fn g_list_store_find( |
12128 | store: *mut GListStore, |
12129 | item: *mut gobject::GObject, |
12130 | position: *mut c_uint, |
12131 | ) -> gboolean; |
12132 | #[cfg (feature = "v2_64" )] |
12133 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
12134 | pub fn g_list_store_find_with_equal_func( |
12135 | store: *mut GListStore, |
12136 | item: *mut gobject::GObject, |
12137 | equal_func: glib::GEqualFunc, |
12138 | position: *mut c_uint, |
12139 | ) -> gboolean; |
12140 | #[cfg (feature = "v2_74" )] |
12141 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
12142 | pub fn g_list_store_find_with_equal_func_full( |
12143 | store: *mut GListStore, |
12144 | item: *mut gobject::GObject, |
12145 | equal_func: glib::GEqualFuncFull, |
12146 | user_data: gpointer, |
12147 | position: *mut c_uint, |
12148 | ) -> gboolean; |
12149 | pub fn g_list_store_insert( |
12150 | store: *mut GListStore, |
12151 | position: c_uint, |
12152 | item: *mut gobject::GObject, |
12153 | ); |
12154 | pub fn g_list_store_insert_sorted( |
12155 | store: *mut GListStore, |
12156 | item: *mut gobject::GObject, |
12157 | compare_func: glib::GCompareDataFunc, |
12158 | user_data: gpointer, |
12159 | ) -> c_uint; |
12160 | pub fn g_list_store_remove(store: *mut GListStore, position: c_uint); |
12161 | pub fn g_list_store_remove_all(store: *mut GListStore); |
12162 | pub fn g_list_store_sort( |
12163 | store: *mut GListStore, |
12164 | compare_func: glib::GCompareDataFunc, |
12165 | user_data: gpointer, |
12166 | ); |
12167 | pub fn g_list_store_splice( |
12168 | store: *mut GListStore, |
12169 | position: c_uint, |
12170 | n_removals: c_uint, |
12171 | additions: *mut *mut gobject::GObject, |
12172 | n_additions: c_uint, |
12173 | ); |
12174 | |
12175 | //========================================================================= |
12176 | // GMemoryInputStream |
12177 | //========================================================================= |
12178 | pub fn g_memory_input_stream_get_type() -> GType; |
12179 | pub fn g_memory_input_stream_new() -> *mut GInputStream; |
12180 | pub fn g_memory_input_stream_new_from_bytes(bytes: *mut glib::GBytes) -> *mut GInputStream; |
12181 | pub fn g_memory_input_stream_new_from_data( |
12182 | data: *mut u8, |
12183 | len: ssize_t, |
12184 | destroy: glib::GDestroyNotify, |
12185 | ) -> *mut GInputStream; |
12186 | pub fn g_memory_input_stream_add_bytes( |
12187 | stream: *mut GMemoryInputStream, |
12188 | bytes: *mut glib::GBytes, |
12189 | ); |
12190 | pub fn g_memory_input_stream_add_data( |
12191 | stream: *mut GMemoryInputStream, |
12192 | data: *mut u8, |
12193 | len: ssize_t, |
12194 | destroy: glib::GDestroyNotify, |
12195 | ); |
12196 | |
12197 | //========================================================================= |
12198 | // GMemoryOutputStream |
12199 | //========================================================================= |
12200 | pub fn g_memory_output_stream_get_type() -> GType; |
12201 | pub fn g_memory_output_stream_new( |
12202 | data: gpointer, |
12203 | size: size_t, |
12204 | realloc_function: GReallocFunc, |
12205 | destroy_function: glib::GDestroyNotify, |
12206 | ) -> *mut GOutputStream; |
12207 | pub fn g_memory_output_stream_new_resizable() -> *mut GOutputStream; |
12208 | pub fn g_memory_output_stream_get_data(ostream: *mut GMemoryOutputStream) -> gpointer; |
12209 | pub fn g_memory_output_stream_get_data_size(ostream: *mut GMemoryOutputStream) -> size_t; |
12210 | pub fn g_memory_output_stream_get_size(ostream: *mut GMemoryOutputStream) -> size_t; |
12211 | pub fn g_memory_output_stream_steal_as_bytes( |
12212 | ostream: *mut GMemoryOutputStream, |
12213 | ) -> *mut glib::GBytes; |
12214 | pub fn g_memory_output_stream_steal_data(ostream: *mut GMemoryOutputStream) -> gpointer; |
12215 | |
12216 | //========================================================================= |
12217 | // GMenu |
12218 | //========================================================================= |
12219 | pub fn g_menu_get_type() -> GType; |
12220 | pub fn g_menu_new() -> *mut GMenu; |
12221 | pub fn g_menu_append(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char); |
12222 | pub fn g_menu_append_item(menu: *mut GMenu, item: *mut GMenuItem); |
12223 | pub fn g_menu_append_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel); |
12224 | pub fn g_menu_append_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel); |
12225 | pub fn g_menu_freeze(menu: *mut GMenu); |
12226 | pub fn g_menu_insert( |
12227 | menu: *mut GMenu, |
12228 | position: c_int, |
12229 | label: *const c_char, |
12230 | detailed_action: *const c_char, |
12231 | ); |
12232 | pub fn g_menu_insert_item(menu: *mut GMenu, position: c_int, item: *mut GMenuItem); |
12233 | pub fn g_menu_insert_section( |
12234 | menu: *mut GMenu, |
12235 | position: c_int, |
12236 | label: *const c_char, |
12237 | section: *mut GMenuModel, |
12238 | ); |
12239 | pub fn g_menu_insert_submenu( |
12240 | menu: *mut GMenu, |
12241 | position: c_int, |
12242 | label: *const c_char, |
12243 | submenu: *mut GMenuModel, |
12244 | ); |
12245 | pub fn g_menu_prepend(menu: *mut GMenu, label: *const c_char, detailed_action: *const c_char); |
12246 | pub fn g_menu_prepend_item(menu: *mut GMenu, item: *mut GMenuItem); |
12247 | pub fn g_menu_prepend_section(menu: *mut GMenu, label: *const c_char, section: *mut GMenuModel); |
12248 | pub fn g_menu_prepend_submenu(menu: *mut GMenu, label: *const c_char, submenu: *mut GMenuModel); |
12249 | pub fn g_menu_remove(menu: *mut GMenu, position: c_int); |
12250 | pub fn g_menu_remove_all(menu: *mut GMenu); |
12251 | |
12252 | //========================================================================= |
12253 | // GMenuAttributeIter |
12254 | //========================================================================= |
12255 | pub fn g_menu_attribute_iter_get_type() -> GType; |
12256 | pub fn g_menu_attribute_iter_get_name(iter: *mut GMenuAttributeIter) -> *const c_char; |
12257 | pub fn g_menu_attribute_iter_get_next( |
12258 | iter: *mut GMenuAttributeIter, |
12259 | out_name: *mut *const c_char, |
12260 | value: *mut *mut glib::GVariant, |
12261 | ) -> gboolean; |
12262 | pub fn g_menu_attribute_iter_get_value(iter: *mut GMenuAttributeIter) -> *mut glib::GVariant; |
12263 | pub fn g_menu_attribute_iter_next(iter: *mut GMenuAttributeIter) -> gboolean; |
12264 | |
12265 | //========================================================================= |
12266 | // GMenuItem |
12267 | //========================================================================= |
12268 | pub fn g_menu_item_get_type() -> GType; |
12269 | pub fn g_menu_item_new(label: *const c_char, detailed_action: *const c_char) -> *mut GMenuItem; |
12270 | pub fn g_menu_item_new_from_model(model: *mut GMenuModel, item_index: c_int) -> *mut GMenuItem; |
12271 | pub fn g_menu_item_new_section( |
12272 | label: *const c_char, |
12273 | section: *mut GMenuModel, |
12274 | ) -> *mut GMenuItem; |
12275 | pub fn g_menu_item_new_submenu( |
12276 | label: *const c_char, |
12277 | submenu: *mut GMenuModel, |
12278 | ) -> *mut GMenuItem; |
12279 | pub fn g_menu_item_get_attribute( |
12280 | menu_item: *mut GMenuItem, |
12281 | attribute: *const c_char, |
12282 | format_string: *const c_char, |
12283 | ... |
12284 | ) -> gboolean; |
12285 | pub fn g_menu_item_get_attribute_value( |
12286 | menu_item: *mut GMenuItem, |
12287 | attribute: *const c_char, |
12288 | expected_type: *const glib::GVariantType, |
12289 | ) -> *mut glib::GVariant; |
12290 | pub fn g_menu_item_get_link(menu_item: *mut GMenuItem, link: *const c_char) -> *mut GMenuModel; |
12291 | pub fn g_menu_item_set_action_and_target( |
12292 | menu_item: *mut GMenuItem, |
12293 | action: *const c_char, |
12294 | format_string: *const c_char, |
12295 | ... |
12296 | ); |
12297 | pub fn g_menu_item_set_action_and_target_value( |
12298 | menu_item: *mut GMenuItem, |
12299 | action: *const c_char, |
12300 | target_value: *mut glib::GVariant, |
12301 | ); |
12302 | pub fn g_menu_item_set_attribute( |
12303 | menu_item: *mut GMenuItem, |
12304 | attribute: *const c_char, |
12305 | format_string: *const c_char, |
12306 | ... |
12307 | ); |
12308 | pub fn g_menu_item_set_attribute_value( |
12309 | menu_item: *mut GMenuItem, |
12310 | attribute: *const c_char, |
12311 | value: *mut glib::GVariant, |
12312 | ); |
12313 | pub fn g_menu_item_set_detailed_action( |
12314 | menu_item: *mut GMenuItem, |
12315 | detailed_action: *const c_char, |
12316 | ); |
12317 | pub fn g_menu_item_set_icon(menu_item: *mut GMenuItem, icon: *mut GIcon); |
12318 | pub fn g_menu_item_set_label(menu_item: *mut GMenuItem, label: *const c_char); |
12319 | pub fn g_menu_item_set_link( |
12320 | menu_item: *mut GMenuItem, |
12321 | link: *const c_char, |
12322 | model: *mut GMenuModel, |
12323 | ); |
12324 | pub fn g_menu_item_set_section(menu_item: *mut GMenuItem, section: *mut GMenuModel); |
12325 | pub fn g_menu_item_set_submenu(menu_item: *mut GMenuItem, submenu: *mut GMenuModel); |
12326 | |
12327 | //========================================================================= |
12328 | // GMenuLinkIter |
12329 | //========================================================================= |
12330 | pub fn g_menu_link_iter_get_type() -> GType; |
12331 | pub fn g_menu_link_iter_get_name(iter: *mut GMenuLinkIter) -> *const c_char; |
12332 | pub fn g_menu_link_iter_get_next( |
12333 | iter: *mut GMenuLinkIter, |
12334 | out_link: *mut *const c_char, |
12335 | value: *mut *mut GMenuModel, |
12336 | ) -> gboolean; |
12337 | pub fn g_menu_link_iter_get_value(iter: *mut GMenuLinkIter) -> *mut GMenuModel; |
12338 | pub fn g_menu_link_iter_next(iter: *mut GMenuLinkIter) -> gboolean; |
12339 | |
12340 | //========================================================================= |
12341 | // GMenuModel |
12342 | //========================================================================= |
12343 | pub fn g_menu_model_get_type() -> GType; |
12344 | pub fn g_menu_model_get_item_attribute( |
12345 | model: *mut GMenuModel, |
12346 | item_index: c_int, |
12347 | attribute: *const c_char, |
12348 | format_string: *const c_char, |
12349 | ... |
12350 | ) -> gboolean; |
12351 | pub fn g_menu_model_get_item_attribute_value( |
12352 | model: *mut GMenuModel, |
12353 | item_index: c_int, |
12354 | attribute: *const c_char, |
12355 | expected_type: *const glib::GVariantType, |
12356 | ) -> *mut glib::GVariant; |
12357 | pub fn g_menu_model_get_item_link( |
12358 | model: *mut GMenuModel, |
12359 | item_index: c_int, |
12360 | link: *const c_char, |
12361 | ) -> *mut GMenuModel; |
12362 | pub fn g_menu_model_get_n_items(model: *mut GMenuModel) -> c_int; |
12363 | pub fn g_menu_model_is_mutable(model: *mut GMenuModel) -> gboolean; |
12364 | pub fn g_menu_model_items_changed( |
12365 | model: *mut GMenuModel, |
12366 | position: c_int, |
12367 | removed: c_int, |
12368 | added: c_int, |
12369 | ); |
12370 | pub fn g_menu_model_iterate_item_attributes( |
12371 | model: *mut GMenuModel, |
12372 | item_index: c_int, |
12373 | ) -> *mut GMenuAttributeIter; |
12374 | pub fn g_menu_model_iterate_item_links( |
12375 | model: *mut GMenuModel, |
12376 | item_index: c_int, |
12377 | ) -> *mut GMenuLinkIter; |
12378 | |
12379 | //========================================================================= |
12380 | // GMountOperation |
12381 | //========================================================================= |
12382 | pub fn g_mount_operation_get_type() -> GType; |
12383 | pub fn g_mount_operation_new() -> *mut GMountOperation; |
12384 | pub fn g_mount_operation_get_anonymous(op: *mut GMountOperation) -> gboolean; |
12385 | pub fn g_mount_operation_get_choice(op: *mut GMountOperation) -> c_int; |
12386 | pub fn g_mount_operation_get_domain(op: *mut GMountOperation) -> *const c_char; |
12387 | #[cfg (feature = "v2_58" )] |
12388 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12389 | pub fn g_mount_operation_get_is_tcrypt_hidden_volume(op: *mut GMountOperation) -> gboolean; |
12390 | #[cfg (feature = "v2_58" )] |
12391 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12392 | pub fn g_mount_operation_get_is_tcrypt_system_volume(op: *mut GMountOperation) -> gboolean; |
12393 | pub fn g_mount_operation_get_password(op: *mut GMountOperation) -> *const c_char; |
12394 | pub fn g_mount_operation_get_password_save(op: *mut GMountOperation) -> GPasswordSave; |
12395 | #[cfg (feature = "v2_58" )] |
12396 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12397 | pub fn g_mount_operation_get_pim(op: *mut GMountOperation) -> c_uint; |
12398 | pub fn g_mount_operation_get_username(op: *mut GMountOperation) -> *const c_char; |
12399 | pub fn g_mount_operation_reply(op: *mut GMountOperation, result: GMountOperationResult); |
12400 | pub fn g_mount_operation_set_anonymous(op: *mut GMountOperation, anonymous: gboolean); |
12401 | pub fn g_mount_operation_set_choice(op: *mut GMountOperation, choice: c_int); |
12402 | pub fn g_mount_operation_set_domain(op: *mut GMountOperation, domain: *const c_char); |
12403 | #[cfg (feature = "v2_58" )] |
12404 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12405 | pub fn g_mount_operation_set_is_tcrypt_hidden_volume( |
12406 | op: *mut GMountOperation, |
12407 | hidden_volume: gboolean, |
12408 | ); |
12409 | #[cfg (feature = "v2_58" )] |
12410 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12411 | pub fn g_mount_operation_set_is_tcrypt_system_volume( |
12412 | op: *mut GMountOperation, |
12413 | system_volume: gboolean, |
12414 | ); |
12415 | pub fn g_mount_operation_set_password(op: *mut GMountOperation, password: *const c_char); |
12416 | pub fn g_mount_operation_set_password_save(op: *mut GMountOperation, save: GPasswordSave); |
12417 | #[cfg (feature = "v2_58" )] |
12418 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
12419 | pub fn g_mount_operation_set_pim(op: *mut GMountOperation, pim: c_uint); |
12420 | pub fn g_mount_operation_set_username(op: *mut GMountOperation, username: *const c_char); |
12421 | |
12422 | //========================================================================= |
12423 | // GNativeSocketAddress |
12424 | //========================================================================= |
12425 | pub fn g_native_socket_address_get_type() -> GType; |
12426 | pub fn g_native_socket_address_new(native: gpointer, len: size_t) -> *mut GSocketAddress; |
12427 | |
12428 | //========================================================================= |
12429 | // GNativeVolumeMonitor |
12430 | //========================================================================= |
12431 | pub fn g_native_volume_monitor_get_type() -> GType; |
12432 | |
12433 | //========================================================================= |
12434 | // GNetworkAddress |
12435 | //========================================================================= |
12436 | pub fn g_network_address_get_type() -> GType; |
12437 | pub fn g_network_address_new(hostname: *const c_char, port: u16) -> *mut GNetworkAddress; |
12438 | pub fn g_network_address_new_loopback(port: u16) -> *mut GNetworkAddress; |
12439 | pub fn g_network_address_parse( |
12440 | host_and_port: *const c_char, |
12441 | default_port: u16, |
12442 | error: *mut *mut glib::GError, |
12443 | ) -> *mut GNetworkAddress; |
12444 | pub fn g_network_address_parse_uri( |
12445 | uri: *const c_char, |
12446 | default_port: u16, |
12447 | error: *mut *mut glib::GError, |
12448 | ) -> *mut GNetworkAddress; |
12449 | pub fn g_network_address_get_hostname(addr: *mut GNetworkAddress) -> *const c_char; |
12450 | pub fn g_network_address_get_port(addr: *mut GNetworkAddress) -> u16; |
12451 | pub fn g_network_address_get_scheme(addr: *mut GNetworkAddress) -> *const c_char; |
12452 | |
12453 | //========================================================================= |
12454 | // GNetworkService |
12455 | //========================================================================= |
12456 | pub fn g_network_service_get_type() -> GType; |
12457 | pub fn g_network_service_new( |
12458 | service: *const c_char, |
12459 | protocol: *const c_char, |
12460 | domain: *const c_char, |
12461 | ) -> *mut GNetworkService; |
12462 | pub fn g_network_service_get_domain(srv: *mut GNetworkService) -> *const c_char; |
12463 | pub fn g_network_service_get_protocol(srv: *mut GNetworkService) -> *const c_char; |
12464 | pub fn g_network_service_get_scheme(srv: *mut GNetworkService) -> *const c_char; |
12465 | pub fn g_network_service_get_service(srv: *mut GNetworkService) -> *const c_char; |
12466 | pub fn g_network_service_set_scheme(srv: *mut GNetworkService, scheme: *const c_char); |
12467 | |
12468 | //========================================================================= |
12469 | // GNotification |
12470 | //========================================================================= |
12471 | pub fn g_notification_get_type() -> GType; |
12472 | pub fn g_notification_new(title: *const c_char) -> *mut GNotification; |
12473 | pub fn g_notification_add_button( |
12474 | notification: *mut GNotification, |
12475 | label: *const c_char, |
12476 | detailed_action: *const c_char, |
12477 | ); |
12478 | pub fn g_notification_add_button_with_target( |
12479 | notification: *mut GNotification, |
12480 | label: *const c_char, |
12481 | action: *const c_char, |
12482 | target_format: *const c_char, |
12483 | ... |
12484 | ); |
12485 | pub fn g_notification_add_button_with_target_value( |
12486 | notification: *mut GNotification, |
12487 | label: *const c_char, |
12488 | action: *const c_char, |
12489 | target: *mut glib::GVariant, |
12490 | ); |
12491 | pub fn g_notification_set_body(notification: *mut GNotification, body: *const c_char); |
12492 | #[cfg (feature = "v2_70" )] |
12493 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
12494 | pub fn g_notification_set_category(notification: *mut GNotification, category: *const c_char); |
12495 | pub fn g_notification_set_default_action( |
12496 | notification: *mut GNotification, |
12497 | detailed_action: *const c_char, |
12498 | ); |
12499 | pub fn g_notification_set_default_action_and_target( |
12500 | notification: *mut GNotification, |
12501 | action: *const c_char, |
12502 | target_format: *const c_char, |
12503 | ... |
12504 | ); |
12505 | pub fn g_notification_set_default_action_and_target_value( |
12506 | notification: *mut GNotification, |
12507 | action: *const c_char, |
12508 | target: *mut glib::GVariant, |
12509 | ); |
12510 | pub fn g_notification_set_icon(notification: *mut GNotification, icon: *mut GIcon); |
12511 | pub fn g_notification_set_priority( |
12512 | notification: *mut GNotification, |
12513 | priority: GNotificationPriority, |
12514 | ); |
12515 | pub fn g_notification_set_title(notification: *mut GNotification, title: *const c_char); |
12516 | pub fn g_notification_set_urgent(notification: *mut GNotification, urgent: gboolean); |
12517 | |
12518 | //========================================================================= |
12519 | // GOutputStream |
12520 | //========================================================================= |
12521 | pub fn g_output_stream_get_type() -> GType; |
12522 | pub fn g_output_stream_clear_pending(stream: *mut GOutputStream); |
12523 | pub fn g_output_stream_close( |
12524 | stream: *mut GOutputStream, |
12525 | cancellable: *mut GCancellable, |
12526 | error: *mut *mut glib::GError, |
12527 | ) -> gboolean; |
12528 | pub fn g_output_stream_close_async( |
12529 | stream: *mut GOutputStream, |
12530 | io_priority: c_int, |
12531 | cancellable: *mut GCancellable, |
12532 | callback: GAsyncReadyCallback, |
12533 | user_data: gpointer, |
12534 | ); |
12535 | pub fn g_output_stream_close_finish( |
12536 | stream: *mut GOutputStream, |
12537 | result: *mut GAsyncResult, |
12538 | error: *mut *mut glib::GError, |
12539 | ) -> gboolean; |
12540 | pub fn g_output_stream_flush( |
12541 | stream: *mut GOutputStream, |
12542 | cancellable: *mut GCancellable, |
12543 | error: *mut *mut glib::GError, |
12544 | ) -> gboolean; |
12545 | pub fn g_output_stream_flush_async( |
12546 | stream: *mut GOutputStream, |
12547 | io_priority: c_int, |
12548 | cancellable: *mut GCancellable, |
12549 | callback: GAsyncReadyCallback, |
12550 | user_data: gpointer, |
12551 | ); |
12552 | pub fn g_output_stream_flush_finish( |
12553 | stream: *mut GOutputStream, |
12554 | result: *mut GAsyncResult, |
12555 | error: *mut *mut glib::GError, |
12556 | ) -> gboolean; |
12557 | pub fn g_output_stream_has_pending(stream: *mut GOutputStream) -> gboolean; |
12558 | pub fn g_output_stream_is_closed(stream: *mut GOutputStream) -> gboolean; |
12559 | pub fn g_output_stream_is_closing(stream: *mut GOutputStream) -> gboolean; |
12560 | pub fn g_output_stream_printf( |
12561 | stream: *mut GOutputStream, |
12562 | bytes_written: *mut size_t, |
12563 | cancellable: *mut GCancellable, |
12564 | error: *mut *mut glib::GError, |
12565 | format: *const c_char, |
12566 | ... |
12567 | ) -> gboolean; |
12568 | pub fn g_output_stream_set_pending( |
12569 | stream: *mut GOutputStream, |
12570 | error: *mut *mut glib::GError, |
12571 | ) -> gboolean; |
12572 | pub fn g_output_stream_splice( |
12573 | stream: *mut GOutputStream, |
12574 | source: *mut GInputStream, |
12575 | flags: GOutputStreamSpliceFlags, |
12576 | cancellable: *mut GCancellable, |
12577 | error: *mut *mut glib::GError, |
12578 | ) -> ssize_t; |
12579 | pub fn g_output_stream_splice_async( |
12580 | stream: *mut GOutputStream, |
12581 | source: *mut GInputStream, |
12582 | flags: GOutputStreamSpliceFlags, |
12583 | io_priority: c_int, |
12584 | cancellable: *mut GCancellable, |
12585 | callback: GAsyncReadyCallback, |
12586 | user_data: gpointer, |
12587 | ); |
12588 | pub fn g_output_stream_splice_finish( |
12589 | stream: *mut GOutputStream, |
12590 | result: *mut GAsyncResult, |
12591 | error: *mut *mut glib::GError, |
12592 | ) -> ssize_t; |
12593 | //pub fn g_output_stream_vprintf(stream: *mut GOutputStream, bytes_written: *mut size_t, cancellable: *mut GCancellable, error: *mut *mut glib::GError, format: *const c_char, args: /*Unimplemented*/va_list) -> gboolean; |
12594 | pub fn g_output_stream_write( |
12595 | stream: *mut GOutputStream, |
12596 | buffer: *mut u8, |
12597 | count: size_t, |
12598 | cancellable: *mut GCancellable, |
12599 | error: *mut *mut glib::GError, |
12600 | ) -> ssize_t; |
12601 | pub fn g_output_stream_write_all( |
12602 | stream: *mut GOutputStream, |
12603 | buffer: *mut u8, |
12604 | count: size_t, |
12605 | bytes_written: *mut size_t, |
12606 | cancellable: *mut GCancellable, |
12607 | error: *mut *mut glib::GError, |
12608 | ) -> gboolean; |
12609 | pub fn g_output_stream_write_all_async( |
12610 | stream: *mut GOutputStream, |
12611 | buffer: *mut u8, |
12612 | count: size_t, |
12613 | io_priority: c_int, |
12614 | cancellable: *mut GCancellable, |
12615 | callback: GAsyncReadyCallback, |
12616 | user_data: gpointer, |
12617 | ); |
12618 | pub fn g_output_stream_write_all_finish( |
12619 | stream: *mut GOutputStream, |
12620 | result: *mut GAsyncResult, |
12621 | bytes_written: *mut size_t, |
12622 | error: *mut *mut glib::GError, |
12623 | ) -> gboolean; |
12624 | pub fn g_output_stream_write_async( |
12625 | stream: *mut GOutputStream, |
12626 | buffer: *mut u8, |
12627 | count: size_t, |
12628 | io_priority: c_int, |
12629 | cancellable: *mut GCancellable, |
12630 | callback: GAsyncReadyCallback, |
12631 | user_data: gpointer, |
12632 | ); |
12633 | pub fn g_output_stream_write_bytes( |
12634 | stream: *mut GOutputStream, |
12635 | bytes: *mut glib::GBytes, |
12636 | cancellable: *mut GCancellable, |
12637 | error: *mut *mut glib::GError, |
12638 | ) -> ssize_t; |
12639 | pub fn g_output_stream_write_bytes_async( |
12640 | stream: *mut GOutputStream, |
12641 | bytes: *mut glib::GBytes, |
12642 | io_priority: c_int, |
12643 | cancellable: *mut GCancellable, |
12644 | callback: GAsyncReadyCallback, |
12645 | user_data: gpointer, |
12646 | ); |
12647 | pub fn g_output_stream_write_bytes_finish( |
12648 | stream: *mut GOutputStream, |
12649 | result: *mut GAsyncResult, |
12650 | error: *mut *mut glib::GError, |
12651 | ) -> ssize_t; |
12652 | pub fn g_output_stream_write_finish( |
12653 | stream: *mut GOutputStream, |
12654 | result: *mut GAsyncResult, |
12655 | error: *mut *mut glib::GError, |
12656 | ) -> ssize_t; |
12657 | #[cfg (feature = "v2_60" )] |
12658 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12659 | pub fn g_output_stream_writev( |
12660 | stream: *mut GOutputStream, |
12661 | vectors: *const GOutputVector, |
12662 | n_vectors: size_t, |
12663 | bytes_written: *mut size_t, |
12664 | cancellable: *mut GCancellable, |
12665 | error: *mut *mut glib::GError, |
12666 | ) -> gboolean; |
12667 | #[cfg (feature = "v2_60" )] |
12668 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12669 | pub fn g_output_stream_writev_all( |
12670 | stream: *mut GOutputStream, |
12671 | vectors: *mut GOutputVector, |
12672 | n_vectors: size_t, |
12673 | bytes_written: *mut size_t, |
12674 | cancellable: *mut GCancellable, |
12675 | error: *mut *mut glib::GError, |
12676 | ) -> gboolean; |
12677 | #[cfg (feature = "v2_60" )] |
12678 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12679 | pub fn g_output_stream_writev_all_async( |
12680 | stream: *mut GOutputStream, |
12681 | vectors: *mut GOutputVector, |
12682 | n_vectors: size_t, |
12683 | io_priority: c_int, |
12684 | cancellable: *mut GCancellable, |
12685 | callback: GAsyncReadyCallback, |
12686 | user_data: gpointer, |
12687 | ); |
12688 | #[cfg (feature = "v2_60" )] |
12689 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12690 | pub fn g_output_stream_writev_all_finish( |
12691 | stream: *mut GOutputStream, |
12692 | result: *mut GAsyncResult, |
12693 | bytes_written: *mut size_t, |
12694 | error: *mut *mut glib::GError, |
12695 | ) -> gboolean; |
12696 | #[cfg (feature = "v2_60" )] |
12697 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12698 | pub fn g_output_stream_writev_async( |
12699 | stream: *mut GOutputStream, |
12700 | vectors: *const GOutputVector, |
12701 | n_vectors: size_t, |
12702 | io_priority: c_int, |
12703 | cancellable: *mut GCancellable, |
12704 | callback: GAsyncReadyCallback, |
12705 | user_data: gpointer, |
12706 | ); |
12707 | #[cfg (feature = "v2_60" )] |
12708 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12709 | pub fn g_output_stream_writev_finish( |
12710 | stream: *mut GOutputStream, |
12711 | result: *mut GAsyncResult, |
12712 | bytes_written: *mut size_t, |
12713 | error: *mut *mut glib::GError, |
12714 | ) -> gboolean; |
12715 | |
12716 | //========================================================================= |
12717 | // GPermission |
12718 | //========================================================================= |
12719 | pub fn g_permission_get_type() -> GType; |
12720 | pub fn g_permission_acquire( |
12721 | permission: *mut GPermission, |
12722 | cancellable: *mut GCancellable, |
12723 | error: *mut *mut glib::GError, |
12724 | ) -> gboolean; |
12725 | pub fn g_permission_acquire_async( |
12726 | permission: *mut GPermission, |
12727 | cancellable: *mut GCancellable, |
12728 | callback: GAsyncReadyCallback, |
12729 | user_data: gpointer, |
12730 | ); |
12731 | pub fn g_permission_acquire_finish( |
12732 | permission: *mut GPermission, |
12733 | result: *mut GAsyncResult, |
12734 | error: *mut *mut glib::GError, |
12735 | ) -> gboolean; |
12736 | pub fn g_permission_get_allowed(permission: *mut GPermission) -> gboolean; |
12737 | pub fn g_permission_get_can_acquire(permission: *mut GPermission) -> gboolean; |
12738 | pub fn g_permission_get_can_release(permission: *mut GPermission) -> gboolean; |
12739 | pub fn g_permission_impl_update( |
12740 | permission: *mut GPermission, |
12741 | allowed: gboolean, |
12742 | can_acquire: gboolean, |
12743 | can_release: gboolean, |
12744 | ); |
12745 | pub fn g_permission_release( |
12746 | permission: *mut GPermission, |
12747 | cancellable: *mut GCancellable, |
12748 | error: *mut *mut glib::GError, |
12749 | ) -> gboolean; |
12750 | pub fn g_permission_release_async( |
12751 | permission: *mut GPermission, |
12752 | cancellable: *mut GCancellable, |
12753 | callback: GAsyncReadyCallback, |
12754 | user_data: gpointer, |
12755 | ); |
12756 | pub fn g_permission_release_finish( |
12757 | permission: *mut GPermission, |
12758 | result: *mut GAsyncResult, |
12759 | error: *mut *mut glib::GError, |
12760 | ) -> gboolean; |
12761 | |
12762 | //========================================================================= |
12763 | // GPropertyAction |
12764 | //========================================================================= |
12765 | pub fn g_property_action_get_type() -> GType; |
12766 | pub fn g_property_action_new( |
12767 | name: *const c_char, |
12768 | object: *mut gobject::GObject, |
12769 | property_name: *const c_char, |
12770 | ) -> *mut GPropertyAction; |
12771 | |
12772 | //========================================================================= |
12773 | // GProxyAddress |
12774 | //========================================================================= |
12775 | pub fn g_proxy_address_get_type() -> GType; |
12776 | pub fn g_proxy_address_new( |
12777 | inetaddr: *mut GInetAddress, |
12778 | port: u16, |
12779 | protocol: *const c_char, |
12780 | dest_hostname: *const c_char, |
12781 | dest_port: u16, |
12782 | username: *const c_char, |
12783 | password: *const c_char, |
12784 | ) -> *mut GSocketAddress; |
12785 | pub fn g_proxy_address_get_destination_hostname(proxy: *mut GProxyAddress) -> *const c_char; |
12786 | pub fn g_proxy_address_get_destination_port(proxy: *mut GProxyAddress) -> u16; |
12787 | pub fn g_proxy_address_get_destination_protocol(proxy: *mut GProxyAddress) -> *const c_char; |
12788 | pub fn g_proxy_address_get_password(proxy: *mut GProxyAddress) -> *const c_char; |
12789 | pub fn g_proxy_address_get_protocol(proxy: *mut GProxyAddress) -> *const c_char; |
12790 | pub fn g_proxy_address_get_uri(proxy: *mut GProxyAddress) -> *const c_char; |
12791 | pub fn g_proxy_address_get_username(proxy: *mut GProxyAddress) -> *const c_char; |
12792 | |
12793 | //========================================================================= |
12794 | // GProxyAddressEnumerator |
12795 | //========================================================================= |
12796 | pub fn g_proxy_address_enumerator_get_type() -> GType; |
12797 | |
12798 | //========================================================================= |
12799 | // GResolver |
12800 | //========================================================================= |
12801 | pub fn g_resolver_get_type() -> GType; |
12802 | pub fn g_resolver_free_addresses(addresses: *mut glib::GList); |
12803 | pub fn g_resolver_free_targets(targets: *mut glib::GList); |
12804 | pub fn g_resolver_get_default() -> *mut GResolver; |
12805 | #[cfg (feature = "v2_78" )] |
12806 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
12807 | pub fn g_resolver_get_timeout(resolver: *mut GResolver) -> c_uint; |
12808 | pub fn g_resolver_lookup_by_address( |
12809 | resolver: *mut GResolver, |
12810 | address: *mut GInetAddress, |
12811 | cancellable: *mut GCancellable, |
12812 | error: *mut *mut glib::GError, |
12813 | ) -> *mut c_char; |
12814 | pub fn g_resolver_lookup_by_address_async( |
12815 | resolver: *mut GResolver, |
12816 | address: *mut GInetAddress, |
12817 | cancellable: *mut GCancellable, |
12818 | callback: GAsyncReadyCallback, |
12819 | user_data: gpointer, |
12820 | ); |
12821 | pub fn g_resolver_lookup_by_address_finish( |
12822 | resolver: *mut GResolver, |
12823 | result: *mut GAsyncResult, |
12824 | error: *mut *mut glib::GError, |
12825 | ) -> *mut c_char; |
12826 | pub fn g_resolver_lookup_by_name( |
12827 | resolver: *mut GResolver, |
12828 | hostname: *const c_char, |
12829 | cancellable: *mut GCancellable, |
12830 | error: *mut *mut glib::GError, |
12831 | ) -> *mut glib::GList; |
12832 | pub fn g_resolver_lookup_by_name_async( |
12833 | resolver: *mut GResolver, |
12834 | hostname: *const c_char, |
12835 | cancellable: *mut GCancellable, |
12836 | callback: GAsyncReadyCallback, |
12837 | user_data: gpointer, |
12838 | ); |
12839 | pub fn g_resolver_lookup_by_name_finish( |
12840 | resolver: *mut GResolver, |
12841 | result: *mut GAsyncResult, |
12842 | error: *mut *mut glib::GError, |
12843 | ) -> *mut glib::GList; |
12844 | #[cfg (feature = "v2_60" )] |
12845 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12846 | pub fn g_resolver_lookup_by_name_with_flags( |
12847 | resolver: *mut GResolver, |
12848 | hostname: *const c_char, |
12849 | flags: GResolverNameLookupFlags, |
12850 | cancellable: *mut GCancellable, |
12851 | error: *mut *mut glib::GError, |
12852 | ) -> *mut glib::GList; |
12853 | #[cfg (feature = "v2_60" )] |
12854 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12855 | pub fn g_resolver_lookup_by_name_with_flags_async( |
12856 | resolver: *mut GResolver, |
12857 | hostname: *const c_char, |
12858 | flags: GResolverNameLookupFlags, |
12859 | cancellable: *mut GCancellable, |
12860 | callback: GAsyncReadyCallback, |
12861 | user_data: gpointer, |
12862 | ); |
12863 | #[cfg (feature = "v2_60" )] |
12864 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
12865 | pub fn g_resolver_lookup_by_name_with_flags_finish( |
12866 | resolver: *mut GResolver, |
12867 | result: *mut GAsyncResult, |
12868 | error: *mut *mut glib::GError, |
12869 | ) -> *mut glib::GList; |
12870 | pub fn g_resolver_lookup_records( |
12871 | resolver: *mut GResolver, |
12872 | rrname: *const c_char, |
12873 | record_type: GResolverRecordType, |
12874 | cancellable: *mut GCancellable, |
12875 | error: *mut *mut glib::GError, |
12876 | ) -> *mut glib::GList; |
12877 | pub fn g_resolver_lookup_records_async( |
12878 | resolver: *mut GResolver, |
12879 | rrname: *const c_char, |
12880 | record_type: GResolverRecordType, |
12881 | cancellable: *mut GCancellable, |
12882 | callback: GAsyncReadyCallback, |
12883 | user_data: gpointer, |
12884 | ); |
12885 | pub fn g_resolver_lookup_records_finish( |
12886 | resolver: *mut GResolver, |
12887 | result: *mut GAsyncResult, |
12888 | error: *mut *mut glib::GError, |
12889 | ) -> *mut glib::GList; |
12890 | pub fn g_resolver_lookup_service( |
12891 | resolver: *mut GResolver, |
12892 | service: *const c_char, |
12893 | protocol: *const c_char, |
12894 | domain: *const c_char, |
12895 | cancellable: *mut GCancellable, |
12896 | error: *mut *mut glib::GError, |
12897 | ) -> *mut glib::GList; |
12898 | pub fn g_resolver_lookup_service_async( |
12899 | resolver: *mut GResolver, |
12900 | service: *const c_char, |
12901 | protocol: *const c_char, |
12902 | domain: *const c_char, |
12903 | cancellable: *mut GCancellable, |
12904 | callback: GAsyncReadyCallback, |
12905 | user_data: gpointer, |
12906 | ); |
12907 | pub fn g_resolver_lookup_service_finish( |
12908 | resolver: *mut GResolver, |
12909 | result: *mut GAsyncResult, |
12910 | error: *mut *mut glib::GError, |
12911 | ) -> *mut glib::GList; |
12912 | pub fn g_resolver_set_default(resolver: *mut GResolver); |
12913 | #[cfg (feature = "v2_78" )] |
12914 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
12915 | pub fn g_resolver_set_timeout(resolver: *mut GResolver, timeout_ms: c_uint); |
12916 | |
12917 | //========================================================================= |
12918 | // GSettings |
12919 | //========================================================================= |
12920 | pub fn g_settings_get_type() -> GType; |
12921 | pub fn g_settings_new(schema_id: *const c_char) -> *mut GSettings; |
12922 | pub fn g_settings_new_full( |
12923 | schema: *mut GSettingsSchema, |
12924 | backend: *mut GSettingsBackend, |
12925 | path: *const c_char, |
12926 | ) -> *mut GSettings; |
12927 | pub fn g_settings_new_with_backend( |
12928 | schema_id: *const c_char, |
12929 | backend: *mut GSettingsBackend, |
12930 | ) -> *mut GSettings; |
12931 | pub fn g_settings_new_with_backend_and_path( |
12932 | schema_id: *const c_char, |
12933 | backend: *mut GSettingsBackend, |
12934 | path: *const c_char, |
12935 | ) -> *mut GSettings; |
12936 | pub fn g_settings_new_with_path( |
12937 | schema_id: *const c_char, |
12938 | path: *const c_char, |
12939 | ) -> *mut GSettings; |
12940 | pub fn g_settings_list_relocatable_schemas() -> *const *const c_char; |
12941 | pub fn g_settings_list_schemas() -> *const *const c_char; |
12942 | pub fn g_settings_sync(); |
12943 | pub fn g_settings_unbind(object: *mut gobject::GObject, property: *const c_char); |
12944 | pub fn g_settings_apply(settings: *mut GSettings); |
12945 | pub fn g_settings_bind( |
12946 | settings: *mut GSettings, |
12947 | key: *const c_char, |
12948 | object: *mut gobject::GObject, |
12949 | property: *const c_char, |
12950 | flags: GSettingsBindFlags, |
12951 | ); |
12952 | pub fn g_settings_bind_with_mapping( |
12953 | settings: *mut GSettings, |
12954 | key: *const c_char, |
12955 | object: *mut gobject::GObject, |
12956 | property: *const c_char, |
12957 | flags: GSettingsBindFlags, |
12958 | get_mapping: GSettingsBindGetMapping, |
12959 | set_mapping: GSettingsBindSetMapping, |
12960 | user_data: gpointer, |
12961 | destroy: glib::GDestroyNotify, |
12962 | ); |
12963 | pub fn g_settings_bind_writable( |
12964 | settings: *mut GSettings, |
12965 | key: *const c_char, |
12966 | object: *mut gobject::GObject, |
12967 | property: *const c_char, |
12968 | inverted: gboolean, |
12969 | ); |
12970 | pub fn g_settings_create_action(settings: *mut GSettings, key: *const c_char) -> *mut GAction; |
12971 | pub fn g_settings_delay(settings: *mut GSettings); |
12972 | pub fn g_settings_get(settings: *mut GSettings, key: *const c_char, format: *const c_char, ...); |
12973 | pub fn g_settings_get_boolean(settings: *mut GSettings, key: *const c_char) -> gboolean; |
12974 | pub fn g_settings_get_child(settings: *mut GSettings, name: *const c_char) -> *mut GSettings; |
12975 | pub fn g_settings_get_default_value( |
12976 | settings: *mut GSettings, |
12977 | key: *const c_char, |
12978 | ) -> *mut glib::GVariant; |
12979 | pub fn g_settings_get_double(settings: *mut GSettings, key: *const c_char) -> c_double; |
12980 | pub fn g_settings_get_enum(settings: *mut GSettings, key: *const c_char) -> c_int; |
12981 | pub fn g_settings_get_flags(settings: *mut GSettings, key: *const c_char) -> c_uint; |
12982 | pub fn g_settings_get_has_unapplied(settings: *mut GSettings) -> gboolean; |
12983 | pub fn g_settings_get_int(settings: *mut GSettings, key: *const c_char) -> c_int; |
12984 | pub fn g_settings_get_int64(settings: *mut GSettings, key: *const c_char) -> i64; |
12985 | pub fn g_settings_get_mapped( |
12986 | settings: *mut GSettings, |
12987 | key: *const c_char, |
12988 | mapping: GSettingsGetMapping, |
12989 | user_data: gpointer, |
12990 | ) -> gpointer; |
12991 | pub fn g_settings_get_range( |
12992 | settings: *mut GSettings, |
12993 | key: *const c_char, |
12994 | ) -> *mut glib::GVariant; |
12995 | pub fn g_settings_get_string(settings: *mut GSettings, key: *const c_char) -> *mut c_char; |
12996 | pub fn g_settings_get_strv(settings: *mut GSettings, key: *const c_char) -> *mut *mut c_char; |
12997 | pub fn g_settings_get_uint(settings: *mut GSettings, key: *const c_char) -> c_uint; |
12998 | pub fn g_settings_get_uint64(settings: *mut GSettings, key: *const c_char) -> u64; |
12999 | pub fn g_settings_get_user_value( |
13000 | settings: *mut GSettings, |
13001 | key: *const c_char, |
13002 | ) -> *mut glib::GVariant; |
13003 | pub fn g_settings_get_value( |
13004 | settings: *mut GSettings, |
13005 | key: *const c_char, |
13006 | ) -> *mut glib::GVariant; |
13007 | pub fn g_settings_is_writable(settings: *mut GSettings, name: *const c_char) -> gboolean; |
13008 | pub fn g_settings_list_children(settings: *mut GSettings) -> *mut *mut c_char; |
13009 | pub fn g_settings_list_keys(settings: *mut GSettings) -> *mut *mut c_char; |
13010 | pub fn g_settings_range_check( |
13011 | settings: *mut GSettings, |
13012 | key: *const c_char, |
13013 | value: *mut glib::GVariant, |
13014 | ) -> gboolean; |
13015 | pub fn g_settings_reset(settings: *mut GSettings, key: *const c_char); |
13016 | pub fn g_settings_revert(settings: *mut GSettings); |
13017 | pub fn g_settings_set( |
13018 | settings: *mut GSettings, |
13019 | key: *const c_char, |
13020 | format: *const c_char, |
13021 | ... |
13022 | ) -> gboolean; |
13023 | pub fn g_settings_set_boolean( |
13024 | settings: *mut GSettings, |
13025 | key: *const c_char, |
13026 | value: gboolean, |
13027 | ) -> gboolean; |
13028 | pub fn g_settings_set_double( |
13029 | settings: *mut GSettings, |
13030 | key: *const c_char, |
13031 | value: c_double, |
13032 | ) -> gboolean; |
13033 | pub fn g_settings_set_enum( |
13034 | settings: *mut GSettings, |
13035 | key: *const c_char, |
13036 | value: c_int, |
13037 | ) -> gboolean; |
13038 | pub fn g_settings_set_flags( |
13039 | settings: *mut GSettings, |
13040 | key: *const c_char, |
13041 | value: c_uint, |
13042 | ) -> gboolean; |
13043 | pub fn g_settings_set_int( |
13044 | settings: *mut GSettings, |
13045 | key: *const c_char, |
13046 | value: c_int, |
13047 | ) -> gboolean; |
13048 | pub fn g_settings_set_int64( |
13049 | settings: *mut GSettings, |
13050 | key: *const c_char, |
13051 | value: i64, |
13052 | ) -> gboolean; |
13053 | pub fn g_settings_set_string( |
13054 | settings: *mut GSettings, |
13055 | key: *const c_char, |
13056 | value: *const c_char, |
13057 | ) -> gboolean; |
13058 | pub fn g_settings_set_strv( |
13059 | settings: *mut GSettings, |
13060 | key: *const c_char, |
13061 | value: *const *const c_char, |
13062 | ) -> gboolean; |
13063 | pub fn g_settings_set_uint( |
13064 | settings: *mut GSettings, |
13065 | key: *const c_char, |
13066 | value: c_uint, |
13067 | ) -> gboolean; |
13068 | pub fn g_settings_set_uint64( |
13069 | settings: *mut GSettings, |
13070 | key: *const c_char, |
13071 | value: u64, |
13072 | ) -> gboolean; |
13073 | pub fn g_settings_set_value( |
13074 | settings: *mut GSettings, |
13075 | key: *const c_char, |
13076 | value: *mut glib::GVariant, |
13077 | ) -> gboolean; |
13078 | |
13079 | //========================================================================= |
13080 | // GSettingsBackend |
13081 | //========================================================================= |
13082 | pub fn g_settings_backend_get_type() -> GType; |
13083 | pub fn g_settings_backend_flatten_tree( |
13084 | tree: *mut glib::GTree, |
13085 | path: *mut *mut c_char, |
13086 | keys: *mut *mut *const c_char, |
13087 | values: *mut *mut *mut glib::GVariant, |
13088 | ); |
13089 | pub fn g_settings_backend_get_default() -> *mut GSettingsBackend; |
13090 | pub fn g_settings_backend_changed( |
13091 | backend: *mut GSettingsBackend, |
13092 | key: *const c_char, |
13093 | origin_tag: gpointer, |
13094 | ); |
13095 | pub fn g_settings_backend_changed_tree( |
13096 | backend: *mut GSettingsBackend, |
13097 | tree: *mut glib::GTree, |
13098 | origin_tag: gpointer, |
13099 | ); |
13100 | pub fn g_settings_backend_keys_changed( |
13101 | backend: *mut GSettingsBackend, |
13102 | path: *const c_char, |
13103 | items: *const *const c_char, |
13104 | origin_tag: gpointer, |
13105 | ); |
13106 | pub fn g_settings_backend_path_changed( |
13107 | backend: *mut GSettingsBackend, |
13108 | path: *const c_char, |
13109 | origin_tag: gpointer, |
13110 | ); |
13111 | pub fn g_settings_backend_path_writable_changed( |
13112 | backend: *mut GSettingsBackend, |
13113 | path: *const c_char, |
13114 | ); |
13115 | pub fn g_settings_backend_writable_changed(backend: *mut GSettingsBackend, key: *const c_char); |
13116 | |
13117 | //========================================================================= |
13118 | // GSimpleAction |
13119 | //========================================================================= |
13120 | pub fn g_simple_action_get_type() -> GType; |
13121 | pub fn g_simple_action_new( |
13122 | name: *const c_char, |
13123 | parameter_type: *const glib::GVariantType, |
13124 | ) -> *mut GSimpleAction; |
13125 | pub fn g_simple_action_new_stateful( |
13126 | name: *const c_char, |
13127 | parameter_type: *const glib::GVariantType, |
13128 | state: *mut glib::GVariant, |
13129 | ) -> *mut GSimpleAction; |
13130 | pub fn g_simple_action_set_enabled(simple: *mut GSimpleAction, enabled: gboolean); |
13131 | pub fn g_simple_action_set_state(simple: *mut GSimpleAction, value: *mut glib::GVariant); |
13132 | pub fn g_simple_action_set_state_hint( |
13133 | simple: *mut GSimpleAction, |
13134 | state_hint: *mut glib::GVariant, |
13135 | ); |
13136 | |
13137 | //========================================================================= |
13138 | // GSimpleActionGroup |
13139 | //========================================================================= |
13140 | pub fn g_simple_action_group_get_type() -> GType; |
13141 | pub fn g_simple_action_group_new() -> *mut GSimpleActionGroup; |
13142 | pub fn g_simple_action_group_add_entries( |
13143 | simple: *mut GSimpleActionGroup, |
13144 | entries: *const GActionEntry, |
13145 | n_entries: c_int, |
13146 | user_data: gpointer, |
13147 | ); |
13148 | pub fn g_simple_action_group_insert(simple: *mut GSimpleActionGroup, action: *mut GAction); |
13149 | pub fn g_simple_action_group_lookup( |
13150 | simple: *mut GSimpleActionGroup, |
13151 | action_name: *const c_char, |
13152 | ) -> *mut GAction; |
13153 | pub fn g_simple_action_group_remove( |
13154 | simple: *mut GSimpleActionGroup, |
13155 | action_name: *const c_char, |
13156 | ); |
13157 | |
13158 | //========================================================================= |
13159 | // GSimpleAsyncResult |
13160 | //========================================================================= |
13161 | pub fn g_simple_async_result_get_type() -> GType; |
13162 | pub fn g_simple_async_result_new( |
13163 | source_object: *mut gobject::GObject, |
13164 | callback: GAsyncReadyCallback, |
13165 | user_data: gpointer, |
13166 | source_tag: gpointer, |
13167 | ) -> *mut GSimpleAsyncResult; |
13168 | pub fn g_simple_async_result_new_error( |
13169 | source_object: *mut gobject::GObject, |
13170 | callback: GAsyncReadyCallback, |
13171 | user_data: gpointer, |
13172 | domain: glib::GQuark, |
13173 | code: c_int, |
13174 | format: *const c_char, |
13175 | ... |
13176 | ) -> *mut GSimpleAsyncResult; |
13177 | pub fn g_simple_async_result_new_from_error( |
13178 | source_object: *mut gobject::GObject, |
13179 | callback: GAsyncReadyCallback, |
13180 | user_data: gpointer, |
13181 | error: *const glib::GError, |
13182 | ) -> *mut GSimpleAsyncResult; |
13183 | pub fn g_simple_async_result_new_take_error( |
13184 | source_object: *mut gobject::GObject, |
13185 | callback: GAsyncReadyCallback, |
13186 | user_data: gpointer, |
13187 | error: *mut glib::GError, |
13188 | ) -> *mut GSimpleAsyncResult; |
13189 | pub fn g_simple_async_result_is_valid( |
13190 | result: *mut GAsyncResult, |
13191 | source: *mut gobject::GObject, |
13192 | source_tag: gpointer, |
13193 | ) -> gboolean; |
13194 | pub fn g_simple_async_result_complete(simple: *mut GSimpleAsyncResult); |
13195 | pub fn g_simple_async_result_complete_in_idle(simple: *mut GSimpleAsyncResult); |
13196 | pub fn g_simple_async_result_get_op_res_gboolean(simple: *mut GSimpleAsyncResult) -> gboolean; |
13197 | pub fn g_simple_async_result_get_op_res_gpointer(simple: *mut GSimpleAsyncResult) -> gpointer; |
13198 | pub fn g_simple_async_result_get_op_res_gssize(simple: *mut GSimpleAsyncResult) -> ssize_t; |
13199 | pub fn g_simple_async_result_get_source_tag(simple: *mut GSimpleAsyncResult) -> gpointer; |
13200 | pub fn g_simple_async_result_propagate_error( |
13201 | simple: *mut GSimpleAsyncResult, |
13202 | error: *mut *mut glib::GError, |
13203 | ) -> gboolean; |
13204 | pub fn g_simple_async_result_run_in_thread( |
13205 | simple: *mut GSimpleAsyncResult, |
13206 | func: GSimpleAsyncThreadFunc, |
13207 | io_priority: c_int, |
13208 | cancellable: *mut GCancellable, |
13209 | ); |
13210 | pub fn g_simple_async_result_set_check_cancellable( |
13211 | simple: *mut GSimpleAsyncResult, |
13212 | check_cancellable: *mut GCancellable, |
13213 | ); |
13214 | pub fn g_simple_async_result_set_error( |
13215 | simple: *mut GSimpleAsyncResult, |
13216 | domain: glib::GQuark, |
13217 | code: c_int, |
13218 | format: *const c_char, |
13219 | ... |
13220 | ); |
13221 | //pub fn g_simple_async_result_set_error_va(simple: *mut GSimpleAsyncResult, domain: glib::GQuark, code: c_int, format: *const c_char, args: /*Unimplemented*/va_list); |
13222 | pub fn g_simple_async_result_set_from_error( |
13223 | simple: *mut GSimpleAsyncResult, |
13224 | error: *const glib::GError, |
13225 | ); |
13226 | pub fn g_simple_async_result_set_handle_cancellation( |
13227 | simple: *mut GSimpleAsyncResult, |
13228 | handle_cancellation: gboolean, |
13229 | ); |
13230 | pub fn g_simple_async_result_set_op_res_gboolean( |
13231 | simple: *mut GSimpleAsyncResult, |
13232 | op_res: gboolean, |
13233 | ); |
13234 | pub fn g_simple_async_result_set_op_res_gpointer( |
13235 | simple: *mut GSimpleAsyncResult, |
13236 | op_res: gpointer, |
13237 | destroy_op_res: glib::GDestroyNotify, |
13238 | ); |
13239 | pub fn g_simple_async_result_set_op_res_gssize( |
13240 | simple: *mut GSimpleAsyncResult, |
13241 | op_res: ssize_t, |
13242 | ); |
13243 | pub fn g_simple_async_result_take_error( |
13244 | simple: *mut GSimpleAsyncResult, |
13245 | error: *mut glib::GError, |
13246 | ); |
13247 | |
13248 | //========================================================================= |
13249 | // GSimpleIOStream |
13250 | //========================================================================= |
13251 | pub fn g_simple_io_stream_get_type() -> GType; |
13252 | pub fn g_simple_io_stream_new( |
13253 | input_stream: *mut GInputStream, |
13254 | output_stream: *mut GOutputStream, |
13255 | ) -> *mut GIOStream; |
13256 | |
13257 | //========================================================================= |
13258 | // GSimplePermission |
13259 | //========================================================================= |
13260 | pub fn g_simple_permission_get_type() -> GType; |
13261 | pub fn g_simple_permission_new(allowed: gboolean) -> *mut GPermission; |
13262 | |
13263 | //========================================================================= |
13264 | // GSimpleProxyResolver |
13265 | //========================================================================= |
13266 | pub fn g_simple_proxy_resolver_get_type() -> GType; |
13267 | pub fn g_simple_proxy_resolver_new( |
13268 | default_proxy: *const c_char, |
13269 | ignore_hosts: *mut *mut c_char, |
13270 | ) -> *mut GProxyResolver; |
13271 | pub fn g_simple_proxy_resolver_set_default_proxy( |
13272 | resolver: *mut GSimpleProxyResolver, |
13273 | default_proxy: *const c_char, |
13274 | ); |
13275 | pub fn g_simple_proxy_resolver_set_ignore_hosts( |
13276 | resolver: *mut GSimpleProxyResolver, |
13277 | ignore_hosts: *mut *mut c_char, |
13278 | ); |
13279 | pub fn g_simple_proxy_resolver_set_uri_proxy( |
13280 | resolver: *mut GSimpleProxyResolver, |
13281 | uri_scheme: *const c_char, |
13282 | proxy: *const c_char, |
13283 | ); |
13284 | |
13285 | //========================================================================= |
13286 | // GSocket |
13287 | //========================================================================= |
13288 | pub fn g_socket_get_type() -> GType; |
13289 | pub fn g_socket_new( |
13290 | family: GSocketFamily, |
13291 | type_: GSocketType, |
13292 | protocol: GSocketProtocol, |
13293 | error: *mut *mut glib::GError, |
13294 | ) -> *mut GSocket; |
13295 | pub fn g_socket_new_from_fd(fd: c_int, error: *mut *mut glib::GError) -> *mut GSocket; |
13296 | pub fn g_socket_accept( |
13297 | socket: *mut GSocket, |
13298 | cancellable: *mut GCancellable, |
13299 | error: *mut *mut glib::GError, |
13300 | ) -> *mut GSocket; |
13301 | pub fn g_socket_bind( |
13302 | socket: *mut GSocket, |
13303 | address: *mut GSocketAddress, |
13304 | allow_reuse: gboolean, |
13305 | error: *mut *mut glib::GError, |
13306 | ) -> gboolean; |
13307 | pub fn g_socket_check_connect_result( |
13308 | socket: *mut GSocket, |
13309 | error: *mut *mut glib::GError, |
13310 | ) -> gboolean; |
13311 | pub fn g_socket_close(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean; |
13312 | pub fn g_socket_condition_check( |
13313 | socket: *mut GSocket, |
13314 | condition: glib::GIOCondition, |
13315 | ) -> glib::GIOCondition; |
13316 | pub fn g_socket_condition_timed_wait( |
13317 | socket: *mut GSocket, |
13318 | condition: glib::GIOCondition, |
13319 | timeout_us: i64, |
13320 | cancellable: *mut GCancellable, |
13321 | error: *mut *mut glib::GError, |
13322 | ) -> gboolean; |
13323 | pub fn g_socket_condition_wait( |
13324 | socket: *mut GSocket, |
13325 | condition: glib::GIOCondition, |
13326 | cancellable: *mut GCancellable, |
13327 | error: *mut *mut glib::GError, |
13328 | ) -> gboolean; |
13329 | pub fn g_socket_connect( |
13330 | socket: *mut GSocket, |
13331 | address: *mut GSocketAddress, |
13332 | cancellable: *mut GCancellable, |
13333 | error: *mut *mut glib::GError, |
13334 | ) -> gboolean; |
13335 | pub fn g_socket_connection_factory_create_connection( |
13336 | socket: *mut GSocket, |
13337 | ) -> *mut GSocketConnection; |
13338 | pub fn g_socket_create_source( |
13339 | socket: *mut GSocket, |
13340 | condition: glib::GIOCondition, |
13341 | cancellable: *mut GCancellable, |
13342 | ) -> *mut glib::GSource; |
13343 | pub fn g_socket_get_available_bytes(socket: *mut GSocket) -> ssize_t; |
13344 | pub fn g_socket_get_blocking(socket: *mut GSocket) -> gboolean; |
13345 | pub fn g_socket_get_broadcast(socket: *mut GSocket) -> gboolean; |
13346 | pub fn g_socket_get_credentials( |
13347 | socket: *mut GSocket, |
13348 | error: *mut *mut glib::GError, |
13349 | ) -> *mut GCredentials; |
13350 | pub fn g_socket_get_family(socket: *mut GSocket) -> GSocketFamily; |
13351 | pub fn g_socket_get_fd(socket: *mut GSocket) -> c_int; |
13352 | pub fn g_socket_get_keepalive(socket: *mut GSocket) -> gboolean; |
13353 | pub fn g_socket_get_listen_backlog(socket: *mut GSocket) -> c_int; |
13354 | pub fn g_socket_get_local_address( |
13355 | socket: *mut GSocket, |
13356 | error: *mut *mut glib::GError, |
13357 | ) -> *mut GSocketAddress; |
13358 | pub fn g_socket_get_multicast_loopback(socket: *mut GSocket) -> gboolean; |
13359 | pub fn g_socket_get_multicast_ttl(socket: *mut GSocket) -> c_uint; |
13360 | pub fn g_socket_get_option( |
13361 | socket: *mut GSocket, |
13362 | level: c_int, |
13363 | optname: c_int, |
13364 | value: *mut c_int, |
13365 | error: *mut *mut glib::GError, |
13366 | ) -> gboolean; |
13367 | pub fn g_socket_get_protocol(socket: *mut GSocket) -> GSocketProtocol; |
13368 | pub fn g_socket_get_remote_address( |
13369 | socket: *mut GSocket, |
13370 | error: *mut *mut glib::GError, |
13371 | ) -> *mut GSocketAddress; |
13372 | pub fn g_socket_get_socket_type(socket: *mut GSocket) -> GSocketType; |
13373 | pub fn g_socket_get_timeout(socket: *mut GSocket) -> c_uint; |
13374 | pub fn g_socket_get_ttl(socket: *mut GSocket) -> c_uint; |
13375 | pub fn g_socket_is_closed(socket: *mut GSocket) -> gboolean; |
13376 | pub fn g_socket_is_connected(socket: *mut GSocket) -> gboolean; |
13377 | pub fn g_socket_join_multicast_group( |
13378 | socket: *mut GSocket, |
13379 | group: *mut GInetAddress, |
13380 | source_specific: gboolean, |
13381 | iface: *const c_char, |
13382 | error: *mut *mut glib::GError, |
13383 | ) -> gboolean; |
13384 | pub fn g_socket_join_multicast_group_ssm( |
13385 | socket: *mut GSocket, |
13386 | group: *mut GInetAddress, |
13387 | source_specific: *mut GInetAddress, |
13388 | iface: *const c_char, |
13389 | error: *mut *mut glib::GError, |
13390 | ) -> gboolean; |
13391 | pub fn g_socket_leave_multicast_group( |
13392 | socket: *mut GSocket, |
13393 | group: *mut GInetAddress, |
13394 | source_specific: gboolean, |
13395 | iface: *const c_char, |
13396 | error: *mut *mut glib::GError, |
13397 | ) -> gboolean; |
13398 | pub fn g_socket_leave_multicast_group_ssm( |
13399 | socket: *mut GSocket, |
13400 | group: *mut GInetAddress, |
13401 | source_specific: *mut GInetAddress, |
13402 | iface: *const c_char, |
13403 | error: *mut *mut glib::GError, |
13404 | ) -> gboolean; |
13405 | pub fn g_socket_listen(socket: *mut GSocket, error: *mut *mut glib::GError) -> gboolean; |
13406 | pub fn g_socket_receive( |
13407 | socket: *mut GSocket, |
13408 | buffer: *mut u8, |
13409 | size: size_t, |
13410 | cancellable: *mut GCancellable, |
13411 | error: *mut *mut glib::GError, |
13412 | ) -> ssize_t; |
13413 | pub fn g_socket_receive_from( |
13414 | socket: *mut GSocket, |
13415 | address: *mut *mut GSocketAddress, |
13416 | buffer: *mut u8, |
13417 | size: size_t, |
13418 | cancellable: *mut GCancellable, |
13419 | error: *mut *mut glib::GError, |
13420 | ) -> ssize_t; |
13421 | pub fn g_socket_receive_message( |
13422 | socket: *mut GSocket, |
13423 | address: *mut *mut GSocketAddress, |
13424 | vectors: *mut GInputVector, |
13425 | num_vectors: c_int, |
13426 | messages: *mut *mut *mut GSocketControlMessage, |
13427 | num_messages: *mut c_int, |
13428 | flags: *mut c_int, |
13429 | cancellable: *mut GCancellable, |
13430 | error: *mut *mut glib::GError, |
13431 | ) -> ssize_t; |
13432 | pub fn g_socket_receive_messages( |
13433 | socket: *mut GSocket, |
13434 | messages: *mut GInputMessage, |
13435 | num_messages: c_uint, |
13436 | flags: c_int, |
13437 | cancellable: *mut GCancellable, |
13438 | error: *mut *mut glib::GError, |
13439 | ) -> c_int; |
13440 | pub fn g_socket_receive_with_blocking( |
13441 | socket: *mut GSocket, |
13442 | buffer: *mut u8, |
13443 | size: size_t, |
13444 | blocking: gboolean, |
13445 | cancellable: *mut GCancellable, |
13446 | error: *mut *mut glib::GError, |
13447 | ) -> ssize_t; |
13448 | pub fn g_socket_send( |
13449 | socket: *mut GSocket, |
13450 | buffer: *const u8, |
13451 | size: size_t, |
13452 | cancellable: *mut GCancellable, |
13453 | error: *mut *mut glib::GError, |
13454 | ) -> ssize_t; |
13455 | pub fn g_socket_send_message( |
13456 | socket: *mut GSocket, |
13457 | address: *mut GSocketAddress, |
13458 | vectors: *mut GOutputVector, |
13459 | num_vectors: c_int, |
13460 | messages: *mut *mut GSocketControlMessage, |
13461 | num_messages: c_int, |
13462 | flags: c_int, |
13463 | cancellable: *mut GCancellable, |
13464 | error: *mut *mut glib::GError, |
13465 | ) -> ssize_t; |
13466 | #[cfg (feature = "v2_60" )] |
13467 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
13468 | pub fn g_socket_send_message_with_timeout( |
13469 | socket: *mut GSocket, |
13470 | address: *mut GSocketAddress, |
13471 | vectors: *const GOutputVector, |
13472 | num_vectors: c_int, |
13473 | messages: *mut *mut GSocketControlMessage, |
13474 | num_messages: c_int, |
13475 | flags: c_int, |
13476 | timeout_us: i64, |
13477 | bytes_written: *mut size_t, |
13478 | cancellable: *mut GCancellable, |
13479 | error: *mut *mut glib::GError, |
13480 | ) -> GPollableReturn; |
13481 | pub fn g_socket_send_messages( |
13482 | socket: *mut GSocket, |
13483 | messages: *mut GOutputMessage, |
13484 | num_messages: c_uint, |
13485 | flags: c_int, |
13486 | cancellable: *mut GCancellable, |
13487 | error: *mut *mut glib::GError, |
13488 | ) -> c_int; |
13489 | pub fn g_socket_send_to( |
13490 | socket: *mut GSocket, |
13491 | address: *mut GSocketAddress, |
13492 | buffer: *const u8, |
13493 | size: size_t, |
13494 | cancellable: *mut GCancellable, |
13495 | error: *mut *mut glib::GError, |
13496 | ) -> ssize_t; |
13497 | pub fn g_socket_send_with_blocking( |
13498 | socket: *mut GSocket, |
13499 | buffer: *const u8, |
13500 | size: size_t, |
13501 | blocking: gboolean, |
13502 | cancellable: *mut GCancellable, |
13503 | error: *mut *mut glib::GError, |
13504 | ) -> ssize_t; |
13505 | pub fn g_socket_set_blocking(socket: *mut GSocket, blocking: gboolean); |
13506 | pub fn g_socket_set_broadcast(socket: *mut GSocket, broadcast: gboolean); |
13507 | pub fn g_socket_set_keepalive(socket: *mut GSocket, keepalive: gboolean); |
13508 | pub fn g_socket_set_listen_backlog(socket: *mut GSocket, backlog: c_int); |
13509 | pub fn g_socket_set_multicast_loopback(socket: *mut GSocket, loopback: gboolean); |
13510 | pub fn g_socket_set_multicast_ttl(socket: *mut GSocket, ttl: c_uint); |
13511 | pub fn g_socket_set_option( |
13512 | socket: *mut GSocket, |
13513 | level: c_int, |
13514 | optname: c_int, |
13515 | value: c_int, |
13516 | error: *mut *mut glib::GError, |
13517 | ) -> gboolean; |
13518 | pub fn g_socket_set_timeout(socket: *mut GSocket, timeout: c_uint); |
13519 | pub fn g_socket_set_ttl(socket: *mut GSocket, ttl: c_uint); |
13520 | pub fn g_socket_shutdown( |
13521 | socket: *mut GSocket, |
13522 | shutdown_read: gboolean, |
13523 | shutdown_write: gboolean, |
13524 | error: *mut *mut glib::GError, |
13525 | ) -> gboolean; |
13526 | pub fn g_socket_speaks_ipv4(socket: *mut GSocket) -> gboolean; |
13527 | |
13528 | //========================================================================= |
13529 | // GSocketAddress |
13530 | //========================================================================= |
13531 | pub fn g_socket_address_get_type() -> GType; |
13532 | pub fn g_socket_address_new_from_native(native: gpointer, len: size_t) -> *mut GSocketAddress; |
13533 | pub fn g_socket_address_get_family(address: *mut GSocketAddress) -> GSocketFamily; |
13534 | pub fn g_socket_address_get_native_size(address: *mut GSocketAddress) -> ssize_t; |
13535 | pub fn g_socket_address_to_native( |
13536 | address: *mut GSocketAddress, |
13537 | dest: gpointer, |
13538 | destlen: size_t, |
13539 | error: *mut *mut glib::GError, |
13540 | ) -> gboolean; |
13541 | |
13542 | //========================================================================= |
13543 | // GSocketAddressEnumerator |
13544 | //========================================================================= |
13545 | pub fn g_socket_address_enumerator_get_type() -> GType; |
13546 | pub fn g_socket_address_enumerator_next( |
13547 | enumerator: *mut GSocketAddressEnumerator, |
13548 | cancellable: *mut GCancellable, |
13549 | error: *mut *mut glib::GError, |
13550 | ) -> *mut GSocketAddress; |
13551 | pub fn g_socket_address_enumerator_next_async( |
13552 | enumerator: *mut GSocketAddressEnumerator, |
13553 | cancellable: *mut GCancellable, |
13554 | callback: GAsyncReadyCallback, |
13555 | user_data: gpointer, |
13556 | ); |
13557 | pub fn g_socket_address_enumerator_next_finish( |
13558 | enumerator: *mut GSocketAddressEnumerator, |
13559 | result: *mut GAsyncResult, |
13560 | error: *mut *mut glib::GError, |
13561 | ) -> *mut GSocketAddress; |
13562 | |
13563 | //========================================================================= |
13564 | // GSocketClient |
13565 | //========================================================================= |
13566 | pub fn g_socket_client_get_type() -> GType; |
13567 | pub fn g_socket_client_new() -> *mut GSocketClient; |
13568 | pub fn g_socket_client_add_application_proxy( |
13569 | client: *mut GSocketClient, |
13570 | protocol: *const c_char, |
13571 | ); |
13572 | pub fn g_socket_client_connect( |
13573 | client: *mut GSocketClient, |
13574 | connectable: *mut GSocketConnectable, |
13575 | cancellable: *mut GCancellable, |
13576 | error: *mut *mut glib::GError, |
13577 | ) -> *mut GSocketConnection; |
13578 | pub fn g_socket_client_connect_async( |
13579 | client: *mut GSocketClient, |
13580 | connectable: *mut GSocketConnectable, |
13581 | cancellable: *mut GCancellable, |
13582 | callback: GAsyncReadyCallback, |
13583 | user_data: gpointer, |
13584 | ); |
13585 | pub fn g_socket_client_connect_finish( |
13586 | client: *mut GSocketClient, |
13587 | result: *mut GAsyncResult, |
13588 | error: *mut *mut glib::GError, |
13589 | ) -> *mut GSocketConnection; |
13590 | pub fn g_socket_client_connect_to_host( |
13591 | client: *mut GSocketClient, |
13592 | host_and_port: *const c_char, |
13593 | default_port: u16, |
13594 | cancellable: *mut GCancellable, |
13595 | error: *mut *mut glib::GError, |
13596 | ) -> *mut GSocketConnection; |
13597 | pub fn g_socket_client_connect_to_host_async( |
13598 | client: *mut GSocketClient, |
13599 | host_and_port: *const c_char, |
13600 | default_port: u16, |
13601 | cancellable: *mut GCancellable, |
13602 | callback: GAsyncReadyCallback, |
13603 | user_data: gpointer, |
13604 | ); |
13605 | pub fn g_socket_client_connect_to_host_finish( |
13606 | client: *mut GSocketClient, |
13607 | result: *mut GAsyncResult, |
13608 | error: *mut *mut glib::GError, |
13609 | ) -> *mut GSocketConnection; |
13610 | pub fn g_socket_client_connect_to_service( |
13611 | client: *mut GSocketClient, |
13612 | domain: *const c_char, |
13613 | service: *const c_char, |
13614 | cancellable: *mut GCancellable, |
13615 | error: *mut *mut glib::GError, |
13616 | ) -> *mut GSocketConnection; |
13617 | pub fn g_socket_client_connect_to_service_async( |
13618 | client: *mut GSocketClient, |
13619 | domain: *const c_char, |
13620 | service: *const c_char, |
13621 | cancellable: *mut GCancellable, |
13622 | callback: GAsyncReadyCallback, |
13623 | user_data: gpointer, |
13624 | ); |
13625 | pub fn g_socket_client_connect_to_service_finish( |
13626 | client: *mut GSocketClient, |
13627 | result: *mut GAsyncResult, |
13628 | error: *mut *mut glib::GError, |
13629 | ) -> *mut GSocketConnection; |
13630 | pub fn g_socket_client_connect_to_uri( |
13631 | client: *mut GSocketClient, |
13632 | uri: *const c_char, |
13633 | default_port: u16, |
13634 | cancellable: *mut GCancellable, |
13635 | error: *mut *mut glib::GError, |
13636 | ) -> *mut GSocketConnection; |
13637 | pub fn g_socket_client_connect_to_uri_async( |
13638 | client: *mut GSocketClient, |
13639 | uri: *const c_char, |
13640 | default_port: u16, |
13641 | cancellable: *mut GCancellable, |
13642 | callback: GAsyncReadyCallback, |
13643 | user_data: gpointer, |
13644 | ); |
13645 | pub fn g_socket_client_connect_to_uri_finish( |
13646 | client: *mut GSocketClient, |
13647 | result: *mut GAsyncResult, |
13648 | error: *mut *mut glib::GError, |
13649 | ) -> *mut GSocketConnection; |
13650 | pub fn g_socket_client_get_enable_proxy(client: *mut GSocketClient) -> gboolean; |
13651 | pub fn g_socket_client_get_family(client: *mut GSocketClient) -> GSocketFamily; |
13652 | pub fn g_socket_client_get_local_address(client: *mut GSocketClient) -> *mut GSocketAddress; |
13653 | pub fn g_socket_client_get_protocol(client: *mut GSocketClient) -> GSocketProtocol; |
13654 | pub fn g_socket_client_get_proxy_resolver(client: *mut GSocketClient) -> *mut GProxyResolver; |
13655 | pub fn g_socket_client_get_socket_type(client: *mut GSocketClient) -> GSocketType; |
13656 | pub fn g_socket_client_get_timeout(client: *mut GSocketClient) -> c_uint; |
13657 | pub fn g_socket_client_get_tls(client: *mut GSocketClient) -> gboolean; |
13658 | pub fn g_socket_client_get_tls_validation_flags( |
13659 | client: *mut GSocketClient, |
13660 | ) -> GTlsCertificateFlags; |
13661 | pub fn g_socket_client_set_enable_proxy(client: *mut GSocketClient, enable: gboolean); |
13662 | pub fn g_socket_client_set_family(client: *mut GSocketClient, family: GSocketFamily); |
13663 | pub fn g_socket_client_set_local_address( |
13664 | client: *mut GSocketClient, |
13665 | address: *mut GSocketAddress, |
13666 | ); |
13667 | pub fn g_socket_client_set_protocol(client: *mut GSocketClient, protocol: GSocketProtocol); |
13668 | pub fn g_socket_client_set_proxy_resolver( |
13669 | client: *mut GSocketClient, |
13670 | proxy_resolver: *mut GProxyResolver, |
13671 | ); |
13672 | pub fn g_socket_client_set_socket_type(client: *mut GSocketClient, type_: GSocketType); |
13673 | pub fn g_socket_client_set_timeout(client: *mut GSocketClient, timeout: c_uint); |
13674 | pub fn g_socket_client_set_tls(client: *mut GSocketClient, tls: gboolean); |
13675 | pub fn g_socket_client_set_tls_validation_flags( |
13676 | client: *mut GSocketClient, |
13677 | flags: GTlsCertificateFlags, |
13678 | ); |
13679 | |
13680 | //========================================================================= |
13681 | // GSocketConnection |
13682 | //========================================================================= |
13683 | pub fn g_socket_connection_get_type() -> GType; |
13684 | pub fn g_socket_connection_factory_lookup_type( |
13685 | family: GSocketFamily, |
13686 | type_: GSocketType, |
13687 | protocol_id: c_int, |
13688 | ) -> GType; |
13689 | pub fn g_socket_connection_factory_register_type( |
13690 | g_type: GType, |
13691 | family: GSocketFamily, |
13692 | type_: GSocketType, |
13693 | protocol: c_int, |
13694 | ); |
13695 | pub fn g_socket_connection_connect( |
13696 | connection: *mut GSocketConnection, |
13697 | address: *mut GSocketAddress, |
13698 | cancellable: *mut GCancellable, |
13699 | error: *mut *mut glib::GError, |
13700 | ) -> gboolean; |
13701 | pub fn g_socket_connection_connect_async( |
13702 | connection: *mut GSocketConnection, |
13703 | address: *mut GSocketAddress, |
13704 | cancellable: *mut GCancellable, |
13705 | callback: GAsyncReadyCallback, |
13706 | user_data: gpointer, |
13707 | ); |
13708 | pub fn g_socket_connection_connect_finish( |
13709 | connection: *mut GSocketConnection, |
13710 | result: *mut GAsyncResult, |
13711 | error: *mut *mut glib::GError, |
13712 | ) -> gboolean; |
13713 | pub fn g_socket_connection_get_local_address( |
13714 | connection: *mut GSocketConnection, |
13715 | error: *mut *mut glib::GError, |
13716 | ) -> *mut GSocketAddress; |
13717 | pub fn g_socket_connection_get_remote_address( |
13718 | connection: *mut GSocketConnection, |
13719 | error: *mut *mut glib::GError, |
13720 | ) -> *mut GSocketAddress; |
13721 | pub fn g_socket_connection_get_socket(connection: *mut GSocketConnection) -> *mut GSocket; |
13722 | pub fn g_socket_connection_is_connected(connection: *mut GSocketConnection) -> gboolean; |
13723 | |
13724 | //========================================================================= |
13725 | // GSocketControlMessage |
13726 | //========================================================================= |
13727 | pub fn g_socket_control_message_get_type() -> GType; |
13728 | pub fn g_socket_control_message_deserialize( |
13729 | level: c_int, |
13730 | type_: c_int, |
13731 | size: size_t, |
13732 | data: gpointer, |
13733 | ) -> *mut GSocketControlMessage; |
13734 | pub fn g_socket_control_message_get_level(message: *mut GSocketControlMessage) -> c_int; |
13735 | pub fn g_socket_control_message_get_msg_type(message: *mut GSocketControlMessage) -> c_int; |
13736 | pub fn g_socket_control_message_get_size(message: *mut GSocketControlMessage) -> size_t; |
13737 | pub fn g_socket_control_message_serialize(message: *mut GSocketControlMessage, data: gpointer); |
13738 | |
13739 | //========================================================================= |
13740 | // GSocketListener |
13741 | //========================================================================= |
13742 | pub fn g_socket_listener_get_type() -> GType; |
13743 | pub fn g_socket_listener_new() -> *mut GSocketListener; |
13744 | pub fn g_socket_listener_accept( |
13745 | listener: *mut GSocketListener, |
13746 | source_object: *mut *mut gobject::GObject, |
13747 | cancellable: *mut GCancellable, |
13748 | error: *mut *mut glib::GError, |
13749 | ) -> *mut GSocketConnection; |
13750 | pub fn g_socket_listener_accept_async( |
13751 | listener: *mut GSocketListener, |
13752 | cancellable: *mut GCancellable, |
13753 | callback: GAsyncReadyCallback, |
13754 | user_data: gpointer, |
13755 | ); |
13756 | pub fn g_socket_listener_accept_finish( |
13757 | listener: *mut GSocketListener, |
13758 | result: *mut GAsyncResult, |
13759 | source_object: *mut *mut gobject::GObject, |
13760 | error: *mut *mut glib::GError, |
13761 | ) -> *mut GSocketConnection; |
13762 | pub fn g_socket_listener_accept_socket( |
13763 | listener: *mut GSocketListener, |
13764 | source_object: *mut *mut gobject::GObject, |
13765 | cancellable: *mut GCancellable, |
13766 | error: *mut *mut glib::GError, |
13767 | ) -> *mut GSocket; |
13768 | pub fn g_socket_listener_accept_socket_async( |
13769 | listener: *mut GSocketListener, |
13770 | cancellable: *mut GCancellable, |
13771 | callback: GAsyncReadyCallback, |
13772 | user_data: gpointer, |
13773 | ); |
13774 | pub fn g_socket_listener_accept_socket_finish( |
13775 | listener: *mut GSocketListener, |
13776 | result: *mut GAsyncResult, |
13777 | source_object: *mut *mut gobject::GObject, |
13778 | error: *mut *mut glib::GError, |
13779 | ) -> *mut GSocket; |
13780 | pub fn g_socket_listener_add_address( |
13781 | listener: *mut GSocketListener, |
13782 | address: *mut GSocketAddress, |
13783 | type_: GSocketType, |
13784 | protocol: GSocketProtocol, |
13785 | source_object: *mut gobject::GObject, |
13786 | effective_address: *mut *mut GSocketAddress, |
13787 | error: *mut *mut glib::GError, |
13788 | ) -> gboolean; |
13789 | pub fn g_socket_listener_add_any_inet_port( |
13790 | listener: *mut GSocketListener, |
13791 | source_object: *mut gobject::GObject, |
13792 | error: *mut *mut glib::GError, |
13793 | ) -> u16; |
13794 | pub fn g_socket_listener_add_inet_port( |
13795 | listener: *mut GSocketListener, |
13796 | port: u16, |
13797 | source_object: *mut gobject::GObject, |
13798 | error: *mut *mut glib::GError, |
13799 | ) -> gboolean; |
13800 | pub fn g_socket_listener_add_socket( |
13801 | listener: *mut GSocketListener, |
13802 | socket: *mut GSocket, |
13803 | source_object: *mut gobject::GObject, |
13804 | error: *mut *mut glib::GError, |
13805 | ) -> gboolean; |
13806 | pub fn g_socket_listener_close(listener: *mut GSocketListener); |
13807 | pub fn g_socket_listener_set_backlog(listener: *mut GSocketListener, listen_backlog: c_int); |
13808 | |
13809 | //========================================================================= |
13810 | // GSocketService |
13811 | //========================================================================= |
13812 | pub fn g_socket_service_get_type() -> GType; |
13813 | pub fn g_socket_service_new() -> *mut GSocketService; |
13814 | pub fn g_socket_service_is_active(service: *mut GSocketService) -> gboolean; |
13815 | pub fn g_socket_service_start(service: *mut GSocketService); |
13816 | pub fn g_socket_service_stop(service: *mut GSocketService); |
13817 | |
13818 | //========================================================================= |
13819 | // GSubprocess |
13820 | //========================================================================= |
13821 | pub fn g_subprocess_get_type() -> GType; |
13822 | pub fn g_subprocess_new( |
13823 | flags: GSubprocessFlags, |
13824 | error: *mut *mut glib::GError, |
13825 | argv0: *const c_char, |
13826 | ... |
13827 | ) -> *mut GSubprocess; |
13828 | pub fn g_subprocess_newv( |
13829 | argv: *const *const c_char, |
13830 | flags: GSubprocessFlags, |
13831 | error: *mut *mut glib::GError, |
13832 | ) -> *mut GSubprocess; |
13833 | pub fn g_subprocess_communicate( |
13834 | subprocess: *mut GSubprocess, |
13835 | stdin_buf: *mut glib::GBytes, |
13836 | cancellable: *mut GCancellable, |
13837 | stdout_buf: *mut *mut glib::GBytes, |
13838 | stderr_buf: *mut *mut glib::GBytes, |
13839 | error: *mut *mut glib::GError, |
13840 | ) -> gboolean; |
13841 | pub fn g_subprocess_communicate_async( |
13842 | subprocess: *mut GSubprocess, |
13843 | stdin_buf: *mut glib::GBytes, |
13844 | cancellable: *mut GCancellable, |
13845 | callback: GAsyncReadyCallback, |
13846 | user_data: gpointer, |
13847 | ); |
13848 | pub fn g_subprocess_communicate_finish( |
13849 | subprocess: *mut GSubprocess, |
13850 | result: *mut GAsyncResult, |
13851 | stdout_buf: *mut *mut glib::GBytes, |
13852 | stderr_buf: *mut *mut glib::GBytes, |
13853 | error: *mut *mut glib::GError, |
13854 | ) -> gboolean; |
13855 | pub fn g_subprocess_communicate_utf8( |
13856 | subprocess: *mut GSubprocess, |
13857 | stdin_buf: *const c_char, |
13858 | cancellable: *mut GCancellable, |
13859 | stdout_buf: *mut *mut c_char, |
13860 | stderr_buf: *mut *mut c_char, |
13861 | error: *mut *mut glib::GError, |
13862 | ) -> gboolean; |
13863 | pub fn g_subprocess_communicate_utf8_async( |
13864 | subprocess: *mut GSubprocess, |
13865 | stdin_buf: *const c_char, |
13866 | cancellable: *mut GCancellable, |
13867 | callback: GAsyncReadyCallback, |
13868 | user_data: gpointer, |
13869 | ); |
13870 | pub fn g_subprocess_communicate_utf8_finish( |
13871 | subprocess: *mut GSubprocess, |
13872 | result: *mut GAsyncResult, |
13873 | stdout_buf: *mut *mut c_char, |
13874 | stderr_buf: *mut *mut c_char, |
13875 | error: *mut *mut glib::GError, |
13876 | ) -> gboolean; |
13877 | pub fn g_subprocess_force_exit(subprocess: *mut GSubprocess); |
13878 | pub fn g_subprocess_get_exit_status(subprocess: *mut GSubprocess) -> c_int; |
13879 | pub fn g_subprocess_get_identifier(subprocess: *mut GSubprocess) -> *const c_char; |
13880 | pub fn g_subprocess_get_if_exited(subprocess: *mut GSubprocess) -> gboolean; |
13881 | pub fn g_subprocess_get_if_signaled(subprocess: *mut GSubprocess) -> gboolean; |
13882 | pub fn g_subprocess_get_status(subprocess: *mut GSubprocess) -> c_int; |
13883 | pub fn g_subprocess_get_stderr_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream; |
13884 | pub fn g_subprocess_get_stdin_pipe(subprocess: *mut GSubprocess) -> *mut GOutputStream; |
13885 | pub fn g_subprocess_get_stdout_pipe(subprocess: *mut GSubprocess) -> *mut GInputStream; |
13886 | pub fn g_subprocess_get_successful(subprocess: *mut GSubprocess) -> gboolean; |
13887 | pub fn g_subprocess_get_term_sig(subprocess: *mut GSubprocess) -> c_int; |
13888 | pub fn g_subprocess_send_signal(subprocess: *mut GSubprocess, signal_num: c_int); |
13889 | pub fn g_subprocess_wait( |
13890 | subprocess: *mut GSubprocess, |
13891 | cancellable: *mut GCancellable, |
13892 | error: *mut *mut glib::GError, |
13893 | ) -> gboolean; |
13894 | pub fn g_subprocess_wait_async( |
13895 | subprocess: *mut GSubprocess, |
13896 | cancellable: *mut GCancellable, |
13897 | callback: GAsyncReadyCallback, |
13898 | user_data: gpointer, |
13899 | ); |
13900 | pub fn g_subprocess_wait_check( |
13901 | subprocess: *mut GSubprocess, |
13902 | cancellable: *mut GCancellable, |
13903 | error: *mut *mut glib::GError, |
13904 | ) -> gboolean; |
13905 | pub fn g_subprocess_wait_check_async( |
13906 | subprocess: *mut GSubprocess, |
13907 | cancellable: *mut GCancellable, |
13908 | callback: GAsyncReadyCallback, |
13909 | user_data: gpointer, |
13910 | ); |
13911 | pub fn g_subprocess_wait_check_finish( |
13912 | subprocess: *mut GSubprocess, |
13913 | result: *mut GAsyncResult, |
13914 | error: *mut *mut glib::GError, |
13915 | ) -> gboolean; |
13916 | pub fn g_subprocess_wait_finish( |
13917 | subprocess: *mut GSubprocess, |
13918 | result: *mut GAsyncResult, |
13919 | error: *mut *mut glib::GError, |
13920 | ) -> gboolean; |
13921 | |
13922 | //========================================================================= |
13923 | // GSubprocessLauncher |
13924 | //========================================================================= |
13925 | pub fn g_subprocess_launcher_get_type() -> GType; |
13926 | pub fn g_subprocess_launcher_new(flags: GSubprocessFlags) -> *mut GSubprocessLauncher; |
13927 | #[cfg (feature = "v2_68" )] |
13928 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
13929 | #[cfg (unix)] |
13930 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13931 | pub fn g_subprocess_launcher_close(self_: *mut GSubprocessLauncher); |
13932 | pub fn g_subprocess_launcher_getenv( |
13933 | self_: *mut GSubprocessLauncher, |
13934 | variable: *const c_char, |
13935 | ) -> *const c_char; |
13936 | #[cfg (unix)] |
13937 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13938 | pub fn g_subprocess_launcher_set_child_setup( |
13939 | self_: *mut GSubprocessLauncher, |
13940 | child_setup: glib::GSpawnChildSetupFunc, |
13941 | user_data: gpointer, |
13942 | destroy_notify: glib::GDestroyNotify, |
13943 | ); |
13944 | pub fn g_subprocess_launcher_set_cwd(self_: *mut GSubprocessLauncher, cwd: *const c_char); |
13945 | pub fn g_subprocess_launcher_set_environ( |
13946 | self_: *mut GSubprocessLauncher, |
13947 | env: *mut *mut c_char, |
13948 | ); |
13949 | pub fn g_subprocess_launcher_set_flags( |
13950 | self_: *mut GSubprocessLauncher, |
13951 | flags: GSubprocessFlags, |
13952 | ); |
13953 | #[cfg (unix)] |
13954 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13955 | pub fn g_subprocess_launcher_set_stderr_file_path( |
13956 | self_: *mut GSubprocessLauncher, |
13957 | path: *const c_char, |
13958 | ); |
13959 | #[cfg (unix)] |
13960 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13961 | pub fn g_subprocess_launcher_set_stdin_file_path( |
13962 | self_: *mut GSubprocessLauncher, |
13963 | path: *const c_char, |
13964 | ); |
13965 | #[cfg (unix)] |
13966 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13967 | pub fn g_subprocess_launcher_set_stdout_file_path( |
13968 | self_: *mut GSubprocessLauncher, |
13969 | path: *const c_char, |
13970 | ); |
13971 | pub fn g_subprocess_launcher_setenv( |
13972 | self_: *mut GSubprocessLauncher, |
13973 | variable: *const c_char, |
13974 | value: *const c_char, |
13975 | overwrite: gboolean, |
13976 | ); |
13977 | pub fn g_subprocess_launcher_spawn( |
13978 | self_: *mut GSubprocessLauncher, |
13979 | error: *mut *mut glib::GError, |
13980 | argv0: *const c_char, |
13981 | ... |
13982 | ) -> *mut GSubprocess; |
13983 | pub fn g_subprocess_launcher_spawnv( |
13984 | self_: *mut GSubprocessLauncher, |
13985 | argv: *const *const c_char, |
13986 | error: *mut *mut glib::GError, |
13987 | ) -> *mut GSubprocess; |
13988 | #[cfg (unix)] |
13989 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13990 | pub fn g_subprocess_launcher_take_fd( |
13991 | self_: *mut GSubprocessLauncher, |
13992 | source_fd: c_int, |
13993 | target_fd: c_int, |
13994 | ); |
13995 | #[cfg (unix)] |
13996 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
13997 | pub fn g_subprocess_launcher_take_stderr_fd(self_: *mut GSubprocessLauncher, fd: c_int); |
13998 | #[cfg (unix)] |
13999 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
14000 | pub fn g_subprocess_launcher_take_stdin_fd(self_: *mut GSubprocessLauncher, fd: c_int); |
14001 | #[cfg (unix)] |
14002 | #[cfg_attr (docsrs, doc(cfg(unix)))] |
14003 | pub fn g_subprocess_launcher_take_stdout_fd(self_: *mut GSubprocessLauncher, fd: c_int); |
14004 | pub fn g_subprocess_launcher_unsetenv(self_: *mut GSubprocessLauncher, variable: *const c_char); |
14005 | |
14006 | //========================================================================= |
14007 | // GTask |
14008 | //========================================================================= |
14009 | pub fn g_task_get_type() -> GType; |
14010 | pub fn g_task_new( |
14011 | source_object: *mut gobject::GObject, |
14012 | cancellable: *mut GCancellable, |
14013 | callback: GAsyncReadyCallback, |
14014 | callback_data: gpointer, |
14015 | ) -> *mut GTask; |
14016 | pub fn g_task_is_valid( |
14017 | result: *mut GAsyncResult, |
14018 | source_object: *mut gobject::GObject, |
14019 | ) -> gboolean; |
14020 | pub fn g_task_report_error( |
14021 | source_object: *mut gobject::GObject, |
14022 | callback: GAsyncReadyCallback, |
14023 | callback_data: gpointer, |
14024 | source_tag: gpointer, |
14025 | error: *mut glib::GError, |
14026 | ); |
14027 | pub fn g_task_report_new_error( |
14028 | source_object: *mut gobject::GObject, |
14029 | callback: GAsyncReadyCallback, |
14030 | callback_data: gpointer, |
14031 | source_tag: gpointer, |
14032 | domain: glib::GQuark, |
14033 | code: c_int, |
14034 | format: *const c_char, |
14035 | ... |
14036 | ); |
14037 | pub fn g_task_attach_source( |
14038 | task: *mut GTask, |
14039 | source: *mut glib::GSource, |
14040 | callback: glib::GSourceFunc, |
14041 | ); |
14042 | pub fn g_task_get_cancellable(task: *mut GTask) -> *mut GCancellable; |
14043 | pub fn g_task_get_check_cancellable(task: *mut GTask) -> gboolean; |
14044 | pub fn g_task_get_completed(task: *mut GTask) -> gboolean; |
14045 | pub fn g_task_get_context(task: *mut GTask) -> *mut glib::GMainContext; |
14046 | #[cfg (feature = "v2_60" )] |
14047 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14048 | pub fn g_task_get_name(task: *mut GTask) -> *const c_char; |
14049 | pub fn g_task_get_priority(task: *mut GTask) -> c_int; |
14050 | pub fn g_task_get_return_on_cancel(task: *mut GTask) -> gboolean; |
14051 | pub fn g_task_get_source_object(task: *mut GTask) -> *mut gobject::GObject; |
14052 | pub fn g_task_get_source_tag(task: *mut GTask) -> gpointer; |
14053 | pub fn g_task_get_task_data(task: *mut GTask) -> gpointer; |
14054 | pub fn g_task_had_error(task: *mut GTask) -> gboolean; |
14055 | pub fn g_task_propagate_boolean(task: *mut GTask, error: *mut *mut glib::GError) -> gboolean; |
14056 | pub fn g_task_propagate_int(task: *mut GTask, error: *mut *mut glib::GError) -> ssize_t; |
14057 | pub fn g_task_propagate_pointer(task: *mut GTask, error: *mut *mut glib::GError) -> gpointer; |
14058 | #[cfg (feature = "v2_64" )] |
14059 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
14060 | pub fn g_task_propagate_value( |
14061 | task: *mut GTask, |
14062 | value: *mut gobject::GValue, |
14063 | error: *mut *mut glib::GError, |
14064 | ) -> gboolean; |
14065 | pub fn g_task_return_boolean(task: *mut GTask, result: gboolean); |
14066 | pub fn g_task_return_error(task: *mut GTask, error: *mut glib::GError); |
14067 | pub fn g_task_return_error_if_cancelled(task: *mut GTask) -> gboolean; |
14068 | pub fn g_task_return_int(task: *mut GTask, result: ssize_t); |
14069 | pub fn g_task_return_new_error( |
14070 | task: *mut GTask, |
14071 | domain: glib::GQuark, |
14072 | code: c_int, |
14073 | format: *const c_char, |
14074 | ... |
14075 | ); |
14076 | pub fn g_task_return_pointer( |
14077 | task: *mut GTask, |
14078 | result: gpointer, |
14079 | result_destroy: glib::GDestroyNotify, |
14080 | ); |
14081 | #[cfg (feature = "v2_64" )] |
14082 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
14083 | pub fn g_task_return_value(task: *mut GTask, result: *mut gobject::GValue); |
14084 | pub fn g_task_run_in_thread(task: *mut GTask, task_func: GTaskThreadFunc); |
14085 | pub fn g_task_run_in_thread_sync(task: *mut GTask, task_func: GTaskThreadFunc); |
14086 | pub fn g_task_set_check_cancellable(task: *mut GTask, check_cancellable: gboolean); |
14087 | #[cfg (feature = "v2_60" )] |
14088 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14089 | pub fn g_task_set_name(task: *mut GTask, name: *const c_char); |
14090 | pub fn g_task_set_priority(task: *mut GTask, priority: c_int); |
14091 | pub fn g_task_set_return_on_cancel(task: *mut GTask, return_on_cancel: gboolean) -> gboolean; |
14092 | pub fn g_task_set_source_tag(task: *mut GTask, source_tag: gpointer); |
14093 | #[cfg (feature = "v2_76" )] |
14094 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_76" )))] |
14095 | pub fn g_task_set_static_name(task: *mut GTask, name: *const c_char); |
14096 | pub fn g_task_set_task_data( |
14097 | task: *mut GTask, |
14098 | task_data: gpointer, |
14099 | task_data_destroy: glib::GDestroyNotify, |
14100 | ); |
14101 | |
14102 | //========================================================================= |
14103 | // GTcpConnection |
14104 | //========================================================================= |
14105 | pub fn g_tcp_connection_get_type() -> GType; |
14106 | pub fn g_tcp_connection_get_graceful_disconnect(connection: *mut GTcpConnection) -> gboolean; |
14107 | pub fn g_tcp_connection_set_graceful_disconnect( |
14108 | connection: *mut GTcpConnection, |
14109 | graceful_disconnect: gboolean, |
14110 | ); |
14111 | |
14112 | //========================================================================= |
14113 | // GTcpWrapperConnection |
14114 | //========================================================================= |
14115 | pub fn g_tcp_wrapper_connection_get_type() -> GType; |
14116 | pub fn g_tcp_wrapper_connection_new( |
14117 | base_io_stream: *mut GIOStream, |
14118 | socket: *mut GSocket, |
14119 | ) -> *mut GSocketConnection; |
14120 | pub fn g_tcp_wrapper_connection_get_base_io_stream( |
14121 | conn: *mut GTcpWrapperConnection, |
14122 | ) -> *mut GIOStream; |
14123 | |
14124 | //========================================================================= |
14125 | // GTestDBus |
14126 | //========================================================================= |
14127 | pub fn g_test_dbus_get_type() -> GType; |
14128 | pub fn g_test_dbus_new(flags: GTestDBusFlags) -> *mut GTestDBus; |
14129 | pub fn g_test_dbus_unset(); |
14130 | pub fn g_test_dbus_add_service_dir(self_: *mut GTestDBus, path: *const c_char); |
14131 | pub fn g_test_dbus_down(self_: *mut GTestDBus); |
14132 | pub fn g_test_dbus_get_bus_address(self_: *mut GTestDBus) -> *const c_char; |
14133 | pub fn g_test_dbus_get_flags(self_: *mut GTestDBus) -> GTestDBusFlags; |
14134 | pub fn g_test_dbus_stop(self_: *mut GTestDBus); |
14135 | pub fn g_test_dbus_up(self_: *mut GTestDBus); |
14136 | |
14137 | //========================================================================= |
14138 | // GThemedIcon |
14139 | //========================================================================= |
14140 | pub fn g_themed_icon_get_type() -> GType; |
14141 | pub fn g_themed_icon_new(iconname: *const c_char) -> *mut GThemedIcon; |
14142 | pub fn g_themed_icon_new_from_names( |
14143 | iconnames: *mut *mut c_char, |
14144 | len: c_int, |
14145 | ) -> *mut GThemedIcon; |
14146 | pub fn g_themed_icon_new_with_default_fallbacks(iconname: *const c_char) -> *mut GThemedIcon; |
14147 | pub fn g_themed_icon_append_name(icon: *mut GThemedIcon, iconname: *const c_char); |
14148 | pub fn g_themed_icon_get_names(icon: *mut GThemedIcon) -> *const *const c_char; |
14149 | pub fn g_themed_icon_prepend_name(icon: *mut GThemedIcon, iconname: *const c_char); |
14150 | |
14151 | //========================================================================= |
14152 | // GThreadedSocketService |
14153 | //========================================================================= |
14154 | pub fn g_threaded_socket_service_get_type() -> GType; |
14155 | pub fn g_threaded_socket_service_new(max_threads: c_int) -> *mut GSocketService; |
14156 | |
14157 | //========================================================================= |
14158 | // GTlsCertificate |
14159 | //========================================================================= |
14160 | pub fn g_tls_certificate_get_type() -> GType; |
14161 | pub fn g_tls_certificate_new_from_file( |
14162 | file: *const c_char, |
14163 | error: *mut *mut glib::GError, |
14164 | ) -> *mut GTlsCertificate; |
14165 | #[cfg (feature = "v2_72" )] |
14166 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
14167 | pub fn g_tls_certificate_new_from_file_with_password( |
14168 | file: *const c_char, |
14169 | password: *const c_char, |
14170 | error: *mut *mut glib::GError, |
14171 | ) -> *mut GTlsCertificate; |
14172 | pub fn g_tls_certificate_new_from_files( |
14173 | cert_file: *const c_char, |
14174 | key_file: *const c_char, |
14175 | error: *mut *mut glib::GError, |
14176 | ) -> *mut GTlsCertificate; |
14177 | pub fn g_tls_certificate_new_from_pem( |
14178 | data: *const c_char, |
14179 | length: ssize_t, |
14180 | error: *mut *mut glib::GError, |
14181 | ) -> *mut GTlsCertificate; |
14182 | #[cfg (feature = "v2_68" )] |
14183 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
14184 | pub fn g_tls_certificate_new_from_pkcs11_uris( |
14185 | pkcs11_uri: *const c_char, |
14186 | private_key_pkcs11_uri: *const c_char, |
14187 | error: *mut *mut glib::GError, |
14188 | ) -> *mut GTlsCertificate; |
14189 | #[cfg (feature = "v2_72" )] |
14190 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
14191 | pub fn g_tls_certificate_new_from_pkcs12( |
14192 | data: *const u8, |
14193 | length: size_t, |
14194 | password: *const c_char, |
14195 | error: *mut *mut glib::GError, |
14196 | ) -> *mut GTlsCertificate; |
14197 | pub fn g_tls_certificate_list_new_from_file( |
14198 | file: *const c_char, |
14199 | error: *mut *mut glib::GError, |
14200 | ) -> *mut glib::GList; |
14201 | #[cfg (feature = "v2_70" )] |
14202 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14203 | pub fn g_tls_certificate_get_dns_names(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray; |
14204 | #[cfg (feature = "v2_70" )] |
14205 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14206 | pub fn g_tls_certificate_get_ip_addresses(cert: *mut GTlsCertificate) -> *mut glib::GPtrArray; |
14207 | pub fn g_tls_certificate_get_issuer(cert: *mut GTlsCertificate) -> *mut GTlsCertificate; |
14208 | #[cfg (feature = "v2_70" )] |
14209 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14210 | pub fn g_tls_certificate_get_issuer_name(cert: *mut GTlsCertificate) -> *mut c_char; |
14211 | #[cfg (feature = "v2_70" )] |
14212 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14213 | pub fn g_tls_certificate_get_not_valid_after( |
14214 | cert: *mut GTlsCertificate, |
14215 | ) -> *mut glib::GDateTime; |
14216 | #[cfg (feature = "v2_70" )] |
14217 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14218 | pub fn g_tls_certificate_get_not_valid_before( |
14219 | cert: *mut GTlsCertificate, |
14220 | ) -> *mut glib::GDateTime; |
14221 | #[cfg (feature = "v2_70" )] |
14222 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14223 | pub fn g_tls_certificate_get_subject_name(cert: *mut GTlsCertificate) -> *mut c_char; |
14224 | pub fn g_tls_certificate_is_same( |
14225 | cert_one: *mut GTlsCertificate, |
14226 | cert_two: *mut GTlsCertificate, |
14227 | ) -> gboolean; |
14228 | pub fn g_tls_certificate_verify( |
14229 | cert: *mut GTlsCertificate, |
14230 | identity: *mut GSocketConnectable, |
14231 | trusted_ca: *mut GTlsCertificate, |
14232 | ) -> GTlsCertificateFlags; |
14233 | |
14234 | //========================================================================= |
14235 | // GTlsConnection |
14236 | //========================================================================= |
14237 | pub fn g_tls_connection_get_type() -> GType; |
14238 | pub fn g_tls_connection_emit_accept_certificate( |
14239 | conn: *mut GTlsConnection, |
14240 | peer_cert: *mut GTlsCertificate, |
14241 | errors: GTlsCertificateFlags, |
14242 | ) -> gboolean; |
14243 | pub fn g_tls_connection_get_certificate(conn: *mut GTlsConnection) -> *mut GTlsCertificate; |
14244 | #[cfg (feature = "v2_66" )] |
14245 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
14246 | pub fn g_tls_connection_get_channel_binding_data( |
14247 | conn: *mut GTlsConnection, |
14248 | type_: GTlsChannelBindingType, |
14249 | data: *mut glib::GByteArray, |
14250 | error: *mut *mut glib::GError, |
14251 | ) -> gboolean; |
14252 | #[cfg (feature = "v2_70" )] |
14253 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14254 | pub fn g_tls_connection_get_ciphersuite_name(conn: *mut GTlsConnection) -> *mut c_char; |
14255 | pub fn g_tls_connection_get_database(conn: *mut GTlsConnection) -> *mut GTlsDatabase; |
14256 | pub fn g_tls_connection_get_interaction(conn: *mut GTlsConnection) -> *mut GTlsInteraction; |
14257 | #[cfg (feature = "v2_60" )] |
14258 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14259 | pub fn g_tls_connection_get_negotiated_protocol(conn: *mut GTlsConnection) -> *const c_char; |
14260 | pub fn g_tls_connection_get_peer_certificate(conn: *mut GTlsConnection) |
14261 | -> *mut GTlsCertificate; |
14262 | pub fn g_tls_connection_get_peer_certificate_errors( |
14263 | conn: *mut GTlsConnection, |
14264 | ) -> GTlsCertificateFlags; |
14265 | #[cfg (feature = "v2_70" )] |
14266 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
14267 | pub fn g_tls_connection_get_protocol_version(conn: *mut GTlsConnection) -> GTlsProtocolVersion; |
14268 | pub fn g_tls_connection_get_rehandshake_mode(conn: *mut GTlsConnection) -> GTlsRehandshakeMode; |
14269 | pub fn g_tls_connection_get_require_close_notify(conn: *mut GTlsConnection) -> gboolean; |
14270 | pub fn g_tls_connection_get_use_system_certdb(conn: *mut GTlsConnection) -> gboolean; |
14271 | pub fn g_tls_connection_handshake( |
14272 | conn: *mut GTlsConnection, |
14273 | cancellable: *mut GCancellable, |
14274 | error: *mut *mut glib::GError, |
14275 | ) -> gboolean; |
14276 | pub fn g_tls_connection_handshake_async( |
14277 | conn: *mut GTlsConnection, |
14278 | io_priority: c_int, |
14279 | cancellable: *mut GCancellable, |
14280 | callback: GAsyncReadyCallback, |
14281 | user_data: gpointer, |
14282 | ); |
14283 | pub fn g_tls_connection_handshake_finish( |
14284 | conn: *mut GTlsConnection, |
14285 | result: *mut GAsyncResult, |
14286 | error: *mut *mut glib::GError, |
14287 | ) -> gboolean; |
14288 | #[cfg (feature = "v2_60" )] |
14289 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14290 | pub fn g_tls_connection_set_advertised_protocols( |
14291 | conn: *mut GTlsConnection, |
14292 | protocols: *const *const c_char, |
14293 | ); |
14294 | pub fn g_tls_connection_set_certificate( |
14295 | conn: *mut GTlsConnection, |
14296 | certificate: *mut GTlsCertificate, |
14297 | ); |
14298 | pub fn g_tls_connection_set_database(conn: *mut GTlsConnection, database: *mut GTlsDatabase); |
14299 | pub fn g_tls_connection_set_interaction( |
14300 | conn: *mut GTlsConnection, |
14301 | interaction: *mut GTlsInteraction, |
14302 | ); |
14303 | pub fn g_tls_connection_set_rehandshake_mode( |
14304 | conn: *mut GTlsConnection, |
14305 | mode: GTlsRehandshakeMode, |
14306 | ); |
14307 | pub fn g_tls_connection_set_require_close_notify( |
14308 | conn: *mut GTlsConnection, |
14309 | require_close_notify: gboolean, |
14310 | ); |
14311 | pub fn g_tls_connection_set_use_system_certdb( |
14312 | conn: *mut GTlsConnection, |
14313 | use_system_certdb: gboolean, |
14314 | ); |
14315 | |
14316 | //========================================================================= |
14317 | // GTlsDatabase |
14318 | //========================================================================= |
14319 | pub fn g_tls_database_get_type() -> GType; |
14320 | pub fn g_tls_database_create_certificate_handle( |
14321 | self_: *mut GTlsDatabase, |
14322 | certificate: *mut GTlsCertificate, |
14323 | ) -> *mut c_char; |
14324 | pub fn g_tls_database_lookup_certificate_for_handle( |
14325 | self_: *mut GTlsDatabase, |
14326 | handle: *const c_char, |
14327 | interaction: *mut GTlsInteraction, |
14328 | flags: GTlsDatabaseLookupFlags, |
14329 | cancellable: *mut GCancellable, |
14330 | error: *mut *mut glib::GError, |
14331 | ) -> *mut GTlsCertificate; |
14332 | pub fn g_tls_database_lookup_certificate_for_handle_async( |
14333 | self_: *mut GTlsDatabase, |
14334 | handle: *const c_char, |
14335 | interaction: *mut GTlsInteraction, |
14336 | flags: GTlsDatabaseLookupFlags, |
14337 | cancellable: *mut GCancellable, |
14338 | callback: GAsyncReadyCallback, |
14339 | user_data: gpointer, |
14340 | ); |
14341 | pub fn g_tls_database_lookup_certificate_for_handle_finish( |
14342 | self_: *mut GTlsDatabase, |
14343 | result: *mut GAsyncResult, |
14344 | error: *mut *mut glib::GError, |
14345 | ) -> *mut GTlsCertificate; |
14346 | pub fn g_tls_database_lookup_certificate_issuer( |
14347 | self_: *mut GTlsDatabase, |
14348 | certificate: *mut GTlsCertificate, |
14349 | interaction: *mut GTlsInteraction, |
14350 | flags: GTlsDatabaseLookupFlags, |
14351 | cancellable: *mut GCancellable, |
14352 | error: *mut *mut glib::GError, |
14353 | ) -> *mut GTlsCertificate; |
14354 | pub fn g_tls_database_lookup_certificate_issuer_async( |
14355 | self_: *mut GTlsDatabase, |
14356 | certificate: *mut GTlsCertificate, |
14357 | interaction: *mut GTlsInteraction, |
14358 | flags: GTlsDatabaseLookupFlags, |
14359 | cancellable: *mut GCancellable, |
14360 | callback: GAsyncReadyCallback, |
14361 | user_data: gpointer, |
14362 | ); |
14363 | pub fn g_tls_database_lookup_certificate_issuer_finish( |
14364 | self_: *mut GTlsDatabase, |
14365 | result: *mut GAsyncResult, |
14366 | error: *mut *mut glib::GError, |
14367 | ) -> *mut GTlsCertificate; |
14368 | pub fn g_tls_database_lookup_certificates_issued_by( |
14369 | self_: *mut GTlsDatabase, |
14370 | issuer_raw_dn: *mut glib::GByteArray, |
14371 | interaction: *mut GTlsInteraction, |
14372 | flags: GTlsDatabaseLookupFlags, |
14373 | cancellable: *mut GCancellable, |
14374 | error: *mut *mut glib::GError, |
14375 | ) -> *mut glib::GList; |
14376 | pub fn g_tls_database_lookup_certificates_issued_by_async( |
14377 | self_: *mut GTlsDatabase, |
14378 | issuer_raw_dn: *mut glib::GByteArray, |
14379 | interaction: *mut GTlsInteraction, |
14380 | flags: GTlsDatabaseLookupFlags, |
14381 | cancellable: *mut GCancellable, |
14382 | callback: GAsyncReadyCallback, |
14383 | user_data: gpointer, |
14384 | ); |
14385 | pub fn g_tls_database_lookup_certificates_issued_by_finish( |
14386 | self_: *mut GTlsDatabase, |
14387 | result: *mut GAsyncResult, |
14388 | error: *mut *mut glib::GError, |
14389 | ) -> *mut glib::GList; |
14390 | pub fn g_tls_database_verify_chain( |
14391 | self_: *mut GTlsDatabase, |
14392 | chain: *mut GTlsCertificate, |
14393 | purpose: *const c_char, |
14394 | identity: *mut GSocketConnectable, |
14395 | interaction: *mut GTlsInteraction, |
14396 | flags: GTlsDatabaseVerifyFlags, |
14397 | cancellable: *mut GCancellable, |
14398 | error: *mut *mut glib::GError, |
14399 | ) -> GTlsCertificateFlags; |
14400 | pub fn g_tls_database_verify_chain_async( |
14401 | self_: *mut GTlsDatabase, |
14402 | chain: *mut GTlsCertificate, |
14403 | purpose: *const c_char, |
14404 | identity: *mut GSocketConnectable, |
14405 | interaction: *mut GTlsInteraction, |
14406 | flags: GTlsDatabaseVerifyFlags, |
14407 | cancellable: *mut GCancellable, |
14408 | callback: GAsyncReadyCallback, |
14409 | user_data: gpointer, |
14410 | ); |
14411 | pub fn g_tls_database_verify_chain_finish( |
14412 | self_: *mut GTlsDatabase, |
14413 | result: *mut GAsyncResult, |
14414 | error: *mut *mut glib::GError, |
14415 | ) -> GTlsCertificateFlags; |
14416 | |
14417 | //========================================================================= |
14418 | // GTlsInteraction |
14419 | //========================================================================= |
14420 | pub fn g_tls_interaction_get_type() -> GType; |
14421 | pub fn g_tls_interaction_ask_password( |
14422 | interaction: *mut GTlsInteraction, |
14423 | password: *mut GTlsPassword, |
14424 | cancellable: *mut GCancellable, |
14425 | error: *mut *mut glib::GError, |
14426 | ) -> GTlsInteractionResult; |
14427 | pub fn g_tls_interaction_ask_password_async( |
14428 | interaction: *mut GTlsInteraction, |
14429 | password: *mut GTlsPassword, |
14430 | cancellable: *mut GCancellable, |
14431 | callback: GAsyncReadyCallback, |
14432 | user_data: gpointer, |
14433 | ); |
14434 | pub fn g_tls_interaction_ask_password_finish( |
14435 | interaction: *mut GTlsInteraction, |
14436 | result: *mut GAsyncResult, |
14437 | error: *mut *mut glib::GError, |
14438 | ) -> GTlsInteractionResult; |
14439 | pub fn g_tls_interaction_invoke_ask_password( |
14440 | interaction: *mut GTlsInteraction, |
14441 | password: *mut GTlsPassword, |
14442 | cancellable: *mut GCancellable, |
14443 | error: *mut *mut glib::GError, |
14444 | ) -> GTlsInteractionResult; |
14445 | pub fn g_tls_interaction_invoke_request_certificate( |
14446 | interaction: *mut GTlsInteraction, |
14447 | connection: *mut GTlsConnection, |
14448 | flags: GTlsCertificateRequestFlags, |
14449 | cancellable: *mut GCancellable, |
14450 | error: *mut *mut glib::GError, |
14451 | ) -> GTlsInteractionResult; |
14452 | pub fn g_tls_interaction_request_certificate( |
14453 | interaction: *mut GTlsInteraction, |
14454 | connection: *mut GTlsConnection, |
14455 | flags: GTlsCertificateRequestFlags, |
14456 | cancellable: *mut GCancellable, |
14457 | error: *mut *mut glib::GError, |
14458 | ) -> GTlsInteractionResult; |
14459 | pub fn g_tls_interaction_request_certificate_async( |
14460 | interaction: *mut GTlsInteraction, |
14461 | connection: *mut GTlsConnection, |
14462 | flags: GTlsCertificateRequestFlags, |
14463 | cancellable: *mut GCancellable, |
14464 | callback: GAsyncReadyCallback, |
14465 | user_data: gpointer, |
14466 | ); |
14467 | pub fn g_tls_interaction_request_certificate_finish( |
14468 | interaction: *mut GTlsInteraction, |
14469 | result: *mut GAsyncResult, |
14470 | error: *mut *mut glib::GError, |
14471 | ) -> GTlsInteractionResult; |
14472 | |
14473 | //========================================================================= |
14474 | // GTlsPassword |
14475 | //========================================================================= |
14476 | pub fn g_tls_password_get_type() -> GType; |
14477 | pub fn g_tls_password_new( |
14478 | flags: GTlsPasswordFlags, |
14479 | description: *const c_char, |
14480 | ) -> *mut GTlsPassword; |
14481 | pub fn g_tls_password_get_description(password: *mut GTlsPassword) -> *const c_char; |
14482 | pub fn g_tls_password_get_flags(password: *mut GTlsPassword) -> GTlsPasswordFlags; |
14483 | pub fn g_tls_password_get_value(password: *mut GTlsPassword, length: *mut size_t) -> *const u8; |
14484 | pub fn g_tls_password_get_warning(password: *mut GTlsPassword) -> *const c_char; |
14485 | pub fn g_tls_password_set_description(password: *mut GTlsPassword, description: *const c_char); |
14486 | pub fn g_tls_password_set_flags(password: *mut GTlsPassword, flags: GTlsPasswordFlags); |
14487 | pub fn g_tls_password_set_value(password: *mut GTlsPassword, value: *const u8, length: ssize_t); |
14488 | pub fn g_tls_password_set_value_full( |
14489 | password: *mut GTlsPassword, |
14490 | value: *mut u8, |
14491 | length: ssize_t, |
14492 | destroy: glib::GDestroyNotify, |
14493 | ); |
14494 | pub fn g_tls_password_set_warning(password: *mut GTlsPassword, warning: *const c_char); |
14495 | |
14496 | //========================================================================= |
14497 | // GUnixConnection |
14498 | //========================================================================= |
14499 | pub fn g_unix_connection_get_type() -> GType; |
14500 | pub fn g_unix_connection_receive_credentials( |
14501 | connection: *mut GUnixConnection, |
14502 | cancellable: *mut GCancellable, |
14503 | error: *mut *mut glib::GError, |
14504 | ) -> *mut GCredentials; |
14505 | pub fn g_unix_connection_receive_credentials_async( |
14506 | connection: *mut GUnixConnection, |
14507 | cancellable: *mut GCancellable, |
14508 | callback: GAsyncReadyCallback, |
14509 | user_data: gpointer, |
14510 | ); |
14511 | pub fn g_unix_connection_receive_credentials_finish( |
14512 | connection: *mut GUnixConnection, |
14513 | result: *mut GAsyncResult, |
14514 | error: *mut *mut glib::GError, |
14515 | ) -> *mut GCredentials; |
14516 | pub fn g_unix_connection_receive_fd( |
14517 | connection: *mut GUnixConnection, |
14518 | cancellable: *mut GCancellable, |
14519 | error: *mut *mut glib::GError, |
14520 | ) -> c_int; |
14521 | pub fn g_unix_connection_send_credentials( |
14522 | connection: *mut GUnixConnection, |
14523 | cancellable: *mut GCancellable, |
14524 | error: *mut *mut glib::GError, |
14525 | ) -> gboolean; |
14526 | pub fn g_unix_connection_send_credentials_async( |
14527 | connection: *mut GUnixConnection, |
14528 | cancellable: *mut GCancellable, |
14529 | callback: GAsyncReadyCallback, |
14530 | user_data: gpointer, |
14531 | ); |
14532 | pub fn g_unix_connection_send_credentials_finish( |
14533 | connection: *mut GUnixConnection, |
14534 | result: *mut GAsyncResult, |
14535 | error: *mut *mut glib::GError, |
14536 | ) -> gboolean; |
14537 | pub fn g_unix_connection_send_fd( |
14538 | connection: *mut GUnixConnection, |
14539 | fd: c_int, |
14540 | cancellable: *mut GCancellable, |
14541 | error: *mut *mut glib::GError, |
14542 | ) -> gboolean; |
14543 | |
14544 | //========================================================================= |
14545 | // GUnixCredentialsMessage |
14546 | //========================================================================= |
14547 | pub fn g_unix_credentials_message_get_type() -> GType; |
14548 | pub fn g_unix_credentials_message_new() -> *mut GSocketControlMessage; |
14549 | pub fn g_unix_credentials_message_new_with_credentials( |
14550 | credentials: *mut GCredentials, |
14551 | ) -> *mut GSocketControlMessage; |
14552 | pub fn g_unix_credentials_message_is_supported() -> gboolean; |
14553 | pub fn g_unix_credentials_message_get_credentials( |
14554 | message: *mut GUnixCredentialsMessage, |
14555 | ) -> *mut GCredentials; |
14556 | |
14557 | //========================================================================= |
14558 | // GUnixFDList |
14559 | //========================================================================= |
14560 | pub fn g_unix_fd_list_get_type() -> GType; |
14561 | pub fn g_unix_fd_list_new() -> *mut GUnixFDList; |
14562 | pub fn g_unix_fd_list_new_from_array(fds: *const c_int, n_fds: c_int) -> *mut GUnixFDList; |
14563 | pub fn g_unix_fd_list_append( |
14564 | list: *mut GUnixFDList, |
14565 | fd: c_int, |
14566 | error: *mut *mut glib::GError, |
14567 | ) -> c_int; |
14568 | pub fn g_unix_fd_list_get( |
14569 | list: *mut GUnixFDList, |
14570 | index_: c_int, |
14571 | error: *mut *mut glib::GError, |
14572 | ) -> c_int; |
14573 | pub fn g_unix_fd_list_get_length(list: *mut GUnixFDList) -> c_int; |
14574 | pub fn g_unix_fd_list_peek_fds(list: *mut GUnixFDList, length: *mut c_int) -> *const c_int; |
14575 | pub fn g_unix_fd_list_steal_fds(list: *mut GUnixFDList, length: *mut c_int) -> *mut c_int; |
14576 | |
14577 | //========================================================================= |
14578 | // GUnixFDMessage |
14579 | //========================================================================= |
14580 | pub fn g_unix_fd_message_get_type() -> GType; |
14581 | pub fn g_unix_fd_message_new() -> *mut GSocketControlMessage; |
14582 | pub fn g_unix_fd_message_new_with_fd_list( |
14583 | fd_list: *mut GUnixFDList, |
14584 | ) -> *mut GSocketControlMessage; |
14585 | pub fn g_unix_fd_message_append_fd( |
14586 | message: *mut GUnixFDMessage, |
14587 | fd: c_int, |
14588 | error: *mut *mut glib::GError, |
14589 | ) -> gboolean; |
14590 | pub fn g_unix_fd_message_get_fd_list(message: *mut GUnixFDMessage) -> *mut GUnixFDList; |
14591 | pub fn g_unix_fd_message_steal_fds( |
14592 | message: *mut GUnixFDMessage, |
14593 | length: *mut c_int, |
14594 | ) -> *mut c_int; |
14595 | |
14596 | //========================================================================= |
14597 | // GUnixInputStream |
14598 | //========================================================================= |
14599 | pub fn g_unix_input_stream_get_type() -> GType; |
14600 | pub fn g_unix_input_stream_new(fd: c_int, close_fd: gboolean) -> *mut GInputStream; |
14601 | pub fn g_unix_input_stream_get_close_fd(stream: *mut GUnixInputStream) -> gboolean; |
14602 | pub fn g_unix_input_stream_get_fd(stream: *mut GUnixInputStream) -> c_int; |
14603 | pub fn g_unix_input_stream_set_close_fd(stream: *mut GUnixInputStream, close_fd: gboolean); |
14604 | |
14605 | //========================================================================= |
14606 | // GUnixMountMonitor |
14607 | //========================================================================= |
14608 | pub fn g_unix_mount_monitor_get_type() -> GType; |
14609 | pub fn g_unix_mount_monitor_new() -> *mut GUnixMountMonitor; |
14610 | pub fn g_unix_mount_monitor_get() -> *mut GUnixMountMonitor; |
14611 | pub fn g_unix_mount_monitor_set_rate_limit( |
14612 | mount_monitor: *mut GUnixMountMonitor, |
14613 | limit_msec: c_int, |
14614 | ); |
14615 | |
14616 | //========================================================================= |
14617 | // GUnixOutputStream |
14618 | //========================================================================= |
14619 | pub fn g_unix_output_stream_get_type() -> GType; |
14620 | pub fn g_unix_output_stream_new(fd: c_int, close_fd: gboolean) -> *mut GOutputStream; |
14621 | pub fn g_unix_output_stream_get_close_fd(stream: *mut GUnixOutputStream) -> gboolean; |
14622 | pub fn g_unix_output_stream_get_fd(stream: *mut GUnixOutputStream) -> c_int; |
14623 | pub fn g_unix_output_stream_set_close_fd(stream: *mut GUnixOutputStream, close_fd: gboolean); |
14624 | |
14625 | //========================================================================= |
14626 | // GUnixSocketAddress |
14627 | //========================================================================= |
14628 | pub fn g_unix_socket_address_get_type() -> GType; |
14629 | pub fn g_unix_socket_address_new(path: *const c_char) -> *mut GSocketAddress; |
14630 | pub fn g_unix_socket_address_new_abstract( |
14631 | path: *const c_char, |
14632 | path_len: c_int, |
14633 | ) -> *mut GSocketAddress; |
14634 | pub fn g_unix_socket_address_new_with_type( |
14635 | path: *const c_char, |
14636 | path_len: c_int, |
14637 | type_: GUnixSocketAddressType, |
14638 | ) -> *mut GSocketAddress; |
14639 | pub fn g_unix_socket_address_abstract_names_supported() -> gboolean; |
14640 | pub fn g_unix_socket_address_get_address_type( |
14641 | address: *mut GUnixSocketAddress, |
14642 | ) -> GUnixSocketAddressType; |
14643 | pub fn g_unix_socket_address_get_is_abstract(address: *mut GUnixSocketAddress) -> gboolean; |
14644 | pub fn g_unix_socket_address_get_path(address: *mut GUnixSocketAddress) -> *const c_char; |
14645 | pub fn g_unix_socket_address_get_path_len(address: *mut GUnixSocketAddress) -> size_t; |
14646 | |
14647 | //========================================================================= |
14648 | // GVfs |
14649 | //========================================================================= |
14650 | pub fn g_vfs_get_type() -> GType; |
14651 | pub fn g_vfs_get_default() -> *mut GVfs; |
14652 | pub fn g_vfs_get_local() -> *mut GVfs; |
14653 | pub fn g_vfs_get_file_for_path(vfs: *mut GVfs, path: *const c_char) -> *mut GFile; |
14654 | pub fn g_vfs_get_file_for_uri(vfs: *mut GVfs, uri: *const c_char) -> *mut GFile; |
14655 | pub fn g_vfs_get_supported_uri_schemes(vfs: *mut GVfs) -> *const *const c_char; |
14656 | pub fn g_vfs_is_active(vfs: *mut GVfs) -> gboolean; |
14657 | pub fn g_vfs_parse_name(vfs: *mut GVfs, parse_name: *const c_char) -> *mut GFile; |
14658 | pub fn g_vfs_register_uri_scheme( |
14659 | vfs: *mut GVfs, |
14660 | scheme: *const c_char, |
14661 | uri_func: GVfsFileLookupFunc, |
14662 | uri_data: gpointer, |
14663 | uri_destroy: glib::GDestroyNotify, |
14664 | parse_name_func: GVfsFileLookupFunc, |
14665 | parse_name_data: gpointer, |
14666 | parse_name_destroy: glib::GDestroyNotify, |
14667 | ) -> gboolean; |
14668 | pub fn g_vfs_unregister_uri_scheme(vfs: *mut GVfs, scheme: *const c_char) -> gboolean; |
14669 | |
14670 | //========================================================================= |
14671 | // GVolumeMonitor |
14672 | //========================================================================= |
14673 | pub fn g_volume_monitor_get_type() -> GType; |
14674 | pub fn g_volume_monitor_adopt_orphan_mount(mount: *mut GMount) -> *mut GVolume; |
14675 | pub fn g_volume_monitor_get() -> *mut GVolumeMonitor; |
14676 | pub fn g_volume_monitor_get_connected_drives( |
14677 | volume_monitor: *mut GVolumeMonitor, |
14678 | ) -> *mut glib::GList; |
14679 | pub fn g_volume_monitor_get_mount_for_uuid( |
14680 | volume_monitor: *mut GVolumeMonitor, |
14681 | uuid: *const c_char, |
14682 | ) -> *mut GMount; |
14683 | pub fn g_volume_monitor_get_mounts(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList; |
14684 | pub fn g_volume_monitor_get_volume_for_uuid( |
14685 | volume_monitor: *mut GVolumeMonitor, |
14686 | uuid: *const c_char, |
14687 | ) -> *mut GVolume; |
14688 | pub fn g_volume_monitor_get_volumes(volume_monitor: *mut GVolumeMonitor) -> *mut glib::GList; |
14689 | |
14690 | //========================================================================= |
14691 | // GZlibCompressor |
14692 | //========================================================================= |
14693 | pub fn g_zlib_compressor_get_type() -> GType; |
14694 | pub fn g_zlib_compressor_new( |
14695 | format: GZlibCompressorFormat, |
14696 | level: c_int, |
14697 | ) -> *mut GZlibCompressor; |
14698 | pub fn g_zlib_compressor_get_file_info(compressor: *mut GZlibCompressor) -> *mut GFileInfo; |
14699 | pub fn g_zlib_compressor_set_file_info( |
14700 | compressor: *mut GZlibCompressor, |
14701 | file_info: *mut GFileInfo, |
14702 | ); |
14703 | |
14704 | //========================================================================= |
14705 | // GZlibDecompressor |
14706 | //========================================================================= |
14707 | pub fn g_zlib_decompressor_get_type() -> GType; |
14708 | pub fn g_zlib_decompressor_new(format: GZlibCompressorFormat) -> *mut GZlibDecompressor; |
14709 | pub fn g_zlib_decompressor_get_file_info( |
14710 | decompressor: *mut GZlibDecompressor, |
14711 | ) -> *mut GFileInfo; |
14712 | |
14713 | //========================================================================= |
14714 | // GAction |
14715 | //========================================================================= |
14716 | pub fn g_action_get_type() -> GType; |
14717 | pub fn g_action_name_is_valid(action_name: *const c_char) -> gboolean; |
14718 | pub fn g_action_parse_detailed_name( |
14719 | detailed_name: *const c_char, |
14720 | action_name: *mut *mut c_char, |
14721 | target_value: *mut *mut glib::GVariant, |
14722 | error: *mut *mut glib::GError, |
14723 | ) -> gboolean; |
14724 | pub fn g_action_print_detailed_name( |
14725 | action_name: *const c_char, |
14726 | target_value: *mut glib::GVariant, |
14727 | ) -> *mut c_char; |
14728 | pub fn g_action_activate(action: *mut GAction, parameter: *mut glib::GVariant); |
14729 | pub fn g_action_change_state(action: *mut GAction, value: *mut glib::GVariant); |
14730 | pub fn g_action_get_enabled(action: *mut GAction) -> gboolean; |
14731 | pub fn g_action_get_name(action: *mut GAction) -> *const c_char; |
14732 | pub fn g_action_get_parameter_type(action: *mut GAction) -> *const glib::GVariantType; |
14733 | pub fn g_action_get_state(action: *mut GAction) -> *mut glib::GVariant; |
14734 | pub fn g_action_get_state_hint(action: *mut GAction) -> *mut glib::GVariant; |
14735 | pub fn g_action_get_state_type(action: *mut GAction) -> *const glib::GVariantType; |
14736 | |
14737 | //========================================================================= |
14738 | // GActionGroup |
14739 | //========================================================================= |
14740 | pub fn g_action_group_get_type() -> GType; |
14741 | pub fn g_action_group_action_added(action_group: *mut GActionGroup, action_name: *const c_char); |
14742 | pub fn g_action_group_action_enabled_changed( |
14743 | action_group: *mut GActionGroup, |
14744 | action_name: *const c_char, |
14745 | enabled: gboolean, |
14746 | ); |
14747 | pub fn g_action_group_action_removed( |
14748 | action_group: *mut GActionGroup, |
14749 | action_name: *const c_char, |
14750 | ); |
14751 | pub fn g_action_group_action_state_changed( |
14752 | action_group: *mut GActionGroup, |
14753 | action_name: *const c_char, |
14754 | state: *mut glib::GVariant, |
14755 | ); |
14756 | pub fn g_action_group_activate_action( |
14757 | action_group: *mut GActionGroup, |
14758 | action_name: *const c_char, |
14759 | parameter: *mut glib::GVariant, |
14760 | ); |
14761 | pub fn g_action_group_change_action_state( |
14762 | action_group: *mut GActionGroup, |
14763 | action_name: *const c_char, |
14764 | value: *mut glib::GVariant, |
14765 | ); |
14766 | pub fn g_action_group_get_action_enabled( |
14767 | action_group: *mut GActionGroup, |
14768 | action_name: *const c_char, |
14769 | ) -> gboolean; |
14770 | pub fn g_action_group_get_action_parameter_type( |
14771 | action_group: *mut GActionGroup, |
14772 | action_name: *const c_char, |
14773 | ) -> *const glib::GVariantType; |
14774 | pub fn g_action_group_get_action_state( |
14775 | action_group: *mut GActionGroup, |
14776 | action_name: *const c_char, |
14777 | ) -> *mut glib::GVariant; |
14778 | pub fn g_action_group_get_action_state_hint( |
14779 | action_group: *mut GActionGroup, |
14780 | action_name: *const c_char, |
14781 | ) -> *mut glib::GVariant; |
14782 | pub fn g_action_group_get_action_state_type( |
14783 | action_group: *mut GActionGroup, |
14784 | action_name: *const c_char, |
14785 | ) -> *const glib::GVariantType; |
14786 | pub fn g_action_group_has_action( |
14787 | action_group: *mut GActionGroup, |
14788 | action_name: *const c_char, |
14789 | ) -> gboolean; |
14790 | pub fn g_action_group_list_actions(action_group: *mut GActionGroup) -> *mut *mut c_char; |
14791 | pub fn g_action_group_query_action( |
14792 | action_group: *mut GActionGroup, |
14793 | action_name: *const c_char, |
14794 | enabled: *mut gboolean, |
14795 | parameter_type: *mut *const glib::GVariantType, |
14796 | state_type: *mut *const glib::GVariantType, |
14797 | state_hint: *mut *mut glib::GVariant, |
14798 | state: *mut *mut glib::GVariant, |
14799 | ) -> gboolean; |
14800 | |
14801 | //========================================================================= |
14802 | // GActionMap |
14803 | //========================================================================= |
14804 | pub fn g_action_map_get_type() -> GType; |
14805 | pub fn g_action_map_add_action(action_map: *mut GActionMap, action: *mut GAction); |
14806 | pub fn g_action_map_add_action_entries( |
14807 | action_map: *mut GActionMap, |
14808 | entries: *const GActionEntry, |
14809 | n_entries: c_int, |
14810 | user_data: gpointer, |
14811 | ); |
14812 | pub fn g_action_map_lookup_action( |
14813 | action_map: *mut GActionMap, |
14814 | action_name: *const c_char, |
14815 | ) -> *mut GAction; |
14816 | pub fn g_action_map_remove_action(action_map: *mut GActionMap, action_name: *const c_char); |
14817 | #[cfg (feature = "v2_78" )] |
14818 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
14819 | pub fn g_action_map_remove_action_entries( |
14820 | action_map: *mut GActionMap, |
14821 | entries: *const GActionEntry, |
14822 | n_entries: c_int, |
14823 | ); |
14824 | |
14825 | //========================================================================= |
14826 | // GAppInfo |
14827 | //========================================================================= |
14828 | pub fn g_app_info_get_type() -> GType; |
14829 | pub fn g_app_info_create_from_commandline( |
14830 | commandline: *const c_char, |
14831 | application_name: *const c_char, |
14832 | flags: GAppInfoCreateFlags, |
14833 | error: *mut *mut glib::GError, |
14834 | ) -> *mut GAppInfo; |
14835 | pub fn g_app_info_get_all() -> *mut glib::GList; |
14836 | pub fn g_app_info_get_all_for_type(content_type: *const c_char) -> *mut glib::GList; |
14837 | pub fn g_app_info_get_default_for_type( |
14838 | content_type: *const c_char, |
14839 | must_support_uris: gboolean, |
14840 | ) -> *mut GAppInfo; |
14841 | #[cfg (feature = "v2_74" )] |
14842 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
14843 | pub fn g_app_info_get_default_for_type_async( |
14844 | content_type: *const c_char, |
14845 | must_support_uris: gboolean, |
14846 | cancellable: *mut GCancellable, |
14847 | callback: GAsyncReadyCallback, |
14848 | user_data: gpointer, |
14849 | ); |
14850 | #[cfg (feature = "v2_74" )] |
14851 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
14852 | pub fn g_app_info_get_default_for_type_finish( |
14853 | result: *mut GAsyncResult, |
14854 | error: *mut *mut glib::GError, |
14855 | ) -> *mut GAppInfo; |
14856 | pub fn g_app_info_get_default_for_uri_scheme(uri_scheme: *const c_char) -> *mut GAppInfo; |
14857 | #[cfg (feature = "v2_74" )] |
14858 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
14859 | pub fn g_app_info_get_default_for_uri_scheme_async( |
14860 | uri_scheme: *const c_char, |
14861 | cancellable: *mut GCancellable, |
14862 | callback: GAsyncReadyCallback, |
14863 | user_data: gpointer, |
14864 | ); |
14865 | #[cfg (feature = "v2_74" )] |
14866 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
14867 | pub fn g_app_info_get_default_for_uri_scheme_finish( |
14868 | result: *mut GAsyncResult, |
14869 | error: *mut *mut glib::GError, |
14870 | ) -> *mut GAppInfo; |
14871 | pub fn g_app_info_get_fallback_for_type(content_type: *const c_char) -> *mut glib::GList; |
14872 | pub fn g_app_info_get_recommended_for_type(content_type: *const c_char) -> *mut glib::GList; |
14873 | pub fn g_app_info_launch_default_for_uri( |
14874 | uri: *const c_char, |
14875 | context: *mut GAppLaunchContext, |
14876 | error: *mut *mut glib::GError, |
14877 | ) -> gboolean; |
14878 | pub fn g_app_info_launch_default_for_uri_async( |
14879 | uri: *const c_char, |
14880 | context: *mut GAppLaunchContext, |
14881 | cancellable: *mut GCancellable, |
14882 | callback: GAsyncReadyCallback, |
14883 | user_data: gpointer, |
14884 | ); |
14885 | pub fn g_app_info_launch_default_for_uri_finish( |
14886 | result: *mut GAsyncResult, |
14887 | error: *mut *mut glib::GError, |
14888 | ) -> gboolean; |
14889 | pub fn g_app_info_reset_type_associations(content_type: *const c_char); |
14890 | pub fn g_app_info_add_supports_type( |
14891 | appinfo: *mut GAppInfo, |
14892 | content_type: *const c_char, |
14893 | error: *mut *mut glib::GError, |
14894 | ) -> gboolean; |
14895 | pub fn g_app_info_can_delete(appinfo: *mut GAppInfo) -> gboolean; |
14896 | pub fn g_app_info_can_remove_supports_type(appinfo: *mut GAppInfo) -> gboolean; |
14897 | pub fn g_app_info_delete(appinfo: *mut GAppInfo) -> gboolean; |
14898 | pub fn g_app_info_dup(appinfo: *mut GAppInfo) -> *mut GAppInfo; |
14899 | pub fn g_app_info_equal(appinfo1: *mut GAppInfo, appinfo2: *mut GAppInfo) -> gboolean; |
14900 | pub fn g_app_info_get_commandline(appinfo: *mut GAppInfo) -> *const c_char; |
14901 | pub fn g_app_info_get_description(appinfo: *mut GAppInfo) -> *const c_char; |
14902 | pub fn g_app_info_get_display_name(appinfo: *mut GAppInfo) -> *const c_char; |
14903 | pub fn g_app_info_get_executable(appinfo: *mut GAppInfo) -> *const c_char; |
14904 | pub fn g_app_info_get_icon(appinfo: *mut GAppInfo) -> *mut GIcon; |
14905 | pub fn g_app_info_get_id(appinfo: *mut GAppInfo) -> *const c_char; |
14906 | pub fn g_app_info_get_name(appinfo: *mut GAppInfo) -> *const c_char; |
14907 | pub fn g_app_info_get_supported_types(appinfo: *mut GAppInfo) -> *mut *const c_char; |
14908 | pub fn g_app_info_launch( |
14909 | appinfo: *mut GAppInfo, |
14910 | files: *mut glib::GList, |
14911 | context: *mut GAppLaunchContext, |
14912 | error: *mut *mut glib::GError, |
14913 | ) -> gboolean; |
14914 | pub fn g_app_info_launch_uris( |
14915 | appinfo: *mut GAppInfo, |
14916 | uris: *mut glib::GList, |
14917 | context: *mut GAppLaunchContext, |
14918 | error: *mut *mut glib::GError, |
14919 | ) -> gboolean; |
14920 | #[cfg (feature = "v2_60" )] |
14921 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14922 | pub fn g_app_info_launch_uris_async( |
14923 | appinfo: *mut GAppInfo, |
14924 | uris: *mut glib::GList, |
14925 | context: *mut GAppLaunchContext, |
14926 | cancellable: *mut GCancellable, |
14927 | callback: GAsyncReadyCallback, |
14928 | user_data: gpointer, |
14929 | ); |
14930 | #[cfg (feature = "v2_60" )] |
14931 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
14932 | pub fn g_app_info_launch_uris_finish( |
14933 | appinfo: *mut GAppInfo, |
14934 | result: *mut GAsyncResult, |
14935 | error: *mut *mut glib::GError, |
14936 | ) -> gboolean; |
14937 | pub fn g_app_info_remove_supports_type( |
14938 | appinfo: *mut GAppInfo, |
14939 | content_type: *const c_char, |
14940 | error: *mut *mut glib::GError, |
14941 | ) -> gboolean; |
14942 | pub fn g_app_info_set_as_default_for_extension( |
14943 | appinfo: *mut GAppInfo, |
14944 | extension: *const c_char, |
14945 | error: *mut *mut glib::GError, |
14946 | ) -> gboolean; |
14947 | pub fn g_app_info_set_as_default_for_type( |
14948 | appinfo: *mut GAppInfo, |
14949 | content_type: *const c_char, |
14950 | error: *mut *mut glib::GError, |
14951 | ) -> gboolean; |
14952 | pub fn g_app_info_set_as_last_used_for_type( |
14953 | appinfo: *mut GAppInfo, |
14954 | content_type: *const c_char, |
14955 | error: *mut *mut glib::GError, |
14956 | ) -> gboolean; |
14957 | pub fn g_app_info_should_show(appinfo: *mut GAppInfo) -> gboolean; |
14958 | pub fn g_app_info_supports_files(appinfo: *mut GAppInfo) -> gboolean; |
14959 | pub fn g_app_info_supports_uris(appinfo: *mut GAppInfo) -> gboolean; |
14960 | |
14961 | //========================================================================= |
14962 | // GAsyncInitable |
14963 | //========================================================================= |
14964 | pub fn g_async_initable_get_type() -> GType; |
14965 | pub fn g_async_initable_new_async( |
14966 | object_type: GType, |
14967 | io_priority: c_int, |
14968 | cancellable: *mut GCancellable, |
14969 | callback: GAsyncReadyCallback, |
14970 | user_data: gpointer, |
14971 | first_property_name: *const c_char, |
14972 | ... |
14973 | ); |
14974 | //pub fn g_async_initable_new_valist_async(object_type: GType, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list, io_priority: c_int, cancellable: *mut GCancellable, callback: GAsyncReadyCallback, user_data: gpointer); |
14975 | pub fn g_async_initable_newv_async( |
14976 | object_type: GType, |
14977 | n_parameters: c_uint, |
14978 | parameters: *mut gobject::GParameter, |
14979 | io_priority: c_int, |
14980 | cancellable: *mut GCancellable, |
14981 | callback: GAsyncReadyCallback, |
14982 | user_data: gpointer, |
14983 | ); |
14984 | pub fn g_async_initable_init_async( |
14985 | initable: *mut GAsyncInitable, |
14986 | io_priority: c_int, |
14987 | cancellable: *mut GCancellable, |
14988 | callback: GAsyncReadyCallback, |
14989 | user_data: gpointer, |
14990 | ); |
14991 | pub fn g_async_initable_init_finish( |
14992 | initable: *mut GAsyncInitable, |
14993 | res: *mut GAsyncResult, |
14994 | error: *mut *mut glib::GError, |
14995 | ) -> gboolean; |
14996 | pub fn g_async_initable_new_finish( |
14997 | initable: *mut GAsyncInitable, |
14998 | res: *mut GAsyncResult, |
14999 | error: *mut *mut glib::GError, |
15000 | ) -> *mut gobject::GObject; |
15001 | |
15002 | //========================================================================= |
15003 | // GAsyncResult |
15004 | //========================================================================= |
15005 | pub fn g_async_result_get_type() -> GType; |
15006 | pub fn g_async_result_get_source_object(res: *mut GAsyncResult) -> *mut gobject::GObject; |
15007 | pub fn g_async_result_get_user_data(res: *mut GAsyncResult) -> gpointer; |
15008 | pub fn g_async_result_is_tagged(res: *mut GAsyncResult, source_tag: gpointer) -> gboolean; |
15009 | pub fn g_async_result_legacy_propagate_error( |
15010 | res: *mut GAsyncResult, |
15011 | error: *mut *mut glib::GError, |
15012 | ) -> gboolean; |
15013 | |
15014 | //========================================================================= |
15015 | // GConverter |
15016 | //========================================================================= |
15017 | pub fn g_converter_get_type() -> GType; |
15018 | pub fn g_converter_convert( |
15019 | converter: *mut GConverter, |
15020 | inbuf: *mut u8, |
15021 | inbuf_size: size_t, |
15022 | outbuf: *mut u8, |
15023 | outbuf_size: size_t, |
15024 | flags: GConverterFlags, |
15025 | bytes_read: *mut size_t, |
15026 | bytes_written: *mut size_t, |
15027 | error: *mut *mut glib::GError, |
15028 | ) -> GConverterResult; |
15029 | pub fn g_converter_reset(converter: *mut GConverter); |
15030 | |
15031 | //========================================================================= |
15032 | // GDBusInterface |
15033 | //========================================================================= |
15034 | pub fn g_dbus_interface_get_type() -> GType; |
15035 | pub fn g_dbus_interface_dup_object(interface_: *mut GDBusInterface) -> *mut GDBusObject; |
15036 | pub fn g_dbus_interface_get_info(interface_: *mut GDBusInterface) -> *mut GDBusInterfaceInfo; |
15037 | pub fn g_dbus_interface_get_object(interface_: *mut GDBusInterface) -> *mut GDBusObject; |
15038 | pub fn g_dbus_interface_set_object(interface_: *mut GDBusInterface, object: *mut GDBusObject); |
15039 | |
15040 | //========================================================================= |
15041 | // GDBusObject |
15042 | //========================================================================= |
15043 | pub fn g_dbus_object_get_type() -> GType; |
15044 | pub fn g_dbus_object_get_interface( |
15045 | object: *mut GDBusObject, |
15046 | interface_name: *const c_char, |
15047 | ) -> *mut GDBusInterface; |
15048 | pub fn g_dbus_object_get_interfaces(object: *mut GDBusObject) -> *mut glib::GList; |
15049 | pub fn g_dbus_object_get_object_path(object: *mut GDBusObject) -> *const c_char; |
15050 | |
15051 | //========================================================================= |
15052 | // GDBusObjectManager |
15053 | //========================================================================= |
15054 | pub fn g_dbus_object_manager_get_type() -> GType; |
15055 | pub fn g_dbus_object_manager_get_interface( |
15056 | manager: *mut GDBusObjectManager, |
15057 | object_path: *const c_char, |
15058 | interface_name: *const c_char, |
15059 | ) -> *mut GDBusInterface; |
15060 | pub fn g_dbus_object_manager_get_object( |
15061 | manager: *mut GDBusObjectManager, |
15062 | object_path: *const c_char, |
15063 | ) -> *mut GDBusObject; |
15064 | pub fn g_dbus_object_manager_get_object_path(manager: *mut GDBusObjectManager) |
15065 | -> *const c_char; |
15066 | pub fn g_dbus_object_manager_get_objects(manager: *mut GDBusObjectManager) -> *mut glib::GList; |
15067 | |
15068 | //========================================================================= |
15069 | // GDatagramBased |
15070 | //========================================================================= |
15071 | pub fn g_datagram_based_get_type() -> GType; |
15072 | pub fn g_datagram_based_condition_check( |
15073 | datagram_based: *mut GDatagramBased, |
15074 | condition: glib::GIOCondition, |
15075 | ) -> glib::GIOCondition; |
15076 | pub fn g_datagram_based_condition_wait( |
15077 | datagram_based: *mut GDatagramBased, |
15078 | condition: glib::GIOCondition, |
15079 | timeout: i64, |
15080 | cancellable: *mut GCancellable, |
15081 | error: *mut *mut glib::GError, |
15082 | ) -> gboolean; |
15083 | pub fn g_datagram_based_create_source( |
15084 | datagram_based: *mut GDatagramBased, |
15085 | condition: glib::GIOCondition, |
15086 | cancellable: *mut GCancellable, |
15087 | ) -> *mut glib::GSource; |
15088 | pub fn g_datagram_based_receive_messages( |
15089 | datagram_based: *mut GDatagramBased, |
15090 | messages: *mut GInputMessage, |
15091 | num_messages: c_uint, |
15092 | flags: c_int, |
15093 | timeout: i64, |
15094 | cancellable: *mut GCancellable, |
15095 | error: *mut *mut glib::GError, |
15096 | ) -> c_int; |
15097 | pub fn g_datagram_based_send_messages( |
15098 | datagram_based: *mut GDatagramBased, |
15099 | messages: *mut GOutputMessage, |
15100 | num_messages: c_uint, |
15101 | flags: c_int, |
15102 | timeout: i64, |
15103 | cancellable: *mut GCancellable, |
15104 | error: *mut *mut glib::GError, |
15105 | ) -> c_int; |
15106 | |
15107 | //========================================================================= |
15108 | // GDebugController |
15109 | //========================================================================= |
15110 | #[cfg (feature = "v2_72" )] |
15111 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
15112 | pub fn g_debug_controller_get_type() -> GType; |
15113 | #[cfg (feature = "v2_72" )] |
15114 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
15115 | pub fn g_debug_controller_get_debug_enabled(self_: *mut GDebugController) -> gboolean; |
15116 | #[cfg (feature = "v2_72" )] |
15117 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
15118 | pub fn g_debug_controller_set_debug_enabled( |
15119 | self_: *mut GDebugController, |
15120 | debug_enabled: gboolean, |
15121 | ); |
15122 | |
15123 | //========================================================================= |
15124 | // GDesktopAppInfoLookup |
15125 | //========================================================================= |
15126 | pub fn g_desktop_app_info_lookup_get_type() -> GType; |
15127 | pub fn g_desktop_app_info_lookup_get_default_for_uri_scheme( |
15128 | lookup: *mut GDesktopAppInfoLookup, |
15129 | uri_scheme: *const c_char, |
15130 | ) -> *mut GAppInfo; |
15131 | |
15132 | //========================================================================= |
15133 | // GDrive |
15134 | //========================================================================= |
15135 | pub fn g_drive_get_type() -> GType; |
15136 | pub fn g_drive_can_eject(drive: *mut GDrive) -> gboolean; |
15137 | pub fn g_drive_can_poll_for_media(drive: *mut GDrive) -> gboolean; |
15138 | pub fn g_drive_can_start(drive: *mut GDrive) -> gboolean; |
15139 | pub fn g_drive_can_start_degraded(drive: *mut GDrive) -> gboolean; |
15140 | pub fn g_drive_can_stop(drive: *mut GDrive) -> gboolean; |
15141 | pub fn g_drive_eject( |
15142 | drive: *mut GDrive, |
15143 | flags: GMountUnmountFlags, |
15144 | cancellable: *mut GCancellable, |
15145 | callback: GAsyncReadyCallback, |
15146 | user_data: gpointer, |
15147 | ); |
15148 | pub fn g_drive_eject_finish( |
15149 | drive: *mut GDrive, |
15150 | result: *mut GAsyncResult, |
15151 | error: *mut *mut glib::GError, |
15152 | ) -> gboolean; |
15153 | pub fn g_drive_eject_with_operation( |
15154 | drive: *mut GDrive, |
15155 | flags: GMountUnmountFlags, |
15156 | mount_operation: *mut GMountOperation, |
15157 | cancellable: *mut GCancellable, |
15158 | callback: GAsyncReadyCallback, |
15159 | user_data: gpointer, |
15160 | ); |
15161 | pub fn g_drive_eject_with_operation_finish( |
15162 | drive: *mut GDrive, |
15163 | result: *mut GAsyncResult, |
15164 | error: *mut *mut glib::GError, |
15165 | ) -> gboolean; |
15166 | pub fn g_drive_enumerate_identifiers(drive: *mut GDrive) -> *mut *mut c_char; |
15167 | pub fn g_drive_get_icon(drive: *mut GDrive) -> *mut GIcon; |
15168 | pub fn g_drive_get_identifier(drive: *mut GDrive, kind: *const c_char) -> *mut c_char; |
15169 | pub fn g_drive_get_name(drive: *mut GDrive) -> *mut c_char; |
15170 | pub fn g_drive_get_sort_key(drive: *mut GDrive) -> *const c_char; |
15171 | pub fn g_drive_get_start_stop_type(drive: *mut GDrive) -> GDriveStartStopType; |
15172 | pub fn g_drive_get_symbolic_icon(drive: *mut GDrive) -> *mut GIcon; |
15173 | pub fn g_drive_get_volumes(drive: *mut GDrive) -> *mut glib::GList; |
15174 | pub fn g_drive_has_media(drive: *mut GDrive) -> gboolean; |
15175 | pub fn g_drive_has_volumes(drive: *mut GDrive) -> gboolean; |
15176 | pub fn g_drive_is_media_check_automatic(drive: *mut GDrive) -> gboolean; |
15177 | pub fn g_drive_is_media_removable(drive: *mut GDrive) -> gboolean; |
15178 | pub fn g_drive_is_removable(drive: *mut GDrive) -> gboolean; |
15179 | pub fn g_drive_poll_for_media( |
15180 | drive: *mut GDrive, |
15181 | cancellable: *mut GCancellable, |
15182 | callback: GAsyncReadyCallback, |
15183 | user_data: gpointer, |
15184 | ); |
15185 | pub fn g_drive_poll_for_media_finish( |
15186 | drive: *mut GDrive, |
15187 | result: *mut GAsyncResult, |
15188 | error: *mut *mut glib::GError, |
15189 | ) -> gboolean; |
15190 | pub fn g_drive_start( |
15191 | drive: *mut GDrive, |
15192 | flags: GDriveStartFlags, |
15193 | mount_operation: *mut GMountOperation, |
15194 | cancellable: *mut GCancellable, |
15195 | callback: GAsyncReadyCallback, |
15196 | user_data: gpointer, |
15197 | ); |
15198 | pub fn g_drive_start_finish( |
15199 | drive: *mut GDrive, |
15200 | result: *mut GAsyncResult, |
15201 | error: *mut *mut glib::GError, |
15202 | ) -> gboolean; |
15203 | pub fn g_drive_stop( |
15204 | drive: *mut GDrive, |
15205 | flags: GMountUnmountFlags, |
15206 | mount_operation: *mut GMountOperation, |
15207 | cancellable: *mut GCancellable, |
15208 | callback: GAsyncReadyCallback, |
15209 | user_data: gpointer, |
15210 | ); |
15211 | pub fn g_drive_stop_finish( |
15212 | drive: *mut GDrive, |
15213 | result: *mut GAsyncResult, |
15214 | error: *mut *mut glib::GError, |
15215 | ) -> gboolean; |
15216 | |
15217 | //========================================================================= |
15218 | // GDtlsClientConnection |
15219 | //========================================================================= |
15220 | pub fn g_dtls_client_connection_get_type() -> GType; |
15221 | pub fn g_dtls_client_connection_new( |
15222 | base_socket: *mut GDatagramBased, |
15223 | server_identity: *mut GSocketConnectable, |
15224 | error: *mut *mut glib::GError, |
15225 | ) -> *mut GDtlsClientConnection; |
15226 | pub fn g_dtls_client_connection_get_accepted_cas( |
15227 | conn: *mut GDtlsClientConnection, |
15228 | ) -> *mut glib::GList; |
15229 | pub fn g_dtls_client_connection_get_server_identity( |
15230 | conn: *mut GDtlsClientConnection, |
15231 | ) -> *mut GSocketConnectable; |
15232 | pub fn g_dtls_client_connection_get_validation_flags( |
15233 | conn: *mut GDtlsClientConnection, |
15234 | ) -> GTlsCertificateFlags; |
15235 | pub fn g_dtls_client_connection_set_server_identity( |
15236 | conn: *mut GDtlsClientConnection, |
15237 | identity: *mut GSocketConnectable, |
15238 | ); |
15239 | pub fn g_dtls_client_connection_set_validation_flags( |
15240 | conn: *mut GDtlsClientConnection, |
15241 | flags: GTlsCertificateFlags, |
15242 | ); |
15243 | |
15244 | //========================================================================= |
15245 | // GDtlsConnection |
15246 | //========================================================================= |
15247 | pub fn g_dtls_connection_get_type() -> GType; |
15248 | pub fn g_dtls_connection_close( |
15249 | conn: *mut GDtlsConnection, |
15250 | cancellable: *mut GCancellable, |
15251 | error: *mut *mut glib::GError, |
15252 | ) -> gboolean; |
15253 | pub fn g_dtls_connection_close_async( |
15254 | conn: *mut GDtlsConnection, |
15255 | io_priority: c_int, |
15256 | cancellable: *mut GCancellable, |
15257 | callback: GAsyncReadyCallback, |
15258 | user_data: gpointer, |
15259 | ); |
15260 | pub fn g_dtls_connection_close_finish( |
15261 | conn: *mut GDtlsConnection, |
15262 | result: *mut GAsyncResult, |
15263 | error: *mut *mut glib::GError, |
15264 | ) -> gboolean; |
15265 | pub fn g_dtls_connection_emit_accept_certificate( |
15266 | conn: *mut GDtlsConnection, |
15267 | peer_cert: *mut GTlsCertificate, |
15268 | errors: GTlsCertificateFlags, |
15269 | ) -> gboolean; |
15270 | pub fn g_dtls_connection_get_certificate(conn: *mut GDtlsConnection) -> *mut GTlsCertificate; |
15271 | #[cfg (feature = "v2_66" )] |
15272 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_66" )))] |
15273 | pub fn g_dtls_connection_get_channel_binding_data( |
15274 | conn: *mut GDtlsConnection, |
15275 | type_: GTlsChannelBindingType, |
15276 | data: *mut glib::GByteArray, |
15277 | error: *mut *mut glib::GError, |
15278 | ) -> gboolean; |
15279 | #[cfg (feature = "v2_70" )] |
15280 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
15281 | pub fn g_dtls_connection_get_ciphersuite_name(conn: *mut GDtlsConnection) -> *mut c_char; |
15282 | pub fn g_dtls_connection_get_database(conn: *mut GDtlsConnection) -> *mut GTlsDatabase; |
15283 | pub fn g_dtls_connection_get_interaction(conn: *mut GDtlsConnection) -> *mut GTlsInteraction; |
15284 | #[cfg (feature = "v2_60" )] |
15285 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
15286 | pub fn g_dtls_connection_get_negotiated_protocol(conn: *mut GDtlsConnection) -> *const c_char; |
15287 | pub fn g_dtls_connection_get_peer_certificate( |
15288 | conn: *mut GDtlsConnection, |
15289 | ) -> *mut GTlsCertificate; |
15290 | pub fn g_dtls_connection_get_peer_certificate_errors( |
15291 | conn: *mut GDtlsConnection, |
15292 | ) -> GTlsCertificateFlags; |
15293 | #[cfg (feature = "v2_70" )] |
15294 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
15295 | pub fn g_dtls_connection_get_protocol_version( |
15296 | conn: *mut GDtlsConnection, |
15297 | ) -> GTlsProtocolVersion; |
15298 | pub fn g_dtls_connection_get_rehandshake_mode( |
15299 | conn: *mut GDtlsConnection, |
15300 | ) -> GTlsRehandshakeMode; |
15301 | pub fn g_dtls_connection_get_require_close_notify(conn: *mut GDtlsConnection) -> gboolean; |
15302 | pub fn g_dtls_connection_handshake( |
15303 | conn: *mut GDtlsConnection, |
15304 | cancellable: *mut GCancellable, |
15305 | error: *mut *mut glib::GError, |
15306 | ) -> gboolean; |
15307 | pub fn g_dtls_connection_handshake_async( |
15308 | conn: *mut GDtlsConnection, |
15309 | io_priority: c_int, |
15310 | cancellable: *mut GCancellable, |
15311 | callback: GAsyncReadyCallback, |
15312 | user_data: gpointer, |
15313 | ); |
15314 | pub fn g_dtls_connection_handshake_finish( |
15315 | conn: *mut GDtlsConnection, |
15316 | result: *mut GAsyncResult, |
15317 | error: *mut *mut glib::GError, |
15318 | ) -> gboolean; |
15319 | #[cfg (feature = "v2_60" )] |
15320 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
15321 | pub fn g_dtls_connection_set_advertised_protocols( |
15322 | conn: *mut GDtlsConnection, |
15323 | protocols: *const *const c_char, |
15324 | ); |
15325 | pub fn g_dtls_connection_set_certificate( |
15326 | conn: *mut GDtlsConnection, |
15327 | certificate: *mut GTlsCertificate, |
15328 | ); |
15329 | pub fn g_dtls_connection_set_database(conn: *mut GDtlsConnection, database: *mut GTlsDatabase); |
15330 | pub fn g_dtls_connection_set_interaction( |
15331 | conn: *mut GDtlsConnection, |
15332 | interaction: *mut GTlsInteraction, |
15333 | ); |
15334 | pub fn g_dtls_connection_set_rehandshake_mode( |
15335 | conn: *mut GDtlsConnection, |
15336 | mode: GTlsRehandshakeMode, |
15337 | ); |
15338 | pub fn g_dtls_connection_set_require_close_notify( |
15339 | conn: *mut GDtlsConnection, |
15340 | require_close_notify: gboolean, |
15341 | ); |
15342 | pub fn g_dtls_connection_shutdown( |
15343 | conn: *mut GDtlsConnection, |
15344 | shutdown_read: gboolean, |
15345 | shutdown_write: gboolean, |
15346 | cancellable: *mut GCancellable, |
15347 | error: *mut *mut glib::GError, |
15348 | ) -> gboolean; |
15349 | pub fn g_dtls_connection_shutdown_async( |
15350 | conn: *mut GDtlsConnection, |
15351 | shutdown_read: gboolean, |
15352 | shutdown_write: gboolean, |
15353 | io_priority: c_int, |
15354 | cancellable: *mut GCancellable, |
15355 | callback: GAsyncReadyCallback, |
15356 | user_data: gpointer, |
15357 | ); |
15358 | pub fn g_dtls_connection_shutdown_finish( |
15359 | conn: *mut GDtlsConnection, |
15360 | result: *mut GAsyncResult, |
15361 | error: *mut *mut glib::GError, |
15362 | ) -> gboolean; |
15363 | |
15364 | //========================================================================= |
15365 | // GDtlsServerConnection |
15366 | //========================================================================= |
15367 | pub fn g_dtls_server_connection_get_type() -> GType; |
15368 | pub fn g_dtls_server_connection_new( |
15369 | base_socket: *mut GDatagramBased, |
15370 | certificate: *mut GTlsCertificate, |
15371 | error: *mut *mut glib::GError, |
15372 | ) -> *mut GDtlsServerConnection; |
15373 | |
15374 | //========================================================================= |
15375 | // GFile |
15376 | //========================================================================= |
15377 | pub fn g_file_get_type() -> GType; |
15378 | pub fn g_file_new_build_filename(first_element: *const c_char, ...) -> *mut GFile; |
15379 | #[cfg (feature = "v2_78" )] |
15380 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_78" )))] |
15381 | pub fn g_file_new_build_filenamev(args: *const *const c_char) -> *mut GFile; |
15382 | pub fn g_file_new_for_commandline_arg(arg: *const c_char) -> *mut GFile; |
15383 | pub fn g_file_new_for_commandline_arg_and_cwd( |
15384 | arg: *const c_char, |
15385 | cwd: *const c_char, |
15386 | ) -> *mut GFile; |
15387 | pub fn g_file_new_for_path(path: *const c_char) -> *mut GFile; |
15388 | pub fn g_file_new_for_uri(uri: *const c_char) -> *mut GFile; |
15389 | pub fn g_file_new_tmp( |
15390 | tmpl: *const c_char, |
15391 | iostream: *mut *mut GFileIOStream, |
15392 | error: *mut *mut glib::GError, |
15393 | ) -> *mut GFile; |
15394 | #[cfg (feature = "v2_74" )] |
15395 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15396 | pub fn g_file_new_tmp_async( |
15397 | tmpl: *const c_char, |
15398 | io_priority: c_int, |
15399 | cancellable: *mut GCancellable, |
15400 | callback: GAsyncReadyCallback, |
15401 | user_data: gpointer, |
15402 | ); |
15403 | #[cfg (feature = "v2_74" )] |
15404 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15405 | pub fn g_file_new_tmp_dir_async( |
15406 | tmpl: *const c_char, |
15407 | io_priority: c_int, |
15408 | cancellable: *mut GCancellable, |
15409 | callback: GAsyncReadyCallback, |
15410 | user_data: gpointer, |
15411 | ); |
15412 | #[cfg (feature = "v2_74" )] |
15413 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15414 | pub fn g_file_new_tmp_dir_finish( |
15415 | result: *mut GAsyncResult, |
15416 | error: *mut *mut glib::GError, |
15417 | ) -> *mut GFile; |
15418 | #[cfg (feature = "v2_74" )] |
15419 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15420 | pub fn g_file_new_tmp_finish( |
15421 | result: *mut GAsyncResult, |
15422 | iostream: *mut *mut GFileIOStream, |
15423 | error: *mut *mut glib::GError, |
15424 | ) -> *mut GFile; |
15425 | pub fn g_file_parse_name(parse_name: *const c_char) -> *mut GFile; |
15426 | pub fn g_file_append_to( |
15427 | file: *mut GFile, |
15428 | flags: GFileCreateFlags, |
15429 | cancellable: *mut GCancellable, |
15430 | error: *mut *mut glib::GError, |
15431 | ) -> *mut GFileOutputStream; |
15432 | pub fn g_file_append_to_async( |
15433 | file: *mut GFile, |
15434 | flags: GFileCreateFlags, |
15435 | io_priority: c_int, |
15436 | cancellable: *mut GCancellable, |
15437 | callback: GAsyncReadyCallback, |
15438 | user_data: gpointer, |
15439 | ); |
15440 | pub fn g_file_append_to_finish( |
15441 | file: *mut GFile, |
15442 | res: *mut GAsyncResult, |
15443 | error: *mut *mut glib::GError, |
15444 | ) -> *mut GFileOutputStream; |
15445 | #[cfg (feature = "v2_68" )] |
15446 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
15447 | pub fn g_file_build_attribute_list_for_copy( |
15448 | file: *mut GFile, |
15449 | flags: GFileCopyFlags, |
15450 | cancellable: *mut GCancellable, |
15451 | error: *mut *mut glib::GError, |
15452 | ) -> *mut c_char; |
15453 | pub fn g_file_copy( |
15454 | source: *mut GFile, |
15455 | destination: *mut GFile, |
15456 | flags: GFileCopyFlags, |
15457 | cancellable: *mut GCancellable, |
15458 | progress_callback: GFileProgressCallback, |
15459 | progress_callback_data: gpointer, |
15460 | error: *mut *mut glib::GError, |
15461 | ) -> gboolean; |
15462 | pub fn g_file_copy_async( |
15463 | source: *mut GFile, |
15464 | destination: *mut GFile, |
15465 | flags: GFileCopyFlags, |
15466 | io_priority: c_int, |
15467 | cancellable: *mut GCancellable, |
15468 | progress_callback: GFileProgressCallback, |
15469 | progress_callback_data: gpointer, |
15470 | callback: GAsyncReadyCallback, |
15471 | user_data: gpointer, |
15472 | ); |
15473 | pub fn g_file_copy_attributes( |
15474 | source: *mut GFile, |
15475 | destination: *mut GFile, |
15476 | flags: GFileCopyFlags, |
15477 | cancellable: *mut GCancellable, |
15478 | error: *mut *mut glib::GError, |
15479 | ) -> gboolean; |
15480 | pub fn g_file_copy_finish( |
15481 | file: *mut GFile, |
15482 | res: *mut GAsyncResult, |
15483 | error: *mut *mut glib::GError, |
15484 | ) -> gboolean; |
15485 | pub fn g_file_create( |
15486 | file: *mut GFile, |
15487 | flags: GFileCreateFlags, |
15488 | cancellable: *mut GCancellable, |
15489 | error: *mut *mut glib::GError, |
15490 | ) -> *mut GFileOutputStream; |
15491 | pub fn g_file_create_async( |
15492 | file: *mut GFile, |
15493 | flags: GFileCreateFlags, |
15494 | io_priority: c_int, |
15495 | cancellable: *mut GCancellable, |
15496 | callback: GAsyncReadyCallback, |
15497 | user_data: gpointer, |
15498 | ); |
15499 | pub fn g_file_create_finish( |
15500 | file: *mut GFile, |
15501 | res: *mut GAsyncResult, |
15502 | error: *mut *mut glib::GError, |
15503 | ) -> *mut GFileOutputStream; |
15504 | pub fn g_file_create_readwrite( |
15505 | file: *mut GFile, |
15506 | flags: GFileCreateFlags, |
15507 | cancellable: *mut GCancellable, |
15508 | error: *mut *mut glib::GError, |
15509 | ) -> *mut GFileIOStream; |
15510 | pub fn g_file_create_readwrite_async( |
15511 | file: *mut GFile, |
15512 | flags: GFileCreateFlags, |
15513 | io_priority: c_int, |
15514 | cancellable: *mut GCancellable, |
15515 | callback: GAsyncReadyCallback, |
15516 | user_data: gpointer, |
15517 | ); |
15518 | pub fn g_file_create_readwrite_finish( |
15519 | file: *mut GFile, |
15520 | res: *mut GAsyncResult, |
15521 | error: *mut *mut glib::GError, |
15522 | ) -> *mut GFileIOStream; |
15523 | pub fn g_file_delete( |
15524 | file: *mut GFile, |
15525 | cancellable: *mut GCancellable, |
15526 | error: *mut *mut glib::GError, |
15527 | ) -> gboolean; |
15528 | pub fn g_file_delete_async( |
15529 | file: *mut GFile, |
15530 | io_priority: c_int, |
15531 | cancellable: *mut GCancellable, |
15532 | callback: GAsyncReadyCallback, |
15533 | user_data: gpointer, |
15534 | ); |
15535 | pub fn g_file_delete_finish( |
15536 | file: *mut GFile, |
15537 | result: *mut GAsyncResult, |
15538 | error: *mut *mut glib::GError, |
15539 | ) -> gboolean; |
15540 | pub fn g_file_dup(file: *mut GFile) -> *mut GFile; |
15541 | pub fn g_file_eject_mountable( |
15542 | file: *mut GFile, |
15543 | flags: GMountUnmountFlags, |
15544 | cancellable: *mut GCancellable, |
15545 | callback: GAsyncReadyCallback, |
15546 | user_data: gpointer, |
15547 | ); |
15548 | pub fn g_file_eject_mountable_finish( |
15549 | file: *mut GFile, |
15550 | result: *mut GAsyncResult, |
15551 | error: *mut *mut glib::GError, |
15552 | ) -> gboolean; |
15553 | pub fn g_file_eject_mountable_with_operation( |
15554 | file: *mut GFile, |
15555 | flags: GMountUnmountFlags, |
15556 | mount_operation: *mut GMountOperation, |
15557 | cancellable: *mut GCancellable, |
15558 | callback: GAsyncReadyCallback, |
15559 | user_data: gpointer, |
15560 | ); |
15561 | pub fn g_file_eject_mountable_with_operation_finish( |
15562 | file: *mut GFile, |
15563 | result: *mut GAsyncResult, |
15564 | error: *mut *mut glib::GError, |
15565 | ) -> gboolean; |
15566 | pub fn g_file_enumerate_children( |
15567 | file: *mut GFile, |
15568 | attributes: *const c_char, |
15569 | flags: GFileQueryInfoFlags, |
15570 | cancellable: *mut GCancellable, |
15571 | error: *mut *mut glib::GError, |
15572 | ) -> *mut GFileEnumerator; |
15573 | pub fn g_file_enumerate_children_async( |
15574 | file: *mut GFile, |
15575 | attributes: *const c_char, |
15576 | flags: GFileQueryInfoFlags, |
15577 | io_priority: c_int, |
15578 | cancellable: *mut GCancellable, |
15579 | callback: GAsyncReadyCallback, |
15580 | user_data: gpointer, |
15581 | ); |
15582 | pub fn g_file_enumerate_children_finish( |
15583 | file: *mut GFile, |
15584 | res: *mut GAsyncResult, |
15585 | error: *mut *mut glib::GError, |
15586 | ) -> *mut GFileEnumerator; |
15587 | pub fn g_file_equal(file1: *mut GFile, file2: *mut GFile) -> gboolean; |
15588 | pub fn g_file_find_enclosing_mount( |
15589 | file: *mut GFile, |
15590 | cancellable: *mut GCancellable, |
15591 | error: *mut *mut glib::GError, |
15592 | ) -> *mut GMount; |
15593 | pub fn g_file_find_enclosing_mount_async( |
15594 | file: *mut GFile, |
15595 | io_priority: c_int, |
15596 | cancellable: *mut GCancellable, |
15597 | callback: GAsyncReadyCallback, |
15598 | user_data: gpointer, |
15599 | ); |
15600 | pub fn g_file_find_enclosing_mount_finish( |
15601 | file: *mut GFile, |
15602 | res: *mut GAsyncResult, |
15603 | error: *mut *mut glib::GError, |
15604 | ) -> *mut GMount; |
15605 | pub fn g_file_get_basename(file: *mut GFile) -> *mut c_char; |
15606 | pub fn g_file_get_child(file: *mut GFile, name: *const c_char) -> *mut GFile; |
15607 | pub fn g_file_get_child_for_display_name( |
15608 | file: *mut GFile, |
15609 | display_name: *const c_char, |
15610 | error: *mut *mut glib::GError, |
15611 | ) -> *mut GFile; |
15612 | pub fn g_file_get_parent(file: *mut GFile) -> *mut GFile; |
15613 | pub fn g_file_get_parse_name(file: *mut GFile) -> *mut c_char; |
15614 | pub fn g_file_get_path(file: *mut GFile) -> *mut c_char; |
15615 | pub fn g_file_get_relative_path(parent: *mut GFile, descendant: *mut GFile) -> *mut c_char; |
15616 | pub fn g_file_get_uri(file: *mut GFile) -> *mut c_char; |
15617 | pub fn g_file_get_uri_scheme(file: *mut GFile) -> *mut c_char; |
15618 | pub fn g_file_has_parent(file: *mut GFile, parent: *mut GFile) -> gboolean; |
15619 | pub fn g_file_has_prefix(file: *mut GFile, prefix: *mut GFile) -> gboolean; |
15620 | pub fn g_file_has_uri_scheme(file: *mut GFile, uri_scheme: *const c_char) -> gboolean; |
15621 | pub fn g_file_hash(file: gconstpointer) -> c_uint; |
15622 | pub fn g_file_is_native(file: *mut GFile) -> gboolean; |
15623 | pub fn g_file_load_bytes( |
15624 | file: *mut GFile, |
15625 | cancellable: *mut GCancellable, |
15626 | etag_out: *mut *mut c_char, |
15627 | error: *mut *mut glib::GError, |
15628 | ) -> *mut glib::GBytes; |
15629 | pub fn g_file_load_bytes_async( |
15630 | file: *mut GFile, |
15631 | cancellable: *mut GCancellable, |
15632 | callback: GAsyncReadyCallback, |
15633 | user_data: gpointer, |
15634 | ); |
15635 | pub fn g_file_load_bytes_finish( |
15636 | file: *mut GFile, |
15637 | result: *mut GAsyncResult, |
15638 | etag_out: *mut *mut c_char, |
15639 | error: *mut *mut glib::GError, |
15640 | ) -> *mut glib::GBytes; |
15641 | pub fn g_file_load_contents( |
15642 | file: *mut GFile, |
15643 | cancellable: *mut GCancellable, |
15644 | contents: *mut *mut u8, |
15645 | length: *mut size_t, |
15646 | etag_out: *mut *mut c_char, |
15647 | error: *mut *mut glib::GError, |
15648 | ) -> gboolean; |
15649 | pub fn g_file_load_contents_async( |
15650 | file: *mut GFile, |
15651 | cancellable: *mut GCancellable, |
15652 | callback: GAsyncReadyCallback, |
15653 | user_data: gpointer, |
15654 | ); |
15655 | pub fn g_file_load_contents_finish( |
15656 | file: *mut GFile, |
15657 | res: *mut GAsyncResult, |
15658 | contents: *mut *mut u8, |
15659 | length: *mut size_t, |
15660 | etag_out: *mut *mut c_char, |
15661 | error: *mut *mut glib::GError, |
15662 | ) -> gboolean; |
15663 | pub fn g_file_load_partial_contents_async( |
15664 | file: *mut GFile, |
15665 | cancellable: *mut GCancellable, |
15666 | read_more_callback: GFileReadMoreCallback, |
15667 | callback: GAsyncReadyCallback, |
15668 | user_data: gpointer, |
15669 | ); |
15670 | pub fn g_file_load_partial_contents_finish( |
15671 | file: *mut GFile, |
15672 | res: *mut GAsyncResult, |
15673 | contents: *mut *mut u8, |
15674 | length: *mut size_t, |
15675 | etag_out: *mut *mut c_char, |
15676 | error: *mut *mut glib::GError, |
15677 | ) -> gboolean; |
15678 | pub fn g_file_make_directory( |
15679 | file: *mut GFile, |
15680 | cancellable: *mut GCancellable, |
15681 | error: *mut *mut glib::GError, |
15682 | ) -> gboolean; |
15683 | pub fn g_file_make_directory_async( |
15684 | file: *mut GFile, |
15685 | io_priority: c_int, |
15686 | cancellable: *mut GCancellable, |
15687 | callback: GAsyncReadyCallback, |
15688 | user_data: gpointer, |
15689 | ); |
15690 | pub fn g_file_make_directory_finish( |
15691 | file: *mut GFile, |
15692 | result: *mut GAsyncResult, |
15693 | error: *mut *mut glib::GError, |
15694 | ) -> gboolean; |
15695 | pub fn g_file_make_directory_with_parents( |
15696 | file: *mut GFile, |
15697 | cancellable: *mut GCancellable, |
15698 | error: *mut *mut glib::GError, |
15699 | ) -> gboolean; |
15700 | pub fn g_file_make_symbolic_link( |
15701 | file: *mut GFile, |
15702 | symlink_value: *const c_char, |
15703 | cancellable: *mut GCancellable, |
15704 | error: *mut *mut glib::GError, |
15705 | ) -> gboolean; |
15706 | #[cfg (feature = "v2_74" )] |
15707 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15708 | pub fn g_file_make_symbolic_link_async( |
15709 | file: *mut GFile, |
15710 | symlink_value: *const c_char, |
15711 | io_priority: c_int, |
15712 | cancellable: *mut GCancellable, |
15713 | callback: GAsyncReadyCallback, |
15714 | user_data: gpointer, |
15715 | ); |
15716 | #[cfg (feature = "v2_74" )] |
15717 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
15718 | pub fn g_file_make_symbolic_link_finish( |
15719 | file: *mut GFile, |
15720 | result: *mut GAsyncResult, |
15721 | error: *mut *mut glib::GError, |
15722 | ) -> gboolean; |
15723 | pub fn g_file_measure_disk_usage( |
15724 | file: *mut GFile, |
15725 | flags: GFileMeasureFlags, |
15726 | cancellable: *mut GCancellable, |
15727 | progress_callback: GFileMeasureProgressCallback, |
15728 | progress_data: gpointer, |
15729 | disk_usage: *mut u64, |
15730 | num_dirs: *mut u64, |
15731 | num_files: *mut u64, |
15732 | error: *mut *mut glib::GError, |
15733 | ) -> gboolean; |
15734 | pub fn g_file_measure_disk_usage_async( |
15735 | file: *mut GFile, |
15736 | flags: GFileMeasureFlags, |
15737 | io_priority: c_int, |
15738 | cancellable: *mut GCancellable, |
15739 | progress_callback: GFileMeasureProgressCallback, |
15740 | progress_data: gpointer, |
15741 | callback: GAsyncReadyCallback, |
15742 | user_data: gpointer, |
15743 | ); |
15744 | pub fn g_file_measure_disk_usage_finish( |
15745 | file: *mut GFile, |
15746 | result: *mut GAsyncResult, |
15747 | disk_usage: *mut u64, |
15748 | num_dirs: *mut u64, |
15749 | num_files: *mut u64, |
15750 | error: *mut *mut glib::GError, |
15751 | ) -> gboolean; |
15752 | pub fn g_file_monitor( |
15753 | file: *mut GFile, |
15754 | flags: GFileMonitorFlags, |
15755 | cancellable: *mut GCancellable, |
15756 | error: *mut *mut glib::GError, |
15757 | ) -> *mut GFileMonitor; |
15758 | pub fn g_file_monitor_directory( |
15759 | file: *mut GFile, |
15760 | flags: GFileMonitorFlags, |
15761 | cancellable: *mut GCancellable, |
15762 | error: *mut *mut glib::GError, |
15763 | ) -> *mut GFileMonitor; |
15764 | pub fn g_file_monitor_file( |
15765 | file: *mut GFile, |
15766 | flags: GFileMonitorFlags, |
15767 | cancellable: *mut GCancellable, |
15768 | error: *mut *mut glib::GError, |
15769 | ) -> *mut GFileMonitor; |
15770 | pub fn g_file_mount_enclosing_volume( |
15771 | location: *mut GFile, |
15772 | flags: GMountMountFlags, |
15773 | mount_operation: *mut GMountOperation, |
15774 | cancellable: *mut GCancellable, |
15775 | callback: GAsyncReadyCallback, |
15776 | user_data: gpointer, |
15777 | ); |
15778 | pub fn g_file_mount_enclosing_volume_finish( |
15779 | location: *mut GFile, |
15780 | result: *mut GAsyncResult, |
15781 | error: *mut *mut glib::GError, |
15782 | ) -> gboolean; |
15783 | pub fn g_file_mount_mountable( |
15784 | file: *mut GFile, |
15785 | flags: GMountMountFlags, |
15786 | mount_operation: *mut GMountOperation, |
15787 | cancellable: *mut GCancellable, |
15788 | callback: GAsyncReadyCallback, |
15789 | user_data: gpointer, |
15790 | ); |
15791 | pub fn g_file_mount_mountable_finish( |
15792 | file: *mut GFile, |
15793 | result: *mut GAsyncResult, |
15794 | error: *mut *mut glib::GError, |
15795 | ) -> *mut GFile; |
15796 | pub fn g_file_move( |
15797 | source: *mut GFile, |
15798 | destination: *mut GFile, |
15799 | flags: GFileCopyFlags, |
15800 | cancellable: *mut GCancellable, |
15801 | progress_callback: GFileProgressCallback, |
15802 | progress_callback_data: gpointer, |
15803 | error: *mut *mut glib::GError, |
15804 | ) -> gboolean; |
15805 | #[cfg (feature = "v2_72" )] |
15806 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
15807 | pub fn g_file_move_async( |
15808 | source: *mut GFile, |
15809 | destination: *mut GFile, |
15810 | flags: GFileCopyFlags, |
15811 | io_priority: c_int, |
15812 | cancellable: *mut GCancellable, |
15813 | progress_callback: GFileProgressCallback, |
15814 | progress_callback_data: gpointer, |
15815 | callback: GAsyncReadyCallback, |
15816 | user_data: gpointer, |
15817 | ); |
15818 | #[cfg (feature = "v2_72" )] |
15819 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_72" )))] |
15820 | pub fn g_file_move_finish( |
15821 | file: *mut GFile, |
15822 | result: *mut GAsyncResult, |
15823 | error: *mut *mut glib::GError, |
15824 | ) -> gboolean; |
15825 | pub fn g_file_open_readwrite( |
15826 | file: *mut GFile, |
15827 | cancellable: *mut GCancellable, |
15828 | error: *mut *mut glib::GError, |
15829 | ) -> *mut GFileIOStream; |
15830 | pub fn g_file_open_readwrite_async( |
15831 | file: *mut GFile, |
15832 | io_priority: c_int, |
15833 | cancellable: *mut GCancellable, |
15834 | callback: GAsyncReadyCallback, |
15835 | user_data: gpointer, |
15836 | ); |
15837 | pub fn g_file_open_readwrite_finish( |
15838 | file: *mut GFile, |
15839 | res: *mut GAsyncResult, |
15840 | error: *mut *mut glib::GError, |
15841 | ) -> *mut GFileIOStream; |
15842 | pub fn g_file_peek_path(file: *mut GFile) -> *const c_char; |
15843 | pub fn g_file_poll_mountable( |
15844 | file: *mut GFile, |
15845 | cancellable: *mut GCancellable, |
15846 | callback: GAsyncReadyCallback, |
15847 | user_data: gpointer, |
15848 | ); |
15849 | pub fn g_file_poll_mountable_finish( |
15850 | file: *mut GFile, |
15851 | result: *mut GAsyncResult, |
15852 | error: *mut *mut glib::GError, |
15853 | ) -> gboolean; |
15854 | pub fn g_file_query_default_handler( |
15855 | file: *mut GFile, |
15856 | cancellable: *mut GCancellable, |
15857 | error: *mut *mut glib::GError, |
15858 | ) -> *mut GAppInfo; |
15859 | #[cfg (feature = "v2_60" )] |
15860 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
15861 | pub fn g_file_query_default_handler_async( |
15862 | file: *mut GFile, |
15863 | io_priority: c_int, |
15864 | cancellable: *mut GCancellable, |
15865 | callback: GAsyncReadyCallback, |
15866 | user_data: gpointer, |
15867 | ); |
15868 | #[cfg (feature = "v2_60" )] |
15869 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
15870 | pub fn g_file_query_default_handler_finish( |
15871 | file: *mut GFile, |
15872 | result: *mut GAsyncResult, |
15873 | error: *mut *mut glib::GError, |
15874 | ) -> *mut GAppInfo; |
15875 | pub fn g_file_query_exists(file: *mut GFile, cancellable: *mut GCancellable) -> gboolean; |
15876 | pub fn g_file_query_file_type( |
15877 | file: *mut GFile, |
15878 | flags: GFileQueryInfoFlags, |
15879 | cancellable: *mut GCancellable, |
15880 | ) -> GFileType; |
15881 | pub fn g_file_query_filesystem_info( |
15882 | file: *mut GFile, |
15883 | attributes: *const c_char, |
15884 | cancellable: *mut GCancellable, |
15885 | error: *mut *mut glib::GError, |
15886 | ) -> *mut GFileInfo; |
15887 | pub fn g_file_query_filesystem_info_async( |
15888 | file: *mut GFile, |
15889 | attributes: *const c_char, |
15890 | io_priority: c_int, |
15891 | cancellable: *mut GCancellable, |
15892 | callback: GAsyncReadyCallback, |
15893 | user_data: gpointer, |
15894 | ); |
15895 | pub fn g_file_query_filesystem_info_finish( |
15896 | file: *mut GFile, |
15897 | res: *mut GAsyncResult, |
15898 | error: *mut *mut glib::GError, |
15899 | ) -> *mut GFileInfo; |
15900 | pub fn g_file_query_info( |
15901 | file: *mut GFile, |
15902 | attributes: *const c_char, |
15903 | flags: GFileQueryInfoFlags, |
15904 | cancellable: *mut GCancellable, |
15905 | error: *mut *mut glib::GError, |
15906 | ) -> *mut GFileInfo; |
15907 | pub fn g_file_query_info_async( |
15908 | file: *mut GFile, |
15909 | attributes: *const c_char, |
15910 | flags: GFileQueryInfoFlags, |
15911 | io_priority: c_int, |
15912 | cancellable: *mut GCancellable, |
15913 | callback: GAsyncReadyCallback, |
15914 | user_data: gpointer, |
15915 | ); |
15916 | pub fn g_file_query_info_finish( |
15917 | file: *mut GFile, |
15918 | res: *mut GAsyncResult, |
15919 | error: *mut *mut glib::GError, |
15920 | ) -> *mut GFileInfo; |
15921 | pub fn g_file_query_settable_attributes( |
15922 | file: *mut GFile, |
15923 | cancellable: *mut GCancellable, |
15924 | error: *mut *mut glib::GError, |
15925 | ) -> *mut GFileAttributeInfoList; |
15926 | pub fn g_file_query_writable_namespaces( |
15927 | file: *mut GFile, |
15928 | cancellable: *mut GCancellable, |
15929 | error: *mut *mut glib::GError, |
15930 | ) -> *mut GFileAttributeInfoList; |
15931 | pub fn g_file_read( |
15932 | file: *mut GFile, |
15933 | cancellable: *mut GCancellable, |
15934 | error: *mut *mut glib::GError, |
15935 | ) -> *mut GFileInputStream; |
15936 | pub fn g_file_read_async( |
15937 | file: *mut GFile, |
15938 | io_priority: c_int, |
15939 | cancellable: *mut GCancellable, |
15940 | callback: GAsyncReadyCallback, |
15941 | user_data: gpointer, |
15942 | ); |
15943 | pub fn g_file_read_finish( |
15944 | file: *mut GFile, |
15945 | res: *mut GAsyncResult, |
15946 | error: *mut *mut glib::GError, |
15947 | ) -> *mut GFileInputStream; |
15948 | pub fn g_file_replace( |
15949 | file: *mut GFile, |
15950 | etag: *const c_char, |
15951 | make_backup: gboolean, |
15952 | flags: GFileCreateFlags, |
15953 | cancellable: *mut GCancellable, |
15954 | error: *mut *mut glib::GError, |
15955 | ) -> *mut GFileOutputStream; |
15956 | pub fn g_file_replace_async( |
15957 | file: *mut GFile, |
15958 | etag: *const c_char, |
15959 | make_backup: gboolean, |
15960 | flags: GFileCreateFlags, |
15961 | io_priority: c_int, |
15962 | cancellable: *mut GCancellable, |
15963 | callback: GAsyncReadyCallback, |
15964 | user_data: gpointer, |
15965 | ); |
15966 | pub fn g_file_replace_contents( |
15967 | file: *mut GFile, |
15968 | contents: *const u8, |
15969 | length: size_t, |
15970 | etag: *const c_char, |
15971 | make_backup: gboolean, |
15972 | flags: GFileCreateFlags, |
15973 | new_etag: *mut *mut c_char, |
15974 | cancellable: *mut GCancellable, |
15975 | error: *mut *mut glib::GError, |
15976 | ) -> gboolean; |
15977 | pub fn g_file_replace_contents_async( |
15978 | file: *mut GFile, |
15979 | contents: *const u8, |
15980 | length: size_t, |
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_bytes_async( |
15989 | file: *mut GFile, |
15990 | contents: *mut glib::GBytes, |
15991 | etag: *const c_char, |
15992 | make_backup: gboolean, |
15993 | flags: GFileCreateFlags, |
15994 | cancellable: *mut GCancellable, |
15995 | callback: GAsyncReadyCallback, |
15996 | user_data: gpointer, |
15997 | ); |
15998 | pub fn g_file_replace_contents_finish( |
15999 | file: *mut GFile, |
16000 | res: *mut GAsyncResult, |
16001 | new_etag: *mut *mut c_char, |
16002 | error: *mut *mut glib::GError, |
16003 | ) -> gboolean; |
16004 | pub fn g_file_replace_finish( |
16005 | file: *mut GFile, |
16006 | res: *mut GAsyncResult, |
16007 | error: *mut *mut glib::GError, |
16008 | ) -> *mut GFileOutputStream; |
16009 | pub fn g_file_replace_readwrite( |
16010 | file: *mut GFile, |
16011 | etag: *const c_char, |
16012 | make_backup: gboolean, |
16013 | flags: GFileCreateFlags, |
16014 | cancellable: *mut GCancellable, |
16015 | error: *mut *mut glib::GError, |
16016 | ) -> *mut GFileIOStream; |
16017 | pub fn g_file_replace_readwrite_async( |
16018 | file: *mut GFile, |
16019 | etag: *const c_char, |
16020 | make_backup: gboolean, |
16021 | flags: GFileCreateFlags, |
16022 | io_priority: c_int, |
16023 | cancellable: *mut GCancellable, |
16024 | callback: GAsyncReadyCallback, |
16025 | user_data: gpointer, |
16026 | ); |
16027 | pub fn g_file_replace_readwrite_finish( |
16028 | file: *mut GFile, |
16029 | res: *mut GAsyncResult, |
16030 | error: *mut *mut glib::GError, |
16031 | ) -> *mut GFileIOStream; |
16032 | pub fn g_file_resolve_relative_path( |
16033 | file: *mut GFile, |
16034 | relative_path: *const c_char, |
16035 | ) -> *mut GFile; |
16036 | pub fn g_file_set_attribute( |
16037 | file: *mut GFile, |
16038 | attribute: *const c_char, |
16039 | type_: GFileAttributeType, |
16040 | value_p: gpointer, |
16041 | flags: GFileQueryInfoFlags, |
16042 | cancellable: *mut GCancellable, |
16043 | error: *mut *mut glib::GError, |
16044 | ) -> gboolean; |
16045 | pub fn g_file_set_attribute_byte_string( |
16046 | file: *mut GFile, |
16047 | attribute: *const c_char, |
16048 | value: *const c_char, |
16049 | flags: GFileQueryInfoFlags, |
16050 | cancellable: *mut GCancellable, |
16051 | error: *mut *mut glib::GError, |
16052 | ) -> gboolean; |
16053 | pub fn g_file_set_attribute_int32( |
16054 | file: *mut GFile, |
16055 | attribute: *const c_char, |
16056 | value: i32, |
16057 | flags: GFileQueryInfoFlags, |
16058 | cancellable: *mut GCancellable, |
16059 | error: *mut *mut glib::GError, |
16060 | ) -> gboolean; |
16061 | pub fn g_file_set_attribute_int64( |
16062 | file: *mut GFile, |
16063 | attribute: *const c_char, |
16064 | value: i64, |
16065 | flags: GFileQueryInfoFlags, |
16066 | cancellable: *mut GCancellable, |
16067 | error: *mut *mut glib::GError, |
16068 | ) -> gboolean; |
16069 | pub fn g_file_set_attribute_string( |
16070 | file: *mut GFile, |
16071 | attribute: *const c_char, |
16072 | value: *const c_char, |
16073 | flags: GFileQueryInfoFlags, |
16074 | cancellable: *mut GCancellable, |
16075 | error: *mut *mut glib::GError, |
16076 | ) -> gboolean; |
16077 | pub fn g_file_set_attribute_uint32( |
16078 | file: *mut GFile, |
16079 | attribute: *const c_char, |
16080 | value: u32, |
16081 | flags: GFileQueryInfoFlags, |
16082 | cancellable: *mut GCancellable, |
16083 | error: *mut *mut glib::GError, |
16084 | ) -> gboolean; |
16085 | pub fn g_file_set_attribute_uint64( |
16086 | file: *mut GFile, |
16087 | attribute: *const c_char, |
16088 | value: u64, |
16089 | flags: GFileQueryInfoFlags, |
16090 | cancellable: *mut GCancellable, |
16091 | error: *mut *mut glib::GError, |
16092 | ) -> gboolean; |
16093 | pub fn g_file_set_attributes_async( |
16094 | file: *mut GFile, |
16095 | info: *mut GFileInfo, |
16096 | flags: GFileQueryInfoFlags, |
16097 | io_priority: c_int, |
16098 | cancellable: *mut GCancellable, |
16099 | callback: GAsyncReadyCallback, |
16100 | user_data: gpointer, |
16101 | ); |
16102 | pub fn g_file_set_attributes_finish( |
16103 | file: *mut GFile, |
16104 | result: *mut GAsyncResult, |
16105 | info: *mut *mut GFileInfo, |
16106 | error: *mut *mut glib::GError, |
16107 | ) -> gboolean; |
16108 | pub fn g_file_set_attributes_from_info( |
16109 | file: *mut GFile, |
16110 | info: *mut GFileInfo, |
16111 | flags: GFileQueryInfoFlags, |
16112 | cancellable: *mut GCancellable, |
16113 | error: *mut *mut glib::GError, |
16114 | ) -> gboolean; |
16115 | pub fn g_file_set_display_name( |
16116 | file: *mut GFile, |
16117 | display_name: *const c_char, |
16118 | cancellable: *mut GCancellable, |
16119 | error: *mut *mut glib::GError, |
16120 | ) -> *mut GFile; |
16121 | pub fn g_file_set_display_name_async( |
16122 | file: *mut GFile, |
16123 | display_name: *const c_char, |
16124 | io_priority: c_int, |
16125 | cancellable: *mut GCancellable, |
16126 | callback: GAsyncReadyCallback, |
16127 | user_data: gpointer, |
16128 | ); |
16129 | pub fn g_file_set_display_name_finish( |
16130 | file: *mut GFile, |
16131 | res: *mut GAsyncResult, |
16132 | error: *mut *mut glib::GError, |
16133 | ) -> *mut GFile; |
16134 | pub fn g_file_start_mountable( |
16135 | file: *mut GFile, |
16136 | flags: GDriveStartFlags, |
16137 | start_operation: *mut GMountOperation, |
16138 | cancellable: *mut GCancellable, |
16139 | callback: GAsyncReadyCallback, |
16140 | user_data: gpointer, |
16141 | ); |
16142 | pub fn g_file_start_mountable_finish( |
16143 | file: *mut GFile, |
16144 | result: *mut GAsyncResult, |
16145 | error: *mut *mut glib::GError, |
16146 | ) -> gboolean; |
16147 | pub fn g_file_stop_mountable( |
16148 | file: *mut GFile, |
16149 | flags: GMountUnmountFlags, |
16150 | mount_operation: *mut GMountOperation, |
16151 | cancellable: *mut GCancellable, |
16152 | callback: GAsyncReadyCallback, |
16153 | user_data: gpointer, |
16154 | ); |
16155 | pub fn g_file_stop_mountable_finish( |
16156 | file: *mut GFile, |
16157 | result: *mut GAsyncResult, |
16158 | error: *mut *mut glib::GError, |
16159 | ) -> gboolean; |
16160 | pub fn g_file_supports_thread_contexts(file: *mut GFile) -> gboolean; |
16161 | pub fn g_file_trash( |
16162 | file: *mut GFile, |
16163 | cancellable: *mut GCancellable, |
16164 | error: *mut *mut glib::GError, |
16165 | ) -> gboolean; |
16166 | pub fn g_file_trash_async( |
16167 | file: *mut GFile, |
16168 | io_priority: c_int, |
16169 | cancellable: *mut GCancellable, |
16170 | callback: GAsyncReadyCallback, |
16171 | user_data: gpointer, |
16172 | ); |
16173 | pub fn g_file_trash_finish( |
16174 | file: *mut GFile, |
16175 | result: *mut GAsyncResult, |
16176 | error: *mut *mut glib::GError, |
16177 | ) -> gboolean; |
16178 | pub fn g_file_unmount_mountable( |
16179 | file: *mut GFile, |
16180 | flags: GMountUnmountFlags, |
16181 | cancellable: *mut GCancellable, |
16182 | callback: GAsyncReadyCallback, |
16183 | user_data: gpointer, |
16184 | ); |
16185 | pub fn g_file_unmount_mountable_finish( |
16186 | file: *mut GFile, |
16187 | result: *mut GAsyncResult, |
16188 | error: *mut *mut glib::GError, |
16189 | ) -> gboolean; |
16190 | pub fn g_file_unmount_mountable_with_operation( |
16191 | file: *mut GFile, |
16192 | flags: GMountUnmountFlags, |
16193 | mount_operation: *mut GMountOperation, |
16194 | cancellable: *mut GCancellable, |
16195 | callback: GAsyncReadyCallback, |
16196 | user_data: gpointer, |
16197 | ); |
16198 | pub fn g_file_unmount_mountable_with_operation_finish( |
16199 | file: *mut GFile, |
16200 | result: *mut GAsyncResult, |
16201 | error: *mut *mut glib::GError, |
16202 | ) -> gboolean; |
16203 | |
16204 | //========================================================================= |
16205 | // GFileDescriptorBased |
16206 | //========================================================================= |
16207 | pub fn g_file_descriptor_based_get_type() -> GType; |
16208 | pub fn g_file_descriptor_based_get_fd(fd_based: *mut GFileDescriptorBased) -> c_int; |
16209 | |
16210 | //========================================================================= |
16211 | // GIcon |
16212 | //========================================================================= |
16213 | pub fn g_icon_get_type() -> GType; |
16214 | pub fn g_icon_deserialize(value: *mut glib::GVariant) -> *mut GIcon; |
16215 | pub fn g_icon_new_for_string(str: *const c_char, error: *mut *mut glib::GError) -> *mut GIcon; |
16216 | pub fn g_icon_equal(icon1: *mut GIcon, icon2: *mut GIcon) -> gboolean; |
16217 | pub fn g_icon_hash(icon: gconstpointer) -> c_uint; |
16218 | pub fn g_icon_serialize(icon: *mut GIcon) -> *mut glib::GVariant; |
16219 | pub fn g_icon_to_string(icon: *mut GIcon) -> *mut c_char; |
16220 | |
16221 | //========================================================================= |
16222 | // GInitable |
16223 | //========================================================================= |
16224 | pub fn g_initable_get_type() -> GType; |
16225 | pub fn g_initable_new( |
16226 | object_type: GType, |
16227 | cancellable: *mut GCancellable, |
16228 | error: *mut *mut glib::GError, |
16229 | first_property_name: *const c_char, |
16230 | ... |
16231 | ) -> *mut gobject::GObject; |
16232 | //pub fn g_initable_new_valist(object_type: GType, first_property_name: *const c_char, var_args: /*Unimplemented*/va_list, cancellable: *mut GCancellable, error: *mut *mut glib::GError) -> *mut gobject::GObject; |
16233 | pub fn g_initable_newv( |
16234 | object_type: GType, |
16235 | n_parameters: c_uint, |
16236 | parameters: *mut gobject::GParameter, |
16237 | cancellable: *mut GCancellable, |
16238 | error: *mut *mut glib::GError, |
16239 | ) -> *mut gobject::GObject; |
16240 | pub fn g_initable_init( |
16241 | initable: *mut GInitable, |
16242 | cancellable: *mut GCancellable, |
16243 | error: *mut *mut glib::GError, |
16244 | ) -> gboolean; |
16245 | |
16246 | //========================================================================= |
16247 | // GListModel |
16248 | //========================================================================= |
16249 | pub fn g_list_model_get_type() -> GType; |
16250 | pub fn g_list_model_get_item(list: *mut GListModel, position: c_uint) -> gpointer; |
16251 | pub fn g_list_model_get_item_type(list: *mut GListModel) -> GType; |
16252 | pub fn g_list_model_get_n_items(list: *mut GListModel) -> c_uint; |
16253 | pub fn g_list_model_get_object( |
16254 | list: *mut GListModel, |
16255 | position: c_uint, |
16256 | ) -> *mut gobject::GObject; |
16257 | pub fn g_list_model_items_changed( |
16258 | list: *mut GListModel, |
16259 | position: c_uint, |
16260 | removed: c_uint, |
16261 | added: c_uint, |
16262 | ); |
16263 | |
16264 | //========================================================================= |
16265 | // GLoadableIcon |
16266 | //========================================================================= |
16267 | pub fn g_loadable_icon_get_type() -> GType; |
16268 | pub fn g_loadable_icon_load( |
16269 | icon: *mut GLoadableIcon, |
16270 | size: c_int, |
16271 | type_: *mut *mut c_char, |
16272 | cancellable: *mut GCancellable, |
16273 | error: *mut *mut glib::GError, |
16274 | ) -> *mut GInputStream; |
16275 | pub fn g_loadable_icon_load_async( |
16276 | icon: *mut GLoadableIcon, |
16277 | size: c_int, |
16278 | cancellable: *mut GCancellable, |
16279 | callback: GAsyncReadyCallback, |
16280 | user_data: gpointer, |
16281 | ); |
16282 | pub fn g_loadable_icon_load_finish( |
16283 | icon: *mut GLoadableIcon, |
16284 | res: *mut GAsyncResult, |
16285 | type_: *mut *mut c_char, |
16286 | error: *mut *mut glib::GError, |
16287 | ) -> *mut GInputStream; |
16288 | |
16289 | //========================================================================= |
16290 | // GMemoryMonitor |
16291 | //========================================================================= |
16292 | #[cfg (feature = "v2_64" )] |
16293 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
16294 | pub fn g_memory_monitor_get_type() -> GType; |
16295 | #[cfg (feature = "v2_64" )] |
16296 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_64" )))] |
16297 | pub fn g_memory_monitor_dup_default() -> *mut GMemoryMonitor; |
16298 | |
16299 | //========================================================================= |
16300 | // GMount |
16301 | //========================================================================= |
16302 | pub fn g_mount_get_type() -> GType; |
16303 | pub fn g_mount_can_eject(mount: *mut GMount) -> gboolean; |
16304 | pub fn g_mount_can_unmount(mount: *mut GMount) -> gboolean; |
16305 | pub fn g_mount_eject( |
16306 | mount: *mut GMount, |
16307 | flags: GMountUnmountFlags, |
16308 | cancellable: *mut GCancellable, |
16309 | callback: GAsyncReadyCallback, |
16310 | user_data: gpointer, |
16311 | ); |
16312 | pub fn g_mount_eject_finish( |
16313 | mount: *mut GMount, |
16314 | result: *mut GAsyncResult, |
16315 | error: *mut *mut glib::GError, |
16316 | ) -> gboolean; |
16317 | pub fn g_mount_eject_with_operation( |
16318 | mount: *mut GMount, |
16319 | flags: GMountUnmountFlags, |
16320 | mount_operation: *mut GMountOperation, |
16321 | cancellable: *mut GCancellable, |
16322 | callback: GAsyncReadyCallback, |
16323 | user_data: gpointer, |
16324 | ); |
16325 | pub fn g_mount_eject_with_operation_finish( |
16326 | mount: *mut GMount, |
16327 | result: *mut GAsyncResult, |
16328 | error: *mut *mut glib::GError, |
16329 | ) -> gboolean; |
16330 | pub fn g_mount_get_default_location(mount: *mut GMount) -> *mut GFile; |
16331 | pub fn g_mount_get_drive(mount: *mut GMount) -> *mut GDrive; |
16332 | pub fn g_mount_get_icon(mount: *mut GMount) -> *mut GIcon; |
16333 | pub fn g_mount_get_name(mount: *mut GMount) -> *mut c_char; |
16334 | pub fn g_mount_get_root(mount: *mut GMount) -> *mut GFile; |
16335 | pub fn g_mount_get_sort_key(mount: *mut GMount) -> *const c_char; |
16336 | pub fn g_mount_get_symbolic_icon(mount: *mut GMount) -> *mut GIcon; |
16337 | pub fn g_mount_get_uuid(mount: *mut GMount) -> *mut c_char; |
16338 | pub fn g_mount_get_volume(mount: *mut GMount) -> *mut GVolume; |
16339 | pub fn g_mount_guess_content_type( |
16340 | mount: *mut GMount, |
16341 | force_rescan: gboolean, |
16342 | cancellable: *mut GCancellable, |
16343 | callback: GAsyncReadyCallback, |
16344 | user_data: gpointer, |
16345 | ); |
16346 | pub fn g_mount_guess_content_type_finish( |
16347 | mount: *mut GMount, |
16348 | result: *mut GAsyncResult, |
16349 | error: *mut *mut glib::GError, |
16350 | ) -> *mut *mut c_char; |
16351 | pub fn g_mount_guess_content_type_sync( |
16352 | mount: *mut GMount, |
16353 | force_rescan: gboolean, |
16354 | cancellable: *mut GCancellable, |
16355 | error: *mut *mut glib::GError, |
16356 | ) -> *mut *mut c_char; |
16357 | pub fn g_mount_is_shadowed(mount: *mut GMount) -> gboolean; |
16358 | pub fn g_mount_remount( |
16359 | mount: *mut GMount, |
16360 | flags: GMountMountFlags, |
16361 | mount_operation: *mut GMountOperation, |
16362 | cancellable: *mut GCancellable, |
16363 | callback: GAsyncReadyCallback, |
16364 | user_data: gpointer, |
16365 | ); |
16366 | pub fn g_mount_remount_finish( |
16367 | mount: *mut GMount, |
16368 | result: *mut GAsyncResult, |
16369 | error: *mut *mut glib::GError, |
16370 | ) -> gboolean; |
16371 | pub fn g_mount_shadow(mount: *mut GMount); |
16372 | pub fn g_mount_unmount( |
16373 | mount: *mut GMount, |
16374 | flags: GMountUnmountFlags, |
16375 | cancellable: *mut GCancellable, |
16376 | callback: GAsyncReadyCallback, |
16377 | user_data: gpointer, |
16378 | ); |
16379 | pub fn g_mount_unmount_finish( |
16380 | mount: *mut GMount, |
16381 | result: *mut GAsyncResult, |
16382 | error: *mut *mut glib::GError, |
16383 | ) -> gboolean; |
16384 | pub fn g_mount_unmount_with_operation( |
16385 | mount: *mut GMount, |
16386 | flags: GMountUnmountFlags, |
16387 | mount_operation: *mut GMountOperation, |
16388 | cancellable: *mut GCancellable, |
16389 | callback: GAsyncReadyCallback, |
16390 | user_data: gpointer, |
16391 | ); |
16392 | pub fn g_mount_unmount_with_operation_finish( |
16393 | mount: *mut GMount, |
16394 | result: *mut GAsyncResult, |
16395 | error: *mut *mut glib::GError, |
16396 | ) -> gboolean; |
16397 | pub fn g_mount_unshadow(mount: *mut GMount); |
16398 | |
16399 | //========================================================================= |
16400 | // GNetworkMonitor |
16401 | //========================================================================= |
16402 | pub fn g_network_monitor_get_type() -> GType; |
16403 | pub fn g_network_monitor_get_default() -> *mut GNetworkMonitor; |
16404 | pub fn g_network_monitor_can_reach( |
16405 | monitor: *mut GNetworkMonitor, |
16406 | connectable: *mut GSocketConnectable, |
16407 | cancellable: *mut GCancellable, |
16408 | error: *mut *mut glib::GError, |
16409 | ) -> gboolean; |
16410 | pub fn g_network_monitor_can_reach_async( |
16411 | monitor: *mut GNetworkMonitor, |
16412 | connectable: *mut GSocketConnectable, |
16413 | cancellable: *mut GCancellable, |
16414 | callback: GAsyncReadyCallback, |
16415 | user_data: gpointer, |
16416 | ); |
16417 | pub fn g_network_monitor_can_reach_finish( |
16418 | monitor: *mut GNetworkMonitor, |
16419 | result: *mut GAsyncResult, |
16420 | error: *mut *mut glib::GError, |
16421 | ) -> gboolean; |
16422 | pub fn g_network_monitor_get_connectivity( |
16423 | monitor: *mut GNetworkMonitor, |
16424 | ) -> GNetworkConnectivity; |
16425 | pub fn g_network_monitor_get_network_available(monitor: *mut GNetworkMonitor) -> gboolean; |
16426 | pub fn g_network_monitor_get_network_metered(monitor: *mut GNetworkMonitor) -> gboolean; |
16427 | |
16428 | //========================================================================= |
16429 | // GPollableInputStream |
16430 | //========================================================================= |
16431 | pub fn g_pollable_input_stream_get_type() -> GType; |
16432 | pub fn g_pollable_input_stream_can_poll(stream: *mut GPollableInputStream) -> gboolean; |
16433 | pub fn g_pollable_input_stream_create_source( |
16434 | stream: *mut GPollableInputStream, |
16435 | cancellable: *mut GCancellable, |
16436 | ) -> *mut glib::GSource; |
16437 | pub fn g_pollable_input_stream_is_readable(stream: *mut GPollableInputStream) -> gboolean; |
16438 | pub fn g_pollable_input_stream_read_nonblocking( |
16439 | stream: *mut GPollableInputStream, |
16440 | buffer: *mut u8, |
16441 | count: size_t, |
16442 | cancellable: *mut GCancellable, |
16443 | error: *mut *mut glib::GError, |
16444 | ) -> ssize_t; |
16445 | |
16446 | //========================================================================= |
16447 | // GPollableOutputStream |
16448 | //========================================================================= |
16449 | pub fn g_pollable_output_stream_get_type() -> GType; |
16450 | pub fn g_pollable_output_stream_can_poll(stream: *mut GPollableOutputStream) -> gboolean; |
16451 | pub fn g_pollable_output_stream_create_source( |
16452 | stream: *mut GPollableOutputStream, |
16453 | cancellable: *mut GCancellable, |
16454 | ) -> *mut glib::GSource; |
16455 | pub fn g_pollable_output_stream_is_writable(stream: *mut GPollableOutputStream) -> gboolean; |
16456 | pub fn g_pollable_output_stream_write_nonblocking( |
16457 | stream: *mut GPollableOutputStream, |
16458 | buffer: *mut u8, |
16459 | count: size_t, |
16460 | cancellable: *mut GCancellable, |
16461 | error: *mut *mut glib::GError, |
16462 | ) -> ssize_t; |
16463 | #[cfg (feature = "v2_60" )] |
16464 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
16465 | pub fn g_pollable_output_stream_writev_nonblocking( |
16466 | stream: *mut GPollableOutputStream, |
16467 | vectors: *const GOutputVector, |
16468 | n_vectors: size_t, |
16469 | bytes_written: *mut size_t, |
16470 | cancellable: *mut GCancellable, |
16471 | error: *mut *mut glib::GError, |
16472 | ) -> GPollableReturn; |
16473 | |
16474 | //========================================================================= |
16475 | // GPowerProfileMonitor |
16476 | //========================================================================= |
16477 | #[cfg (feature = "v2_70" )] |
16478 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
16479 | pub fn g_power_profile_monitor_get_type() -> GType; |
16480 | #[cfg (feature = "v2_70" )] |
16481 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
16482 | pub fn g_power_profile_monitor_dup_default() -> *mut GPowerProfileMonitor; |
16483 | #[cfg (feature = "v2_70" )] |
16484 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
16485 | pub fn g_power_profile_monitor_get_power_saver_enabled( |
16486 | monitor: *mut GPowerProfileMonitor, |
16487 | ) -> gboolean; |
16488 | |
16489 | //========================================================================= |
16490 | // GProxy |
16491 | //========================================================================= |
16492 | pub fn g_proxy_get_type() -> GType; |
16493 | pub fn g_proxy_get_default_for_protocol(protocol: *const c_char) -> *mut GProxy; |
16494 | pub fn g_proxy_connect( |
16495 | proxy: *mut GProxy, |
16496 | connection: *mut GIOStream, |
16497 | proxy_address: *mut GProxyAddress, |
16498 | cancellable: *mut GCancellable, |
16499 | error: *mut *mut glib::GError, |
16500 | ) -> *mut GIOStream; |
16501 | pub fn g_proxy_connect_async( |
16502 | proxy: *mut GProxy, |
16503 | connection: *mut GIOStream, |
16504 | proxy_address: *mut GProxyAddress, |
16505 | cancellable: *mut GCancellable, |
16506 | callback: GAsyncReadyCallback, |
16507 | user_data: gpointer, |
16508 | ); |
16509 | pub fn g_proxy_connect_finish( |
16510 | proxy: *mut GProxy, |
16511 | result: *mut GAsyncResult, |
16512 | error: *mut *mut glib::GError, |
16513 | ) -> *mut GIOStream; |
16514 | pub fn g_proxy_supports_hostname(proxy: *mut GProxy) -> gboolean; |
16515 | |
16516 | //========================================================================= |
16517 | // GProxyResolver |
16518 | //========================================================================= |
16519 | pub fn g_proxy_resolver_get_type() -> GType; |
16520 | pub fn g_proxy_resolver_get_default() -> *mut GProxyResolver; |
16521 | pub fn g_proxy_resolver_is_supported(resolver: *mut GProxyResolver) -> gboolean; |
16522 | pub fn g_proxy_resolver_lookup( |
16523 | resolver: *mut GProxyResolver, |
16524 | uri: *const c_char, |
16525 | cancellable: *mut GCancellable, |
16526 | error: *mut *mut glib::GError, |
16527 | ) -> *mut *mut c_char; |
16528 | pub fn g_proxy_resolver_lookup_async( |
16529 | resolver: *mut GProxyResolver, |
16530 | uri: *const c_char, |
16531 | cancellable: *mut GCancellable, |
16532 | callback: GAsyncReadyCallback, |
16533 | user_data: gpointer, |
16534 | ); |
16535 | pub fn g_proxy_resolver_lookup_finish( |
16536 | resolver: *mut GProxyResolver, |
16537 | result: *mut GAsyncResult, |
16538 | error: *mut *mut glib::GError, |
16539 | ) -> *mut *mut c_char; |
16540 | |
16541 | //========================================================================= |
16542 | // GRemoteActionGroup |
16543 | //========================================================================= |
16544 | pub fn g_remote_action_group_get_type() -> GType; |
16545 | pub fn g_remote_action_group_activate_action_full( |
16546 | remote: *mut GRemoteActionGroup, |
16547 | action_name: *const c_char, |
16548 | parameter: *mut glib::GVariant, |
16549 | platform_data: *mut glib::GVariant, |
16550 | ); |
16551 | pub fn g_remote_action_group_change_action_state_full( |
16552 | remote: *mut GRemoteActionGroup, |
16553 | action_name: *const c_char, |
16554 | value: *mut glib::GVariant, |
16555 | platform_data: *mut glib::GVariant, |
16556 | ); |
16557 | |
16558 | //========================================================================= |
16559 | // GSeekable |
16560 | //========================================================================= |
16561 | pub fn g_seekable_get_type() -> GType; |
16562 | pub fn g_seekable_can_seek(seekable: *mut GSeekable) -> gboolean; |
16563 | pub fn g_seekable_can_truncate(seekable: *mut GSeekable) -> gboolean; |
16564 | pub fn g_seekable_seek( |
16565 | seekable: *mut GSeekable, |
16566 | offset: i64, |
16567 | type_: glib::GSeekType, |
16568 | cancellable: *mut GCancellable, |
16569 | error: *mut *mut glib::GError, |
16570 | ) -> gboolean; |
16571 | pub fn g_seekable_tell(seekable: *mut GSeekable) -> i64; |
16572 | pub fn g_seekable_truncate( |
16573 | seekable: *mut GSeekable, |
16574 | offset: i64, |
16575 | cancellable: *mut GCancellable, |
16576 | error: *mut *mut glib::GError, |
16577 | ) -> gboolean; |
16578 | |
16579 | //========================================================================= |
16580 | // GSocketConnectable |
16581 | //========================================================================= |
16582 | pub fn g_socket_connectable_get_type() -> GType; |
16583 | pub fn g_socket_connectable_enumerate( |
16584 | connectable: *mut GSocketConnectable, |
16585 | ) -> *mut GSocketAddressEnumerator; |
16586 | pub fn g_socket_connectable_proxy_enumerate( |
16587 | connectable: *mut GSocketConnectable, |
16588 | ) -> *mut GSocketAddressEnumerator; |
16589 | pub fn g_socket_connectable_to_string(connectable: *mut GSocketConnectable) -> *mut c_char; |
16590 | |
16591 | //========================================================================= |
16592 | // GTlsBackend |
16593 | //========================================================================= |
16594 | pub fn g_tls_backend_get_type() -> GType; |
16595 | pub fn g_tls_backend_get_default() -> *mut GTlsBackend; |
16596 | pub fn g_tls_backend_get_certificate_type(backend: *mut GTlsBackend) -> GType; |
16597 | pub fn g_tls_backend_get_client_connection_type(backend: *mut GTlsBackend) -> GType; |
16598 | pub fn g_tls_backend_get_default_database(backend: *mut GTlsBackend) -> *mut GTlsDatabase; |
16599 | pub fn g_tls_backend_get_dtls_client_connection_type(backend: *mut GTlsBackend) -> GType; |
16600 | pub fn g_tls_backend_get_dtls_server_connection_type(backend: *mut GTlsBackend) -> GType; |
16601 | pub fn g_tls_backend_get_file_database_type(backend: *mut GTlsBackend) -> GType; |
16602 | pub fn g_tls_backend_get_server_connection_type(backend: *mut GTlsBackend) -> GType; |
16603 | #[cfg (feature = "v2_60" )] |
16604 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
16605 | pub fn g_tls_backend_set_default_database( |
16606 | backend: *mut GTlsBackend, |
16607 | database: *mut GTlsDatabase, |
16608 | ); |
16609 | pub fn g_tls_backend_supports_dtls(backend: *mut GTlsBackend) -> gboolean; |
16610 | pub fn g_tls_backend_supports_tls(backend: *mut GTlsBackend) -> gboolean; |
16611 | |
16612 | //========================================================================= |
16613 | // GTlsClientConnection |
16614 | //========================================================================= |
16615 | pub fn g_tls_client_connection_get_type() -> GType; |
16616 | pub fn g_tls_client_connection_new( |
16617 | base_io_stream: *mut GIOStream, |
16618 | server_identity: *mut GSocketConnectable, |
16619 | error: *mut *mut glib::GError, |
16620 | ) -> *mut GTlsClientConnection; |
16621 | pub fn g_tls_client_connection_copy_session_state( |
16622 | conn: *mut GTlsClientConnection, |
16623 | source: *mut GTlsClientConnection, |
16624 | ); |
16625 | pub fn g_tls_client_connection_get_accepted_cas( |
16626 | conn: *mut GTlsClientConnection, |
16627 | ) -> *mut glib::GList; |
16628 | pub fn g_tls_client_connection_get_server_identity( |
16629 | conn: *mut GTlsClientConnection, |
16630 | ) -> *mut GSocketConnectable; |
16631 | pub fn g_tls_client_connection_get_use_ssl3(conn: *mut GTlsClientConnection) -> gboolean; |
16632 | pub fn g_tls_client_connection_get_validation_flags( |
16633 | conn: *mut GTlsClientConnection, |
16634 | ) -> GTlsCertificateFlags; |
16635 | pub fn g_tls_client_connection_set_server_identity( |
16636 | conn: *mut GTlsClientConnection, |
16637 | identity: *mut GSocketConnectable, |
16638 | ); |
16639 | pub fn g_tls_client_connection_set_use_ssl3( |
16640 | conn: *mut GTlsClientConnection, |
16641 | use_ssl3: gboolean, |
16642 | ); |
16643 | pub fn g_tls_client_connection_set_validation_flags( |
16644 | conn: *mut GTlsClientConnection, |
16645 | flags: GTlsCertificateFlags, |
16646 | ); |
16647 | |
16648 | //========================================================================= |
16649 | // GTlsFileDatabase |
16650 | //========================================================================= |
16651 | pub fn g_tls_file_database_get_type() -> GType; |
16652 | pub fn g_tls_file_database_new( |
16653 | anchors: *const c_char, |
16654 | error: *mut *mut glib::GError, |
16655 | ) -> *mut GTlsFileDatabase; |
16656 | |
16657 | //========================================================================= |
16658 | // GTlsServerConnection |
16659 | //========================================================================= |
16660 | pub fn g_tls_server_connection_get_type() -> GType; |
16661 | pub fn g_tls_server_connection_new( |
16662 | base_io_stream: *mut GIOStream, |
16663 | certificate: *mut GTlsCertificate, |
16664 | error: *mut *mut glib::GError, |
16665 | ) -> *mut GTlsServerConnection; |
16666 | |
16667 | //========================================================================= |
16668 | // GVolume |
16669 | //========================================================================= |
16670 | pub fn g_volume_get_type() -> GType; |
16671 | pub fn g_volume_can_eject(volume: *mut GVolume) -> gboolean; |
16672 | pub fn g_volume_can_mount(volume: *mut GVolume) -> gboolean; |
16673 | pub fn g_volume_eject( |
16674 | volume: *mut GVolume, |
16675 | flags: GMountUnmountFlags, |
16676 | cancellable: *mut GCancellable, |
16677 | callback: GAsyncReadyCallback, |
16678 | user_data: gpointer, |
16679 | ); |
16680 | pub fn g_volume_eject_finish( |
16681 | volume: *mut GVolume, |
16682 | result: *mut GAsyncResult, |
16683 | error: *mut *mut glib::GError, |
16684 | ) -> gboolean; |
16685 | pub fn g_volume_eject_with_operation( |
16686 | volume: *mut GVolume, |
16687 | flags: GMountUnmountFlags, |
16688 | mount_operation: *mut GMountOperation, |
16689 | cancellable: *mut GCancellable, |
16690 | callback: GAsyncReadyCallback, |
16691 | user_data: gpointer, |
16692 | ); |
16693 | pub fn g_volume_eject_with_operation_finish( |
16694 | volume: *mut GVolume, |
16695 | result: *mut GAsyncResult, |
16696 | error: *mut *mut glib::GError, |
16697 | ) -> gboolean; |
16698 | pub fn g_volume_enumerate_identifiers(volume: *mut GVolume) -> *mut *mut c_char; |
16699 | pub fn g_volume_get_activation_root(volume: *mut GVolume) -> *mut GFile; |
16700 | pub fn g_volume_get_drive(volume: *mut GVolume) -> *mut GDrive; |
16701 | pub fn g_volume_get_icon(volume: *mut GVolume) -> *mut GIcon; |
16702 | pub fn g_volume_get_identifier(volume: *mut GVolume, kind: *const c_char) -> *mut c_char; |
16703 | pub fn g_volume_get_mount(volume: *mut GVolume) -> *mut GMount; |
16704 | pub fn g_volume_get_name(volume: *mut GVolume) -> *mut c_char; |
16705 | pub fn g_volume_get_sort_key(volume: *mut GVolume) -> *const c_char; |
16706 | pub fn g_volume_get_symbolic_icon(volume: *mut GVolume) -> *mut GIcon; |
16707 | pub fn g_volume_get_uuid(volume: *mut GVolume) -> *mut c_char; |
16708 | pub fn g_volume_mount( |
16709 | volume: *mut GVolume, |
16710 | flags: GMountMountFlags, |
16711 | mount_operation: *mut GMountOperation, |
16712 | cancellable: *mut GCancellable, |
16713 | callback: GAsyncReadyCallback, |
16714 | user_data: gpointer, |
16715 | ); |
16716 | pub fn g_volume_mount_finish( |
16717 | volume: *mut GVolume, |
16718 | result: *mut GAsyncResult, |
16719 | error: *mut *mut glib::GError, |
16720 | ) -> gboolean; |
16721 | pub fn g_volume_should_automount(volume: *mut GVolume) -> gboolean; |
16722 | |
16723 | //========================================================================= |
16724 | // Other functions |
16725 | //========================================================================= |
16726 | pub fn g_bus_get( |
16727 | bus_type: GBusType, |
16728 | cancellable: *mut GCancellable, |
16729 | callback: GAsyncReadyCallback, |
16730 | user_data: gpointer, |
16731 | ); |
16732 | pub fn g_bus_get_finish( |
16733 | res: *mut GAsyncResult, |
16734 | error: *mut *mut glib::GError, |
16735 | ) -> *mut GDBusConnection; |
16736 | pub fn g_bus_get_sync( |
16737 | bus_type: GBusType, |
16738 | cancellable: *mut GCancellable, |
16739 | error: *mut *mut glib::GError, |
16740 | ) -> *mut GDBusConnection; |
16741 | pub fn g_bus_own_name( |
16742 | bus_type: GBusType, |
16743 | name: *const c_char, |
16744 | flags: GBusNameOwnerFlags, |
16745 | bus_acquired_handler: GBusAcquiredCallback, |
16746 | name_acquired_handler: GBusNameAcquiredCallback, |
16747 | name_lost_handler: GBusNameLostCallback, |
16748 | user_data: gpointer, |
16749 | user_data_free_func: glib::GDestroyNotify, |
16750 | ) -> c_uint; |
16751 | pub fn g_bus_own_name_on_connection( |
16752 | connection: *mut GDBusConnection, |
16753 | name: *const c_char, |
16754 | flags: GBusNameOwnerFlags, |
16755 | name_acquired_handler: GBusNameAcquiredCallback, |
16756 | name_lost_handler: GBusNameLostCallback, |
16757 | user_data: gpointer, |
16758 | user_data_free_func: glib::GDestroyNotify, |
16759 | ) -> c_uint; |
16760 | pub fn g_bus_own_name_on_connection_with_closures( |
16761 | connection: *mut GDBusConnection, |
16762 | name: *const c_char, |
16763 | flags: GBusNameOwnerFlags, |
16764 | name_acquired_closure: *mut gobject::GClosure, |
16765 | name_lost_closure: *mut gobject::GClosure, |
16766 | ) -> c_uint; |
16767 | pub fn g_bus_own_name_with_closures( |
16768 | bus_type: GBusType, |
16769 | name: *const c_char, |
16770 | flags: GBusNameOwnerFlags, |
16771 | bus_acquired_closure: *mut gobject::GClosure, |
16772 | name_acquired_closure: *mut gobject::GClosure, |
16773 | name_lost_closure: *mut gobject::GClosure, |
16774 | ) -> c_uint; |
16775 | pub fn g_bus_unown_name(owner_id: c_uint); |
16776 | pub fn g_bus_unwatch_name(watcher_id: c_uint); |
16777 | pub fn g_bus_watch_name( |
16778 | bus_type: GBusType, |
16779 | name: *const c_char, |
16780 | flags: GBusNameWatcherFlags, |
16781 | name_appeared_handler: GBusNameAppearedCallback, |
16782 | name_vanished_handler: GBusNameVanishedCallback, |
16783 | user_data: gpointer, |
16784 | user_data_free_func: glib::GDestroyNotify, |
16785 | ) -> c_uint; |
16786 | pub fn g_bus_watch_name_on_connection( |
16787 | connection: *mut GDBusConnection, |
16788 | name: *const c_char, |
16789 | flags: GBusNameWatcherFlags, |
16790 | name_appeared_handler: GBusNameAppearedCallback, |
16791 | name_vanished_handler: GBusNameVanishedCallback, |
16792 | user_data: gpointer, |
16793 | user_data_free_func: glib::GDestroyNotify, |
16794 | ) -> c_uint; |
16795 | pub fn g_bus_watch_name_on_connection_with_closures( |
16796 | connection: *mut GDBusConnection, |
16797 | name: *const c_char, |
16798 | flags: GBusNameWatcherFlags, |
16799 | name_appeared_closure: *mut gobject::GClosure, |
16800 | name_vanished_closure: *mut gobject::GClosure, |
16801 | ) -> c_uint; |
16802 | pub fn g_bus_watch_name_with_closures( |
16803 | bus_type: GBusType, |
16804 | name: *const c_char, |
16805 | flags: GBusNameWatcherFlags, |
16806 | name_appeared_closure: *mut gobject::GClosure, |
16807 | name_vanished_closure: *mut gobject::GClosure, |
16808 | ) -> c_uint; |
16809 | pub fn g_content_type_can_be_executable(type_: *const c_char) -> gboolean; |
16810 | pub fn g_content_type_equals(type1: *const c_char, type2: *const c_char) -> gboolean; |
16811 | pub fn g_content_type_from_mime_type(mime_type: *const c_char) -> *mut c_char; |
16812 | pub fn g_content_type_get_description(type_: *const c_char) -> *mut c_char; |
16813 | pub fn g_content_type_get_generic_icon_name(type_: *const c_char) -> *mut c_char; |
16814 | pub fn g_content_type_get_icon(type_: *const c_char) -> *mut GIcon; |
16815 | #[cfg (feature = "v2_60" )] |
16816 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
16817 | pub fn g_content_type_get_mime_dirs() -> *const *const c_char; |
16818 | pub fn g_content_type_get_mime_type(type_: *const c_char) -> *mut c_char; |
16819 | pub fn g_content_type_get_symbolic_icon(type_: *const c_char) -> *mut GIcon; |
16820 | pub fn g_content_type_guess( |
16821 | filename: *const c_char, |
16822 | data: *const u8, |
16823 | data_size: size_t, |
16824 | result_uncertain: *mut gboolean, |
16825 | ) -> *mut c_char; |
16826 | pub fn g_content_type_guess_for_tree(root: *mut GFile) -> *mut *mut c_char; |
16827 | pub fn g_content_type_is_a(type_: *const c_char, supertype: *const c_char) -> gboolean; |
16828 | pub fn g_content_type_is_mime_type(type_: *const c_char, mime_type: *const c_char) -> gboolean; |
16829 | pub fn g_content_type_is_unknown(type_: *const c_char) -> gboolean; |
16830 | #[cfg (feature = "v2_60" )] |
16831 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
16832 | pub fn g_content_type_set_mime_dirs(dirs: *const *const c_char); |
16833 | pub fn g_content_types_get_registered() -> *mut glib::GList; |
16834 | pub fn g_dbus_address_escape_value(string: *const c_char) -> *mut c_char; |
16835 | pub fn g_dbus_address_get_for_bus_sync( |
16836 | bus_type: GBusType, |
16837 | cancellable: *mut GCancellable, |
16838 | error: *mut *mut glib::GError, |
16839 | ) -> *mut c_char; |
16840 | pub fn g_dbus_address_get_stream( |
16841 | address: *const c_char, |
16842 | cancellable: *mut GCancellable, |
16843 | callback: GAsyncReadyCallback, |
16844 | user_data: gpointer, |
16845 | ); |
16846 | pub fn g_dbus_address_get_stream_finish( |
16847 | res: *mut GAsyncResult, |
16848 | out_guid: *mut *mut c_char, |
16849 | error: *mut *mut glib::GError, |
16850 | ) -> *mut GIOStream; |
16851 | pub fn g_dbus_address_get_stream_sync( |
16852 | address: *const c_char, |
16853 | out_guid: *mut *mut c_char, |
16854 | cancellable: *mut GCancellable, |
16855 | error: *mut *mut glib::GError, |
16856 | ) -> *mut GIOStream; |
16857 | #[cfg (feature = "v2_68" )] |
16858 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
16859 | pub fn g_dbus_escape_object_path(s: *const c_char) -> *mut c_char; |
16860 | #[cfg (feature = "v2_68" )] |
16861 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
16862 | pub fn g_dbus_escape_object_path_bytestring(bytes: *const u8) -> *mut c_char; |
16863 | pub fn g_dbus_generate_guid() -> *mut c_char; |
16864 | pub fn g_dbus_gvalue_to_gvariant( |
16865 | gvalue: *const gobject::GValue, |
16866 | type_: *const glib::GVariantType, |
16867 | ) -> *mut glib::GVariant; |
16868 | pub fn g_dbus_gvariant_to_gvalue(value: *mut glib::GVariant, out_gvalue: *mut gobject::GValue); |
16869 | pub fn g_dbus_is_address(string: *const c_char) -> gboolean; |
16870 | #[cfg (feature = "v2_70" )] |
16871 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_70" )))] |
16872 | pub fn g_dbus_is_error_name(string: *const c_char) -> gboolean; |
16873 | pub fn g_dbus_is_guid(string: *const c_char) -> gboolean; |
16874 | pub fn g_dbus_is_interface_name(string: *const c_char) -> gboolean; |
16875 | pub fn g_dbus_is_member_name(string: *const c_char) -> gboolean; |
16876 | pub fn g_dbus_is_name(string: *const c_char) -> gboolean; |
16877 | pub fn g_dbus_is_supported_address( |
16878 | string: *const c_char, |
16879 | error: *mut *mut glib::GError, |
16880 | ) -> gboolean; |
16881 | pub fn g_dbus_is_unique_name(string: *const c_char) -> gboolean; |
16882 | #[cfg (feature = "v2_68" )] |
16883 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_68" )))] |
16884 | pub fn g_dbus_unescape_object_path(s: *const c_char) -> *mut u8; |
16885 | pub fn g_io_error_from_errno(err_no: c_int) -> GIOErrorEnum; |
16886 | #[cfg (feature = "v2_74" )] |
16887 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_74" )))] |
16888 | pub fn g_io_error_from_file_error(file_error: glib::GFileError) -> GIOErrorEnum; |
16889 | pub fn g_io_error_quark() -> glib::GQuark; |
16890 | pub fn g_io_modules_load_all_in_directory(dirname: *const c_char) -> *mut glib::GList; |
16891 | pub fn g_io_modules_load_all_in_directory_with_scope( |
16892 | dirname: *const c_char, |
16893 | scope: *mut GIOModuleScope, |
16894 | ) -> *mut glib::GList; |
16895 | pub fn g_io_modules_scan_all_in_directory(dirname: *const c_char); |
16896 | pub fn g_io_modules_scan_all_in_directory_with_scope( |
16897 | dirname: *const c_char, |
16898 | scope: *mut GIOModuleScope, |
16899 | ); |
16900 | pub fn g_io_scheduler_cancel_all_jobs(); |
16901 | pub fn g_io_scheduler_push_job( |
16902 | job_func: GIOSchedulerJobFunc, |
16903 | user_data: gpointer, |
16904 | notify: glib::GDestroyNotify, |
16905 | io_priority: c_int, |
16906 | cancellable: *mut GCancellable, |
16907 | ); |
16908 | pub fn g_keyfile_settings_backend_new( |
16909 | filename: *const c_char, |
16910 | root_path: *const c_char, |
16911 | root_group: *const c_char, |
16912 | ) -> *mut GSettingsBackend; |
16913 | pub fn g_memory_settings_backend_new() -> *mut GSettingsBackend; |
16914 | pub fn g_networking_init(); |
16915 | pub fn g_null_settings_backend_new() -> *mut GSettingsBackend; |
16916 | pub fn g_pollable_source_new(pollable_stream: *mut gobject::GObject) -> *mut glib::GSource; |
16917 | pub fn g_pollable_source_new_full( |
16918 | pollable_stream: *mut gobject::GObject, |
16919 | child_source: *mut glib::GSource, |
16920 | cancellable: *mut GCancellable, |
16921 | ) -> *mut glib::GSource; |
16922 | pub fn g_pollable_stream_read( |
16923 | stream: *mut GInputStream, |
16924 | buffer: *mut u8, |
16925 | count: size_t, |
16926 | blocking: gboolean, |
16927 | cancellable: *mut GCancellable, |
16928 | error: *mut *mut glib::GError, |
16929 | ) -> ssize_t; |
16930 | pub fn g_pollable_stream_write( |
16931 | stream: *mut GOutputStream, |
16932 | buffer: *mut u8, |
16933 | count: size_t, |
16934 | blocking: gboolean, |
16935 | cancellable: *mut GCancellable, |
16936 | error: *mut *mut glib::GError, |
16937 | ) -> ssize_t; |
16938 | pub fn g_pollable_stream_write_all( |
16939 | stream: *mut GOutputStream, |
16940 | buffer: *mut u8, |
16941 | count: size_t, |
16942 | blocking: gboolean, |
16943 | bytes_written: *mut size_t, |
16944 | cancellable: *mut GCancellable, |
16945 | error: *mut *mut glib::GError, |
16946 | ) -> gboolean; |
16947 | pub fn g_resources_enumerate_children( |
16948 | path: *const c_char, |
16949 | lookup_flags: GResourceLookupFlags, |
16950 | error: *mut *mut glib::GError, |
16951 | ) -> *mut *mut c_char; |
16952 | pub fn g_resources_get_info( |
16953 | path: *const c_char, |
16954 | lookup_flags: GResourceLookupFlags, |
16955 | size: *mut size_t, |
16956 | flags: *mut u32, |
16957 | error: *mut *mut glib::GError, |
16958 | ) -> gboolean; |
16959 | pub fn g_resources_lookup_data( |
16960 | path: *const c_char, |
16961 | lookup_flags: GResourceLookupFlags, |
16962 | error: *mut *mut glib::GError, |
16963 | ) -> *mut glib::GBytes; |
16964 | pub fn g_resources_open_stream( |
16965 | path: *const c_char, |
16966 | lookup_flags: GResourceLookupFlags, |
16967 | error: *mut *mut glib::GError, |
16968 | ) -> *mut GInputStream; |
16969 | pub fn g_resources_register(resource: *mut GResource); |
16970 | pub fn g_resources_unregister(resource: *mut GResource); |
16971 | pub fn g_simple_async_report_error_in_idle( |
16972 | object: *mut gobject::GObject, |
16973 | callback: GAsyncReadyCallback, |
16974 | user_data: gpointer, |
16975 | domain: glib::GQuark, |
16976 | code: c_int, |
16977 | format: *const c_char, |
16978 | ... |
16979 | ); |
16980 | pub fn g_simple_async_report_gerror_in_idle( |
16981 | object: *mut gobject::GObject, |
16982 | callback: GAsyncReadyCallback, |
16983 | user_data: gpointer, |
16984 | error: *const glib::GError, |
16985 | ); |
16986 | pub fn g_simple_async_report_take_gerror_in_idle( |
16987 | object: *mut gobject::GObject, |
16988 | callback: GAsyncReadyCallback, |
16989 | user_data: gpointer, |
16990 | error: *mut glib::GError, |
16991 | ); |
16992 | pub fn g_unix_is_mount_path_system_internal(mount_path: *const c_char) -> gboolean; |
16993 | pub fn g_unix_is_system_device_path(device_path: *const c_char) -> gboolean; |
16994 | pub fn g_unix_is_system_fs_type(fs_type: *const c_char) -> gboolean; |
16995 | pub fn g_unix_mount_at(mount_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry; |
16996 | pub fn g_unix_mount_compare( |
16997 | mount1: *mut GUnixMountEntry, |
16998 | mount2: *mut GUnixMountEntry, |
16999 | ) -> c_int; |
17000 | pub fn g_unix_mount_copy(mount_entry: *mut GUnixMountEntry) -> *mut GUnixMountEntry; |
17001 | pub fn g_unix_mount_for(file_path: *const c_char, time_read: *mut u64) -> *mut GUnixMountEntry; |
17002 | pub fn g_unix_mount_free(mount_entry: *mut GUnixMountEntry); |
17003 | pub fn g_unix_mount_get_device_path(mount_entry: *mut GUnixMountEntry) -> *const c_char; |
17004 | pub fn g_unix_mount_get_fs_type(mount_entry: *mut GUnixMountEntry) -> *const c_char; |
17005 | pub fn g_unix_mount_get_mount_path(mount_entry: *mut GUnixMountEntry) -> *const c_char; |
17006 | #[cfg (feature = "v2_58" )] |
17007 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_58" )))] |
17008 | pub fn g_unix_mount_get_options(mount_entry: *mut GUnixMountEntry) -> *const c_char; |
17009 | #[cfg (feature = "v2_60" )] |
17010 | #[cfg_attr (docsrs, doc(cfg(feature = "v2_60" )))] |
17011 | pub fn g_unix_mount_get_root_path(mount_entry: *mut GUnixMountEntry) -> *const c_char; |
17012 | pub fn g_unix_mount_guess_can_eject(mount_entry: *mut GUnixMountEntry) -> gboolean; |
17013 | pub fn g_unix_mount_guess_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon; |
17014 | pub fn g_unix_mount_guess_name(mount_entry: *mut GUnixMountEntry) -> *mut c_char; |
17015 | pub fn g_unix_mount_guess_should_display(mount_entry: *mut GUnixMountEntry) -> gboolean; |
17016 | pub fn g_unix_mount_guess_symbolic_icon(mount_entry: *mut GUnixMountEntry) -> *mut GIcon; |
17017 | pub fn g_unix_mount_is_readonly(mount_entry: *mut GUnixMountEntry) -> gboolean; |
17018 | pub fn g_unix_mount_is_system_internal(mount_entry: *mut GUnixMountEntry) -> gboolean; |
17019 | pub fn g_unix_mount_points_changed_since(time: u64) -> gboolean; |
17020 | pub fn g_unix_mount_points_get(time_read: *mut u64) -> *mut glib::GList; |
17021 | pub fn g_unix_mounts_changed_since(time: u64) -> gboolean; |
17022 | pub fn g_unix_mounts_get(time_read: *mut u64) -> *mut glib::GList; |
17023 | |
17024 | } |
17025 | |