1#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6#![allow(
7 clippy::approx_constant,
8 clippy::type_complexity,
9 clippy::unreadable_literal,
10 clippy::upper_case_acronyms
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14mod manual;
15
16pub use manual::*;
17
18#[allow(unused_imports)]
19use libc::{FILE, intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t};
20#[cfg(unix)]
21#[allow(unused_imports)]
22use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
23#[allow(unused_imports)]
24use std::ffi::{
25 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
26};
27
28pub type gboolean = c_int;
29pub const GFALSE: c_int = 0;
30pub const GTRUE: c_int = 1;
31
32pub type gconstpointer = *const c_void;
33pub type gpointer = *mut c_void;
34
35pub type GDateDay = u8;
37pub type GDateYear = u16;
38pub type GMainContextPusher = c_void;
39pub type GMutexLocker = c_void;
40pub type GQuark = u32;
41pub type GRWLockReaderLocker = c_void;
42pub type GRWLockWriterLocker = c_void;
43pub type GRecMutexLocker = c_void;
44pub type GRefString = c_char;
45pub type GStrv = *mut *mut c_char;
46pub type GTime = i32;
47pub type GTimeSpan = i64;
48
49pub type GBookmarkFileError = c_int;
51pub const G_BOOKMARK_FILE_ERROR_INVALID_URI: GBookmarkFileError = 0;
52pub const G_BOOKMARK_FILE_ERROR_INVALID_VALUE: GBookmarkFileError = 1;
53pub const G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: GBookmarkFileError = 2;
54pub const G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: GBookmarkFileError = 3;
55pub const G_BOOKMARK_FILE_ERROR_READ: GBookmarkFileError = 4;
56pub const G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: GBookmarkFileError = 5;
57pub const G_BOOKMARK_FILE_ERROR_WRITE: GBookmarkFileError = 6;
58pub const G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: GBookmarkFileError = 7;
59
60pub type GChecksumType = c_int;
61pub const G_CHECKSUM_MD5: GChecksumType = 0;
62pub const G_CHECKSUM_SHA1: GChecksumType = 1;
63pub const G_CHECKSUM_SHA256: GChecksumType = 2;
64pub const G_CHECKSUM_SHA512: GChecksumType = 3;
65pub const G_CHECKSUM_SHA384: GChecksumType = 4;
66
67pub type GConvertError = c_int;
68pub const G_CONVERT_ERROR_NO_CONVERSION: GConvertError = 0;
69pub const G_CONVERT_ERROR_ILLEGAL_SEQUENCE: GConvertError = 1;
70pub const G_CONVERT_ERROR_FAILED: GConvertError = 2;
71pub const G_CONVERT_ERROR_PARTIAL_INPUT: GConvertError = 3;
72pub const G_CONVERT_ERROR_BAD_URI: GConvertError = 4;
73pub const G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: GConvertError = 5;
74pub const G_CONVERT_ERROR_NO_MEMORY: GConvertError = 6;
75pub const G_CONVERT_ERROR_EMBEDDED_NUL: GConvertError = 7;
76
77pub type GDateDMY = c_int;
78pub const G_DATE_DAY: GDateDMY = 0;
79pub const G_DATE_MONTH: GDateDMY = 1;
80pub const G_DATE_YEAR: GDateDMY = 2;
81
82pub type GDateMonth = c_int;
83pub const G_DATE_BAD_MONTH: GDateMonth = 0;
84pub const G_DATE_JANUARY: GDateMonth = 1;
85pub const G_DATE_FEBRUARY: GDateMonth = 2;
86pub const G_DATE_MARCH: GDateMonth = 3;
87pub const G_DATE_APRIL: GDateMonth = 4;
88pub const G_DATE_MAY: GDateMonth = 5;
89pub const G_DATE_JUNE: GDateMonth = 6;
90pub const G_DATE_JULY: GDateMonth = 7;
91pub const G_DATE_AUGUST: GDateMonth = 8;
92pub const G_DATE_SEPTEMBER: GDateMonth = 9;
93pub const G_DATE_OCTOBER: GDateMonth = 10;
94pub const G_DATE_NOVEMBER: GDateMonth = 11;
95pub const G_DATE_DECEMBER: GDateMonth = 12;
96
97pub type GDateWeekday = c_int;
98pub const G_DATE_BAD_WEEKDAY: GDateWeekday = 0;
99pub const G_DATE_MONDAY: GDateWeekday = 1;
100pub const G_DATE_TUESDAY: GDateWeekday = 2;
101pub const G_DATE_WEDNESDAY: GDateWeekday = 3;
102pub const G_DATE_THURSDAY: GDateWeekday = 4;
103pub const G_DATE_FRIDAY: GDateWeekday = 5;
104pub const G_DATE_SATURDAY: GDateWeekday = 6;
105pub const G_DATE_SUNDAY: GDateWeekday = 7;
106
107pub type GErrorType = c_int;
108pub const G_ERR_UNKNOWN: GErrorType = 0;
109pub const G_ERR_UNEXP_EOF: GErrorType = 1;
110pub const G_ERR_UNEXP_EOF_IN_STRING: GErrorType = 2;
111pub const G_ERR_UNEXP_EOF_IN_COMMENT: GErrorType = 3;
112pub const G_ERR_NON_DIGIT_IN_CONST: GErrorType = 4;
113pub const G_ERR_DIGIT_RADIX: GErrorType = 5;
114pub const G_ERR_FLOAT_RADIX: GErrorType = 6;
115pub const G_ERR_FLOAT_MALFORMED: GErrorType = 7;
116
117pub type GFileError = c_int;
118pub const G_FILE_ERROR_EXIST: GFileError = 0;
119pub const G_FILE_ERROR_ISDIR: GFileError = 1;
120pub const G_FILE_ERROR_ACCES: GFileError = 2;
121pub const G_FILE_ERROR_NAMETOOLONG: GFileError = 3;
122pub const G_FILE_ERROR_NOENT: GFileError = 4;
123pub const G_FILE_ERROR_NOTDIR: GFileError = 5;
124pub const G_FILE_ERROR_NXIO: GFileError = 6;
125pub const G_FILE_ERROR_NODEV: GFileError = 7;
126pub const G_FILE_ERROR_ROFS: GFileError = 8;
127pub const G_FILE_ERROR_TXTBSY: GFileError = 9;
128pub const G_FILE_ERROR_FAULT: GFileError = 10;
129pub const G_FILE_ERROR_LOOP: GFileError = 11;
130pub const G_FILE_ERROR_NOSPC: GFileError = 12;
131pub const G_FILE_ERROR_NOMEM: GFileError = 13;
132pub const G_FILE_ERROR_MFILE: GFileError = 14;
133pub const G_FILE_ERROR_NFILE: GFileError = 15;
134pub const G_FILE_ERROR_BADF: GFileError = 16;
135pub const G_FILE_ERROR_INVAL: GFileError = 17;
136pub const G_FILE_ERROR_PIPE: GFileError = 18;
137pub const G_FILE_ERROR_AGAIN: GFileError = 19;
138pub const G_FILE_ERROR_INTR: GFileError = 20;
139pub const G_FILE_ERROR_IO: GFileError = 21;
140pub const G_FILE_ERROR_PERM: GFileError = 22;
141pub const G_FILE_ERROR_NOSYS: GFileError = 23;
142pub const G_FILE_ERROR_FAILED: GFileError = 24;
143
144pub type GIOChannelError = c_int;
145pub const G_IO_CHANNEL_ERROR_FBIG: GIOChannelError = 0;
146pub const G_IO_CHANNEL_ERROR_INVAL: GIOChannelError = 1;
147pub const G_IO_CHANNEL_ERROR_IO: GIOChannelError = 2;
148pub const G_IO_CHANNEL_ERROR_ISDIR: GIOChannelError = 3;
149pub const G_IO_CHANNEL_ERROR_NOSPC: GIOChannelError = 4;
150pub const G_IO_CHANNEL_ERROR_NXIO: GIOChannelError = 5;
151pub const G_IO_CHANNEL_ERROR_OVERFLOW: GIOChannelError = 6;
152pub const G_IO_CHANNEL_ERROR_PIPE: GIOChannelError = 7;
153pub const G_IO_CHANNEL_ERROR_FAILED: GIOChannelError = 8;
154
155pub type GIOError = c_int;
156pub const G_IO_ERROR_NONE: GIOError = 0;
157pub const G_IO_ERROR_AGAIN: GIOError = 1;
158pub const G_IO_ERROR_INVAL: GIOError = 2;
159pub const G_IO_ERROR_UNKNOWN: GIOError = 3;
160
161pub type GIOStatus = c_int;
162pub const G_IO_STATUS_ERROR: GIOStatus = 0;
163pub const G_IO_STATUS_NORMAL: GIOStatus = 1;
164pub const G_IO_STATUS_EOF: GIOStatus = 2;
165pub const G_IO_STATUS_AGAIN: GIOStatus = 3;
166
167pub type GKeyFileError = c_int;
168pub const G_KEY_FILE_ERROR_UNKNOWN_ENCODING: GKeyFileError = 0;
169pub const G_KEY_FILE_ERROR_PARSE: GKeyFileError = 1;
170pub const G_KEY_FILE_ERROR_NOT_FOUND: GKeyFileError = 2;
171pub const G_KEY_FILE_ERROR_KEY_NOT_FOUND: GKeyFileError = 3;
172pub const G_KEY_FILE_ERROR_GROUP_NOT_FOUND: GKeyFileError = 4;
173pub const G_KEY_FILE_ERROR_INVALID_VALUE: GKeyFileError = 5;
174
175pub type GLogWriterOutput = c_int;
176pub const G_LOG_WRITER_HANDLED: GLogWriterOutput = 1;
177pub const G_LOG_WRITER_UNHANDLED: GLogWriterOutput = 0;
178
179pub type GMarkupError = c_int;
180pub const G_MARKUP_ERROR_BAD_UTF8: GMarkupError = 0;
181pub const G_MARKUP_ERROR_EMPTY: GMarkupError = 1;
182pub const G_MARKUP_ERROR_PARSE: GMarkupError = 2;
183pub const G_MARKUP_ERROR_UNKNOWN_ELEMENT: GMarkupError = 3;
184pub const G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: GMarkupError = 4;
185pub const G_MARKUP_ERROR_INVALID_CONTENT: GMarkupError = 5;
186pub const G_MARKUP_ERROR_MISSING_ATTRIBUTE: GMarkupError = 6;
187
188pub type GNormalizeMode = c_int;
189pub const G_NORMALIZE_DEFAULT: GNormalizeMode = 0;
190pub const G_NORMALIZE_NFD: GNormalizeMode = 0;
191pub const G_NORMALIZE_DEFAULT_COMPOSE: GNormalizeMode = 1;
192pub const G_NORMALIZE_NFC: GNormalizeMode = 1;
193pub const G_NORMALIZE_ALL: GNormalizeMode = 2;
194pub const G_NORMALIZE_NFKD: GNormalizeMode = 2;
195pub const G_NORMALIZE_ALL_COMPOSE: GNormalizeMode = 3;
196pub const G_NORMALIZE_NFKC: GNormalizeMode = 3;
197
198pub type GNumberParserError = c_int;
199pub const G_NUMBER_PARSER_ERROR_INVALID: GNumberParserError = 0;
200pub const G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: GNumberParserError = 1;
201
202pub type GOnceStatus = c_int;
203pub const G_ONCE_STATUS_NOTCALLED: GOnceStatus = 0;
204pub const G_ONCE_STATUS_PROGRESS: GOnceStatus = 1;
205pub const G_ONCE_STATUS_READY: GOnceStatus = 2;
206
207pub type GOptionArg = c_int;
208pub const G_OPTION_ARG_NONE: GOptionArg = 0;
209pub const G_OPTION_ARG_STRING: GOptionArg = 1;
210pub const G_OPTION_ARG_INT: GOptionArg = 2;
211pub const G_OPTION_ARG_CALLBACK: GOptionArg = 3;
212pub const G_OPTION_ARG_FILENAME: GOptionArg = 4;
213pub const G_OPTION_ARG_STRING_ARRAY: GOptionArg = 5;
214pub const G_OPTION_ARG_FILENAME_ARRAY: GOptionArg = 6;
215pub const G_OPTION_ARG_DOUBLE: GOptionArg = 7;
216pub const G_OPTION_ARG_INT64: GOptionArg = 8;
217
218pub type GOptionError = c_int;
219pub const G_OPTION_ERROR_UNKNOWN_OPTION: GOptionError = 0;
220pub const G_OPTION_ERROR_BAD_VALUE: GOptionError = 1;
221pub const G_OPTION_ERROR_FAILED: GOptionError = 2;
222
223pub type GRegexError = c_int;
224pub const G_REGEX_ERROR_COMPILE: GRegexError = 0;
225pub const G_REGEX_ERROR_OPTIMIZE: GRegexError = 1;
226pub const G_REGEX_ERROR_REPLACE: GRegexError = 2;
227pub const G_REGEX_ERROR_MATCH: GRegexError = 3;
228pub const G_REGEX_ERROR_INTERNAL: GRegexError = 4;
229pub const G_REGEX_ERROR_STRAY_BACKSLASH: GRegexError = 101;
230pub const G_REGEX_ERROR_MISSING_CONTROL_CHAR: GRegexError = 102;
231pub const G_REGEX_ERROR_UNRECOGNIZED_ESCAPE: GRegexError = 103;
232pub const G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER: GRegexError = 104;
233pub const G_REGEX_ERROR_QUANTIFIER_TOO_BIG: GRegexError = 105;
234pub const G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS: GRegexError = 106;
235pub const G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS: GRegexError = 107;
236pub const G_REGEX_ERROR_RANGE_OUT_OF_ORDER: GRegexError = 108;
237pub const G_REGEX_ERROR_NOTHING_TO_REPEAT: GRegexError = 109;
238pub const G_REGEX_ERROR_UNRECOGNIZED_CHARACTER: GRegexError = 112;
239pub const G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS: GRegexError = 113;
240pub const G_REGEX_ERROR_UNMATCHED_PARENTHESIS: GRegexError = 114;
241pub const G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE: GRegexError = 115;
242pub const G_REGEX_ERROR_UNTERMINATED_COMMENT: GRegexError = 118;
243pub const G_REGEX_ERROR_EXPRESSION_TOO_LARGE: GRegexError = 120;
244pub const G_REGEX_ERROR_MEMORY_ERROR: GRegexError = 121;
245pub const G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND: GRegexError = 125;
246pub const G_REGEX_ERROR_MALFORMED_CONDITION: GRegexError = 126;
247pub const G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES: GRegexError = 127;
248pub const G_REGEX_ERROR_ASSERTION_EXPECTED: GRegexError = 128;
249pub const G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME: GRegexError = 130;
250pub const G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: GRegexError = 131;
251pub const G_REGEX_ERROR_HEX_CODE_TOO_LARGE: GRegexError = 134;
252pub const G_REGEX_ERROR_INVALID_CONDITION: GRegexError = 135;
253pub const G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND: GRegexError = 136;
254pub const G_REGEX_ERROR_INFINITE_LOOP: GRegexError = 140;
255pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR: GRegexError = 142;
256pub const G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME: GRegexError = 143;
257pub const G_REGEX_ERROR_MALFORMED_PROPERTY: GRegexError = 146;
258pub const G_REGEX_ERROR_UNKNOWN_PROPERTY: GRegexError = 147;
259pub const G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG: GRegexError = 148;
260pub const G_REGEX_ERROR_TOO_MANY_SUBPATTERNS: GRegexError = 149;
261pub const G_REGEX_ERROR_INVALID_OCTAL_VALUE: GRegexError = 151;
262pub const G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: GRegexError = 154;
263pub const G_REGEX_ERROR_DEFINE_REPETION: GRegexError = 155;
264pub const G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: GRegexError = 156;
265pub const G_REGEX_ERROR_MISSING_BACK_REFERENCE: GRegexError = 157;
266pub const G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE: GRegexError = 158;
267pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: GRegexError = 159;
268pub const G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB: GRegexError = 160;
269pub const G_REGEX_ERROR_NUMBER_TOO_BIG: GRegexError = 161;
270pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME: GRegexError = 162;
271pub const G_REGEX_ERROR_MISSING_DIGIT: GRegexError = 163;
272pub const G_REGEX_ERROR_INVALID_DATA_CHARACTER: GRegexError = 164;
273pub const G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME: GRegexError = 165;
274pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: GRegexError = 166;
275pub const G_REGEX_ERROR_INVALID_CONTROL_CHAR: GRegexError = 168;
276pub const G_REGEX_ERROR_MISSING_NAME: GRegexError = 169;
277pub const G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS: GRegexError = 171;
278pub const G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES: GRegexError = 172;
279pub const G_REGEX_ERROR_NAME_TOO_LONG: GRegexError = 175;
280pub const G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE: GRegexError = 176;
281
282pub type GSeekType = c_int;
283pub const G_SEEK_CUR: GSeekType = 0;
284pub const G_SEEK_SET: GSeekType = 1;
285pub const G_SEEK_END: GSeekType = 2;
286
287pub type GShellError = c_int;
288pub const G_SHELL_ERROR_BAD_QUOTING: GShellError = 0;
289pub const G_SHELL_ERROR_EMPTY_STRING: GShellError = 1;
290pub const G_SHELL_ERROR_FAILED: GShellError = 2;
291
292pub type GSliceConfig = c_int;
293pub const G_SLICE_CONFIG_ALWAYS_MALLOC: GSliceConfig = 1;
294pub const G_SLICE_CONFIG_BYPASS_MAGAZINES: GSliceConfig = 2;
295pub const G_SLICE_CONFIG_WORKING_SET_MSECS: GSliceConfig = 3;
296pub const G_SLICE_CONFIG_COLOR_INCREMENT: GSliceConfig = 4;
297pub const G_SLICE_CONFIG_CHUNK_SIZES: GSliceConfig = 5;
298pub const G_SLICE_CONFIG_CONTENTION_COUNTER: GSliceConfig = 6;
299
300pub type GSpawnError = c_int;
301pub const G_SPAWN_ERROR_FORK: GSpawnError = 0;
302pub const G_SPAWN_ERROR_READ: GSpawnError = 1;
303pub const G_SPAWN_ERROR_CHDIR: GSpawnError = 2;
304pub const G_SPAWN_ERROR_ACCES: GSpawnError = 3;
305pub const G_SPAWN_ERROR_PERM: GSpawnError = 4;
306pub const G_SPAWN_ERROR_TOO_BIG: GSpawnError = 5;
307pub const G_SPAWN_ERROR_2BIG: GSpawnError = 5;
308pub const G_SPAWN_ERROR_NOEXEC: GSpawnError = 6;
309pub const G_SPAWN_ERROR_NAMETOOLONG: GSpawnError = 7;
310pub const G_SPAWN_ERROR_NOENT: GSpawnError = 8;
311pub const G_SPAWN_ERROR_NOMEM: GSpawnError = 9;
312pub const G_SPAWN_ERROR_NOTDIR: GSpawnError = 10;
313pub const G_SPAWN_ERROR_LOOP: GSpawnError = 11;
314pub const G_SPAWN_ERROR_TXTBUSY: GSpawnError = 12;
315pub const G_SPAWN_ERROR_IO: GSpawnError = 13;
316pub const G_SPAWN_ERROR_NFILE: GSpawnError = 14;
317pub const G_SPAWN_ERROR_MFILE: GSpawnError = 15;
318pub const G_SPAWN_ERROR_INVAL: GSpawnError = 16;
319pub const G_SPAWN_ERROR_ISDIR: GSpawnError = 17;
320pub const G_SPAWN_ERROR_LIBBAD: GSpawnError = 18;
321pub const G_SPAWN_ERROR_FAILED: GSpawnError = 19;
322
323pub type GTestFileType = c_int;
324pub const G_TEST_DIST: GTestFileType = 0;
325pub const G_TEST_BUILT: GTestFileType = 1;
326
327pub type GTestLogType = c_int;
328pub const G_TEST_LOG_NONE: GTestLogType = 0;
329pub const G_TEST_LOG_ERROR: GTestLogType = 1;
330pub const G_TEST_LOG_START_BINARY: GTestLogType = 2;
331pub const G_TEST_LOG_LIST_CASE: GTestLogType = 3;
332pub const G_TEST_LOG_SKIP_CASE: GTestLogType = 4;
333pub const G_TEST_LOG_START_CASE: GTestLogType = 5;
334pub const G_TEST_LOG_STOP_CASE: GTestLogType = 6;
335pub const G_TEST_LOG_MIN_RESULT: GTestLogType = 7;
336pub const G_TEST_LOG_MAX_RESULT: GTestLogType = 8;
337pub const G_TEST_LOG_MESSAGE: GTestLogType = 9;
338pub const G_TEST_LOG_START_SUITE: GTestLogType = 10;
339pub const G_TEST_LOG_STOP_SUITE: GTestLogType = 11;
340
341pub type GTestResult = c_int;
342pub const G_TEST_RUN_SUCCESS: GTestResult = 0;
343pub const G_TEST_RUN_SKIPPED: GTestResult = 1;
344pub const G_TEST_RUN_FAILURE: GTestResult = 2;
345pub const G_TEST_RUN_INCOMPLETE: GTestResult = 3;
346
347pub type GThreadError = c_int;
348pub const G_THREAD_ERROR_AGAIN: GThreadError = 0;
349
350pub type GThreadPriority = c_int;
351pub const G_THREAD_PRIORITY_LOW: GThreadPriority = 0;
352pub const G_THREAD_PRIORITY_NORMAL: GThreadPriority = 1;
353pub const G_THREAD_PRIORITY_HIGH: GThreadPriority = 2;
354pub const G_THREAD_PRIORITY_URGENT: GThreadPriority = 3;
355
356pub type GTimeType = c_int;
357pub const G_TIME_TYPE_STANDARD: GTimeType = 0;
358pub const G_TIME_TYPE_DAYLIGHT: GTimeType = 1;
359pub const G_TIME_TYPE_UNIVERSAL: GTimeType = 2;
360
361pub type GTokenType = c_int;
362pub const G_TOKEN_EOF: GTokenType = 0;
363pub const G_TOKEN_LEFT_PAREN: GTokenType = 40;
364pub const G_TOKEN_RIGHT_PAREN: GTokenType = 41;
365pub const G_TOKEN_LEFT_CURLY: GTokenType = 123;
366pub const G_TOKEN_RIGHT_CURLY: GTokenType = 125;
367pub const G_TOKEN_LEFT_BRACE: GTokenType = 91;
368pub const G_TOKEN_RIGHT_BRACE: GTokenType = 93;
369pub const G_TOKEN_EQUAL_SIGN: GTokenType = 61;
370pub const G_TOKEN_COMMA: GTokenType = 44;
371pub const G_TOKEN_NONE: GTokenType = 256;
372pub const G_TOKEN_ERROR: GTokenType = 257;
373pub const G_TOKEN_CHAR: GTokenType = 258;
374pub const G_TOKEN_BINARY: GTokenType = 259;
375pub const G_TOKEN_OCTAL: GTokenType = 260;
376pub const G_TOKEN_INT: GTokenType = 261;
377pub const G_TOKEN_HEX: GTokenType = 262;
378pub const G_TOKEN_FLOAT: GTokenType = 263;
379pub const G_TOKEN_STRING: GTokenType = 264;
380pub const G_TOKEN_SYMBOL: GTokenType = 265;
381pub const G_TOKEN_IDENTIFIER: GTokenType = 266;
382pub const G_TOKEN_IDENTIFIER_NULL: GTokenType = 267;
383pub const G_TOKEN_COMMENT_SINGLE: GTokenType = 268;
384pub const G_TOKEN_COMMENT_MULTI: GTokenType = 269;
385
386pub type GTraverseType = c_int;
387pub const G_IN_ORDER: GTraverseType = 0;
388pub const G_PRE_ORDER: GTraverseType = 1;
389pub const G_POST_ORDER: GTraverseType = 2;
390pub const G_LEVEL_ORDER: GTraverseType = 3;
391
392pub type GUnicodeBreakType = c_int;
393pub const G_UNICODE_BREAK_MANDATORY: GUnicodeBreakType = 0;
394pub const G_UNICODE_BREAK_CARRIAGE_RETURN: GUnicodeBreakType = 1;
395pub const G_UNICODE_BREAK_LINE_FEED: GUnicodeBreakType = 2;
396pub const G_UNICODE_BREAK_COMBINING_MARK: GUnicodeBreakType = 3;
397pub const G_UNICODE_BREAK_SURROGATE: GUnicodeBreakType = 4;
398pub const G_UNICODE_BREAK_ZERO_WIDTH_SPACE: GUnicodeBreakType = 5;
399pub const G_UNICODE_BREAK_INSEPARABLE: GUnicodeBreakType = 6;
400pub const G_UNICODE_BREAK_NON_BREAKING_GLUE: GUnicodeBreakType = 7;
401pub const G_UNICODE_BREAK_CONTINGENT: GUnicodeBreakType = 8;
402pub const G_UNICODE_BREAK_SPACE: GUnicodeBreakType = 9;
403pub const G_UNICODE_BREAK_AFTER: GUnicodeBreakType = 10;
404pub const G_UNICODE_BREAK_BEFORE: GUnicodeBreakType = 11;
405pub const G_UNICODE_BREAK_BEFORE_AND_AFTER: GUnicodeBreakType = 12;
406pub const G_UNICODE_BREAK_HYPHEN: GUnicodeBreakType = 13;
407pub const G_UNICODE_BREAK_NON_STARTER: GUnicodeBreakType = 14;
408pub const G_UNICODE_BREAK_OPEN_PUNCTUATION: GUnicodeBreakType = 15;
409pub const G_UNICODE_BREAK_CLOSE_PUNCTUATION: GUnicodeBreakType = 16;
410pub const G_UNICODE_BREAK_QUOTATION: GUnicodeBreakType = 17;
411pub const G_UNICODE_BREAK_EXCLAMATION: GUnicodeBreakType = 18;
412pub const G_UNICODE_BREAK_IDEOGRAPHIC: GUnicodeBreakType = 19;
413pub const G_UNICODE_BREAK_NUMERIC: GUnicodeBreakType = 20;
414pub const G_UNICODE_BREAK_INFIX_SEPARATOR: GUnicodeBreakType = 21;
415pub const G_UNICODE_BREAK_SYMBOL: GUnicodeBreakType = 22;
416pub const G_UNICODE_BREAK_ALPHABETIC: GUnicodeBreakType = 23;
417pub const G_UNICODE_BREAK_PREFIX: GUnicodeBreakType = 24;
418pub const G_UNICODE_BREAK_POSTFIX: GUnicodeBreakType = 25;
419pub const G_UNICODE_BREAK_COMPLEX_CONTEXT: GUnicodeBreakType = 26;
420pub const G_UNICODE_BREAK_AMBIGUOUS: GUnicodeBreakType = 27;
421pub const G_UNICODE_BREAK_UNKNOWN: GUnicodeBreakType = 28;
422pub const G_UNICODE_BREAK_NEXT_LINE: GUnicodeBreakType = 29;
423pub const G_UNICODE_BREAK_WORD_JOINER: GUnicodeBreakType = 30;
424pub const G_UNICODE_BREAK_HANGUL_L_JAMO: GUnicodeBreakType = 31;
425pub const G_UNICODE_BREAK_HANGUL_V_JAMO: GUnicodeBreakType = 32;
426pub const G_UNICODE_BREAK_HANGUL_T_JAMO: GUnicodeBreakType = 33;
427pub const G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: GUnicodeBreakType = 34;
428pub const G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: GUnicodeBreakType = 35;
429pub const G_UNICODE_BREAK_CLOSE_PARANTHESIS: GUnicodeBreakType = 36;
430pub const G_UNICODE_BREAK_CLOSE_PARENTHESIS: GUnicodeBreakType = 36;
431pub const G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: GUnicodeBreakType = 37;
432pub const G_UNICODE_BREAK_HEBREW_LETTER: GUnicodeBreakType = 38;
433pub const G_UNICODE_BREAK_REGIONAL_INDICATOR: GUnicodeBreakType = 39;
434pub const G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40;
435pub const G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41;
436pub const G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42;
437#[cfg(feature = "v2_80")]
438#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
439pub const G_UNICODE_BREAK_AKSARA: GUnicodeBreakType = 43;
440#[cfg(feature = "v2_80")]
441#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
442pub const G_UNICODE_BREAK_AKSARA_PRE_BASE: GUnicodeBreakType = 44;
443#[cfg(feature = "v2_80")]
444#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
445pub const G_UNICODE_BREAK_AKSARA_START: GUnicodeBreakType = 45;
446#[cfg(feature = "v2_80")]
447#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
448pub const G_UNICODE_BREAK_VIRAMA_FINAL: GUnicodeBreakType = 46;
449#[cfg(feature = "v2_80")]
450#[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
451pub const G_UNICODE_BREAK_VIRAMA: GUnicodeBreakType = 47;
452#[cfg(feature = "v2_88")]
453#[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
454pub const G_UNICODE_BREAK_UNAMBIGUOUS_HYPHEN: GUnicodeBreakType = 48;
455
456pub type GUnicodeScript = c_int;
457pub const G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1;
458pub const G_UNICODE_SCRIPT_COMMON: GUnicodeScript = 0;
459pub const G_UNICODE_SCRIPT_INHERITED: GUnicodeScript = 1;
460pub const G_UNICODE_SCRIPT_ARABIC: GUnicodeScript = 2;
461pub const G_UNICODE_SCRIPT_ARMENIAN: GUnicodeScript = 3;
462pub const G_UNICODE_SCRIPT_BENGALI: GUnicodeScript = 4;
463pub const G_UNICODE_SCRIPT_BOPOMOFO: GUnicodeScript = 5;
464pub const G_UNICODE_SCRIPT_CHEROKEE: GUnicodeScript = 6;
465pub const G_UNICODE_SCRIPT_COPTIC: GUnicodeScript = 7;
466pub const G_UNICODE_SCRIPT_CYRILLIC: GUnicodeScript = 8;
467pub const G_UNICODE_SCRIPT_DESERET: GUnicodeScript = 9;
468pub const G_UNICODE_SCRIPT_DEVANAGARI: GUnicodeScript = 10;
469pub const G_UNICODE_SCRIPT_ETHIOPIC: GUnicodeScript = 11;
470pub const G_UNICODE_SCRIPT_GEORGIAN: GUnicodeScript = 12;
471pub const G_UNICODE_SCRIPT_GOTHIC: GUnicodeScript = 13;
472pub const G_UNICODE_SCRIPT_GREEK: GUnicodeScript = 14;
473pub const G_UNICODE_SCRIPT_GUJARATI: GUnicodeScript = 15;
474pub const G_UNICODE_SCRIPT_GURMUKHI: GUnicodeScript = 16;
475pub const G_UNICODE_SCRIPT_HAN: GUnicodeScript = 17;
476pub const G_UNICODE_SCRIPT_HANGUL: GUnicodeScript = 18;
477pub const G_UNICODE_SCRIPT_HEBREW: GUnicodeScript = 19;
478pub const G_UNICODE_SCRIPT_HIRAGANA: GUnicodeScript = 20;
479pub const G_UNICODE_SCRIPT_KANNADA: GUnicodeScript = 21;
480pub const G_UNICODE_SCRIPT_KATAKANA: GUnicodeScript = 22;
481pub const G_UNICODE_SCRIPT_KHMER: GUnicodeScript = 23;
482pub const G_UNICODE_SCRIPT_LAO: GUnicodeScript = 24;
483pub const G_UNICODE_SCRIPT_LATIN: GUnicodeScript = 25;
484pub const G_UNICODE_SCRIPT_MALAYALAM: GUnicodeScript = 26;
485pub const G_UNICODE_SCRIPT_MONGOLIAN: GUnicodeScript = 27;
486pub const G_UNICODE_SCRIPT_MYANMAR: GUnicodeScript = 28;
487pub const G_UNICODE_SCRIPT_OGHAM: GUnicodeScript = 29;
488pub const G_UNICODE_SCRIPT_OLD_ITALIC: GUnicodeScript = 30;
489pub const G_UNICODE_SCRIPT_ORIYA: GUnicodeScript = 31;
490pub const G_UNICODE_SCRIPT_RUNIC: GUnicodeScript = 32;
491pub const G_UNICODE_SCRIPT_SINHALA: GUnicodeScript = 33;
492pub const G_UNICODE_SCRIPT_SYRIAC: GUnicodeScript = 34;
493pub const G_UNICODE_SCRIPT_TAMIL: GUnicodeScript = 35;
494pub const G_UNICODE_SCRIPT_TELUGU: GUnicodeScript = 36;
495pub const G_UNICODE_SCRIPT_THAANA: GUnicodeScript = 37;
496pub const G_UNICODE_SCRIPT_THAI: GUnicodeScript = 38;
497pub const G_UNICODE_SCRIPT_TIBETAN: GUnicodeScript = 39;
498pub const G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: GUnicodeScript = 40;
499pub const G_UNICODE_SCRIPT_YI: GUnicodeScript = 41;
500pub const G_UNICODE_SCRIPT_TAGALOG: GUnicodeScript = 42;
501pub const G_UNICODE_SCRIPT_HANUNOO: GUnicodeScript = 43;
502pub const G_UNICODE_SCRIPT_BUHID: GUnicodeScript = 44;
503pub const G_UNICODE_SCRIPT_TAGBANWA: GUnicodeScript = 45;
504pub const G_UNICODE_SCRIPT_BRAILLE: GUnicodeScript = 46;
505pub const G_UNICODE_SCRIPT_CYPRIOT: GUnicodeScript = 47;
506pub const G_UNICODE_SCRIPT_LIMBU: GUnicodeScript = 48;
507pub const G_UNICODE_SCRIPT_OSMANYA: GUnicodeScript = 49;
508pub const G_UNICODE_SCRIPT_SHAVIAN: GUnicodeScript = 50;
509pub const G_UNICODE_SCRIPT_LINEAR_B: GUnicodeScript = 51;
510pub const G_UNICODE_SCRIPT_TAI_LE: GUnicodeScript = 52;
511pub const G_UNICODE_SCRIPT_UGARITIC: GUnicodeScript = 53;
512pub const G_UNICODE_SCRIPT_NEW_TAI_LUE: GUnicodeScript = 54;
513pub const G_UNICODE_SCRIPT_BUGINESE: GUnicodeScript = 55;
514pub const G_UNICODE_SCRIPT_GLAGOLITIC: GUnicodeScript = 56;
515pub const G_UNICODE_SCRIPT_TIFINAGH: GUnicodeScript = 57;
516pub const G_UNICODE_SCRIPT_SYLOTI_NAGRI: GUnicodeScript = 58;
517pub const G_UNICODE_SCRIPT_OLD_PERSIAN: GUnicodeScript = 59;
518pub const G_UNICODE_SCRIPT_KHAROSHTHI: GUnicodeScript = 60;
519pub const G_UNICODE_SCRIPT_UNKNOWN: GUnicodeScript = 61;
520pub const G_UNICODE_SCRIPT_BALINESE: GUnicodeScript = 62;
521pub const G_UNICODE_SCRIPT_CUNEIFORM: GUnicodeScript = 63;
522pub const G_UNICODE_SCRIPT_PHOENICIAN: GUnicodeScript = 64;
523pub const G_UNICODE_SCRIPT_PHAGS_PA: GUnicodeScript = 65;
524pub const G_UNICODE_SCRIPT_NKO: GUnicodeScript = 66;
525pub const G_UNICODE_SCRIPT_KAYAH_LI: GUnicodeScript = 67;
526pub const G_UNICODE_SCRIPT_LEPCHA: GUnicodeScript = 68;
527pub const G_UNICODE_SCRIPT_REJANG: GUnicodeScript = 69;
528pub const G_UNICODE_SCRIPT_SUNDANESE: GUnicodeScript = 70;
529pub const G_UNICODE_SCRIPT_SAURASHTRA: GUnicodeScript = 71;
530pub const G_UNICODE_SCRIPT_CHAM: GUnicodeScript = 72;
531pub const G_UNICODE_SCRIPT_OL_CHIKI: GUnicodeScript = 73;
532pub const G_UNICODE_SCRIPT_VAI: GUnicodeScript = 74;
533pub const G_UNICODE_SCRIPT_CARIAN: GUnicodeScript = 75;
534pub const G_UNICODE_SCRIPT_LYCIAN: GUnicodeScript = 76;
535pub const G_UNICODE_SCRIPT_LYDIAN: GUnicodeScript = 77;
536pub const G_UNICODE_SCRIPT_AVESTAN: GUnicodeScript = 78;
537pub const G_UNICODE_SCRIPT_BAMUM: GUnicodeScript = 79;
538pub const G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: GUnicodeScript = 80;
539pub const G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: GUnicodeScript = 81;
540pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: GUnicodeScript = 82;
541pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: GUnicodeScript = 83;
542pub const G_UNICODE_SCRIPT_JAVANESE: GUnicodeScript = 84;
543pub const G_UNICODE_SCRIPT_KAITHI: GUnicodeScript = 85;
544pub const G_UNICODE_SCRIPT_LISU: GUnicodeScript = 86;
545pub const G_UNICODE_SCRIPT_MEETEI_MAYEK: GUnicodeScript = 87;
546pub const G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: GUnicodeScript = 88;
547pub const G_UNICODE_SCRIPT_OLD_TURKIC: GUnicodeScript = 89;
548pub const G_UNICODE_SCRIPT_SAMARITAN: GUnicodeScript = 90;
549pub const G_UNICODE_SCRIPT_TAI_THAM: GUnicodeScript = 91;
550pub const G_UNICODE_SCRIPT_TAI_VIET: GUnicodeScript = 92;
551pub const G_UNICODE_SCRIPT_BATAK: GUnicodeScript = 93;
552pub const G_UNICODE_SCRIPT_BRAHMI: GUnicodeScript = 94;
553pub const G_UNICODE_SCRIPT_MANDAIC: GUnicodeScript = 95;
554pub const G_UNICODE_SCRIPT_CHAKMA: GUnicodeScript = 96;
555pub const G_UNICODE_SCRIPT_MEROITIC_CURSIVE: GUnicodeScript = 97;
556pub const G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: GUnicodeScript = 98;
557pub const G_UNICODE_SCRIPT_MIAO: GUnicodeScript = 99;
558pub const G_UNICODE_SCRIPT_SHARADA: GUnicodeScript = 100;
559pub const G_UNICODE_SCRIPT_SORA_SOMPENG: GUnicodeScript = 101;
560pub const G_UNICODE_SCRIPT_TAKRI: GUnicodeScript = 102;
561pub const G_UNICODE_SCRIPT_BASSA_VAH: GUnicodeScript = 103;
562pub const G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: GUnicodeScript = 104;
563pub const G_UNICODE_SCRIPT_DUPLOYAN: GUnicodeScript = 105;
564pub const G_UNICODE_SCRIPT_ELBASAN: GUnicodeScript = 106;
565pub const G_UNICODE_SCRIPT_GRANTHA: GUnicodeScript = 107;
566pub const G_UNICODE_SCRIPT_KHOJKI: GUnicodeScript = 108;
567pub const G_UNICODE_SCRIPT_KHUDAWADI: GUnicodeScript = 109;
568pub const G_UNICODE_SCRIPT_LINEAR_A: GUnicodeScript = 110;
569pub const G_UNICODE_SCRIPT_MAHAJANI: GUnicodeScript = 111;
570pub const G_UNICODE_SCRIPT_MANICHAEAN: GUnicodeScript = 112;
571pub const G_UNICODE_SCRIPT_MENDE_KIKAKUI: GUnicodeScript = 113;
572pub const G_UNICODE_SCRIPT_MODI: GUnicodeScript = 114;
573pub const G_UNICODE_SCRIPT_MRO: GUnicodeScript = 115;
574pub const G_UNICODE_SCRIPT_NABATAEAN: GUnicodeScript = 116;
575pub const G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: GUnicodeScript = 117;
576pub const G_UNICODE_SCRIPT_OLD_PERMIC: GUnicodeScript = 118;
577pub const G_UNICODE_SCRIPT_PAHAWH_HMONG: GUnicodeScript = 119;
578pub const G_UNICODE_SCRIPT_PALMYRENE: GUnicodeScript = 120;
579pub const G_UNICODE_SCRIPT_PAU_CIN_HAU: GUnicodeScript = 121;
580pub const G_UNICODE_SCRIPT_PSALTER_PAHLAVI: GUnicodeScript = 122;
581pub const G_UNICODE_SCRIPT_SIDDHAM: GUnicodeScript = 123;
582pub const G_UNICODE_SCRIPT_TIRHUTA: GUnicodeScript = 124;
583pub const G_UNICODE_SCRIPT_WARANG_CITI: GUnicodeScript = 125;
584pub const G_UNICODE_SCRIPT_AHOM: GUnicodeScript = 126;
585pub const G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: GUnicodeScript = 127;
586pub const G_UNICODE_SCRIPT_HATRAN: GUnicodeScript = 128;
587pub const G_UNICODE_SCRIPT_MULTANI: GUnicodeScript = 129;
588pub const G_UNICODE_SCRIPT_OLD_HUNGARIAN: GUnicodeScript = 130;
589pub const G_UNICODE_SCRIPT_SIGNWRITING: GUnicodeScript = 131;
590pub const G_UNICODE_SCRIPT_ADLAM: GUnicodeScript = 132;
591pub const G_UNICODE_SCRIPT_BHAIKSUKI: GUnicodeScript = 133;
592pub const G_UNICODE_SCRIPT_MARCHEN: GUnicodeScript = 134;
593pub const G_UNICODE_SCRIPT_NEWA: GUnicodeScript = 135;
594pub const G_UNICODE_SCRIPT_OSAGE: GUnicodeScript = 136;
595pub const G_UNICODE_SCRIPT_TANGUT: GUnicodeScript = 137;
596pub const G_UNICODE_SCRIPT_MASARAM_GONDI: GUnicodeScript = 138;
597pub const G_UNICODE_SCRIPT_NUSHU: GUnicodeScript = 139;
598pub const G_UNICODE_SCRIPT_SOYOMBO: GUnicodeScript = 140;
599pub const G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: GUnicodeScript = 141;
600pub const G_UNICODE_SCRIPT_DOGRA: GUnicodeScript = 142;
601pub const G_UNICODE_SCRIPT_GUNJALA_GONDI: GUnicodeScript = 143;
602pub const G_UNICODE_SCRIPT_HANIFI_ROHINGYA: GUnicodeScript = 144;
603pub const G_UNICODE_SCRIPT_MAKASAR: GUnicodeScript = 145;
604pub const G_UNICODE_SCRIPT_MEDEFAIDRIN: GUnicodeScript = 146;
605pub const G_UNICODE_SCRIPT_OLD_SOGDIAN: GUnicodeScript = 147;
606pub const G_UNICODE_SCRIPT_SOGDIAN: GUnicodeScript = 148;
607pub const G_UNICODE_SCRIPT_ELYMAIC: GUnicodeScript = 149;
608pub const G_UNICODE_SCRIPT_NANDINAGARI: GUnicodeScript = 150;
609pub const G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: GUnicodeScript = 151;
610pub const G_UNICODE_SCRIPT_WANCHO: GUnicodeScript = 152;
611pub const G_UNICODE_SCRIPT_CHORASMIAN: GUnicodeScript = 153;
612pub const G_UNICODE_SCRIPT_DIVES_AKURU: GUnicodeScript = 154;
613pub const G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT: GUnicodeScript = 155;
614pub const G_UNICODE_SCRIPT_YEZIDI: GUnicodeScript = 156;
615pub const G_UNICODE_SCRIPT_CYPRO_MINOAN: GUnicodeScript = 157;
616pub const G_UNICODE_SCRIPT_OLD_UYGHUR: GUnicodeScript = 158;
617pub const G_UNICODE_SCRIPT_TANGSA: GUnicodeScript = 159;
618pub const G_UNICODE_SCRIPT_TOTO: GUnicodeScript = 160;
619pub const G_UNICODE_SCRIPT_VITHKUQI: GUnicodeScript = 161;
620pub const G_UNICODE_SCRIPT_MATH: GUnicodeScript = 162;
621pub const G_UNICODE_SCRIPT_KAWI: GUnicodeScript = 163;
622pub const G_UNICODE_SCRIPT_NAG_MUNDARI: GUnicodeScript = 164;
623#[cfg(feature = "v2_84")]
624#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
625pub const G_UNICODE_SCRIPT_TODHRI: GUnicodeScript = 165;
626#[cfg(feature = "v2_84")]
627#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
628pub const G_UNICODE_SCRIPT_GARAY: GUnicodeScript = 166;
629#[cfg(feature = "v2_84")]
630#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
631pub const G_UNICODE_SCRIPT_TULU_TIGALARI: GUnicodeScript = 167;
632#[cfg(feature = "v2_84")]
633#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
634pub const G_UNICODE_SCRIPT_SUNUWAR: GUnicodeScript = 168;
635#[cfg(feature = "v2_84")]
636#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
637pub const G_UNICODE_SCRIPT_GURUNG_KHEMA: GUnicodeScript = 169;
638#[cfg(feature = "v2_84")]
639#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
640pub const G_UNICODE_SCRIPT_KIRAT_RAI: GUnicodeScript = 170;
641#[cfg(feature = "v2_84")]
642#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
643pub const G_UNICODE_SCRIPT_OL_ONAL: GUnicodeScript = 171;
644#[cfg(feature = "v2_88")]
645#[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
646pub const G_UNICODE_SCRIPT_SIDETIC: GUnicodeScript = 172;
647#[cfg(feature = "v2_88")]
648#[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
649pub const G_UNICODE_SCRIPT_TOLONG_SIKI: GUnicodeScript = 173;
650#[cfg(feature = "v2_88")]
651#[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
652pub const G_UNICODE_SCRIPT_TAI_YO: GUnicodeScript = 174;
653#[cfg(feature = "v2_88")]
654#[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
655pub const G_UNICODE_SCRIPT_BERIA_ERFE: GUnicodeScript = 175;
656
657pub type GUnicodeType = c_int;
658pub const G_UNICODE_CONTROL: GUnicodeType = 0;
659pub const G_UNICODE_FORMAT: GUnicodeType = 1;
660pub const G_UNICODE_UNASSIGNED: GUnicodeType = 2;
661pub const G_UNICODE_PRIVATE_USE: GUnicodeType = 3;
662pub const G_UNICODE_SURROGATE: GUnicodeType = 4;
663pub const G_UNICODE_LOWERCASE_LETTER: GUnicodeType = 5;
664pub const G_UNICODE_MODIFIER_LETTER: GUnicodeType = 6;
665pub const G_UNICODE_OTHER_LETTER: GUnicodeType = 7;
666pub const G_UNICODE_TITLECASE_LETTER: GUnicodeType = 8;
667pub const G_UNICODE_UPPERCASE_LETTER: GUnicodeType = 9;
668pub const G_UNICODE_SPACING_MARK: GUnicodeType = 10;
669pub const G_UNICODE_ENCLOSING_MARK: GUnicodeType = 11;
670pub const G_UNICODE_NON_SPACING_MARK: GUnicodeType = 12;
671pub const G_UNICODE_DECIMAL_NUMBER: GUnicodeType = 13;
672pub const G_UNICODE_LETTER_NUMBER: GUnicodeType = 14;
673pub const G_UNICODE_OTHER_NUMBER: GUnicodeType = 15;
674pub const G_UNICODE_CONNECT_PUNCTUATION: GUnicodeType = 16;
675pub const G_UNICODE_DASH_PUNCTUATION: GUnicodeType = 17;
676pub const G_UNICODE_CLOSE_PUNCTUATION: GUnicodeType = 18;
677pub const G_UNICODE_FINAL_PUNCTUATION: GUnicodeType = 19;
678pub const G_UNICODE_INITIAL_PUNCTUATION: GUnicodeType = 20;
679pub const G_UNICODE_OTHER_PUNCTUATION: GUnicodeType = 21;
680pub const G_UNICODE_OPEN_PUNCTUATION: GUnicodeType = 22;
681pub const G_UNICODE_CURRENCY_SYMBOL: GUnicodeType = 23;
682pub const G_UNICODE_MODIFIER_SYMBOL: GUnicodeType = 24;
683pub const G_UNICODE_MATH_SYMBOL: GUnicodeType = 25;
684pub const G_UNICODE_OTHER_SYMBOL: GUnicodeType = 26;
685pub const G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27;
686pub const G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28;
687pub const G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29;
688
689pub type GUriError = c_int;
690pub const G_URI_ERROR_FAILED: GUriError = 0;
691pub const G_URI_ERROR_BAD_SCHEME: GUriError = 1;
692pub const G_URI_ERROR_BAD_USER: GUriError = 2;
693pub const G_URI_ERROR_BAD_PASSWORD: GUriError = 3;
694pub const G_URI_ERROR_BAD_AUTH_PARAMS: GUriError = 4;
695pub const G_URI_ERROR_BAD_HOST: GUriError = 5;
696pub const G_URI_ERROR_BAD_PORT: GUriError = 6;
697pub const G_URI_ERROR_BAD_PATH: GUriError = 7;
698pub const G_URI_ERROR_BAD_QUERY: GUriError = 8;
699pub const G_URI_ERROR_BAD_FRAGMENT: GUriError = 9;
700
701pub type GUserDirectory = c_int;
702pub const G_USER_DIRECTORY_DESKTOP: GUserDirectory = 0;
703pub const G_USER_DIRECTORY_DOCUMENTS: GUserDirectory = 1;
704pub const G_USER_DIRECTORY_DOWNLOAD: GUserDirectory = 2;
705pub const G_USER_DIRECTORY_MUSIC: GUserDirectory = 3;
706pub const G_USER_DIRECTORY_PICTURES: GUserDirectory = 4;
707pub const G_USER_DIRECTORY_PUBLIC_SHARE: GUserDirectory = 5;
708pub const G_USER_DIRECTORY_TEMPLATES: GUserDirectory = 6;
709pub const G_USER_DIRECTORY_VIDEOS: GUserDirectory = 7;
710#[cfg(feature = "v2_90")]
711#[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
712pub const G_USER_DIRECTORY_PROJECTS: GUserDirectory = 8;
713pub const G_USER_N_DIRECTORIES: GUserDirectory = 9;
714
715pub type GVariantClass = c_int;
716pub const G_VARIANT_CLASS_BOOLEAN: GVariantClass = 98;
717pub const G_VARIANT_CLASS_BYTE: GVariantClass = 121;
718pub const G_VARIANT_CLASS_INT16: GVariantClass = 110;
719pub const G_VARIANT_CLASS_UINT16: GVariantClass = 113;
720pub const G_VARIANT_CLASS_INT32: GVariantClass = 105;
721pub const G_VARIANT_CLASS_UINT32: GVariantClass = 117;
722pub const G_VARIANT_CLASS_INT64: GVariantClass = 120;
723pub const G_VARIANT_CLASS_UINT64: GVariantClass = 116;
724pub const G_VARIANT_CLASS_HANDLE: GVariantClass = 104;
725pub const G_VARIANT_CLASS_DOUBLE: GVariantClass = 100;
726pub const G_VARIANT_CLASS_STRING: GVariantClass = 115;
727pub const G_VARIANT_CLASS_OBJECT_PATH: GVariantClass = 111;
728pub const G_VARIANT_CLASS_SIGNATURE: GVariantClass = 103;
729pub const G_VARIANT_CLASS_VARIANT: GVariantClass = 118;
730pub const G_VARIANT_CLASS_MAYBE: GVariantClass = 109;
731pub const G_VARIANT_CLASS_ARRAY: GVariantClass = 97;
732pub const G_VARIANT_CLASS_TUPLE: GVariantClass = 40;
733pub const G_VARIANT_CLASS_DICT_ENTRY: GVariantClass = 123;
734
735pub type GVariantParseError = c_int;
736pub const G_VARIANT_PARSE_ERROR_FAILED: GVariantParseError = 0;
737pub const G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED: GVariantParseError = 1;
738pub const G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE: GVariantParseError = 2;
739pub const G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED: GVariantParseError = 3;
740pub const G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END: GVariantParseError = 4;
741pub const G_VARIANT_PARSE_ERROR_INVALID_CHARACTER: GVariantParseError = 5;
742pub const G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING: GVariantParseError = 6;
743pub const G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH: GVariantParseError = 7;
744pub const G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE: GVariantParseError = 8;
745pub const G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING: GVariantParseError = 9;
746pub const G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE: GVariantParseError = 10;
747pub const G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE: GVariantParseError = 11;
748pub const G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG: GVariantParseError = 12;
749pub const G_VARIANT_PARSE_ERROR_TYPE_ERROR: GVariantParseError = 13;
750pub const G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN: GVariantParseError = 14;
751pub const G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD: GVariantParseError = 15;
752pub const G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT: GVariantParseError = 16;
753pub const G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17;
754pub const G_VARIANT_PARSE_ERROR_RECURSION: GVariantParseError = 18;
755
756pub const G_ALLOCATOR_LIST: c_int = 1;
758pub const G_ALLOCATOR_NODE: c_int = 3;
759pub const G_ALLOCATOR_SLIST: c_int = 2;
760pub const G_ALLOC_AND_FREE: c_int = 2;
761pub const G_ALLOC_ONLY: c_int = 1;
762pub const G_ASCII_DTOSTR_BUF_SIZE: c_int = 39;
763pub const G_ATOMIC_REF_COUNT_INIT: c_int = 1;
764pub const G_BIG_ENDIAN: c_int = 4321;
765pub const G_CSET_A_2_Z: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0";
766pub const G_CSET_DIGITS: &[u8] = b"0123456789\0";
767pub const G_CSET_a_2_z: &[u8] = b"abcdefghijklmnopqrstuvwxyz\0";
768pub const G_DATALIST_FLAGS_MASK: c_int = 3;
769pub const G_DATE_BAD_DAY: c_int = 0;
770pub const G_DATE_BAD_JULIAN: c_int = 0;
771pub const G_DATE_BAD_YEAR: c_int = 0;
772pub const G_E: c_double = 2.718282;
773pub const G_HOOK_FLAG_USER_SHIFT: c_int = 4;
774pub const G_IEEE754_DOUBLE_BIAS: c_int = 1023;
775pub const G_IEEE754_FLOAT_BIAS: c_int = 127;
776pub const G_KEY_FILE_DESKTOP_GROUP: &[u8] = b"Desktop Entry\0";
777pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: &[u8] = b"Actions\0";
778pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: &[u8] = b"Categories\0";
779pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: &[u8] = b"Comment\0";
780pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: &[u8] = b"DBusActivatable\0";
781pub const G_KEY_FILE_DESKTOP_KEY_EXEC: &[u8] = b"Exec\0";
782pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: &[u8] = b"GenericName\0";
783pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: &[u8] = b"Hidden\0";
784pub const G_KEY_FILE_DESKTOP_KEY_ICON: &[u8] = b"Icon\0";
785pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: &[u8] = b"MimeType\0";
786pub const G_KEY_FILE_DESKTOP_KEY_NAME: &[u8] = b"Name\0";
787pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: &[u8] = b"NotShowIn\0";
788pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: &[u8] = b"NoDisplay\0";
789pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: &[u8] = b"OnlyShowIn\0";
790pub const G_KEY_FILE_DESKTOP_KEY_PATH: &[u8] = b"Path\0";
791pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: &[u8] = b"StartupNotify\0";
792pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: &[u8] = b"StartupWMClass\0";
793pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: &[u8] = b"Terminal\0";
794pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: &[u8] = b"TryExec\0";
795pub const G_KEY_FILE_DESKTOP_KEY_TYPE: &[u8] = b"Type\0";
796pub const G_KEY_FILE_DESKTOP_KEY_URL: &[u8] = b"URL\0";
797pub const G_KEY_FILE_DESKTOP_KEY_VERSION: &[u8] = b"Version\0";
798pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: &[u8] = b"Application\0";
799pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: &[u8] = b"Directory\0";
800pub const G_KEY_FILE_DESKTOP_TYPE_LINK: &[u8] = b"Link\0";
801pub const G_LITTLE_ENDIAN: c_int = 1234;
802pub const G_LN10: c_double = 2.302585;
803pub const G_LN2: c_double = 0.693147;
804pub const G_LOG_2_BASE_10: c_double = 0.301030;
805pub const G_LOG_FATAL_MASK: c_int = 5;
806pub const G_LOG_LEVEL_USER_SHIFT: c_int = 8;
807pub const G_NSEC_PER_SEC: u64 = 1000000000;
808pub const G_OPTION_REMAINING: &[u8] = b"\0";
809pub const G_PDP_ENDIAN: c_int = 3412;
810pub const G_PI: c_double = 3.141593;
811pub const G_PI_2: c_double = 1.570796;
812pub const G_PI_4: c_double = 0.785398;
813pub const G_PRIORITY_DEFAULT: c_int = 0;
814pub const G_PRIORITY_DEFAULT_IDLE: c_int = 200;
815pub const G_PRIORITY_HIGH: c_int = -100;
816pub const G_PRIORITY_HIGH_IDLE: c_int = 100;
817pub const G_PRIORITY_LOW: c_int = 300;
818pub const G_REF_COUNT_INIT: c_int = -1;
819pub const G_SOURCE_CONTINUE: gboolean = GTRUE;
820pub const G_SOURCE_REMOVE: gboolean = GFALSE;
821pub const G_SQRT2: c_double = 1.414214;
822pub const G_STR_DELIMITERS: &[u8] = b"_-|> <.\0";
823pub const GLIB_SYSDEF_AF_INET: c_int = 2;
824pub const GLIB_SYSDEF_AF_INET6: c_int = 10;
825pub const GLIB_SYSDEF_AF_UNIX: c_int = 1;
826pub const GLIB_SYSDEF_MSG_DONTROUTE: c_int = 4;
827pub const GLIB_SYSDEF_MSG_OOB: c_int = 1;
828pub const GLIB_SYSDEF_MSG_PEEK: c_int = 2;
829pub const G_TEST_OPTION_ISOLATE_DIRS: &[u8] = b"isolate_dirs\0";
830pub const G_TEST_OPTION_NONFATAL_ASSERTIONS: &[u8] = b"nonfatal-assertions\0";
831pub const G_TEST_OPTION_NO_PRGNAME: &[u8] = b"no_g_set_prgname\0";
832pub const G_TIME_SPAN_DAY: i64 = 86400000000;
833pub const G_TIME_SPAN_HOUR: i64 = 3600000000;
834pub const G_TIME_SPAN_MILLISECOND: i64 = 1000;
835pub const G_TIME_SPAN_MINUTE: i64 = 60000000;
836pub const G_TIME_SPAN_SECOND: i64 = 1000000;
837pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: c_int = 18;
838pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: &[u8] = b":/?#[]@\0";
839pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: &[u8] = b"!$&'()*+,;=\0";
840pub const G_USEC_PER_SEC: c_int = 1000000;
841pub const G_WIN32_MSG_HANDLE: c_int = 19981206;
842
843pub type GAsciiType = c_uint;
845pub const G_ASCII_ALNUM: GAsciiType = 1;
846pub const G_ASCII_ALPHA: GAsciiType = 2;
847pub const G_ASCII_CNTRL: GAsciiType = 4;
848pub const G_ASCII_DIGIT: GAsciiType = 8;
849pub const G_ASCII_GRAPH: GAsciiType = 16;
850pub const G_ASCII_LOWER: GAsciiType = 32;
851pub const G_ASCII_PRINT: GAsciiType = 64;
852pub const G_ASCII_PUNCT: GAsciiType = 128;
853pub const G_ASCII_SPACE: GAsciiType = 256;
854pub const G_ASCII_UPPER: GAsciiType = 512;
855pub const G_ASCII_XDIGIT: GAsciiType = 1024;
856
857pub type GFileSetContentsFlags = c_uint;
858pub const G_FILE_SET_CONTENTS_NONE: GFileSetContentsFlags = 0;
859pub const G_FILE_SET_CONTENTS_CONSISTENT: GFileSetContentsFlags = 1;
860pub const G_FILE_SET_CONTENTS_DURABLE: GFileSetContentsFlags = 2;
861pub const G_FILE_SET_CONTENTS_ONLY_EXISTING: GFileSetContentsFlags = 4;
862
863pub type GFileTest = c_uint;
864pub const G_FILE_TEST_IS_REGULAR: GFileTest = 1;
865pub const G_FILE_TEST_IS_SYMLINK: GFileTest = 2;
866pub const G_FILE_TEST_IS_DIR: GFileTest = 4;
867pub const G_FILE_TEST_IS_EXECUTABLE: GFileTest = 8;
868pub const G_FILE_TEST_EXISTS: GFileTest = 16;
869
870pub type GFormatSizeFlags = c_uint;
871pub const G_FORMAT_SIZE_DEFAULT: GFormatSizeFlags = 0;
872pub const G_FORMAT_SIZE_LONG_FORMAT: GFormatSizeFlags = 1;
873pub const G_FORMAT_SIZE_IEC_UNITS: GFormatSizeFlags = 2;
874pub const G_FORMAT_SIZE_BITS: GFormatSizeFlags = 4;
875#[cfg(feature = "v2_74")]
876#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
877pub const G_FORMAT_SIZE_ONLY_VALUE: GFormatSizeFlags = 8;
878#[cfg(feature = "v2_74")]
879#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
880pub const G_FORMAT_SIZE_ONLY_UNIT: GFormatSizeFlags = 16;
881
882pub type GHookFlagMask = c_uint;
883pub const G_HOOK_FLAG_ACTIVE: GHookFlagMask = 1;
884pub const G_HOOK_FLAG_IN_CALL: GHookFlagMask = 2;
885pub const G_HOOK_FLAG_RESERVED1: GHookFlagMask = 4;
886
887pub type GIOCondition = c_uint;
888pub const G_IO_IN: GIOCondition = 1;
889pub const G_IO_OUT: GIOCondition = 4;
890pub const G_IO_PRI: GIOCondition = 2;
891pub const G_IO_ERR: GIOCondition = 8;
892pub const G_IO_HUP: GIOCondition = 16;
893pub const G_IO_NVAL: GIOCondition = 32;
894
895pub type GIOFlags = c_uint;
896#[cfg(feature = "v2_74")]
897#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
898pub const G_IO_FLAG_NONE: GIOFlags = 0;
899pub const G_IO_FLAG_APPEND: GIOFlags = 1;
900pub const G_IO_FLAG_NONBLOCK: GIOFlags = 2;
901pub const G_IO_FLAG_IS_READABLE: GIOFlags = 4;
902pub const G_IO_FLAG_IS_WRITABLE: GIOFlags = 8;
903pub const G_IO_FLAG_IS_WRITEABLE: GIOFlags = 8;
904pub const G_IO_FLAG_IS_SEEKABLE: GIOFlags = 16;
905pub const G_IO_FLAG_MASK: GIOFlags = 31;
906pub const G_IO_FLAG_GET_MASK: GIOFlags = 31;
907pub const G_IO_FLAG_SET_MASK: GIOFlags = 3;
908
909pub type GKeyFileFlags = c_uint;
910pub const G_KEY_FILE_NONE: GKeyFileFlags = 0;
911pub const G_KEY_FILE_KEEP_COMMENTS: GKeyFileFlags = 1;
912pub const G_KEY_FILE_KEEP_TRANSLATIONS: GKeyFileFlags = 2;
913
914pub type GLogLevelFlags = c_uint;
915pub const G_LOG_FLAG_RECURSION: GLogLevelFlags = 1;
916pub const G_LOG_FLAG_FATAL: GLogLevelFlags = 2;
917pub const G_LOG_LEVEL_ERROR: GLogLevelFlags = 4;
918pub const G_LOG_LEVEL_CRITICAL: GLogLevelFlags = 8;
919pub const G_LOG_LEVEL_WARNING: GLogLevelFlags = 16;
920pub const G_LOG_LEVEL_MESSAGE: GLogLevelFlags = 32;
921pub const G_LOG_LEVEL_INFO: GLogLevelFlags = 64;
922pub const G_LOG_LEVEL_DEBUG: GLogLevelFlags = 128;
923pub const G_LOG_LEVEL_MASK: GLogLevelFlags = 4294967292;
924
925pub type GMainContextFlags = c_uint;
926pub const G_MAIN_CONTEXT_FLAGS_NONE: GMainContextFlags = 0;
927pub const G_MAIN_CONTEXT_FLAGS_OWNERLESS_POLLING: GMainContextFlags = 1;
928
929pub type GMarkupCollectType = c_uint;
930pub const G_MARKUP_COLLECT_INVALID: GMarkupCollectType = 0;
931pub const G_MARKUP_COLLECT_STRING: GMarkupCollectType = 1;
932pub const G_MARKUP_COLLECT_STRDUP: GMarkupCollectType = 2;
933pub const G_MARKUP_COLLECT_BOOLEAN: GMarkupCollectType = 3;
934pub const G_MARKUP_COLLECT_TRISTATE: GMarkupCollectType = 4;
935pub const G_MARKUP_COLLECT_OPTIONAL: GMarkupCollectType = 65536;
936
937pub type GMarkupParseFlags = c_uint;
938#[cfg(feature = "v2_74")]
939#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
940pub const G_MARKUP_DEFAULT_FLAGS: GMarkupParseFlags = 0;
941pub const G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: GMarkupParseFlags = 1;
942pub const G_MARKUP_TREAT_CDATA_AS_TEXT: GMarkupParseFlags = 2;
943pub const G_MARKUP_PREFIX_ERROR_POSITION: GMarkupParseFlags = 4;
944pub const G_MARKUP_IGNORE_QUALIFIED: GMarkupParseFlags = 8;
945
946pub type GOptionFlags = c_uint;
947pub const G_OPTION_FLAG_NONE: GOptionFlags = 0;
948pub const G_OPTION_FLAG_HIDDEN: GOptionFlags = 1;
949pub const G_OPTION_FLAG_IN_MAIN: GOptionFlags = 2;
950pub const G_OPTION_FLAG_REVERSE: GOptionFlags = 4;
951pub const G_OPTION_FLAG_NO_ARG: GOptionFlags = 8;
952pub const G_OPTION_FLAG_FILENAME: GOptionFlags = 16;
953pub const G_OPTION_FLAG_OPTIONAL_ARG: GOptionFlags = 32;
954pub const G_OPTION_FLAG_NOALIAS: GOptionFlags = 64;
955#[cfg(feature = "v2_84")]
956#[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
957pub const G_OPTION_FLAG_DEPRECATED: GOptionFlags = 128;
958
959pub type GRegexCompileFlags = c_uint;
960pub const G_REGEX_DEFAULT: GRegexCompileFlags = 0;
961pub const G_REGEX_CASELESS: GRegexCompileFlags = 1;
962pub const G_REGEX_MULTILINE: GRegexCompileFlags = 2;
963pub const G_REGEX_DOTALL: GRegexCompileFlags = 4;
964pub const G_REGEX_EXTENDED: GRegexCompileFlags = 8;
965pub const G_REGEX_ANCHORED: GRegexCompileFlags = 16;
966pub const G_REGEX_DOLLAR_ENDONLY: GRegexCompileFlags = 32;
967pub const G_REGEX_UNGREEDY: GRegexCompileFlags = 512;
968pub const G_REGEX_RAW: GRegexCompileFlags = 2048;
969pub const G_REGEX_NO_AUTO_CAPTURE: GRegexCompileFlags = 4096;
970pub const G_REGEX_OPTIMIZE: GRegexCompileFlags = 8192;
971pub const G_REGEX_FIRSTLINE: GRegexCompileFlags = 262144;
972pub const G_REGEX_DUPNAMES: GRegexCompileFlags = 524288;
973pub const G_REGEX_NEWLINE_CR: GRegexCompileFlags = 1048576;
974pub const G_REGEX_NEWLINE_LF: GRegexCompileFlags = 2097152;
975pub const G_REGEX_NEWLINE_RESERVED1: GRegexCompileFlags = 4194304;
976
977pub type GRegexMatchFlags = c_uint;
978pub const G_REGEX_MATCH_DEFAULT: GRegexMatchFlags = 0;
979pub const G_REGEX_MATCH_ANCHORED: GRegexMatchFlags = 16;
980pub const G_REGEX_MATCH_NOTBOL: GRegexMatchFlags = 128;
981pub const G_REGEX_MATCH_NOTEOL: GRegexMatchFlags = 256;
982pub const G_REGEX_MATCH_NOTEMPTY: GRegexMatchFlags = 1024;
983pub const G_REGEX_MATCH_PARTIAL: GRegexMatchFlags = 32768;
984pub const G_REGEX_MATCH_NEWLINE_CR: GRegexMatchFlags = 1048576;
985pub const G_REGEX_MATCH_NEWLINE_LF: GRegexMatchFlags = 2097152;
986pub const G_REGEX_MATCH_NEWLINE_CRLF: GRegexMatchFlags = 3145728;
987pub const G_REGEX_MATCH_NEWLINE_ANY: GRegexMatchFlags = 4194304;
988pub const G_REGEX_MATCH_NEWLINE_ANYCRLF: GRegexMatchFlags = 5242880;
989pub const G_REGEX_MATCH_BSR_ANYCRLF: GRegexMatchFlags = 8388608;
990pub const G_REGEX_MATCH_BSR_ANY: GRegexMatchFlags = 16777216;
991pub const G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags = 32768;
992pub const G_REGEX_MATCH_PARTIAL_HARD: GRegexMatchFlags = 134217728;
993pub const G_REGEX_MATCH_NOTEMPTY_ATSTART: GRegexMatchFlags = 268435456;
994
995pub type GSpawnFlags = c_uint;
996pub const G_SPAWN_DEFAULT: GSpawnFlags = 0;
997pub const G_SPAWN_LEAVE_DESCRIPTORS_OPEN: GSpawnFlags = 1;
998pub const G_SPAWN_DO_NOT_REAP_CHILD: GSpawnFlags = 2;
999pub const G_SPAWN_SEARCH_PATH: GSpawnFlags = 4;
1000pub const G_SPAWN_STDOUT_TO_DEV_NULL: GSpawnFlags = 8;
1001pub const G_SPAWN_STDERR_TO_DEV_NULL: GSpawnFlags = 16;
1002pub const G_SPAWN_CHILD_INHERITS_STDIN: GSpawnFlags = 32;
1003pub const G_SPAWN_FILE_AND_ARGV_ZERO: GSpawnFlags = 64;
1004pub const G_SPAWN_SEARCH_PATH_FROM_ENVP: GSpawnFlags = 128;
1005pub const G_SPAWN_CLOEXEC_PIPES: GSpawnFlags = 256;
1006#[cfg(feature = "v2_74")]
1007#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
1008pub const G_SPAWN_CHILD_INHERITS_STDOUT: GSpawnFlags = 512;
1009#[cfg(feature = "v2_74")]
1010#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
1011pub const G_SPAWN_CHILD_INHERITS_STDERR: GSpawnFlags = 1024;
1012#[cfg(feature = "v2_74")]
1013#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
1014pub const G_SPAWN_STDIN_FROM_DEV_NULL: GSpawnFlags = 2048;
1015
1016pub type GTestSubprocessFlags = c_uint;
1017#[cfg(feature = "v2_74")]
1018#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
1019pub const G_TEST_SUBPROCESS_DEFAULT: GTestSubprocessFlags = 0;
1020pub const G_TEST_SUBPROCESS_INHERIT_STDIN: GTestSubprocessFlags = 1;
1021pub const G_TEST_SUBPROCESS_INHERIT_STDOUT: GTestSubprocessFlags = 2;
1022pub const G_TEST_SUBPROCESS_INHERIT_STDERR: GTestSubprocessFlags = 4;
1023pub const G_TEST_SUBPROCESS_INHERIT_DESCRIPTORS: GTestSubprocessFlags = 8;
1024
1025pub type GTestTrapFlags = c_uint;
1026#[cfg(feature = "v2_74")]
1027#[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
1028pub const G_TEST_TRAP_DEFAULT: GTestTrapFlags = 0;
1029pub const G_TEST_TRAP_SILENCE_STDOUT: GTestTrapFlags = 128;
1030pub const G_TEST_TRAP_SILENCE_STDERR: GTestTrapFlags = 256;
1031pub const G_TEST_TRAP_INHERIT_STDIN: GTestTrapFlags = 512;
1032
1033pub type GTraverseFlags = c_uint;
1034pub const G_TRAVERSE_LEAVES: GTraverseFlags = 1;
1035pub const G_TRAVERSE_NON_LEAVES: GTraverseFlags = 2;
1036pub const G_TRAVERSE_ALL: GTraverseFlags = 3;
1037pub const G_TRAVERSE_MASK: GTraverseFlags = 3;
1038pub const G_TRAVERSE_LEAFS: GTraverseFlags = 1;
1039pub const G_TRAVERSE_NON_LEAFS: GTraverseFlags = 2;
1040
1041pub type GUriFlags = c_uint;
1042pub const G_URI_FLAGS_NONE: GUriFlags = 0;
1043pub const G_URI_FLAGS_PARSE_RELAXED: GUriFlags = 1;
1044pub const G_URI_FLAGS_HAS_PASSWORD: GUriFlags = 2;
1045pub const G_URI_FLAGS_HAS_AUTH_PARAMS: GUriFlags = 4;
1046pub const G_URI_FLAGS_ENCODED: GUriFlags = 8;
1047pub const G_URI_FLAGS_NON_DNS: GUriFlags = 16;
1048pub const G_URI_FLAGS_ENCODED_QUERY: GUriFlags = 32;
1049pub const G_URI_FLAGS_ENCODED_PATH: GUriFlags = 64;
1050pub const G_URI_FLAGS_ENCODED_FRAGMENT: GUriFlags = 128;
1051pub const G_URI_FLAGS_SCHEME_NORMALIZE: GUriFlags = 256;
1052
1053pub type GUriHideFlags = c_uint;
1054pub const G_URI_HIDE_NONE: GUriHideFlags = 0;
1055pub const G_URI_HIDE_USERINFO: GUriHideFlags = 1;
1056pub const G_URI_HIDE_PASSWORD: GUriHideFlags = 2;
1057pub const G_URI_HIDE_AUTH_PARAMS: GUriHideFlags = 4;
1058pub const G_URI_HIDE_QUERY: GUriHideFlags = 8;
1059pub const G_URI_HIDE_FRAGMENT: GUriHideFlags = 16;
1060
1061pub type GUriParamsFlags = c_uint;
1062pub const G_URI_PARAMS_NONE: GUriParamsFlags = 0;
1063pub const G_URI_PARAMS_CASE_INSENSITIVE: GUriParamsFlags = 1;
1064pub const G_URI_PARAMS_WWW_FORM: GUriParamsFlags = 2;
1065pub const G_URI_PARAMS_PARSE_RELAXED: GUriParamsFlags = 4;
1066
1067#[repr(C)]
1069#[allow(dead_code)]
1070pub struct GDoubleIEEE754 {
1071 _data: [u8; 0],
1072 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1073}
1074
1075impl ::std::fmt::Debug for GDoubleIEEE754 {
1076 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1077 f.debug_struct(&format!("GDoubleIEEE754 @ {self:p}"))
1078 .finish()
1079 }
1080}
1081
1082#[repr(C)]
1083#[allow(dead_code)]
1084pub struct GFloatIEEE754 {
1085 _data: [u8; 0],
1086 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1087}
1088
1089impl ::std::fmt::Debug for GFloatIEEE754 {
1090 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1091 f.debug_struct(&format!("GFloatIEEE754 @ {self:p}"))
1092 .finish()
1093 }
1094}
1095
1096#[derive(Copy, Clone)]
1097#[repr(C)]
1098pub union GMutex {
1099 pub p: gpointer,
1100 pub i: [c_uint; 2],
1101}
1102
1103impl ::std::fmt::Debug for GMutex {
1104 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1105 f.debug_struct(&format!("GMutex @ {self:p}")).finish()
1106 }
1107}
1108
1109#[derive(Copy, Clone)]
1110#[repr(C)]
1111pub union GTokenValue {
1112 pub v_symbol: gpointer,
1113 pub v_identifier: *mut c_char,
1114 pub v_binary: c_ulong,
1115 pub v_octal: c_ulong,
1116 pub v_int: c_ulong,
1117 pub v_int64: u64,
1118 pub v_float: c_double,
1119 pub v_hex: c_ulong,
1120 pub v_string: *mut c_char,
1121 pub v_comment: *mut c_char,
1122 pub v_char: c_uchar,
1123 pub v_error: c_uint,
1124}
1125
1126impl ::std::fmt::Debug for GTokenValue {
1127 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1128 f.debug_struct(&format!("GTokenValue @ {self:p}"))
1129 .field("v_symbol", unsafe { &self.v_symbol })
1130 .field("v_identifier", unsafe { &self.v_identifier })
1131 .field("v_binary", unsafe { &self.v_binary })
1132 .field("v_octal", unsafe { &self.v_octal })
1133 .field("v_int", unsafe { &self.v_int })
1134 .field("v_int64", unsafe { &self.v_int64 })
1135 .field("v_float", unsafe { &self.v_float })
1136 .field("v_hex", unsafe { &self.v_hex })
1137 .field("v_string", unsafe { &self.v_string })
1138 .field("v_comment", unsafe { &self.v_comment })
1139 .field("v_char", unsafe { &self.v_char })
1140 .field("v_error", unsafe { &self.v_error })
1141 .finish()
1142 }
1143}
1144
1145#[derive(Copy, Clone)]
1146#[repr(C)]
1147pub union GVariantBuilder_u {
1148 pub s: GVariantBuilder_u_s,
1149 pub x: [uintptr_t; 16],
1150}
1151
1152impl ::std::fmt::Debug for GVariantBuilder_u {
1153 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1154 f.debug_struct(&format!("GVariantBuilder_u @ {self:p}"))
1155 .field("s", unsafe { &self.s })
1156 .field("x", unsafe { &self.x })
1157 .finish()
1158 }
1159}
1160
1161#[derive(Copy, Clone)]
1162#[repr(C)]
1163pub union GVariantDict_u {
1164 pub s: GVariantDict_u_s,
1165 pub x: [uintptr_t; 16],
1166}
1167
1168impl ::std::fmt::Debug for GVariantDict_u {
1169 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1170 f.debug_struct(&format!("GVariantDict_u @ {self:p}"))
1171 .field("s", unsafe { &self.s })
1172 .field("x", unsafe { &self.x })
1173 .finish()
1174 }
1175}
1176
1177pub type GCacheDestroyFunc = Option<unsafe extern "C" fn(gpointer)>;
1179pub type GCacheDupFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>;
1180pub type GCacheNewFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>;
1181pub type GChildWatchFunc = Option<unsafe extern "C" fn(GPid, c_int, gpointer)>;
1182pub type GClearHandleFunc = Option<unsafe extern "C" fn(c_uint)>;
1183pub type GCompareDataFunc =
1184 Option<unsafe extern "C" fn(gconstpointer, gconstpointer, gpointer) -> c_int>;
1185pub type GCompareFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> c_int>;
1186pub type GCompletionFunc = Option<unsafe extern "C" fn(gpointer) -> *mut c_char>;
1187pub type GCompletionStrncmpFunc =
1188 Option<unsafe extern "C" fn(*const c_char, *const c_char, size_t) -> c_int>;
1189pub type GCopyFunc = Option<unsafe extern "C" fn(gconstpointer, gpointer) -> gpointer>;
1190pub type GDataForeachFunc = Option<unsafe extern "C" fn(GQuark, gpointer, gpointer)>;
1191pub type GDestroyNotify = Option<unsafe extern "C" fn(gpointer)>;
1192pub type GDuplicateFunc = Option<unsafe extern "C" fn(gpointer, gpointer) -> gpointer>;
1193pub type GEqualFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> gboolean>;
1194pub type GEqualFuncFull =
1195 Option<unsafe extern "C" fn(gconstpointer, gconstpointer, gpointer) -> gboolean>;
1196pub type GErrorClearFunc = Option<unsafe extern "C" fn(*mut GError)>;
1197pub type GErrorCopyFunc = Option<unsafe extern "C" fn(*const GError, *mut GError)>;
1198pub type GErrorInitFunc = Option<unsafe extern "C" fn(*mut GError)>;
1199pub type GFreeFunc = Option<unsafe extern "C" fn(gpointer)>;
1200pub type GFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>;
1201pub type GHFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer)>;
1202pub type GHRFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>;
1203pub type GHashFunc = Option<unsafe extern "C" fn(gconstpointer) -> c_uint>;
1204pub type GHookCheckFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>;
1205pub type GHookCheckMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>;
1206pub type GHookCompareFunc = Option<unsafe extern "C" fn(*mut GHook, *mut GHook) -> c_int>;
1207pub type GHookFinalizeFunc = Option<unsafe extern "C" fn(*mut GHookList, *mut GHook)>;
1208pub type GHookFindFunc = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>;
1209pub type GHookFunc = Option<unsafe extern "C" fn(gpointer)>;
1210pub type GHookMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer)>;
1211pub type GIOFunc =
1212 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition, gpointer) -> gboolean>;
1213pub type GLogFunc =
1214 Option<unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer)>;
1215pub type GLogWriterFunc = Option<
1216 unsafe extern "C" fn(GLogLevelFlags, *const GLogField, size_t, gpointer) -> GLogWriterOutput,
1217>;
1218pub type GNodeForeachFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer)>;
1219pub type GNodeTraverseFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer) -> gboolean>;
1220pub type GOptionArgFunc = Option<
1221 unsafe extern "C" fn(*const c_char, *const c_char, gpointer, *mut *mut GError) -> gboolean,
1222>;
1223pub type GOptionErrorFunc = Option<
1224 unsafe extern "C" fn(*mut GOptionContext, *mut GOptionGroup, gpointer, *mut *mut GError),
1225>;
1226pub type GOptionParseFunc = Option<
1227 unsafe extern "C" fn(
1228 *mut GOptionContext,
1229 *mut GOptionGroup,
1230 gpointer,
1231 *mut *mut GError,
1232 ) -> gboolean,
1233>;
1234pub type GPollFunc = Option<unsafe extern "C" fn(*mut GPollFD, c_uint, c_int) -> c_int>;
1235pub type GPrintFunc = Option<unsafe extern "C" fn(*const c_char)>;
1236pub type GRegexEvalCallback =
1237 Option<unsafe extern "C" fn(*const GMatchInfo, *mut GString, gpointer) -> gboolean>;
1238pub type GScannerMsgFunc = Option<unsafe extern "C" fn(*mut GScanner, *mut c_char, gboolean)>;
1239pub type GSequenceIterCompareFunc =
1240 Option<unsafe extern "C" fn(*mut GSequenceIter, *mut GSequenceIter, gpointer) -> c_int>;
1241pub type GSourceDisposeFunc = Option<unsafe extern "C" fn(*mut GSource)>;
1242pub type GSourceDummyMarshal = Option<unsafe extern "C" fn()>;
1243pub type GSourceFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>;
1244pub type GSourceFuncsCheckFunc = Option<unsafe extern "C" fn(*mut GSource) -> gboolean>;
1245pub type GSourceFuncsDispatchFunc =
1246 Option<unsafe extern "C" fn(*mut GSource, GSourceFunc, gpointer) -> gboolean>;
1247pub type GSourceFuncsFinalizeFunc = Option<unsafe extern "C" fn(*mut GSource)>;
1248pub type GSourceFuncsPrepareFunc =
1249 Option<unsafe extern "C" fn(*mut GSource, *mut c_int) -> gboolean>;
1250pub type GSourceOnceFunc = Option<unsafe extern "C" fn(gpointer)>;
1251pub type GSpawnChildSetupFunc = Option<unsafe extern "C" fn(gpointer)>;
1252pub type GTestDataFunc = Option<unsafe extern "C" fn(gconstpointer)>;
1253pub type GTestFixtureFunc = Option<unsafe extern "C" fn(gpointer, gconstpointer)>;
1254pub type GTestFunc = Option<unsafe extern "C" fn()>;
1255pub type GTestLogFatalFunc = Option<
1256 unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer) -> gboolean,
1257>;
1258pub type GThreadFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>;
1259pub type GTranslateFunc = Option<unsafe extern "C" fn(*const c_char, gpointer) -> *const c_char>;
1260pub type GTraverseFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>;
1261pub type GTraverseNodeFunc = Option<unsafe extern "C" fn(*mut GTreeNode, gpointer) -> gboolean>;
1262pub type GVoidFunc = Option<unsafe extern "C" fn()>;
1263
1264#[repr(C)]
1266#[allow(dead_code)]
1267pub struct _GAllocator {
1268 _data: [u8; 0],
1269 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1270}
1271
1272pub type GAllocator = _GAllocator;
1273
1274#[derive(Copy, Clone)]
1275#[repr(C)]
1276pub struct GArray {
1277 pub data: *mut c_char,
1278 pub len: c_uint,
1279}
1280
1281impl ::std::fmt::Debug for GArray {
1282 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1283 f.debug_struct(&format!("GArray @ {self:p}"))
1284 .field("data", &self.data)
1285 .field("len", &self.len)
1286 .finish()
1287 }
1288}
1289
1290#[repr(C)]
1291#[allow(dead_code)]
1292pub struct _GAsyncQueue {
1293 _data: [u8; 0],
1294 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1295}
1296
1297pub type GAsyncQueue = _GAsyncQueue;
1298
1299#[repr(C)]
1300#[allow(dead_code)]
1301pub struct GBookmarkFile {
1302 _data: [u8; 0],
1303 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1304}
1305
1306impl ::std::fmt::Debug for GBookmarkFile {
1307 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1308 f.debug_struct(&format!("GBookmarkFile @ {self:p}"))
1309 .finish()
1310 }
1311}
1312
1313#[derive(Copy, Clone)]
1314#[repr(C)]
1315pub struct GByteArray {
1316 pub data: *mut u8,
1317 pub len: c_uint,
1318}
1319
1320impl ::std::fmt::Debug for GByteArray {
1321 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1322 f.debug_struct(&format!("GByteArray @ {self:p}"))
1323 .field("data", &self.data)
1324 .field("len", &self.len)
1325 .finish()
1326 }
1327}
1328
1329#[repr(C)]
1330#[allow(dead_code)]
1331pub struct GBytes {
1332 _data: [u8; 0],
1333 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1334}
1335
1336impl ::std::fmt::Debug for GBytes {
1337 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1338 f.debug_struct(&format!("GBytes @ {self:p}")).finish()
1339 }
1340}
1341
1342#[repr(C)]
1343#[allow(dead_code)]
1344pub struct _GCache {
1345 _data: [u8; 0],
1346 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1347}
1348
1349pub type GCache = _GCache;
1350
1351#[repr(C)]
1352#[allow(dead_code)]
1353pub struct GChecksum {
1354 _data: [u8; 0],
1355 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1356}
1357
1358impl ::std::fmt::Debug for GChecksum {
1359 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1360 f.debug_struct(&format!("GChecksum @ {self:p}")).finish()
1361 }
1362}
1363
1364#[derive(Copy, Clone)]
1365#[repr(C)]
1366pub struct GCompletion {
1367 pub items: *mut GList,
1368 pub func: GCompletionFunc,
1369 pub prefix: *mut c_char,
1370 pub cache: *mut GList,
1371 pub strncmp_func: GCompletionStrncmpFunc,
1372}
1373
1374impl ::std::fmt::Debug for GCompletion {
1375 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1376 f.debug_struct(&format!("GCompletion @ {self:p}"))
1377 .field("items", &self.items)
1378 .field("func", &self.func)
1379 .field("prefix", &self.prefix)
1380 .field("cache", &self.cache)
1381 .field("strncmp_func", &self.strncmp_func)
1382 .finish()
1383 }
1384}
1385
1386#[derive(Copy, Clone)]
1387#[repr(C)]
1388pub struct GCond {
1389 pub p: gpointer,
1390 pub i: [c_uint; 2],
1391}
1392
1393impl ::std::fmt::Debug for GCond {
1394 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1395 f.debug_struct(&format!("GCond @ {self:p}")).finish()
1396 }
1397}
1398
1399#[repr(C)]
1400#[allow(dead_code)]
1401pub struct _GData {
1402 _data: [u8; 0],
1403 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1404}
1405
1406pub type GData = _GData;
1407
1408#[derive(Copy, Clone)]
1409#[repr(C)]
1410pub struct GDate {
1411 pub julian_days: c_uint,
1412 pub flags_dmy: c_uint,
1413}
1414
1415impl ::std::fmt::Debug for GDate {
1416 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1417 f.debug_struct(&format!("GDate @ {self:p}"))
1418 .field("julian_days", &self.julian_days)
1419 .field("flags_dmy", &self.flags_dmy)
1420 .finish()
1421 }
1422}
1423
1424#[repr(C)]
1425#[allow(dead_code)]
1426pub struct GDateTime {
1427 _data: [u8; 0],
1428 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1429}
1430
1431impl ::std::fmt::Debug for GDateTime {
1432 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1433 f.debug_struct(&format!("GDateTime @ {self:p}")).finish()
1434 }
1435}
1436
1437#[derive(Copy, Clone)]
1438#[repr(C)]
1439pub struct GDebugKey {
1440 pub key: *const c_char,
1441 pub value: c_uint,
1442}
1443
1444impl ::std::fmt::Debug for GDebugKey {
1445 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1446 f.debug_struct(&format!("GDebugKey @ {self:p}"))
1447 .field("key", &self.key)
1448 .field("value", &self.value)
1449 .finish()
1450 }
1451}
1452
1453#[repr(C)]
1454#[allow(dead_code)]
1455pub struct GDir {
1456 _data: [u8; 0],
1457 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1458}
1459
1460impl ::std::fmt::Debug for GDir {
1461 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1462 f.debug_struct(&format!("GDir @ {self:p}")).finish()
1463 }
1464}
1465
1466#[repr(C)]
1467#[allow(dead_code)]
1468pub struct GDoubleIEEE754_mpn {
1469 pub mantissa_low: c_uint,
1470 _truncated_record_marker: c_void,
1471 }
1473
1474impl ::std::fmt::Debug for GDoubleIEEE754_mpn {
1475 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1476 f.debug_struct(&format!("GDoubleIEEE754_mpn @ {self:p}"))
1477 .field("mantissa_low", &self.mantissa_low)
1478 .finish()
1479 }
1480}
1481
1482#[derive(Copy, Clone)]
1483#[repr(C)]
1484pub struct GError {
1485 pub domain: GQuark,
1486 pub code: c_int,
1487 pub message: *mut c_char,
1488}
1489
1490impl ::std::fmt::Debug for GError {
1491 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1492 f.debug_struct(&format!("GError @ {self:p}"))
1493 .field("domain", &self.domain)
1494 .field("code", &self.code)
1495 .field("message", &self.message)
1496 .finish()
1497 }
1498}
1499
1500#[repr(C)]
1501#[allow(dead_code)]
1502pub struct GFloatIEEE754_mpn {
1503 pub mantissa: c_uint,
1504 _truncated_record_marker: c_void,
1505 }
1507
1508impl ::std::fmt::Debug for GFloatIEEE754_mpn {
1509 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1510 f.debug_struct(&format!("GFloatIEEE754_mpn @ {self:p}"))
1511 .field("mantissa", &self.mantissa)
1512 .finish()
1513 }
1514}
1515
1516#[repr(C)]
1517#[allow(dead_code)]
1518pub struct GHashTable {
1519 _data: [u8; 0],
1520 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1521}
1522
1523impl ::std::fmt::Debug for GHashTable {
1524 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1525 f.debug_struct(&format!("GHashTable @ {self:p}")).finish()
1526 }
1527}
1528
1529#[derive(Copy, Clone)]
1530#[repr(C)]
1531pub struct GHashTableIter {
1532 pub dummy1: gpointer,
1533 pub dummy2: gpointer,
1534 pub dummy3: gpointer,
1535 pub dummy4: c_int,
1536 pub dummy5: gboolean,
1537 pub dummy6: gpointer,
1538}
1539
1540impl ::std::fmt::Debug for GHashTableIter {
1541 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1542 f.debug_struct(&format!("GHashTableIter @ {self:p}"))
1543 .finish()
1544 }
1545}
1546
1547#[repr(C)]
1548#[allow(dead_code)]
1549pub struct GHmac {
1550 _data: [u8; 0],
1551 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1552}
1553
1554impl ::std::fmt::Debug for GHmac {
1555 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1556 f.debug_struct(&format!("GHmac @ {self:p}")).finish()
1557 }
1558}
1559
1560#[derive(Copy, Clone)]
1561#[repr(C)]
1562pub struct GHook {
1563 pub data: gpointer,
1564 pub next: *mut GHook,
1565 pub prev: *mut GHook,
1566 pub ref_count: c_uint,
1567 pub hook_id: c_ulong,
1568 pub flags: c_uint,
1569 pub func: gpointer,
1570 pub destroy: GDestroyNotify,
1571}
1572
1573impl ::std::fmt::Debug for GHook {
1574 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1575 f.debug_struct(&format!("GHook @ {self:p}"))
1576 .field("data", &self.data)
1577 .field("next", &self.next)
1578 .field("prev", &self.prev)
1579 .field("ref_count", &self.ref_count)
1580 .field("hook_id", &self.hook_id)
1581 .field("flags", &self.flags)
1582 .field("func", &self.func)
1583 .field("destroy", &self.destroy)
1584 .finish()
1585 }
1586}
1587
1588#[repr(C)]
1589#[derive(Copy, Clone)]
1590pub struct GHookList {
1591 pub seq_id: c_ulong,
1592 #[cfg(any(not(windows), not(target_pointer_width = "64")))]
1593 pub hook_size_and_setup: gpointer,
1594 #[cfg(all(windows, target_pointer_width = "64"))]
1595 pub hook_size_and_setup: c_ulong,
1596 pub hooks: *mut GHook,
1597 pub dummy3: gpointer,
1598 pub finalize_hook: GHookFinalizeFunc,
1599 pub dummy: [gpointer; 2],
1600}
1601
1602impl ::std::fmt::Debug for GHookList {
1603 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1604 write!(f, "GHookList @ {self:p}")
1605 }
1606}
1607
1608#[repr(C)]
1609#[allow(dead_code)]
1610pub struct _GIConv {
1611 _data: [u8; 0],
1612 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1613}
1614
1615pub type GIConv = *mut _GIConv;
1616
1617#[repr(C)]
1618#[allow(dead_code)]
1619pub struct GIOChannel {
1620 pub ref_count: c_int,
1621 pub funcs: *mut GIOFuncs,
1622 pub encoding: *mut c_char,
1623 pub read_cd: GIConv,
1624 pub write_cd: GIConv,
1625 pub line_term: *mut c_char,
1626 pub line_term_len: c_uint,
1627 pub buf_size: size_t,
1628 pub read_buf: *mut GString,
1629 pub encoded_read_buf: *mut GString,
1630 pub write_buf: *mut GString,
1631 pub partial_write_buf: [c_char; 6],
1632 pub use_buffer: c_uint,
1633 _truncated_record_marker: c_void,
1634 }
1636
1637impl ::std::fmt::Debug for GIOChannel {
1638 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1639 f.debug_struct(&format!("GIOChannel @ {self:p}")).finish()
1640 }
1641}
1642
1643#[derive(Copy, Clone)]
1644#[repr(C)]
1645pub struct GIOFuncs {
1646 pub io_read: Option<
1647 unsafe extern "C" fn(
1648 *mut GIOChannel,
1649 *const c_char,
1650 size_t,
1651 *mut size_t,
1652 *mut *mut GError,
1653 ) -> GIOStatus,
1654 >,
1655 pub io_write: Option<
1656 unsafe extern "C" fn(
1657 *mut GIOChannel,
1658 *const c_char,
1659 size_t,
1660 *mut size_t,
1661 *mut *mut GError,
1662 ) -> GIOStatus,
1663 >,
1664 pub io_seek: Option<
1665 unsafe extern "C" fn(*mut GIOChannel, i64, GSeekType, *mut *mut GError) -> GIOStatus,
1666 >,
1667 pub io_close: Option<unsafe extern "C" fn(*mut GIOChannel, *mut *mut GError) -> GIOStatus>,
1668 pub io_create_watch:
1669 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition) -> *mut GSource>,
1670 pub io_free: Option<unsafe extern "C" fn(*mut GIOChannel)>,
1671 pub io_set_flags:
1672 Option<unsafe extern "C" fn(*mut GIOChannel, GIOFlags, *mut *mut GError) -> GIOStatus>,
1673 pub io_get_flags: Option<unsafe extern "C" fn(*mut GIOChannel) -> GIOFlags>,
1674}
1675
1676impl ::std::fmt::Debug for GIOFuncs {
1677 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1678 f.debug_struct(&format!("GIOFuncs @ {self:p}"))
1679 .field("io_read", &self.io_read)
1680 .field("io_write", &self.io_write)
1681 .field("io_seek", &self.io_seek)
1682 .field("io_close", &self.io_close)
1683 .field("io_create_watch", &self.io_create_watch)
1684 .field("io_free", &self.io_free)
1685 .field("io_set_flags", &self.io_set_flags)
1686 .field("io_get_flags", &self.io_get_flags)
1687 .finish()
1688 }
1689}
1690
1691#[repr(C)]
1692#[allow(dead_code)]
1693pub struct GKeyFile {
1694 _data: [u8; 0],
1695 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1696}
1697
1698impl ::std::fmt::Debug for GKeyFile {
1699 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1700 f.debug_struct(&format!("GKeyFile @ {self:p}")).finish()
1701 }
1702}
1703
1704#[derive(Copy, Clone)]
1705#[repr(C)]
1706pub struct GList {
1707 pub data: gpointer,
1708 pub next: *mut GList,
1709 pub prev: *mut GList,
1710}
1711
1712impl ::std::fmt::Debug for GList {
1713 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1714 f.debug_struct(&format!("GList @ {self:p}"))
1715 .field("data", &self.data)
1716 .field("next", &self.next)
1717 .field("prev", &self.prev)
1718 .finish()
1719 }
1720}
1721
1722#[derive(Copy, Clone)]
1723#[repr(C)]
1724pub struct GLogField {
1725 pub key: *const c_char,
1726 pub value: gconstpointer,
1727 pub length: ssize_t,
1728}
1729
1730impl ::std::fmt::Debug for GLogField {
1731 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1732 f.debug_struct(&format!("GLogField @ {self:p}"))
1733 .field("key", &self.key)
1734 .field("value", &self.value)
1735 .field("length", &self.length)
1736 .finish()
1737 }
1738}
1739
1740#[repr(C)]
1741#[allow(dead_code)]
1742pub struct GMainContext {
1743 _data: [u8; 0],
1744 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1745}
1746
1747impl ::std::fmt::Debug for GMainContext {
1748 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1749 f.debug_struct(&format!("GMainContext @ {self:p}")).finish()
1750 }
1751}
1752
1753#[repr(C)]
1754#[allow(dead_code)]
1755pub struct GMainLoop {
1756 _data: [u8; 0],
1757 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1758}
1759
1760impl ::std::fmt::Debug for GMainLoop {
1761 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1762 f.debug_struct(&format!("GMainLoop @ {self:p}")).finish()
1763 }
1764}
1765
1766#[repr(C)]
1767#[allow(dead_code)]
1768pub struct GMappedFile {
1769 _data: [u8; 0],
1770 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1771}
1772
1773impl ::std::fmt::Debug for GMappedFile {
1774 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1775 f.debug_struct(&format!("GMappedFile @ {self:p}")).finish()
1776 }
1777}
1778
1779#[repr(C)]
1780#[allow(dead_code)]
1781pub struct GMarkupParseContext {
1782 _data: [u8; 0],
1783 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1784}
1785
1786impl ::std::fmt::Debug for GMarkupParseContext {
1787 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1788 f.debug_struct(&format!("GMarkupParseContext @ {self:p}"))
1789 .finish()
1790 }
1791}
1792
1793#[derive(Copy, Clone)]
1794#[repr(C)]
1795pub struct GMarkupParser {
1796 pub start_element: Option<
1797 unsafe extern "C" fn(
1798 *mut GMarkupParseContext,
1799 *const c_char,
1800 *mut *const c_char,
1801 *mut *const c_char,
1802 gpointer,
1803 *mut *mut GError,
1804 ),
1805 >,
1806 pub end_element: Option<
1807 unsafe extern "C" fn(*mut GMarkupParseContext, *const c_char, gpointer, *mut *mut GError),
1808 >,
1809 pub text: Option<
1810 unsafe extern "C" fn(
1811 *mut GMarkupParseContext,
1812 *const c_char,
1813 size_t,
1814 gpointer,
1815 *mut *mut GError,
1816 ),
1817 >,
1818 pub passthrough: Option<
1819 unsafe extern "C" fn(
1820 *mut GMarkupParseContext,
1821 *const c_char,
1822 size_t,
1823 gpointer,
1824 *mut *mut GError,
1825 ),
1826 >,
1827 pub error: Option<unsafe extern "C" fn(*mut GMarkupParseContext, *mut GError, gpointer)>,
1828}
1829
1830impl ::std::fmt::Debug for GMarkupParser {
1831 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1832 f.debug_struct(&format!("GMarkupParser @ {self:p}"))
1833 .field("start_element", &self.start_element)
1834 .field("end_element", &self.end_element)
1835 .field("text", &self.text)
1836 .field("passthrough", &self.passthrough)
1837 .field("error", &self.error)
1838 .finish()
1839 }
1840}
1841
1842#[repr(C)]
1843#[allow(dead_code)]
1844pub struct GMatchInfo {
1845 _data: [u8; 0],
1846 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1847}
1848
1849impl ::std::fmt::Debug for GMatchInfo {
1850 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1851 f.debug_struct(&format!("GMatchInfo @ {self:p}")).finish()
1852 }
1853}
1854
1855#[repr(C)]
1856#[allow(dead_code)]
1857pub struct _GMemChunk {
1858 _data: [u8; 0],
1859 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1860}
1861
1862pub type GMemChunk = _GMemChunk;
1863
1864#[derive(Copy, Clone)]
1865#[repr(C)]
1866pub struct GMemVTable {
1867 pub malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>,
1868 pub realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>,
1869 pub free: Option<unsafe extern "C" fn(gpointer)>,
1870 pub calloc: Option<unsafe extern "C" fn(size_t, size_t) -> gpointer>,
1871 pub try_malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>,
1872 pub try_realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>,
1873}
1874
1875impl ::std::fmt::Debug for GMemVTable {
1876 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1877 f.debug_struct(&format!("GMemVTable @ {self:p}"))
1878 .field("malloc", &self.malloc)
1879 .field("realloc", &self.realloc)
1880 .field("free", &self.free)
1881 .field("calloc", &self.calloc)
1882 .field("try_malloc", &self.try_malloc)
1883 .field("try_realloc", &self.try_realloc)
1884 .finish()
1885 }
1886}
1887
1888#[derive(Copy, Clone)]
1889#[repr(C)]
1890pub struct GNode {
1891 pub data: gpointer,
1892 pub next: *mut GNode,
1893 pub prev: *mut GNode,
1894 pub parent: *mut GNode,
1895 pub children: *mut GNode,
1896}
1897
1898impl ::std::fmt::Debug for GNode {
1899 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1900 f.debug_struct(&format!("GNode @ {self:p}"))
1901 .field("data", &self.data)
1902 .field("next", &self.next)
1903 .field("prev", &self.prev)
1904 .field("parent", &self.parent)
1905 .field("children", &self.children)
1906 .finish()
1907 }
1908}
1909
1910#[derive(Copy, Clone)]
1911#[repr(C)]
1912pub struct GOnce {
1913 pub status: GOnceStatus,
1914 pub retval: gpointer,
1915}
1916
1917impl ::std::fmt::Debug for GOnce {
1918 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1919 f.debug_struct(&format!("GOnce @ {self:p}")).finish()
1920 }
1921}
1922
1923#[repr(C)]
1924#[allow(dead_code)]
1925pub struct _GOptionContext {
1926 _data: [u8; 0],
1927 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1928}
1929
1930pub type GOptionContext = _GOptionContext;
1931
1932#[derive(Copy, Clone)]
1933#[repr(C)]
1934pub struct GOptionEntry {
1935 pub long_name: *const c_char,
1936 pub short_name: c_char,
1937 pub flags: c_int,
1938 pub arg: GOptionArg,
1939 pub arg_data: gpointer,
1940 pub description: *const c_char,
1941 pub arg_description: *const c_char,
1942}
1943
1944impl ::std::fmt::Debug for GOptionEntry {
1945 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1946 f.debug_struct(&format!("GOptionEntry @ {self:p}"))
1947 .field("long_name", &self.long_name)
1948 .field("short_name", &self.short_name)
1949 .field("flags", &self.flags)
1950 .field("arg", &self.arg)
1951 .field("arg_data", &self.arg_data)
1952 .field("description", &self.description)
1953 .field("arg_description", &self.arg_description)
1954 .finish()
1955 }
1956}
1957
1958#[repr(C)]
1959#[allow(dead_code)]
1960pub struct GOptionGroup {
1961 _data: [u8; 0],
1962 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1963}
1964
1965impl ::std::fmt::Debug for GOptionGroup {
1966 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1967 f.debug_struct(&format!("GOptionGroup @ {self:p}")).finish()
1968 }
1969}
1970
1971#[derive(Copy, Clone)]
1972#[repr(C)]
1973pub struct GPathBuf {
1974 pub dummy: [gpointer; 8],
1975}
1976
1977impl ::std::fmt::Debug for GPathBuf {
1978 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1979 f.debug_struct(&format!("GPathBuf @ {self:p}")).finish()
1980 }
1981}
1982
1983#[repr(C)]
1984#[allow(dead_code)]
1985pub struct GPatternSpec {
1986 _data: [u8; 0],
1987 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
1988}
1989
1990impl ::std::fmt::Debug for GPatternSpec {
1991 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1992 f.debug_struct(&format!("GPatternSpec @ {self:p}")).finish()
1993 }
1994}
1995
1996#[derive(Copy, Clone)]
1997#[repr(C)]
1998pub struct GPrivate {
1999 pub p: gpointer,
2000 pub notify: GDestroyNotify,
2001 pub future: [gpointer; 2],
2002}
2003
2004impl ::std::fmt::Debug for GPrivate {
2005 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2006 f.debug_struct(&format!("GPrivate @ {self:p}")).finish()
2007 }
2008}
2009
2010#[derive(Copy, Clone)]
2011#[repr(C)]
2012pub struct GPtrArray {
2013 pub pdata: *mut gpointer,
2014 pub len: c_uint,
2015}
2016
2017impl ::std::fmt::Debug for GPtrArray {
2018 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2019 f.debug_struct(&format!("GPtrArray @ {self:p}"))
2020 .field("pdata", &self.pdata)
2021 .field("len", &self.len)
2022 .finish()
2023 }
2024}
2025
2026#[derive(Copy, Clone)]
2027#[repr(C)]
2028pub struct GQueue {
2029 pub head: *mut GList,
2030 pub tail: *mut GList,
2031 pub length: c_uint,
2032}
2033
2034impl ::std::fmt::Debug for GQueue {
2035 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2036 f.debug_struct(&format!("GQueue @ {self:p}"))
2037 .field("head", &self.head)
2038 .field("tail", &self.tail)
2039 .field("length", &self.length)
2040 .finish()
2041 }
2042}
2043
2044#[derive(Copy, Clone)]
2045#[repr(C)]
2046pub struct GRWLock {
2047 pub p: gpointer,
2048 pub i: [c_uint; 2],
2049}
2050
2051impl ::std::fmt::Debug for GRWLock {
2052 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2053 f.debug_struct(&format!("GRWLock @ {self:p}")).finish()
2054 }
2055}
2056
2057#[repr(C)]
2058#[allow(dead_code)]
2059pub struct GRand {
2060 _data: [u8; 0],
2061 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2062}
2063
2064impl ::std::fmt::Debug for GRand {
2065 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2066 f.debug_struct(&format!("GRand @ {self:p}")).finish()
2067 }
2068}
2069
2070#[derive(Copy, Clone)]
2071#[repr(C)]
2072pub struct GRecMutex {
2073 pub p: gpointer,
2074 pub i: [c_uint; 2],
2075}
2076
2077impl ::std::fmt::Debug for GRecMutex {
2078 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2079 f.debug_struct(&format!("GRecMutex @ {self:p}")).finish()
2080 }
2081}
2082
2083#[repr(C)]
2084#[allow(dead_code)]
2085pub struct GRegex {
2086 _data: [u8; 0],
2087 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2088}
2089
2090impl ::std::fmt::Debug for GRegex {
2091 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2092 f.debug_struct(&format!("GRegex @ {self:p}")).finish()
2093 }
2094}
2095
2096#[repr(C)]
2097#[allow(dead_code)]
2098pub struct _GRelation {
2099 _data: [u8; 0],
2100 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2101}
2102
2103pub type GRelation = _GRelation;
2104
2105#[derive(Copy, Clone)]
2106#[repr(C)]
2107pub struct GSList {
2108 pub data: gpointer,
2109 pub next: *mut GSList,
2110}
2111
2112impl ::std::fmt::Debug for GSList {
2113 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2114 f.debug_struct(&format!("GSList @ {self:p}"))
2115 .field("data", &self.data)
2116 .field("next", &self.next)
2117 .finish()
2118 }
2119}
2120
2121#[derive(Copy, Clone)]
2122#[repr(C)]
2123pub struct GScanner {
2124 pub user_data: gpointer,
2125 pub max_parse_errors: c_uint,
2126 pub parse_errors: c_uint,
2127 pub input_name: *const c_char,
2128 pub qdata: *mut GData,
2129 pub config: *mut GScannerConfig,
2130 pub token: GTokenType,
2131 pub value: GTokenValue,
2132 pub line: c_uint,
2133 pub position: c_uint,
2134 pub next_token: GTokenType,
2135 pub next_value: GTokenValue,
2136 pub next_line: c_uint,
2137 pub next_position: c_uint,
2138 pub symbol_table: *mut GHashTable,
2139 pub input_fd: c_int,
2140 pub text: *const c_char,
2141 pub text_end: *const c_char,
2142 pub buffer: *mut c_char,
2143 pub scope_id: c_uint,
2144 pub msg_handler: GScannerMsgFunc,
2145}
2146
2147impl ::std::fmt::Debug for GScanner {
2148 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2149 f.debug_struct(&format!("GScanner @ {self:p}"))
2150 .field("user_data", &self.user_data)
2151 .field("max_parse_errors", &self.max_parse_errors)
2152 .field("parse_errors", &self.parse_errors)
2153 .field("input_name", &self.input_name)
2154 .field("qdata", &self.qdata)
2155 .field("config", &self.config)
2156 .field("token", &self.token)
2157 .field("value", &self.value)
2158 .field("line", &self.line)
2159 .field("position", &self.position)
2160 .field("next_token", &self.next_token)
2161 .field("next_value", &self.next_value)
2162 .field("next_line", &self.next_line)
2163 .field("next_position", &self.next_position)
2164 .field("msg_handler", &self.msg_handler)
2165 .finish()
2166 }
2167}
2168
2169#[repr(C)]
2170#[allow(dead_code)]
2171pub struct GScannerConfig {
2172 pub cset_skip_characters: *mut c_char,
2173 pub cset_identifier_first: *mut c_char,
2174 pub cset_identifier_nth: *mut c_char,
2175 pub cpair_comment_single: *mut c_char,
2176 pub case_sensitive: c_uint,
2177 _truncated_record_marker: c_void,
2178 }
2180
2181impl ::std::fmt::Debug for GScannerConfig {
2182 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2183 f.debug_struct(&format!("GScannerConfig @ {self:p}"))
2184 .field("cset_skip_characters", &self.cset_skip_characters)
2185 .field("cset_identifier_first", &self.cset_identifier_first)
2186 .field("cset_identifier_nth", &self.cset_identifier_nth)
2187 .field("cpair_comment_single", &self.cpair_comment_single)
2188 .field("case_sensitive", &self.case_sensitive)
2189 .finish()
2190 }
2191}
2192
2193#[repr(C)]
2194#[allow(dead_code)]
2195pub struct _GSequence {
2196 _data: [u8; 0],
2197 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2198}
2199
2200pub type GSequence = _GSequence;
2201
2202#[repr(C)]
2203#[allow(dead_code)]
2204pub struct _GSequenceIter {
2205 _data: [u8; 0],
2206 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2207}
2208
2209pub type GSequenceIter = _GSequenceIter;
2210
2211#[derive(Copy, Clone)]
2212#[repr(C)]
2213pub struct GSource {
2214 pub callback_data: gpointer,
2215 pub callback_funcs: *mut GSourceCallbackFuncs,
2216 pub source_funcs: *const GSourceFuncs,
2217 pub ref_count: c_uint,
2218 pub context: *mut GMainContext,
2219 pub priority: c_int,
2220 pub flags: c_uint,
2221 pub source_id: c_uint,
2222 pub poll_fds: *mut GSList,
2223 pub prev: *mut GSource,
2224 pub next: *mut GSource,
2225 pub name: *mut c_char,
2226 pub priv_: *mut GSourcePrivate,
2227}
2228
2229impl ::std::fmt::Debug for GSource {
2230 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2231 f.debug_struct(&format!("GSource @ {self:p}")).finish()
2232 }
2233}
2234
2235#[derive(Copy, Clone)]
2236#[repr(C)]
2237pub struct GSourceCallbackFuncs {
2238 pub ref_: Option<unsafe extern "C" fn(gpointer)>,
2239 pub unref: Option<unsafe extern "C" fn(gpointer)>,
2240 pub get: Option<unsafe extern "C" fn(gpointer, *mut GSource, *mut GSourceFunc, *mut gpointer)>,
2241}
2242
2243impl ::std::fmt::Debug for GSourceCallbackFuncs {
2244 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2245 f.debug_struct(&format!("GSourceCallbackFuncs @ {self:p}"))
2246 .field("ref_", &self.ref_)
2247 .field("unref", &self.unref)
2248 .field("get", &self.get)
2249 .finish()
2250 }
2251}
2252
2253#[derive(Copy, Clone)]
2254#[repr(C)]
2255pub struct GSourceFuncs {
2256 pub prepare: GSourceFuncsPrepareFunc,
2257 pub check: GSourceFuncsCheckFunc,
2258 pub dispatch: GSourceFuncsDispatchFunc,
2259 pub finalize: GSourceFuncsFinalizeFunc,
2260 pub closure_callback: GSourceFunc,
2261 pub closure_marshal: GSourceDummyMarshal,
2262}
2263
2264impl ::std::fmt::Debug for GSourceFuncs {
2265 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2266 f.debug_struct(&format!("GSourceFuncs @ {self:p}"))
2267 .field("prepare", &self.prepare)
2268 .field("check", &self.check)
2269 .field("dispatch", &self.dispatch)
2270 .field("finalize", &self.finalize)
2271 .finish()
2272 }
2273}
2274
2275#[repr(C)]
2276#[allow(dead_code)]
2277pub struct _GSourcePrivate {
2278 _data: [u8; 0],
2279 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2280}
2281
2282pub type GSourcePrivate = _GSourcePrivate;
2283
2284#[repr(C)]
2285#[allow(dead_code)]
2286pub struct _GStatBuf {
2287 _data: [u8; 0],
2288 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2289}
2290
2291pub type GStatBuf = _GStatBuf;
2292
2293#[derive(Copy, Clone)]
2294#[repr(C)]
2295pub struct GString {
2296 pub str: *mut c_char,
2297 pub len: size_t,
2298 pub allocated_len: size_t,
2299}
2300
2301impl ::std::fmt::Debug for GString {
2302 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2303 f.debug_struct(&format!("GString @ {self:p}"))
2304 .field("str", &self.str)
2305 .field("len", &self.len)
2306 .field("allocated_len", &self.allocated_len)
2307 .finish()
2308 }
2309}
2310
2311#[repr(C)]
2312#[allow(dead_code)]
2313pub struct _GStringChunk {
2314 _data: [u8; 0],
2315 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2316}
2317
2318pub type GStringChunk = _GStringChunk;
2319
2320#[repr(C)]
2321#[allow(dead_code)]
2322pub struct GStrvBuilder {
2323 _data: [u8; 0],
2324 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2325}
2326
2327impl ::std::fmt::Debug for GStrvBuilder {
2328 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2329 f.debug_struct(&format!("GStrvBuilder @ {self:p}")).finish()
2330 }
2331}
2332
2333#[repr(C)]
2334#[allow(dead_code)]
2335pub struct _GTestCase {
2336 _data: [u8; 0],
2337 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2338}
2339
2340pub type GTestCase = _GTestCase;
2341
2342#[derive(Copy, Clone)]
2343#[repr(C)]
2344pub struct GTestConfig {
2345 pub test_initialized: gboolean,
2346 pub test_quick: gboolean,
2347 pub test_perf: gboolean,
2348 pub test_verbose: gboolean,
2349 pub test_quiet: gboolean,
2350 pub test_undefined: gboolean,
2351}
2352
2353impl ::std::fmt::Debug for GTestConfig {
2354 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2355 f.debug_struct(&format!("GTestConfig @ {self:p}"))
2356 .field("test_initialized", &self.test_initialized)
2357 .field("test_quick", &self.test_quick)
2358 .field("test_perf", &self.test_perf)
2359 .field("test_verbose", &self.test_verbose)
2360 .field("test_quiet", &self.test_quiet)
2361 .field("test_undefined", &self.test_undefined)
2362 .finish()
2363 }
2364}
2365
2366#[derive(Copy, Clone)]
2367#[repr(C)]
2368pub struct GTestLogBuffer {
2369 pub data: *mut GString,
2370 pub msgs: *mut GSList,
2371}
2372
2373impl ::std::fmt::Debug for GTestLogBuffer {
2374 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2375 f.debug_struct(&format!("GTestLogBuffer @ {self:p}"))
2376 .finish()
2377 }
2378}
2379
2380#[repr(C)]
2381#[allow(dead_code)]
2382pub struct _GTestSuite {
2383 _data: [u8; 0],
2384 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2385}
2386
2387pub type GTestSuite = _GTestSuite;
2388
2389#[derive(Copy, Clone)]
2390#[repr(C)]
2391pub struct GThread {
2392 pub func: GThreadFunc,
2393 pub data: gpointer,
2394 pub joinable: gboolean,
2395 pub priority: GThreadPriority,
2396}
2397
2398impl ::std::fmt::Debug for GThread {
2399 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2400 f.debug_struct(&format!("GThread @ {self:p}")).finish()
2401 }
2402}
2403
2404#[derive(Copy, Clone)]
2405#[repr(C)]
2406pub struct GThreadFunctions {
2407 pub mutex_new: Option<unsafe extern "C" fn() -> *mut GMutex>,
2408 pub mutex_lock: Option<unsafe extern "C" fn(*mut GMutex)>,
2409 pub mutex_trylock: Option<unsafe extern "C" fn(*mut GMutex) -> gboolean>,
2410 pub mutex_unlock: Option<unsafe extern "C" fn(*mut GMutex)>,
2411 pub mutex_free: Option<unsafe extern "C" fn(*mut GMutex)>,
2412 pub cond_new: Option<unsafe extern "C" fn() -> *mut GCond>,
2413 pub cond_signal: Option<unsafe extern "C" fn(*mut GCond)>,
2414 pub cond_broadcast: Option<unsafe extern "C" fn(*mut GCond)>,
2415 pub cond_wait: Option<unsafe extern "C" fn(*mut GCond, *mut GMutex)>,
2416 pub cond_timed_wait:
2417 Option<unsafe extern "C" fn(*mut GCond, *mut GMutex, *mut GTimeVal) -> gboolean>,
2418 pub cond_free: Option<unsafe extern "C" fn(*mut GCond)>,
2419 pub private_new: Option<unsafe extern "C" fn(GDestroyNotify) -> *mut GPrivate>,
2420 pub private_get: Option<unsafe extern "C" fn(*mut GPrivate) -> gpointer>,
2421 pub private_set: Option<unsafe extern "C" fn(*mut GPrivate, gpointer)>,
2422 pub thread_create: Option<
2423 unsafe extern "C" fn(
2424 GThreadFunc,
2425 gpointer,
2426 c_ulong,
2427 gboolean,
2428 gboolean,
2429 GThreadPriority,
2430 gpointer,
2431 *mut *mut GError,
2432 ),
2433 >,
2434 pub thread_yield: Option<unsafe extern "C" fn()>,
2435 pub thread_join: Option<unsafe extern "C" fn(gpointer)>,
2436 pub thread_exit: Option<unsafe extern "C" fn()>,
2437 pub thread_set_priority: Option<unsafe extern "C" fn(gpointer, GThreadPriority)>,
2438 pub thread_self: Option<unsafe extern "C" fn(gpointer)>,
2439 pub thread_equal: Option<unsafe extern "C" fn(gpointer, gpointer) -> gboolean>,
2440}
2441
2442impl ::std::fmt::Debug for GThreadFunctions {
2443 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2444 f.debug_struct(&format!("GThreadFunctions @ {self:p}"))
2445 .field("mutex_new", &self.mutex_new)
2446 .field("mutex_lock", &self.mutex_lock)
2447 .field("mutex_trylock", &self.mutex_trylock)
2448 .field("mutex_unlock", &self.mutex_unlock)
2449 .field("mutex_free", &self.mutex_free)
2450 .field("cond_new", &self.cond_new)
2451 .field("cond_signal", &self.cond_signal)
2452 .field("cond_broadcast", &self.cond_broadcast)
2453 .field("cond_wait", &self.cond_wait)
2454 .field("cond_timed_wait", &self.cond_timed_wait)
2455 .field("cond_free", &self.cond_free)
2456 .field("private_new", &self.private_new)
2457 .field("private_get", &self.private_get)
2458 .field("private_set", &self.private_set)
2459 .field("thread_create", &self.thread_create)
2460 .field("thread_yield", &self.thread_yield)
2461 .field("thread_join", &self.thread_join)
2462 .field("thread_exit", &self.thread_exit)
2463 .field("thread_set_priority", &self.thread_set_priority)
2464 .field("thread_self", &self.thread_self)
2465 .field("thread_equal", &self.thread_equal)
2466 .finish()
2467 }
2468}
2469
2470#[derive(Copy, Clone)]
2471#[repr(C)]
2472pub struct GThreadPool {
2473 pub func: GFunc,
2474 pub user_data: gpointer,
2475 pub exclusive: gboolean,
2476}
2477
2478impl ::std::fmt::Debug for GThreadPool {
2479 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2480 f.debug_struct(&format!("GThreadPool @ {self:p}"))
2481 .field("func", &self.func)
2482 .field("user_data", &self.user_data)
2483 .field("exclusive", &self.exclusive)
2484 .finish()
2485 }
2486}
2487
2488#[derive(Copy, Clone)]
2489#[repr(C)]
2490pub struct GTimeVal {
2491 pub tv_sec: c_long,
2492 pub tv_usec: c_long,
2493}
2494
2495impl ::std::fmt::Debug for GTimeVal {
2496 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2497 f.debug_struct(&format!("GTimeVal @ {self:p}"))
2498 .field("tv_sec", &self.tv_sec)
2499 .field("tv_usec", &self.tv_usec)
2500 .finish()
2501 }
2502}
2503
2504#[repr(C)]
2505#[allow(dead_code)]
2506pub struct GTimeZone {
2507 _data: [u8; 0],
2508 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2509}
2510
2511impl ::std::fmt::Debug for GTimeZone {
2512 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2513 f.debug_struct(&format!("GTimeZone @ {self:p}")).finish()
2514 }
2515}
2516
2517#[repr(C)]
2518#[allow(dead_code)]
2519pub struct _GTimer {
2520 _data: [u8; 0],
2521 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2522}
2523
2524pub type GTimer = _GTimer;
2525
2526#[derive(Copy, Clone)]
2527#[repr(C)]
2528pub struct GTrashStack {
2529 pub next: *mut GTrashStack,
2530}
2531
2532impl ::std::fmt::Debug for GTrashStack {
2533 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2534 f.debug_struct(&format!("GTrashStack @ {self:p}"))
2535 .field("next", &self.next)
2536 .finish()
2537 }
2538}
2539
2540#[repr(C)]
2541#[allow(dead_code)]
2542pub struct GTree {
2543 _data: [u8; 0],
2544 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2545}
2546
2547impl ::std::fmt::Debug for GTree {
2548 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2549 f.debug_struct(&format!("GTree @ {self:p}")).finish()
2550 }
2551}
2552
2553#[repr(C)]
2554#[allow(dead_code)]
2555pub struct _GTreeNode {
2556 _data: [u8; 0],
2557 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2558}
2559
2560pub type GTreeNode = _GTreeNode;
2561
2562#[derive(Copy, Clone)]
2563#[repr(C)]
2564pub struct GTuples {
2565 pub len: c_uint,
2566}
2567
2568impl ::std::fmt::Debug for GTuples {
2569 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2570 f.debug_struct(&format!("GTuples @ {self:p}"))
2571 .field("len", &self.len)
2572 .finish()
2573 }
2574}
2575
2576#[repr(C)]
2577#[allow(dead_code)]
2578pub struct GUri {
2579 _data: [u8; 0],
2580 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2581}
2582
2583impl ::std::fmt::Debug for GUri {
2584 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2585 f.debug_struct(&format!("GUri @ {self:p}")).finish()
2586 }
2587}
2588
2589#[derive(Copy, Clone)]
2590#[repr(C)]
2591pub struct GUriParamsIter {
2592 pub dummy0: c_int,
2593 pub dummy1: gpointer,
2594 pub dummy2: gpointer,
2595 pub dummy3: [u8; 256],
2596}
2597
2598impl ::std::fmt::Debug for GUriParamsIter {
2599 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2600 f.debug_struct(&format!("GUriParamsIter @ {self:p}"))
2601 .finish()
2602 }
2603}
2604
2605#[repr(C)]
2606#[allow(dead_code)]
2607pub struct GVariant {
2608 _data: [u8; 0],
2609 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2610}
2611
2612impl ::std::fmt::Debug for GVariant {
2613 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2614 f.debug_struct(&format!("GVariant @ {self:p}")).finish()
2615 }
2616}
2617
2618#[derive(Copy, Clone)]
2619#[repr(C)]
2620pub struct GVariantBuilder {
2621 pub u: GVariantBuilder_u,
2622}
2623
2624impl ::std::fmt::Debug for GVariantBuilder {
2625 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2626 f.debug_struct(&format!("GVariantBuilder @ {self:p}"))
2627 .field("u", &self.u)
2628 .finish()
2629 }
2630}
2631
2632#[derive(Copy, Clone)]
2633#[repr(C)]
2634pub struct GVariantBuilder_u_s {
2635 pub partial_magic: size_t,
2636 pub type_: *const GVariantType,
2637 pub y: [uintptr_t; 14],
2638}
2639
2640impl ::std::fmt::Debug for GVariantBuilder_u_s {
2641 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2642 f.debug_struct(&format!("GVariantBuilder_u_s @ {self:p}"))
2643 .field("partial_magic", &self.partial_magic)
2644 .field("type_", &self.type_)
2645 .field("y", &self.y)
2646 .finish()
2647 }
2648}
2649
2650#[derive(Copy, Clone)]
2651#[repr(C)]
2652pub struct GVariantDict {
2653 pub u: GVariantDict_u,
2654}
2655
2656impl ::std::fmt::Debug for GVariantDict {
2657 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2658 f.debug_struct(&format!("GVariantDict @ {self:p}"))
2659 .field("u", &self.u)
2660 .finish()
2661 }
2662}
2663
2664#[derive(Copy, Clone)]
2665#[repr(C)]
2666pub struct GVariantDict_u_s {
2667 pub asv: *mut GVariant,
2668 pub partial_magic: size_t,
2669 pub y: [uintptr_t; 14],
2670}
2671
2672impl ::std::fmt::Debug for GVariantDict_u_s {
2673 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2674 f.debug_struct(&format!("GVariantDict_u_s @ {self:p}"))
2675 .field("asv", &self.asv)
2676 .field("partial_magic", &self.partial_magic)
2677 .field("y", &self.y)
2678 .finish()
2679 }
2680}
2681
2682#[derive(Copy, Clone)]
2683#[repr(C)]
2684pub struct GVariantIter {
2685 pub x: [uintptr_t; 16],
2686}
2687
2688impl ::std::fmt::Debug for GVariantIter {
2689 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2690 f.debug_struct(&format!("GVariantIter @ {self:p}")).finish()
2691 }
2692}
2693
2694#[repr(C)]
2695#[allow(dead_code)]
2696pub struct GVariantType {
2697 _data: [u8; 0],
2698 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
2699}
2700
2701impl ::std::fmt::Debug for GVariantType {
2702 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2703 f.debug_struct(&format!("GVariantType @ {self:p}")).finish()
2704 }
2705}
2706
2707unsafe extern "C" {
2708
2709 pub fn g_normalize_mode_get_type() -> GType;
2713
2714 pub fn g_unicode_break_type_get_type() -> GType;
2718
2719 pub fn g_unicode_script_get_type() -> GType;
2723 pub fn g_unicode_script_from_iso15924(iso15924: u32) -> GUnicodeScript;
2724 pub fn g_unicode_script_to_iso15924(script: GUnicodeScript) -> u32;
2725
2726 pub fn g_unicode_type_get_type() -> GType;
2730
2731 pub fn g_io_condition_get_type() -> GType;
2735
2736 pub fn g_mutex_clear(mutex: *mut GMutex);
2740 pub fn g_mutex_free(mutex: *mut GMutex);
2741 pub fn g_mutex_init(mutex: *mut GMutex);
2742 pub fn g_mutex_lock(mutex: *mut GMutex);
2743 pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean;
2744 pub fn g_mutex_unlock(mutex: *mut GMutex);
2745 pub fn g_mutex_new() -> *mut GMutex;
2746
2747 pub fn g_allocator_free(allocator: *mut GAllocator);
2751 pub fn g_allocator_new(name: *const c_char, n_preallocs: c_uint) -> *mut GAllocator;
2752
2753 pub fn g_array_get_type() -> GType;
2757 pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint)
2758 -> *mut GArray;
2759 #[cfg(feature = "v2_62")]
2760 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
2761 pub fn g_array_binary_search(
2762 array: *mut GArray,
2763 target: gconstpointer,
2764 compare_func: GCompareFunc,
2765 out_match_index: *mut c_uint,
2766 ) -> gboolean;
2767 #[cfg(feature = "v2_62")]
2768 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
2769 pub fn g_array_copy(array: *mut GArray) -> *mut GArray;
2770 pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char;
2771 pub fn g_array_get_element_size(array: *mut GArray) -> c_uint;
2772 pub fn g_array_insert_vals(
2773 array: *mut GArray,
2774 index_: c_uint,
2775 data: gconstpointer,
2776 len: c_uint,
2777 ) -> *mut GArray;
2778 pub fn g_array_new(
2779 zero_terminated: gboolean,
2780 clear_: gboolean,
2781 element_size: c_uint,
2782 ) -> *mut GArray;
2783 #[cfg(feature = "v2_76")]
2784 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
2785 pub fn g_array_new_take(
2786 data: gpointer,
2787 len: size_t,
2788 clear: gboolean,
2789 element_size: size_t,
2790 ) -> *mut GArray;
2791 #[cfg(feature = "v2_76")]
2792 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
2793 pub fn g_array_new_take_zero_terminated(
2794 data: gpointer,
2795 clear: gboolean,
2796 element_size: size_t,
2797 ) -> *mut GArray;
2798 pub fn g_array_prepend_vals(
2799 array: *mut GArray,
2800 data: gconstpointer,
2801 len: c_uint,
2802 ) -> *mut GArray;
2803 pub fn g_array_ref(array: *mut GArray) -> *mut GArray;
2804 pub fn g_array_remove_index(array: *mut GArray, index_: c_uint) -> *mut GArray;
2805 pub fn g_array_remove_index_fast(array: *mut GArray, index_: c_uint) -> *mut GArray;
2806 pub fn g_array_remove_range(array: *mut GArray, index_: c_uint, length: c_uint) -> *mut GArray;
2807 pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify);
2808 pub fn g_array_set_size(array: *mut GArray, length: c_uint) -> *mut GArray;
2809 pub fn g_array_sized_new(
2810 zero_terminated: gboolean,
2811 clear_: gboolean,
2812 element_size: c_uint,
2813 reserved_size: c_uint,
2814 ) -> *mut GArray;
2815 pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc);
2816 pub fn g_array_sort_with_data(
2817 array: *mut GArray,
2818 compare_func: GCompareDataFunc,
2819 user_data: gpointer,
2820 );
2821 #[cfg(feature = "v2_64")]
2822 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
2823 pub fn g_array_steal(array: *mut GArray, len: *mut size_t) -> gpointer;
2824 pub fn g_array_unref(array: *mut GArray);
2825
2826 pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> c_int;
2830 pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> c_int;
2831 pub fn g_async_queue_lock(queue: *mut GAsyncQueue);
2832 pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer;
2833 pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
2834 pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer);
2835 pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer);
2836 pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer);
2837 pub fn g_async_queue_push_sorted(
2838 queue: *mut GAsyncQueue,
2839 data: gpointer,
2840 func: GCompareDataFunc,
2841 user_data: gpointer,
2842 );
2843 pub fn g_async_queue_push_sorted_unlocked(
2844 queue: *mut GAsyncQueue,
2845 data: gpointer,
2846 func: GCompareDataFunc,
2847 user_data: gpointer,
2848 );
2849 pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer);
2850 pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue;
2851 pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue);
2852 pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
2853 pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean;
2854 pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer);
2855 pub fn g_async_queue_sort_unlocked(
2856 queue: *mut GAsyncQueue,
2857 func: GCompareDataFunc,
2858 user_data: gpointer,
2859 );
2860 pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer;
2861 pub fn g_async_queue_timed_pop_unlocked(
2862 queue: *mut GAsyncQueue,
2863 end_time: *mut GTimeVal,
2864 ) -> gpointer;
2865 pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer;
2866 pub fn g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer;
2867 pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer;
2868 pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer;
2869 pub fn g_async_queue_unlock(queue: *mut GAsyncQueue);
2870 pub fn g_async_queue_unref(queue: *mut GAsyncQueue);
2871 pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue);
2872 pub fn g_async_queue_new() -> *mut GAsyncQueue;
2873 pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue;
2874
2875 pub fn g_bookmark_file_get_type() -> GType;
2879 pub fn g_bookmark_file_new() -> *mut GBookmarkFile;
2880 pub fn g_bookmark_file_add_application(
2881 bookmark: *mut GBookmarkFile,
2882 uri: *const c_char,
2883 name: *const c_char,
2884 exec: *const c_char,
2885 );
2886 pub fn g_bookmark_file_add_group(
2887 bookmark: *mut GBookmarkFile,
2888 uri: *const c_char,
2889 group: *const c_char,
2890 );
2891 #[cfg(feature = "v2_76")]
2892 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
2893 pub fn g_bookmark_file_copy(bookmark: *mut GBookmarkFile) -> *mut GBookmarkFile;
2894 pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile);
2895 pub fn g_bookmark_file_get_added(
2896 bookmark: *mut GBookmarkFile,
2897 uri: *const c_char,
2898 error: *mut *mut GError,
2899 ) -> time_t;
2900 #[cfg(feature = "v2_66")]
2901 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
2902 pub fn g_bookmark_file_get_added_date_time(
2903 bookmark: *mut GBookmarkFile,
2904 uri: *const c_char,
2905 error: *mut *mut GError,
2906 ) -> *mut GDateTime;
2907 pub fn g_bookmark_file_get_app_info(
2908 bookmark: *mut GBookmarkFile,
2909 uri: *const c_char,
2910 name: *const c_char,
2911 exec: *mut *mut c_char,
2912 count: *mut c_uint,
2913 stamp: *mut time_t,
2914 error: *mut *mut GError,
2915 ) -> gboolean;
2916 #[cfg(feature = "v2_66")]
2917 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
2918 pub fn g_bookmark_file_get_application_info(
2919 bookmark: *mut GBookmarkFile,
2920 uri: *const c_char,
2921 name: *const c_char,
2922 exec: *mut *mut c_char,
2923 count: *mut c_uint,
2924 stamp: *mut *mut GDateTime,
2925 error: *mut *mut GError,
2926 ) -> gboolean;
2927 pub fn g_bookmark_file_get_applications(
2928 bookmark: *mut GBookmarkFile,
2929 uri: *const c_char,
2930 length: *mut size_t,
2931 error: *mut *mut GError,
2932 ) -> *mut *mut c_char;
2933 pub fn g_bookmark_file_get_description(
2934 bookmark: *mut GBookmarkFile,
2935 uri: *const c_char,
2936 error: *mut *mut GError,
2937 ) -> *mut c_char;
2938 pub fn g_bookmark_file_get_groups(
2939 bookmark: *mut GBookmarkFile,
2940 uri: *const c_char,
2941 length: *mut size_t,
2942 error: *mut *mut GError,
2943 ) -> *mut *mut c_char;
2944 pub fn g_bookmark_file_get_icon(
2945 bookmark: *mut GBookmarkFile,
2946 uri: *const c_char,
2947 href: *mut *mut c_char,
2948 mime_type: *mut *mut c_char,
2949 error: *mut *mut GError,
2950 ) -> gboolean;
2951 pub fn g_bookmark_file_get_is_private(
2952 bookmark: *mut GBookmarkFile,
2953 uri: *const c_char,
2954 error: *mut *mut GError,
2955 ) -> gboolean;
2956 pub fn g_bookmark_file_get_mime_type(
2957 bookmark: *mut GBookmarkFile,
2958 uri: *const c_char,
2959 error: *mut *mut GError,
2960 ) -> *mut c_char;
2961 pub fn g_bookmark_file_get_modified(
2962 bookmark: *mut GBookmarkFile,
2963 uri: *const c_char,
2964 error: *mut *mut GError,
2965 ) -> time_t;
2966 #[cfg(feature = "v2_66")]
2967 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
2968 pub fn g_bookmark_file_get_modified_date_time(
2969 bookmark: *mut GBookmarkFile,
2970 uri: *const c_char,
2971 error: *mut *mut GError,
2972 ) -> *mut GDateTime;
2973 pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> c_int;
2974 pub fn g_bookmark_file_get_title(
2975 bookmark: *mut GBookmarkFile,
2976 uri: *const c_char,
2977 error: *mut *mut GError,
2978 ) -> *mut c_char;
2979 pub fn g_bookmark_file_get_uris(
2980 bookmark: *mut GBookmarkFile,
2981 length: *mut size_t,
2982 ) -> *mut *mut c_char;
2983 pub fn g_bookmark_file_get_visited(
2984 bookmark: *mut GBookmarkFile,
2985 uri: *const c_char,
2986 error: *mut *mut GError,
2987 ) -> time_t;
2988 #[cfg(feature = "v2_66")]
2989 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
2990 pub fn g_bookmark_file_get_visited_date_time(
2991 bookmark: *mut GBookmarkFile,
2992 uri: *const c_char,
2993 error: *mut *mut GError,
2994 ) -> *mut GDateTime;
2995 pub fn g_bookmark_file_has_application(
2996 bookmark: *mut GBookmarkFile,
2997 uri: *const c_char,
2998 name: *const c_char,
2999 error: *mut *mut GError,
3000 ) -> gboolean;
3001 pub fn g_bookmark_file_has_group(
3002 bookmark: *mut GBookmarkFile,
3003 uri: *const c_char,
3004 group: *const c_char,
3005 error: *mut *mut GError,
3006 ) -> gboolean;
3007 pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const c_char) -> gboolean;
3008 pub fn g_bookmark_file_load_from_data(
3009 bookmark: *mut GBookmarkFile,
3010 data: *const u8,
3011 length: size_t,
3012 error: *mut *mut GError,
3013 ) -> gboolean;
3014 pub fn g_bookmark_file_load_from_data_dirs(
3015 bookmark: *mut GBookmarkFile,
3016 file: *const c_char,
3017 full_path: *mut *mut c_char,
3018 error: *mut *mut GError,
3019 ) -> gboolean;
3020 pub fn g_bookmark_file_load_from_file(
3021 bookmark: *mut GBookmarkFile,
3022 filename: *const c_char,
3023 error: *mut *mut GError,
3024 ) -> gboolean;
3025 pub fn g_bookmark_file_move_item(
3026 bookmark: *mut GBookmarkFile,
3027 old_uri: *const c_char,
3028 new_uri: *const c_char,
3029 error: *mut *mut GError,
3030 ) -> gboolean;
3031 pub fn g_bookmark_file_remove_application(
3032 bookmark: *mut GBookmarkFile,
3033 uri: *const c_char,
3034 name: *const c_char,
3035 error: *mut *mut GError,
3036 ) -> gboolean;
3037 pub fn g_bookmark_file_remove_group(
3038 bookmark: *mut GBookmarkFile,
3039 uri: *const c_char,
3040 group: *const c_char,
3041 error: *mut *mut GError,
3042 ) -> gboolean;
3043 pub fn g_bookmark_file_remove_item(
3044 bookmark: *mut GBookmarkFile,
3045 uri: *const c_char,
3046 error: *mut *mut GError,
3047 ) -> gboolean;
3048 pub fn g_bookmark_file_set_added(
3049 bookmark: *mut GBookmarkFile,
3050 uri: *const c_char,
3051 added: time_t,
3052 );
3053 #[cfg(feature = "v2_66")]
3054 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
3055 pub fn g_bookmark_file_set_added_date_time(
3056 bookmark: *mut GBookmarkFile,
3057 uri: *const c_char,
3058 added: *mut GDateTime,
3059 );
3060 pub fn g_bookmark_file_set_app_info(
3061 bookmark: *mut GBookmarkFile,
3062 uri: *const c_char,
3063 name: *const c_char,
3064 exec: *const c_char,
3065 count: c_int,
3066 stamp: time_t,
3067 error: *mut *mut GError,
3068 ) -> gboolean;
3069 #[cfg(feature = "v2_66")]
3070 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
3071 pub fn g_bookmark_file_set_application_info(
3072 bookmark: *mut GBookmarkFile,
3073 uri: *const c_char,
3074 name: *const c_char,
3075 exec: *const c_char,
3076 count: c_int,
3077 stamp: *mut GDateTime,
3078 error: *mut *mut GError,
3079 ) -> gboolean;
3080 pub fn g_bookmark_file_set_description(
3081 bookmark: *mut GBookmarkFile,
3082 uri: *const c_char,
3083 description: *const c_char,
3084 );
3085 pub fn g_bookmark_file_set_groups(
3086 bookmark: *mut GBookmarkFile,
3087 uri: *const c_char,
3088 groups: *mut *const c_char,
3089 length: size_t,
3090 );
3091 pub fn g_bookmark_file_set_icon(
3092 bookmark: *mut GBookmarkFile,
3093 uri: *const c_char,
3094 href: *const c_char,
3095 mime_type: *const c_char,
3096 );
3097 pub fn g_bookmark_file_set_is_private(
3098 bookmark: *mut GBookmarkFile,
3099 uri: *const c_char,
3100 is_private: gboolean,
3101 );
3102 pub fn g_bookmark_file_set_mime_type(
3103 bookmark: *mut GBookmarkFile,
3104 uri: *const c_char,
3105 mime_type: *const c_char,
3106 );
3107 pub fn g_bookmark_file_set_modified(
3108 bookmark: *mut GBookmarkFile,
3109 uri: *const c_char,
3110 modified: time_t,
3111 );
3112 #[cfg(feature = "v2_66")]
3113 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
3114 pub fn g_bookmark_file_set_modified_date_time(
3115 bookmark: *mut GBookmarkFile,
3116 uri: *const c_char,
3117 modified: *mut GDateTime,
3118 );
3119 pub fn g_bookmark_file_set_title(
3120 bookmark: *mut GBookmarkFile,
3121 uri: *const c_char,
3122 title: *const c_char,
3123 );
3124 pub fn g_bookmark_file_set_visited(
3125 bookmark: *mut GBookmarkFile,
3126 uri: *const c_char,
3127 visited: time_t,
3128 );
3129 #[cfg(feature = "v2_66")]
3130 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
3131 pub fn g_bookmark_file_set_visited_date_time(
3132 bookmark: *mut GBookmarkFile,
3133 uri: *const c_char,
3134 visited: *mut GDateTime,
3135 );
3136 pub fn g_bookmark_file_to_data(
3137 bookmark: *mut GBookmarkFile,
3138 length: *mut size_t,
3139 error: *mut *mut GError,
3140 ) -> *mut u8;
3141 pub fn g_bookmark_file_to_file(
3142 bookmark: *mut GBookmarkFile,
3143 filename: *const c_char,
3144 error: *mut *mut GError,
3145 ) -> gboolean;
3146 pub fn g_bookmark_file_error_quark() -> GQuark;
3147
3148 pub fn g_byte_array_get_type() -> GType;
3152 pub fn g_byte_array_append(
3153 array: *mut GByteArray,
3154 data: *const u8,
3155 len: c_uint,
3156 ) -> *mut GByteArray;
3157 pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u8;
3158 pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes;
3159 pub fn g_byte_array_new() -> *mut GByteArray;
3160 pub fn g_byte_array_new_take(data: *mut u8, len: size_t) -> *mut GByteArray;
3161 pub fn g_byte_array_prepend(
3162 array: *mut GByteArray,
3163 data: *const u8,
3164 len: c_uint,
3165 ) -> *mut GByteArray;
3166 pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray;
3167 pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray;
3168 pub fn g_byte_array_remove_index_fast(
3169 array: *mut GByteArray,
3170 index_: c_uint,
3171 ) -> *mut GByteArray;
3172 pub fn g_byte_array_remove_range(
3173 array: *mut GByteArray,
3174 index_: c_uint,
3175 length: c_uint,
3176 ) -> *mut GByteArray;
3177 pub fn g_byte_array_set_size(array: *mut GByteArray, length: c_uint) -> *mut GByteArray;
3178 pub fn g_byte_array_sized_new(reserved_size: c_uint) -> *mut GByteArray;
3179 pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc);
3180 pub fn g_byte_array_sort_with_data(
3181 array: *mut GByteArray,
3182 compare_func: GCompareDataFunc,
3183 user_data: gpointer,
3184 );
3185 #[cfg(feature = "v2_64")]
3186 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
3187 pub fn g_byte_array_steal(array: *mut GByteArray, len: *mut size_t) -> *mut u8;
3188 pub fn g_byte_array_unref(array: *mut GByteArray);
3189
3190 pub fn g_bytes_get_type() -> GType;
3194 pub fn g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes;
3195 pub fn g_bytes_new_from_bytes(
3196 bytes: *mut GBytes,
3197 offset: size_t,
3198 length: size_t,
3199 ) -> *mut GBytes;
3200 pub fn g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes;
3201 pub fn g_bytes_new_take(data: gpointer, size: size_t) -> *mut GBytes;
3202 pub fn g_bytes_new_with_free_func(
3203 data: gconstpointer,
3204 size: size_t,
3205 free_func: GDestroyNotify,
3206 user_data: gpointer,
3207 ) -> *mut GBytes;
3208 pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int;
3209 pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean;
3210 pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer;
3211 #[cfg(feature = "v2_70")]
3212 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
3213 pub fn g_bytes_get_region(
3214 bytes: *mut GBytes,
3215 element_size: size_t,
3216 offset: size_t,
3217 n_elements: size_t,
3218 ) -> gconstpointer;
3219 pub fn g_bytes_get_size(bytes: *mut GBytes) -> size_t;
3220 pub fn g_bytes_hash(bytes: gconstpointer) -> c_uint;
3221 pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes;
3222 pub fn g_bytes_unref(bytes: *mut GBytes);
3223 pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray;
3224 pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer;
3225
3226 pub fn g_cache_destroy(cache: *mut GCache);
3230 pub fn g_cache_insert(cache: *mut GCache, key: gpointer) -> gpointer;
3231 pub fn g_cache_key_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer);
3232 pub fn g_cache_remove(cache: *mut GCache, value: gconstpointer);
3233 pub fn g_cache_value_foreach(cache: *mut GCache, func: GHFunc, user_data: gpointer);
3234 pub fn g_cache_new(
3235 value_new_func: GCacheNewFunc,
3236 value_destroy_func: GCacheDestroyFunc,
3237 key_dup_func: GCacheDupFunc,
3238 key_destroy_func: GCacheDestroyFunc,
3239 hash_key_func: GHashFunc,
3240 hash_value_func: GHashFunc,
3241 key_equal_func: GEqualFunc,
3242 ) -> *mut GCache;
3243
3244 pub fn g_checksum_get_type() -> GType;
3248 pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum;
3249 pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum;
3250 pub fn g_checksum_free(checksum: *mut GChecksum);
3251 pub fn g_checksum_get_digest(
3252 checksum: *mut GChecksum,
3253 buffer: *mut u8,
3254 digest_len: *mut size_t,
3255 );
3256 pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char;
3257 pub fn g_checksum_reset(checksum: *mut GChecksum);
3258 pub fn g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t);
3259 pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t;
3260
3261 pub fn g_completion_add_items(cmp: *mut GCompletion, items: *mut GList);
3265 pub fn g_completion_clear_items(cmp: *mut GCompletion);
3266 pub fn g_completion_complete(
3267 cmp: *mut GCompletion,
3268 prefix: *const c_char,
3269 new_prefix: *mut *mut c_char,
3270 ) -> *mut GList;
3271 pub fn g_completion_complete_utf8(
3272 cmp: *mut GCompletion,
3273 prefix: *const c_char,
3274 new_prefix: *mut *mut c_char,
3275 ) -> *mut GList;
3276 pub fn g_completion_free(cmp: *mut GCompletion);
3277 pub fn g_completion_remove_items(cmp: *mut GCompletion, items: *mut GList);
3278 pub fn g_completion_set_compare(cmp: *mut GCompletion, strncmp_func: GCompletionStrncmpFunc);
3279 pub fn g_completion_new(func: GCompletionFunc) -> *mut GCompletion;
3280
3281 pub fn g_cond_broadcast(cond: *mut GCond);
3285 pub fn g_cond_clear(cond: *mut GCond);
3286 pub fn g_cond_free(cond: *mut GCond);
3287 pub fn g_cond_init(cond: *mut GCond);
3288 pub fn g_cond_signal(cond: *mut GCond);
3289 pub fn g_cond_timed_wait(
3290 cond: *mut GCond,
3291 mutex: *mut GMutex,
3292 abs_time: *mut GTimeVal,
3293 ) -> gboolean;
3294 pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex);
3295 pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean;
3296 pub fn g_cond_new() -> *mut GCond;
3297
3298 pub fn g_date_get_type() -> GType;
3302 pub fn g_date_new() -> *mut GDate;
3303 pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate;
3304 pub fn g_date_new_julian(julian_day: u32) -> *mut GDate;
3305 pub fn g_date_add_days(date: *mut GDate, n_days: c_uint);
3306 pub fn g_date_add_months(date: *mut GDate, n_months: c_uint);
3307 pub fn g_date_add_years(date: *mut GDate, n_years: c_uint);
3308 pub fn g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate);
3309 pub fn g_date_clear(date: *mut GDate, n_dates: c_uint);
3310 pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> c_int;
3311 pub fn g_date_copy(date: *const GDate) -> *mut GDate;
3312 pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> c_int;
3313 pub fn g_date_free(date: *mut GDate);
3314 pub fn g_date_get_day(date: *const GDate) -> GDateDay;
3315 pub fn g_date_get_day_of_year(date: *const GDate) -> c_uint;
3316 pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> c_uint;
3317 pub fn g_date_get_julian(date: *const GDate) -> u32;
3318 pub fn g_date_get_monday_week_of_year(date: *const GDate) -> c_uint;
3319 pub fn g_date_get_month(date: *const GDate) -> GDateMonth;
3320 pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> c_uint;
3321 #[cfg(feature = "v2_86")]
3322 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
3323 pub fn g_date_get_week_of_year(date: *const GDate, first_day_of_week: GDateWeekday) -> c_uint;
3324 pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday;
3325 pub fn g_date_get_year(date: *const GDate) -> GDateYear;
3326 pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean;
3327 pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean;
3328 pub fn g_date_order(date1: *mut GDate, date2: *mut GDate);
3329 pub fn g_date_set_day(date: *mut GDate, day: GDateDay);
3330 pub fn g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear);
3331 pub fn g_date_set_julian(date: *mut GDate, julian_date: u32);
3332 pub fn g_date_set_month(date: *mut GDate, month: GDateMonth);
3333 pub fn g_date_set_parse(date: *mut GDate, str: *const c_char);
3334 pub fn g_date_set_time(date: *mut GDate, time_: GTime);
3335 pub fn g_date_set_time_t(date: *mut GDate, timet: time_t);
3336 pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal);
3337 pub fn g_date_set_year(date: *mut GDate, year: GDateYear);
3338 pub fn g_date_subtract_days(date: *mut GDate, n_days: c_uint);
3339 pub fn g_date_subtract_months(date: *mut GDate, n_months: c_uint);
3340 pub fn g_date_subtract_years(date: *mut GDate, n_years: c_uint);
3341 pub fn g_date_valid(date: *const GDate) -> gboolean;
3343 pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> u8;
3344 pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> u8;
3345 pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> u8;
3346 #[cfg(feature = "v2_86")]
3347 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
3348 pub fn g_date_get_weeks_in_year(year: GDateYear, first_day_of_week: GDateWeekday) -> u8;
3349 pub fn g_date_is_leap_year(year: GDateYear) -> gboolean;
3350 pub fn g_date_strftime(
3351 s: *mut c_char,
3352 slen: size_t,
3353 format: *const c_char,
3354 date: *const GDate,
3355 ) -> size_t;
3356 pub fn g_date_valid_day(day: GDateDay) -> gboolean;
3357 pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean;
3358 pub fn g_date_valid_julian(julian_date: u32) -> gboolean;
3359 pub fn g_date_valid_month(month: GDateMonth) -> gboolean;
3360 pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean;
3361 pub fn g_date_valid_year(year: GDateYear) -> gboolean;
3362
3363 pub fn g_date_time_get_type() -> GType;
3367 pub fn g_date_time_new(
3368 tz: *mut GTimeZone,
3369 year: c_int,
3370 month: c_int,
3371 day: c_int,
3372 hour: c_int,
3373 minute: c_int,
3374 seconds: c_double,
3375 ) -> *mut GDateTime;
3376 pub fn g_date_time_new_from_iso8601(
3377 text: *const c_char,
3378 default_tz: *mut GTimeZone,
3379 ) -> *mut GDateTime;
3380 pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime;
3381 pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime;
3382 pub fn g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime;
3383 #[cfg(feature = "v2_80")]
3384 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
3385 pub fn g_date_time_new_from_unix_local_usec(usecs: i64) -> *mut GDateTime;
3386 pub fn g_date_time_new_from_unix_utc(t: i64) -> *mut GDateTime;
3387 #[cfg(feature = "v2_80")]
3388 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
3389 pub fn g_date_time_new_from_unix_utc_usec(usecs: i64) -> *mut GDateTime;
3390 pub fn g_date_time_new_local(
3391 year: c_int,
3392 month: c_int,
3393 day: c_int,
3394 hour: c_int,
3395 minute: c_int,
3396 seconds: c_double,
3397 ) -> *mut GDateTime;
3398 pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime;
3399 pub fn g_date_time_new_now_local() -> *mut GDateTime;
3400 pub fn g_date_time_new_now_utc() -> *mut GDateTime;
3401 pub fn g_date_time_new_utc(
3402 year: c_int,
3403 month: c_int,
3404 day: c_int,
3405 hour: c_int,
3406 minute: c_int,
3407 seconds: c_double,
3408 ) -> *mut GDateTime;
3409 pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime;
3410 pub fn g_date_time_add_days(datetime: *mut GDateTime, days: c_int) -> *mut GDateTime;
3411 pub fn g_date_time_add_full(
3412 datetime: *mut GDateTime,
3413 years: c_int,
3414 months: c_int,
3415 days: c_int,
3416 hours: c_int,
3417 minutes: c_int,
3418 seconds: c_double,
3419 ) -> *mut GDateTime;
3420 pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: c_int) -> *mut GDateTime;
3421 pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: c_int) -> *mut GDateTime;
3422 pub fn g_date_time_add_months(datetime: *mut GDateTime, months: c_int) -> *mut GDateTime;
3423 pub fn g_date_time_add_seconds(datetime: *mut GDateTime, seconds: c_double) -> *mut GDateTime;
3424 pub fn g_date_time_add_weeks(datetime: *mut GDateTime, weeks: c_int) -> *mut GDateTime;
3425 pub fn g_date_time_add_years(datetime: *mut GDateTime, years: c_int) -> *mut GDateTime;
3426 pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> c_int;
3427 pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan;
3428 pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean;
3429 pub fn g_date_time_format(datetime: *mut GDateTime, format: *const c_char) -> *mut c_char;
3430 #[cfg(feature = "v2_62")]
3431 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
3432 pub fn g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut c_char;
3433 pub fn g_date_time_get_day_of_month(datetime: *mut GDateTime) -> c_int;
3434 pub fn g_date_time_get_day_of_week(datetime: *mut GDateTime) -> c_int;
3435 pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> c_int;
3436 pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> c_int;
3437 pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> c_int;
3438 pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> c_int;
3439 pub fn g_date_time_get_month(datetime: *mut GDateTime) -> c_int;
3440 pub fn g_date_time_get_second(datetime: *mut GDateTime) -> c_int;
3441 pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> c_double;
3442 #[cfg(feature = "v2_58")]
3443 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
3444 pub fn g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone;
3445 pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const c_char;
3446 pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan;
3447 pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> c_int;
3448 pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> c_int;
3449 pub fn g_date_time_get_year(datetime: *mut GDateTime) -> c_int;
3450 pub fn g_date_time_get_ymd(
3451 datetime: *mut GDateTime,
3452 year: *mut c_int,
3453 month: *mut c_int,
3454 day: *mut c_int,
3455 );
3456 pub fn g_date_time_hash(datetime: gconstpointer) -> c_uint;
3457 pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean;
3458 pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime;
3459 pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime;
3460 pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean;
3461 pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime;
3462 pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> i64;
3463 #[cfg(feature = "v2_80")]
3464 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
3465 pub fn g_date_time_to_unix_usec(datetime: *mut GDateTime) -> i64;
3466 pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime;
3467 pub fn g_date_time_unref(datetime: *mut GDateTime);
3468
3469 pub fn g_dir_get_type() -> GType;
3473 pub fn g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir;
3474 pub fn g_dir_close(dir: *mut GDir);
3475 pub fn g_dir_read_name(dir: *mut GDir) -> *const c_char;
3476 #[cfg(feature = "v2_80")]
3477 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
3478 pub fn g_dir_ref(dir: *mut GDir) -> *mut GDir;
3479 pub fn g_dir_rewind(dir: *mut GDir);
3480 #[cfg(feature = "v2_80")]
3481 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
3482 pub fn g_dir_unref(dir: *mut GDir);
3483 pub fn g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char;
3484
3485 pub fn g_error_get_type() -> GType;
3489 pub fn g_error_new(domain: GQuark, code: c_int, format: *const c_char, ...) -> *mut GError;
3490 pub fn g_error_new_literal(domain: GQuark, code: c_int, message: *const c_char) -> *mut GError;
3491 pub fn g_error_copy(error: *const GError) -> *mut GError;
3493 pub fn g_error_free(error: *mut GError);
3494 pub fn g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean;
3495 #[cfg(feature = "v2_68")]
3496 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
3497 pub fn g_error_domain_register(
3498 error_type_name: *const c_char,
3499 error_type_private_size: size_t,
3500 error_type_init: GErrorInitFunc,
3501 error_type_copy: GErrorCopyFunc,
3502 error_type_clear: GErrorClearFunc,
3503 ) -> GQuark;
3504 #[cfg(feature = "v2_68")]
3505 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
3506 pub fn g_error_domain_register_static(
3507 error_type_name: *const c_char,
3508 error_type_private_size: size_t,
3509 error_type_init: GErrorInitFunc,
3510 error_type_copy: GErrorCopyFunc,
3511 error_type_clear: GErrorClearFunc,
3512 ) -> GQuark;
3513
3514 pub fn g_hash_table_get_type() -> GType;
3518 pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean;
3519 pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
3520 pub fn g_hash_table_destroy(hash_table: *mut GHashTable);
3521 pub fn g_hash_table_find(
3522 hash_table: *mut GHashTable,
3523 predicate: GHRFunc,
3524 user_data: gpointer,
3525 ) -> gpointer;
3526 pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer);
3527 pub fn g_hash_table_foreach_remove(
3528 hash_table: *mut GHashTable,
3529 func: GHRFunc,
3530 user_data: gpointer,
3531 ) -> c_uint;
3532 pub fn g_hash_table_foreach_steal(
3533 hash_table: *mut GHashTable,
3534 func: GHRFunc,
3535 user_data: gpointer,
3536 ) -> c_uint;
3537 pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList;
3538 pub fn g_hash_table_get_keys_as_array(
3539 hash_table: *mut GHashTable,
3540 length: *mut c_uint,
3541 ) -> *mut gpointer;
3542 #[cfg(feature = "v2_76")]
3543 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
3544 pub fn g_hash_table_get_keys_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray;
3545 pub fn g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList;
3546 #[cfg(feature = "v2_76")]
3547 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
3548 pub fn g_hash_table_get_values_as_ptr_array(hash_table: *mut GHashTable) -> *mut GPtrArray;
3549 pub fn g_hash_table_insert(
3550 hash_table: *mut GHashTable,
3551 key: gpointer,
3552 value: gpointer,
3553 ) -> gboolean;
3554 pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer;
3555 pub fn g_hash_table_lookup_extended(
3556 hash_table: *mut GHashTable,
3557 lookup_key: gconstpointer,
3558 orig_key: *mut gpointer,
3559 value: *mut gpointer,
3560 ) -> gboolean;
3561 pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable;
3562 pub fn g_hash_table_new_full(
3563 hash_func: GHashFunc,
3564 key_equal_func: GEqualFunc,
3565 key_destroy_func: GDestroyNotify,
3566 value_destroy_func: GDestroyNotify,
3567 ) -> *mut GHashTable;
3568 #[cfg(feature = "v2_72")]
3569 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
3570 pub fn g_hash_table_new_similar(other_hash_table: *mut GHashTable) -> *mut GHashTable;
3571 pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable;
3572 pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
3573 pub fn g_hash_table_remove_all(hash_table: *mut GHashTable);
3574 pub fn g_hash_table_replace(
3575 hash_table: *mut GHashTable,
3576 key: gpointer,
3577 value: gpointer,
3578 ) -> gboolean;
3579 pub fn g_hash_table_size(hash_table: *mut GHashTable) -> c_uint;
3580 pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean;
3581 pub fn g_hash_table_steal_all(hash_table: *mut GHashTable);
3582 #[cfg(feature = "v2_76")]
3583 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
3584 pub fn g_hash_table_steal_all_keys(hash_table: *mut GHashTable) -> *mut GPtrArray;
3585 #[cfg(feature = "v2_76")]
3586 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
3587 pub fn g_hash_table_steal_all_values(hash_table: *mut GHashTable) -> *mut GPtrArray;
3588 #[cfg(feature = "v2_58")]
3589 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
3590 pub fn g_hash_table_steal_extended(
3591 hash_table: *mut GHashTable,
3592 lookup_key: gconstpointer,
3593 stolen_key: *mut gpointer,
3594 stolen_value: *mut gpointer,
3595 ) -> gboolean;
3596 pub fn g_hash_table_unref(hash_table: *mut GHashTable);
3597
3598 pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable;
3602 pub fn g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable);
3603 pub fn g_hash_table_iter_next(
3604 iter: *mut GHashTableIter,
3605 key: *mut gpointer,
3606 value: *mut gpointer,
3607 ) -> gboolean;
3608 pub fn g_hash_table_iter_remove(iter: *mut GHashTableIter);
3609 pub fn g_hash_table_iter_replace(iter: *mut GHashTableIter, value: gpointer);
3610 pub fn g_hash_table_iter_steal(iter: *mut GHashTableIter);
3611
3612 pub fn g_hmac_get_type() -> GType;
3616 pub fn g_hmac_new(digest_type: GChecksumType, key: *const u8, key_len: size_t) -> *mut GHmac;
3617 pub fn g_hmac_copy(hmac: *const GHmac) -> *mut GHmac;
3618 pub fn g_hmac_get_digest(hmac: *mut GHmac, buffer: *mut u8, digest_len: *mut size_t);
3619 pub fn g_hmac_get_string(hmac: *mut GHmac) -> *const c_char;
3620 pub fn g_hmac_ref(hmac: *mut GHmac) -> *mut GHmac;
3621 pub fn g_hmac_unref(hmac: *mut GHmac);
3622 pub fn g_hmac_update(hmac: *mut GHmac, data: *const u8, length: ssize_t);
3623
3624 pub fn g_hook_compare_ids(new_hook: *mut GHook, sibling: *mut GHook) -> c_int;
3628 pub fn g_hook_alloc(hook_list: *mut GHookList) -> *mut GHook;
3629 pub fn g_hook_destroy(hook_list: *mut GHookList, hook_id: c_ulong) -> gboolean;
3630 pub fn g_hook_destroy_link(hook_list: *mut GHookList, hook: *mut GHook);
3631 pub fn g_hook_find(
3632 hook_list: *mut GHookList,
3633 need_valids: gboolean,
3634 func: GHookFindFunc,
3635 data: gpointer,
3636 ) -> *mut GHook;
3637 pub fn g_hook_find_data(
3638 hook_list: *mut GHookList,
3639 need_valids: gboolean,
3640 data: gpointer,
3641 ) -> *mut GHook;
3642 pub fn g_hook_find_func(
3643 hook_list: *mut GHookList,
3644 need_valids: gboolean,
3645 func: gpointer,
3646 ) -> *mut GHook;
3647 pub fn g_hook_find_func_data(
3648 hook_list: *mut GHookList,
3649 need_valids: gboolean,
3650 func: gpointer,
3651 data: gpointer,
3652 ) -> *mut GHook;
3653 pub fn g_hook_first_valid(hook_list: *mut GHookList, may_be_in_call: gboolean) -> *mut GHook;
3654 pub fn g_hook_free(hook_list: *mut GHookList, hook: *mut GHook);
3655 pub fn g_hook_get(hook_list: *mut GHookList, hook_id: c_ulong) -> *mut GHook;
3656 pub fn g_hook_insert_before(hook_list: *mut GHookList, sibling: *mut GHook, hook: *mut GHook);
3657 pub fn g_hook_insert_sorted(
3658 hook_list: *mut GHookList,
3659 hook: *mut GHook,
3660 func: GHookCompareFunc,
3661 );
3662 pub fn g_hook_next_valid(
3663 hook_list: *mut GHookList,
3664 hook: *mut GHook,
3665 may_be_in_call: gboolean,
3666 ) -> *mut GHook;
3667 pub fn g_hook_prepend(hook_list: *mut GHookList, hook: *mut GHook);
3668 pub fn g_hook_ref(hook_list: *mut GHookList, hook: *mut GHook) -> *mut GHook;
3669 pub fn g_hook_unref(hook_list: *mut GHookList, hook: *mut GHook);
3670
3671 pub fn g_hook_list_clear(hook_list: *mut GHookList);
3675 pub fn g_hook_list_init(hook_list: *mut GHookList, hook_size: c_uint);
3676 pub fn g_hook_list_invoke(hook_list: *mut GHookList, may_recurse: gboolean);
3677 pub fn g_hook_list_invoke_check(hook_list: *mut GHookList, may_recurse: gboolean);
3678 pub fn g_hook_list_marshal(
3679 hook_list: *mut GHookList,
3680 may_recurse: gboolean,
3681 marshaller: GHookMarshaller,
3682 marshal_data: gpointer,
3683 );
3684 pub fn g_hook_list_marshal_check(
3685 hook_list: *mut GHookList,
3686 may_recurse: gboolean,
3687 marshaller: GHookCheckMarshaller,
3688 marshal_data: gpointer,
3689 );
3690
3691 pub fn g_iconv_close(converter: GIConv) -> c_int;
3695 pub fn g_iconv_open(to_codeset: *const c_char, from_codeset: *const c_char) -> GIConv;
3696
3697 pub fn g_io_channel_get_type() -> GType;
3701 pub fn g_io_channel_new_file(
3702 filename: *const c_char,
3703 mode: *const c_char,
3704 error: *mut *mut GError,
3705 ) -> *mut GIOChannel;
3706 pub fn g_io_channel_unix_new(fd: c_int) -> *mut GIOChannel;
3707 pub fn g_io_channel_close(channel: *mut GIOChannel);
3708 pub fn g_io_channel_flush(channel: *mut GIOChannel, error: *mut *mut GError) -> GIOStatus;
3709 pub fn g_io_channel_get_buffer_condition(channel: *mut GIOChannel) -> GIOCondition;
3710 pub fn g_io_channel_get_buffer_size(channel: *mut GIOChannel) -> size_t;
3711 pub fn g_io_channel_get_buffered(channel: *mut GIOChannel) -> gboolean;
3712 pub fn g_io_channel_get_close_on_unref(channel: *mut GIOChannel) -> gboolean;
3713 pub fn g_io_channel_get_encoding(channel: *mut GIOChannel) -> *const c_char;
3714 pub fn g_io_channel_get_flags(channel: *mut GIOChannel) -> GIOFlags;
3715 pub fn g_io_channel_get_line_term(
3716 channel: *mut GIOChannel,
3717 length: *mut c_int,
3718 ) -> *const c_char;
3719 pub fn g_io_channel_init(channel: *mut GIOChannel);
3720 pub fn g_io_channel_read(
3721 channel: *mut GIOChannel,
3722 buf: *mut c_char,
3723 count: size_t,
3724 bytes_read: *mut size_t,
3725 ) -> GIOError;
3726 pub fn g_io_channel_read_chars(
3727 channel: *mut GIOChannel,
3728 buf: *mut u8,
3729 count: size_t,
3730 bytes_read: *mut size_t,
3731 error: *mut *mut GError,
3732 ) -> GIOStatus;
3733 pub fn g_io_channel_read_line(
3734 channel: *mut GIOChannel,
3735 str_return: *mut *mut c_char,
3736 length: *mut size_t,
3737 terminator_pos: *mut size_t,
3738 error: *mut *mut GError,
3739 ) -> GIOStatus;
3740 pub fn g_io_channel_read_line_string(
3741 channel: *mut GIOChannel,
3742 buffer: *mut GString,
3743 terminator_pos: *mut size_t,
3744 error: *mut *mut GError,
3745 ) -> GIOStatus;
3746 pub fn g_io_channel_read_to_end(
3747 channel: *mut GIOChannel,
3748 str_return: *mut *mut u8,
3749 length: *mut size_t,
3750 error: *mut *mut GError,
3751 ) -> GIOStatus;
3752 pub fn g_io_channel_read_unichar(
3753 channel: *mut GIOChannel,
3754 thechar: *mut u32,
3755 error: *mut *mut GError,
3756 ) -> GIOStatus;
3757 pub fn g_io_channel_ref(channel: *mut GIOChannel) -> *mut GIOChannel;
3758 pub fn g_io_channel_seek(channel: *mut GIOChannel, offset: i64, type_: GSeekType) -> GIOError;
3759 pub fn g_io_channel_seek_position(
3760 channel: *mut GIOChannel,
3761 offset: i64,
3762 type_: GSeekType,
3763 error: *mut *mut GError,
3764 ) -> GIOStatus;
3765 pub fn g_io_channel_set_buffer_size(channel: *mut GIOChannel, size: size_t);
3766 pub fn g_io_channel_set_buffered(channel: *mut GIOChannel, buffered: gboolean);
3767 pub fn g_io_channel_set_close_on_unref(channel: *mut GIOChannel, do_close: gboolean);
3768 pub fn g_io_channel_set_encoding(
3769 channel: *mut GIOChannel,
3770 encoding: *const c_char,
3771 error: *mut *mut GError,
3772 ) -> GIOStatus;
3773 pub fn g_io_channel_set_flags(
3774 channel: *mut GIOChannel,
3775 flags: GIOFlags,
3776 error: *mut *mut GError,
3777 ) -> GIOStatus;
3778 pub fn g_io_channel_set_line_term(
3779 channel: *mut GIOChannel,
3780 line_term: *const c_char,
3781 length: c_int,
3782 );
3783 pub fn g_io_channel_shutdown(
3784 channel: *mut GIOChannel,
3785 flush: gboolean,
3786 error: *mut *mut GError,
3787 ) -> GIOStatus;
3788 pub fn g_io_channel_unix_get_fd(channel: *mut GIOChannel) -> c_int;
3789 pub fn g_io_channel_unref(channel: *mut GIOChannel);
3790 pub fn g_io_channel_write(
3791 channel: *mut GIOChannel,
3792 buf: *const c_char,
3793 count: size_t,
3794 bytes_written: *mut size_t,
3795 ) -> GIOError;
3796 pub fn g_io_channel_write_chars(
3797 channel: *mut GIOChannel,
3798 buf: *const u8,
3799 count: ssize_t,
3800 bytes_written: *mut size_t,
3801 error: *mut *mut GError,
3802 ) -> GIOStatus;
3803 pub fn g_io_channel_write_unichar(
3804 channel: *mut GIOChannel,
3805 thechar: u32,
3806 error: *mut *mut GError,
3807 ) -> GIOStatus;
3808 pub fn g_io_channel_error_from_errno(en: c_int) -> GIOChannelError;
3809 pub fn g_io_channel_error_quark() -> GQuark;
3810
3811 pub fn g_key_file_get_type() -> GType;
3815 pub fn g_key_file_new() -> *mut GKeyFile;
3816 pub fn g_key_file_free(key_file: *mut GKeyFile);
3817 pub fn g_key_file_get_boolean(
3818 key_file: *mut GKeyFile,
3819 group_name: *const c_char,
3820 key: *const c_char,
3821 error: *mut *mut GError,
3822 ) -> gboolean;
3823 pub fn g_key_file_get_boolean_list(
3824 key_file: *mut GKeyFile,
3825 group_name: *const c_char,
3826 key: *const c_char,
3827 length: *mut size_t,
3828 error: *mut *mut GError,
3829 ) -> *mut gboolean;
3830 pub fn g_key_file_get_comment(
3831 key_file: *mut GKeyFile,
3832 group_name: *const c_char,
3833 key: *const c_char,
3834 error: *mut *mut GError,
3835 ) -> *mut c_char;
3836 pub fn g_key_file_get_double(
3837 key_file: *mut GKeyFile,
3838 group_name: *const c_char,
3839 key: *const c_char,
3840 error: *mut *mut GError,
3841 ) -> c_double;
3842 pub fn g_key_file_get_double_list(
3843 key_file: *mut GKeyFile,
3844 group_name: *const c_char,
3845 key: *const c_char,
3846 length: *mut size_t,
3847 error: *mut *mut GError,
3848 ) -> *mut c_double;
3849 pub fn g_key_file_get_groups(key_file: *mut GKeyFile, length: *mut size_t) -> *mut *mut c_char;
3850 pub fn g_key_file_get_int64(
3851 key_file: *mut GKeyFile,
3852 group_name: *const c_char,
3853 key: *const c_char,
3854 error: *mut *mut GError,
3855 ) -> i64;
3856 pub fn g_key_file_get_integer(
3857 key_file: *mut GKeyFile,
3858 group_name: *const c_char,
3859 key: *const c_char,
3860 error: *mut *mut GError,
3861 ) -> c_int;
3862 pub fn g_key_file_get_integer_list(
3863 key_file: *mut GKeyFile,
3864 group_name: *const c_char,
3865 key: *const c_char,
3866 length: *mut size_t,
3867 error: *mut *mut GError,
3868 ) -> *mut c_int;
3869 pub fn g_key_file_get_keys(
3870 key_file: *mut GKeyFile,
3871 group_name: *const c_char,
3872 length: *mut size_t,
3873 error: *mut *mut GError,
3874 ) -> *mut *mut c_char;
3875 pub fn g_key_file_get_locale_for_key(
3876 key_file: *mut GKeyFile,
3877 group_name: *const c_char,
3878 key: *const c_char,
3879 locale: *const c_char,
3880 ) -> *mut c_char;
3881 pub fn g_key_file_get_locale_string(
3882 key_file: *mut GKeyFile,
3883 group_name: *const c_char,
3884 key: *const c_char,
3885 locale: *const c_char,
3886 error: *mut *mut GError,
3887 ) -> *mut c_char;
3888 pub fn g_key_file_get_locale_string_list(
3889 key_file: *mut GKeyFile,
3890 group_name: *const c_char,
3891 key: *const c_char,
3892 locale: *const c_char,
3893 length: *mut size_t,
3894 error: *mut *mut GError,
3895 ) -> *mut *mut c_char;
3896 pub fn g_key_file_get_start_group(key_file: *mut GKeyFile) -> *mut c_char;
3897 pub fn g_key_file_get_string(
3898 key_file: *mut GKeyFile,
3899 group_name: *const c_char,
3900 key: *const c_char,
3901 error: *mut *mut GError,
3902 ) -> *mut c_char;
3903 pub fn g_key_file_get_string_list(
3904 key_file: *mut GKeyFile,
3905 group_name: *const c_char,
3906 key: *const c_char,
3907 length: *mut size_t,
3908 error: *mut *mut GError,
3909 ) -> *mut *mut c_char;
3910 pub fn g_key_file_get_uint64(
3911 key_file: *mut GKeyFile,
3912 group_name: *const c_char,
3913 key: *const c_char,
3914 error: *mut *mut GError,
3915 ) -> u64;
3916 pub fn g_key_file_get_value(
3917 key_file: *mut GKeyFile,
3918 group_name: *const c_char,
3919 key: *const c_char,
3920 error: *mut *mut GError,
3921 ) -> *mut c_char;
3922 pub fn g_key_file_has_group(key_file: *mut GKeyFile, group_name: *const c_char) -> gboolean;
3923 pub fn g_key_file_has_key(
3924 key_file: *mut GKeyFile,
3925 group_name: *const c_char,
3926 key: *const c_char,
3927 error: *mut *mut GError,
3928 ) -> gboolean;
3929 pub fn g_key_file_load_from_bytes(
3930 key_file: *mut GKeyFile,
3931 bytes: *mut GBytes,
3932 flags: GKeyFileFlags,
3933 error: *mut *mut GError,
3934 ) -> gboolean;
3935 pub fn g_key_file_load_from_data(
3936 key_file: *mut GKeyFile,
3937 data: *const c_char,
3938 length: size_t,
3939 flags: GKeyFileFlags,
3940 error: *mut *mut GError,
3941 ) -> gboolean;
3942 pub fn g_key_file_load_from_data_dirs(
3943 key_file: *mut GKeyFile,
3944 file: *const c_char,
3945 full_path: *mut *mut c_char,
3946 flags: GKeyFileFlags,
3947 error: *mut *mut GError,
3948 ) -> gboolean;
3949 pub fn g_key_file_load_from_dirs(
3950 key_file: *mut GKeyFile,
3951 file: *const c_char,
3952 search_dirs: *mut *const c_char,
3953 full_path: *mut *mut c_char,
3954 flags: GKeyFileFlags,
3955 error: *mut *mut GError,
3956 ) -> gboolean;
3957 pub fn g_key_file_load_from_file(
3958 key_file: *mut GKeyFile,
3959 file: *const c_char,
3960 flags: GKeyFileFlags,
3961 error: *mut *mut GError,
3962 ) -> gboolean;
3963 #[cfg(feature = "v2_90")]
3964 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
3965 pub fn g_key_file_load_unix_configurations(
3966 key_file: *mut GKeyFile,
3967 project: *const c_char,
3968 etc_subdir: *const c_char,
3969 run_subdir: *const c_char,
3970 usr_subdir: *const c_char,
3971 config_name: *const c_char,
3972 config_suffix: *const c_char,
3973 flags: GKeyFileFlags,
3974 error: *mut *mut GError,
3975 ) -> gboolean;
3976 pub fn g_key_file_ref(key_file: *mut GKeyFile) -> *mut GKeyFile;
3977 pub fn g_key_file_remove_comment(
3978 key_file: *mut GKeyFile,
3979 group_name: *const c_char,
3980 key: *const c_char,
3981 error: *mut *mut GError,
3982 ) -> gboolean;
3983 pub fn g_key_file_remove_group(
3984 key_file: *mut GKeyFile,
3985 group_name: *const c_char,
3986 error: *mut *mut GError,
3987 ) -> gboolean;
3988 pub fn g_key_file_remove_key(
3989 key_file: *mut GKeyFile,
3990 group_name: *const c_char,
3991 key: *const c_char,
3992 error: *mut *mut GError,
3993 ) -> gboolean;
3994 pub fn g_key_file_save_to_file(
3995 key_file: *mut GKeyFile,
3996 filename: *const c_char,
3997 error: *mut *mut GError,
3998 ) -> gboolean;
3999 pub fn g_key_file_set_boolean(
4000 key_file: *mut GKeyFile,
4001 group_name: *const c_char,
4002 key: *const c_char,
4003 value: gboolean,
4004 );
4005 pub fn g_key_file_set_boolean_list(
4006 key_file: *mut GKeyFile,
4007 group_name: *const c_char,
4008 key: *const c_char,
4009 list: *mut gboolean,
4010 length: size_t,
4011 );
4012 pub fn g_key_file_set_comment(
4013 key_file: *mut GKeyFile,
4014 group_name: *const c_char,
4015 key: *const c_char,
4016 comment: *const c_char,
4017 error: *mut *mut GError,
4018 ) -> gboolean;
4019 pub fn g_key_file_set_double(
4020 key_file: *mut GKeyFile,
4021 group_name: *const c_char,
4022 key: *const c_char,
4023 value: c_double,
4024 );
4025 pub fn g_key_file_set_double_list(
4026 key_file: *mut GKeyFile,
4027 group_name: *const c_char,
4028 key: *const c_char,
4029 list: *mut c_double,
4030 length: size_t,
4031 );
4032 pub fn g_key_file_set_int64(
4033 key_file: *mut GKeyFile,
4034 group_name: *const c_char,
4035 key: *const c_char,
4036 value: i64,
4037 );
4038 pub fn g_key_file_set_integer(
4039 key_file: *mut GKeyFile,
4040 group_name: *const c_char,
4041 key: *const c_char,
4042 value: c_int,
4043 );
4044 pub fn g_key_file_set_integer_list(
4045 key_file: *mut GKeyFile,
4046 group_name: *const c_char,
4047 key: *const c_char,
4048 list: *mut c_int,
4049 length: size_t,
4050 );
4051 pub fn g_key_file_set_list_separator(key_file: *mut GKeyFile, separator: c_char);
4052 pub fn g_key_file_set_locale_string(
4053 key_file: *mut GKeyFile,
4054 group_name: *const c_char,
4055 key: *const c_char,
4056 locale: *const c_char,
4057 string: *const c_char,
4058 );
4059 pub fn g_key_file_set_locale_string_list(
4060 key_file: *mut GKeyFile,
4061 group_name: *const c_char,
4062 key: *const c_char,
4063 locale: *const c_char,
4064 list: *const *const c_char,
4065 length: size_t,
4066 );
4067 pub fn g_key_file_set_string(
4068 key_file: *mut GKeyFile,
4069 group_name: *const c_char,
4070 key: *const c_char,
4071 string: *const c_char,
4072 );
4073 pub fn g_key_file_set_string_list(
4074 key_file: *mut GKeyFile,
4075 group_name: *const c_char,
4076 key: *const c_char,
4077 list: *const *const c_char,
4078 length: size_t,
4079 );
4080 pub fn g_key_file_set_uint64(
4081 key_file: *mut GKeyFile,
4082 group_name: *const c_char,
4083 key: *const c_char,
4084 value: u64,
4085 );
4086 pub fn g_key_file_set_value(
4087 key_file: *mut GKeyFile,
4088 group_name: *const c_char,
4089 key: *const c_char,
4090 value: *const c_char,
4091 );
4092 pub fn g_key_file_to_data(
4093 key_file: *mut GKeyFile,
4094 length: *mut size_t,
4095 error: *mut *mut GError,
4096 ) -> *mut c_char;
4097 pub fn g_key_file_unref(key_file: *mut GKeyFile);
4098 pub fn g_key_file_error_quark() -> GQuark;
4099
4100 pub fn g_list_alloc() -> *mut GList;
4104 pub fn g_list_append(list: *mut GList, data: gpointer) -> *mut GList;
4105 pub fn g_list_concat(list1: *mut GList, list2: *mut GList) -> *mut GList;
4106 pub fn g_list_copy(list: *mut GList) -> *mut GList;
4107 pub fn g_list_copy_deep(list: *mut GList, func: GCopyFunc, user_data: gpointer) -> *mut GList;
4108 pub fn g_list_delete_link(list: *mut GList, link_: *mut GList) -> *mut GList;
4109 pub fn g_list_find(list: *mut GList, data: gconstpointer) -> *mut GList;
4110 pub fn g_list_find_custom(
4111 list: *mut GList,
4112 data: gconstpointer,
4113 func: GCompareFunc,
4114 ) -> *mut GList;
4115 pub fn g_list_first(list: *mut GList) -> *mut GList;
4116 pub fn g_list_foreach(list: *mut GList, func: GFunc, user_data: gpointer);
4117 pub fn g_list_free(list: *mut GList);
4118 pub fn g_list_free_1(list: *mut GList);
4119 pub fn g_list_free_full(list: *mut GList, free_func: GDestroyNotify);
4120 pub fn g_list_index(list: *mut GList, data: gconstpointer) -> c_int;
4121 pub fn g_list_insert(list: *mut GList, data: gpointer, position: c_int) -> *mut GList;
4122 pub fn g_list_insert_before(
4123 list: *mut GList,
4124 sibling: *mut GList,
4125 data: gpointer,
4126 ) -> *mut GList;
4127 #[cfg(feature = "v2_62")]
4128 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4129 pub fn g_list_insert_before_link(
4130 list: *mut GList,
4131 sibling: *mut GList,
4132 link_: *mut GList,
4133 ) -> *mut GList;
4134 pub fn g_list_insert_sorted(list: *mut GList, data: gpointer, func: GCompareFunc)
4135 -> *mut GList;
4136 pub fn g_list_insert_sorted_with_data(
4137 list: *mut GList,
4138 data: gpointer,
4139 func: GCompareDataFunc,
4140 user_data: gpointer,
4141 ) -> *mut GList;
4142 pub fn g_list_last(list: *mut GList) -> *mut GList;
4143 pub fn g_list_length(list: *mut GList) -> c_uint;
4144 pub fn g_list_nth(list: *mut GList, n: c_uint) -> *mut GList;
4145 pub fn g_list_nth_data(list: *mut GList, n: c_uint) -> gpointer;
4146 pub fn g_list_nth_prev(list: *mut GList, n: c_uint) -> *mut GList;
4147 pub fn g_list_pop_allocator();
4148 pub fn g_list_position(list: *mut GList, llink: *mut GList) -> c_int;
4149 pub fn g_list_prepend(list: *mut GList, data: gpointer) -> *mut GList;
4150 pub fn g_list_push_allocator(allocator: *mut GAllocator);
4151 pub fn g_list_remove(list: *mut GList, data: gconstpointer) -> *mut GList;
4152 pub fn g_list_remove_all(list: *mut GList, data: gconstpointer) -> *mut GList;
4153 pub fn g_list_remove_link(list: *mut GList, llink: *mut GList) -> *mut GList;
4154 pub fn g_list_reverse(list: *mut GList) -> *mut GList;
4155 pub fn g_list_sort(list: *mut GList, compare_func: GCompareFunc) -> *mut GList;
4156 pub fn g_list_sort_with_data(
4157 list: *mut GList,
4158 compare_func: GCompareDataFunc,
4159 user_data: gpointer,
4160 ) -> *mut GList;
4161
4162 pub fn g_main_context_get_type() -> GType;
4166 pub fn g_main_context_new() -> *mut GMainContext;
4167 #[cfg(feature = "v2_72")]
4168 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
4169 pub fn g_main_context_new_with_flags(flags: GMainContextFlags) -> *mut GMainContext;
4170 pub fn g_main_context_acquire(context: *mut GMainContext) -> gboolean;
4171 pub fn g_main_context_add_poll(context: *mut GMainContext, fd: *mut GPollFD, priority: c_int);
4172 pub fn g_main_context_check(
4173 context: *mut GMainContext,
4174 max_priority: c_int,
4175 fds: *mut GPollFD,
4176 n_fds: c_int,
4177 ) -> gboolean;
4178 pub fn g_main_context_dispatch(context: *mut GMainContext);
4179 pub fn g_main_context_find_source_by_funcs_user_data(
4180 context: *mut GMainContext,
4181 funcs: *mut GSourceFuncs,
4182 user_data: gpointer,
4183 ) -> *mut GSource;
4184 pub fn g_main_context_find_source_by_id(
4185 context: *mut GMainContext,
4186 source_id: c_uint,
4187 ) -> *mut GSource;
4188 pub fn g_main_context_find_source_by_user_data(
4189 context: *mut GMainContext,
4190 user_data: gpointer,
4191 ) -> *mut GSource;
4192 pub fn g_main_context_get_poll_func(context: *mut GMainContext) -> GPollFunc;
4193 pub fn g_main_context_invoke(context: *mut GMainContext, function: GSourceFunc, data: gpointer);
4194 pub fn g_main_context_invoke_full(
4195 context: *mut GMainContext,
4196 priority: c_int,
4197 function: GSourceFunc,
4198 data: gpointer,
4199 notify: GDestroyNotify,
4200 );
4201 pub fn g_main_context_is_owner(context: *mut GMainContext) -> gboolean;
4202 pub fn g_main_context_iteration(context: *mut GMainContext, may_block: gboolean) -> gboolean;
4203 pub fn g_main_context_pending(context: *mut GMainContext) -> gboolean;
4204 pub fn g_main_context_pop_thread_default(context: *mut GMainContext);
4205 pub fn g_main_context_prepare(context: *mut GMainContext, priority: *mut c_int) -> gboolean;
4206 pub fn g_main_context_push_thread_default(context: *mut GMainContext);
4207 #[cfg(feature = "v2_64")]
4208 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
4209 pub fn g_main_context_pusher_new(main_context: *mut GMainContext) -> *mut GMainContextPusher;
4210 pub fn g_main_context_query(
4211 context: *mut GMainContext,
4212 max_priority: c_int,
4213 timeout_: *mut c_int,
4214 fds: *mut GPollFD,
4215 n_fds: c_int,
4216 ) -> c_int;
4217 pub fn g_main_context_ref(context: *mut GMainContext) -> *mut GMainContext;
4218 pub fn g_main_context_release(context: *mut GMainContext);
4219 pub fn g_main_context_remove_poll(context: *mut GMainContext, fd: *mut GPollFD);
4220 pub fn g_main_context_set_poll_func(context: *mut GMainContext, func: GPollFunc);
4221 pub fn g_main_context_unref(context: *mut GMainContext);
4222 pub fn g_main_context_wait(
4223 context: *mut GMainContext,
4224 cond: *mut GCond,
4225 mutex: *mut GMutex,
4226 ) -> gboolean;
4227 pub fn g_main_context_wakeup(context: *mut GMainContext);
4228 pub fn g_main_context_default() -> *mut GMainContext;
4229 pub fn g_main_context_get_thread_default() -> *mut GMainContext;
4230 #[cfg(feature = "v2_64")]
4231 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
4232 pub fn g_main_context_pusher_free(pusher: *mut GMainContextPusher);
4233 pub fn g_main_context_ref_thread_default() -> *mut GMainContext;
4234
4235 pub fn g_main_loop_get_type() -> GType;
4239 pub fn g_main_loop_new(context: *mut GMainContext, is_running: gboolean) -> *mut GMainLoop;
4240 pub fn g_main_loop_get_context(loop_: *mut GMainLoop) -> *mut GMainContext;
4241 pub fn g_main_loop_is_running(loop_: *mut GMainLoop) -> gboolean;
4242 pub fn g_main_loop_quit(loop_: *mut GMainLoop);
4243 pub fn g_main_loop_ref(loop_: *mut GMainLoop) -> *mut GMainLoop;
4244 pub fn g_main_loop_run(loop_: *mut GMainLoop);
4245 pub fn g_main_loop_unref(loop_: *mut GMainLoop);
4246
4247 pub fn g_mapped_file_get_type() -> GType;
4251 pub fn g_mapped_file_new(
4252 filename: *const c_char,
4253 writable: gboolean,
4254 error: *mut *mut GError,
4255 ) -> *mut GMappedFile;
4256 pub fn g_mapped_file_new_from_fd(
4257 fd: c_int,
4258 writable: gboolean,
4259 error: *mut *mut GError,
4260 ) -> *mut GMappedFile;
4261 pub fn g_mapped_file_free(file: *mut GMappedFile);
4262 pub fn g_mapped_file_get_bytes(file: *mut GMappedFile) -> *mut GBytes;
4263 pub fn g_mapped_file_get_contents(file: *mut GMappedFile) -> *mut c_char;
4264 pub fn g_mapped_file_get_length(file: *mut GMappedFile) -> size_t;
4265 pub fn g_mapped_file_ref(file: *mut GMappedFile) -> *mut GMappedFile;
4266 pub fn g_mapped_file_unref(file: *mut GMappedFile);
4267
4268 pub fn g_markup_parse_context_get_type() -> GType;
4272 pub fn g_markup_parse_context_new(
4273 parser: *const GMarkupParser,
4274 flags: GMarkupParseFlags,
4275 user_data: gpointer,
4276 user_data_dnotify: GDestroyNotify,
4277 ) -> *mut GMarkupParseContext;
4278 pub fn g_markup_parse_context_end_parse(
4279 context: *mut GMarkupParseContext,
4280 error: *mut *mut GError,
4281 ) -> gboolean;
4282 pub fn g_markup_parse_context_free(context: *mut GMarkupParseContext);
4283 #[cfg(feature = "v2_90")]
4284 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
4285 pub fn g_markup_parse_context_get_attribute_position(
4286 context: *mut GMarkupParseContext,
4287 attr: c_uint,
4288 start_lines: *mut size_t,
4289 start_chars: *mut size_t,
4290 start_offset: *mut size_t,
4291 end_lines: *mut size_t,
4292 end_chars: *mut size_t,
4293 end_offset: *mut size_t,
4294 );
4295 pub fn g_markup_parse_context_get_element(context: *mut GMarkupParseContext) -> *const c_char;
4296 pub fn g_markup_parse_context_get_element_stack(
4297 context: *mut GMarkupParseContext,
4298 ) -> *const GSList;
4299 #[cfg(feature = "v2_88")]
4300 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
4301 pub fn g_markup_parse_context_get_offset(context: *mut GMarkupParseContext) -> size_t;
4302 pub fn g_markup_parse_context_get_position(
4303 context: *mut GMarkupParseContext,
4304 line_number: *mut c_int,
4305 char_number: *mut c_int,
4306 );
4307 #[cfg(feature = "v2_88")]
4308 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
4309 pub fn g_markup_parse_context_get_tag_start(
4310 context: *mut GMarkupParseContext,
4311 line_number: *mut size_t,
4312 char_number: *mut size_t,
4313 offset: *mut size_t,
4314 );
4315 pub fn g_markup_parse_context_get_user_data(context: *mut GMarkupParseContext) -> gpointer;
4316 pub fn g_markup_parse_context_parse(
4317 context: *mut GMarkupParseContext,
4318 text: *const c_char,
4319 text_len: ssize_t,
4320 error: *mut *mut GError,
4321 ) -> gboolean;
4322 pub fn g_markup_parse_context_pop(context: *mut GMarkupParseContext) -> gpointer;
4323 pub fn g_markup_parse_context_push(
4324 context: *mut GMarkupParseContext,
4325 parser: *const GMarkupParser,
4326 user_data: gpointer,
4327 );
4328 pub fn g_markup_parse_context_ref(
4329 context: *mut GMarkupParseContext,
4330 ) -> *mut GMarkupParseContext;
4331 pub fn g_markup_parse_context_unref(context: *mut GMarkupParseContext);
4332
4333 pub fn g_match_info_get_type() -> GType;
4337 pub fn g_match_info_expand_references(
4338 match_info: *const GMatchInfo,
4339 string_to_expand: *const c_char,
4340 error: *mut *mut GError,
4341 ) -> *mut c_char;
4342 pub fn g_match_info_fetch(match_info: *const GMatchInfo, match_num: c_int) -> *mut c_char;
4343 pub fn g_match_info_fetch_all(match_info: *const GMatchInfo) -> *mut *mut c_char;
4344 pub fn g_match_info_fetch_named(
4345 match_info: *const GMatchInfo,
4346 name: *const c_char,
4347 ) -> *mut c_char;
4348 pub fn g_match_info_fetch_named_pos(
4349 match_info: *const GMatchInfo,
4350 name: *const c_char,
4351 start_pos: *mut c_int,
4352 end_pos: *mut c_int,
4353 ) -> gboolean;
4354 pub fn g_match_info_fetch_pos(
4355 match_info: *const GMatchInfo,
4356 match_num: c_int,
4357 start_pos: *mut c_int,
4358 end_pos: *mut c_int,
4359 ) -> gboolean;
4360 pub fn g_match_info_free(match_info: *mut GMatchInfo);
4361 pub fn g_match_info_get_match_count(match_info: *const GMatchInfo) -> c_int;
4362 pub fn g_match_info_get_regex(match_info: *const GMatchInfo) -> *mut GRegex;
4363 pub fn g_match_info_get_string(match_info: *const GMatchInfo) -> *const c_char;
4364 pub fn g_match_info_is_partial_match(match_info: *const GMatchInfo) -> gboolean;
4365 pub fn g_match_info_matches(match_info: *const GMatchInfo) -> gboolean;
4366 pub fn g_match_info_next(match_info: *mut GMatchInfo, error: *mut *mut GError) -> gboolean;
4367 pub fn g_match_info_ref(match_info: *mut GMatchInfo) -> *mut GMatchInfo;
4368 pub fn g_match_info_unref(match_info: *mut GMatchInfo);
4369
4370 pub fn g_mem_chunk_alloc(mem_chunk: *mut GMemChunk) -> gpointer;
4374 pub fn g_mem_chunk_alloc0(mem_chunk: *mut GMemChunk) -> gpointer;
4375 pub fn g_mem_chunk_clean(mem_chunk: *mut GMemChunk);
4376 pub fn g_mem_chunk_destroy(mem_chunk: *mut GMemChunk);
4377 pub fn g_mem_chunk_free(mem_chunk: *mut GMemChunk, mem: gpointer);
4378 pub fn g_mem_chunk_print(mem_chunk: *mut GMemChunk);
4379 pub fn g_mem_chunk_reset(mem_chunk: *mut GMemChunk);
4380 pub fn g_mem_chunk_info();
4381 pub fn g_mem_chunk_new(
4382 name: *const c_char,
4383 atom_size: c_int,
4384 area_size: size_t,
4385 type_: c_int,
4386 ) -> *mut GMemChunk;
4387
4388 pub fn g_node_child_index(node: *mut GNode, data: gpointer) -> c_int;
4392 pub fn g_node_child_position(node: *mut GNode, child: *mut GNode) -> c_int;
4393 pub fn g_node_children_foreach(
4394 node: *mut GNode,
4395 flags: GTraverseFlags,
4396 func: GNodeForeachFunc,
4397 data: gpointer,
4398 );
4399 pub fn g_node_copy(node: *mut GNode) -> *mut GNode;
4400 pub fn g_node_copy_deep(node: *mut GNode, copy_func: GCopyFunc, data: gpointer) -> *mut GNode;
4401 pub fn g_node_depth(node: *mut GNode) -> c_uint;
4402 pub fn g_node_destroy(root: *mut GNode);
4403 pub fn g_node_find(
4404 root: *mut GNode,
4405 order: GTraverseType,
4406 flags: GTraverseFlags,
4407 data: gpointer,
4408 ) -> *mut GNode;
4409 pub fn g_node_find_child(node: *mut GNode, flags: GTraverseFlags, data: gpointer)
4410 -> *mut GNode;
4411 pub fn g_node_first_sibling(node: *mut GNode) -> *mut GNode;
4412 pub fn g_node_get_root(node: *mut GNode) -> *mut GNode;
4413 pub fn g_node_insert(parent: *mut GNode, position: c_int, node: *mut GNode) -> *mut GNode;
4414 pub fn g_node_insert_after(
4415 parent: *mut GNode,
4416 sibling: *mut GNode,
4417 node: *mut GNode,
4418 ) -> *mut GNode;
4419 pub fn g_node_insert_before(
4420 parent: *mut GNode,
4421 sibling: *mut GNode,
4422 node: *mut GNode,
4423 ) -> *mut GNode;
4424 pub fn g_node_is_ancestor(node: *mut GNode, descendant: *mut GNode) -> gboolean;
4425 pub fn g_node_last_child(node: *mut GNode) -> *mut GNode;
4426 pub fn g_node_last_sibling(node: *mut GNode) -> *mut GNode;
4427 pub fn g_node_max_height(root: *mut GNode) -> c_uint;
4428 pub fn g_node_n_children(node: *mut GNode) -> c_uint;
4429 pub fn g_node_n_nodes(root: *mut GNode, flags: GTraverseFlags) -> c_uint;
4430 pub fn g_node_nth_child(node: *mut GNode, n: c_uint) -> *mut GNode;
4431 pub fn g_node_prepend(parent: *mut GNode, node: *mut GNode) -> *mut GNode;
4432 pub fn g_node_reverse_children(node: *mut GNode);
4433 pub fn g_node_traverse(
4434 root: *mut GNode,
4435 order: GTraverseType,
4436 flags: GTraverseFlags,
4437 max_depth: c_int,
4438 func: GNodeTraverseFunc,
4439 data: gpointer,
4440 );
4441 pub fn g_node_unlink(node: *mut GNode);
4442 pub fn g_node_new(data: gpointer) -> *mut GNode;
4443 pub fn g_node_pop_allocator();
4444 pub fn g_node_push_allocator(allocator: *mut GAllocator);
4445
4446 pub fn g_once_impl(once: *mut GOnce, func: GThreadFunc, arg: gpointer) -> gpointer;
4450 pub fn g_once_init_enter(location: *mut c_void) -> gboolean;
4451 pub fn g_once_init_enter_impl(location: *mut size_t) -> gboolean;
4452 #[cfg(feature = "v2_80")]
4453 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
4454 pub fn g_once_init_enter_pointer(location: *mut c_void) -> gboolean;
4455 pub fn g_once_init_leave(location: *mut c_void, result: size_t);
4456 #[cfg(feature = "v2_80")]
4457 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
4458 pub fn g_once_init_leave_pointer(location: *mut c_void, result: gpointer);
4459
4460 pub fn g_option_context_add_group(context: *mut GOptionContext, group: *mut GOptionGroup);
4464 pub fn g_option_context_add_main_entries(
4465 context: *mut GOptionContext,
4466 entries: *const GOptionEntry,
4467 translation_domain: *const c_char,
4468 );
4469 pub fn g_option_context_free(context: *mut GOptionContext);
4470 pub fn g_option_context_get_description(context: *mut GOptionContext) -> *const c_char;
4471 pub fn g_option_context_get_help(
4472 context: *mut GOptionContext,
4473 main_help: gboolean,
4474 group: *mut GOptionGroup,
4475 ) -> *mut c_char;
4476 pub fn g_option_context_get_help_enabled(context: *mut GOptionContext) -> gboolean;
4477 pub fn g_option_context_get_ignore_unknown_options(context: *mut GOptionContext) -> gboolean;
4478 pub fn g_option_context_get_main_group(context: *mut GOptionContext) -> *mut GOptionGroup;
4479 pub fn g_option_context_get_strict_posix(context: *mut GOptionContext) -> gboolean;
4480 pub fn g_option_context_get_summary(context: *mut GOptionContext) -> *const c_char;
4481 pub fn g_option_context_parse(
4482 context: *mut GOptionContext,
4483 argc: *mut c_int,
4484 argv: *mut *mut *mut c_char,
4485 error: *mut *mut GError,
4486 ) -> gboolean;
4487 pub fn g_option_context_parse_strv(
4488 context: *mut GOptionContext,
4489 arguments: *mut *mut *mut c_char,
4490 error: *mut *mut GError,
4491 ) -> gboolean;
4492 pub fn g_option_context_set_description(
4493 context: *mut GOptionContext,
4494 description: *const c_char,
4495 );
4496 pub fn g_option_context_set_help_enabled(context: *mut GOptionContext, help_enabled: gboolean);
4497 pub fn g_option_context_set_ignore_unknown_options(
4498 context: *mut GOptionContext,
4499 ignore_unknown: gboolean,
4500 );
4501 pub fn g_option_context_set_main_group(context: *mut GOptionContext, group: *mut GOptionGroup);
4502 pub fn g_option_context_set_strict_posix(context: *mut GOptionContext, strict_posix: gboolean);
4503 pub fn g_option_context_set_summary(context: *mut GOptionContext, summary: *const c_char);
4504 pub fn g_option_context_set_translate_func(
4505 context: *mut GOptionContext,
4506 func: GTranslateFunc,
4507 data: gpointer,
4508 destroy_notify: GDestroyNotify,
4509 );
4510 pub fn g_option_context_set_translation_domain(
4511 context: *mut GOptionContext,
4512 domain: *const c_char,
4513 );
4514 pub fn g_option_context_new(parameter_string: *const c_char) -> *mut GOptionContext;
4515
4516 pub fn g_option_group_get_type() -> GType;
4520 pub fn g_option_group_new(
4521 name: *const c_char,
4522 description: *const c_char,
4523 help_description: *const c_char,
4524 user_data: gpointer,
4525 destroy: GDestroyNotify,
4526 ) -> *mut GOptionGroup;
4527 pub fn g_option_group_add_entries(group: *mut GOptionGroup, entries: *const GOptionEntry);
4528 pub fn g_option_group_free(group: *mut GOptionGroup);
4529 pub fn g_option_group_ref(group: *mut GOptionGroup) -> *mut GOptionGroup;
4530 pub fn g_option_group_set_error_hook(group: *mut GOptionGroup, error_func: GOptionErrorFunc);
4531 pub fn g_option_group_set_parse_hooks(
4532 group: *mut GOptionGroup,
4533 pre_parse_func: GOptionParseFunc,
4534 post_parse_func: GOptionParseFunc,
4535 );
4536 pub fn g_option_group_set_translate_func(
4537 group: *mut GOptionGroup,
4538 func: GTranslateFunc,
4539 data: gpointer,
4540 destroy_notify: GDestroyNotify,
4541 );
4542 pub fn g_option_group_set_translation_domain(group: *mut GOptionGroup, domain: *const c_char);
4543 pub fn g_option_group_unref(group: *mut GOptionGroup);
4544
4545 #[cfg(feature = "v2_76")]
4549 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4550 pub fn g_path_buf_clear(buf: *mut GPathBuf);
4551 #[cfg(feature = "v2_76")]
4552 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4553 pub fn g_path_buf_clear_to_path(buf: *mut GPathBuf) -> *mut c_char;
4554 #[cfg(feature = "v2_76")]
4555 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4556 pub fn g_path_buf_copy(buf: *mut GPathBuf) -> *mut GPathBuf;
4557 #[cfg(feature = "v2_76")]
4558 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4559 pub fn g_path_buf_free(buf: *mut GPathBuf);
4560 #[cfg(feature = "v2_76")]
4561 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4562 pub fn g_path_buf_free_to_path(buf: *mut GPathBuf) -> *mut c_char;
4563 #[cfg(feature = "v2_76")]
4564 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4565 pub fn g_path_buf_init(buf: *mut GPathBuf) -> *mut GPathBuf;
4566 #[cfg(feature = "v2_76")]
4567 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4568 pub fn g_path_buf_init_from_path(buf: *mut GPathBuf, path: *const c_char) -> *mut GPathBuf;
4569 #[cfg(feature = "v2_76")]
4570 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4571 pub fn g_path_buf_pop(buf: *mut GPathBuf) -> gboolean;
4572 #[cfg(feature = "v2_76")]
4573 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4574 pub fn g_path_buf_push(buf: *mut GPathBuf, path: *const c_char) -> *mut GPathBuf;
4575 #[cfg(feature = "v2_76")]
4576 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4577 pub fn g_path_buf_set_extension(buf: *mut GPathBuf, extension: *const c_char) -> gboolean;
4578 #[cfg(feature = "v2_76")]
4579 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4580 pub fn g_path_buf_set_filename(buf: *mut GPathBuf, file_name: *const c_char) -> gboolean;
4581 #[cfg(feature = "v2_76")]
4582 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4583 pub fn g_path_buf_to_path(buf: *mut GPathBuf) -> *mut c_char;
4584 #[cfg(feature = "v2_76")]
4585 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4586 pub fn g_path_buf_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
4587 #[cfg(feature = "v2_76")]
4588 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4589 pub fn g_path_buf_new() -> *mut GPathBuf;
4590 #[cfg(feature = "v2_76")]
4591 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4592 pub fn g_path_buf_new_from_path(path: *const c_char) -> *mut GPathBuf;
4593
4594 pub fn g_pattern_spec_get_type() -> GType;
4598 pub fn g_pattern_spec_new(pattern: *const c_char) -> *mut GPatternSpec;
4599 #[cfg(feature = "v2_70")]
4600 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
4601 pub fn g_pattern_spec_copy(pspec: *mut GPatternSpec) -> *mut GPatternSpec;
4602 pub fn g_pattern_spec_equal(pspec1: *mut GPatternSpec, pspec2: *mut GPatternSpec) -> gboolean;
4603 pub fn g_pattern_spec_free(pspec: *mut GPatternSpec);
4604 #[cfg(feature = "v2_70")]
4605 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
4606 pub fn g_pattern_spec_match(
4607 pspec: *mut GPatternSpec,
4608 string_length: size_t,
4609 string: *const c_char,
4610 string_reversed: *const c_char,
4611 ) -> gboolean;
4612 #[cfg(feature = "v2_70")]
4613 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
4614 pub fn g_pattern_spec_match_string(pspec: *mut GPatternSpec, string: *const c_char)
4615 -> gboolean;
4616
4617 pub fn g_pollfd_get_type() -> GType;
4621
4622 pub fn g_private_get(key: *mut GPrivate) -> gpointer;
4626 pub fn g_private_replace(key: *mut GPrivate, value: gpointer);
4627 pub fn g_private_set(key: *mut GPrivate, value: gpointer);
4628 pub fn g_private_new(notify: GDestroyNotify) -> *mut GPrivate;
4629
4630 pub fn g_ptr_array_get_type() -> GType;
4634 pub fn g_ptr_array_add(array: *mut GPtrArray, data: gpointer);
4635 #[cfg(feature = "v2_62")]
4636 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4637 pub fn g_ptr_array_copy(
4638 array: *mut GPtrArray,
4639 func: GCopyFunc,
4640 user_data: gpointer,
4641 ) -> *mut GPtrArray;
4642 #[cfg(feature = "v2_62")]
4643 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4644 pub fn g_ptr_array_extend(
4645 array_to_extend: *mut GPtrArray,
4646 array: *mut GPtrArray,
4647 func: GCopyFunc,
4648 user_data: gpointer,
4649 );
4650 #[cfg(feature = "v2_62")]
4651 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4652 pub fn g_ptr_array_extend_and_steal(array_to_extend: *mut GPtrArray, array: *mut GPtrArray);
4653 pub fn g_ptr_array_find(
4654 haystack: *mut GPtrArray,
4655 needle: gconstpointer,
4656 index_: *mut c_uint,
4657 ) -> gboolean;
4658 pub fn g_ptr_array_find_with_equal_func(
4659 haystack: *mut GPtrArray,
4660 needle: gconstpointer,
4661 equal_func: GEqualFunc,
4662 index_: *mut c_uint,
4663 ) -> gboolean;
4664 pub fn g_ptr_array_foreach(array: *mut GPtrArray, func: GFunc, user_data: gpointer);
4665 pub fn g_ptr_array_free(array: *mut GPtrArray, free_segment: gboolean) -> *mut gpointer;
4666 pub fn g_ptr_array_insert(array: *mut GPtrArray, index_: c_int, data: gpointer);
4667 #[cfg(feature = "v2_74")]
4668 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
4669 pub fn g_ptr_array_is_null_terminated(array: *mut GPtrArray) -> gboolean;
4670 pub fn g_ptr_array_new() -> *mut GPtrArray;
4671 #[cfg(feature = "v2_76")]
4672 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4673 pub fn g_ptr_array_new_from_array(
4674 data: *mut gpointer,
4675 len: size_t,
4676 copy_func: GCopyFunc,
4677 copy_func_user_data: gpointer,
4678 element_free_func: GDestroyNotify,
4679 ) -> *mut GPtrArray;
4680 #[cfg(feature = "v2_76")]
4681 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4682 pub fn g_ptr_array_new_from_null_terminated_array(
4683 data: *mut gpointer,
4684 copy_func: GCopyFunc,
4685 copy_func_user_data: gpointer,
4686 element_free_func: GDestroyNotify,
4687 ) -> *mut GPtrArray;
4688 pub fn g_ptr_array_new_full(
4689 reserved_size: c_uint,
4690 element_free_func: GDestroyNotify,
4691 ) -> *mut GPtrArray;
4692 #[cfg(feature = "v2_74")]
4693 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
4694 pub fn g_ptr_array_new_null_terminated(
4695 reserved_size: c_uint,
4696 element_free_func: GDestroyNotify,
4697 null_terminated: gboolean,
4698 ) -> *mut GPtrArray;
4699 #[cfg(feature = "v2_76")]
4700 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4701 pub fn g_ptr_array_new_take(
4702 data: *mut gpointer,
4703 len: size_t,
4704 element_free_func: GDestroyNotify,
4705 ) -> *mut GPtrArray;
4706 #[cfg(feature = "v2_76")]
4707 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4708 pub fn g_ptr_array_new_take_null_terminated(
4709 data: *mut gpointer,
4710 element_free_func: GDestroyNotify,
4711 ) -> *mut GPtrArray;
4712 pub fn g_ptr_array_new_with_free_func(element_free_func: GDestroyNotify) -> *mut GPtrArray;
4713 pub fn g_ptr_array_ref(array: *mut GPtrArray) -> *mut GPtrArray;
4714 pub fn g_ptr_array_remove(array: *mut GPtrArray, data: gpointer) -> gboolean;
4715 pub fn g_ptr_array_remove_fast(array: *mut GPtrArray, data: gpointer) -> gboolean;
4716 pub fn g_ptr_array_remove_index(array: *mut GPtrArray, index_: c_uint) -> gpointer;
4717 pub fn g_ptr_array_remove_index_fast(array: *mut GPtrArray, index_: c_uint) -> gpointer;
4718 pub fn g_ptr_array_remove_range(
4719 array: *mut GPtrArray,
4720 index_: c_uint,
4721 length: c_uint,
4722 ) -> *mut GPtrArray;
4723 pub fn g_ptr_array_set_free_func(array: *mut GPtrArray, element_free_func: GDestroyNotify);
4724 pub fn g_ptr_array_set_size(array: *mut GPtrArray, length: c_int);
4725 pub fn g_ptr_array_sized_new(reserved_size: c_uint) -> *mut GPtrArray;
4726 pub fn g_ptr_array_sort(array: *mut GPtrArray, compare_func: GCompareFunc);
4727 #[cfg(feature = "v2_76")]
4728 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4729 pub fn g_ptr_array_sort_values(array: *mut GPtrArray, compare_func: GCompareFunc);
4730 #[cfg(feature = "v2_76")]
4731 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
4732 pub fn g_ptr_array_sort_values_with_data(
4733 array: *mut GPtrArray,
4734 compare_func: GCompareDataFunc,
4735 user_data: gpointer,
4736 );
4737 pub fn g_ptr_array_sort_with_data(
4738 array: *mut GPtrArray,
4739 compare_func: GCompareDataFunc,
4740 user_data: gpointer,
4741 );
4742 #[cfg(feature = "v2_64")]
4743 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
4744 pub fn g_ptr_array_steal(array: *mut GPtrArray, len: *mut size_t) -> *mut gpointer;
4745 #[cfg(feature = "v2_58")]
4746 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
4747 pub fn g_ptr_array_steal_index(array: *mut GPtrArray, index_: c_uint) -> gpointer;
4748 #[cfg(feature = "v2_58")]
4749 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
4750 pub fn g_ptr_array_steal_index_fast(array: *mut GPtrArray, index_: c_uint) -> gpointer;
4751 pub fn g_ptr_array_unref(array: *mut GPtrArray);
4752
4753 pub fn g_queue_clear(queue: *mut GQueue);
4757 #[cfg(feature = "v2_60")]
4758 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
4759 pub fn g_queue_clear_full(queue: *mut GQueue, free_func: GDestroyNotify);
4760 pub fn g_queue_copy(queue: *mut GQueue) -> *mut GQueue;
4761 pub fn g_queue_delete_link(queue: *mut GQueue, link_: *mut GList);
4762 pub fn g_queue_find(queue: *mut GQueue, data: gconstpointer) -> *mut GList;
4763 pub fn g_queue_find_custom(
4764 queue: *mut GQueue,
4765 data: gconstpointer,
4766 func: GCompareFunc,
4767 ) -> *mut GList;
4768 pub fn g_queue_foreach(queue: *mut GQueue, func: GFunc, user_data: gpointer);
4769 pub fn g_queue_free(queue: *mut GQueue);
4770 pub fn g_queue_free_full(queue: *mut GQueue, free_func: GDestroyNotify);
4771 pub fn g_queue_get_length(queue: *mut GQueue) -> c_uint;
4772 pub fn g_queue_index(queue: *mut GQueue, data: gconstpointer) -> c_int;
4773 pub fn g_queue_init(queue: *mut GQueue);
4774 pub fn g_queue_insert_after(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
4775 #[cfg(feature = "v2_62")]
4776 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4777 pub fn g_queue_insert_after_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList);
4778 pub fn g_queue_insert_before(queue: *mut GQueue, sibling: *mut GList, data: gpointer);
4779 #[cfg(feature = "v2_62")]
4780 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
4781 pub fn g_queue_insert_before_link(queue: *mut GQueue, sibling: *mut GList, link_: *mut GList);
4782 pub fn g_queue_insert_sorted(
4783 queue: *mut GQueue,
4784 data: gpointer,
4785 func: GCompareDataFunc,
4786 user_data: gpointer,
4787 );
4788 pub fn g_queue_is_empty(queue: *mut GQueue) -> gboolean;
4789 pub fn g_queue_link_index(queue: *mut GQueue, link_: *mut GList) -> c_int;
4790 pub fn g_queue_peek_head(queue: *mut GQueue) -> gpointer;
4791 pub fn g_queue_peek_head_link(queue: *mut GQueue) -> *mut GList;
4792 pub fn g_queue_peek_nth(queue: *mut GQueue, n: c_uint) -> gpointer;
4793 pub fn g_queue_peek_nth_link(queue: *mut GQueue, n: c_uint) -> *mut GList;
4794 pub fn g_queue_peek_tail(queue: *mut GQueue) -> gpointer;
4795 pub fn g_queue_peek_tail_link(queue: *mut GQueue) -> *mut GList;
4796 pub fn g_queue_pop_head(queue: *mut GQueue) -> gpointer;
4797 pub fn g_queue_pop_head_link(queue: *mut GQueue) -> *mut GList;
4798 pub fn g_queue_pop_nth(queue: *mut GQueue, n: c_uint) -> gpointer;
4799 pub fn g_queue_pop_nth_link(queue: *mut GQueue, n: c_uint) -> *mut GList;
4800 pub fn g_queue_pop_tail(queue: *mut GQueue) -> gpointer;
4801 pub fn g_queue_pop_tail_link(queue: *mut GQueue) -> *mut GList;
4802 pub fn g_queue_push_head(queue: *mut GQueue, data: gpointer);
4803 pub fn g_queue_push_head_link(queue: *mut GQueue, link_: *mut GList);
4804 pub fn g_queue_push_nth(queue: *mut GQueue, data: gpointer, n: c_int);
4805 pub fn g_queue_push_nth_link(queue: *mut GQueue, n: c_int, link_: *mut GList);
4806 pub fn g_queue_push_tail(queue: *mut GQueue, data: gpointer);
4807 pub fn g_queue_push_tail_link(queue: *mut GQueue, link_: *mut GList);
4808 pub fn g_queue_remove(queue: *mut GQueue, data: gconstpointer) -> gboolean;
4809 pub fn g_queue_remove_all(queue: *mut GQueue, data: gconstpointer) -> c_uint;
4810 pub fn g_queue_reverse(queue: *mut GQueue);
4811 pub fn g_queue_sort(queue: *mut GQueue, compare_func: GCompareDataFunc, user_data: gpointer);
4812 pub fn g_queue_unlink(queue: *mut GQueue, link_: *mut GList);
4813 pub fn g_queue_new() -> *mut GQueue;
4814
4815 pub fn g_rw_lock_clear(rw_lock: *mut GRWLock);
4819 pub fn g_rw_lock_init(rw_lock: *mut GRWLock);
4820 pub fn g_rw_lock_reader_lock(rw_lock: *mut GRWLock);
4821 pub fn g_rw_lock_reader_trylock(rw_lock: *mut GRWLock) -> gboolean;
4822 pub fn g_rw_lock_reader_unlock(rw_lock: *mut GRWLock);
4823 pub fn g_rw_lock_writer_lock(rw_lock: *mut GRWLock);
4824 pub fn g_rw_lock_writer_trylock(rw_lock: *mut GRWLock) -> gboolean;
4825 pub fn g_rw_lock_writer_unlock(rw_lock: *mut GRWLock);
4826
4827 pub fn g_rand_get_type() -> GType;
4831 pub fn g_rand_new() -> *mut GRand;
4832 pub fn g_rand_new_with_seed(seed: u32) -> *mut GRand;
4833 pub fn g_rand_new_with_seed_array(seed: *const u32, seed_length: c_uint) -> *mut GRand;
4834 pub fn g_rand_copy(rand_: *mut GRand) -> *mut GRand;
4835 pub fn g_rand_double(rand_: *mut GRand) -> c_double;
4836 pub fn g_rand_double_range(rand_: *mut GRand, begin: c_double, end: c_double) -> c_double;
4837 pub fn g_rand_free(rand_: *mut GRand);
4838 pub fn g_rand_int(rand_: *mut GRand) -> u32;
4839 pub fn g_rand_int_range(rand_: *mut GRand, begin: i32, end: i32) -> i32;
4840 pub fn g_rand_set_seed(rand_: *mut GRand, seed: u32);
4841 pub fn g_rand_set_seed_array(rand_: *mut GRand, seed: *const u32, seed_length: c_uint);
4842
4843 pub fn g_rec_mutex_clear(rec_mutex: *mut GRecMutex);
4847 pub fn g_rec_mutex_init(rec_mutex: *mut GRecMutex);
4848 pub fn g_rec_mutex_lock(rec_mutex: *mut GRecMutex);
4849 pub fn g_rec_mutex_trylock(rec_mutex: *mut GRecMutex) -> gboolean;
4850 pub fn g_rec_mutex_unlock(rec_mutex: *mut GRecMutex);
4851
4852 pub fn g_regex_get_type() -> GType;
4856 pub fn g_regex_new(
4857 pattern: *const c_char,
4858 compile_options: GRegexCompileFlags,
4859 match_options: GRegexMatchFlags,
4860 error: *mut *mut GError,
4861 ) -> *mut GRegex;
4862 pub fn g_regex_get_capture_count(regex: *const GRegex) -> c_int;
4863 pub fn g_regex_get_compile_flags(regex: *const GRegex) -> GRegexCompileFlags;
4864 pub fn g_regex_get_has_cr_or_lf(regex: *const GRegex) -> gboolean;
4865 pub fn g_regex_get_match_flags(regex: *const GRegex) -> GRegexMatchFlags;
4866 pub fn g_regex_get_max_backref(regex: *const GRegex) -> c_int;
4867 pub fn g_regex_get_max_lookbehind(regex: *const GRegex) -> c_int;
4868 pub fn g_regex_get_pattern(regex: *const GRegex) -> *const c_char;
4869 pub fn g_regex_get_string_number(regex: *const GRegex, name: *const c_char) -> c_int;
4870 pub fn g_regex_match(
4871 regex: *const GRegex,
4872 string: *const c_char,
4873 match_options: GRegexMatchFlags,
4874 match_info: *mut *mut GMatchInfo,
4875 ) -> gboolean;
4876 pub fn g_regex_match_all(
4877 regex: *const GRegex,
4878 string: *const c_char,
4879 match_options: GRegexMatchFlags,
4880 match_info: *mut *mut GMatchInfo,
4881 ) -> gboolean;
4882 pub fn g_regex_match_all_full(
4883 regex: *const GRegex,
4884 string: *const c_char,
4885 string_len: ssize_t,
4886 start_position: c_int,
4887 match_options: GRegexMatchFlags,
4888 match_info: *mut *mut GMatchInfo,
4889 error: *mut *mut GError,
4890 ) -> gboolean;
4891 pub fn g_regex_match_full(
4892 regex: *const GRegex,
4893 string: *const c_char,
4894 string_len: ssize_t,
4895 start_position: c_int,
4896 match_options: GRegexMatchFlags,
4897 match_info: *mut *mut GMatchInfo,
4898 error: *mut *mut GError,
4899 ) -> gboolean;
4900 pub fn g_regex_ref(regex: *mut GRegex) -> *mut GRegex;
4901 pub fn g_regex_replace(
4902 regex: *const GRegex,
4903 string: *const c_char,
4904 string_len: ssize_t,
4905 start_position: c_int,
4906 replacement: *const c_char,
4907 match_options: GRegexMatchFlags,
4908 error: *mut *mut GError,
4909 ) -> *mut c_char;
4910 pub fn g_regex_replace_eval(
4911 regex: *const GRegex,
4912 string: *const c_char,
4913 string_len: ssize_t,
4914 start_position: c_int,
4915 match_options: GRegexMatchFlags,
4916 eval: GRegexEvalCallback,
4917 user_data: gpointer,
4918 error: *mut *mut GError,
4919 ) -> *mut c_char;
4920 pub fn g_regex_replace_literal(
4921 regex: *const GRegex,
4922 string: *const c_char,
4923 string_len: ssize_t,
4924 start_position: c_int,
4925 replacement: *const c_char,
4926 match_options: GRegexMatchFlags,
4927 error: *mut *mut GError,
4928 ) -> *mut c_char;
4929 pub fn g_regex_split(
4930 regex: *const GRegex,
4931 string: *const c_char,
4932 match_options: GRegexMatchFlags,
4933 ) -> *mut *mut c_char;
4934 pub fn g_regex_split_full(
4935 regex: *const GRegex,
4936 string: *const c_char,
4937 string_len: ssize_t,
4938 start_position: c_int,
4939 match_options: GRegexMatchFlags,
4940 max_tokens: c_int,
4941 error: *mut *mut GError,
4942 ) -> *mut *mut c_char;
4943 pub fn g_regex_unref(regex: *mut GRegex);
4944 pub fn g_regex_check_replacement(
4945 replacement: *const c_char,
4946 has_references: *mut gboolean,
4947 error: *mut *mut GError,
4948 ) -> gboolean;
4949 pub fn g_regex_error_quark() -> GQuark;
4950 pub fn g_regex_escape_nul(string: *const c_char, length: c_int) -> *mut c_char;
4951 pub fn g_regex_escape_string(string: *const c_char, length: c_int) -> *mut c_char;
4952 pub fn g_regex_match_simple(
4953 pattern: *const c_char,
4954 string: *const c_char,
4955 compile_options: GRegexCompileFlags,
4956 match_options: GRegexMatchFlags,
4957 ) -> gboolean;
4958 pub fn g_regex_split_simple(
4959 pattern: *const c_char,
4960 string: *const c_char,
4961 compile_options: GRegexCompileFlags,
4962 match_options: GRegexMatchFlags,
4963 ) -> *mut *mut c_char;
4964
4965 pub fn g_relation_count(relation: *mut GRelation, key: gconstpointer, field: c_int) -> c_int;
4969 pub fn g_relation_delete(relation: *mut GRelation, key: gconstpointer, field: c_int) -> c_int;
4970 pub fn g_relation_destroy(relation: *mut GRelation);
4971 pub fn g_relation_exists(relation: *mut GRelation, ...) -> gboolean;
4972 pub fn g_relation_index(
4973 relation: *mut GRelation,
4974 field: c_int,
4975 hash_func: GHashFunc,
4976 key_equal_func: GEqualFunc,
4977 );
4978 pub fn g_relation_insert(relation: *mut GRelation, ...);
4979 pub fn g_relation_print(relation: *mut GRelation);
4980 pub fn g_relation_select(
4981 relation: *mut GRelation,
4982 key: gconstpointer,
4983 field: c_int,
4984 ) -> *mut GTuples;
4985 pub fn g_relation_new(fields: c_int) -> *mut GRelation;
4986
4987 pub fn g_slist_alloc() -> *mut GSList;
4991 pub fn g_slist_append(list: *mut GSList, data: gpointer) -> *mut GSList;
4992 pub fn g_slist_concat(list1: *mut GSList, list2: *mut GSList) -> *mut GSList;
4993 pub fn g_slist_copy(list: *mut GSList) -> *mut GSList;
4994 pub fn g_slist_copy_deep(
4995 list: *mut GSList,
4996 func: GCopyFunc,
4997 user_data: gpointer,
4998 ) -> *mut GSList;
4999 pub fn g_slist_delete_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
5000 pub fn g_slist_find(list: *mut GSList, data: gconstpointer) -> *mut GSList;
5001 pub fn g_slist_find_custom(
5002 list: *mut GSList,
5003 data: gconstpointer,
5004 func: GCompareFunc,
5005 ) -> *mut GSList;
5006 pub fn g_slist_foreach(list: *mut GSList, func: GFunc, user_data: gpointer);
5007 pub fn g_slist_free(list: *mut GSList);
5008 pub fn g_slist_free_1(list: *mut GSList);
5009 pub fn g_slist_free_full(list: *mut GSList, free_func: GDestroyNotify);
5010 pub fn g_slist_index(list: *mut GSList, data: gconstpointer) -> c_int;
5011 pub fn g_slist_insert(list: *mut GSList, data: gpointer, position: c_int) -> *mut GSList;
5012 pub fn g_slist_insert_before(
5013 slist: *mut GSList,
5014 sibling: *mut GSList,
5015 data: gpointer,
5016 ) -> *mut GSList;
5017 pub fn g_slist_insert_sorted(
5018 list: *mut GSList,
5019 data: gpointer,
5020 func: GCompareFunc,
5021 ) -> *mut GSList;
5022 pub fn g_slist_insert_sorted_with_data(
5023 list: *mut GSList,
5024 data: gpointer,
5025 func: GCompareDataFunc,
5026 user_data: gpointer,
5027 ) -> *mut GSList;
5028 pub fn g_slist_last(list: *mut GSList) -> *mut GSList;
5029 pub fn g_slist_length(list: *mut GSList) -> c_uint;
5030 pub fn g_slist_nth(list: *mut GSList, n: c_uint) -> *mut GSList;
5031 pub fn g_slist_nth_data(list: *mut GSList, n: c_uint) -> gpointer;
5032 pub fn g_slist_pop_allocator();
5033 pub fn g_slist_position(list: *mut GSList, llink: *mut GSList) -> c_int;
5034 pub fn g_slist_prepend(list: *mut GSList, data: gpointer) -> *mut GSList;
5035 pub fn g_slist_push_allocator(allocator: *mut GAllocator);
5036 pub fn g_slist_remove(list: *mut GSList, data: gconstpointer) -> *mut GSList;
5037 pub fn g_slist_remove_all(list: *mut GSList, data: gconstpointer) -> *mut GSList;
5038 pub fn g_slist_remove_link(list: *mut GSList, link_: *mut GSList) -> *mut GSList;
5039 pub fn g_slist_reverse(list: *mut GSList) -> *mut GSList;
5040 pub fn g_slist_sort(list: *mut GSList, compare_func: GCompareFunc) -> *mut GSList;
5041 pub fn g_slist_sort_with_data(
5042 list: *mut GSList,
5043 compare_func: GCompareDataFunc,
5044 user_data: gpointer,
5045 ) -> *mut GSList;
5046
5047 pub fn g_scanner_cur_line(scanner: *mut GScanner) -> c_uint;
5051 pub fn g_scanner_cur_position(scanner: *mut GScanner) -> c_uint;
5052 pub fn g_scanner_cur_token(scanner: *mut GScanner) -> GTokenType;
5053 pub fn g_scanner_cur_value(scanner: *mut GScanner) -> GTokenValue;
5054 pub fn g_scanner_destroy(scanner: *mut GScanner);
5055 pub fn g_scanner_eof(scanner: *mut GScanner) -> gboolean;
5056 pub fn g_scanner_error(scanner: *mut GScanner, format: *const c_char, ...);
5057 pub fn g_scanner_get_next_token(scanner: *mut GScanner) -> GTokenType;
5058 pub fn g_scanner_input_file(scanner: *mut GScanner, input_fd: c_int);
5059 pub fn g_scanner_input_text(scanner: *mut GScanner, text: *const c_char, text_len: c_uint);
5060 pub fn g_scanner_lookup_symbol(scanner: *mut GScanner, symbol: *const c_char) -> gpointer;
5061 pub fn g_scanner_peek_next_token(scanner: *mut GScanner) -> GTokenType;
5062 pub fn g_scanner_scope_add_symbol(
5063 scanner: *mut GScanner,
5064 scope_id: c_uint,
5065 symbol: *const c_char,
5066 value: gpointer,
5067 );
5068 pub fn g_scanner_scope_foreach_symbol(
5069 scanner: *mut GScanner,
5070 scope_id: c_uint,
5071 func: GHFunc,
5072 user_data: gpointer,
5073 );
5074 pub fn g_scanner_scope_lookup_symbol(
5075 scanner: *mut GScanner,
5076 scope_id: c_uint,
5077 symbol: *const c_char,
5078 ) -> gpointer;
5079 pub fn g_scanner_scope_remove_symbol(
5080 scanner: *mut GScanner,
5081 scope_id: c_uint,
5082 symbol: *const c_char,
5083 );
5084 pub fn g_scanner_set_scope(scanner: *mut GScanner, scope_id: c_uint) -> c_uint;
5085 pub fn g_scanner_sync_file_offset(scanner: *mut GScanner);
5086 pub fn g_scanner_unexp_token(
5087 scanner: *mut GScanner,
5088 expected_token: GTokenType,
5089 identifier_spec: *const c_char,
5090 symbol_spec: *const c_char,
5091 symbol_name: *const c_char,
5092 message: *const c_char,
5093 is_error: c_int,
5094 );
5095 pub fn g_scanner_warn(scanner: *mut GScanner, format: *const c_char, ...);
5096 pub fn g_scanner_new(config_templ: *const GScannerConfig) -> *mut GScanner;
5097
5098 pub fn g_sequence_append(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
5102 pub fn g_sequence_foreach(seq: *mut GSequence, func: GFunc, user_data: gpointer);
5103 pub fn g_sequence_free(seq: *mut GSequence);
5104 pub fn g_sequence_get_begin_iter(seq: *mut GSequence) -> *mut GSequenceIter;
5105 pub fn g_sequence_get_end_iter(seq: *mut GSequence) -> *mut GSequenceIter;
5106 pub fn g_sequence_get_iter_at_pos(seq: *mut GSequence, pos: c_int) -> *mut GSequenceIter;
5107 pub fn g_sequence_get_length(seq: *mut GSequence) -> c_int;
5108 pub fn g_sequence_insert_sorted(
5109 seq: *mut GSequence,
5110 data: gpointer,
5111 cmp_func: GCompareDataFunc,
5112 cmp_data: gpointer,
5113 ) -> *mut GSequenceIter;
5114 pub fn g_sequence_insert_sorted_iter(
5115 seq: *mut GSequence,
5116 data: gpointer,
5117 iter_cmp: GSequenceIterCompareFunc,
5118 cmp_data: gpointer,
5119 ) -> *mut GSequenceIter;
5120 pub fn g_sequence_is_empty(seq: *mut GSequence) -> gboolean;
5121 pub fn g_sequence_lookup(
5122 seq: *mut GSequence,
5123 data: gpointer,
5124 cmp_func: GCompareDataFunc,
5125 cmp_data: gpointer,
5126 ) -> *mut GSequenceIter;
5127 pub fn g_sequence_lookup_iter(
5128 seq: *mut GSequence,
5129 data: gpointer,
5130 iter_cmp: GSequenceIterCompareFunc,
5131 cmp_data: gpointer,
5132 ) -> *mut GSequenceIter;
5133 pub fn g_sequence_prepend(seq: *mut GSequence, data: gpointer) -> *mut GSequenceIter;
5134 pub fn g_sequence_search(
5135 seq: *mut GSequence,
5136 data: gpointer,
5137 cmp_func: GCompareDataFunc,
5138 cmp_data: gpointer,
5139 ) -> *mut GSequenceIter;
5140 pub fn g_sequence_search_iter(
5141 seq: *mut GSequence,
5142 data: gpointer,
5143 iter_cmp: GSequenceIterCompareFunc,
5144 cmp_data: gpointer,
5145 ) -> *mut GSequenceIter;
5146 pub fn g_sequence_sort(seq: *mut GSequence, cmp_func: GCompareDataFunc, cmp_data: gpointer);
5147 pub fn g_sequence_sort_iter(
5148 seq: *mut GSequence,
5149 cmp_func: GSequenceIterCompareFunc,
5150 cmp_data: gpointer,
5151 );
5152 pub fn g_sequence_foreach_range(
5153 begin: *mut GSequenceIter,
5154 end: *mut GSequenceIter,
5155 func: GFunc,
5156 user_data: gpointer,
5157 );
5158 pub fn g_sequence_get(iter: *mut GSequenceIter) -> gpointer;
5159 pub fn g_sequence_insert_before(iter: *mut GSequenceIter, data: gpointer)
5160 -> *mut GSequenceIter;
5161 pub fn g_sequence_move(src: *mut GSequenceIter, dest: *mut GSequenceIter);
5162 pub fn g_sequence_move_range(
5163 dest: *mut GSequenceIter,
5164 begin: *mut GSequenceIter,
5165 end: *mut GSequenceIter,
5166 );
5167 pub fn g_sequence_new(data_destroy: GDestroyNotify) -> *mut GSequence;
5168 pub fn g_sequence_range_get_midpoint(
5169 begin: *mut GSequenceIter,
5170 end: *mut GSequenceIter,
5171 ) -> *mut GSequenceIter;
5172 pub fn g_sequence_remove(iter: *mut GSequenceIter);
5173 pub fn g_sequence_remove_range(begin: *mut GSequenceIter, end: *mut GSequenceIter);
5174 pub fn g_sequence_set(iter: *mut GSequenceIter, data: gpointer);
5175 pub fn g_sequence_sort_changed(
5176 iter: *mut GSequenceIter,
5177 cmp_func: GCompareDataFunc,
5178 cmp_data: gpointer,
5179 );
5180 pub fn g_sequence_sort_changed_iter(
5181 iter: *mut GSequenceIter,
5182 iter_cmp: GSequenceIterCompareFunc,
5183 cmp_data: gpointer,
5184 );
5185 pub fn g_sequence_swap(a: *mut GSequenceIter, b: *mut GSequenceIter);
5186
5187 pub fn g_sequence_iter_compare(a: *mut GSequenceIter, b: *mut GSequenceIter) -> c_int;
5191 pub fn g_sequence_iter_get_position(iter: *mut GSequenceIter) -> c_int;
5192 pub fn g_sequence_iter_get_sequence(iter: *mut GSequenceIter) -> *mut GSequence;
5193 pub fn g_sequence_iter_is_begin(iter: *mut GSequenceIter) -> gboolean;
5194 pub fn g_sequence_iter_is_end(iter: *mut GSequenceIter) -> gboolean;
5195 pub fn g_sequence_iter_move(iter: *mut GSequenceIter, delta: c_int) -> *mut GSequenceIter;
5196 pub fn g_sequence_iter_next(iter: *mut GSequenceIter) -> *mut GSequenceIter;
5197 pub fn g_sequence_iter_prev(iter: *mut GSequenceIter) -> *mut GSequenceIter;
5198
5199 pub fn g_source_get_type() -> GType;
5203 pub fn g_source_new(source_funcs: *mut GSourceFuncs, struct_size: c_uint) -> *mut GSource;
5204 pub fn g_source_add_child_source(source: *mut GSource, child_source: *mut GSource);
5205 pub fn g_source_add_poll(source: *mut GSource, fd: *mut GPollFD);
5206 pub fn g_source_add_unix_fd(source: *mut GSource, fd: c_int, events: GIOCondition) -> gpointer;
5207 pub fn g_source_attach(source: *mut GSource, context: *mut GMainContext) -> c_uint;
5208 #[cfg(feature = "v2_90")]
5209 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
5210 pub fn g_source_clear_ready_time(source: *mut GSource);
5211 pub fn g_source_destroy(source: *mut GSource);
5212 #[cfg(feature = "v2_86")]
5213 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
5214 pub fn g_source_dup_context(source: *mut GSource) -> *mut GMainContext;
5215 pub fn g_source_get_can_recurse(source: *mut GSource) -> gboolean;
5216 pub fn g_source_get_context(source: *mut GSource) -> *mut GMainContext;
5217 pub fn g_source_get_current_time(source: *mut GSource, timeval: *mut GTimeVal);
5218 pub fn g_source_get_id(source: *mut GSource) -> c_uint;
5219 pub fn g_source_get_name(source: *mut GSource) -> *const c_char;
5220 pub fn g_source_get_priority(source: *mut GSource) -> c_int;
5221 pub fn g_source_get_ready_time(source: *mut GSource) -> i64;
5222 #[cfg(feature = "v2_90")]
5223 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
5224 pub fn g_source_get_ready_time_ns(source: *mut GSource, ready_time: *mut u64) -> gboolean;
5225 pub fn g_source_get_time(source: *mut GSource) -> i64;
5226 #[cfg(feature = "v2_90")]
5227 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
5228 pub fn g_source_get_time_ns(source: *mut GSource) -> u64;
5229 pub fn g_source_is_destroyed(source: *mut GSource) -> gboolean;
5230 pub fn g_source_modify_unix_fd(source: *mut GSource, tag: gpointer, new_events: GIOCondition);
5231 pub fn g_source_query_unix_fd(source: *mut GSource, tag: gpointer) -> GIOCondition;
5232 pub fn g_source_ref(source: *mut GSource) -> *mut GSource;
5233 pub fn g_source_remove_child_source(source: *mut GSource, child_source: *mut GSource);
5234 pub fn g_source_remove_poll(source: *mut GSource, fd: *mut GPollFD);
5235 pub fn g_source_remove_unix_fd(source: *mut GSource, tag: gpointer);
5236 pub fn g_source_set_callback(
5237 source: *mut GSource,
5238 func: GSourceFunc,
5239 data: gpointer,
5240 notify: GDestroyNotify,
5241 );
5242 pub fn g_source_set_callback_indirect(
5243 source: *mut GSource,
5244 callback_data: gpointer,
5245 callback_funcs: *mut GSourceCallbackFuncs,
5246 );
5247 pub fn g_source_set_can_recurse(source: *mut GSource, can_recurse: gboolean);
5248 #[cfg(feature = "v2_64")]
5249 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
5250 pub fn g_source_set_dispose_function(source: *mut GSource, dispose: GSourceDisposeFunc);
5251 pub fn g_source_set_funcs(source: *mut GSource, funcs: *mut GSourceFuncs);
5252 pub fn g_source_set_name(source: *mut GSource, name: *const c_char);
5253 pub fn g_source_set_priority(source: *mut GSource, priority: c_int);
5254 pub fn g_source_set_ready_time(source: *mut GSource, ready_time: i64);
5255 #[cfg(feature = "v2_90")]
5256 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
5257 pub fn g_source_set_ready_time_ns(source: *mut GSource, ready_time: u64);
5258 #[cfg(feature = "v2_70")]
5259 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
5260 pub fn g_source_set_static_name(source: *mut GSource, name: *const c_char);
5261 pub fn g_source_unref(source: *mut GSource);
5262 pub fn g_source_remove(tag: c_uint) -> gboolean;
5263 pub fn g_source_remove_by_funcs_user_data(
5264 funcs: *mut GSourceFuncs,
5265 user_data: gpointer,
5266 ) -> gboolean;
5267 pub fn g_source_remove_by_user_data(user_data: gpointer) -> gboolean;
5268 pub fn g_source_set_name_by_id(tag: c_uint, name: *const c_char);
5269
5270 pub fn g_gstring_get_type() -> GType;
5290 pub fn g_string_new(init: *const c_char) -> *mut GString;
5291 pub fn g_string_new_len(init: *const c_char, len: ssize_t) -> *mut GString;
5292 #[cfg(feature = "v2_78")]
5293 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
5294 pub fn g_string_new_take(init: *mut c_char) -> *mut GString;
5295 pub fn g_string_sized_new(dfl_size: size_t) -> *mut GString;
5296 pub fn g_string_append(string: *mut GString, val: *const c_char) -> *mut GString;
5297 pub fn g_string_append_c(string: *mut GString, c: c_char) -> *mut GString;
5298 pub fn g_string_append_len(
5299 string: *mut GString,
5300 val: *const c_char,
5301 len: ssize_t,
5302 ) -> *mut GString;
5303 pub fn g_string_append_printf(string: *mut GString, format: *const c_char, ...);
5304 pub fn g_string_append_unichar(string: *mut GString, wc: u32) -> *mut GString;
5305 pub fn g_string_append_uri_escaped(
5306 string: *mut GString,
5307 unescaped: *const c_char,
5308 reserved_chars_allowed: *const c_char,
5309 allow_utf8: gboolean,
5310 ) -> *mut GString;
5311 pub fn g_string_ascii_down(string: *mut GString) -> *mut GString;
5313 pub fn g_string_ascii_up(string: *mut GString) -> *mut GString;
5314 pub fn g_string_assign(string: *mut GString, rval: *const c_char) -> *mut GString;
5315 #[cfg(feature = "v2_86")]
5316 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
5317 pub fn g_string_copy(string: *mut GString) -> *mut GString;
5318 pub fn g_string_down(string: *mut GString) -> *mut GString;
5319 pub fn g_string_equal(v: *const GString, v2: *const GString) -> gboolean;
5320 pub fn g_string_erase(string: *mut GString, pos: ssize_t, len: ssize_t) -> *mut GString;
5321 pub fn g_string_free(string: *mut GString, free_segment: gboolean) -> *mut c_char;
5322 #[cfg(feature = "v2_76")]
5323 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
5324 pub fn g_string_free_and_steal(string: *mut GString) -> *mut c_char;
5325 #[cfg(feature = "v2_90")]
5326 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
5327 pub fn g_string_free_deep(string: *mut GString);
5328 pub fn g_string_free_to_bytes(string: *mut GString) -> *mut GBytes;
5329 pub fn g_string_hash(str: *const GString) -> c_uint;
5330 pub fn g_string_insert(string: *mut GString, pos: ssize_t, val: *const c_char) -> *mut GString;
5331 pub fn g_string_insert_c(string: *mut GString, pos: ssize_t, c: c_char) -> *mut GString;
5332 pub fn g_string_insert_len(
5333 string: *mut GString,
5334 pos: ssize_t,
5335 val: *const c_char,
5336 len: ssize_t,
5337 ) -> *mut GString;
5338 pub fn g_string_insert_unichar(string: *mut GString, pos: ssize_t, wc: u32) -> *mut GString;
5339 pub fn g_string_overwrite(
5340 string: *mut GString,
5341 pos: size_t,
5342 val: *const c_char,
5343 ) -> *mut GString;
5344 pub fn g_string_overwrite_len(
5345 string: *mut GString,
5346 pos: size_t,
5347 val: *const c_char,
5348 len: ssize_t,
5349 ) -> *mut GString;
5350 pub fn g_string_prepend(string: *mut GString, val: *const c_char) -> *mut GString;
5351 pub fn g_string_prepend_c(string: *mut GString, c: c_char) -> *mut GString;
5352 pub fn g_string_prepend_len(
5353 string: *mut GString,
5354 val: *const c_char,
5355 len: ssize_t,
5356 ) -> *mut GString;
5357 pub fn g_string_prepend_unichar(string: *mut GString, wc: u32) -> *mut GString;
5358 pub fn g_string_printf(string: *mut GString, format: *const c_char, ...);
5359 #[cfg(feature = "v2_68")]
5360 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5361 pub fn g_string_replace(
5362 string: *mut GString,
5363 find: *const c_char,
5364 replace: *const c_char,
5365 limit: c_uint,
5366 ) -> c_uint;
5367 pub fn g_string_set_size(string: *mut GString, len: size_t) -> *mut GString;
5368 pub fn g_string_truncate(string: *mut GString, len: size_t) -> *mut GString;
5369 pub fn g_string_up(string: *mut GString) -> *mut GString;
5370 pub fn g_string_chunk_clear(chunk: *mut GStringChunk);
5376 pub fn g_string_chunk_free(chunk: *mut GStringChunk);
5377 pub fn g_string_chunk_insert(chunk: *mut GStringChunk, string: *const c_char) -> *mut c_char;
5378 pub fn g_string_chunk_insert_const(
5379 chunk: *mut GStringChunk,
5380 string: *const c_char,
5381 ) -> *mut c_char;
5382 pub fn g_string_chunk_insert_len(
5383 chunk: *mut GStringChunk,
5384 string: *const c_char,
5385 len: ssize_t,
5386 ) -> *mut c_char;
5387 pub fn g_string_chunk_new(size: size_t) -> *mut GStringChunk;
5388
5389 #[cfg(feature = "v2_68")]
5393 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5394 pub fn g_strv_builder_get_type() -> GType;
5395 #[cfg(feature = "v2_68")]
5396 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5397 pub fn g_strv_builder_new() -> *mut GStrvBuilder;
5398 #[cfg(feature = "v2_68")]
5399 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5400 pub fn g_strv_builder_add(builder: *mut GStrvBuilder, value: *const c_char);
5401 #[cfg(feature = "v2_68")]
5402 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5403 pub fn g_strv_builder_add_many(builder: *mut GStrvBuilder, ...);
5404 #[cfg(feature = "v2_68")]
5405 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5406 pub fn g_strv_builder_addv(builder: *mut GStrvBuilder, value: *mut *const c_char);
5407 #[cfg(feature = "v2_68")]
5408 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5409 pub fn g_strv_builder_end(builder: *mut GStrvBuilder) -> c_char;
5410 #[cfg(feature = "v2_68")]
5411 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5412 pub fn g_strv_builder_ref(builder: *mut GStrvBuilder) -> *mut GStrvBuilder;
5413 #[cfg(feature = "v2_68")]
5414 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5415 pub fn g_strv_builder_take(builder: *mut GStrvBuilder, value: *mut c_char);
5416 #[cfg(feature = "v2_68")]
5417 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5418 pub fn g_strv_builder_unref(builder: *mut GStrvBuilder);
5419 #[cfg(feature = "v2_82")]
5420 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
5421 pub fn g_strv_builder_unref_to_strv(builder: *mut GStrvBuilder) -> c_char;
5422
5423 #[cfg(feature = "v2_70")]
5427 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
5428 pub fn g_test_case_free(test_case: *mut GTestCase);
5429
5430 pub fn g_test_log_buffer_free(tbuffer: *mut GTestLogBuffer);
5434 pub fn g_test_log_buffer_push(tbuffer: *mut GTestLogBuffer, n_bytes: c_uint, bytes: *const u8);
5436 pub fn g_test_log_buffer_new() -> *mut GTestLogBuffer;
5437
5438 pub fn g_test_suite_add(suite: *mut GTestSuite, test_case: *mut GTestCase);
5447 pub fn g_test_suite_add_suite(suite: *mut GTestSuite, nestedsuite: *mut GTestSuite);
5448 #[cfg(feature = "v2_70")]
5449 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
5450 pub fn g_test_suite_free(suite: *mut GTestSuite);
5451
5452 pub fn g_thread_get_type() -> GType;
5456 pub fn g_thread_new(name: *const c_char, func: GThreadFunc, data: gpointer) -> *mut GThread;
5457 pub fn g_thread_try_new(
5458 name: *const c_char,
5459 func: GThreadFunc,
5460 data: gpointer,
5461 error: *mut *mut GError,
5462 ) -> *mut GThread;
5463 #[cfg(feature = "v2_84")]
5464 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
5465 pub fn g_thread_get_name(thread: *mut GThread) -> *const c_char;
5466 pub fn g_thread_join(thread: *mut GThread) -> gpointer;
5467 pub fn g_thread_ref(thread: *mut GThread) -> *mut GThread;
5468 pub fn g_thread_set_priority(thread: *mut GThread, priority: GThreadPriority);
5469 pub fn g_thread_unref(thread: *mut GThread);
5470 pub fn g_thread_create(
5471 func: GThreadFunc,
5472 data: gpointer,
5473 joinable: gboolean,
5474 error: *mut *mut GError,
5475 ) -> *mut GThread;
5476 pub fn g_thread_create_full(
5477 func: GThreadFunc,
5478 data: gpointer,
5479 stack_size: c_ulong,
5480 joinable: gboolean,
5481 bound: gboolean,
5482 priority: GThreadPriority,
5483 error: *mut *mut GError,
5484 ) -> *mut GThread;
5485 pub fn g_thread_error_quark() -> GQuark;
5486 pub fn g_thread_exit(retval: gpointer);
5487 pub fn g_thread_foreach(thread_func: GFunc, user_data: gpointer);
5488 pub fn g_thread_get_initialized() -> gboolean;
5489 pub fn g_thread_init(vtable: gpointer);
5490 pub fn g_thread_init_with_errorcheck_mutexes(vtable: gpointer);
5491 pub fn g_thread_self() -> *mut GThread;
5492 pub fn g_thread_yield();
5493
5494 pub fn g_thread_pool_free(pool: *mut GThreadPool, immediate: gboolean, wait_: gboolean);
5498 pub fn g_thread_pool_get_max_threads(pool: *mut GThreadPool) -> c_int;
5499 pub fn g_thread_pool_get_num_threads(pool: *mut GThreadPool) -> c_uint;
5500 pub fn g_thread_pool_move_to_front(pool: *mut GThreadPool, data: gpointer) -> gboolean;
5501 pub fn g_thread_pool_push(
5502 pool: *mut GThreadPool,
5503 data: gpointer,
5504 error: *mut *mut GError,
5505 ) -> gboolean;
5506 pub fn g_thread_pool_set_max_threads(
5507 pool: *mut GThreadPool,
5508 max_threads: c_int,
5509 error: *mut *mut GError,
5510 ) -> gboolean;
5511 pub fn g_thread_pool_set_sort_function(
5512 pool: *mut GThreadPool,
5513 func: GCompareDataFunc,
5514 user_data: gpointer,
5515 );
5516 pub fn g_thread_pool_unprocessed(pool: *mut GThreadPool) -> c_uint;
5517 pub fn g_thread_pool_get_max_idle_time() -> c_uint;
5518 pub fn g_thread_pool_get_max_unused_threads() -> c_int;
5519 pub fn g_thread_pool_get_num_unused_threads() -> c_uint;
5520 pub fn g_thread_pool_new(
5521 func: GFunc,
5522 user_data: gpointer,
5523 max_threads: c_int,
5524 exclusive: gboolean,
5525 error: *mut *mut GError,
5526 ) -> *mut GThreadPool;
5527 #[cfg(feature = "v2_70")]
5528 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
5529 pub fn g_thread_pool_new_full(
5530 func: GFunc,
5531 user_data: gpointer,
5532 item_free_func: GDestroyNotify,
5533 max_threads: c_int,
5534 exclusive: gboolean,
5535 error: *mut *mut GError,
5536 ) -> *mut GThreadPool;
5537 pub fn g_thread_pool_set_max_idle_time(interval: c_uint);
5538 pub fn g_thread_pool_set_max_unused_threads(max_threads: c_int);
5539 pub fn g_thread_pool_stop_unused_threads();
5540
5541 pub fn g_time_val_add(time_: *mut GTimeVal, microseconds: c_long);
5545 pub fn g_time_val_to_iso8601(time_: *mut GTimeVal) -> *mut c_char;
5546 pub fn g_time_val_from_iso8601(iso_date: *const c_char, time_: *mut GTimeVal) -> gboolean;
5547
5548 pub fn g_time_zone_get_type() -> GType;
5552 pub fn g_time_zone_new(identifier: *const c_char) -> *mut GTimeZone;
5553 #[cfg(feature = "v2_68")]
5554 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5555 pub fn g_time_zone_new_identifier(identifier: *const c_char) -> *mut GTimeZone;
5556 pub fn g_time_zone_new_local() -> *mut GTimeZone;
5557 #[cfg(feature = "v2_58")]
5558 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
5559 pub fn g_time_zone_new_offset(seconds: i32) -> *mut GTimeZone;
5560 pub fn g_time_zone_new_utc() -> *mut GTimeZone;
5561 pub fn g_time_zone_adjust_time(tz: *mut GTimeZone, type_: GTimeType, time_: *mut i64) -> c_int;
5562 pub fn g_time_zone_find_interval(tz: *mut GTimeZone, type_: GTimeType, time_: i64) -> c_int;
5563 pub fn g_time_zone_get_abbreviation(tz: *mut GTimeZone, interval: c_int) -> *const c_char;
5564 #[cfg(feature = "v2_58")]
5565 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
5566 pub fn g_time_zone_get_identifier(tz: *mut GTimeZone) -> *const c_char;
5567 pub fn g_time_zone_get_offset(tz: *mut GTimeZone, interval: c_int) -> i32;
5568 pub fn g_time_zone_is_dst(tz: *mut GTimeZone, interval: c_int) -> gboolean;
5569 pub fn g_time_zone_ref(tz: *mut GTimeZone) -> *mut GTimeZone;
5570 pub fn g_time_zone_unref(tz: *mut GTimeZone);
5571
5572 pub fn g_timer_continue(timer: *mut GTimer);
5576 pub fn g_timer_destroy(timer: *mut GTimer);
5577 pub fn g_timer_elapsed(timer: *mut GTimer, microseconds: *mut c_ulong) -> c_double;
5578 #[cfg(feature = "v2_62")]
5579 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
5580 pub fn g_timer_is_active(timer: *mut GTimer) -> gboolean;
5581 pub fn g_timer_reset(timer: *mut GTimer);
5582 pub fn g_timer_start(timer: *mut GTimer);
5583 pub fn g_timer_stop(timer: *mut GTimer);
5584 pub fn g_timer_new() -> *mut GTimer;
5585
5586 pub fn g_trash_stack_height(stack_p: *mut *mut GTrashStack) -> c_uint;
5590 pub fn g_trash_stack_peek(stack_p: *mut *mut GTrashStack) -> gpointer;
5591 pub fn g_trash_stack_pop(stack_p: *mut *mut GTrashStack) -> gpointer;
5592 pub fn g_trash_stack_push(stack_p: *mut *mut GTrashStack, data_p: gpointer);
5593
5594 pub fn g_tree_get_type() -> GType;
5598 pub fn g_tree_new(key_compare_func: GCompareFunc) -> *mut GTree;
5599 pub fn g_tree_new_full(
5600 key_compare_func: GCompareDataFunc,
5601 key_compare_data: gpointer,
5602 key_destroy_func: GDestroyNotify,
5603 value_destroy_func: GDestroyNotify,
5604 ) -> *mut GTree;
5605 pub fn g_tree_new_with_data(
5606 key_compare_func: GCompareDataFunc,
5607 key_compare_data: gpointer,
5608 ) -> *mut GTree;
5609 pub fn g_tree_destroy(tree: *mut GTree);
5610 pub fn g_tree_foreach(tree: *mut GTree, func: GTraverseFunc, user_data: gpointer);
5611 #[cfg(feature = "v2_68")]
5612 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5613 pub fn g_tree_foreach_node(tree: *mut GTree, func: GTraverseNodeFunc, user_data: gpointer);
5614 pub fn g_tree_height(tree: *mut GTree) -> c_int;
5615 pub fn g_tree_insert(tree: *mut GTree, key: gpointer, value: gpointer);
5616 #[cfg(feature = "v2_68")]
5617 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5618 pub fn g_tree_insert_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode;
5619 pub fn g_tree_lookup(tree: *mut GTree, key: gconstpointer) -> gpointer;
5620 pub fn g_tree_lookup_extended(
5621 tree: *mut GTree,
5622 lookup_key: gconstpointer,
5623 orig_key: *mut gpointer,
5624 value: *mut gpointer,
5625 ) -> gboolean;
5626 #[cfg(feature = "v2_68")]
5627 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5628 pub fn g_tree_lookup_node(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
5629 #[cfg(feature = "v2_68")]
5630 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5631 pub fn g_tree_lower_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
5632 pub fn g_tree_nnodes(tree: *mut GTree) -> c_int;
5633 #[cfg(feature = "v2_68")]
5634 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5635 pub fn g_tree_node_first(tree: *mut GTree) -> *mut GTreeNode;
5636 #[cfg(feature = "v2_68")]
5637 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5638 pub fn g_tree_node_last(tree: *mut GTree) -> *mut GTreeNode;
5639 pub fn g_tree_ref(tree: *mut GTree) -> *mut GTree;
5640 pub fn g_tree_remove(tree: *mut GTree, key: gconstpointer) -> gboolean;
5641 #[cfg(feature = "v2_70")]
5642 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
5643 pub fn g_tree_remove_all(tree: *mut GTree);
5644 pub fn g_tree_replace(tree: *mut GTree, key: gpointer, value: gpointer);
5645 #[cfg(feature = "v2_68")]
5646 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5647 pub fn g_tree_replace_node(tree: *mut GTree, key: gpointer, value: gpointer) -> *mut GTreeNode;
5648 pub fn g_tree_search(
5649 tree: *mut GTree,
5650 search_func: GCompareFunc,
5651 user_data: gconstpointer,
5652 ) -> gpointer;
5653 #[cfg(feature = "v2_68")]
5654 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5655 pub fn g_tree_search_node(
5656 tree: *mut GTree,
5657 search_func: GCompareFunc,
5658 user_data: gconstpointer,
5659 ) -> *mut GTreeNode;
5660 pub fn g_tree_steal(tree: *mut GTree, key: gconstpointer) -> gboolean;
5661 pub fn g_tree_traverse(
5662 tree: *mut GTree,
5663 traverse_func: GTraverseFunc,
5664 traverse_type: GTraverseType,
5665 user_data: gpointer,
5666 );
5667 pub fn g_tree_unref(tree: *mut GTree);
5668 #[cfg(feature = "v2_68")]
5669 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5670 pub fn g_tree_upper_bound(tree: *mut GTree, key: gconstpointer) -> *mut GTreeNode;
5671
5672 #[cfg(feature = "v2_68")]
5676 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5677 pub fn g_tree_node_key(node: *mut GTreeNode) -> gpointer;
5678 #[cfg(feature = "v2_68")]
5679 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5680 pub fn g_tree_node_next(node: *mut GTreeNode) -> *mut GTreeNode;
5681 #[cfg(feature = "v2_68")]
5682 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5683 pub fn g_tree_node_previous(node: *mut GTreeNode) -> *mut GTreeNode;
5684 #[cfg(feature = "v2_68")]
5685 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
5686 pub fn g_tree_node_value(node: *mut GTreeNode) -> gpointer;
5687
5688 pub fn g_tuples_destroy(tuples: *mut GTuples);
5692 pub fn g_tuples_index(tuples: *mut GTuples, index_: c_int, field: c_int) -> gpointer;
5693
5694 #[cfg(feature = "v2_66")]
5698 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5699 pub fn g_uri_get_type() -> GType;
5700 #[cfg(feature = "v2_66")]
5701 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5702 pub fn g_uri_get_auth_params(uri: *mut GUri) -> *const c_char;
5703 #[cfg(feature = "v2_66")]
5704 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5705 pub fn g_uri_get_flags(uri: *mut GUri) -> GUriFlags;
5706 #[cfg(feature = "v2_66")]
5707 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5708 pub fn g_uri_get_fragment(uri: *mut GUri) -> *const c_char;
5709 #[cfg(feature = "v2_66")]
5710 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5711 pub fn g_uri_get_host(uri: *mut GUri) -> *const c_char;
5712 #[cfg(feature = "v2_66")]
5713 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5714 pub fn g_uri_get_password(uri: *mut GUri) -> *const c_char;
5715 #[cfg(feature = "v2_66")]
5716 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5717 pub fn g_uri_get_path(uri: *mut GUri) -> *const c_char;
5718 #[cfg(feature = "v2_66")]
5719 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5720 pub fn g_uri_get_port(uri: *mut GUri) -> c_int;
5721 #[cfg(feature = "v2_66")]
5722 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5723 pub fn g_uri_get_query(uri: *mut GUri) -> *const c_char;
5724 #[cfg(feature = "v2_66")]
5725 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5726 pub fn g_uri_get_scheme(uri: *mut GUri) -> *const c_char;
5727 #[cfg(feature = "v2_66")]
5728 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5729 pub fn g_uri_get_user(uri: *mut GUri) -> *const c_char;
5730 #[cfg(feature = "v2_66")]
5731 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5732 pub fn g_uri_get_userinfo(uri: *mut GUri) -> *const c_char;
5733 #[cfg(feature = "v2_66")]
5734 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5735 pub fn g_uri_parse_relative(
5736 base_uri: *mut GUri,
5737 uri_ref: *const c_char,
5738 flags: GUriFlags,
5739 error: *mut *mut GError,
5740 ) -> *mut GUri;
5741 #[cfg(feature = "v2_66")]
5742 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5743 pub fn g_uri_ref(uri: *mut GUri) -> *mut GUri;
5744 #[cfg(feature = "v2_66")]
5745 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5746 pub fn g_uri_to_string(uri: *mut GUri) -> *mut c_char;
5747 #[cfg(feature = "v2_66")]
5748 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5749 pub fn g_uri_to_string_partial(uri: *mut GUri, flags: GUriHideFlags) -> *mut c_char;
5750 #[cfg(feature = "v2_66")]
5751 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5752 pub fn g_uri_unref(uri: *mut GUri);
5753 #[cfg(feature = "v2_66")]
5754 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5755 pub fn g_uri_build(
5756 flags: GUriFlags,
5757 scheme: *const c_char,
5758 userinfo: *const c_char,
5759 host: *const c_char,
5760 port: c_int,
5761 path: *const c_char,
5762 query: *const c_char,
5763 fragment: *const c_char,
5764 ) -> *mut GUri;
5765 #[cfg(feature = "v2_66")]
5766 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5767 pub fn g_uri_build_with_user(
5768 flags: GUriFlags,
5769 scheme: *const c_char,
5770 user: *const c_char,
5771 password: *const c_char,
5772 auth_params: *const c_char,
5773 host: *const c_char,
5774 port: c_int,
5775 path: *const c_char,
5776 query: *const c_char,
5777 fragment: *const c_char,
5778 ) -> *mut GUri;
5779 #[cfg(feature = "v2_66")]
5780 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5781 pub fn g_uri_error_quark() -> GQuark;
5782 #[cfg(feature = "v2_66")]
5783 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5784 pub fn g_uri_escape_bytes(
5785 unescaped: *const u8,
5786 length: size_t,
5787 reserved_chars_allowed: *const c_char,
5788 ) -> *mut c_char;
5789 pub fn g_uri_escape_string(
5790 unescaped: *const c_char,
5791 reserved_chars_allowed: *const c_char,
5792 allow_utf8: gboolean,
5793 ) -> *mut c_char;
5794 #[cfg(feature = "v2_66")]
5795 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5796 pub fn g_uri_is_valid(
5797 uri_string: *const c_char,
5798 flags: GUriFlags,
5799 error: *mut *mut GError,
5800 ) -> gboolean;
5801 #[cfg(feature = "v2_66")]
5802 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5803 pub fn g_uri_join(
5804 flags: GUriFlags,
5805 scheme: *const c_char,
5806 userinfo: *const c_char,
5807 host: *const c_char,
5808 port: c_int,
5809 path: *const c_char,
5810 query: *const c_char,
5811 fragment: *const c_char,
5812 ) -> *mut c_char;
5813 #[cfg(feature = "v2_66")]
5814 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5815 pub fn g_uri_join_with_user(
5816 flags: GUriFlags,
5817 scheme: *const c_char,
5818 user: *const c_char,
5819 password: *const c_char,
5820 auth_params: *const c_char,
5821 host: *const c_char,
5822 port: c_int,
5823 path: *const c_char,
5824 query: *const c_char,
5825 fragment: *const c_char,
5826 ) -> *mut c_char;
5827 pub fn g_uri_list_extract_uris(uri_list: *const c_char) -> *mut *mut c_char;
5828 #[cfg(feature = "v2_66")]
5829 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5830 pub fn g_uri_parse(
5831 uri_string: *const c_char,
5832 flags: GUriFlags,
5833 error: *mut *mut GError,
5834 ) -> *mut GUri;
5835 #[cfg(feature = "v2_66")]
5836 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5837 pub fn g_uri_parse_params(
5838 params: *const c_char,
5839 length: ssize_t,
5840 separators: *const c_char,
5841 flags: GUriParamsFlags,
5842 error: *mut *mut GError,
5843 ) -> *mut GHashTable;
5844 pub fn g_uri_parse_scheme(uri: *const c_char) -> *mut c_char;
5845 #[cfg(feature = "v2_66")]
5846 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5847 pub fn g_uri_peek_scheme(uri: *const c_char) -> *const c_char;
5848 #[cfg(feature = "v2_66")]
5849 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5850 pub fn g_uri_resolve_relative(
5851 base_uri_string: *const c_char,
5852 uri_ref: *const c_char,
5853 flags: GUriFlags,
5854 error: *mut *mut GError,
5855 ) -> *mut c_char;
5856 #[cfg(feature = "v2_66")]
5857 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5858 pub fn g_uri_split(
5859 uri_ref: *const c_char,
5860 flags: GUriFlags,
5861 scheme: *mut *mut c_char,
5862 userinfo: *mut *mut c_char,
5863 host: *mut *mut c_char,
5864 port: *mut c_int,
5865 path: *mut *mut c_char,
5866 query: *mut *mut c_char,
5867 fragment: *mut *mut c_char,
5868 error: *mut *mut GError,
5869 ) -> gboolean;
5870 #[cfg(feature = "v2_66")]
5871 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5872 pub fn g_uri_split_network(
5873 uri_string: *const c_char,
5874 flags: GUriFlags,
5875 scheme: *mut *mut c_char,
5876 host: *mut *mut c_char,
5877 port: *mut c_int,
5878 error: *mut *mut GError,
5879 ) -> gboolean;
5880 #[cfg(feature = "v2_66")]
5881 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5882 pub fn g_uri_split_with_user(
5883 uri_ref: *const c_char,
5884 flags: GUriFlags,
5885 scheme: *mut *mut c_char,
5886 user: *mut *mut c_char,
5887 password: *mut *mut c_char,
5888 auth_params: *mut *mut c_char,
5889 host: *mut *mut c_char,
5890 port: *mut c_int,
5891 path: *mut *mut c_char,
5892 query: *mut *mut c_char,
5893 fragment: *mut *mut c_char,
5894 error: *mut *mut GError,
5895 ) -> gboolean;
5896 #[cfg(feature = "v2_66")]
5897 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5898 pub fn g_uri_unescape_bytes(
5899 escaped_string: *const c_char,
5900 length: ssize_t,
5901 illegal_characters: *const c_char,
5902 error: *mut *mut GError,
5903 ) -> *mut GBytes;
5904 pub fn g_uri_unescape_segment(
5905 escaped_string: *const c_char,
5906 escaped_string_end: *const c_char,
5907 illegal_characters: *const c_char,
5908 ) -> *mut c_char;
5909 pub fn g_uri_unescape_string(
5910 escaped_string: *const c_char,
5911 illegal_characters: *const c_char,
5912 ) -> *mut c_char;
5913
5914 #[cfg(feature = "v2_66")]
5918 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5919 pub fn g_uri_params_iter_init(
5920 iter: *mut GUriParamsIter,
5921 params: *const c_char,
5922 length: ssize_t,
5923 separators: *const c_char,
5924 flags: GUriParamsFlags,
5925 );
5926 #[cfg(feature = "v2_66")]
5927 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
5928 pub fn g_uri_params_iter_next(
5929 iter: *mut GUriParamsIter,
5930 attribute: *mut *mut c_char,
5931 value: *mut *mut c_char,
5932 error: *mut *mut GError,
5933 ) -> gboolean;
5934
5935 pub fn g_variant_new(format_string: *const c_char, ...) -> *mut GVariant;
5939 pub fn g_variant_new_array(
5940 child_type: *const GVariantType,
5941 children: *const *mut GVariant,
5942 n_children: size_t,
5943 ) -> *mut GVariant;
5944 pub fn g_variant_new_boolean(value: gboolean) -> *mut GVariant;
5945 pub fn g_variant_new_byte(value: u8) -> *mut GVariant;
5946 pub fn g_variant_new_bytestring(string: *const u8) -> *mut GVariant;
5947 pub fn g_variant_new_bytestring_array(
5948 strv: *const *const c_char,
5949 length: ssize_t,
5950 ) -> *mut GVariant;
5951 pub fn g_variant_new_dict_entry(key: *mut GVariant, value: *mut GVariant) -> *mut GVariant;
5952 pub fn g_variant_new_double(value: c_double) -> *mut GVariant;
5953 pub fn g_variant_new_fixed_array(
5954 element_type: *const GVariantType,
5955 elements: gconstpointer,
5956 n_elements: size_t,
5957 element_size: size_t,
5958 ) -> *mut GVariant;
5959 pub fn g_variant_new_from_bytes(
5960 type_: *const GVariantType,
5961 bytes: *mut GBytes,
5962 trusted: gboolean,
5963 ) -> *mut GVariant;
5964 pub fn g_variant_new_from_data(
5965 type_: *const GVariantType,
5966 data: gconstpointer,
5967 size: size_t,
5968 trusted: gboolean,
5969 notify: GDestroyNotify,
5970 user_data: gpointer,
5971 ) -> *mut GVariant;
5972 pub fn g_variant_new_handle(value: i32) -> *mut GVariant;
5973 pub fn g_variant_new_int16(value: i16) -> *mut GVariant;
5974 pub fn g_variant_new_int32(value: i32) -> *mut GVariant;
5975 pub fn g_variant_new_int64(value: i64) -> *mut GVariant;
5976 pub fn g_variant_new_maybe(
5977 child_type: *const GVariantType,
5978 child: *mut GVariant,
5979 ) -> *mut GVariant;
5980 pub fn g_variant_new_object_path(object_path: *const c_char) -> *mut GVariant;
5981 pub fn g_variant_new_objv(strv: *const *const c_char, length: ssize_t) -> *mut GVariant;
5982 pub fn g_variant_new_parsed(format: *const c_char, ...) -> *mut GVariant;
5983 pub fn g_variant_new_printf(format_string: *const c_char, ...) -> *mut GVariant;
5985 pub fn g_variant_new_signature(signature: *const c_char) -> *mut GVariant;
5986 pub fn g_variant_new_string(string: *const c_char) -> *mut GVariant;
5987 pub fn g_variant_new_strv(strv: *const *const c_char, length: ssize_t) -> *mut GVariant;
5988 pub fn g_variant_new_take_string(string: *mut c_char) -> *mut GVariant;
5989 pub fn g_variant_new_tuple(children: *const *mut GVariant, n_children: size_t)
5990 -> *mut GVariant;
5991 pub fn g_variant_new_uint16(value: u16) -> *mut GVariant;
5992 pub fn g_variant_new_uint32(value: u32) -> *mut GVariant;
5993 pub fn g_variant_new_uint64(value: u64) -> *mut GVariant;
5994 pub fn g_variant_new_variant(value: *mut GVariant) -> *mut GVariant;
5996 pub fn g_variant_byteswap(value: *mut GVariant) -> *mut GVariant;
5997 pub fn g_variant_check_format_string(
5998 value: *mut GVariant,
5999 format_string: *const c_char,
6000 copy_only: gboolean,
6001 ) -> gboolean;
6002 pub fn g_variant_classify(value: *mut GVariant) -> GVariantClass;
6003 pub fn g_variant_compare(one: gconstpointer, two: gconstpointer) -> c_int;
6004 pub fn g_variant_dup_bytestring(value: *mut GVariant, length: *mut size_t) -> *mut u8;
6005 pub fn g_variant_dup_bytestring_array(
6006 value: *mut GVariant,
6007 length: *mut size_t,
6008 ) -> *mut *mut c_char;
6009 pub fn g_variant_dup_objv(value: *mut GVariant, length: *mut size_t) -> *mut *mut c_char;
6010 pub fn g_variant_dup_string(value: *mut GVariant, length: *mut size_t) -> *mut c_char;
6011 pub fn g_variant_dup_strv(value: *mut GVariant, length: *mut size_t) -> *mut *mut c_char;
6012 pub fn g_variant_equal(one: gconstpointer, two: gconstpointer) -> gboolean;
6013 pub fn g_variant_get(value: *mut GVariant, format_string: *const c_char, ...);
6014 pub fn g_variant_get_boolean(value: *mut GVariant) -> gboolean;
6015 pub fn g_variant_get_byte(value: *mut GVariant) -> u8;
6016 pub fn g_variant_get_bytestring(value: *mut GVariant) -> *const u8;
6017 pub fn g_variant_get_bytestring_array(
6018 value: *mut GVariant,
6019 length: *mut size_t,
6020 ) -> *mut *const c_char;
6021 pub fn g_variant_get_child(
6022 value: *mut GVariant,
6023 index_: size_t,
6024 format_string: *const c_char,
6025 ...
6026 );
6027 pub fn g_variant_get_child_value(value: *mut GVariant, index_: size_t) -> *mut GVariant;
6028 pub fn g_variant_get_data(value: *mut GVariant) -> gconstpointer;
6029 pub fn g_variant_get_data_as_bytes(value: *mut GVariant) -> *mut GBytes;
6030 pub fn g_variant_get_double(value: *mut GVariant) -> c_double;
6031 pub fn g_variant_get_fixed_array(
6032 value: *mut GVariant,
6033 n_elements: *mut size_t,
6034 element_size: size_t,
6035 ) -> gconstpointer;
6036 pub fn g_variant_get_handle(value: *mut GVariant) -> i32;
6037 pub fn g_variant_get_int16(value: *mut GVariant) -> i16;
6038 pub fn g_variant_get_int32(value: *mut GVariant) -> i32;
6039 pub fn g_variant_get_int64(value: *mut GVariant) -> i64;
6040 pub fn g_variant_get_maybe(value: *mut GVariant) -> *mut GVariant;
6041 pub fn g_variant_get_normal_form(value: *mut GVariant) -> *mut GVariant;
6042 pub fn g_variant_get_objv(value: *mut GVariant, length: *mut size_t) -> *mut *const c_char;
6043 pub fn g_variant_get_size(value: *mut GVariant) -> size_t;
6044 pub fn g_variant_get_string(value: *mut GVariant, length: *mut size_t) -> *const c_char;
6045 pub fn g_variant_get_strv(value: *mut GVariant, length: *mut size_t) -> *mut *const c_char;
6046 pub fn g_variant_get_type(value: *mut GVariant) -> *const GVariantType;
6047 pub fn g_variant_get_type_string(value: *mut GVariant) -> *const c_char;
6048 pub fn g_variant_get_uint16(value: *mut GVariant) -> u16;
6049 pub fn g_variant_get_uint32(value: *mut GVariant) -> u32;
6050 pub fn g_variant_get_uint64(value: *mut GVariant) -> u64;
6051 pub fn g_variant_get_variant(value: *mut GVariant) -> *mut GVariant;
6053 pub fn g_variant_hash(value: gconstpointer) -> c_uint;
6054 pub fn g_variant_is_container(value: *mut GVariant) -> gboolean;
6055 pub fn g_variant_is_floating(value: *mut GVariant) -> gboolean;
6056 pub fn g_variant_is_normal_form(value: *mut GVariant) -> gboolean;
6057 pub fn g_variant_is_of_type(value: *mut GVariant, type_: *const GVariantType) -> gboolean;
6058 pub fn g_variant_iter_new(value: *mut GVariant) -> *mut GVariantIter;
6059 pub fn g_variant_lookup(
6060 dictionary: *mut GVariant,
6061 key: *const c_char,
6062 format_string: *const c_char,
6063 ...
6064 ) -> gboolean;
6065 pub fn g_variant_lookup_value(
6066 dictionary: *mut GVariant,
6067 key: *const c_char,
6068 expected_type: *const GVariantType,
6069 ) -> *mut GVariant;
6070 pub fn g_variant_n_children(value: *mut GVariant) -> size_t;
6071 pub fn g_variant_print(value: *mut GVariant, type_annotate: gboolean) -> *mut c_char;
6072 pub fn g_variant_print_string(
6073 value: *mut GVariant,
6074 string: *mut GString,
6075 type_annotate: gboolean,
6076 ) -> *mut GString;
6077 pub fn g_variant_ref(value: *mut GVariant) -> *mut GVariant;
6078 pub fn g_variant_ref_sink(value: *mut GVariant) -> *mut GVariant;
6079 pub fn g_variant_store(value: *mut GVariant, data: gpointer);
6080 pub fn g_variant_take_ref(value: *mut GVariant) -> *mut GVariant;
6081 pub fn g_variant_unref(value: *mut GVariant);
6082 pub fn g_variant_is_object_path(string: *const c_char) -> gboolean;
6083 pub fn g_variant_is_signature(string: *const c_char) -> gboolean;
6084 pub fn g_variant_parse(
6085 type_: *const GVariantType,
6086 text: *const c_char,
6087 limit: *const c_char,
6088 endptr: *mut *const c_char,
6089 error: *mut *mut GError,
6090 ) -> *mut GVariant;
6091 pub fn g_variant_parse_error_print_context(
6092 error: *mut GError,
6093 source_str: *const c_char,
6094 ) -> *mut c_char;
6095 pub fn g_variant_parse_error_quark() -> GQuark;
6096 pub fn g_variant_parser_get_error_quark() -> GQuark;
6097
6098 pub fn g_variant_builder_get_type() -> GType;
6102 pub fn g_variant_builder_new(type_: *const GVariantType) -> *mut GVariantBuilder;
6103 pub fn g_variant_builder_add(builder: *mut GVariantBuilder, format_string: *const c_char, ...);
6104 pub fn g_variant_builder_add_parsed(builder: *mut GVariantBuilder, format: *const c_char, ...);
6105 pub fn g_variant_builder_add_value(builder: *mut GVariantBuilder, value: *mut GVariant);
6106 pub fn g_variant_builder_clear(builder: *mut GVariantBuilder);
6107 pub fn g_variant_builder_close(builder: *mut GVariantBuilder);
6108 pub fn g_variant_builder_end(builder: *mut GVariantBuilder) -> *mut GVariant;
6109 pub fn g_variant_builder_init(builder: *mut GVariantBuilder, type_: *const GVariantType);
6110 #[cfg(feature = "v2_84")]
6111 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
6112 pub fn g_variant_builder_init_static(builder: *mut GVariantBuilder, type_: *const GVariantType);
6113 pub fn g_variant_builder_open(builder: *mut GVariantBuilder, type_: *const GVariantType);
6114 pub fn g_variant_builder_ref(builder: *mut GVariantBuilder) -> *mut GVariantBuilder;
6115 pub fn g_variant_builder_unref(builder: *mut GVariantBuilder);
6116
6117 pub fn g_variant_dict_get_type() -> GType;
6121 pub fn g_variant_dict_new(from_asv: *mut GVariant) -> *mut GVariantDict;
6122 pub fn g_variant_dict_clear(dict: *mut GVariantDict);
6123 pub fn g_variant_dict_contains(dict: *mut GVariantDict, key: *const c_char) -> gboolean;
6124 pub fn g_variant_dict_end(dict: *mut GVariantDict) -> *mut GVariant;
6125 pub fn g_variant_dict_init(dict: *mut GVariantDict, from_asv: *mut GVariant);
6126 pub fn g_variant_dict_insert(
6127 dict: *mut GVariantDict,
6128 key: *const c_char,
6129 format_string: *const c_char,
6130 ...
6131 );
6132 pub fn g_variant_dict_insert_value(
6133 dict: *mut GVariantDict,
6134 key: *const c_char,
6135 value: *mut GVariant,
6136 );
6137 pub fn g_variant_dict_lookup(
6138 dict: *mut GVariantDict,
6139 key: *const c_char,
6140 format_string: *const c_char,
6141 ...
6142 ) -> gboolean;
6143 pub fn g_variant_dict_lookup_value(
6144 dict: *mut GVariantDict,
6145 key: *const c_char,
6146 expected_type: *const GVariantType,
6147 ) -> *mut GVariant;
6148 pub fn g_variant_dict_ref(dict: *mut GVariantDict) -> *mut GVariantDict;
6149 pub fn g_variant_dict_remove(dict: *mut GVariantDict, key: *const c_char) -> gboolean;
6150 pub fn g_variant_dict_unref(dict: *mut GVariantDict);
6151
6152 pub fn g_variant_iter_copy(iter: *mut GVariantIter) -> *mut GVariantIter;
6156 pub fn g_variant_iter_free(iter: *mut GVariantIter);
6157 pub fn g_variant_iter_init(iter: *mut GVariantIter, value: *mut GVariant) -> size_t;
6158 pub fn g_variant_iter_loop(
6159 iter: *mut GVariantIter,
6160 format_string: *const c_char,
6161 ...
6162 ) -> gboolean;
6163 pub fn g_variant_iter_n_children(iter: *mut GVariantIter) -> size_t;
6164 pub fn g_variant_iter_next(
6165 iter: *mut GVariantIter,
6166 format_string: *const c_char,
6167 ...
6168 ) -> gboolean;
6169 pub fn g_variant_iter_next_value(iter: *mut GVariantIter) -> *mut GVariant;
6170
6171 pub fn g_variant_type_get_gtype() -> GType;
6175 pub fn g_variant_type_new(type_string: *const c_char) -> *mut GVariantType;
6176 pub fn g_variant_type_new_array(element: *const GVariantType) -> *mut GVariantType;
6177 pub fn g_variant_type_new_dict_entry(
6178 key: *const GVariantType,
6179 value: *const GVariantType,
6180 ) -> *mut GVariantType;
6181 pub fn g_variant_type_new_maybe(element: *const GVariantType) -> *mut GVariantType;
6182 pub fn g_variant_type_new_tuple(
6183 items: *const *const GVariantType,
6184 length: c_int,
6185 ) -> *mut GVariantType;
6186 pub fn g_variant_type_copy(type_: *const GVariantType) -> *mut GVariantType;
6187 pub fn g_variant_type_dup_string(type_: *const GVariantType) -> *mut c_char;
6188 pub fn g_variant_type_element(type_: *const GVariantType) -> *const GVariantType;
6189 pub fn g_variant_type_equal(type1: gconstpointer, type2: gconstpointer) -> gboolean;
6190 pub fn g_variant_type_first(type_: *const GVariantType) -> *const GVariantType;
6191 pub fn g_variant_type_free(type_: *mut GVariantType);
6192 pub fn g_variant_type_get_string_length(type_: *const GVariantType) -> size_t;
6193 pub fn g_variant_type_hash(type_: gconstpointer) -> c_uint;
6194 pub fn g_variant_type_is_array(type_: *const GVariantType) -> gboolean;
6195 pub fn g_variant_type_is_basic(type_: *const GVariantType) -> gboolean;
6196 pub fn g_variant_type_is_container(type_: *const GVariantType) -> gboolean;
6197 pub fn g_variant_type_is_definite(type_: *const GVariantType) -> gboolean;
6198 pub fn g_variant_type_is_dict_entry(type_: *const GVariantType) -> gboolean;
6199 pub fn g_variant_type_is_maybe(type_: *const GVariantType) -> gboolean;
6200 pub fn g_variant_type_is_subtype_of(
6201 type_: *const GVariantType,
6202 supertype: *const GVariantType,
6203 ) -> gboolean;
6204 pub fn g_variant_type_is_tuple(type_: *const GVariantType) -> gboolean;
6205 pub fn g_variant_type_is_variant(type_: *const GVariantType) -> gboolean;
6206 pub fn g_variant_type_key(type_: *const GVariantType) -> *const GVariantType;
6207 pub fn g_variant_type_n_items(type_: *const GVariantType) -> size_t;
6208 pub fn g_variant_type_next(type_: *const GVariantType) -> *const GVariantType;
6209 pub fn g_variant_type_peek_string(type_: *const GVariantType) -> *const c_char;
6210 pub fn g_variant_type_value(type_: *const GVariantType) -> *const GVariantType;
6211 pub fn g_variant_type_checked_(type_string: *const c_char) -> *const GVariantType;
6212 pub fn g_variant_type_string_get_depth_(type_string: *const c_char) -> size_t;
6213 pub fn g_variant_type_string_is_valid(type_string: *const c_char) -> gboolean;
6214 pub fn g_variant_type_string_scan(
6215 string: *const c_char,
6216 limit: *const c_char,
6217 endptr: *mut *const c_char,
6218 ) -> gboolean;
6219
6220 pub fn g_access(filename: *const c_char, mode: c_int) -> c_int;
6224 #[cfg(feature = "v2_72")]
6225 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6226 pub fn g_aligned_alloc(n_blocks: size_t, n_block_bytes: size_t, alignment: size_t) -> gpointer;
6227 #[cfg(feature = "v2_72")]
6228 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6229 pub fn g_aligned_alloc0(n_blocks: size_t, n_block_bytes: size_t, alignment: size_t)
6230 -> gpointer;
6231 #[cfg(feature = "v2_72")]
6232 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6233 pub fn g_aligned_free(mem: gpointer);
6234 #[cfg(feature = "v2_76")]
6235 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
6236 pub fn g_aligned_free_sized(mem: gpointer, alignment: size_t, size: size_t);
6237 pub fn g_ascii_digit_value(c: c_char) -> c_int;
6238 pub fn g_ascii_dtostr(buffer: *mut c_char, buf_len: c_int, d: c_double) -> *mut c_char;
6239 pub fn g_ascii_formatd(
6240 buffer: *mut c_char,
6241 buf_len: c_int,
6242 format: *const c_char,
6243 d: c_double,
6244 ) -> *mut c_char;
6245 pub fn g_ascii_strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
6246 pub fn g_ascii_strdown(str: *const c_char, len: ssize_t) -> *mut c_char;
6247 pub fn g_ascii_string_to_signed(
6248 str: *const c_char,
6249 base: c_uint,
6250 min: i64,
6251 max: i64,
6252 out_num: *mut i64,
6253 error: *mut *mut GError,
6254 ) -> gboolean;
6255 pub fn g_ascii_string_to_unsigned(
6256 str: *const c_char,
6257 base: c_uint,
6258 min: u64,
6259 max: u64,
6260 out_num: *mut u64,
6261 error: *mut *mut GError,
6262 ) -> gboolean;
6263 pub fn g_ascii_strncasecmp(s1: *const c_char, s2: *const c_char, n: size_t) -> c_int;
6264 pub fn g_ascii_strtod(nptr: *const c_char, endptr: *mut *mut c_char) -> c_double;
6265 pub fn g_ascii_strtoll(nptr: *const c_char, endptr: *mut *mut c_char, base: c_uint) -> i64;
6266 pub fn g_ascii_strtoull(nptr: *const c_char, endptr: *mut *mut c_char, base: c_uint) -> u64;
6267 pub fn g_ascii_strup(str: *const c_char, len: ssize_t) -> *mut c_char;
6268 pub fn g_ascii_tolower(c: c_char) -> c_char;
6269 pub fn g_ascii_toupper(c: c_char) -> c_char;
6270 pub fn g_ascii_xdigit_value(c: c_char) -> c_int;
6271 pub fn g_assert_warning(
6272 log_domain: *const c_char,
6273 file: *const c_char,
6274 line: c_int,
6275 pretty_function: *const c_char,
6276 expression: *const c_char,
6277 );
6278 pub fn g_assertion_message(
6279 domain: *const c_char,
6280 file: *const c_char,
6281 line: c_int,
6282 func: *const c_char,
6283 message: *const c_char,
6284 );
6285 #[cfg(feature = "v2_78")]
6286 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
6287 pub fn g_assertion_message_cmpint(
6288 domain: *const c_char,
6289 file: *const c_char,
6290 line: c_int,
6291 func: *const c_char,
6292 expr: *const c_char,
6293 arg1: u64,
6294 cmp: *const c_char,
6295 arg2: u64,
6296 numtype: c_char,
6297 );
6298 pub fn g_assertion_message_cmpstr(
6300 domain: *const c_char,
6301 file: *const c_char,
6302 line: c_int,
6303 func: *const c_char,
6304 expr: *const c_char,
6305 arg1: *const c_char,
6306 cmp: *const c_char,
6307 arg2: *const c_char,
6308 );
6309 pub fn g_assertion_message_cmpstrv(
6310 domain: *const c_char,
6311 file: *const c_char,
6312 line: c_int,
6313 func: *const c_char,
6314 expr: *const c_char,
6315 arg1: *const *const c_char,
6316 arg2: *const *const c_char,
6317 first_wrong_idx: size_t,
6318 );
6319 pub fn g_assertion_message_error(
6320 domain: *const c_char,
6321 file: *const c_char,
6322 line: c_int,
6323 func: *const c_char,
6324 expr: *const c_char,
6325 error: *const GError,
6326 error_domain: GQuark,
6327 error_code: c_int,
6328 );
6329 pub fn g_assertion_message_expr(
6330 domain: *const c_char,
6331 file: *const c_char,
6332 line: c_int,
6333 func: *const c_char,
6334 expr: *const c_char,
6335 );
6336 pub fn g_atexit(func: GVoidFunc);
6337 pub fn g_atomic_int_add(atomic: *mut c_int, val: c_int) -> c_int;
6338 pub fn g_atomic_int_and(atomic: *mut c_uint, val: c_uint) -> c_uint;
6339 pub fn g_atomic_int_compare_and_exchange(
6340 atomic: *mut c_int,
6341 oldval: c_int,
6342 newval: c_int,
6343 ) -> gboolean;
6344 #[cfg(feature = "v2_74")]
6345 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6346 pub fn g_atomic_int_compare_and_exchange_full(
6347 atomic: *mut c_int,
6348 oldval: c_int,
6349 newval: c_int,
6350 preval: *mut c_int,
6351 ) -> gboolean;
6352 pub fn g_atomic_int_dec_and_test(atomic: *mut c_int) -> gboolean;
6353 #[cfg(feature = "v2_74")]
6354 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6355 pub fn g_atomic_int_exchange(atomic: *mut c_int, newval: c_int) -> c_int;
6356 pub fn g_atomic_int_exchange_and_add(atomic: *mut c_int, val: c_int) -> c_int;
6357 pub fn g_atomic_int_inc(atomic: *mut c_int);
6358 pub fn g_atomic_int_or(atomic: *mut c_uint, val: c_uint) -> c_uint;
6359 pub fn g_atomic_int_set(atomic: *mut c_int, newval: c_int);
6360 pub fn g_atomic_int_xor(atomic: *mut c_uint, val: c_uint) -> c_uint;
6361 pub fn g_atomic_pointer_add(atomic: *mut c_void, val: ssize_t) -> intptr_t;
6362 pub fn g_atomic_pointer_and(atomic: *mut c_void, val: size_t) -> uintptr_t;
6363 pub fn g_atomic_pointer_compare_and_exchange(
6364 atomic: *mut c_void,
6365 oldval: gpointer,
6366 newval: gpointer,
6367 ) -> gboolean;
6368 #[cfg(feature = "v2_74")]
6369 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6370 pub fn g_atomic_pointer_compare_and_exchange_full(
6371 atomic: *mut c_void,
6372 oldval: gpointer,
6373 newval: gpointer,
6374 preval: *mut c_void,
6375 ) -> gboolean;
6376 #[cfg(feature = "v2_74")]
6377 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6378 pub fn g_atomic_pointer_exchange(atomic: *mut c_void, newval: gpointer) -> gpointer;
6379 pub fn g_atomic_pointer_get(atomic: *mut c_void) -> gpointer;
6380 pub fn g_atomic_pointer_or(atomic: *mut c_void, val: size_t) -> uintptr_t;
6381 pub fn g_atomic_pointer_set(atomic: *mut c_void, newval: gpointer);
6382 pub fn g_atomic_pointer_xor(atomic: *mut c_void, val: size_t) -> uintptr_t;
6383 #[cfg(feature = "v2_58")]
6384 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6385 pub fn g_atomic_rc_box_acquire(mem_block: gpointer) -> gpointer;
6386 #[cfg(feature = "v2_58")]
6387 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6388 pub fn g_atomic_rc_box_alloc(block_size: size_t) -> gpointer;
6389 #[cfg(feature = "v2_58")]
6390 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6391 pub fn g_atomic_rc_box_alloc0(block_size: size_t) -> gpointer;
6392 #[cfg(feature = "v2_58")]
6393 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6394 pub fn g_atomic_rc_box_dup(block_size: size_t, mem_block: gconstpointer) -> gpointer;
6395 #[cfg(feature = "v2_58")]
6396 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6397 pub fn g_atomic_rc_box_get_size(mem_block: gpointer) -> size_t;
6398 #[cfg(feature = "v2_58")]
6399 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6400 pub fn g_atomic_rc_box_release(mem_block: gpointer);
6401 #[cfg(feature = "v2_58")]
6402 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6403 pub fn g_atomic_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify);
6404 #[cfg(feature = "v2_58")]
6405 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6406 pub fn g_atomic_ref_count_compare(arc: *mut c_int, val: c_int) -> gboolean;
6407 #[cfg(feature = "v2_58")]
6408 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6409 pub fn g_atomic_ref_count_dec(arc: *mut c_int) -> gboolean;
6410 #[cfg(feature = "v2_58")]
6411 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6412 pub fn g_atomic_ref_count_inc(arc: *mut c_int);
6413 #[cfg(feature = "v2_58")]
6414 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6415 pub fn g_atomic_ref_count_init(arc: *mut c_int);
6416 pub fn g_base64_decode(text: *const c_char, out_len: *mut size_t) -> *mut u8;
6417 pub fn g_base64_decode_inplace(text: *mut u8, out_len: *mut size_t) -> *mut u8;
6418 pub fn g_base64_decode_step(
6419 in_: *const c_char,
6420 len: size_t,
6421 out: *mut u8,
6422 state: *mut c_int,
6423 save: *mut c_uint,
6424 ) -> size_t;
6425 pub fn g_base64_encode(data: *const u8, len: size_t) -> *mut c_char;
6426 pub fn g_base64_encode_close(
6427 break_lines: gboolean,
6428 out: *mut u8,
6429 state: *mut c_int,
6430 save: *mut c_int,
6431 ) -> size_t;
6432 pub fn g_base64_encode_step(
6433 in_: *const u8,
6434 len: size_t,
6435 break_lines: gboolean,
6436 out: *mut u8,
6437 state: *mut c_int,
6438 save: *mut c_int,
6439 ) -> size_t;
6440 pub fn g_basename(file_name: *const c_char) -> *const c_char;
6441 pub fn g_bit_lock(address: *mut c_int, lock_bit: c_int);
6442 #[cfg(feature = "v2_86")]
6443 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
6444 pub fn g_bit_lock_and_get(address: *mut c_int, lock_bit: c_uint, out_val: *mut c_int);
6445 pub fn g_bit_nth_lsf(mask: c_ulong, nth_bit: c_int) -> c_int;
6446 pub fn g_bit_nth_msf(mask: c_ulong, nth_bit: c_int) -> c_int;
6447 pub fn g_bit_storage(number: c_ulong) -> c_uint;
6448 pub fn g_bit_trylock(address: *mut c_int, lock_bit: c_int) -> gboolean;
6449 pub fn g_bit_unlock(address: *mut c_int, lock_bit: c_int);
6450 #[cfg(feature = "v2_86")]
6451 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
6452 pub fn g_bit_unlock_and_set(
6453 address: *mut c_int,
6454 lock_bit: c_uint,
6455 new_val: c_int,
6456 preserve_mask: c_int,
6457 );
6458 pub fn g_build_filename(first_element: *const c_char, ...) -> *mut c_char;
6459 pub fn g_build_filenamev(args: *mut *mut c_char) -> *mut c_char;
6461 pub fn g_build_path(separator: *const c_char, first_element: *const c_char, ...)
6462 -> *mut c_char;
6463 pub fn g_build_pathv(separator: *const c_char, args: *mut *mut c_char) -> *mut c_char;
6464 #[cfg(feature = "v2_58")]
6465 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6466 pub fn g_canonicalize_filename(
6467 filename: *const c_char,
6468 relative_to: *const c_char,
6469 ) -> *mut c_char;
6470 pub fn g_chdir(path: *const c_char) -> c_int;
6471 pub fn glib_check_version(
6472 required_major: c_uint,
6473 required_minor: c_uint,
6474 required_micro: c_uint,
6475 ) -> *const c_char;
6476 pub fn g_child_watch_add(pid: GPid, function: GChildWatchFunc, data: gpointer) -> c_uint;
6477 pub fn g_child_watch_add_full(
6478 priority: c_int,
6479 pid: GPid,
6480 function: GChildWatchFunc,
6481 data: gpointer,
6482 notify: GDestroyNotify,
6483 ) -> c_uint;
6484 pub fn g_child_watch_source_new(pid: GPid) -> *mut GSource;
6485 pub fn g_clear_error(error: *mut *mut GError);
6486 pub fn g_clear_handle_id(tag_ptr: *mut c_uint, clear_func: GClearHandleFunc);
6487 #[cfg(feature = "v2_64")]
6488 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
6489 pub fn g_clear_list(list_ptr: *mut *mut GList, destroy: GDestroyNotify);
6490 pub fn g_clear_pointer(pp: *mut gpointer, destroy: GDestroyNotify);
6491 #[cfg(feature = "v2_64")]
6492 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
6493 pub fn g_clear_slist(slist_ptr: *mut *mut GSList, destroy: GDestroyNotify);
6494 pub fn g_close(fd: c_int, error: *mut *mut GError) -> gboolean;
6495 pub fn g_compute_checksum_for_bytes(
6496 checksum_type: GChecksumType,
6497 data: *mut GBytes,
6498 ) -> *mut c_char;
6499 pub fn g_compute_checksum_for_data(
6500 checksum_type: GChecksumType,
6501 data: *const u8,
6502 length: size_t,
6503 ) -> *mut c_char;
6504 pub fn g_compute_checksum_for_string(
6505 checksum_type: GChecksumType,
6506 str: *const c_char,
6507 length: ssize_t,
6508 ) -> *mut c_char;
6509 pub fn g_compute_hmac_for_bytes(
6510 digest_type: GChecksumType,
6511 key: *mut GBytes,
6512 data: *mut GBytes,
6513 ) -> *mut c_char;
6514 pub fn g_compute_hmac_for_data(
6515 digest_type: GChecksumType,
6516 key: *const u8,
6517 key_len: size_t,
6518 data: *const u8,
6519 length: size_t,
6520 ) -> *mut c_char;
6521 pub fn g_compute_hmac_for_string(
6522 digest_type: GChecksumType,
6523 key: *const u8,
6524 key_len: size_t,
6525 str: *const c_char,
6526 length: ssize_t,
6527 ) -> *mut c_char;
6528 pub fn g_convert(
6529 str: *const u8,
6530 len: ssize_t,
6531 to_codeset: *const c_char,
6532 from_codeset: *const c_char,
6533 bytes_read: *mut size_t,
6534 bytes_written: *mut size_t,
6535 error: *mut *mut GError,
6536 ) -> *mut u8;
6537 pub fn g_convert_error_quark() -> GQuark;
6538 pub fn g_convert_with_fallback(
6539 str: *const u8,
6540 len: ssize_t,
6541 to_codeset: *const c_char,
6542 from_codeset: *const c_char,
6543 fallback: *const c_char,
6544 bytes_read: *mut size_t,
6545 bytes_written: *mut size_t,
6546 error: *mut *mut GError,
6547 ) -> *mut u8;
6548 pub fn g_convert_with_iconv(
6549 str: *const u8,
6550 len: ssize_t,
6551 converter: GIConv,
6552 bytes_read: *mut size_t,
6553 bytes_written: *mut size_t,
6554 error: *mut *mut GError,
6555 ) -> *mut u8;
6556 pub fn g_datalist_clear(datalist: *mut *mut GData);
6557 pub fn g_datalist_foreach(
6558 datalist: *mut *mut GData,
6559 func: GDataForeachFunc,
6560 user_data: gpointer,
6561 );
6562 pub fn g_datalist_get_data(datalist: *mut *mut GData, key: *const c_char) -> gpointer;
6563 pub fn g_datalist_get_flags(datalist: *mut *mut GData) -> c_uint;
6564 pub fn g_datalist_id_dup_data(
6565 datalist: *mut *mut GData,
6566 key_id: GQuark,
6567 dup_func: GDuplicateFunc,
6568 user_data: gpointer,
6569 ) -> gpointer;
6570 pub fn g_datalist_id_get_data(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
6571 #[cfg(feature = "v2_74")]
6572 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6573 pub fn g_datalist_id_remove_multiple(
6574 datalist: *mut *mut GData,
6575 keys: *mut GQuark,
6576 n_keys: size_t,
6577 );
6578 pub fn g_datalist_id_remove_no_notify(datalist: *mut *mut GData, key_id: GQuark) -> gpointer;
6579 pub fn g_datalist_id_replace_data(
6580 datalist: *mut *mut GData,
6581 key_id: GQuark,
6582 oldval: gpointer,
6583 newval: gpointer,
6584 destroy: GDestroyNotify,
6585 old_destroy: *mut GDestroyNotify,
6586 ) -> gboolean;
6587 pub fn g_datalist_id_set_data_full(
6588 datalist: *mut *mut GData,
6589 key_id: GQuark,
6590 data: gpointer,
6591 destroy_func: GDestroyNotify,
6592 );
6593 pub fn g_datalist_init(datalist: *mut *mut GData);
6594 pub fn g_datalist_set_flags(datalist: *mut *mut GData, flags: c_uint);
6595 pub fn g_datalist_unset_flags(datalist: *mut *mut GData, flags: c_uint);
6596 pub fn g_dataset_destroy(dataset_location: gconstpointer);
6597 pub fn g_dataset_foreach(
6598 dataset_location: gconstpointer,
6599 func: GDataForeachFunc,
6600 user_data: gpointer,
6601 );
6602 pub fn g_dataset_id_get_data(dataset_location: gconstpointer, key_id: GQuark) -> gpointer;
6603 pub fn g_dataset_id_remove_no_notify(
6604 dataset_location: gconstpointer,
6605 key_id: GQuark,
6606 ) -> gpointer;
6607 pub fn g_dataset_id_set_data_full(
6608 dataset_location: gconstpointer,
6609 key_id: GQuark,
6610 data: gpointer,
6611 destroy_func: GDestroyNotify,
6612 );
6613 pub fn g_dcgettext(
6614 domain: *const c_char,
6615 msgid: *const c_char,
6616 category: c_int,
6617 ) -> *const c_char;
6618 pub fn g_dgettext(domain: *const c_char, msgid: *const c_char) -> *const c_char;
6619 pub fn g_direct_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
6620 pub fn g_direct_hash(v: gconstpointer) -> c_uint;
6621 pub fn g_dngettext(
6622 domain: *const c_char,
6623 msgid: *const c_char,
6624 msgid_plural: *const c_char,
6625 n: c_ulong,
6626 ) -> *const c_char;
6627 pub fn g_double_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
6628 pub fn g_double_hash(v: gconstpointer) -> c_uint;
6629 pub fn g_dpgettext(
6630 domain: *const c_char,
6631 msgctxtid: *const c_char,
6632 msgidoffset: size_t,
6633 ) -> *const c_char;
6634 pub fn g_dpgettext2(
6635 domain: *const c_char,
6636 context: *const c_char,
6637 msgid: *const c_char,
6638 ) -> *const c_char;
6639 pub fn g_environ_getenv(envp: *mut *mut c_char, variable: *const c_char) -> *const c_char;
6640 pub fn g_environ_setenv(
6641 envp: *mut *mut c_char,
6642 variable: *const c_char,
6643 value: *const c_char,
6644 overwrite: gboolean,
6645 ) -> *mut *mut c_char;
6646 pub fn g_environ_unsetenv(envp: *mut *mut c_char, variable: *const c_char) -> *mut *mut c_char;
6647 pub fn g_file_error_from_errno(err_no: c_int) -> GFileError;
6648 pub fn g_file_error_quark() -> GQuark;
6649 pub fn g_file_get_contents(
6650 filename: *const c_char,
6651 contents: *mut *mut u8,
6652 length: *mut size_t,
6653 error: *mut *mut GError,
6654 ) -> gboolean;
6655 pub fn g_file_open_tmp(
6656 tmpl: *const c_char,
6657 name_used: *mut *mut c_char,
6658 error: *mut *mut GError,
6659 ) -> c_int;
6660 pub fn g_file_read_link(filename: *const c_char, error: *mut *mut GError) -> *mut c_char;
6661 pub fn g_file_set_contents(
6662 filename: *const c_char,
6663 contents: *const u8,
6664 length: ssize_t,
6665 error: *mut *mut GError,
6666 ) -> gboolean;
6667 #[cfg(feature = "v2_66")]
6668 #[cfg_attr(docsrs, doc(cfg(feature = "v2_66")))]
6669 pub fn g_file_set_contents_full(
6670 filename: *const c_char,
6671 contents: *const u8,
6672 length: ssize_t,
6673 flags: GFileSetContentsFlags,
6674 mode: c_int,
6675 error: *mut *mut GError,
6676 ) -> gboolean;
6677 pub fn g_file_test(filename: *const c_char, test: GFileTest) -> gboolean;
6678 pub fn g_filename_display_basename(filename: *const c_char) -> *mut c_char;
6679 pub fn g_filename_display_name(filename: *const c_char) -> *mut c_char;
6680 pub fn g_filename_from_uri(
6681 uri: *const c_char,
6682 hostname: *mut *mut c_char,
6683 error: *mut *mut GError,
6684 ) -> *mut c_char;
6685 pub fn g_filename_from_utf8(
6686 utf8string: *const c_char,
6687 len: ssize_t,
6688 bytes_read: *mut size_t,
6689 bytes_written: *mut size_t,
6690 error: *mut *mut GError,
6691 ) -> *mut c_char;
6692 pub fn g_filename_to_uri(
6693 filename: *const c_char,
6694 hostname: *const c_char,
6695 error: *mut *mut GError,
6696 ) -> *mut c_char;
6697 pub fn g_filename_to_utf8(
6698 opsysstring: *const c_char,
6699 len: ssize_t,
6700 bytes_read: *mut size_t,
6701 bytes_written: *mut size_t,
6702 error: *mut *mut GError,
6703 ) -> *mut c_char;
6704 pub fn g_find_program_in_path(program: *const c_char) -> *mut c_char;
6705 pub fn g_format_size(size: u64) -> *mut c_char;
6706 pub fn g_format_size_for_display(size: i64) -> *mut c_char;
6707 pub fn g_format_size_full(size: u64, flags: GFormatSizeFlags) -> *mut c_char;
6708 pub fn g_fprintf(file: *mut FILE, format: *const c_char, ...) -> c_int;
6709 pub fn g_free(mem: gpointer);
6710 #[cfg(feature = "v2_76")]
6711 #[cfg_attr(docsrs, doc(cfg(feature = "v2_76")))]
6712 pub fn g_free_sized(mem: gpointer, size: size_t);
6713 pub fn g_get_application_name() -> *const c_char;
6714 pub fn g_get_charset(charset: *mut *const c_char) -> gboolean;
6715 pub fn g_get_codeset() -> *mut c_char;
6716 #[cfg(feature = "v2_62")]
6717 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
6718 pub fn g_get_console_charset(charset: *mut *const c_char) -> gboolean;
6719 pub fn g_get_current_dir() -> *mut c_char;
6720 pub fn g_get_current_time(result: *mut GTimeVal);
6721 pub fn g_get_environ() -> *mut *mut c_char;
6722 pub fn g_get_filename_charsets(filename_charsets: *mut *mut *const c_char) -> gboolean;
6723 pub fn g_get_home_dir() -> *const c_char;
6724 pub fn g_get_host_name() -> *const c_char;
6725 pub fn g_get_language_names() -> *const *const c_char;
6726 #[cfg(feature = "v2_58")]
6727 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
6728 pub fn g_get_language_names_with_category(category_name: *const c_char)
6729 -> *const *const c_char;
6730 pub fn g_get_locale_variants(locale: *const c_char) -> *mut *mut c_char;
6731 pub fn g_get_monotonic_time() -> i64;
6732 #[cfg(feature = "v2_88")]
6733 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
6734 pub fn g_get_monotonic_time_ns() -> u64;
6735 pub fn g_get_num_processors() -> c_uint;
6736 #[cfg(feature = "v2_64")]
6737 #[cfg_attr(docsrs, doc(cfg(feature = "v2_64")))]
6738 pub fn g_get_os_info(key_name: *const c_char) -> *mut c_char;
6739 pub fn g_get_prgname() -> *const c_char;
6740 pub fn g_get_real_name() -> *const c_char;
6741 pub fn g_get_real_time() -> i64;
6742 pub fn g_get_system_config_dirs() -> *const *const c_char;
6743 pub fn g_get_system_data_dirs() -> *const *const c_char;
6744 pub fn g_get_tmp_dir() -> *const c_char;
6745 pub fn g_get_user_cache_dir() -> *const c_char;
6746 pub fn g_get_user_config_dir() -> *const c_char;
6747 pub fn g_get_user_data_dir() -> *const c_char;
6748 pub fn g_get_user_name() -> *const c_char;
6749 pub fn g_get_user_runtime_dir() -> *const c_char;
6750 pub fn g_get_user_special_dir(directory: GUserDirectory) -> *const c_char;
6751 #[cfg(feature = "v2_72")]
6752 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6753 pub fn g_get_user_state_dir() -> *const c_char;
6754 pub fn g_getenv(variable: *const c_char) -> *const c_char;
6755 pub fn g_hostname_is_ascii_encoded(hostname: *const c_char) -> gboolean;
6756 pub fn g_hostname_is_ip_address(hostname: *const c_char) -> gboolean;
6757 pub fn g_hostname_is_non_ascii(hostname: *const c_char) -> gboolean;
6758 pub fn g_hostname_to_ascii(hostname: *const c_char) -> *mut c_char;
6759 pub fn g_hostname_to_unicode(hostname: *const c_char) -> *mut c_char;
6760 pub fn g_iconv(
6761 converter: GIConv,
6762 inbuf: *mut *mut c_char,
6763 inbytes_left: *mut size_t,
6764 outbuf: *mut *mut c_char,
6765 outbytes_left: *mut size_t,
6766 ) -> size_t;
6767 pub fn g_idle_add(function: GSourceFunc, data: gpointer) -> c_uint;
6768 pub fn g_idle_add_full(
6769 priority: c_int,
6770 function: GSourceFunc,
6771 data: gpointer,
6772 notify: GDestroyNotify,
6773 ) -> c_uint;
6774 #[cfg(feature = "v2_74")]
6775 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
6776 pub fn g_idle_add_once(function: GSourceOnceFunc, data: gpointer) -> c_uint;
6777 pub fn g_idle_remove_by_data(data: gpointer) -> gboolean;
6778 pub fn g_idle_source_new() -> *mut GSource;
6779 pub fn g_int64_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
6780 pub fn g_int64_hash(v: gconstpointer) -> c_uint;
6781 pub fn g_int_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
6782 pub fn g_int_hash(v: gconstpointer) -> c_uint;
6783 pub fn g_intern_static_string(string: *const c_char) -> *const c_char;
6784 pub fn g_intern_string(string: *const c_char) -> *const c_char;
6785 pub fn g_io_add_watch(
6786 channel: *mut GIOChannel,
6787 condition: GIOCondition,
6788 func: GIOFunc,
6789 user_data: gpointer,
6790 ) -> c_uint;
6791 pub fn g_io_add_watch_full(
6792 channel: *mut GIOChannel,
6793 priority: c_int,
6794 condition: GIOCondition,
6795 func: GIOFunc,
6796 user_data: gpointer,
6797 notify: GDestroyNotify,
6798 ) -> c_uint;
6799 pub fn g_io_create_watch(channel: *mut GIOChannel, condition: GIOCondition) -> *mut GSource;
6800 pub fn g_listenv() -> *mut *mut c_char;
6801 pub fn g_locale_from_utf8(
6802 utf8string: *const c_char,
6803 len: ssize_t,
6804 bytes_read: *mut size_t,
6805 bytes_written: *mut size_t,
6806 error: *mut *mut GError,
6807 ) -> *mut u8;
6808 pub fn g_locale_to_utf8(
6809 opsysstring: *const u8,
6810 len: ssize_t,
6811 bytes_read: *mut size_t,
6812 bytes_written: *mut size_t,
6813 error: *mut *mut GError,
6814 ) -> *mut c_char;
6815 pub fn g_log(log_domain: *const c_char, log_level: GLogLevelFlags, format: *const c_char, ...);
6816 pub fn g_log_default_handler(
6817 log_domain: *const c_char,
6818 log_level: GLogLevelFlags,
6819 message: *const c_char,
6820 unused_data: gpointer,
6821 );
6822 #[cfg(feature = "v2_86")]
6823 #[cfg_attr(docsrs, doc(cfg(feature = "v2_86")))]
6824 pub fn g_log_get_always_fatal() -> GLogLevelFlags;
6825 #[cfg(feature = "v2_72")]
6826 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6827 pub fn g_log_get_debug_enabled() -> gboolean;
6828 pub fn g_log_remove_handler(log_domain: *const c_char, handler_id: c_uint);
6829 pub fn g_log_set_always_fatal(fatal_mask: GLogLevelFlags) -> GLogLevelFlags;
6830 #[cfg(feature = "v2_72")]
6831 #[cfg_attr(docsrs, doc(cfg(feature = "v2_72")))]
6832 pub fn g_log_set_debug_enabled(enabled: gboolean);
6833 pub fn g_log_set_default_handler(log_func: GLogFunc, user_data: gpointer) -> GLogFunc;
6834 pub fn g_log_set_fatal_mask(
6835 log_domain: *const c_char,
6836 fatal_mask: GLogLevelFlags,
6837 ) -> GLogLevelFlags;
6838 pub fn g_log_set_handler(
6839 log_domain: *const c_char,
6840 log_levels: GLogLevelFlags,
6841 log_func: GLogFunc,
6842 user_data: gpointer,
6843 ) -> c_uint;
6844 pub fn g_log_set_handler_full(
6845 log_domain: *const c_char,
6846 log_levels: GLogLevelFlags,
6847 log_func: GLogFunc,
6848 user_data: gpointer,
6849 destroy: GDestroyNotify,
6850 ) -> c_uint;
6851 pub fn g_log_set_writer_func(
6852 func: GLogWriterFunc,
6853 user_data: gpointer,
6854 user_data_free: GDestroyNotify,
6855 );
6856 pub fn g_log_structured(log_domain: *const c_char, log_level: GLogLevelFlags, ...);
6857 pub fn g_log_structured_array(
6858 log_level: GLogLevelFlags,
6859 fields: *const GLogField,
6860 n_fields: size_t,
6861 );
6862 pub fn g_log_structured_standard(
6863 log_domain: *const c_char,
6864 log_level: GLogLevelFlags,
6865 file: *const c_char,
6866 line: *const c_char,
6867 func: *const c_char,
6868 message_format: *const c_char,
6869 ...
6870 );
6871 pub fn g_log_variant(
6872 log_domain: *const c_char,
6873 log_level: GLogLevelFlags,
6874 fields: *mut GVariant,
6875 );
6876 pub fn g_log_writer_default(
6877 log_level: GLogLevelFlags,
6878 fields: *const GLogField,
6879 n_fields: size_t,
6880 user_data: gpointer,
6881 ) -> GLogWriterOutput;
6882 #[cfg(feature = "v2_80")]
6883 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
6884 pub fn g_log_writer_default_set_debug_domains(domains: *const *const c_char);
6885 #[cfg(feature = "v2_68")]
6886 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
6887 pub fn g_log_writer_default_set_use_stderr(use_stderr: gboolean);
6888 #[cfg(feature = "v2_68")]
6889 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
6890 pub fn g_log_writer_default_would_drop(
6891 log_level: GLogLevelFlags,
6892 log_domain: *const c_char,
6893 ) -> gboolean;
6894 pub fn g_log_writer_format_fields(
6895 log_level: GLogLevelFlags,
6896 fields: *const GLogField,
6897 n_fields: size_t,
6898 use_color: gboolean,
6899 ) -> *mut c_char;
6900 pub fn g_log_writer_is_journald(output_fd: c_int) -> gboolean;
6901 pub fn g_log_writer_journald(
6902 log_level: GLogLevelFlags,
6903 fields: *const GLogField,
6904 n_fields: size_t,
6905 user_data: gpointer,
6906 ) -> GLogWriterOutput;
6907 pub fn g_log_writer_standard_streams(
6908 log_level: GLogLevelFlags,
6909 fields: *const GLogField,
6910 n_fields: size_t,
6911 user_data: gpointer,
6912 ) -> GLogWriterOutput;
6913 pub fn g_log_writer_supports_color(output_fd: c_int) -> gboolean;
6914 #[cfg(feature = "v2_80")]
6915 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
6916 pub fn g_log_writer_syslog(
6917 log_level: GLogLevelFlags,
6918 fields: *const GLogField,
6919 n_fields: size_t,
6920 user_data: gpointer,
6921 ) -> GLogWriterOutput;
6922 pub fn g_main_current_source() -> *mut GSource;
6924 pub fn g_main_depth() -> c_int;
6925 pub fn g_malloc(n_bytes: size_t) -> gpointer;
6926 pub fn g_malloc0(n_bytes: size_t) -> gpointer;
6927 pub fn g_malloc0_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
6928 pub fn g_malloc_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
6929 pub fn g_markup_collect_attributes(
6930 element_name: *const c_char,
6931 attribute_names: *mut *const c_char,
6932 attribute_values: *mut *const c_char,
6933 error: *mut *mut GError,
6934 first_type: GMarkupCollectType,
6935 first_attr: *const c_char,
6936 ...
6937 ) -> gboolean;
6938 pub fn g_markup_error_quark() -> GQuark;
6939 pub fn g_markup_escape_text(text: *const c_char, length: ssize_t) -> *mut c_char;
6940 pub fn g_markup_printf_escaped(format: *const c_char, ...) -> *mut c_char;
6941 pub fn g_mem_is_system_malloc() -> gboolean;
6943 pub fn g_mem_profile();
6944 pub fn g_mem_set_vtable(vtable: *mut GMemVTable);
6945 pub fn g_memdup(mem: gconstpointer, byte_size: c_uint) -> gpointer;
6946 #[cfg(feature = "v2_68")]
6947 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
6948 pub fn g_memdup2(mem: gconstpointer, byte_size: size_t) -> gpointer;
6949 pub fn g_mkdir_with_parents(pathname: *const c_char, mode: c_int) -> c_int;
6950 pub fn g_mkdtemp(tmpl: *mut c_char) -> *mut c_char;
6951 pub fn g_mkdtemp_full(tmpl: *mut c_char, mode: c_int) -> *mut c_char;
6952 pub fn g_mkstemp(tmpl: *mut c_char) -> c_int;
6953 pub fn g_mkstemp_full(tmpl: *mut c_char, flags: c_int, mode: c_int) -> c_int;
6954 pub fn g_nullify_pointer(nullify_location: *mut gpointer);
6955 pub fn g_number_parser_error_quark() -> GQuark;
6956 pub fn g_on_error_query(prg_name: *const c_char);
6957 pub fn g_on_error_stack_trace(prg_name: *const c_char);
6958 pub fn g_option_error_quark() -> GQuark;
6959 pub fn g_parse_debug_string(
6960 string: *const c_char,
6961 keys: *const GDebugKey,
6962 nkeys: c_uint,
6963 ) -> c_uint;
6964 pub fn g_path_get_basename(file_name: *const c_char) -> *mut c_char;
6965 pub fn g_path_get_dirname(file_name: *const c_char) -> *mut c_char;
6966 pub fn g_path_is_absolute(file_name: *const c_char) -> gboolean;
6967 pub fn g_path_skip_root(file_name: *const c_char) -> *const c_char;
6968 pub fn g_pattern_match(
6969 pspec: *mut GPatternSpec,
6970 string_length: c_uint,
6971 string: *const c_char,
6972 string_reversed: *const c_char,
6973 ) -> gboolean;
6974 pub fn g_pattern_match_simple(pattern: *const c_char, string: *const c_char) -> gboolean;
6975 pub fn g_pattern_match_string(pspec: *mut GPatternSpec, string: *const c_char) -> gboolean;
6976 pub fn g_pointer_bit_lock(address: *mut c_void, lock_bit: c_int);
6977 #[cfg(feature = "v2_80")]
6978 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
6979 pub fn g_pointer_bit_lock_and_get(address: gpointer, lock_bit: c_uint, out_ptr: *mut uintptr_t);
6980 #[cfg(feature = "v2_80")]
6981 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
6982 pub fn g_pointer_bit_lock_mask_ptr(
6983 ptr: gpointer,
6984 lock_bit: c_uint,
6985 set: gboolean,
6986 preserve_mask: uintptr_t,
6987 preserve_ptr: gpointer,
6988 ) -> gpointer;
6989 pub fn g_pointer_bit_trylock(address: *mut c_void, lock_bit: c_int) -> gboolean;
6990 pub fn g_pointer_bit_unlock(address: *mut c_void, lock_bit: c_int);
6991 #[cfg(feature = "v2_80")]
6992 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
6993 pub fn g_pointer_bit_unlock_and_set(
6994 address: *mut c_void,
6995 lock_bit: c_uint,
6996 ptr: gpointer,
6997 preserve_mask: uintptr_t,
6998 );
6999 pub fn g_poll(fds: *mut GPollFD, nfds: c_uint, timeout: c_int) -> c_int;
7000 pub fn g_prefix_error(err: *mut *mut GError, format: *const c_char, ...);
7001 #[cfg(feature = "v2_70")]
7002 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
7003 pub fn g_prefix_error_literal(err: *mut *mut GError, prefix: *const c_char);
7004 pub fn g_print(format: *const c_char, ...);
7005 pub fn g_printerr(format: *const c_char, ...);
7006 pub fn g_printf(format: *const c_char, ...) -> c_int;
7007 pub fn g_propagate_error(dest: *mut *mut GError, src: *mut GError);
7009 pub fn g_propagate_prefixed_error(
7010 dest: *mut *mut GError,
7011 src: *mut GError,
7012 format: *const c_char,
7013 ...
7014 );
7015 pub fn g_qsort_with_data(
7016 pbase: gconstpointer,
7017 total_elems: c_int,
7018 size: size_t,
7019 compare_func: GCompareDataFunc,
7020 user_data: gpointer,
7021 );
7022 pub fn g_quark_from_static_string(string: *const c_char) -> GQuark;
7023 pub fn g_quark_from_string(string: *const c_char) -> GQuark;
7024 pub fn g_quark_to_string(quark: GQuark) -> *const c_char;
7025 pub fn g_quark_try_string(string: *const c_char) -> GQuark;
7026 pub fn g_random_double() -> c_double;
7027 pub fn g_random_double_range(begin: c_double, end: c_double) -> c_double;
7028 pub fn g_random_int() -> u32;
7029 pub fn g_random_int_range(begin: i32, end: i32) -> i32;
7030 pub fn g_random_set_seed(seed: u32);
7031 #[cfg(feature = "v2_58")]
7032 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7033 pub fn g_rc_box_acquire(mem_block: gpointer) -> gpointer;
7034 #[cfg(feature = "v2_58")]
7035 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7036 pub fn g_rc_box_alloc(block_size: size_t) -> gpointer;
7037 #[cfg(feature = "v2_58")]
7038 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7039 pub fn g_rc_box_alloc0(block_size: size_t) -> gpointer;
7040 #[cfg(feature = "v2_58")]
7041 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7042 pub fn g_rc_box_dup(block_size: size_t, mem_block: gconstpointer) -> gpointer;
7043 #[cfg(feature = "v2_58")]
7044 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7045 pub fn g_rc_box_get_size(mem_block: gpointer) -> size_t;
7046 #[cfg(feature = "v2_58")]
7047 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7048 pub fn g_rc_box_release(mem_block: gpointer);
7049 #[cfg(feature = "v2_58")]
7050 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7051 pub fn g_rc_box_release_full(mem_block: gpointer, clear_func: GDestroyNotify);
7052 pub fn g_realloc(mem: gpointer, n_bytes: size_t) -> gpointer;
7053 pub fn g_realloc_n(mem: gpointer, n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
7054 #[cfg(feature = "v2_58")]
7055 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7056 pub fn g_ref_count_compare(rc: *mut c_int, val: c_int) -> gboolean;
7057 #[cfg(feature = "v2_58")]
7058 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7059 pub fn g_ref_count_dec(rc: *mut c_int) -> gboolean;
7060 #[cfg(feature = "v2_58")]
7061 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7062 pub fn g_ref_count_inc(rc: *mut c_int);
7063 #[cfg(feature = "v2_58")]
7064 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7065 pub fn g_ref_count_init(rc: *mut c_int);
7066 #[cfg(feature = "v2_58")]
7067 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7068 pub fn g_ref_string_acquire(str: *mut c_char) -> *mut c_char;
7069 #[cfg(feature = "v2_84")]
7070 #[cfg_attr(docsrs, doc(cfg(feature = "v2_84")))]
7071 pub fn g_ref_string_equal(str1: *const c_char, str2: *const c_char) -> gboolean;
7072 #[cfg(feature = "v2_58")]
7073 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7074 pub fn g_ref_string_length(str: *mut c_char) -> size_t;
7075 #[cfg(feature = "v2_58")]
7076 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7077 pub fn g_ref_string_new(str: *const c_char) -> *mut c_char;
7078 #[cfg(feature = "v2_58")]
7079 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7080 pub fn g_ref_string_new_intern(str: *const c_char) -> *mut c_char;
7081 #[cfg(feature = "v2_58")]
7082 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7083 pub fn g_ref_string_new_len(str: *const c_char, len: ssize_t) -> *mut c_char;
7084 #[cfg(feature = "v2_58")]
7085 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7086 pub fn g_ref_string_release(str: *mut c_char);
7087 pub fn g_reload_user_special_dirs_cache();
7088 pub fn g_return_if_fail_warning(
7089 log_domain: *const c_char,
7090 pretty_function: *const c_char,
7091 expression: *const c_char,
7092 );
7093 pub fn g_rmdir(filename: *const c_char) -> c_int;
7094 pub fn g_set_application_name(application_name: *const c_char);
7095 pub fn g_set_error(
7096 err: *mut *mut GError,
7097 domain: GQuark,
7098 code: c_int,
7099 format: *const c_char,
7100 ...
7101 );
7102 pub fn g_set_error_literal(
7103 err: *mut *mut GError,
7104 domain: GQuark,
7105 code: c_int,
7106 message: *const c_char,
7107 );
7108 pub fn g_set_prgname(prgname: *const c_char);
7109 pub fn g_set_print_handler(func: GPrintFunc) -> GPrintFunc;
7110 pub fn g_set_printerr_handler(func: GPrintFunc) -> GPrintFunc;
7111 pub fn g_setenv(variable: *const c_char, value: *const c_char, overwrite: gboolean)
7112 -> gboolean;
7113 pub fn g_shell_error_quark() -> GQuark;
7114 pub fn g_shell_parse_argv(
7115 command_line: *const c_char,
7116 argcp: *mut c_int,
7117 argvp: *mut *mut *mut c_char,
7118 error: *mut *mut GError,
7119 ) -> gboolean;
7120 pub fn g_shell_quote(unquoted_string: *const c_char) -> *mut c_char;
7121 pub fn g_shell_unquote(quoted_string: *const c_char, error: *mut *mut GError) -> *mut c_char;
7122 pub fn g_slice_alloc(block_size: size_t) -> gpointer;
7123 pub fn g_slice_alloc0(block_size: size_t) -> gpointer;
7124 pub fn g_slice_copy(block_size: size_t, mem_block: gconstpointer) -> gpointer;
7125 pub fn g_slice_free1(block_size: size_t, mem_block: gpointer);
7126 pub fn g_slice_free_chain_with_offset(
7127 block_size: size_t,
7128 mem_chain: gpointer,
7129 next_offset: size_t,
7130 );
7131 pub fn g_slice_get_config(ckey: GSliceConfig) -> i64;
7132 pub fn g_slice_get_config_state(
7133 ckey: GSliceConfig,
7134 address: i64,
7135 n_values: *mut c_uint,
7136 ) -> *mut i64;
7137 pub fn g_slice_set_config(ckey: GSliceConfig, value: i64);
7138 pub fn g_snprintf(string: *mut c_char, n: c_ulong, format: *const c_char, ...) -> c_int;
7139 #[cfg(feature = "v2_82")]
7140 #[cfg_attr(docsrs, doc(cfg(feature = "v2_82")))]
7141 pub fn g_sort_array(
7142 array: *mut c_void,
7143 n_elements: size_t,
7144 element_size: size_t,
7145 compare_func: GCompareDataFunc,
7146 user_data: *mut c_void,
7147 );
7148 pub fn g_spaced_primes_closest(num: c_uint) -> c_uint;
7149 pub fn g_spawn_async(
7150 working_directory: *const c_char,
7151 argv: *mut *mut c_char,
7152 envp: *mut *mut c_char,
7153 flags: GSpawnFlags,
7154 child_setup: GSpawnChildSetupFunc,
7155 user_data: gpointer,
7156 child_pid: *mut GPid,
7157 error: *mut *mut GError,
7158 ) -> gboolean;
7159 #[cfg(feature = "v2_58")]
7160 #[cfg_attr(docsrs, doc(cfg(feature = "v2_58")))]
7161 pub fn g_spawn_async_with_fds(
7162 working_directory: *const c_char,
7163 argv: *mut *mut c_char,
7164 envp: *mut *mut c_char,
7165 flags: GSpawnFlags,
7166 child_setup: GSpawnChildSetupFunc,
7167 user_data: gpointer,
7168 child_pid: *mut GPid,
7169 stdin_fd: c_int,
7170 stdout_fd: c_int,
7171 stderr_fd: c_int,
7172 error: *mut *mut GError,
7173 ) -> gboolean;
7174 pub fn g_spawn_async_with_pipes(
7175 working_directory: *const c_char,
7176 argv: *mut *mut c_char,
7177 envp: *mut *mut c_char,
7178 flags: GSpawnFlags,
7179 child_setup: GSpawnChildSetupFunc,
7180 user_data: gpointer,
7181 child_pid: *mut GPid,
7182 standard_input: *mut c_int,
7183 standard_output: *mut c_int,
7184 standard_error: *mut c_int,
7185 error: *mut *mut GError,
7186 ) -> gboolean;
7187 #[cfg(feature = "v2_68")]
7188 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
7189 pub fn g_spawn_async_with_pipes_and_fds(
7190 working_directory: *const c_char,
7191 argv: *const *const c_char,
7192 envp: *const *const c_char,
7193 flags: GSpawnFlags,
7194 child_setup: GSpawnChildSetupFunc,
7195 user_data: gpointer,
7196 stdin_fd: c_int,
7197 stdout_fd: c_int,
7198 stderr_fd: c_int,
7199 source_fds: *const c_int,
7200 target_fds: *const c_int,
7201 n_fds: size_t,
7202 child_pid_out: *mut GPid,
7203 stdin_pipe_out: *mut c_int,
7204 stdout_pipe_out: *mut c_int,
7205 stderr_pipe_out: *mut c_int,
7206 error: *mut *mut GError,
7207 ) -> gboolean;
7208 pub fn g_spawn_check_exit_status(wait_status: c_int, error: *mut *mut GError) -> gboolean;
7209 #[cfg(feature = "v2_70")]
7210 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
7211 pub fn g_spawn_check_wait_status(wait_status: c_int, error: *mut *mut GError) -> gboolean;
7212 pub fn g_spawn_close_pid(pid: GPid);
7213 pub fn g_spawn_command_line_async(
7214 command_line: *const c_char,
7215 error: *mut *mut GError,
7216 ) -> gboolean;
7217 pub fn g_spawn_command_line_sync(
7218 command_line: *const c_char,
7219 standard_output: *mut *mut u8,
7220 standard_error: *mut *mut u8,
7221 wait_status: *mut c_int,
7222 error: *mut *mut GError,
7223 ) -> gboolean;
7224 pub fn g_spawn_error_quark() -> GQuark;
7225 pub fn g_spawn_exit_error_quark() -> GQuark;
7226 pub fn g_spawn_sync(
7227 working_directory: *const c_char,
7228 argv: *mut *mut c_char,
7229 envp: *mut *mut c_char,
7230 flags: GSpawnFlags,
7231 child_setup: GSpawnChildSetupFunc,
7232 user_data: gpointer,
7233 standard_output: *mut *mut u8,
7234 standard_error: *mut *mut u8,
7235 wait_status: *mut c_int,
7236 error: *mut *mut GError,
7237 ) -> gboolean;
7238 pub fn g_sprintf(string: *mut c_char, format: *const c_char, ...) -> c_int;
7239 pub fn g_stat(filename: *const c_char, buf: *mut GStatBuf) -> c_int;
7240 pub fn g_stpcpy(dest: *mut c_char, src: *const c_char) -> *mut c_char;
7241 pub fn g_str_equal(v1: gconstpointer, v2: gconstpointer) -> gboolean;
7242 pub fn g_str_has_prefix(str: *const c_char, prefix: *const c_char) -> gboolean;
7243 pub fn g_str_has_suffix(str: *const c_char, suffix: *const c_char) -> gboolean;
7244 pub fn g_str_hash(v: gconstpointer) -> c_uint;
7245 pub fn g_str_is_ascii(str: *const c_char) -> gboolean;
7246 pub fn g_str_match_string(
7247 search_term: *const c_char,
7248 potential_hit: *const c_char,
7249 accept_alternates: gboolean,
7250 ) -> gboolean;
7251 pub fn g_str_to_ascii(str: *const c_char, from_locale: *const c_char) -> *mut c_char;
7252 pub fn g_str_tokenize_and_fold(
7253 string: *const c_char,
7254 translit_locale: *const c_char,
7255 ascii_alternates: *mut *mut *mut c_char,
7256 ) -> *mut *mut c_char;
7257 pub fn g_strcanon(
7258 string: *mut c_char,
7259 valid_chars: *const c_char,
7260 substitutor: c_char,
7261 ) -> *mut c_char;
7262 pub fn g_strcasecmp(s1: *const c_char, s2: *const c_char) -> c_int;
7263 pub fn g_strchomp(string: *mut c_char) -> *mut c_char;
7264 pub fn g_strchug(string: *mut c_char) -> *mut c_char;
7265 pub fn g_strcmp0(str1: *const c_char, str2: *const c_char) -> c_int;
7266 pub fn g_strcompress(source: *const c_char) -> *mut c_char;
7267 pub fn g_strconcat(string1: *const c_char, ...) -> *mut c_char;
7268 pub fn g_strdelimit(
7269 string: *mut c_char,
7270 delimiters: *const c_char,
7271 new_delimiter: c_char,
7272 ) -> *mut c_char;
7273 pub fn g_strdown(string: *mut c_char) -> *mut c_char;
7274 pub fn g_strdup(str: *const c_char) -> *mut c_char;
7275 pub fn g_strdup_printf(format: *const c_char, ...) -> *mut c_char;
7276 pub fn g_strdupv(str_array: *mut *mut c_char) -> *mut *mut c_char;
7278 pub fn g_strerror(errnum: c_int) -> *const c_char;
7279 pub fn g_strescape(source: *const c_char, exceptions: *const c_char) -> *mut c_char;
7280 pub fn g_strfreev(str_array: *mut *mut c_char);
7281 pub fn g_strip_context(msgid: *const c_char, msgval: *const c_char) -> *const c_char;
7282 pub fn g_strjoin(separator: *const c_char, ...) -> *mut c_char;
7283 pub fn g_strjoinv(separator: *const c_char, str_array: *mut *mut c_char) -> *mut c_char;
7284 pub fn g_strlcat(dest: *mut c_char, src: *const c_char, dest_size: size_t) -> size_t;
7285 pub fn g_strlcpy(dest: *mut c_char, src: *const c_char, dest_size: size_t) -> size_t;
7286 pub fn g_strncasecmp(s1: *const c_char, s2: *const c_char, n: c_uint) -> c_int;
7287 pub fn g_strndup(str: *const c_char, n: size_t) -> *mut c_char;
7288 pub fn g_strnfill(length: size_t, fill_char: c_char) -> *mut c_char;
7289 pub fn g_strreverse(string: *mut c_char) -> *mut c_char;
7290 pub fn g_strrstr(haystack: *const c_char, needle: *const c_char) -> *mut c_char;
7291 pub fn g_strrstr_len(
7292 haystack: *const c_char,
7293 haystack_len: ssize_t,
7294 needle: *const c_char,
7295 ) -> *mut c_char;
7296 pub fn g_strsignal(signum: c_int) -> *const c_char;
7297 pub fn g_strsplit(
7298 string: *const c_char,
7299 delimiter: *const c_char,
7300 max_tokens: c_int,
7301 ) -> *mut *mut c_char;
7302 pub fn g_strsplit_set(
7303 string: *const c_char,
7304 delimiters: *const u8,
7305 max_tokens: c_int,
7306 ) -> *mut *mut c_char;
7307 pub fn g_strstr_len(
7308 haystack: *const c_char,
7309 haystack_len: ssize_t,
7310 needle: *const c_char,
7311 ) -> *mut c_char;
7312 pub fn g_strtod(nptr: *const c_char, endptr: *mut *mut c_char) -> c_double;
7313 pub fn g_strup(string: *mut c_char) -> *mut c_char;
7314 pub fn g_strv_contains(strv: *const *const c_char, str: *const c_char) -> gboolean;
7315 #[cfg(feature = "v2_60")]
7316 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
7317 pub fn g_strv_equal(strv1: *const *const c_char, strv2: *const *const c_char) -> gboolean;
7318 pub fn g_strv_get_type() -> GType;
7319 pub fn g_strv_length(str_array: *mut *mut c_char) -> c_uint;
7320 pub fn g_test_add_data_func(
7321 testpath: *const c_char,
7322 test_data: gconstpointer,
7323 test_func: GTestDataFunc,
7324 );
7325 pub fn g_test_add_data_func_full(
7326 testpath: *const c_char,
7327 test_data: gpointer,
7328 test_func: GTestDataFunc,
7329 data_free_func: GDestroyNotify,
7330 );
7331 pub fn g_test_add_func(testpath: *const c_char, test_func: GTestFunc);
7332 pub fn g_test_add_vtable(
7333 testpath: *const c_char,
7334 data_size: size_t,
7335 test_data: gconstpointer,
7336 data_setup: GTestFixtureFunc,
7337 data_test: GTestFixtureFunc,
7338 data_teardown: GTestFixtureFunc,
7339 );
7340 pub fn g_test_assert_expected_messages_internal(
7341 domain: *const c_char,
7342 file: *const c_char,
7343 line: c_int,
7344 func: *const c_char,
7345 );
7346 pub fn g_test_bug(bug_uri_snippet: *const c_char);
7347 pub fn g_test_bug_base(uri_pattern: *const c_char);
7348 pub fn g_test_build_filename(
7349 file_type: GTestFileType,
7350 first_path: *const c_char,
7351 ...
7352 ) -> *mut c_char;
7353 pub fn g_test_create_case(
7354 test_name: *const c_char,
7355 data_size: size_t,
7356 test_data: gconstpointer,
7357 data_setup: GTestFixtureFunc,
7358 data_test: GTestFixtureFunc,
7359 data_teardown: GTestFixtureFunc,
7360 ) -> *mut GTestCase;
7361 pub fn g_test_create_suite(suite_name: *const c_char) -> *mut GTestSuite;
7362 #[cfg(feature = "v2_78")]
7363 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
7364 pub fn g_test_disable_crash_reporting();
7365 pub fn g_test_expect_message(
7366 log_domain: *const c_char,
7367 log_level: GLogLevelFlags,
7368 pattern: *const c_char,
7369 );
7370 pub fn g_test_fail();
7371 #[cfg(feature = "v2_70")]
7372 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
7373 pub fn g_test_fail_printf(format: *const c_char, ...);
7374 pub fn g_test_failed() -> gboolean;
7375 pub fn g_test_get_dir(file_type: GTestFileType) -> *const c_char;
7376 pub fn g_test_get_filename(
7377 file_type: GTestFileType,
7378 first_path: *const c_char,
7379 ...
7380 ) -> *const c_char;
7381 #[cfg(feature = "v2_68")]
7382 #[cfg_attr(docsrs, doc(cfg(feature = "v2_68")))]
7383 pub fn g_test_get_path() -> *const c_char;
7384 pub fn g_test_get_root() -> *mut GTestSuite;
7385 pub fn g_test_incomplete(msg: *const c_char);
7386 #[cfg(feature = "v2_70")]
7387 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
7388 pub fn g_test_incomplete_printf(format: *const c_char, ...);
7389 pub fn g_test_init(argc: *mut c_int, argv: *mut *mut *mut c_char, ...);
7390 pub fn g_test_log_set_fatal_handler(log_func: GTestLogFatalFunc, user_data: gpointer);
7391 pub fn g_test_log_type_name(log_type: GTestLogType) -> *const c_char;
7392 pub fn g_test_maximized_result(maximized_quantity: c_double, format: *const c_char, ...);
7393 pub fn g_test_message(format: *const c_char, ...);
7394 pub fn g_test_minimized_result(minimized_quantity: c_double, format: *const c_char, ...);
7395 pub fn g_test_queue_destroy(destroy_func: GDestroyNotify, destroy_data: gpointer);
7396 pub fn g_test_queue_free(gfree_pointer: gpointer);
7397 pub fn g_test_rand_double() -> c_double;
7398 pub fn g_test_rand_double_range(range_start: c_double, range_end: c_double) -> c_double;
7399 pub fn g_test_rand_int() -> i32;
7400 pub fn g_test_rand_int_range(begin: i32, end: i32) -> i32;
7401 pub fn g_test_run() -> c_int;
7402 pub fn g_test_run_suite(suite: *mut GTestSuite) -> c_int;
7403 pub fn g_test_set_nonfatal_assertions();
7404 pub fn g_test_skip(msg: *const c_char);
7405 #[cfg(feature = "v2_70")]
7406 #[cfg_attr(docsrs, doc(cfg(feature = "v2_70")))]
7407 pub fn g_test_skip_printf(format: *const c_char, ...);
7408 pub fn g_test_subprocess() -> gboolean;
7409 #[cfg(feature = "v2_62")]
7410 #[cfg_attr(docsrs, doc(cfg(feature = "v2_62")))]
7411 pub fn g_test_summary(summary: *const c_char);
7412 pub fn g_test_timer_elapsed() -> c_double;
7413 pub fn g_test_timer_last() -> c_double;
7414 pub fn g_test_timer_start();
7415 pub fn g_test_trap_assertions(
7416 domain: *const c_char,
7417 file: *const c_char,
7418 line: c_int,
7419 func: *const c_char,
7420 assertion_flags: u64,
7421 pattern: *const c_char,
7422 );
7423 pub fn g_test_trap_fork(usec_timeout: u64, test_trap_flags: GTestTrapFlags) -> gboolean;
7424 pub fn g_test_trap_has_passed() -> gboolean;
7425 #[cfg(feature = "v2_88")]
7426 #[cfg_attr(docsrs, doc(cfg(feature = "v2_88")))]
7427 pub fn g_test_trap_has_skipped() -> gboolean;
7428 pub fn g_test_trap_reached_timeout() -> gboolean;
7429 pub fn g_test_trap_subprocess(
7430 test_path: *const c_char,
7431 usec_timeout: u64,
7432 test_flags: GTestSubprocessFlags,
7433 );
7434 #[cfg(feature = "v2_80")]
7435 #[cfg_attr(docsrs, doc(cfg(feature = "v2_80")))]
7436 pub fn g_test_trap_subprocess_with_envp(
7437 test_path: *const c_char,
7438 envp: *const *const c_char,
7439 usec_timeout: u64,
7440 test_flags: GTestSubprocessFlags,
7441 );
7442 pub fn g_timeout_add(interval: c_uint, function: GSourceFunc, data: gpointer) -> c_uint;
7443 pub fn g_timeout_add_full(
7444 priority: c_int,
7445 interval: c_uint,
7446 function: GSourceFunc,
7447 data: gpointer,
7448 notify: GDestroyNotify,
7449 ) -> c_uint;
7450 #[cfg(feature = "v2_74")]
7451 #[cfg_attr(docsrs, doc(cfg(feature = "v2_74")))]
7452 pub fn g_timeout_add_once(
7453 interval: c_uint,
7454 function: GSourceOnceFunc,
7455 data: gpointer,
7456 ) -> c_uint;
7457 pub fn g_timeout_add_seconds(interval: c_uint, function: GSourceFunc, data: gpointer)
7458 -> c_uint;
7459 pub fn g_timeout_add_seconds_full(
7460 priority: c_int,
7461 interval: c_uint,
7462 function: GSourceFunc,
7463 data: gpointer,
7464 notify: GDestroyNotify,
7465 ) -> c_uint;
7466 #[cfg(feature = "v2_78")]
7467 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
7468 pub fn g_timeout_add_seconds_once(
7469 interval: c_uint,
7470 function: GSourceOnceFunc,
7471 data: gpointer,
7472 ) -> c_uint;
7473 pub fn g_timeout_source_new(interval: c_uint) -> *mut GSource;
7474 #[cfg(feature = "v2_90")]
7475 #[cfg_attr(docsrs, doc(cfg(feature = "v2_90")))]
7476 pub fn g_timeout_source_new_ns(interval: u64) -> *mut GSource;
7477 pub fn g_timeout_source_new_seconds(interval: c_uint) -> *mut GSource;
7478 pub fn g_try_malloc(n_bytes: size_t) -> gpointer;
7479 pub fn g_try_malloc0(n_bytes: size_t) -> gpointer;
7480 pub fn g_try_malloc0_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
7481 pub fn g_try_malloc_n(n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
7482 pub fn g_try_realloc(mem: gpointer, n_bytes: size_t) -> gpointer;
7483 pub fn g_try_realloc_n(mem: gpointer, n_blocks: size_t, n_block_bytes: size_t) -> gpointer;
7484 pub fn g_ucs4_to_utf16(
7485 str: *const u32,
7486 len: c_long,
7487 items_read: *mut c_long,
7488 items_written: *mut c_long,
7489 error: *mut *mut GError,
7490 ) -> *mut u16;
7491 pub fn g_ucs4_to_utf8(
7492 str: *const u32,
7493 len: c_long,
7494 items_read: *mut c_long,
7495 items_written: *mut c_long,
7496 error: *mut *mut GError,
7497 ) -> *mut c_char;
7498 pub fn g_unichar_break_type(c: u32) -> GUnicodeBreakType;
7499 pub fn g_unichar_combining_class(uc: u32) -> c_int;
7500 pub fn g_unichar_compose(a: u32, b: u32, ch: *mut u32) -> gboolean;
7501 pub fn g_unichar_decompose(ch: u32, a: *mut u32, b: *mut u32) -> gboolean;
7502 pub fn g_unichar_digit_value(c: u32) -> c_int;
7503 pub fn g_unichar_fully_decompose(
7504 ch: u32,
7505 compat: gboolean,
7506 result: *mut u32,
7507 result_len: size_t,
7508 ) -> size_t;
7509 pub fn g_unichar_get_mirror_char(ch: u32, mirrored_ch: *mut u32) -> gboolean;
7510 pub fn g_unichar_get_script(ch: u32) -> GUnicodeScript;
7511 pub fn g_unichar_isalnum(c: u32) -> gboolean;
7512 pub fn g_unichar_isalpha(c: u32) -> gboolean;
7513 pub fn g_unichar_iscntrl(c: u32) -> gboolean;
7514 pub fn g_unichar_isdefined(c: u32) -> gboolean;
7515 pub fn g_unichar_isdigit(c: u32) -> gboolean;
7516 pub fn g_unichar_isgraph(c: u32) -> gboolean;
7517 pub fn g_unichar_islower(c: u32) -> gboolean;
7518 pub fn g_unichar_ismark(c: u32) -> gboolean;
7519 pub fn g_unichar_isprint(c: u32) -> gboolean;
7520 pub fn g_unichar_ispunct(c: u32) -> gboolean;
7521 pub fn g_unichar_isspace(c: u32) -> gboolean;
7522 pub fn g_unichar_istitle(c: u32) -> gboolean;
7523 pub fn g_unichar_isupper(c: u32) -> gboolean;
7524 pub fn g_unichar_iswide(c: u32) -> gboolean;
7525 pub fn g_unichar_iswide_cjk(c: u32) -> gboolean;
7526 pub fn g_unichar_isxdigit(c: u32) -> gboolean;
7527 pub fn g_unichar_iszerowidth(c: u32) -> gboolean;
7528 pub fn g_unichar_to_utf8(c: u32, outbuf: *mut c_char) -> c_int;
7529 pub fn g_unichar_tolower(c: u32) -> u32;
7530 pub fn g_unichar_totitle(c: u32) -> u32;
7531 pub fn g_unichar_toupper(c: u32) -> u32;
7532 pub fn g_unichar_type(c: u32) -> GUnicodeType;
7533 pub fn g_unichar_validate(ch: u32) -> gboolean;
7534 pub fn g_unichar_xdigit_value(c: u32) -> c_int;
7535 pub fn g_unicode_canonical_decomposition(ch: u32, result_len: *mut size_t) -> *mut u32;
7536 pub fn g_unicode_canonical_ordering(string: *mut u32, len: size_t);
7537 pub fn g_unlink(filename: *const c_char) -> c_int;
7538 pub fn g_unsetenv(variable: *const c_char);
7539 pub fn g_usleep(microseconds: c_ulong);
7540 pub fn g_utf16_to_ucs4(
7541 str: *const u16,
7542 len: c_long,
7543 items_read: *mut c_long,
7544 items_written: *mut c_long,
7545 error: *mut *mut GError,
7546 ) -> *mut u32;
7547 pub fn g_utf16_to_utf8(
7548 str: *const u16,
7549 len: c_long,
7550 items_read: *mut c_long,
7551 items_written: *mut c_long,
7552 error: *mut *mut GError,
7553 ) -> *mut c_char;
7554 pub fn g_utf8_casefold(str: *const c_char, len: ssize_t) -> *mut c_char;
7555 pub fn g_utf8_collate(str1: *const c_char, str2: *const c_char) -> c_int;
7556 pub fn g_utf8_collate_key(str: *const c_char, len: ssize_t) -> *mut c_char;
7557 pub fn g_utf8_collate_key_for_filename(str: *const c_char, len: ssize_t) -> *mut c_char;
7558 pub fn g_utf8_find_next_char(p: *const c_char, end: *const c_char) -> *mut c_char;
7559 pub fn g_utf8_find_prev_char(str: *const c_char, p: *const c_char) -> *mut c_char;
7560 pub fn g_utf8_get_char(p: *const c_char) -> u32;
7561 pub fn g_utf8_get_char_validated(p: *const c_char, max_len: ssize_t) -> u32;
7562 pub fn g_utf8_make_valid(str: *const c_char, len: ssize_t) -> *mut c_char;
7563 pub fn g_utf8_normalize(str: *const c_char, len: ssize_t, mode: GNormalizeMode) -> *mut c_char;
7564 pub fn g_utf8_offset_to_pointer(str: *const c_char, offset: c_long) -> *mut c_char;
7565 pub fn g_utf8_pointer_to_offset(str: *const c_char, pos: *const c_char) -> c_long;
7566 pub fn g_utf8_prev_char(p: *const c_char) -> *mut c_char;
7567 pub fn g_utf8_strchr(p: *const c_char, len: ssize_t, c: u32) -> *mut c_char;
7568 pub fn g_utf8_strdown(str: *const c_char, len: ssize_t) -> *mut c_char;
7569 pub fn g_utf8_strlen(p: *const c_char, max: ssize_t) -> c_long;
7570 pub fn g_utf8_strncpy(dest: *mut c_char, src: *const c_char, n: size_t) -> *mut c_char;
7571 pub fn g_utf8_strrchr(p: *const c_char, len: ssize_t, c: u32) -> *mut c_char;
7572 pub fn g_utf8_strreverse(str: *const c_char, len: ssize_t) -> *mut c_char;
7573 pub fn g_utf8_strup(str: *const c_char, len: ssize_t) -> *mut c_char;
7574 pub fn g_utf8_substring(str: *const c_char, start_pos: c_long, end_pos: c_long) -> *mut c_char;
7575 pub fn g_utf8_to_ucs4(
7576 str: *const c_char,
7577 len: c_long,
7578 items_read: *mut c_long,
7579 items_written: *mut c_long,
7580 error: *mut *mut GError,
7581 ) -> *mut u32;
7582 pub fn g_utf8_to_ucs4_fast(
7583 str: *const c_char,
7584 len: c_long,
7585 items_written: *mut c_long,
7586 ) -> *mut u32;
7587 pub fn g_utf8_to_utf16(
7588 str: *const c_char,
7589 len: c_long,
7590 items_read: *mut c_long,
7591 items_written: *mut c_long,
7592 error: *mut *mut GError,
7593 ) -> *mut u16;
7594 #[cfg(feature = "v2_78")]
7595 #[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
7596 pub fn g_utf8_truncate_middle(string: *const c_char, truncate_length: size_t) -> *mut c_char;
7597 pub fn g_utf8_validate(str: *const u8, max_len: ssize_t, end: *mut *const u8) -> gboolean;
7598 #[cfg(feature = "v2_60")]
7599 #[cfg_attr(docsrs, doc(cfg(feature = "v2_60")))]
7600 pub fn g_utf8_validate_len(str: *const u8, max_len: size_t, end: *mut *const u8) -> gboolean;
7601 pub fn g_uuid_string_is_valid(str: *const c_char) -> gboolean;
7602 pub fn g_uuid_string_random() -> *mut c_char;
7603 pub fn g_variant_get_gtype() -> GType;
7604 pub fn g_warn_message(
7610 domain: *const c_char,
7611 file: *const c_char,
7612 line: c_int,
7613 func: *const c_char,
7614 warnexpr: *const c_char,
7615 );
7616
7617}