1 // This file was generated by gir (https://github.com/gtk-rs/gir) 2 // from gir-files (https://github.com/gtk-rs/gir-files) 3 // DO NOT EDIT 4 5 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)] 6 #![allow( 7 clippy::approx_constant, 8 clippy::type_complexity, 9 clippy::unreadable_literal, 10 clippy::upper_case_acronyms 11 )] 12 #![cfg_attr(feature = "dox", feature(doc_cfg))] 13 14 mod manual; 15 16 pub use manual::*; 17 18 #[allow(unused_imports)] 19 use libc::{ 20 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void, 21 intptr_t, size_t, ssize_t, time_t, uintptr_t, FILE, 22 }; 23 24 pub type gboolean = c_int; 25 pub const GFALSE: c_int = 0; 26 pub const GTRUE: c_int = 1; 27 28 pub type gconstpointer = *const c_void; 29 pub type gpointer = *mut c_void; 30 31 // Aliases 32 pub type GDateDay = u8; 33 pub type GDateYear = u16; 34 pub type GMainContextPusher = c_void; 35 pub type GMutexLocker = c_void; 36 pub type GQuark = u32; 37 pub type GRWLockReaderLocker = c_void; 38 pub type GRWLockWriterLocker = c_void; 39 pub type GRecMutexLocker = c_void; 40 pub type GRefString = c_char; 41 pub type GStrv = *mut *mut c_char; 42 pub type GTime = i32; 43 pub type GTimeSpan = i64; 44 pub type GType = size_t; 45 46 // Enums 47 pub type GBookmarkFileError = c_int; 48 pub const G_BOOKMARK_FILE_ERROR_INVALID_URI: GBookmarkFileError = 0; 49 pub const G_BOOKMARK_FILE_ERROR_INVALID_VALUE: GBookmarkFileError = 1; 50 pub const G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: GBookmarkFileError = 2; 51 pub const G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: GBookmarkFileError = 3; 52 pub const G_BOOKMARK_FILE_ERROR_READ: GBookmarkFileError = 4; 53 pub const G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: GBookmarkFileError = 5; 54 pub const G_BOOKMARK_FILE_ERROR_WRITE: GBookmarkFileError = 6; 55 pub const G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: GBookmarkFileError = 7; 56 57 pub type GChecksumType = c_int; 58 pub const G_CHECKSUM_MD5: GChecksumType = 0; 59 pub const G_CHECKSUM_SHA1: GChecksumType = 1; 60 pub const G_CHECKSUM_SHA256: GChecksumType = 2; 61 pub const G_CHECKSUM_SHA512: GChecksumType = 3; 62 pub const G_CHECKSUM_SHA384: GChecksumType = 4; 63 64 pub type GConvertError = c_int; 65 pub const G_CONVERT_ERROR_NO_CONVERSION: GConvertError = 0; 66 pub const G_CONVERT_ERROR_ILLEGAL_SEQUENCE: GConvertError = 1; 67 pub const G_CONVERT_ERROR_FAILED: GConvertError = 2; 68 pub const G_CONVERT_ERROR_PARTIAL_INPUT: GConvertError = 3; 69 pub const G_CONVERT_ERROR_BAD_URI: GConvertError = 4; 70 pub const G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: GConvertError = 5; 71 pub const G_CONVERT_ERROR_NO_MEMORY: GConvertError = 6; 72 pub const G_CONVERT_ERROR_EMBEDDED_NUL: GConvertError = 7; 73 74 pub type GDateDMY = c_int; 75 pub const G_DATE_DAY: GDateDMY = 0; 76 pub const G_DATE_MONTH: GDateDMY = 1; 77 pub const G_DATE_YEAR: GDateDMY = 2; 78 79 pub type GDateMonth = c_int; 80 pub const G_DATE_BAD_MONTH: GDateMonth = 0; 81 pub const G_DATE_JANUARY: GDateMonth = 1; 82 pub const G_DATE_FEBRUARY: GDateMonth = 2; 83 pub const G_DATE_MARCH: GDateMonth = 3; 84 pub const G_DATE_APRIL: GDateMonth = 4; 85 pub const G_DATE_MAY: GDateMonth = 5; 86 pub const G_DATE_JUNE: GDateMonth = 6; 87 pub const G_DATE_JULY: GDateMonth = 7; 88 pub const G_DATE_AUGUST: GDateMonth = 8; 89 pub const G_DATE_SEPTEMBER: GDateMonth = 9; 90 pub const G_DATE_OCTOBER: GDateMonth = 10; 91 pub const G_DATE_NOVEMBER: GDateMonth = 11; 92 pub const G_DATE_DECEMBER: GDateMonth = 12; 93 94 pub type GDateWeekday = c_int; 95 pub const G_DATE_BAD_WEEKDAY: GDateWeekday = 0; 96 pub const G_DATE_MONDAY: GDateWeekday = 1; 97 pub const G_DATE_TUESDAY: GDateWeekday = 2; 98 pub const G_DATE_WEDNESDAY: GDateWeekday = 3; 99 pub const G_DATE_THURSDAY: GDateWeekday = 4; 100 pub const G_DATE_FRIDAY: GDateWeekday = 5; 101 pub const G_DATE_SATURDAY: GDateWeekday = 6; 102 pub const G_DATE_SUNDAY: GDateWeekday = 7; 103 104 pub type GErrorType = c_int; 105 pub const G_ERR_UNKNOWN: GErrorType = 0; 106 pub const G_ERR_UNEXP_EOF: GErrorType = 1; 107 pub const G_ERR_UNEXP_EOF_IN_STRING: GErrorType = 2; 108 pub const G_ERR_UNEXP_EOF_IN_COMMENT: GErrorType = 3; 109 pub const G_ERR_NON_DIGIT_IN_CONST: GErrorType = 4; 110 pub const G_ERR_DIGIT_RADIX: GErrorType = 5; 111 pub const G_ERR_FLOAT_RADIX: GErrorType = 6; 112 pub const G_ERR_FLOAT_MALFORMED: GErrorType = 7; 113 114 pub type GFileError = c_int; 115 pub const G_FILE_ERROR_EXIST: GFileError = 0; 116 pub const G_FILE_ERROR_ISDIR: GFileError = 1; 117 pub const G_FILE_ERROR_ACCES: GFileError = 2; 118 pub const G_FILE_ERROR_NAMETOOLONG: GFileError = 3; 119 pub const G_FILE_ERROR_NOENT: GFileError = 4; 120 pub const G_FILE_ERROR_NOTDIR: GFileError = 5; 121 pub const G_FILE_ERROR_NXIO: GFileError = 6; 122 pub const G_FILE_ERROR_NODEV: GFileError = 7; 123 pub const G_FILE_ERROR_ROFS: GFileError = 8; 124 pub const G_FILE_ERROR_TXTBSY: GFileError = 9; 125 pub const G_FILE_ERROR_FAULT: GFileError = 10; 126 pub const G_FILE_ERROR_LOOP: GFileError = 11; 127 pub const G_FILE_ERROR_NOSPC: GFileError = 12; 128 pub const G_FILE_ERROR_NOMEM: GFileError = 13; 129 pub const G_FILE_ERROR_MFILE: GFileError = 14; 130 pub const G_FILE_ERROR_NFILE: GFileError = 15; 131 pub const G_FILE_ERROR_BADF: GFileError = 16; 132 pub const G_FILE_ERROR_INVAL: GFileError = 17; 133 pub const G_FILE_ERROR_PIPE: GFileError = 18; 134 pub const G_FILE_ERROR_AGAIN: GFileError = 19; 135 pub const G_FILE_ERROR_INTR: GFileError = 20; 136 pub const G_FILE_ERROR_IO: GFileError = 21; 137 pub const G_FILE_ERROR_PERM: GFileError = 22; 138 pub const G_FILE_ERROR_NOSYS: GFileError = 23; 139 pub const G_FILE_ERROR_FAILED: GFileError = 24; 140 141 pub type GIOChannelError = c_int; 142 pub const G_IO_CHANNEL_ERROR_FBIG: GIOChannelError = 0; 143 pub const G_IO_CHANNEL_ERROR_INVAL: GIOChannelError = 1; 144 pub const G_IO_CHANNEL_ERROR_IO: GIOChannelError = 2; 145 pub const G_IO_CHANNEL_ERROR_ISDIR: GIOChannelError = 3; 146 pub const G_IO_CHANNEL_ERROR_NOSPC: GIOChannelError = 4; 147 pub const G_IO_CHANNEL_ERROR_NXIO: GIOChannelError = 5; 148 pub const G_IO_CHANNEL_ERROR_OVERFLOW: GIOChannelError = 6; 149 pub const G_IO_CHANNEL_ERROR_PIPE: GIOChannelError = 7; 150 pub const G_IO_CHANNEL_ERROR_FAILED: GIOChannelError = 8; 151 152 pub type GIOError = c_int; 153 pub const G_IO_ERROR_NONE: GIOError = 0; 154 pub const G_IO_ERROR_AGAIN: GIOError = 1; 155 pub const G_IO_ERROR_INVAL: GIOError = 2; 156 pub const G_IO_ERROR_UNKNOWN: GIOError = 3; 157 158 pub type GIOStatus = c_int; 159 pub const G_IO_STATUS_ERROR: GIOStatus = 0; 160 pub const G_IO_STATUS_NORMAL: GIOStatus = 1; 161 pub const G_IO_STATUS_EOF: GIOStatus = 2; 162 pub const G_IO_STATUS_AGAIN: GIOStatus = 3; 163 164 pub type GKeyFileError = c_int; 165 pub const G_KEY_FILE_ERROR_UNKNOWN_ENCODING: GKeyFileError = 0; 166 pub const G_KEY_FILE_ERROR_PARSE: GKeyFileError = 1; 167 pub const G_KEY_FILE_ERROR_NOT_FOUND: GKeyFileError = 2; 168 pub const G_KEY_FILE_ERROR_KEY_NOT_FOUND: GKeyFileError = 3; 169 pub const G_KEY_FILE_ERROR_GROUP_NOT_FOUND: GKeyFileError = 4; 170 pub const G_KEY_FILE_ERROR_INVALID_VALUE: GKeyFileError = 5; 171 172 pub type GLogWriterOutput = c_int; 173 pub const G_LOG_WRITER_HANDLED: GLogWriterOutput = 1; 174 pub const G_LOG_WRITER_UNHANDLED: GLogWriterOutput = 0; 175 176 pub type GMarkupError = c_int; 177 pub const G_MARKUP_ERROR_BAD_UTF8: GMarkupError = 0; 178 pub const G_MARKUP_ERROR_EMPTY: GMarkupError = 1; 179 pub const G_MARKUP_ERROR_PARSE: GMarkupError = 2; 180 pub const G_MARKUP_ERROR_UNKNOWN_ELEMENT: GMarkupError = 3; 181 pub const G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: GMarkupError = 4; 182 pub const G_MARKUP_ERROR_INVALID_CONTENT: GMarkupError = 5; 183 pub const G_MARKUP_ERROR_MISSING_ATTRIBUTE: GMarkupError = 6; 184 185 pub type GNormalizeMode = c_int; 186 pub const G_NORMALIZE_DEFAULT: GNormalizeMode = 0; 187 pub const G_NORMALIZE_NFD: GNormalizeMode = 0; 188 pub const G_NORMALIZE_DEFAULT_COMPOSE: GNormalizeMode = 1; 189 pub const G_NORMALIZE_NFC: GNormalizeMode = 1; 190 pub const G_NORMALIZE_ALL: GNormalizeMode = 2; 191 pub const G_NORMALIZE_NFKD: GNormalizeMode = 2; 192 pub const G_NORMALIZE_ALL_COMPOSE: GNormalizeMode = 3; 193 pub const G_NORMALIZE_NFKC: GNormalizeMode = 3; 194 195 pub type GNumberParserError = c_int; 196 pub const G_NUMBER_PARSER_ERROR_INVALID: GNumberParserError = 0; 197 pub const G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: GNumberParserError = 1; 198 199 pub type GOnceStatus = c_int; 200 pub const G_ONCE_STATUS_NOTCALLED: GOnceStatus = 0; 201 pub const G_ONCE_STATUS_PROGRESS: GOnceStatus = 1; 202 pub const G_ONCE_STATUS_READY: GOnceStatus = 2; 203 204 pub type GOptionArg = c_int; 205 pub const G_OPTION_ARG_NONE: GOptionArg = 0; 206 pub const G_OPTION_ARG_STRING: GOptionArg = 1; 207 pub const G_OPTION_ARG_INT: GOptionArg = 2; 208 pub const G_OPTION_ARG_CALLBACK: GOptionArg = 3; 209 pub const G_OPTION_ARG_FILENAME: GOptionArg = 4; 210 pub const G_OPTION_ARG_STRING_ARRAY: GOptionArg = 5; 211 pub const G_OPTION_ARG_FILENAME_ARRAY: GOptionArg = 6; 212 pub const G_OPTION_ARG_DOUBLE: GOptionArg = 7; 213 pub const G_OPTION_ARG_INT64: GOptionArg = 8; 214 215 pub type GOptionError = c_int; 216 pub const G_OPTION_ERROR_UNKNOWN_OPTION: GOptionError = 0; 217 pub const G_OPTION_ERROR_BAD_VALUE: GOptionError = 1; 218 pub const G_OPTION_ERROR_FAILED: GOptionError = 2; 219 220 pub type GRegexError = c_int; 221 pub const G_REGEX_ERROR_COMPILE: GRegexError = 0; 222 pub const G_REGEX_ERROR_OPTIMIZE: GRegexError = 1; 223 pub const G_REGEX_ERROR_REPLACE: GRegexError = 2; 224 pub const G_REGEX_ERROR_MATCH: GRegexError = 3; 225 pub const G_REGEX_ERROR_INTERNAL: GRegexError = 4; 226 pub const G_REGEX_ERROR_STRAY_BACKSLASH: GRegexError = 101; 227 pub const G_REGEX_ERROR_MISSING_CONTROL_CHAR: GRegexError = 102; 228 pub const G_REGEX_ERROR_UNRECOGNIZED_ESCAPE: GRegexError = 103; 229 pub const G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER: GRegexError = 104; 230 pub const G_REGEX_ERROR_QUANTIFIER_TOO_BIG: GRegexError = 105; 231 pub const G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS: GRegexError = 106; 232 pub const G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS: GRegexError = 107; 233 pub const G_REGEX_ERROR_RANGE_OUT_OF_ORDER: GRegexError = 108; 234 pub const G_REGEX_ERROR_NOTHING_TO_REPEAT: GRegexError = 109; 235 pub const G_REGEX_ERROR_UNRECOGNIZED_CHARACTER: GRegexError = 112; 236 pub const G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS: GRegexError = 113; 237 pub const G_REGEX_ERROR_UNMATCHED_PARENTHESIS: GRegexError = 114; 238 pub const G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE: GRegexError = 115; 239 pub const G_REGEX_ERROR_UNTERMINATED_COMMENT: GRegexError = 118; 240 pub const G_REGEX_ERROR_EXPRESSION_TOO_LARGE: GRegexError = 120; 241 pub const G_REGEX_ERROR_MEMORY_ERROR: GRegexError = 121; 242 pub const G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND: GRegexError = 125; 243 pub const G_REGEX_ERROR_MALFORMED_CONDITION: GRegexError = 126; 244 pub const G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES: GRegexError = 127; 245 pub const G_REGEX_ERROR_ASSERTION_EXPECTED: GRegexError = 128; 246 pub const G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME: GRegexError = 130; 247 pub const G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: GRegexError = 131; 248 pub const G_REGEX_ERROR_HEX_CODE_TOO_LARGE: GRegexError = 134; 249 pub const G_REGEX_ERROR_INVALID_CONDITION: GRegexError = 135; 250 pub const G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND: GRegexError = 136; 251 pub const G_REGEX_ERROR_INFINITE_LOOP: GRegexError = 140; 252 pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR: GRegexError = 142; 253 pub const G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME: GRegexError = 143; 254 pub const G_REGEX_ERROR_MALFORMED_PROPERTY: GRegexError = 146; 255 pub const G_REGEX_ERROR_UNKNOWN_PROPERTY: GRegexError = 147; 256 pub const G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG: GRegexError = 148; 257 pub const G_REGEX_ERROR_TOO_MANY_SUBPATTERNS: GRegexError = 149; 258 pub const G_REGEX_ERROR_INVALID_OCTAL_VALUE: GRegexError = 151; 259 pub const G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: GRegexError = 154; 260 pub const G_REGEX_ERROR_DEFINE_REPETION: GRegexError = 155; 261 pub const G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: GRegexError = 156; 262 pub const G_REGEX_ERROR_MISSING_BACK_REFERENCE: GRegexError = 157; 263 pub const G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE: GRegexError = 158; 264 pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: GRegexError = 159; 265 pub const G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB: GRegexError = 160; 266 pub const G_REGEX_ERROR_NUMBER_TOO_BIG: GRegexError = 161; 267 pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME: GRegexError = 162; 268 pub const G_REGEX_ERROR_MISSING_DIGIT: GRegexError = 163; 269 pub const G_REGEX_ERROR_INVALID_DATA_CHARACTER: GRegexError = 164; 270 pub const G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME: GRegexError = 165; 271 pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: GRegexError = 166; 272 pub const G_REGEX_ERROR_INVALID_CONTROL_CHAR: GRegexError = 168; 273 pub const G_REGEX_ERROR_MISSING_NAME: GRegexError = 169; 274 pub const G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS: GRegexError = 171; 275 pub const G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES: GRegexError = 172; 276 pub const G_REGEX_ERROR_NAME_TOO_LONG: GRegexError = 175; 277 pub const G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE: GRegexError = 176; 278 279 pub type GSeekType = c_int; 280 pub const G_SEEK_CUR: GSeekType = 0; 281 pub const G_SEEK_SET: GSeekType = 1; 282 pub const G_SEEK_END: GSeekType = 2; 283 284 pub type GShellError = c_int; 285 pub const G_SHELL_ERROR_BAD_QUOTING: GShellError = 0; 286 pub const G_SHELL_ERROR_EMPTY_STRING: GShellError = 1; 287 pub const G_SHELL_ERROR_FAILED: GShellError = 2; 288 289 pub type GSliceConfig = c_int; 290 pub const G_SLICE_CONFIG_ALWAYS_MALLOC: GSliceConfig = 1; 291 pub const G_SLICE_CONFIG_BYPASS_MAGAZINES: GSliceConfig = 2; 292 pub const G_SLICE_CONFIG_WORKING_SET_MSECS: GSliceConfig = 3; 293 pub const G_SLICE_CONFIG_COLOR_INCREMENT: GSliceConfig = 4; 294 pub const G_SLICE_CONFIG_CHUNK_SIZES: GSliceConfig = 5; 295 pub const G_SLICE_CONFIG_CONTENTION_COUNTER: GSliceConfig = 6; 296 297 pub type GSpawnError = c_int; 298 pub const G_SPAWN_ERROR_FORK: GSpawnError = 0; 299 pub const G_SPAWN_ERROR_READ: GSpawnError = 1; 300 pub const G_SPAWN_ERROR_CHDIR: GSpawnError = 2; 301 pub const G_SPAWN_ERROR_ACCES: GSpawnError = 3; 302 pub const G_SPAWN_ERROR_PERM: GSpawnError = 4; 303 pub const G_SPAWN_ERROR_TOO_BIG: GSpawnError = 5; 304 pub const G_SPAWN_ERROR_2BIG: GSpawnError = 5; 305 pub const G_SPAWN_ERROR_NOEXEC: GSpawnError = 6; 306 pub const G_SPAWN_ERROR_NAMETOOLONG: GSpawnError = 7; 307 pub const G_SPAWN_ERROR_NOENT: GSpawnError = 8; 308 pub const G_SPAWN_ERROR_NOMEM: GSpawnError = 9; 309 pub const G_SPAWN_ERROR_NOTDIR: GSpawnError = 10; 310 pub const G_SPAWN_ERROR_LOOP: GSpawnError = 11; 311 pub const G_SPAWN_ERROR_TXTBUSY: GSpawnError = 12; 312 pub const G_SPAWN_ERROR_IO: GSpawnError = 13; 313 pub const G_SPAWN_ERROR_NFILE: GSpawnError = 14; 314 pub const G_SPAWN_ERROR_MFILE: GSpawnError = 15; 315 pub const G_SPAWN_ERROR_INVAL: GSpawnError = 16; 316 pub const G_SPAWN_ERROR_ISDIR: GSpawnError = 17; 317 pub const G_SPAWN_ERROR_LIBBAD: GSpawnError = 18; 318 pub const G_SPAWN_ERROR_FAILED: GSpawnError = 19; 319 320 pub type GTestFileType = c_int; 321 pub const G_TEST_DIST: GTestFileType = 0; 322 pub const G_TEST_BUILT: GTestFileType = 1; 323 324 pub type GTestLogType = c_int; 325 pub const G_TEST_LOG_NONE: GTestLogType = 0; 326 pub const G_TEST_LOG_ERROR: GTestLogType = 1; 327 pub const G_TEST_LOG_START_BINARY: GTestLogType = 2; 328 pub const G_TEST_LOG_LIST_CASE: GTestLogType = 3; 329 pub const G_TEST_LOG_SKIP_CASE: GTestLogType = 4; 330 pub const G_TEST_LOG_START_CASE: GTestLogType = 5; 331 pub const G_TEST_LOG_STOP_CASE: GTestLogType = 6; 332 pub const G_TEST_LOG_MIN_RESULT: GTestLogType = 7; 333 pub const G_TEST_LOG_MAX_RESULT: GTestLogType = 8; 334 pub const G_TEST_LOG_MESSAGE: GTestLogType = 9; 335 pub const G_TEST_LOG_START_SUITE: GTestLogType = 10; 336 pub const G_TEST_LOG_STOP_SUITE: GTestLogType = 11; 337 338 pub type GTestResult = c_int; 339 pub const G_TEST_RUN_SUCCESS: GTestResult = 0; 340 pub const G_TEST_RUN_SKIPPED: GTestResult = 1; 341 pub const G_TEST_RUN_FAILURE: GTestResult = 2; 342 pub const G_TEST_RUN_INCOMPLETE: GTestResult = 3; 343 344 pub type GThreadError = c_int; 345 pub const G_THREAD_ERROR_AGAIN: GThreadError = 0; 346 347 pub type GTimeType = c_int; 348 pub const G_TIME_TYPE_STANDARD: GTimeType = 0; 349 pub const G_TIME_TYPE_DAYLIGHT: GTimeType = 1; 350 pub const G_TIME_TYPE_UNIVERSAL: GTimeType = 2; 351 352 pub type GTokenType = c_int; 353 pub const G_TOKEN_EOF: GTokenType = 0; 354 pub const G_TOKEN_LEFT_PAREN: GTokenType = 40; 355 pub const G_TOKEN_RIGHT_PAREN: GTokenType = 41; 356 pub const G_TOKEN_LEFT_CURLY: GTokenType = 123; 357 pub const G_TOKEN_RIGHT_CURLY: GTokenType = 125; 358 pub const G_TOKEN_LEFT_BRACE: GTokenType = 91; 359 pub const G_TOKEN_RIGHT_BRACE: GTokenType = 93; 360 pub const G_TOKEN_EQUAL_SIGN: GTokenType = 61; 361 pub const G_TOKEN_COMMA: GTokenType = 44; 362 pub const G_TOKEN_NONE: GTokenType = 256; 363 pub const G_TOKEN_ERROR: GTokenType = 257; 364 pub const G_TOKEN_CHAR: GTokenType = 258; 365 pub const G_TOKEN_BINARY: GTokenType = 259; 366 pub const G_TOKEN_OCTAL: GTokenType = 260; 367 pub const G_TOKEN_INT: GTokenType = 261; 368 pub const G_TOKEN_HEX: GTokenType = 262; 369 pub const G_TOKEN_FLOAT: GTokenType = 263; 370 pub const G_TOKEN_STRING: GTokenType = 264; 371 pub const G_TOKEN_SYMBOL: GTokenType = 265; 372 pub const G_TOKEN_IDENTIFIER: GTokenType = 266; 373 pub const G_TOKEN_IDENTIFIER_NULL: GTokenType = 267; 374 pub const G_TOKEN_COMMENT_SINGLE: GTokenType = 268; 375 pub const G_TOKEN_COMMENT_MULTI: GTokenType = 269; 376 377 pub type GTraverseType = c_int; 378 pub const G_IN_ORDER: GTraverseType = 0; 379 pub const G_PRE_ORDER: GTraverseType = 1; 380 pub const G_POST_ORDER: GTraverseType = 2; 381 pub const G_LEVEL_ORDER: GTraverseType = 3; 382 383 pub type GUnicodeBreakType = c_int; 384 pub const G_UNICODE_BREAK_MANDATORY: GUnicodeBreakType = 0; 385 pub const G_UNICODE_BREAK_CARRIAGE_RETURN: GUnicodeBreakType = 1; 386 pub const G_UNICODE_BREAK_LINE_FEED: GUnicodeBreakType = 2; 387 pub const G_UNICODE_BREAK_COMBINING_MARK: GUnicodeBreakType = 3; 388 pub const G_UNICODE_BREAK_SURROGATE: GUnicodeBreakType = 4; 389 pub const G_UNICODE_BREAK_ZERO_WIDTH_SPACE: GUnicodeBreakType = 5; 390 pub const G_UNICODE_BREAK_INSEPARABLE: GUnicodeBreakType = 6; 391 pub const G_UNICODE_BREAK_NON_BREAKING_GLUE: GUnicodeBreakType = 7; 392 pub const G_UNICODE_BREAK_CONTINGENT: GUnicodeBreakType = 8; 393 pub const G_UNICODE_BREAK_SPACE: GUnicodeBreakType = 9; 394 pub const G_UNICODE_BREAK_AFTER: GUnicodeBreakType = 10; 395 pub const G_UNICODE_BREAK_BEFORE: GUnicodeBreakType = 11; 396 pub const G_UNICODE_BREAK_BEFORE_AND_AFTER: GUnicodeBreakType = 12; 397 pub const G_UNICODE_BREAK_HYPHEN: GUnicodeBreakType = 13; 398 pub const G_UNICODE_BREAK_NON_STARTER: GUnicodeBreakType = 14; 399 pub const G_UNICODE_BREAK_OPEN_PUNCTUATION: GUnicodeBreakType = 15; 400 pub const G_UNICODE_BREAK_CLOSE_PUNCTUATION: GUnicodeBreakType = 16; 401 pub const G_UNICODE_BREAK_QUOTATION: GUnicodeBreakType = 17; 402 pub const G_UNICODE_BREAK_EXCLAMATION: GUnicodeBreakType = 18; 403 pub const G_UNICODE_BREAK_IDEOGRAPHIC: GUnicodeBreakType = 19; 404 pub const G_UNICODE_BREAK_NUMERIC: GUnicodeBreakType = 20; 405 pub const G_UNICODE_BREAK_INFIX_SEPARATOR: GUnicodeBreakType = 21; 406 pub const G_UNICODE_BREAK_SYMBOL: GUnicodeBreakType = 22; 407 pub const G_UNICODE_BREAK_ALPHABETIC: GUnicodeBreakType = 23; 408 pub const G_UNICODE_BREAK_PREFIX: GUnicodeBreakType = 24; 409 pub const G_UNICODE_BREAK_POSTFIX: GUnicodeBreakType = 25; 410 pub const G_UNICODE_BREAK_COMPLEX_CONTEXT: GUnicodeBreakType = 26; 411 pub const G_UNICODE_BREAK_AMBIGUOUS: GUnicodeBreakType = 27; 412 pub const G_UNICODE_BREAK_UNKNOWN: GUnicodeBreakType = 28; 413 pub const G_UNICODE_BREAK_NEXT_LINE: GUnicodeBreakType = 29; 414 pub const G_UNICODE_BREAK_WORD_JOINER: GUnicodeBreakType = 30; 415 pub const G_UNICODE_BREAK_HANGUL_L_JAMO: GUnicodeBreakType = 31; 416 pub const G_UNICODE_BREAK_HANGUL_V_JAMO: GUnicodeBreakType = 32; 417 pub const G_UNICODE_BREAK_HANGUL_T_JAMO: GUnicodeBreakType = 33; 418 pub const G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: GUnicodeBreakType = 34; 419 pub const G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: GUnicodeBreakType = 35; 420 pub const G_UNICODE_BREAK_CLOSE_PARANTHESIS: GUnicodeBreakType = 36; 421 pub const G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: GUnicodeBreakType = 37; 422 pub const G_UNICODE_BREAK_HEBREW_LETTER: GUnicodeBreakType = 38; 423 pub const G_UNICODE_BREAK_REGIONAL_INDICATOR: GUnicodeBreakType = 39; 424 pub const G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40; 425 pub const G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41; 426 pub const G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42; 427 428 pub type GUnicodeScript = c_int; 429 pub const G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1; 430 pub const G_UNICODE_SCRIPT_COMMON: GUnicodeScript = 0; 431 pub const G_UNICODE_SCRIPT_INHERITED: GUnicodeScript = 1; 432 pub const G_UNICODE_SCRIPT_ARABIC: GUnicodeScript = 2; 433 pub const G_UNICODE_SCRIPT_ARMENIAN: GUnicodeScript = 3; 434 pub const G_UNICODE_SCRIPT_BENGALI: GUnicodeScript = 4; 435 pub const G_UNICODE_SCRIPT_BOPOMOFO: GUnicodeScript = 5; 436 pub const G_UNICODE_SCRIPT_CHEROKEE: GUnicodeScript = 6; 437 pub const G_UNICODE_SCRIPT_COPTIC: GUnicodeScript = 7; 438 pub const G_UNICODE_SCRIPT_CYRILLIC: GUnicodeScript = 8; 439 pub const G_UNICODE_SCRIPT_DESERET: GUnicodeScript = 9; 440 pub const G_UNICODE_SCRIPT_DEVANAGARI: GUnicodeScript = 10; 441 pub const G_UNICODE_SCRIPT_ETHIOPIC: GUnicodeScript = 11; 442 pub const G_UNICODE_SCRIPT_GEORGIAN: GUnicodeScript = 12; 443 pub const G_UNICODE_SCRIPT_GOTHIC: GUnicodeScript = 13; 444 pub const G_UNICODE_SCRIPT_GREEK: GUnicodeScript = 14; 445 pub const G_UNICODE_SCRIPT_GUJARATI: GUnicodeScript = 15; 446 pub const G_UNICODE_SCRIPT_GURMUKHI: GUnicodeScript = 16; 447 pub const G_UNICODE_SCRIPT_HAN: GUnicodeScript = 17; 448 pub const G_UNICODE_SCRIPT_HANGUL: GUnicodeScript = 18; 449 pub const G_UNICODE_SCRIPT_HEBREW: GUnicodeScript = 19; 450 pub const G_UNICODE_SCRIPT_HIRAGANA: GUnicodeScript = 20; 451 pub const G_UNICODE_SCRIPT_KANNADA: GUnicodeScript = 21; 452 pub const G_UNICODE_SCRIPT_KATAKANA: GUnicodeScript = 22; 453 pub const G_UNICODE_SCRIPT_KHMER: GUnicodeScript = 23; 454 pub const G_UNICODE_SCRIPT_LAO: GUnicodeScript = 24; 455 pub const G_UNICODE_SCRIPT_LATIN: GUnicodeScript = 25; 456 pub const G_UNICODE_SCRIPT_MALAYALAM: GUnicodeScript = 26; 457 pub const G_UNICODE_SCRIPT_MONGOLIAN: GUnicodeScript = 27; 458 pub const G_UNICODE_SCRIPT_MYANMAR: GUnicodeScript = 28; 459 pub const G_UNICODE_SCRIPT_OGHAM: GUnicodeScript = 29; 460 pub const G_UNICODE_SCRIPT_OLD_ITALIC: GUnicodeScript = 30; 461 pub const G_UNICODE_SCRIPT_ORIYA: GUnicodeScript = 31; 462 pub const G_UNICODE_SCRIPT_RUNIC: GUnicodeScript = 32; 463 pub const G_UNICODE_SCRIPT_SINHALA: GUnicodeScript = 33; 464 pub const G_UNICODE_SCRIPT_SYRIAC: GUnicodeScript = 34; 465 pub const G_UNICODE_SCRIPT_TAMIL: GUnicodeScript = 35; 466 pub const G_UNICODE_SCRIPT_TELUGU: GUnicodeScript = 36; 467 pub const G_UNICODE_SCRIPT_THAANA: GUnicodeScript = 37; 468 pub const G_UNICODE_SCRIPT_THAI: GUnicodeScript = 38; 469 pub const G_UNICODE_SCRIPT_TIBETAN: GUnicodeScript = 39; 470 pub const G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: GUnicodeScript = 40; 471 pub const G_UNICODE_SCRIPT_YI: GUnicodeScript = 41; 472 pub const G_UNICODE_SCRIPT_TAGALOG: GUnicodeScript = 42; 473 pub const G_UNICODE_SCRIPT_HANUNOO: GUnicodeScript = 43; 474 pub const G_UNICODE_SCRIPT_BUHID: GUnicodeScript = 44; 475 pub const G_UNICODE_SCRIPT_TAGBANWA: GUnicodeScript = 45; 476 pub const G_UNICODE_SCRIPT_BRAILLE: GUnicodeScript = 46; 477 pub const G_UNICODE_SCRIPT_CYPRIOT: GUnicodeScript = 47; 478 pub const G_UNICODE_SCRIPT_LIMBU: GUnicodeScript = 48; 479 pub const G_UNICODE_SCRIPT_OSMANYA: GUnicodeScript = 49; 480 pub const G_UNICODE_SCRIPT_SHAVIAN: GUnicodeScript = 50; 481 pub const G_UNICODE_SCRIPT_LINEAR_B: GUnicodeScript = 51; 482 pub const G_UNICODE_SCRIPT_TAI_LE: GUnicodeScript = 52; 483 pub const G_UNICODE_SCRIPT_UGARITIC: GUnicodeScript = 53; 484 pub const G_UNICODE_SCRIPT_NEW_TAI_LUE: GUnicodeScript = 54; 485 pub const G_UNICODE_SCRIPT_BUGINESE: GUnicodeScript = 55; 486 pub const G_UNICODE_SCRIPT_GLAGOLITIC: GUnicodeScript = 56; 487 pub const G_UNICODE_SCRIPT_TIFINAGH: GUnicodeScript = 57; 488 pub const G_UNICODE_SCRIPT_SYLOTI_NAGRI: GUnicodeScript = 58; 489 pub const G_UNICODE_SCRIPT_OLD_PERSIAN: GUnicodeScript = 59; 490 pub const G_UNICODE_SCRIPT_KHAROSHTHI: GUnicodeScript = 60; 491 pub const G_UNICODE_SCRIPT_UNKNOWN: GUnicodeScript = 61; 492 pub const G_UNICODE_SCRIPT_BALINESE: GUnicodeScript = 62; 493 pub const G_UNICODE_SCRIPT_CUNEIFORM: GUnicodeScript = 63; 494 pub const G_UNICODE_SCRIPT_PHOENICIAN: GUnicodeScript = 64; 495 pub const G_UNICODE_SCRIPT_PHAGS_PA: GUnicodeScript = 65; 496 pub const G_UNICODE_SCRIPT_NKO: GUnicodeScript = 66; 497 pub const G_UNICODE_SCRIPT_KAYAH_LI: GUnicodeScript = 67; 498 pub const G_UNICODE_SCRIPT_LEPCHA: GUnicodeScript = 68; 499 pub const G_UNICODE_SCRIPT_REJANG: GUnicodeScript = 69; 500 pub const G_UNICODE_SCRIPT_SUNDANESE: GUnicodeScript = 70; 501 pub const G_UNICODE_SCRIPT_SAURASHTRA: GUnicodeScript = 71; 502 pub const G_UNICODE_SCRIPT_CHAM: GUnicodeScript = 72; 503 pub const G_UNICODE_SCRIPT_OL_CHIKI: GUnicodeScript = 73; 504 pub const G_UNICODE_SCRIPT_VAI: GUnicodeScript = 74; 505 pub const G_UNICODE_SCRIPT_CARIAN: GUnicodeScript = 75; 506 pub const G_UNICODE_SCRIPT_LYCIAN: GUnicodeScript = 76; 507 pub const G_UNICODE_SCRIPT_LYDIAN: GUnicodeScript = 77; 508 pub const G_UNICODE_SCRIPT_AVESTAN: GUnicodeScript = 78; 509 pub const G_UNICODE_SCRIPT_BAMUM: GUnicodeScript = 79; 510 pub const G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: GUnicodeScript = 80; 511 pub const G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: GUnicodeScript = 81; 512 pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: GUnicodeScript = 82; 513 pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: GUnicodeScript = 83; 514 pub const G_UNICODE_SCRIPT_JAVANESE: GUnicodeScript = 84; 515 pub const G_UNICODE_SCRIPT_KAITHI: GUnicodeScript = 85; 516 pub const G_UNICODE_SCRIPT_LISU: GUnicodeScript = 86; 517 pub const G_UNICODE_SCRIPT_MEETEI_MAYEK: GUnicodeScript = 87; 518 pub const G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: GUnicodeScript = 88; 519 pub const G_UNICODE_SCRIPT_OLD_TURKIC: GUnicodeScript = 89; 520 pub const G_UNICODE_SCRIPT_SAMARITAN: GUnicodeScript = 90; 521 pub const G_UNICODE_SCRIPT_TAI_THAM: GUnicodeScript = 91; 522 pub const G_UNICODE_SCRIPT_TAI_VIET: GUnicodeScript = 92; 523 pub const G_UNICODE_SCRIPT_BATAK: GUnicodeScript = 93; 524 pub const G_UNICODE_SCRIPT_BRAHMI: GUnicodeScript = 94; 525 pub const G_UNICODE_SCRIPT_MANDAIC: GUnicodeScript = 95; 526 pub const G_UNICODE_SCRIPT_CHAKMA: GUnicodeScript = 96; 527 pub const G_UNICODE_SCRIPT_MEROITIC_CURSIVE: GUnicodeScript = 97; 528 pub const G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: GUnicodeScript = 98; 529 pub const G_UNICODE_SCRIPT_MIAO: GUnicodeScript = 99; 530 pub const G_UNICODE_SCRIPT_SHARADA: GUnicodeScript = 100; 531 pub const G_UNICODE_SCRIPT_SORA_SOMPENG: GUnicodeScript = 101; 532 pub const G_UNICODE_SCRIPT_TAKRI: GUnicodeScript = 102; 533 pub const G_UNICODE_SCRIPT_BASSA_VAH: GUnicodeScript = 103; 534 pub const G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: GUnicodeScript = 104; 535 pub const G_UNICODE_SCRIPT_DUPLOYAN: GUnicodeScript = 105; 536 pub const G_UNICODE_SCRIPT_ELBASAN: GUnicodeScript = 106; 537 pub const G_UNICODE_SCRIPT_GRANTHA: GUnicodeScript = 107; 538 pub const G_UNICODE_SCRIPT_KHOJKI: GUnicodeScript = 108; 539 pub const G_UNICODE_SCRIPT_KHUDAWADI: GUnicodeScript = 109; 540 pub const G_UNICODE_SCRIPT_LINEAR_A: GUnicodeScript = 110; 541 pub const G_UNICODE_SCRIPT_MAHAJANI: GUnicodeScript = 111; 542 pub const G_UNICODE_SCRIPT_MANICHAEAN: GUnicodeScript = 112; 543 pub const G_UNICODE_SCRIPT_MENDE_KIKAKUI: GUnicodeScript = 113; 544 pub const G_UNICODE_SCRIPT_MODI: GUnicodeScript = 114; 545 pub const G_UNICODE_SCRIPT_MRO: GUnicodeScript = 115; 546 pub const G_UNICODE_SCRIPT_NABATAEAN: GUnicodeScript = 116; 547 pub const G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: GUnicodeScript = 117; 548 pub const G_UNICODE_SCRIPT_OLD_PERMIC: GUnicodeScript = 118; 549 pub const G_UNICODE_SCRIPT_PAHAWH_HMONG: GUnicodeScript = 119; 550 pub const G_UNICODE_SCRIPT_PALMYRENE: GUnicodeScript = 120; 551 pub const G_UNICODE_SCRIPT_PAU_CIN_HAU: GUnicodeScript = 121; 552 pub const G_UNICODE_SCRIPT_PSALTER_PAHLAVI: GUnicodeScript = 122; 553 pub const G_UNICODE_SCRIPT_SIDDHAM: GUnicodeScript = 123; 554 pub const G_UNICODE_SCRIPT_TIRHUTA: GUnicodeScript = 124; 555 pub const G_UNICODE_SCRIPT_WARANG_CITI: GUnicodeScript = 125; 556 pub const G_UNICODE_SCRIPT_AHOM: GUnicodeScript = 126; 557 pub const G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: GUnicodeScript = 127; 558 pub const G_UNICODE_SCRIPT_HATRAN: GUnicodeScript = 128; 559 pub const G_UNICODE_SCRIPT_MULTANI: GUnicodeScript = 129; 560 pub const G_UNICODE_SCRIPT_OLD_HUNGARIAN: GUnicodeScript = 130; 561 pub const G_UNICODE_SCRIPT_SIGNWRITING: GUnicodeScript = 131; 562 pub const G_UNICODE_SCRIPT_ADLAM: GUnicodeScript = 132; 563 pub const G_UNICODE_SCRIPT_BHAIKSUKI: GUnicodeScript = 133; 564 pub const G_UNICODE_SCRIPT_MARCHEN: GUnicodeScript = 134; 565 pub const G_UNICODE_SCRIPT_NEWA: GUnicodeScript = 135; 566 pub const G_UNICODE_SCRIPT_OSAGE: GUnicodeScript = 136; 567 pub const G_UNICODE_SCRIPT_TANGUT: GUnicodeScript = 137; 568 pub const G_UNICODE_SCRIPT_MASARAM_GONDI: GUnicodeScript = 138; 569 pub const G_UNICODE_SCRIPT_NUSHU: GUnicodeScript = 139; 570 pub const G_UNICODE_SCRIPT_SOYOMBO: GUnicodeScript = 140; 571 pub const G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: GUnicodeScript = 141; 572 pub const G_UNICODE_SCRIPT_DOGRA: GUnicodeScript = 142; 573 pub const G_UNICODE_SCRIPT_GUNJALA_GONDI: GUnicodeScript = 143; 574 pub const G_UNICODE_SCRIPT_HANIFI_ROHINGYA: GUnicodeScript = 144; 575 pub const G_UNICODE_SCRIPT_MAKASAR: GUnicodeScript = 145; 576 pub const G_UNICODE_SCRIPT_MEDEFAIDRIN: GUnicodeScript = 146; 577 pub const G_UNICODE_SCRIPT_OLD_SOGDIAN: GUnicodeScript = 147; 578 pub const G_UNICODE_SCRIPT_SOGDIAN: GUnicodeScript = 148; 579 pub const G_UNICODE_SCRIPT_ELYMAIC: GUnicodeScript = 149; 580 pub const G_UNICODE_SCRIPT_NANDINAGARI: GUnicodeScript = 150; 581 pub const G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: GUnicodeScript = 151; 582 pub const G_UNICODE_SCRIPT_WANCHO: GUnicodeScript = 152; 583 pub const G_UNICODE_SCRIPT_CHORASMIAN: GUnicodeScript = 153; 584 pub const G_UNICODE_SCRIPT_DIVES_AKURU: GUnicodeScript = 154; 585 pub const G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT: GUnicodeScript = 155; 586 pub const G_UNICODE_SCRIPT_YEZIDI: GUnicodeScript = 156; 587 588 pub type GUnicodeType = c_int; 589 pub const G_UNICODE_CONTROL: GUnicodeType = 0; 590 pub const G_UNICODE_FORMAT: GUnicodeType = 1; 591 pub const G_UNICODE_UNASSIGNED: GUnicodeType = 2; 592 pub const G_UNICODE_PRIVATE_USE: GUnicodeType = 3; 593 pub const G_UNICODE_SURROGATE: GUnicodeType = 4; 594 pub const G_UNICODE_LOWERCASE_LETTER: GUnicodeType = 5; 595 pub const G_UNICODE_MODIFIER_LETTER: GUnicodeType = 6; 596 pub const G_UNICODE_OTHER_LETTER: GUnicodeType = 7; 597 pub const G_UNICODE_TITLECASE_LETTER: GUnicodeType = 8; 598 pub const G_UNICODE_UPPERCASE_LETTER: GUnicodeType = 9; 599 pub const G_UNICODE_SPACING_MARK: GUnicodeType = 10; 600 pub const G_UNICODE_ENCLOSING_MARK: GUnicodeType = 11; 601 pub const G_UNICODE_NON_SPACING_MARK: GUnicodeType = 12; 602 pub const G_UNICODE_DECIMAL_NUMBER: GUnicodeType = 13; 603 pub const G_UNICODE_LETTER_NUMBER: GUnicodeType = 14; 604 pub const G_UNICODE_OTHER_NUMBER: GUnicodeType = 15; 605 pub const G_UNICODE_CONNECT_PUNCTUATION: GUnicodeType = 16; 606 pub const G_UNICODE_DASH_PUNCTUATION: GUnicodeType = 17; 607 pub const G_UNICODE_CLOSE_PUNCTUATION: GUnicodeType = 18; 608 pub const G_UNICODE_FINAL_PUNCTUATION: GUnicodeType = 19; 609 pub const G_UNICODE_INITIAL_PUNCTUATION: GUnicodeType = 20; 610 pub const G_UNICODE_OTHER_PUNCTUATION: GUnicodeType = 21; 611 pub const G_UNICODE_OPEN_PUNCTUATION: GUnicodeType = 22; 612 pub const G_UNICODE_CURRENCY_SYMBOL: GUnicodeType = 23; 613 pub const G_UNICODE_MODIFIER_SYMBOL: GUnicodeType = 24; 614 pub const G_UNICODE_MATH_SYMBOL: GUnicodeType = 25; 615 pub const G_UNICODE_OTHER_SYMBOL: GUnicodeType = 26; 616 pub const G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27; 617 pub const G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28; 618 pub const G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29; 619 620 pub type GUriError = c_int; 621 pub const G_URI_ERROR_FAILED: GUriError = 0; 622 pub const G_URI_ERROR_BAD_SCHEME: GUriError = 1; 623 pub const G_URI_ERROR_BAD_USER: GUriError = 2; 624 pub const G_URI_ERROR_BAD_PASSWORD: GUriError = 3; 625 pub const G_URI_ERROR_BAD_AUTH_PARAMS: GUriError = 4; 626 pub const G_URI_ERROR_BAD_HOST: GUriError = 5; 627 pub const G_URI_ERROR_BAD_PORT: GUriError = 6; 628 pub const G_URI_ERROR_BAD_PATH: GUriError = 7; 629 pub const G_URI_ERROR_BAD_QUERY: GUriError = 8; 630 pub const G_URI_ERROR_BAD_FRAGMENT: GUriError = 9; 631 632 pub type GUserDirectory = c_int; 633 pub const G_USER_DIRECTORY_DESKTOP: GUserDirectory = 0; 634 pub const G_USER_DIRECTORY_DOCUMENTS: GUserDirectory = 1; 635 pub const G_USER_DIRECTORY_DOWNLOAD: GUserDirectory = 2; 636 pub const G_USER_DIRECTORY_MUSIC: GUserDirectory = 3; 637 pub const G_USER_DIRECTORY_PICTURES: GUserDirectory = 4; 638 pub const G_USER_DIRECTORY_PUBLIC_SHARE: GUserDirectory = 5; 639 pub const G_USER_DIRECTORY_TEMPLATES: GUserDirectory = 6; 640 pub const G_USER_DIRECTORY_VIDEOS: GUserDirectory = 7; 641 pub const G_USER_N_DIRECTORIES: GUserDirectory = 8; 642 643 pub type GVariantClass = c_int; 644 pub const G_VARIANT_CLASS_BOOLEAN: GVariantClass = 98; 645 pub const G_VARIANT_CLASS_BYTE: GVariantClass = 121; 646 pub const G_VARIANT_CLASS_INT16: GVariantClass = 110; 647 pub const G_VARIANT_CLASS_UINT16: GVariantClass = 113; 648 pub const G_VARIANT_CLASS_INT32: GVariantClass = 105; 649 pub const G_VARIANT_CLASS_UINT32: GVariantClass = 117; 650 pub const G_VARIANT_CLASS_INT64: GVariantClass = 120; 651 pub const G_VARIANT_CLASS_UINT64: GVariantClass = 116; 652 pub const G_VARIANT_CLASS_HANDLE: GVariantClass = 104; 653 pub const G_VARIANT_CLASS_DOUBLE: GVariantClass = 100; 654 pub const G_VARIANT_CLASS_STRING: GVariantClass = 115; 655 pub const G_VARIANT_CLASS_OBJECT_PATH: GVariantClass = 111; 656 pub const G_VARIANT_CLASS_SIGNATURE: GVariantClass = 103; 657 pub const G_VARIANT_CLASS_VARIANT: GVariantClass = 118; 658 pub const G_VARIANT_CLASS_MAYBE: GVariantClass = 109; 659 pub const G_VARIANT_CLASS_ARRAY: GVariantClass = 97; 660 pub const G_VARIANT_CLASS_TUPLE: GVariantClass = 40; 661 pub const G_VARIANT_CLASS_DICT_ENTRY: GVariantClass = 123; 662 663 pub type GVariantParseError = c_int; 664 pub const G_VARIANT_PARSE_ERROR_FAILED: GVariantParseError = 0; 665 pub const G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED: GVariantParseError = 1; 666 pub const G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE: GVariantParseError = 2; 667 pub const G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED: GVariantParseError = 3; 668 pub const G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END: GVariantParseError = 4; 669 pub const G_VARIANT_PARSE_ERROR_INVALID_CHARACTER: GVariantParseError = 5; 670 pub const G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING: GVariantParseError = 6; 671 pub const G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH: GVariantParseError = 7; 672 pub const G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE: GVariantParseError = 8; 673 pub const G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING: GVariantParseError = 9; 674 pub const G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE: GVariantParseError = 10; 675 pub const G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE: GVariantParseError = 11; 676 pub const G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG: GVariantParseError = 12; 677 pub const G_VARIANT_PARSE_ERROR_TYPE_ERROR: GVariantParseError = 13; 678 pub const G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN: GVariantParseError = 14; 679 pub const G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD: GVariantParseError = 15; 680 pub const G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT: GVariantParseError = 16; 681 pub const G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17; 682 pub const G_VARIANT_PARSE_ERROR_RECURSION: GVariantParseError = 18; 683 684 // Constants 685 pub const G_ASCII_DTOSTR_BUF_SIZE: c_int = 39; 686 pub const G_BIG_ENDIAN: c_int = 4321; 687 pub const G_CSET_A_2_Z: *const c_char = 688 b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0" as *const u8 as *const c_char; 689 pub const G_CSET_DIGITS: *const c_char = b"0123456789\0" as *const u8 as *const c_char; 690 pub const G_CSET_a_2_z: *const c_char = 691 b"abcdefghijklmnopqrstuvwxyz\0" as *const u8 as *const c_char; 692 pub const G_DATALIST_FLAGS_MASK: c_int = 3; 693 pub const G_DATE_BAD_DAY: c_int = 0; 694 pub const G_DATE_BAD_JULIAN: c_int = 0; 695 pub const G_DATE_BAD_YEAR: c_int = 0; 696 pub const G_E: c_double = 2.718282; 697 pub const G_HOOK_FLAG_USER_SHIFT: c_int = 4; 698 pub const G_IEEE754_DOUBLE_BIAS: c_int = 1023; 699 pub const G_IEEE754_FLOAT_BIAS: c_int = 127; 700 pub const G_KEY_FILE_DESKTOP_GROUP: *const c_char = 701 b"Desktop Entry\0" as *const u8 as *const c_char; 702 pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: *const c_char = 703 b"Actions\0" as *const u8 as *const c_char; 704 pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: *const c_char = 705 b"Categories\0" as *const u8 as *const c_char; 706 pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: *const c_char = 707 b"Comment\0" as *const u8 as *const c_char; 708 pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: *const c_char = 709 b"DBusActivatable\0" as *const u8 as *const c_char; 710 pub const G_KEY_FILE_DESKTOP_KEY_EXEC: *const c_char = b"Exec\0" as *const u8 as *const c_char; 711 pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: *const c_char = 712 b"GenericName\0" as *const u8 as *const c_char; 713 pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: *const c_char = b"Hidden\0" as *const u8 as *const c_char; 714 pub const G_KEY_FILE_DESKTOP_KEY_ICON: *const c_char = b"Icon\0" as *const u8 as *const c_char; 715 pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: *const c_char = 716 b"MimeType\0" as *const u8 as *const c_char; 717 pub const G_KEY_FILE_DESKTOP_KEY_NAME: *const c_char = b"Name\0" as *const u8 as *const c_char; 718 pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: *const c_char = 719 b"NotShowIn\0" as *const u8 as *const c_char; 720 pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: *const c_char = 721 b"NoDisplay\0" as *const u8 as *const c_char; 722 pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: *const c_char = 723 b"OnlyShowIn\0" as *const u8 as *const c_char; 724 pub const G_KEY_FILE_DESKTOP_KEY_PATH: *const c_char = b"Path\0" as *const u8 as *const c_char; 725 pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: *const c_char = 726 b"StartupNotify\0" as *const u8 as *const c_char; 727 pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: *const c_char = 728 b"StartupWMClass\0" as *const u8 as *const c_char; 729 pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: *const c_char = 730 b"Terminal\0" as *const u8 as *const c_char; 731 pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: *const c_char = 732 b"TryExec\0" as *const u8 as *const c_char; 733 pub const G_KEY_FILE_DESKTOP_KEY_TYPE: *const c_char = b"Type\0" as *const u8 as *const c_char; 734 pub const G_KEY_FILE_DESKTOP_KEY_URL: *const c_char = b"URL\0" as *const u8 as *const c_char; 735 pub const G_KEY_FILE_DESKTOP_KEY_VERSION: *const c_char = 736 b"Version\0" as *const u8 as *const c_char; 737 pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: *const c_char = 738 b"Application\0" as *const u8 as *const c_char; 739 pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: *const c_char = 740 b"Directory\0" as *const u8 as *const c_char; 741 pub const G_KEY_FILE_DESKTOP_TYPE_LINK: *const c_char = b"Link\0" as *const u8 as *const c_char; 742 pub const G_LITTLE_ENDIAN: c_int = 1234; 743 pub const G_LN10: c_double = 2.302585; 744 pub const G_LN2: c_double = 0.693147; 745 pub const G_LOG_2_BASE_10: c_double = 0.301030; 746 pub const G_LOG_DOMAIN: c_char = 0; 747 pub const G_LOG_FATAL_MASK: c_int = 5; 748 pub const G_LOG_LEVEL_USER_SHIFT: c_int = 8; 749 pub const G_OPTION_REMAINING: *const c_char = b"\0" as *const u8 as *const c_char; 750 pub const G_PDP_ENDIAN: c_int = 3412; 751 pub const G_PI: c_double = 3.141593; 752 pub const G_PI_2: c_double = 1.570796; 753 pub const G_PI_4: c_double = 0.785398; 754 pub const G_PRIORITY_DEFAULT: c_int = 0; 755 pub const G_PRIORITY_DEFAULT_IDLE: c_int = 200; 756 pub const G_PRIORITY_HIGH: c_int = -100; 757 pub const G_PRIORITY_HIGH_IDLE: c_int = 100; 758 pub const G_PRIORITY_LOW: c_int = 300; 759 pub const G_SOURCE_CONTINUE: gboolean = GTRUE; 760 pub const G_SOURCE_REMOVE: gboolean = GFALSE; 761 pub const G_SQRT2: c_double = 1.414214; 762 pub const G_STR_DELIMITERS: *const c_char = b"_-|> <.\0" as *const u8 as *const c_char; 763 pub const GLIB_SYSDEF_AF_INET: c_int = 2; 764 pub const GLIB_SYSDEF_AF_INET6: c_int = 10; 765 pub const GLIB_SYSDEF_AF_UNIX: c_int = 1; 766 pub const GLIB_SYSDEF_MSG_DONTROUTE: c_int = 4; 767 pub const GLIB_SYSDEF_MSG_OOB: c_int = 1; 768 pub const GLIB_SYSDEF_MSG_PEEK: c_int = 2; 769 pub const G_TEST_OPTION_ISOLATE_DIRS: *const c_char = 770 b"isolate_dirs\0" as *const u8 as *const c_char; 771 pub const G_TIME_SPAN_DAY: i64 = 86400000000; 772 pub const G_TIME_SPAN_HOUR: i64 = 3600000000; 773 pub const G_TIME_SPAN_MILLISECOND: i64 = 1000; 774 pub const G_TIME_SPAN_MINUTE: i64 = 60000000; 775 pub const G_TIME_SPAN_SECOND: i64 = 1000000; 776 pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: c_int = 18; 777 pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: *const c_char = 778 b":/?#[]@\0" as *const u8 as *const c_char; 779 pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: *const c_char = 780 b"!$&'()*+,;=\0" as *const u8 as *const c_char; 781 pub const G_USEC_PER_SEC: c_int = 1000000; 782 pub const G_WIN32_MSG_HANDLE: c_int = 19981206; 783 784 // Flags 785 pub type GAsciiType = c_uint; 786 pub const G_ASCII_ALNUM: GAsciiType = 1; 787 pub const G_ASCII_ALPHA: GAsciiType = 2; 788 pub const G_ASCII_CNTRL: GAsciiType = 4; 789 pub const G_ASCII_DIGIT: GAsciiType = 8; 790 pub const G_ASCII_GRAPH: GAsciiType = 16; 791 pub const G_ASCII_LOWER: GAsciiType = 32; 792 pub const G_ASCII_PRINT: GAsciiType = 64; 793 pub const G_ASCII_PUNCT: GAsciiType = 128; 794 pub const G_ASCII_SPACE: GAsciiType = 256; 795 pub const G_ASCII_UPPER: GAsciiType = 512; 796 pub const G_ASCII_XDIGIT: GAsciiType = 1024; 797 798 pub type GFileSetContentsFlags = c_uint; 799 pub const G_FILE_SET_CONTENTS_NONE: GFileSetContentsFlags = 0; 800 pub const G_FILE_SET_CONTENTS_CONSISTENT: GFileSetContentsFlags = 1; 801 pub const G_FILE_SET_CONTENTS_DURABLE: GFileSetContentsFlags = 2; 802 pub const G_FILE_SET_CONTENTS_ONLY_EXISTING: GFileSetContentsFlags = 4; 803 804 pub type GFileTest = c_uint; 805 pub const G_FILE_TEST_IS_REGULAR: GFileTest = 1; 806 pub const G_FILE_TEST_IS_SYMLINK: GFileTest = 2; 807 pub const G_FILE_TEST_IS_DIR: GFileTest = 4; 808 pub const G_FILE_TEST_IS_EXECUTABLE: GFileTest = 8; 809 pub const G_FILE_TEST_EXISTS: GFileTest = 16; 810 811 pub type GFormatSizeFlags = c_uint; 812 pub const G_FORMAT_SIZE_DEFAULT: GFormatSizeFlags = 0; 813 pub const G_FORMAT_SIZE_LONG_FORMAT: GFormatSizeFlags = 1; 814 pub const G_FORMAT_SIZE_IEC_UNITS: GFormatSizeFlags = 2; 815 pub const G_FORMAT_SIZE_BITS: GFormatSizeFlags = 4; 816 817 pub type GHookFlagMask = c_uint; 818 pub const G_HOOK_FLAG_ACTIVE: GHookFlagMask = 1; 819 pub const G_HOOK_FLAG_IN_CALL: GHookFlagMask = 2; 820 pub const G_HOOK_FLAG_MASK: GHookFlagMask = 15; 821 822 pub type GIOCondition = c_uint; 823 pub const G_IO_IN: GIOCondition = 1; 824 pub const G_IO_OUT: GIOCondition = 4; 825 pub const G_IO_PRI: GIOCondition = 2; 826 pub const G_IO_ERR: GIOCondition = 8; 827 pub const G_IO_HUP: GIOCondition = 16; 828 pub const G_IO_NVAL: GIOCondition = 32; 829 830 pub type GIOFlags = c_uint; 831 pub const G_IO_FLAG_APPEND: GIOFlags = 1; 832 pub const G_IO_FLAG_NONBLOCK: GIOFlags = 2; 833 pub const G_IO_FLAG_IS_READABLE: GIOFlags = 4; 834 pub const G_IO_FLAG_IS_WRITABLE: GIOFlags = 8; 835 pub const G_IO_FLAG_IS_WRITEABLE: GIOFlags = 8; 836 pub const G_IO_FLAG_IS_SEEKABLE: GIOFlags = 16; 837 pub const G_IO_FLAG_MASK: GIOFlags = 31; 838 pub const G_IO_FLAG_GET_MASK: GIOFlags = 31; 839 pub const G_IO_FLAG_SET_MASK: GIOFlags = 3; 840 841 pub type GKeyFileFlags = c_uint; 842 pub const G_KEY_FILE_NONE: GKeyFileFlags = 0; 843 pub const G_KEY_FILE_KEEP_COMMENTS: GKeyFileFlags = 1; 844 pub const G_KEY_FILE_KEEP_TRANSLATIONS: GKeyFileFlags = 2; 845 846 pub type GLogLevelFlags = c_uint; 847 pub const G_LOG_FLAG_RECURSION: GLogLevelFlags = 1; 848 pub const G_LOG_FLAG_FATAL: GLogLevelFlags = 2; 849 pub const G_LOG_LEVEL_ERROR: GLogLevelFlags = 4; 850 pub const G_LOG_LEVEL_CRITICAL: GLogLevelFlags = 8; 851 pub const G_LOG_LEVEL_WARNING: GLogLevelFlags = 16; 852 pub const G_LOG_LEVEL_MESSAGE: GLogLevelFlags = 32; 853 pub const G_LOG_LEVEL_INFO: GLogLevelFlags = 64; 854 pub const G_LOG_LEVEL_DEBUG: GLogLevelFlags = 128; 855 pub const G_LOG_LEVEL_MASK: GLogLevelFlags = 4294967292; 856 857 pub type GMarkupCollectType = c_uint; 858 pub const G_MARKUP_COLLECT_INVALID: GMarkupCollectType = 0; 859 pub const G_MARKUP_COLLECT_STRING: GMarkupCollectType = 1; 860 pub const G_MARKUP_COLLECT_STRDUP: GMarkupCollectType = 2; 861 pub const G_MARKUP_COLLECT_BOOLEAN: GMarkupCollectType = 3; 862 pub const G_MARKUP_COLLECT_TRISTATE: GMarkupCollectType = 4; 863 pub const G_MARKUP_COLLECT_OPTIONAL: GMarkupCollectType = 65536; 864 865 pub type GMarkupParseFlags = c_uint; 866 pub const G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: GMarkupParseFlags = 1; 867 pub const G_MARKUP_TREAT_CDATA_AS_TEXT: GMarkupParseFlags = 2; 868 pub const G_MARKUP_PREFIX_ERROR_POSITION: GMarkupParseFlags = 4; 869 pub const G_MARKUP_IGNORE_QUALIFIED: GMarkupParseFlags = 8; 870 871 pub type GOptionFlags = c_uint; 872 pub const G_OPTION_FLAG_NONE: GOptionFlags = 0; 873 pub const G_OPTION_FLAG_HIDDEN: GOptionFlags = 1; 874 pub const G_OPTION_FLAG_IN_MAIN: GOptionFlags = 2; 875 pub const G_OPTION_FLAG_REVERSE: GOptionFlags = 4; 876 pub const G_OPTION_FLAG_NO_ARG: GOptionFlags = 8; 877 pub const G_OPTION_FLAG_FILENAME: GOptionFlags = 16; 878 pub const G_OPTION_FLAG_OPTIONAL_ARG: GOptionFlags = 32; 879 pub const G_OPTION_FLAG_NOALIAS: GOptionFlags = 64; 880 881 pub type GRegexCompileFlags = c_uint; 882 pub const G_REGEX_CASELESS: GRegexCompileFlags = 1; 883 pub const G_REGEX_MULTILINE: GRegexCompileFlags = 2; 884 pub const G_REGEX_DOTALL: GRegexCompileFlags = 4; 885 pub const G_REGEX_EXTENDED: GRegexCompileFlags = 8; 886 pub const G_REGEX_ANCHORED: GRegexCompileFlags = 16; 887 pub const G_REGEX_DOLLAR_ENDONLY: GRegexCompileFlags = 32; 888 pub const G_REGEX_UNGREEDY: GRegexCompileFlags = 512; 889 pub const G_REGEX_RAW: GRegexCompileFlags = 2048; 890 pub const G_REGEX_NO_AUTO_CAPTURE: GRegexCompileFlags = 4096; 891 pub const G_REGEX_OPTIMIZE: GRegexCompileFlags = 8192; 892 pub const G_REGEX_FIRSTLINE: GRegexCompileFlags = 262144; 893 pub const G_REGEX_DUPNAMES: GRegexCompileFlags = 524288; 894 pub const G_REGEX_NEWLINE_CR: GRegexCompileFlags = 1048576; 895 pub const G_REGEX_NEWLINE_LF: GRegexCompileFlags = 2097152; 896 pub const G_REGEX_NEWLINE_CRLF: GRegexCompileFlags = 3145728; 897 pub const G_REGEX_NEWLINE_ANYCRLF: GRegexCompileFlags = 5242880; 898 pub const G_REGEX_BSR_ANYCRLF: GRegexCompileFlags = 8388608; 899 pub const G_REGEX_JAVASCRIPT_COMPAT: GRegexCompileFlags = 33554432; 900 901 pub type GRegexMatchFlags = c_uint; 902 pub const G_REGEX_MATCH_ANCHORED: GRegexMatchFlags = 16; 903 pub const G_REGEX_MATCH_NOTBOL: GRegexMatchFlags = 128; 904 pub const G_REGEX_MATCH_NOTEOL: GRegexMatchFlags = 256; 905 pub const G_REGEX_MATCH_NOTEMPTY: GRegexMatchFlags = 1024; 906 pub const G_REGEX_MATCH_PARTIAL: GRegexMatchFlags = 32768; 907 pub const G_REGEX_MATCH_NEWLINE_CR: GRegexMatchFlags = 1048576; 908 pub const G_REGEX_MATCH_NEWLINE_LF: GRegexMatchFlags = 2097152; 909 pub const G_REGEX_MATCH_NEWLINE_CRLF: GRegexMatchFlags = 3145728; 910 pub const G_REGEX_MATCH_NEWLINE_ANY: GRegexMatchFlags = 4194304; 911 pub const G_REGEX_MATCH_NEWLINE_ANYCRLF: GRegexMatchFlags = 5242880; 912 pub const G_REGEX_MATCH_BSR_ANYCRLF: GRegexMatchFlags = 8388608; 913 pub const G_REGEX_MATCH_BSR_ANY: GRegexMatchFlags = 16777216; 914 pub const G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags = 32768; 915 pub const G_REGEX_MATCH_PARTIAL_HARD: GRegexMatchFlags = 134217728; 916 pub const G_REGEX_MATCH_NOTEMPTY_ATSTART: GRegexMatchFlags = 268435456; 917 918 pub type GSpawnFlags = c_uint; 919 pub const G_SPAWN_DEFAULT: GSpawnFlags = 0; 920 pub const G_SPAWN_LEAVE_DESCRIPTORS_OPEN: GSpawnFlags = 1; 921 pub const G_SPAWN_DO_NOT_REAP_CHILD: GSpawnFlags = 2; 922 pub const G_SPAWN_SEARCH_PATH: GSpawnFlags = 4; 923 pub const G_SPAWN_STDOUT_TO_DEV_NULL: GSpawnFlags = 8; 924 pub const G_SPAWN_STDERR_TO_DEV_NULL: GSpawnFlags = 16; 925 pub const G_SPAWN_CHILD_INHERITS_STDIN: GSpawnFlags = 32; 926 pub const G_SPAWN_FILE_AND_ARGV_ZERO: GSpawnFlags = 64; 927 pub const G_SPAWN_SEARCH_PATH_FROM_ENVP: GSpawnFlags = 128; 928 pub const G_SPAWN_CLOEXEC_PIPES: GSpawnFlags = 256; 929 930 pub type GTestSubprocessFlags = c_uint; 931 pub const G_TEST_SUBPROCESS_INHERIT_STDIN: GTestSubprocessFlags = 1; 932 pub const G_TEST_SUBPROCESS_INHERIT_STDOUT: GTestSubprocessFlags = 2; 933 pub const G_TEST_SUBPROCESS_INHERIT_STDERR: GTestSubprocessFlags = 4; 934 935 pub type GTestTrapFlags = c_uint; 936 pub const G_TEST_TRAP_SILENCE_STDOUT: GTestTrapFlags = 128; 937 pub const G_TEST_TRAP_SILENCE_STDERR: GTestTrapFlags = 256; 938 pub const G_TEST_TRAP_INHERIT_STDIN: GTestTrapFlags = 512; 939 940 pub type GTraverseFlags = c_uint; 941 pub const G_TRAVERSE_LEAVES: GTraverseFlags = 1; 942 pub const G_TRAVERSE_NON_LEAVES: GTraverseFlags = 2; 943 pub const G_TRAVERSE_ALL: GTraverseFlags = 3; 944 pub const G_TRAVERSE_MASK: GTraverseFlags = 3; 945 pub const G_TRAVERSE_LEAFS: GTraverseFlags = 1; 946 pub const G_TRAVERSE_NON_LEAFS: GTraverseFlags = 2; 947 948 pub type GUriFlags = c_uint; 949 pub const G_URI_FLAGS_NONE: GUriFlags = 0; 950 pub const G_URI_FLAGS_PARSE_RELAXED: GUriFlags = 1; 951 pub const G_URI_FLAGS_HAS_PASSWORD: GUriFlags = 2; 952 pub const G_URI_FLAGS_HAS_AUTH_PARAMS: GUriFlags = 4; 953 pub const G_URI_FLAGS_ENCODED: GUriFlags = 8; 954 pub const G_URI_FLAGS_NON_DNS: GUriFlags = 16; 955 pub const G_URI_FLAGS_ENCODED_QUERY: GUriFlags = 32; 956 pub const G_URI_FLAGS_ENCODED_PATH: GUriFlags = 64; 957 pub const G_URI_FLAGS_ENCODED_FRAGMENT: GUriFlags = 128; 958 959 pub type GUriHideFlags = c_uint; 960 pub const G_URI_HIDE_NONE: GUriHideFlags = 0; 961 pub const G_URI_HIDE_USERINFO: GUriHideFlags = 1; 962 pub const G_URI_HIDE_PASSWORD: GUriHideFlags = 2; 963 pub const G_URI_HIDE_AUTH_PARAMS: GUriHideFlags = 4; 964 pub const G_URI_HIDE_QUERY: GUriHideFlags = 8; 965 pub const G_URI_HIDE_FRAGMENT: GUriHideFlags = 16; 966 967 pub type GUriParamsFlags = c_uint; 968 pub const G_URI_PARAMS_NONE: GUriParamsFlags = 0; 969 pub const G_URI_PARAMS_CASE_INSENSITIVE: GUriParamsFlags = 1; 970 pub const G_URI_PARAMS_WWW_FORM: GUriParamsFlags = 2; 971 pub const G_URI_PARAMS_PARSE_RELAXED: GUriParamsFlags = 4; 972 973 // Unions 974 #[repr(C)] 975 pub struct GDoubleIEEE754(c_void); 976 977 impl ::std::fmt::Debug for GDoubleIEEE754 { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result978 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 979 f.debug_struct(&format!("GDoubleIEEE754 @ {:p}", self)) 980 .finish() 981 } 982 } 983 984 #[repr(C)] 985 pub struct GFloatIEEE754(c_void); 986 987 impl ::std::fmt::Debug for GFloatIEEE754 { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result988 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 989 f.debug_struct(&format!("GFloatIEEE754 @ {:p}", self)) 990 .finish() 991 } 992 } 993 994 #[repr(C)] 995 #[derive(Copy, Clone)] 996 pub union GMutex { 997 pub p: gpointer, 998 pub i: [c_uint; 2], 999 } 1000 1001 impl ::std::fmt::Debug for GMutex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1002 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1003 f.debug_struct(&format!("GMutex @ {:p}", self)).finish() 1004 } 1005 } 1006 1007 #[repr(C)] 1008 #[derive(Copy, Clone)] 1009 pub union GTokenValue { 1010 pub v_symbol: gpointer, 1011 pub v_identifier: *mut c_char, 1012 pub v_binary: c_ulong, 1013 pub v_octal: c_ulong, 1014 pub v_int: c_ulong, 1015 pub v_int64: u64, 1016 pub v_float: c_double, 1017 pub v_hex: c_ulong, 1018 pub v_string: *mut c_char, 1019 pub v_comment: *mut c_char, 1020 pub v_char: c_uchar, 1021 pub v_error: c_uint, 1022 } 1023 1024 impl ::std::fmt::Debug for GTokenValue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1025 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1026 f.debug_struct(&format!("GTokenValue @ {:p}", self)) 1027 .field("v_symbol", unsafe { &self.v_symbol }) 1028 .field("v_identifier", unsafe { &self.v_identifier }) 1029 .field("v_binary", unsafe { &self.v_binary }) 1030 .field("v_octal", unsafe { &self.v_octal }) 1031 .field("v_int", unsafe { &self.v_int }) 1032 .field("v_int64", unsafe { &self.v_int64 }) 1033 .field("v_float", unsafe { &self.v_float }) 1034 .field("v_hex", unsafe { &self.v_hex }) 1035 .field("v_string", unsafe { &self.v_string }) 1036 .field("v_comment", unsafe { &self.v_comment }) 1037 .field("v_char", unsafe { &self.v_char }) 1038 .field("v_error", unsafe { &self.v_error }) 1039 .finish() 1040 } 1041 } 1042 1043 #[repr(C)] 1044 #[derive(Copy, Clone)] 1045 pub union GVariantBuilder_u { 1046 pub s: GVariantBuilder_u_s, 1047 pub x: [size_t; 16], 1048 } 1049 1050 impl ::std::fmt::Debug for GVariantBuilder_u { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1051 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1052 f.debug_struct(&format!("GVariantBuilder_u @ {:p}", self)) 1053 .field("s", unsafe { &self.s }) 1054 .field("x", unsafe { &self.x }) 1055 .finish() 1056 } 1057 } 1058 1059 #[repr(C)] 1060 #[derive(Copy, Clone)] 1061 pub union GVariantDict_u { 1062 pub s: GVariantDict_u_s, 1063 pub x: [size_t; 16], 1064 } 1065 1066 impl ::std::fmt::Debug for GVariantDict_u { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1067 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1068 f.debug_struct(&format!("GVariantDict_u @ {:p}", self)) 1069 .field("s", unsafe { &self.s }) 1070 .field("x", unsafe { &self.x }) 1071 .finish() 1072 } 1073 } 1074 1075 // Callbacks 1076 pub type GChildWatchFunc = Option<unsafe extern "C" fn(GPid, c_int, gpointer)>; 1077 pub type GClearHandleFunc = Option<unsafe extern "C" fn(c_uint)>; 1078 pub type GCompareDataFunc = 1079 Option<unsafe extern "C" fn(gconstpointer, gconstpointer, gpointer) -> c_int>; 1080 pub type GCompareFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> c_int>; 1081 pub type GCopyFunc = Option<unsafe extern "C" fn(gconstpointer, gpointer) -> gpointer>; 1082 pub type GDataForeachFunc = Option<unsafe extern "C" fn(GQuark, gpointer, gpointer)>; 1083 pub type GDestroyNotify = Option<unsafe extern "C" fn(gpointer)>; 1084 pub type GDuplicateFunc = Option<unsafe extern "C" fn(gpointer, gpointer) -> gpointer>; 1085 pub type GEqualFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> gboolean>; 1086 pub type GFreeFunc = Option<unsafe extern "C" fn(gpointer)>; 1087 pub type GFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>; 1088 pub type GHFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer)>; 1089 pub type GHRFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>; 1090 pub type GHashFunc = Option<unsafe extern "C" fn(gconstpointer) -> c_uint>; 1091 pub type GHookCheckFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>; 1092 pub type GHookCheckMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>; 1093 pub type GHookCompareFunc = Option<unsafe extern "C" fn(*mut GHook, *mut GHook) -> c_int>; 1094 pub type GHookFinalizeFunc = Option<unsafe extern "C" fn(*mut GHookList, *mut GHook)>; 1095 pub type GHookFindFunc = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>; 1096 pub type GHookFunc = Option<unsafe extern "C" fn(gpointer)>; 1097 pub type GHookMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer)>; 1098 pub type GIOFunc = 1099 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition, gpointer) -> gboolean>; 1100 pub type GLogFunc = 1101 Option<unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer)>; 1102 pub type GLogWriterFunc = Option< 1103 unsafe extern "C" fn(GLogLevelFlags, *const GLogField, size_t, gpointer) -> GLogWriterOutput, 1104 >; 1105 pub type GNodeForeachFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer)>; 1106 pub type GNodeTraverseFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer) -> gboolean>; 1107 pub type GOptionArgFunc = Option< 1108 unsafe extern "C" fn(*const c_char, *const c_char, gpointer, *mut *mut GError) -> gboolean, 1109 >; 1110 pub type GOptionErrorFunc = Option< 1111 unsafe extern "C" fn(*mut GOptionContext, *mut GOptionGroup, gpointer, *mut *mut GError), 1112 >; 1113 pub type GOptionParseFunc = Option< 1114 unsafe extern "C" fn( 1115 *mut GOptionContext, 1116 *mut GOptionGroup, 1117 gpointer, 1118 *mut *mut GError, 1119 ) -> gboolean, 1120 >; 1121 pub type GPollFunc = Option<unsafe extern "C" fn(*mut GPollFD, c_uint, c_int) -> c_int>; 1122 pub type GPrintFunc = Option<unsafe extern "C" fn(*const c_char)>; 1123 pub type GRegexEvalCallback = 1124 Option<unsafe extern "C" fn(*const GMatchInfo, *mut GString, gpointer) -> gboolean>; 1125 pub type GScannerMsgFunc = Option<unsafe extern "C" fn(*mut GScanner, *mut c_char, gboolean)>; 1126 pub type GSequenceIterCompareFunc = 1127 Option<unsafe extern "C" fn(*mut GSequenceIter, *mut GSequenceIter, gpointer) -> c_int>; 1128 pub type GSourceDisposeFunc = Option<unsafe extern "C" fn(*mut GSource)>; 1129 pub type GSourceDummyMarshal = Option<unsafe extern "C" fn()>; 1130 pub type GSourceFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>; 1131 pub type GSpawnChildSetupFunc = Option<unsafe extern "C" fn(gpointer)>; 1132 pub type GTestDataFunc = Option<unsafe extern "C" fn(gconstpointer)>; 1133 pub type GTestFixtureFunc = Option<unsafe extern "C" fn(gpointer, gconstpointer)>; 1134 pub type GTestFunc = Option<unsafe extern "C" fn()>; 1135 pub type GTestLogFatalFunc = Option< 1136 unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer) -> gboolean, 1137 >; 1138 pub type GThreadFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>; 1139 pub type GTranslateFunc = Option<unsafe extern "C" fn(*const c_char, gpointer) -> *const c_char>; 1140 pub type GTraverseFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>; 1141 pub type GUnixFDSourceFunc = 1142 Option<unsafe extern "C" fn(c_int, GIOCondition, gpointer) -> gboolean>; 1143 pub type GVoidFunc = Option<unsafe extern "C" fn()>; 1144 1145 // Records 1146 #[repr(C)] 1147 #[derive(Copy, Clone)] 1148 pub struct GArray { 1149 pub data: *mut c_char, 1150 pub len: c_uint, 1151 } 1152 1153 impl ::std::fmt::Debug for GArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1154 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1155 f.debug_struct(&format!("GArray @ {:p}", self)) 1156 .field("data", &self.data) 1157 .field("len", &self.len) 1158 .finish() 1159 } 1160 } 1161 1162 #[repr(C)] 1163 pub struct _GAsyncQueue(c_void); 1164 1165 pub type GAsyncQueue = *mut _GAsyncQueue; 1166 1167 #[repr(C)] 1168 pub struct _GBookmarkFile(c_void); 1169 1170 pub type GBookmarkFile = *mut _GBookmarkFile; 1171 1172 #[repr(C)] 1173 #[derive(Copy, Clone)] 1174 pub struct GByteArray { 1175 pub data: *mut u8, 1176 pub len: c_uint, 1177 } 1178 1179 impl ::std::fmt::Debug for GByteArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1180 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1181 f.debug_struct(&format!("GByteArray @ {:p}", self)) 1182 .field("data", &self.data) 1183 .field("len", &self.len) 1184 .finish() 1185 } 1186 } 1187 1188 #[repr(C)] 1189 pub struct GBytes(c_void); 1190 1191 impl ::std::fmt::Debug for GBytes { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1192 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1193 f.debug_struct(&format!("GBytes @ {:p}", self)).finish() 1194 } 1195 } 1196 1197 #[repr(C)] 1198 pub struct GChecksum(c_void); 1199 1200 impl ::std::fmt::Debug for GChecksum { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1201 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1202 f.debug_struct(&format!("GChecksum @ {:p}", self)).finish() 1203 } 1204 } 1205 1206 #[repr(C)] 1207 #[derive(Copy, Clone)] 1208 pub struct GCond { 1209 pub p: gpointer, 1210 pub i: [c_uint; 2], 1211 } 1212 1213 impl ::std::fmt::Debug for GCond { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1214 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1215 f.debug_struct(&format!("GCond @ {:p}", self)).finish() 1216 } 1217 } 1218 1219 #[repr(C)] 1220 pub struct _GData(c_void); 1221 1222 pub type GData = *mut _GData; 1223 1224 #[repr(C)] 1225 pub struct GDate { 1226 pub julian_days: c_uint, 1227 _truncated_record_marker: c_void, 1228 // field julian has incomplete type 1229 } 1230 1231 impl ::std::fmt::Debug for GDate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1232 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1233 f.debug_struct(&format!("GDate @ {:p}", self)) 1234 .field("julian_days", &self.julian_days) 1235 .finish() 1236 } 1237 } 1238 1239 #[repr(C)] 1240 pub struct GDateTime(c_void); 1241 1242 impl ::std::fmt::Debug for GDateTime { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1243 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1244 f.debug_struct(&format!("GDateTime @ {:p}", self)).finish() 1245 } 1246 } 1247 1248 #[repr(C)] 1249 #[derive(Copy, Clone)] 1250 pub struct GDebugKey { 1251 pub key: *const c_char, 1252 pub value: c_uint, 1253 } 1254 1255 impl ::std::fmt::Debug for GDebugKey { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1256 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1257 f.debug_struct(&format!("GDebugKey @ {:p}", self)) 1258 .field("key", &self.key) 1259 .field("value", &self.value) 1260 .finish() 1261 } 1262 } 1263 1264 #[repr(C)] 1265 pub struct _GDir(c_void); 1266 1267 pub type GDir = *mut _GDir; 1268 1269 #[repr(C)] 1270 pub struct GDoubleIEEE754_mpn { 1271 pub mantissa_low: c_uint, 1272 _truncated_record_marker: c_void, 1273 // field mantissa_high has incomplete type 1274 } 1275 1276 impl ::std::fmt::Debug for GDoubleIEEE754_mpn { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1277 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1278 f.debug_struct(&format!("GDoubleIEEE754_mpn @ {:p}", self)) 1279 .field("mantissa_low", &self.mantissa_low) 1280 .finish() 1281 } 1282 } 1283 1284 #[repr(C)] 1285 #[derive(Copy, Clone)] 1286 pub struct GError { 1287 pub domain: GQuark, 1288 pub code: c_int, 1289 pub message: *mut c_char, 1290 } 1291 1292 impl ::std::fmt::Debug for GError { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1293 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1294 f.debug_struct(&format!("GError @ {:p}", self)) 1295 .field("domain", &self.domain) 1296 .field("code", &self.code) 1297 .field("message", &self.message) 1298 .finish() 1299 } 1300 } 1301 1302 #[repr(C)] 1303 pub struct GFloatIEEE754_mpn { 1304 pub mantissa: c_uint, 1305 _truncated_record_marker: c_void, 1306 // field biased_exponent has incomplete type 1307 } 1308 1309 impl ::std::fmt::Debug for GFloatIEEE754_mpn { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1310 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1311 f.debug_struct(&format!("GFloatIEEE754_mpn @ {:p}", self)) 1312 .field("mantissa", &self.mantissa) 1313 .finish() 1314 } 1315 } 1316 1317 #[repr(C)] 1318 pub struct GHashTable(c_void); 1319 1320 impl ::std::fmt::Debug for GHashTable { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1321 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1322 f.debug_struct(&format!("GHashTable @ {:p}", self)).finish() 1323 } 1324 } 1325 1326 #[repr(C)] 1327 #[derive(Copy, Clone)] 1328 pub struct GHashTableIter { 1329 pub dummy1: gpointer, 1330 pub dummy2: gpointer, 1331 pub dummy3: gpointer, 1332 pub dummy4: c_int, 1333 pub dummy5: gboolean, 1334 pub dummy6: gpointer, 1335 } 1336 1337 impl ::std::fmt::Debug for GHashTableIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1338 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1339 f.debug_struct(&format!("GHashTableIter @ {:p}", self)) 1340 .finish() 1341 } 1342 } 1343 1344 #[repr(C)] 1345 pub struct _GHmac(c_void); 1346 1347 pub type GHmac = *mut _GHmac; 1348 1349 #[repr(C)] 1350 #[derive(Copy, Clone)] 1351 pub struct GHook { 1352 pub data: gpointer, 1353 pub next: *mut GHook, 1354 pub prev: *mut GHook, 1355 pub ref_count: c_uint, 1356 pub hook_id: c_ulong, 1357 pub flags: c_uint, 1358 pub func: gpointer, 1359 pub destroy: GDestroyNotify, 1360 } 1361 1362 impl ::std::fmt::Debug for GHook { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1363 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1364 f.debug_struct(&format!("GHook @ {:p}", self)) 1365 .field("data", &self.data) 1366 .field("next", &self.next) 1367 .field("prev", &self.prev) 1368 .field("ref_count", &self.ref_count) 1369 .field("hook_id", &self.hook_id) 1370 .field("flags", &self.flags) 1371 .field("func", &self.func) 1372 .field("destroy", &self.destroy) 1373 .finish() 1374 } 1375 } 1376 1377 #[repr(C)] 1378 #[derive(Copy, Clone)] 1379 pub struct GHookList { 1380 pub seq_id: c_ulong, 1381 #[cfg(any(not(windows), not(target_pointer_width = "64")))] 1382 pub hook_size_and_setup: gpointer, 1383 #[cfg(all(windows, target_pointer_width = "64"))] 1384 pub hook_size_and_setup: c_ulong, 1385 pub hooks: *mut GHook, 1386 pub dummy3: gpointer, 1387 pub finalize_hook: GHookFinalizeFunc, 1388 pub dummy: [gpointer; 2], 1389 } 1390 1391 impl ::std::fmt::Debug for GHookList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1392 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1393 write!(f, "GHookList @ {:p}", self) 1394 } 1395 } 1396 1397 #[repr(C)] 1398 pub struct _GIConv(c_void); 1399 1400 pub type GIConv = *mut _GIConv; 1401 1402 #[repr(C)] 1403 pub struct GIOChannel { 1404 pub ref_count: c_int, 1405 pub funcs: *mut GIOFuncs, 1406 pub encoding: *mut c_char, 1407 pub read_cd: GIConv, 1408 pub write_cd: GIConv, 1409 pub line_term: *mut c_char, 1410 pub line_term_len: c_uint, 1411 pub buf_size: size_t, 1412 pub read_buf: *mut GString, 1413 pub encoded_read_buf: *mut GString, 1414 pub write_buf: *mut GString, 1415 pub partial_write_buf: [c_char; 6], 1416 pub use_buffer: c_uint, 1417 _truncated_record_marker: c_void, 1418 // field do_encode has incomplete type 1419 } 1420 1421 impl ::std::fmt::Debug for GIOChannel { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1422 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1423 f.debug_struct(&format!("GIOChannel @ {:p}", self)).finish() 1424 } 1425 } 1426 1427 #[repr(C)] 1428 #[derive(Copy, Clone)] 1429 pub struct GIOFuncs { 1430 pub io_read: Option< 1431 unsafe extern "C" fn( 1432 *mut GIOChannel, 1433 *const c_char, 1434 size_t, 1435 *mut size_t, 1436 *mut *mut GError, 1437 ) -> GIOStatus, 1438 >, 1439 pub io_write: Option< 1440 unsafe extern "C" fn( 1441 *mut GIOChannel, 1442 *const c_char, 1443 size_t, 1444 *mut size_t, 1445 *mut *mut GError, 1446 ) -> GIOStatus, 1447 >, 1448 pub io_seek: Option< 1449 unsafe extern "C" fn(*mut GIOChannel, i64, GSeekType, *mut *mut GError) -> GIOStatus, 1450 >, 1451 pub io_close: Option<unsafe extern "C" fn(*mut GIOChannel, *mut *mut GError) -> GIOStatus>, 1452 pub io_create_watch: 1453 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition) -> *mut GSource>, 1454 pub io_free: Option<unsafe extern "C" fn(*mut GIOChannel)>, 1455 pub io_set_flags: 1456 Option<unsafe extern "C" fn(*mut GIOChannel, GIOFlags, *mut *mut GError) -> GIOStatus>, 1457 pub io_get_flags: Option<unsafe extern "C" fn(*mut GIOChannel) -> GIOFlags>, 1458 } 1459 1460 impl ::std::fmt::Debug for GIOFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1461 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1462 f.debug_struct(&format!("GIOFuncs @ {:p}", self)) 1463 .field("io_read", &self.io_read) 1464 .field("io_write", &self.io_write) 1465 .field("io_seek", &self.io_seek) 1466 .field("io_close", &self.io_close) 1467 .field("io_create_watch", &self.io_create_watch) 1468 .field("io_free", &self.io_free) 1469 .field("io_set_flags", &self.io_set_flags) 1470 .field("io_get_flags", &self.io_get_flags) 1471 .finish() 1472 } 1473 } 1474 1475 #[repr(C)] 1476 pub struct GKeyFile(c_void); 1477 1478 impl ::std::fmt::Debug for GKeyFile { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1479 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1480 f.debug_struct(&format!("GKeyFile @ {:p}", self)).finish() 1481 } 1482 } 1483 1484 #[repr(C)] 1485 #[derive(Copy, Clone)] 1486 pub struct GList { 1487 pub data: gpointer, 1488 pub next: *mut GList, 1489 pub prev: *mut GList, 1490 } 1491 1492 impl ::std::fmt::Debug for GList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1493 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1494 f.debug_struct(&format!("GList @ {:p}", self)) 1495 .field("data", &self.data) 1496 .field("next", &self.next) 1497 .field("prev", &self.prev) 1498 .finish() 1499 } 1500 } 1501 1502 #[repr(C)] 1503 #[derive(Copy, Clone)] 1504 pub struct GLogField { 1505 pub key: *const c_char, 1506 pub value: gconstpointer, 1507 pub length: ssize_t, 1508 } 1509 1510 impl ::std::fmt::Debug for GLogField { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1511 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1512 f.debug_struct(&format!("GLogField @ {:p}", self)) 1513 .field("key", &self.key) 1514 .field("value", &self.value) 1515 .field("length", &self.length) 1516 .finish() 1517 } 1518 } 1519 1520 #[repr(C)] 1521 pub struct GMainContext(c_void); 1522 1523 impl ::std::fmt::Debug for GMainContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1524 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1525 f.debug_struct(&format!("GMainContext @ {:p}", self)) 1526 .finish() 1527 } 1528 } 1529 1530 #[repr(C)] 1531 pub struct GMainLoop(c_void); 1532 1533 impl ::std::fmt::Debug for GMainLoop { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1534 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1535 f.debug_struct(&format!("GMainLoop @ {:p}", self)).finish() 1536 } 1537 } 1538 1539 #[repr(C)] 1540 pub struct GMappedFile(c_void); 1541 1542 impl ::std::fmt::Debug for GMappedFile { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1543 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1544 f.debug_struct(&format!("GMappedFile @ {:p}", self)) 1545 .finish() 1546 } 1547 } 1548 1549 #[repr(C)] 1550 pub struct GMarkupParseContext(c_void); 1551 1552 impl ::std::fmt::Debug for GMarkupParseContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1553 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1554 f.debug_struct(&format!("GMarkupParseContext @ {:p}", self)) 1555 .finish() 1556 } 1557 } 1558 1559 #[repr(C)] 1560 #[derive(Copy, Clone)] 1561 pub struct GMarkupParser { 1562 pub start_element: Option< 1563 unsafe extern "C" fn( 1564 *mut GMarkupParseContext, 1565 *const c_char, 1566 *mut *const c_char, 1567 *mut *const c_char, 1568 gpointer, 1569 *mut *mut GError, 1570 ), 1571 >, 1572 pub end_element: Option< 1573 unsafe extern "C" fn(*mut GMarkupParseContext, *const c_char, gpointer, *mut *mut GError), 1574 >, 1575 pub text: Option< 1576 unsafe extern "C" fn( 1577 *mut GMarkupParseContext, 1578 *const c_char, 1579 size_t, 1580 gpointer, 1581 *mut *mut GError, 1582 ), 1583 >, 1584 pub passthrough: Option< 1585 unsafe extern "C" fn( 1586 *mut GMarkupParseContext, 1587 *const c_char, 1588 size_t, 1589 gpointer, 1590 *mut *mut GError, 1591 ), 1592 >, 1593 pub error: Option<unsafe extern "C" fn(*mut GMarkupParseContext, *mut GError, gpointer)>, 1594 } 1595 1596 impl ::std::fmt::Debug for GMarkupParser { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1597 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1598 f.debug_struct(&format!("GMarkupParser @ {:p}", self)) 1599 .field("start_element", &self.start_element) 1600 .field("end_element", &self.end_element) 1601 .field("text", &self.text) 1602 .field("passthrough", &self.passthrough) 1603 .field("error", &self.error) 1604 .finish() 1605 } 1606 } 1607 1608 #[repr(C)] 1609 pub struct GMatchInfo(c_void); 1610 1611 impl ::std::fmt::Debug for GMatchInfo { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1612 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1613 f.debug_struct(&format!("GMatchInfo @ {:p}", self)).finish() 1614 } 1615 } 1616 1617 #[repr(C)] 1618 #[derive(Copy, Clone)] 1619 pub struct GMemVTable { 1620 pub malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>, 1621 pub realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>, 1622 pub free: Option<unsafe extern "C" fn(gpointer)>, 1623 pub calloc: Option<unsafe extern "C" fn(size_t, size_t) -> gpointer>, 1624 pub try_malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>, 1625 pub try_realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>, 1626 } 1627 1628 impl ::std::fmt::Debug for GMemVTable { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1629 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1630 f.debug_struct(&format!("GMemVTable @ {:p}", self)) 1631 .field("malloc", &self.malloc) 1632 .field("realloc", &self.realloc) 1633 .field("free", &self.free) 1634 .field("calloc", &self.calloc) 1635 .field("try_malloc", &self.try_malloc) 1636 .field("try_realloc", &self.try_realloc) 1637 .finish() 1638 } 1639 } 1640 1641 #[repr(C)] 1642 #[derive(Copy, Clone)] 1643 pub struct GNode { 1644 pub data: gpointer, 1645 pub next: *mut GNode, 1646 pub prev: *mut GNode, 1647 pub parent: *mut GNode, 1648 pub children: *mut GNode, 1649 } 1650 1651 impl ::std::fmt::Debug for GNode { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1652 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1653 f.debug_struct(&format!("GNode @ {:p}", self)) 1654 .field("data", &self.data) 1655 .field("next", &self.next) 1656 .field("prev", &self.prev) 1657 .field("parent", &self.parent) 1658 .field("children", &self.children) 1659 .finish() 1660 } 1661 } 1662 1663 #[repr(C)] 1664 #[derive(Copy, Clone)] 1665 pub struct GOnce { 1666 pub status: GOnceStatus, 1667 pub retval: gpointer, 1668 } 1669 1670 impl ::std::fmt::Debug for GOnce { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1671 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1672 f.debug_struct(&format!("GOnce @ {:p}", self)).finish() 1673 } 1674 } 1675 1676 #[repr(C)] 1677 pub struct _GOptionContext(c_void); 1678 1679 pub type GOptionContext = *mut _GOptionContext; 1680 1681 #[repr(C)] 1682 #[derive(Copy, Clone)] 1683 pub struct GOptionEntry { 1684 pub long_name: *const c_char, 1685 pub short_name: c_char, 1686 pub flags: c_int, 1687 pub arg: GOptionArg, 1688 pub arg_data: gpointer, 1689 pub description: *const c_char, 1690 pub arg_description: *const c_char, 1691 } 1692 1693 impl ::std::fmt::Debug for GOptionEntry { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1694 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1695 f.debug_struct(&format!("GOptionEntry @ {:p}", self)) 1696 .field("long_name", &self.long_name) 1697 .field("short_name", &self.short_name) 1698 .field("flags", &self.flags) 1699 .field("arg", &self.arg) 1700 .field("arg_data", &self.arg_data) 1701 .field("description", &self.description) 1702 .field("arg_description", &self.arg_description) 1703 .finish() 1704 } 1705 } 1706 1707 #[repr(C)] 1708 pub struct GOptionGroup(c_void); 1709 1710 impl ::std::fmt::Debug for GOptionGroup { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1711 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1712 f.debug_struct(&format!("GOptionGroup @ {:p}", self)) 1713 .finish() 1714 } 1715 } 1716 1717 #[repr(C)] 1718 pub struct _GPatternSpec(c_void); 1719 1720 pub type GPatternSpec = *mut _GPatternSpec; 1721 1722 #[repr(C)] 1723 #[derive(Copy, Clone)] 1724 pub struct GPrivate { 1725 pub p: gpointer, 1726 pub notify: GDestroyNotify, 1727 pub future: [gpointer; 2], 1728 } 1729 1730 impl ::std::fmt::Debug for GPrivate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1731 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1732 f.debug_struct(&format!("GPrivate @ {:p}", self)).finish() 1733 } 1734 } 1735 1736 #[repr(C)] 1737 #[derive(Copy, Clone)] 1738 pub struct GPtrArray { 1739 pub pdata: *mut gpointer, 1740 pub len: c_uint, 1741 } 1742 1743 impl ::std::fmt::Debug for GPtrArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1744 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1745 f.debug_struct(&format!("GPtrArray @ {:p}", self)) 1746 .field("pdata", &self.pdata) 1747 .field("len", &self.len) 1748 .finish() 1749 } 1750 } 1751 1752 #[repr(C)] 1753 #[derive(Copy, Clone)] 1754 pub struct GQueue { 1755 pub head: *mut GList, 1756 pub tail: *mut GList, 1757 pub length: c_uint, 1758 } 1759 1760 impl ::std::fmt::Debug for GQueue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1761 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1762 f.debug_struct(&format!("GQueue @ {:p}", self)) 1763 .field("head", &self.head) 1764 .field("tail", &self.tail) 1765 .field("length", &self.length) 1766 .finish() 1767 } 1768 } 1769 1770 #[repr(C)] 1771 #[derive(Copy, Clone)] 1772 pub struct GRWLock { 1773 pub p: gpointer, 1774 pub i: [c_uint; 2], 1775 } 1776 1777 impl ::std::fmt::Debug for GRWLock { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1778 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1779 f.debug_struct(&format!("GRWLock @ {:p}", self)).finish() 1780 } 1781 } 1782 1783 #[repr(C)] 1784 pub struct _GRand(c_void); 1785 1786 pub type GRand = *mut _GRand; 1787 1788 #[repr(C)] 1789 #[derive(Copy, Clone)] 1790 pub struct GRecMutex { 1791 pub p: gpointer, 1792 pub i: [c_uint; 2], 1793 } 1794 1795 impl ::std::fmt::Debug for GRecMutex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1796 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1797 f.debug_struct(&format!("GRecMutex @ {:p}", self)).finish() 1798 } 1799 } 1800 1801 #[repr(C)] 1802 pub struct GRegex(c_void); 1803 1804 impl ::std::fmt::Debug for GRegex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1805 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1806 f.debug_struct(&format!("GRegex @ {:p}", self)).finish() 1807 } 1808 } 1809 1810 #[repr(C)] 1811 #[derive(Copy, Clone)] 1812 pub struct GSList { 1813 pub data: gpointer, 1814 pub next: *mut GSList, 1815 } 1816 1817 impl ::std::fmt::Debug for GSList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1818 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1819 f.debug_struct(&format!("GSList @ {:p}", self)) 1820 .field("data", &self.data) 1821 .field("next", &self.next) 1822 .finish() 1823 } 1824 } 1825 1826 #[repr(C)] 1827 #[derive(Copy, Clone)] 1828 pub struct GScanner { 1829 pub user_data: gpointer, 1830 pub max_parse_errors: c_uint, 1831 pub parse_errors: c_uint, 1832 pub input_name: *const c_char, 1833 pub qdata: *mut GData, 1834 pub config: *mut GScannerConfig, 1835 pub token: GTokenType, 1836 pub value: GTokenValue, 1837 pub line: c_uint, 1838 pub position: c_uint, 1839 pub next_token: GTokenType, 1840 pub next_value: GTokenValue, 1841 pub next_line: c_uint, 1842 pub next_position: c_uint, 1843 pub symbol_table: *mut GHashTable, 1844 pub input_fd: c_int, 1845 pub text: *const c_char, 1846 pub text_end: *const c_char, 1847 pub buffer: *mut c_char, 1848 pub scope_id: c_uint, 1849 pub msg_handler: GScannerMsgFunc, 1850 } 1851 1852 impl ::std::fmt::Debug for GScanner { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1853 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1854 f.debug_struct(&format!("GScanner @ {:p}", self)) 1855 .field("user_data", &self.user_data) 1856 .field("max_parse_errors", &self.max_parse_errors) 1857 .field("parse_errors", &self.parse_errors) 1858 .field("input_name", &self.input_name) 1859 .field("qdata", &self.qdata) 1860 .field("config", &self.config) 1861 .field("token", &self.token) 1862 .field("value", &self.value) 1863 .field("line", &self.line) 1864 .field("position", &self.position) 1865 .field("next_token", &self.next_token) 1866 .field("next_value", &self.next_value) 1867 .field("next_line", &self.next_line) 1868 .field("next_position", &self.next_position) 1869 .field("msg_handler", &self.msg_handler) 1870 .finish() 1871 } 1872 } 1873 1874 #[repr(C)] 1875 pub struct GScannerConfig { 1876 pub cset_skip_characters: *mut c_char, 1877 pub cset_identifier_first: *mut c_char, 1878 pub cset_identifier_nth: *mut c_char, 1879 pub cpair_comment_single: *mut c_char, 1880 pub case_sensitive: c_uint, 1881 _truncated_record_marker: c_void, 1882 // field skip_comment_multi has incomplete type 1883 } 1884 1885 impl ::std::fmt::Debug for GScannerConfig { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1886 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1887 f.debug_struct(&format!("GScannerConfig @ {:p}", self)) 1888 .field("cset_skip_characters", &self.cset_skip_characters) 1889 .field("cset_identifier_first", &self.cset_identifier_first) 1890 .field("cset_identifier_nth", &self.cset_identifier_nth) 1891 .field("cpair_comment_single", &self.cpair_comment_single) 1892 .field("case_sensitive", &self.case_sensitive) 1893 .finish() 1894 } 1895 } 1896 1897 #[repr(C)] 1898 pub struct _GSequence(c_void); 1899 1900 pub type GSequence = *mut _GSequence; 1901 1902 #[repr(C)] 1903 pub struct _GSequenceIter(c_void); 1904 1905 pub type GSequenceIter = *mut _GSequenceIter; 1906 1907 #[repr(C)] 1908 #[derive(Copy, Clone)] 1909 pub struct GSource { 1910 pub callback_data: gpointer, 1911 pub callback_funcs: *mut GSourceCallbackFuncs, 1912 pub source_funcs: *const GSourceFuncs, 1913 pub ref_count: c_uint, 1914 pub context: *mut GMainContext, 1915 pub priority: c_int, 1916 pub flags: c_uint, 1917 pub source_id: c_uint, 1918 pub poll_fds: *mut GSList, 1919 pub prev: *mut GSource, 1920 pub next: *mut GSource, 1921 pub name: *mut c_char, 1922 pub priv_: *mut GSourcePrivate, 1923 } 1924 1925 impl ::std::fmt::Debug for GSource { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1926 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1927 f.debug_struct(&format!("GSource @ {:p}", self)).finish() 1928 } 1929 } 1930 1931 #[repr(C)] 1932 #[derive(Copy, Clone)] 1933 pub struct GSourceCallbackFuncs { 1934 pub ref_: Option<unsafe extern "C" fn(gpointer)>, 1935 pub unref: Option<unsafe extern "C" fn(gpointer)>, 1936 pub get: Option<unsafe extern "C" fn(gpointer, *mut GSource, *mut GSourceFunc, *mut gpointer)>, 1937 } 1938 1939 impl ::std::fmt::Debug for GSourceCallbackFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1940 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1941 f.debug_struct(&format!("GSourceCallbackFuncs @ {:p}", self)) 1942 .field("ref_", &self.ref_) 1943 .field("unref", &self.unref) 1944 .field("get", &self.get) 1945 .finish() 1946 } 1947 } 1948 1949 #[repr(C)] 1950 #[derive(Copy, Clone)] 1951 pub struct GSourceFuncs { 1952 pub prepare: Option<unsafe extern "C" fn(*mut GSource, *mut c_int) -> gboolean>, 1953 pub check: Option<unsafe extern "C" fn(*mut GSource) -> gboolean>, 1954 pub dispatch: Option<unsafe extern "C" fn(*mut GSource, GSourceFunc, gpointer) -> gboolean>, 1955 pub finalize: Option<unsafe extern "C" fn(*mut GSource)>, 1956 pub closure_callback: GSourceFunc, 1957 pub closure_marshal: GSourceDummyMarshal, 1958 } 1959 1960 impl ::std::fmt::Debug for GSourceFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1961 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1962 f.debug_struct(&format!("GSourceFuncs @ {:p}", self)) 1963 .field("prepare", &self.prepare) 1964 .field("check", &self.check) 1965 .field("dispatch", &self.dispatch) 1966 .field("finalize", &self.finalize) 1967 .finish() 1968 } 1969 } 1970 1971 #[repr(C)] 1972 pub struct _GSourcePrivate(c_void); 1973 1974 pub type GSourcePrivate = *mut _GSourcePrivate; 1975 1976 #[repr(C)] 1977 pub struct _GStatBuf(c_void); 1978 1979 pub type GStatBuf = *mut _GStatBuf; 1980 1981 #[repr(C)] 1982 #[derive(Copy, Clone)] 1983 pub struct GString { 1984 pub str: *mut c_char, 1985 pub len: size_t, 1986 pub allocated_len: size_t, 1987 } 1988 1989 impl ::std::fmt::Debug for GString { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1990 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1991 f.debug_struct(&format!("GString @ {:p}", self)) 1992 .field("str", &self.str) 1993 .field("len", &self.len) 1994 .field("allocated_len", &self.allocated_len) 1995 .finish() 1996 } 1997 } 1998 1999 #[repr(C)] 2000 pub struct _GStringChunk(c_void); 2001 2002 pub type GStringChunk = *mut _GStringChunk; 2003 2004 #[repr(C)] 2005 pub struct _GTestCase(c_void); 2006 2007 pub type GTestCase = *mut _GTestCase; 2008 2009 #[repr(C)] 2010 #[derive(Copy, Clone)] 2011 pub struct GTestConfig { 2012 pub test_initialized: gboolean, 2013 pub test_quick: gboolean, 2014 pub test_perf: gboolean, 2015 pub test_verbose: gboolean, 2016 pub test_quiet: gboolean, 2017 pub test_undefined: gboolean, 2018 } 2019 2020 impl ::std::fmt::Debug for GTestConfig { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2021 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2022 f.debug_struct(&format!("GTestConfig @ {:p}", self)) 2023 .field("test_initialized", &self.test_initialized) 2024 .field("test_quick", &self.test_quick) 2025 .field("test_perf", &self.test_perf) 2026 .field("test_verbose", &self.test_verbose) 2027 .field("test_quiet", &self.test_quiet) 2028 .field("test_undefined", &self.test_undefined) 2029 .finish() 2030 } 2031 } 2032 2033 #[repr(C)] 2034 #[derive(Copy, Clone)] 2035 pub struct GTestLogBuffer { 2036 pub data: *mut GString, 2037 pub msgs: *mut GSList, 2038 } 2039 2040 impl ::std::fmt::Debug for GTestLogBuffer { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2041 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2042 f.debug_struct(&format!("GTestLogBuffer @ {:p}", self)) 2043 .finish() 2044 } 2045 } 2046 2047 #[repr(C)] 2048 pub struct GTestLogMsg { 2049 pub log_type: GTestLogType, 2050 pub n_strings: c_uint, 2051 pub strings: *mut *mut c_char, 2052 pub n_nums: c_uint, 2053 _truncated_record_marker: c_void, 2054 // /*Unimplemented*/*mut long double 2055 } 2056 2057 impl ::std::fmt::Debug for GTestLogMsg { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2058 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2059 f.debug_struct(&format!("GTestLogMsg @ {:p}", self)) 2060 .field("log_type", &self.log_type) 2061 .field("n_strings", &self.n_strings) 2062 .field("strings", &self.strings) 2063 .field("n_nums", &self.n_nums) 2064 .finish() 2065 } 2066 } 2067 2068 #[repr(C)] 2069 pub struct _GTestSuite(c_void); 2070 2071 pub type GTestSuite = *mut _GTestSuite; 2072 2073 #[repr(C)] 2074 pub struct GThread(c_void); 2075 2076 impl ::std::fmt::Debug for GThread { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2077 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2078 f.debug_struct(&format!("GThread @ {:p}", self)).finish() 2079 } 2080 } 2081 2082 #[repr(C)] 2083 #[derive(Copy, Clone)] 2084 pub struct GThreadPool { 2085 pub func: GFunc, 2086 pub user_data: gpointer, 2087 pub exclusive: gboolean, 2088 } 2089 2090 impl ::std::fmt::Debug for GThreadPool { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2091 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2092 f.debug_struct(&format!("GThreadPool @ {:p}", self)) 2093 .field("func", &self.func) 2094 .field("user_data", &self.user_data) 2095 .field("exclusive", &self.exclusive) 2096 .finish() 2097 } 2098 } 2099 2100 #[repr(C)] 2101 #[derive(Copy, Clone)] 2102 pub struct GTimeVal { 2103 pub tv_sec: c_long, 2104 pub tv_usec: c_long, 2105 } 2106 2107 impl ::std::fmt::Debug for GTimeVal { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2108 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2109 f.debug_struct(&format!("GTimeVal @ {:p}", self)) 2110 .field("tv_sec", &self.tv_sec) 2111 .field("tv_usec", &self.tv_usec) 2112 .finish() 2113 } 2114 } 2115 2116 #[repr(C)] 2117 pub struct GTimeZone(c_void); 2118 2119 impl ::std::fmt::Debug for GTimeZone { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2120 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2121 f.debug_struct(&format!("GTimeZone @ {:p}", self)).finish() 2122 } 2123 } 2124 2125 #[repr(C)] 2126 pub struct _GTimer(c_void); 2127 2128 pub type GTimer = *mut _GTimer; 2129 2130 #[repr(C)] 2131 #[derive(Copy, Clone)] 2132 pub struct GTrashStack { 2133 pub next: *mut GTrashStack, 2134 } 2135 2136 impl ::std::fmt::Debug for GTrashStack { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2137 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2138 f.debug_struct(&format!("GTrashStack @ {:p}", self)) 2139 .field("next", &self.next) 2140 .finish() 2141 } 2142 } 2143 2144 #[repr(C)] 2145 pub struct _GTree(c_void); 2146 2147 pub type GTree = *mut _GTree; 2148 2149 #[repr(C)] 2150 pub struct GUri(c_void); 2151 2152 impl ::std::fmt::Debug for GUri { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2153 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2154 f.debug_struct(&format!("GUri @ {:p}", self)).finish() 2155 } 2156 } 2157 2158 #[repr(C)] 2159 #[derive(Copy, Clone)] 2160 pub struct GUriParamsIter { 2161 pub dummy0: c_int, 2162 pub dummy1: gpointer, 2163 pub dummy2: gpointer, 2164 pub dummy3: [u8; 256], 2165 } 2166 2167 impl ::std::fmt::Debug for GUriParamsIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2168 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2169 f.debug_struct(&format!("GUriParamsIter @ {:p}", self)) 2170 .finish() 2171 } 2172 } 2173 2174 #[repr(C)] 2175 pub struct GVariant(c_void); 2176 2177 impl ::std::fmt::Debug for GVariant { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2178 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2179 f.debug_struct(&format!("GVariant @ {:p}", self)).finish() 2180 } 2181 } 2182 2183 #[repr(C)] 2184 #[derive(Copy, Clone)] 2185 pub struct GVariantBuilder { 2186 pub u: GVariantBuilder_u, 2187 } 2188 2189 impl ::std::fmt::Debug for GVariantBuilder { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2190 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2191 f.debug_struct(&format!("GVariantBuilder @ {:p}", self)) 2192 .field("u", &self.u) 2193 .finish() 2194 } 2195 } 2196 2197 #[repr(C)] 2198 #[derive(Copy, Clone)] 2199 pub struct GVariantBuilder_u_s { 2200 pub partial_magic: size_t, 2201 pub type_: *const GVariantType, 2202 pub y: [size_t; 14], 2203 } 2204 2205 impl ::std::fmt::Debug for GVariantBuilder_u_s { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2206 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2207 f.debug_struct(&format!("GVariantBuilder_u_s @ {:p}", self)) 2208 .field("partial_magic", &self.partial_magic) 2209 .field("type_", &self.type_) 2210 .field("y", &self.y) 2211 .finish() 2212 } 2213 } 2214 2215 #[repr(C)] 2216 #[derive(Copy, Clone)] 2217 pub struct GVariantDict { 2218 pub u: GVariantDict_u, 2219 } 2220 2221 impl ::std::fmt::Debug for GVariantDict { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2222 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2223 f.debug_struct(&format!("GVariantDict @ {:p}", self)) 2224 .field("u", &self.u) 2225 .finish() 2226 } 2227 } 2228 2229 #[repr(C)] 2230 #[derive(Copy, Clone)] 2231 pub struct GVariantDict_u_s { 2232 pub asv: *mut GVariant, 2233 pub partial_magic: size_t, 2234 pub y: [size_t; 14], 2235 } 2236 2237 impl ::std::fmt::Debug for GVariantDict_u_s { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2238 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2239 f.debug_struct(&format!("GVariantDict_u_s @ {:p}", self)) 2240 .field("asv", &self.asv) 2241 .field("partial_magic", &self.partial_magic) 2242 .field("y", &self.y) 2243 .finish() 2244 } 2245 } 2246 2247 #[repr(C)] 2248 #[derive(Copy, Clone)] 2249 pub struct GVariantIter { 2250 pub x: [size_t; 16], 2251 } 2252 2253 impl ::std::fmt::Debug for GVariantIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2254 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2255 f.debug_struct(&format!("GVariantIter @ {:p}", self)) 2256 .finish() 2257 } 2258 } 2259 2260 #[repr(C)] 2261 pub struct GVariantType(c_void); 2262 2263 impl ::std::fmt::Debug for GVariantType { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2264 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2265 f.debug_struct(&format!("GVariantType @ {:p}", self)) 2266 .finish() 2267 } 2268 } 2269 2270 #[link(name = "gobject-2.0")] 2271 #[link(name = "glib-2.0")] 2272 extern "C" { 2273 2274 //========================================================================= 2275 // GIOCondition 2276 //========================================================================= g_io_condition_get_type() -> GType2277 pub fn g_io_condition_get_type() -> GType; 2278 2279 //========================================================================= 2280 // GMutex 2281 //========================================================================= g_mutex_clear(mutex: *mut GMutex)2282 pub fn g_mutex_clear(mutex: *mut GMutex); g_mutex_init(mutex: *mut GMutex)2283 pub fn g_mutex_init(mutex: *mut GMutex); g_mutex_lock(mutex: *mut GMutex)2284 pub fn g_mutex_lock(mutex: *mut GMutex); g_mutex_trylock(mutex: *mut GMutex) -> gboolean2285 pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean; g_mutex_unlock(mutex: *mut GMutex)2286 pub fn g_mutex_unlock(mutex: *mut GMutex); 2287 2288 //========================================================================= 2289 // GArray 2290 //========================================================================= g_array_get_type() -> GType2291 pub fn g_array_get_type() -> GType; g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) -> *mut GArray2292 pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) 2293 -> *mut GArray; 2294 #[cfg(any(feature = "v2_62", feature = "dox"))] 2295 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_62")))] g_array_binary_search( array: *mut GArray, target: gconstpointer, compare_func: GCompareFunc, out_match_index: *mut c_uint, ) -> gboolean2296 pub fn g_array_binary_search( 2297 array: *mut GArray, 2298 target: gconstpointer, 2299 compare_func: GCompareFunc, 2300 out_match_index: *mut c_uint, 2301 ) -> gboolean; 2302 #[cfg(any(feature = "v2_62", feature = "dox"))] 2303 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_62")))] g_array_copy(array: *mut GArray) -> *mut GArray2304 pub fn g_array_copy(array: *mut GArray) -> *mut GArray; g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char2305 pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char; g_array_get_element_size(array: *mut GArray) -> c_uint2306 pub fn g_array_get_element_size(array: *mut GArray) -> c_uint; g_array_insert_vals( array: *mut GArray, index_: c_uint, data: gconstpointer, len: c_uint, ) -> *mut GArray2307 pub fn g_array_insert_vals( 2308 array: *mut GArray, 2309 index_: c_uint, 2310 data: gconstpointer, 2311 len: c_uint, 2312 ) -> *mut GArray; g_array_new( zero_terminated: gboolean, clear_: gboolean, element_size: c_uint, ) -> *mut GArray2313 pub fn g_array_new( 2314 zero_terminated: gboolean, 2315 clear_: gboolean, 2316 element_size: c_uint, 2317 ) -> *mut GArray; g_array_prepend_vals( array: *mut GArray, data: gconstpointer, len: c_uint, ) -> *mut GArray2318 pub fn g_array_prepend_vals( 2319 array: *mut GArray, 2320 data: gconstpointer, 2321 len: c_uint, 2322 ) -> *mut GArray; g_array_ref(array: *mut GArray) -> *mut GArray2323 pub fn g_array_ref(array: *mut GArray) -> *mut GArray; g_array_remove_index(array: *mut GArray, index_: c_uint) -> *mut GArray2324 pub fn g_array_remove_index(array: *mut GArray, index_: c_uint) -> *mut GArray; g_array_remove_index_fast(array: *mut GArray, index_: c_uint) -> *mut GArray2325 pub fn g_array_remove_index_fast(array: *mut GArray, index_: c_uint) -> *mut GArray; g_array_remove_range(array: *mut GArray, index_: c_uint, length: c_uint) -> *mut GArray2326 pub fn g_array_remove_range(array: *mut GArray, index_: c_uint, length: c_uint) -> *mut GArray; g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify)2327 pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify); g_array_set_size(array: *mut GArray, length: c_uint) -> *mut GArray2328 pub fn g_array_set_size(array: *mut GArray, length: c_uint) -> *mut GArray; g_array_sized_new( zero_terminated: gboolean, clear_: gboolean, element_size: c_uint, reserved_size: c_uint, ) -> *mut GArray2329 pub fn g_array_sized_new( 2330 zero_terminated: gboolean, 2331 clear_: gboolean, 2332 element_size: c_uint, 2333 reserved_size: c_uint, 2334 ) -> *mut GArray; g_array_sort(array: *mut GArray, compare_func: GCompareFunc)2335 pub fn g_array_sort(array: *mut GArray, compare_func: GCompareFunc); g_array_sort_with_data( array: *mut GArray, compare_func: GCompareDataFunc, user_data: gpointer, )2336 pub fn g_array_sort_with_data( 2337 array: *mut GArray, 2338 compare_func: GCompareDataFunc, 2339 user_data: gpointer, 2340 ); 2341 #[cfg(any(feature = "v2_64", feature = "dox"))] 2342 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_64")))] g_array_steal(array: *mut GArray, len: *mut size_t) -> gpointer2343 pub fn g_array_steal(array: *mut GArray, len: *mut size_t) -> gpointer; g_array_unref(array: *mut GArray)2344 pub fn g_array_unref(array: *mut GArray); 2345 2346 //========================================================================= 2347 // GAsyncQueue 2348 //========================================================================= g_async_queue_length(queue: *mut GAsyncQueue) -> c_int2349 pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> c_int; g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> c_int2350 pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> c_int; g_async_queue_lock(queue: *mut GAsyncQueue)2351 pub fn g_async_queue_lock(queue: *mut GAsyncQueue); g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer2352 pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer2353 pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer)2354 pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer); g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer)2355 pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer); g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer)2356 pub fn g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer); g_async_queue_push_sorted( queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, )2357 pub fn g_async_queue_push_sorted( 2358 queue: *mut GAsyncQueue, 2359 data: gpointer, 2360 func: GCompareDataFunc, 2361 user_data: gpointer, 2362 ); g_async_queue_push_sorted_unlocked( queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, )2363 pub fn g_async_queue_push_sorted_unlocked( 2364 queue: *mut GAsyncQueue, 2365 data: gpointer, 2366 func: GCompareDataFunc, 2367 user_data: gpointer, 2368 ); g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer)2369 pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer); g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue2370 pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue; g_async_queue_ref_unlocked(queue: *mut GAsyncQueue)2371 pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue); g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean2372 pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean2373 pub fn g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer)2374 pub fn g_async_queue_sort(queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer); g_async_queue_sort_unlocked( queue: *mut GAsyncQueue, func: GCompareDataFunc, user_data: gpointer, )2375 pub fn g_async_queue_sort_unlocked( 2376 queue: *mut GAsyncQueue, 2377 func: GCompareDataFunc, 2378 user_data: gpointer, 2379 ); g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer2380 pub fn g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer; g_async_queue_timed_pop_unlocked( queue: *mut GAsyncQueue, end_time: *mut GTimeVal, ) -> gpointer2381 pub fn g_async_queue_timed_pop_unlocked( 2382 queue: *mut GAsyncQueue, 2383 end_time: *mut GTimeVal, 2384 ) -> gpointer; g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer2385 pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer2386 pub fn g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer2387 pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer2388 pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_unlock(queue: *mut GAsyncQueue)2389 pub fn g_async_queue_unlock(queue: *mut GAsyncQueue); g_async_queue_unref(queue: *mut GAsyncQueue)2390 pub fn g_async_queue_unref(queue: *mut GAsyncQueue); g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue)2391 pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue); g_async_queue_new() -> *mut GAsyncQueue2392 pub fn g_async_queue_new() -> *mut GAsyncQueue; g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue2393 pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue; 2394 2395 //========================================================================= 2396 // GBookmarkFile 2397 //========================================================================= g_bookmark_file_add_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, )2398 pub fn g_bookmark_file_add_application( 2399 bookmark: *mut GBookmarkFile, 2400 uri: *const c_char, 2401 name: *const c_char, 2402 exec: *const c_char, 2403 ); g_bookmark_file_add_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, )2404 pub fn g_bookmark_file_add_group( 2405 bookmark: *mut GBookmarkFile, 2406 uri: *const c_char, 2407 group: *const c_char, 2408 ); g_bookmark_file_free(bookmark: *mut GBookmarkFile)2409 pub fn g_bookmark_file_free(bookmark: *mut GBookmarkFile); g_bookmark_file_get_added( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> c_long2410 pub fn g_bookmark_file_get_added( 2411 bookmark: *mut GBookmarkFile, 2412 uri: *const c_char, 2413 error: *mut *mut GError, 2414 ) -> c_long; 2415 #[cfg(any(feature = "v2_66", feature = "dox"))] 2416 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_get_added_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut GDateTime2417 pub fn g_bookmark_file_get_added_date_time( 2418 bookmark: *mut GBookmarkFile, 2419 uri: *const c_char, 2420 error: *mut *mut GError, 2421 ) -> *mut GDateTime; g_bookmark_file_get_app_info( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *mut *mut c_char, count: *mut c_uint, stamp: *mut c_long, error: *mut *mut GError, ) -> gboolean2422 pub fn g_bookmark_file_get_app_info( 2423 bookmark: *mut GBookmarkFile, 2424 uri: *const c_char, 2425 name: *const c_char, 2426 exec: *mut *mut c_char, 2427 count: *mut c_uint, 2428 stamp: *mut c_long, 2429 error: *mut *mut GError, 2430 ) -> gboolean; 2431 #[cfg(any(feature = "v2_66", feature = "dox"))] 2432 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_get_application_info( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *mut *mut c_char, count: *mut c_uint, stamp: *mut *mut GDateTime, error: *mut *mut GError, ) -> gboolean2433 pub fn g_bookmark_file_get_application_info( 2434 bookmark: *mut GBookmarkFile, 2435 uri: *const c_char, 2436 name: *const c_char, 2437 exec: *mut *mut c_char, 2438 count: *mut c_uint, 2439 stamp: *mut *mut GDateTime, 2440 error: *mut *mut GError, 2441 ) -> gboolean; g_bookmark_file_get_applications( bookmark: *mut GBookmarkFile, uri: *const c_char, length: *mut size_t, error: *mut *mut GError, ) -> *mut *mut c_char2442 pub fn g_bookmark_file_get_applications( 2443 bookmark: *mut GBookmarkFile, 2444 uri: *const c_char, 2445 length: *mut size_t, 2446 error: *mut *mut GError, 2447 ) -> *mut *mut c_char; g_bookmark_file_get_description( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut c_char2448 pub fn g_bookmark_file_get_description( 2449 bookmark: *mut GBookmarkFile, 2450 uri: *const c_char, 2451 error: *mut *mut GError, 2452 ) -> *mut c_char; g_bookmark_file_get_groups( bookmark: *mut GBookmarkFile, uri: *const c_char, length: *mut size_t, error: *mut *mut GError, ) -> *mut *mut c_char2453 pub fn g_bookmark_file_get_groups( 2454 bookmark: *mut GBookmarkFile, 2455 uri: *const c_char, 2456 length: *mut size_t, 2457 error: *mut *mut GError, 2458 ) -> *mut *mut c_char; g_bookmark_file_get_icon( bookmark: *mut GBookmarkFile, uri: *const c_char, href: *mut *mut c_char, mime_type: *mut *mut c_char, error: *mut *mut GError, ) -> gboolean2459 pub fn g_bookmark_file_get_icon( 2460 bookmark: *mut GBookmarkFile, 2461 uri: *const c_char, 2462 href: *mut *mut c_char, 2463 mime_type: *mut *mut c_char, 2464 error: *mut *mut GError, 2465 ) -> gboolean; g_bookmark_file_get_is_private( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> gboolean2466 pub fn g_bookmark_file_get_is_private( 2467 bookmark: *mut GBookmarkFile, 2468 uri: *const c_char, 2469 error: *mut *mut GError, 2470 ) -> gboolean; g_bookmark_file_get_mime_type( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut c_char2471 pub fn g_bookmark_file_get_mime_type( 2472 bookmark: *mut GBookmarkFile, 2473 uri: *const c_char, 2474 error: *mut *mut GError, 2475 ) -> *mut c_char; g_bookmark_file_get_modified( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> c_long2476 pub fn g_bookmark_file_get_modified( 2477 bookmark: *mut GBookmarkFile, 2478 uri: *const c_char, 2479 error: *mut *mut GError, 2480 ) -> c_long; 2481 #[cfg(any(feature = "v2_66", feature = "dox"))] 2482 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_get_modified_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut GDateTime2483 pub fn g_bookmark_file_get_modified_date_time( 2484 bookmark: *mut GBookmarkFile, 2485 uri: *const c_char, 2486 error: *mut *mut GError, 2487 ) -> *mut GDateTime; g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> c_int2488 pub fn g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> c_int; g_bookmark_file_get_title( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut c_char2489 pub fn g_bookmark_file_get_title( 2490 bookmark: *mut GBookmarkFile, 2491 uri: *const c_char, 2492 error: *mut *mut GError, 2493 ) -> *mut c_char; g_bookmark_file_get_uris( bookmark: *mut GBookmarkFile, length: *mut size_t, ) -> *mut *mut c_char2494 pub fn g_bookmark_file_get_uris( 2495 bookmark: *mut GBookmarkFile, 2496 length: *mut size_t, 2497 ) -> *mut *mut c_char; g_bookmark_file_get_visited( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> c_long2498 pub fn g_bookmark_file_get_visited( 2499 bookmark: *mut GBookmarkFile, 2500 uri: *const c_char, 2501 error: *mut *mut GError, 2502 ) -> c_long; 2503 #[cfg(any(feature = "v2_66", feature = "dox"))] 2504 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_get_visited_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut GDateTime2505 pub fn g_bookmark_file_get_visited_date_time( 2506 bookmark: *mut GBookmarkFile, 2507 uri: *const c_char, 2508 error: *mut *mut GError, 2509 ) -> *mut GDateTime; g_bookmark_file_has_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError, ) -> gboolean2510 pub fn g_bookmark_file_has_application( 2511 bookmark: *mut GBookmarkFile, 2512 uri: *const c_char, 2513 name: *const c_char, 2514 error: *mut *mut GError, 2515 ) -> gboolean; g_bookmark_file_has_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError, ) -> gboolean2516 pub fn g_bookmark_file_has_group( 2517 bookmark: *mut GBookmarkFile, 2518 uri: *const c_char, 2519 group: *const c_char, 2520 error: *mut *mut GError, 2521 ) -> gboolean; g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const c_char) -> gboolean2522 pub fn g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const c_char) -> gboolean; g_bookmark_file_load_from_data( bookmark: *mut GBookmarkFile, data: *const u8, length: size_t, error: *mut *mut GError, ) -> gboolean2523 pub fn g_bookmark_file_load_from_data( 2524 bookmark: *mut GBookmarkFile, 2525 data: *const u8, 2526 length: size_t, 2527 error: *mut *mut GError, 2528 ) -> gboolean; g_bookmark_file_load_from_data_dirs( bookmark: *mut GBookmarkFile, file: *const c_char, full_path: *mut *mut c_char, error: *mut *mut GError, ) -> gboolean2529 pub fn g_bookmark_file_load_from_data_dirs( 2530 bookmark: *mut GBookmarkFile, 2531 file: *const c_char, 2532 full_path: *mut *mut c_char, 2533 error: *mut *mut GError, 2534 ) -> gboolean; g_bookmark_file_load_from_file( bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError, ) -> gboolean2535 pub fn g_bookmark_file_load_from_file( 2536 bookmark: *mut GBookmarkFile, 2537 filename: *const c_char, 2538 error: *mut *mut GError, 2539 ) -> gboolean; g_bookmark_file_move_item( bookmark: *mut GBookmarkFile, old_uri: *const c_char, new_uri: *const c_char, error: *mut *mut GError, ) -> gboolean2540 pub fn g_bookmark_file_move_item( 2541 bookmark: *mut GBookmarkFile, 2542 old_uri: *const c_char, 2543 new_uri: *const c_char, 2544 error: *mut *mut GError, 2545 ) -> gboolean; g_bookmark_file_remove_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError, ) -> gboolean2546 pub fn g_bookmark_file_remove_application( 2547 bookmark: *mut GBookmarkFile, 2548 uri: *const c_char, 2549 name: *const c_char, 2550 error: *mut *mut GError, 2551 ) -> gboolean; g_bookmark_file_remove_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError, ) -> gboolean2552 pub fn g_bookmark_file_remove_group( 2553 bookmark: *mut GBookmarkFile, 2554 uri: *const c_char, 2555 group: *const c_char, 2556 error: *mut *mut GError, 2557 ) -> gboolean; g_bookmark_file_remove_item( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> gboolean2558 pub fn g_bookmark_file_remove_item( 2559 bookmark: *mut GBookmarkFile, 2560 uri: *const c_char, 2561 error: *mut *mut GError, 2562 ) -> gboolean; g_bookmark_file_set_added( bookmark: *mut GBookmarkFile, uri: *const c_char, added: c_long, )2563 pub fn g_bookmark_file_set_added( 2564 bookmark: *mut GBookmarkFile, 2565 uri: *const c_char, 2566 added: c_long, 2567 ); 2568 #[cfg(any(feature = "v2_66", feature = "dox"))] 2569 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_set_added_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, added: *mut GDateTime, )2570 pub fn g_bookmark_file_set_added_date_time( 2571 bookmark: *mut GBookmarkFile, 2572 uri: *const c_char, 2573 added: *mut GDateTime, 2574 ); g_bookmark_file_set_app_info( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, count: c_int, stamp: c_long, error: *mut *mut GError, ) -> gboolean2575 pub fn g_bookmark_file_set_app_info( 2576 bookmark: *mut GBookmarkFile, 2577 uri: *const c_char, 2578 name: *const c_char, 2579 exec: *const c_char, 2580 count: c_int, 2581 stamp: c_long, 2582 error: *mut *mut GError, 2583 ) -> gboolean; 2584 #[cfg(any(feature = "v2_66", feature = "dox"))] 2585 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_set_application_info( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, count: c_int, stamp: *mut GDateTime, error: *mut *mut GError, ) -> gboolean2586 pub fn g_bookmark_file_set_application_info( 2587 bookmark: *mut GBookmarkFile, 2588 uri: *const c_char, 2589 name: *const c_char, 2590 exec: *const c_char, 2591 count: c_int, 2592 stamp: *mut GDateTime, 2593 error: *mut *mut GError, 2594 ) -> gboolean; g_bookmark_file_set_description( bookmark: *mut GBookmarkFile, uri: *const c_char, description: *const c_char, )2595 pub fn g_bookmark_file_set_description( 2596 bookmark: *mut GBookmarkFile, 2597 uri: *const c_char, 2598 description: *const c_char, 2599 ); g_bookmark_file_set_groups( bookmark: *mut GBookmarkFile, uri: *const c_char, groups: *mut *const c_char, length: size_t, )2600 pub fn g_bookmark_file_set_groups( 2601 bookmark: *mut GBookmarkFile, 2602 uri: *const c_char, 2603 groups: *mut *const c_char, 2604 length: size_t, 2605 ); g_bookmark_file_set_icon( bookmark: *mut GBookmarkFile, uri: *const c_char, href: *const c_char, mime_type: *const c_char, )2606 pub fn g_bookmark_file_set_icon( 2607 bookmark: *mut GBookmarkFile, 2608 uri: *const c_char, 2609 href: *const c_char, 2610 mime_type: *const c_char, 2611 ); g_bookmark_file_set_is_private( bookmark: *mut GBookmarkFile, uri: *const c_char, is_private: gboolean, )2612 pub fn g_bookmark_file_set_is_private( 2613 bookmark: *mut GBookmarkFile, 2614 uri: *const c_char, 2615 is_private: gboolean, 2616 ); g_bookmark_file_set_mime_type( bookmark: *mut GBookmarkFile, uri: *const c_char, mime_type: *const c_char, )2617 pub fn g_bookmark_file_set_mime_type( 2618 bookmark: *mut GBookmarkFile, 2619 uri: *const c_char, 2620 mime_type: *const c_char, 2621 ); g_bookmark_file_set_modified( bookmark: *mut GBookmarkFile, uri: *const c_char, modified: c_long, )2622 pub fn g_bookmark_file_set_modified( 2623 bookmark: *mut GBookmarkFile, 2624 uri: *const c_char, 2625 modified: c_long, 2626 ); 2627 #[cfg(any(feature = "v2_66", feature = "dox"))] 2628 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_set_modified_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, modified: *mut GDateTime, )2629 pub fn g_bookmark_file_set_modified_date_time( 2630 bookmark: *mut GBookmarkFile, 2631 uri: *const c_char, 2632 modified: *mut GDateTime, 2633 ); g_bookmark_file_set_title( bookmark: *mut GBookmarkFile, uri: *const c_char, title: *const c_char, )2634 pub fn g_bookmark_file_set_title( 2635 bookmark: *mut GBookmarkFile, 2636 uri: *const c_char, 2637 title: *const c_char, 2638 ); g_bookmark_file_set_visited( bookmark: *mut GBookmarkFile, uri: *const c_char, visited: c_long, )2639 pub fn g_bookmark_file_set_visited( 2640 bookmark: *mut GBookmarkFile, 2641 uri: *const c_char, 2642 visited: c_long, 2643 ); 2644 #[cfg(any(feature = "v2_66", feature = "dox"))] 2645 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_66")))] g_bookmark_file_set_visited_date_time( bookmark: *mut GBookmarkFile, uri: *const c_char, visited: *mut GDateTime, )2646 pub fn g_bookmark_file_set_visited_date_time( 2647 bookmark: *mut GBookmarkFile, 2648 uri: *const c_char, 2649 visited: *mut GDateTime, 2650 ); g_bookmark_file_to_data( bookmark: *mut GBookmarkFile, length: *mut size_t, error: *mut *mut GError, ) -> *mut u82651 pub fn g_bookmark_file_to_data( 2652 bookmark: *mut GBookmarkFile, 2653 length: *mut size_t, 2654 error: *mut *mut GError, 2655 ) -> *mut u8; g_bookmark_file_to_file( bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError, ) -> gboolean2656 pub fn g_bookmark_file_to_file( 2657 bookmark: *mut GBookmarkFile, 2658 filename: *const c_char, 2659 error: *mut *mut GError, 2660 ) -> gboolean; g_bookmark_file_error_quark() -> GQuark2661 pub fn g_bookmark_file_error_quark() -> GQuark; g_bookmark_file_new() -> *mut GBookmarkFile2662 pub fn g_bookmark_file_new() -> *mut GBookmarkFile; 2663 2664 //========================================================================= 2665 // GByteArray 2666 //========================================================================= g_byte_array_get_type() -> GType2667 pub fn g_byte_array_get_type() -> GType; g_byte_array_append( array: *mut GByteArray, data: *const u8, len: c_uint, ) -> *mut GByteArray2668 pub fn g_byte_array_append( 2669 array: *mut GByteArray, 2670 data: *const u8, 2671 len: c_uint, 2672 ) -> *mut GByteArray; g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u82673 pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u8; g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes2674 pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes; g_byte_array_new() -> *mut GByteArray2675 pub fn g_byte_array_new() -> *mut GByteArray; g_byte_array_new_take(data: *mut u8, len: size_t) -> *mut GByteArray2676 pub fn g_byte_array_new_take(data: *mut u8, len: size_t) -> *mut GByteArray; g_byte_array_prepend( array: *mut GByteArray, data: *const u8, len: c_uint, ) -> *mut GByteArray2677 pub fn g_byte_array_prepend( 2678 array: *mut GByteArray, 2679 data: *const u8, 2680 len: c_uint, 2681 ) -> *mut GByteArray; g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray2682 pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray; g_byte_array_remove_index(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray2683 pub fn g_byte_array_remove_index(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray; g_byte_array_remove_index_fast( array: *mut GByteArray, index_: c_uint, ) -> *mut GByteArray2684 pub fn g_byte_array_remove_index_fast( 2685 array: *mut GByteArray, 2686 index_: c_uint, 2687 ) -> *mut GByteArray; g_byte_array_remove_range( array: *mut GByteArray, index_: c_uint, length: c_uint, ) -> *mut GByteArray2688 pub fn g_byte_array_remove_range( 2689 array: *mut GByteArray, 2690 index_: c_uint, 2691 length: c_uint, 2692 ) -> *mut GByteArray; g_byte_array_set_size(array: *mut GByteArray, length: c_uint) -> *mut GByteArray2693 pub fn g_byte_array_set_size(array: *mut GByteArray, length: c_uint) -> *mut GByteArray; g_byte_array_sized_new(reserved_size: c_uint) -> *mut GByteArray2694 pub fn g_byte_array_sized_new(reserved_size: c_uint) -> *mut GByteArray; g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc)2695 pub fn g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc); g_byte_array_sort_with_data( array: *mut GByteArray, compare_func: GCompareDataFunc, user_data: gpointer, )2696 pub fn g_byte_array_sort_with_data( 2697 array: *mut GByteArray, 2698 compare_func: GCompareDataFunc, 2699 user_data: gpointer, 2700 ); 2701 #[cfg(any(feature = "v2_64", feature = "dox"))] 2702 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_64")))] g_byte_array_steal(array: *mut GByteArray, len: *mut size_t) -> *mut u82703 pub fn g_byte_array_steal(array: *mut GByteArray, len: *mut size_t) -> *mut u8; g_byte_array_unref(array: *mut GByteArray)2704 pub fn g_byte_array_unref(array: *mut GByteArray); 2705 2706 //========================================================================= 2707 // GBytes 2708 //========================================================================= g_bytes_get_type() -> GType2709 pub fn g_bytes_get_type() -> GType; g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes2710 pub fn g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes; g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes2711 pub fn g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes; g_bytes_new_take(data: gpointer, size: size_t) -> *mut GBytes2712 pub fn g_bytes_new_take(data: gpointer, size: size_t) -> *mut GBytes; g_bytes_new_with_free_func( data: gconstpointer, size: size_t, free_func: GDestroyNotify, user_data: gpointer, ) -> *mut GBytes2713 pub fn g_bytes_new_with_free_func( 2714 data: gconstpointer, 2715 size: size_t, 2716 free_func: GDestroyNotify, 2717 user_data: gpointer, 2718 ) -> *mut GBytes; g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int2719 pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int; g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean2720 pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean; g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer2721 pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer; g_bytes_get_size(bytes: *mut GBytes) -> size_t2722 pub fn g_bytes_get_size(bytes: *mut GBytes) -> size_t; g_bytes_hash(bytes: gconstpointer) -> c_uint2723 pub fn g_bytes_hash(bytes: gconstpointer) -> c_uint; g_bytes_new_from_bytes( bytes: *mut GBytes, offset: size_t, length: size_t, ) -> *mut GBytes2724 pub fn g_bytes_new_from_bytes( 2725 bytes: *mut GBytes, 2726 offset: size_t, 2727 length: size_t, 2728 ) -> *mut GBytes; g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes2729 pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes; g_bytes_unref(bytes: *mut GBytes)2730 pub fn g_bytes_unref(bytes: *mut GBytes); g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray2731 pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray; g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer2732 pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer; 2733 2734 //========================================================================= 2735 // GChecksum 2736 //========================================================================= g_checksum_get_type() -> GType2737 pub fn g_checksum_get_type() -> GType; g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum2738 pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum; g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum2739 pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum; g_checksum_free(checksum: *mut GChecksum)2740 pub fn g_checksum_free(checksum: *mut GChecksum); g_checksum_get_digest( checksum: *mut GChecksum, buffer: *mut u8, digest_len: *mut size_t, )2741 pub fn g_checksum_get_digest( 2742 checksum: *mut GChecksum, 2743 buffer: *mut u8, 2744 digest_len: *mut size_t, 2745 ); g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char2746 pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char; g_checksum_reset(checksum: *mut GChecksum)2747 pub fn g_checksum_reset(checksum: *mut GChecksum); g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t)2748 pub fn g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t); g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t2749 pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t; 2750 2751 //========================================================================= 2752 // GCond 2753 //========================================================================= g_cond_broadcast(cond: *mut GCond)2754 pub fn g_cond_broadcast(cond: *mut GCond); g_cond_clear(cond: *mut GCond)2755 pub fn g_cond_clear(cond: *mut GCond); g_cond_init(cond: *mut GCond)2756 pub fn g_cond_init(cond: *mut GCond); g_cond_signal(cond: *mut GCond)2757 pub fn g_cond_signal(cond: *mut GCond); g_cond_wait(cond: *mut GCond, mutex: *mut GMutex)2758 pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex); g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean2759 pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean; 2760 2761 //========================================================================= 2762 // GDate 2763 //========================================================================= g_date_get_type() -> GType2764 pub fn g_date_get_type() -> GType; g_date_new() -> *mut GDate2765 pub fn g_date_new() -> *mut GDate; g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate2766 pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate; g_date_new_julian(julian_day: u32) -> *mut GDate2767 pub fn g_date_new_julian(julian_day: u32) -> *mut GDate; g_date_add_days(date: *mut GDate, n_days: c_uint)2768 pub fn g_date_add_days(date: *mut GDate, n_days: c_uint); g_date_add_months(date: *mut GDate, n_months: c_uint)2769 pub fn g_date_add_months(date: *mut GDate, n_months: c_uint); g_date_add_years(date: *mut GDate, n_years: c_uint)2770 pub fn g_date_add_years(date: *mut GDate, n_years: c_uint); g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate)2771 pub fn g_date_clamp(date: *mut GDate, min_date: *const GDate, max_date: *const GDate); g_date_clear(date: *mut GDate, n_dates: c_uint)2772 pub fn g_date_clear(date: *mut GDate, n_dates: c_uint); g_date_compare(lhs: *const GDate, rhs: *const GDate) -> c_int2773 pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> c_int; 2774 #[cfg(any(feature = "v2_56", feature = "dox"))] 2775 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_56")))] g_date_copy(date: *const GDate) -> *mut GDate2776 pub fn g_date_copy(date: *const GDate) -> *mut GDate; g_date_days_between(date1: *const GDate, date2: *const GDate) -> c_int2777 pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> c_int; g_date_free(date: *mut GDate)2778 pub fn g_date_free(date: *mut GDate); g_date_get_day(date: *const GDate) -> GDateDay2779 pub fn g_date_get_day(date: *const GDate) -> GDateDay; g_date_get_day_of_year(date: *const GDate) -> c_uint2780 pub fn g_date_get_day_of_year(date: *const GDate) -> c_uint; g_date_get_iso8601_week_of_year(date: *const GDate) -> c_uint2781 pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> c_uint; g_date_get_julian(date: *const GDate) -> u322782 pub fn g_date_get_julian(date: *const GDate) -> u32; g_date_get_monday_week_of_year(date: *const GDate) -> c_uint2783 pub fn g_date_get_monday_week_of_year(date: *const GDate) -> c_uint; g_date_get_month(date: *const GDate) -> GDateMonth2784 pub fn g_date_get_month(date: *const GDate) -> GDateMonth; g_date_get_sunday_week_of_year(date: *const GDate) -> c_uint2785 pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> c_uint; g_date_get_weekday(date: *const GDate) -> GDateWeekday2786 pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday; g_date_get_year(date: *const GDate) -> GDateYear2787 pub fn g_date_get_year(date: *const GDate) -> GDateYear; g_date_is_first_of_month(date: *const GDate) -> gboolean2788 pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean; g_date_is_last_of_month(date: *const GDate) -> gboolean2789 pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean; g_date_order(date1: *mut GDate, date2: *mut GDate)2790 pub fn g_date_order(date1: *mut GDate, date2: *mut GDate); g_date_set_day(date: *mut GDate, day: GDateDay)2791 pub fn g_date_set_day(date: *mut GDate, day: GDateDay); g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear)2792 pub fn g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear); g_date_set_julian(date: *mut GDate, julian_date: u32)2793 pub fn g_date_set_julian(date: *mut GDate, julian_date: u32); g_date_set_month(date: *mut GDate, month: GDateMonth)2794 pub fn g_date_set_month(date: *mut GDate, month: GDateMonth); g_date_set_parse(date: *mut GDate, str: *const c_char)2795 pub fn g_date_set_parse(date: *mut GDate, str: *const c_char); g_date_set_time(date: *mut GDate, time_: GTime)2796 pub fn g_date_set_time(date: *mut GDate, time_: GTime); g_date_set_time_t(date: *mut GDate, timet: c_long)2797 pub fn g_date_set_time_t(date: *mut GDate, timet: c_long); g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal)2798 pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal); g_date_set_year(date: *mut GDate, year: GDateYear)2799 pub fn g_date_set_year(date: *mut GDate, year: GDateYear); g_date_subtract_days(date: *mut GDate, n_days: c_uint)2800 pub fn g_date_subtract_days(date: *mut GDate, n_days: c_uint); g_date_subtract_months(date: *mut GDate, n_months: c_uint)2801 pub fn g_date_subtract_months(date: *mut GDate, n_months: c_uint); g_date_subtract_years(date: *mut GDate, n_years: c_uint)2802 pub fn g_date_subtract_years(date: *mut GDate, n_years: c_uint); 2803 //pub fn g_date_to_struct_tm(date: *const GDate, tm: /*Unimplemented*/*mut tm); g_date_valid(date: *const GDate) -> gboolean2804 pub fn g_date_valid(date: *const GDate) -> gboolean; g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> u82805 pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> u8; g_date_get_monday_weeks_in_year(year: GDateYear) -> u82806 pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> u8; g_date_get_sunday_weeks_in_year(year: GDateYear) -> u82807 pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> u8; g_date_is_leap_year(year: GDateYear) -> gboolean2808 pub fn g_date_is_leap_year(year: GDateYear) -> gboolean; g_date_strftime( s: *mut c_char, slen: size_t, format: *const c_char, date: *const GDate, ) -> size_t2809 pub fn g_date_strftime( 2810 s: *mut c_char, 2811 slen: size_t, 2812 format: *const c_char, 2813 date: *const GDate, 2814 ) -> size_t; g_date_valid_day(day: GDateDay) -> gboolean2815 pub fn g_date_valid_day(day: GDateDay) -> gboolean; g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean2816 pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean; g_date_valid_julian(julian_date: u32) -> gboolean2817 pub fn g_date_valid_julian(julian_date: u32) -> gboolean; g_date_valid_month(month: GDateMonth) -> gboolean2818 pub fn g_date_valid_month(month: GDateMonth) -> gboolean; g_date_valid_weekday(weekday: GDateWeekday) -> gboolean2819 pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean; g_date_valid_year(year: GDateYear) -> gboolean2820 pub fn g_date_valid_year(year: GDateYear) -> gboolean; 2821 2822 //========================================================================= 2823 // GDateTime 2824 //========================================================================= g_date_time_get_type() -> GType2825 pub fn g_date_time_get_type() -> GType; g_date_time_new( tz: *mut GTimeZone, year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double, ) -> *mut GDateTime2826 pub fn g_date_time_new( 2827 tz: *mut GTimeZone, 2828 year: c_int, 2829 month: c_int, 2830 day: c_int, 2831 hour: c_int, 2832 minute: c_int, 2833 seconds: c_double, 2834 ) -> *mut GDateTime; 2835 #[cfg(any(feature = "v2_56", feature = "dox"))] 2836 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_56")))] g_date_time_new_from_iso8601( text: *const c_char, default_tz: *mut GTimeZone, ) -> *mut GDateTime2837 pub fn g_date_time_new_from_iso8601( 2838 text: *const c_char, 2839 default_tz: *mut GTimeZone, 2840 ) -> *mut GDateTime; g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime2841 pub fn g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime; g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime2842 pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime; g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime2843 pub fn g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime; g_date_time_new_from_unix_utc(t: i64) -> *mut GDateTime2844 pub fn g_date_time_new_from_unix_utc(t: i64) -> *mut GDateTime; g_date_time_new_local( year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double, ) -> *mut GDateTime2845 pub fn g_date_time_new_local( 2846 year: c_int, 2847 month: c_int, 2848 day: c_int, 2849 hour: c_int, 2850 minute: c_int, 2851 seconds: c_double, 2852 ) -> *mut GDateTime; g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime2853 pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime; g_date_time_new_now_local() -> *mut GDateTime2854 pub fn g_date_time_new_now_local() -> *mut GDateTime; g_date_time_new_now_utc() -> *mut GDateTime2855 pub fn g_date_time_new_now_utc() -> *mut GDateTime; g_date_time_new_utc( year: c_int, month: c_int, day: c_int, hour: c_int, minute: c_int, seconds: c_double, ) -> *mut GDateTime2856 pub fn g_date_time_new_utc( 2857 year: c_int, 2858 month: c_int, 2859 day: c_int, 2860 hour: c_int, 2861 minute: c_int, 2862 seconds: c_double, 2863 ) -> *mut GDateTime; g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime2864 pub fn g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime; g_date_time_add_days(datetime: *mut GDateTime, days: c_int) -> *mut GDateTime2865 pub fn g_date_time_add_days(datetime: *mut GDateTime, days: c_int) -> *mut GDateTime; g_date_time_add_full( datetime: *mut GDateTime, years: c_int, months: c_int, days: c_int, hours: c_int, minutes: c_int, seconds: c_double, ) -> *mut GDateTime2866 pub fn g_date_time_add_full( 2867 datetime: *mut GDateTime, 2868 years: c_int, 2869 months: c_int, 2870 days: c_int, 2871 hours: c_int, 2872 minutes: c_int, 2873 seconds: c_double, 2874 ) -> *mut GDateTime; g_date_time_add_hours(datetime: *mut GDateTime, hours: c_int) -> *mut GDateTime2875 pub fn g_date_time_add_hours(datetime: *mut GDateTime, hours: c_int) -> *mut GDateTime; g_date_time_add_minutes(datetime: *mut GDateTime, minutes: c_int) -> *mut GDateTime2876 pub fn g_date_time_add_minutes(datetime: *mut GDateTime, minutes: c_int) -> *mut GDateTime; g_date_time_add_months(datetime: *mut GDateTime, months: c_int) -> *mut GDateTime2877 pub fn g_date_time_add_months(datetime: *mut GDateTime, months: c_int) -> *mut GDateTime; g_date_time_add_seconds(datetime: *mut GDateTime, seconds: c_double) -> *mut GDateTime2878 pub fn g_date_time_add_seconds(datetime: *mut GDateTime, seconds: c_double) -> *mut GDateTime; g_date_time_add_weeks(datetime: *mut GDateTime, weeks: c_int) -> *mut GDateTime2879 pub fn g_date_time_add_weeks(datetime: *mut GDateTime, weeks: c_int) -> *mut GDateTime; g_date_time_add_years(datetime: *mut GDateTime, years: c_int) -> *mut GDateTime2880 pub fn g_date_time_add_years(datetime: *mut GDateTime, years: c_int) -> *mut GDateTime; g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> c_int2881 pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> c_int; g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan2882 pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan; g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean2883 pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean; g_date_time_format(datetime: *mut GDateTime, format: *const c_char) -> *mut c_char2884 pub fn g_date_time_format(datetime: *mut GDateTime, format: *const c_char) -> *mut c_char; 2885 #[cfg(any(feature = "v2_62", feature = "dox"))] 2886 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_62")))] g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut c_char2887 pub fn g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut c_char; g_date_time_get_day_of_month(datetime: *mut GDateTime) -> c_int2888 pub fn g_date_time_get_day_of_month(datetime: *mut GDateTime) -> c_int; g_date_time_get_day_of_week(datetime: *mut GDateTime) -> c_int2889 pub fn g_date_time_get_day_of_week(datetime: *mut GDateTime) -> c_int; g_date_time_get_day_of_year(datetime: *mut GDateTime) -> c_int2890 pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_hour(datetime: *mut GDateTime) -> c_int2891 pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> c_int; g_date_time_get_microsecond(datetime: *mut GDateTime) -> c_int2892 pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> c_int; g_date_time_get_minute(datetime: *mut GDateTime) -> c_int2893 pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> c_int; g_date_time_get_month(datetime: *mut GDateTime) -> c_int2894 pub fn g_date_time_get_month(datetime: *mut GDateTime) -> c_int; g_date_time_get_second(datetime: *mut GDateTime) -> c_int2895 pub fn g_date_time_get_second(datetime: *mut GDateTime) -> c_int; g_date_time_get_seconds(datetime: *mut GDateTime) -> c_double2896 pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> c_double; 2897 #[cfg(any(feature = "v2_58", feature = "dox"))] 2898 #[cfg_attr(feature = "dox", doc(cfg(feature = "v2_58")))] g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone2899 pub fn g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone; g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const c_char2900 pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const c_char; g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan2901 pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan; g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> c_int2902 pub fn g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_week_of_year(datetime: *mut GDateTime) -> c_int2903 pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_year(datetime: *mut GDateTime) -> c_int2904 pub fn g_date_time_get_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_ymd( datetime: *mut GDateTime, year: *mut c_int, month: *mut c_int, day: *mut c_int, )2905 pub fn g_date_time_get_ymd( 2906 datetime: *mut GDateTime, 2907 year: *mut c_int, 2908 month: *mut c_int, 2909 day: *mut c_int, 2910 ); g_date_time_hash(datetime: gconstpointer) -> c_uint2911 pub fn g_date_time_hash(datetime: gconstpointer) -> c_uint; g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean2912 pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean; g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime2913 pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime2914 pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean2915 pub fn g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean; g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime2916 pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime; g_date_time_to_unix(datetime: *mut GDateTime) -> i642917 pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> i64; g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime2918 pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_unref(datetime: *mut GDateTime)2919 pub fn g_date_time_unref(datetime: *mut GDateTime); 2920 2921 //========================================================================= 2922 // GDir 2923 //========================================================================= g_dir_close(dir: *mut GDir)2924 pub fn g_dir_close(dir: *mut GDir); 2925 #[cfg(any(windows, feature = "dox"))] 2926 #[cfg_attr(feature = "dox", doc(cfg(windows)))] g_dir_read_name_utf8(dir: *mut GDir) -> *const c_char2927 pub fn g_dir_read_name_utf8(dir: *mut GDir) -> *const c_char; g_dir_read_name(dir: *mut GDir) -> *const c_char2928 pub fn g_dir_read_name(dir: *mut GDir) -> *const c_char; g_dir_rewind(dir: *mut GDir)2929 pub fn g_dir_rewind(dir: *mut GDir); g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char2930 pub fn g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char; 2931 #[cfg(any(windows, feature = "dox"))] 2932 #[cfg_attr(feature = "dox", doc(cfg(windows)))] g_dir_open_utf8( path: *const c_char, flags: c_uint, error: *mut *mut GError, ) -> *mut GDir2933 pub fn g_dir_open_utf8( 2934 path: *const c_char, 2935 flags: c_uint, 2936 error: *mut *mut GError, 2937 ) -> *mut GDir; g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir2938 pub fn g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir; 2939 2940 //========================================================================= 2941 // GError 2942 //========================================================================= g_error_get_type() -> GType2943 pub fn g_error_get_type() -> GType; g_error_new(domain: GQuark, code: c_int, format: *const c_char, ...) -> *mut GError2944 pub fn g_error_new(domain: GQuark, code: c_int, format: *const c_char, ...) -> *mut GError; g_error_new_literal(domain: GQuark, code: c_int, message: *const c_char) -> *mut GError2945 pub fn g_error_new_literal(domain: GQuark, code: c_int, message: *const c_char) -> *mut GError; 2946 //pub fn g_error_new_valist(domain: GQuark, code: c_int, format: *const c_char, args: /*Unimplemented*/va_list) -> *mut GError; g_error_copy(error: *const GError) -> *mut GError2947 pub fn g_error_copy(error: *const GError) -> *mut GError; g_error_free(error: *mut GError)2948 pub fn g_error_free(error: *mut GError); g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean2949 pub fn g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean; 2950 2951 //========================================================================= 2952 // GHashTable 2953 //========================================================================= g_hash_table_get_type() -> GType2954 pub fn g_hash_table_get_type() -> GType; g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean2955 pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean; g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean2956 pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; g_hash_table_destroy(hash_table: *mut GHashTable)2957 pub fn g_hash_table_destroy(hash_table: *mut GHashTable); g_hash_table_find( hash_table: *mut GHashTable, predicate: GHRFunc, user_data: gpointer, ) -> gpointer2958 pub fn g_hash_table_find( 2959 hash_table: *mut GHashTable, 2960 predicate: GHRFunc, 2961 user_data: gpointer, 2962 ) -> gpointer; g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer)2963 pub fn g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer); g_hash_table_foreach_remove( hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer, ) -> c_uint2964 pub fn g_hash_table_foreach_remove( 2965 hash_table: *mut GHashTable, 2966 func: GHRFunc, 2967 user_data: gpointer, 2968 ) -> c_uint; g_hash_table_foreach_steal( hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer, ) -> c_uint2969 pub fn g_hash_table_foreach_steal( 2970 hash_table: *mut GHashTable, 2971 func: GHRFunc, 2972 user_data: gpointer, 2973 ) -> c_uint; g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList2974 pub fn g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList; g_hash_table_get_keys_as_array( hash_table: *mut GHashTable, length: *mut c_uint, ) -> *mut gpointer2975 pub fn g_hash_table_get_keys_as_array( 2976 hash_table: *mut GHashTable, 2977 length: *mut c_uint, 2978 ) -> *mut gpointer; g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList2979 pub fn g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList; g_hash_table_insert( hash_table: *mut GHashTable, key: gpointer, value: gpointer, ) -> gboolean2980 pub fn g_hash_table_insert( 2981 hash_table: *mut GHashTable, 2982 key: gpointer, 2983 value: gpointer, 2984 ) -> gboolean; g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer2985 pub fn g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer; g_hash_table_lookup_extended( hash_table: *mut GHashTable, lookup_key: gconstpointer, orig_key: *mut gpointer, value: *mut gpointer, ) -> gboolean2986 pub fn g_hash_table_lookup_extended( 2987 hash_table: *mut GHashTable, 2988 lookup_key: gconstpointer, 2989 orig_key: *mut gpointer, 2990 value: *mut gpointer, 2991 ) -> gboolean; g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable2992 pub fn g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable; g_hash_table_new_full( hash_func: GHashFunc, key_equal_func: GEqualFunc, key_destroy_func: GDestroyNotify, value_destroy_func: GDestroyNotify, ) -> *mut GHashTable2993 pub fn g_hash_table_new_full( 2994 hash_func: GHashFunc, 2995 key_equal_func: GEqualFunc, 2996 key_destroy_func: GDestroyNotify, 2997 value_destroy_func: GDestroyNotify, 2998 ) -> *mut GHashTable; g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable2999 pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable; g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean3000 pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; g_hash_table_remove_all(hash_table: *mut GHashTable)3001 pub fn g_hash_table_remove_all(hash_table: *mut GHashTable); g_hash_table_replace( hash_table: *mut GHashTable, key: gpointer, value: gpointer, ) -> gboolean3002 pub fn g_hash_table_replace( 3003 hash_table: *mut GHashTable, 3004 key: gpointer, 3005 value: gpointer, 3006 ) -> gboolean; g_hash_table_size(hash_table: *mut GHashTable) -> c_uint3007