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 )] 11 12 extern crate libc; 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 GMutexLocker = c_void; 35 pub type GQuark = u32; 36 pub type GRWLockReaderLocker = c_void; 37 pub type GRWLockWriterLocker = c_void; 38 pub type GRecMutexLocker = c_void; 39 pub type GRefString = c_char; 40 pub type GStrv = *mut *mut c_char; 41 pub type GTime = i32; 42 pub type GTimeSpan = i64; 43 pub type GType = size_t; 44 45 // Enums 46 pub type GBookmarkFileError = c_int; 47 pub const G_BOOKMARK_FILE_ERROR_INVALID_URI: GBookmarkFileError = 0; 48 pub const G_BOOKMARK_FILE_ERROR_INVALID_VALUE: GBookmarkFileError = 1; 49 pub const G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED: GBookmarkFileError = 2; 50 pub const G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND: GBookmarkFileError = 3; 51 pub const G_BOOKMARK_FILE_ERROR_READ: GBookmarkFileError = 4; 52 pub const G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING: GBookmarkFileError = 5; 53 pub const G_BOOKMARK_FILE_ERROR_WRITE: GBookmarkFileError = 6; 54 pub const G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND: GBookmarkFileError = 7; 55 56 pub type GChecksumType = c_int; 57 pub const G_CHECKSUM_MD5: GChecksumType = 0; 58 pub const G_CHECKSUM_SHA1: GChecksumType = 1; 59 pub const G_CHECKSUM_SHA256: GChecksumType = 2; 60 pub const G_CHECKSUM_SHA512: GChecksumType = 3; 61 pub const G_CHECKSUM_SHA384: GChecksumType = 4; 62 63 pub type GConvertError = c_int; 64 pub const G_CONVERT_ERROR_NO_CONVERSION: GConvertError = 0; 65 pub const G_CONVERT_ERROR_ILLEGAL_SEQUENCE: GConvertError = 1; 66 pub const G_CONVERT_ERROR_FAILED: GConvertError = 2; 67 pub const G_CONVERT_ERROR_PARTIAL_INPUT: GConvertError = 3; 68 pub const G_CONVERT_ERROR_BAD_URI: GConvertError = 4; 69 pub const G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: GConvertError = 5; 70 pub const G_CONVERT_ERROR_NO_MEMORY: GConvertError = 6; 71 pub const G_CONVERT_ERROR_EMBEDDED_NUL: GConvertError = 7; 72 73 pub type GDateDMY = c_int; 74 pub const G_DATE_DAY: GDateDMY = 0; 75 pub const G_DATE_MONTH: GDateDMY = 1; 76 pub const G_DATE_YEAR: GDateDMY = 2; 77 78 pub type GDateMonth = c_int; 79 pub const G_DATE_BAD_MONTH: GDateMonth = 0; 80 pub const G_DATE_JANUARY: GDateMonth = 1; 81 pub const G_DATE_FEBRUARY: GDateMonth = 2; 82 pub const G_DATE_MARCH: GDateMonth = 3; 83 pub const G_DATE_APRIL: GDateMonth = 4; 84 pub const G_DATE_MAY: GDateMonth = 5; 85 pub const G_DATE_JUNE: GDateMonth = 6; 86 pub const G_DATE_JULY: GDateMonth = 7; 87 pub const G_DATE_AUGUST: GDateMonth = 8; 88 pub const G_DATE_SEPTEMBER: GDateMonth = 9; 89 pub const G_DATE_OCTOBER: GDateMonth = 10; 90 pub const G_DATE_NOVEMBER: GDateMonth = 11; 91 pub const G_DATE_DECEMBER: GDateMonth = 12; 92 93 pub type GDateWeekday = c_int; 94 pub const G_DATE_BAD_WEEKDAY: GDateWeekday = 0; 95 pub const G_DATE_MONDAY: GDateWeekday = 1; 96 pub const G_DATE_TUESDAY: GDateWeekday = 2; 97 pub const G_DATE_WEDNESDAY: GDateWeekday = 3; 98 pub const G_DATE_THURSDAY: GDateWeekday = 4; 99 pub const G_DATE_FRIDAY: GDateWeekday = 5; 100 pub const G_DATE_SATURDAY: GDateWeekday = 6; 101 pub const G_DATE_SUNDAY: GDateWeekday = 7; 102 103 pub type GErrorType = c_int; 104 pub const G_ERR_UNKNOWN: GErrorType = 0; 105 pub const G_ERR_UNEXP_EOF: GErrorType = 1; 106 pub const G_ERR_UNEXP_EOF_IN_STRING: GErrorType = 2; 107 pub const G_ERR_UNEXP_EOF_IN_COMMENT: GErrorType = 3; 108 pub const G_ERR_NON_DIGIT_IN_CONST: GErrorType = 4; 109 pub const G_ERR_DIGIT_RADIX: GErrorType = 5; 110 pub const G_ERR_FLOAT_RADIX: GErrorType = 6; 111 pub const G_ERR_FLOAT_MALFORMED: GErrorType = 7; 112 113 pub type GFileError = c_int; 114 pub const G_FILE_ERROR_EXIST: GFileError = 0; 115 pub const G_FILE_ERROR_ISDIR: GFileError = 1; 116 pub const G_FILE_ERROR_ACCES: GFileError = 2; 117 pub const G_FILE_ERROR_NAMETOOLONG: GFileError = 3; 118 pub const G_FILE_ERROR_NOENT: GFileError = 4; 119 pub const G_FILE_ERROR_NOTDIR: GFileError = 5; 120 pub const G_FILE_ERROR_NXIO: GFileError = 6; 121 pub const G_FILE_ERROR_NODEV: GFileError = 7; 122 pub const G_FILE_ERROR_ROFS: GFileError = 8; 123 pub const G_FILE_ERROR_TXTBSY: GFileError = 9; 124 pub const G_FILE_ERROR_FAULT: GFileError = 10; 125 pub const G_FILE_ERROR_LOOP: GFileError = 11; 126 pub const G_FILE_ERROR_NOSPC: GFileError = 12; 127 pub const G_FILE_ERROR_NOMEM: GFileError = 13; 128 pub const G_FILE_ERROR_MFILE: GFileError = 14; 129 pub const G_FILE_ERROR_NFILE: GFileError = 15; 130 pub const G_FILE_ERROR_BADF: GFileError = 16; 131 pub const G_FILE_ERROR_INVAL: GFileError = 17; 132 pub const G_FILE_ERROR_PIPE: GFileError = 18; 133 pub const G_FILE_ERROR_AGAIN: GFileError = 19; 134 pub const G_FILE_ERROR_INTR: GFileError = 20; 135 pub const G_FILE_ERROR_IO: GFileError = 21; 136 pub const G_FILE_ERROR_PERM: GFileError = 22; 137 pub const G_FILE_ERROR_NOSYS: GFileError = 23; 138 pub const G_FILE_ERROR_FAILED: GFileError = 24; 139 140 pub type GIOChannelError = c_int; 141 pub const G_IO_CHANNEL_ERROR_FBIG: GIOChannelError = 0; 142 pub const G_IO_CHANNEL_ERROR_INVAL: GIOChannelError = 1; 143 pub const G_IO_CHANNEL_ERROR_IO: GIOChannelError = 2; 144 pub const G_IO_CHANNEL_ERROR_ISDIR: GIOChannelError = 3; 145 pub const G_IO_CHANNEL_ERROR_NOSPC: GIOChannelError = 4; 146 pub const G_IO_CHANNEL_ERROR_NXIO: GIOChannelError = 5; 147 pub const G_IO_CHANNEL_ERROR_OVERFLOW: GIOChannelError = 6; 148 pub const G_IO_CHANNEL_ERROR_PIPE: GIOChannelError = 7; 149 pub const G_IO_CHANNEL_ERROR_FAILED: GIOChannelError = 8; 150 151 pub type GIOError = c_int; 152 pub const G_IO_ERROR_NONE: GIOError = 0; 153 pub const G_IO_ERROR_AGAIN: GIOError = 1; 154 pub const G_IO_ERROR_INVAL: GIOError = 2; 155 pub const G_IO_ERROR_UNKNOWN: GIOError = 3; 156 157 pub type GIOStatus = c_int; 158 pub const G_IO_STATUS_ERROR: GIOStatus = 0; 159 pub const G_IO_STATUS_NORMAL: GIOStatus = 1; 160 pub const G_IO_STATUS_EOF: GIOStatus = 2; 161 pub const G_IO_STATUS_AGAIN: GIOStatus = 3; 162 163 pub type GKeyFileError = c_int; 164 pub const G_KEY_FILE_ERROR_UNKNOWN_ENCODING: GKeyFileError = 0; 165 pub const G_KEY_FILE_ERROR_PARSE: GKeyFileError = 1; 166 pub const G_KEY_FILE_ERROR_NOT_FOUND: GKeyFileError = 2; 167 pub const G_KEY_FILE_ERROR_KEY_NOT_FOUND: GKeyFileError = 3; 168 pub const G_KEY_FILE_ERROR_GROUP_NOT_FOUND: GKeyFileError = 4; 169 pub const G_KEY_FILE_ERROR_INVALID_VALUE: GKeyFileError = 5; 170 171 pub type GLogWriterOutput = c_int; 172 pub const G_LOG_WRITER_HANDLED: GLogWriterOutput = 1; 173 pub const G_LOG_WRITER_UNHANDLED: GLogWriterOutput = 0; 174 175 pub type GMarkupError = c_int; 176 pub const G_MARKUP_ERROR_BAD_UTF8: GMarkupError = 0; 177 pub const G_MARKUP_ERROR_EMPTY: GMarkupError = 1; 178 pub const G_MARKUP_ERROR_PARSE: GMarkupError = 2; 179 pub const G_MARKUP_ERROR_UNKNOWN_ELEMENT: GMarkupError = 3; 180 pub const G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: GMarkupError = 4; 181 pub const G_MARKUP_ERROR_INVALID_CONTENT: GMarkupError = 5; 182 pub const G_MARKUP_ERROR_MISSING_ATTRIBUTE: GMarkupError = 6; 183 184 pub type GNormalizeMode = c_int; 185 pub const G_NORMALIZE_DEFAULT: GNormalizeMode = 0; 186 pub const G_NORMALIZE_DEFAULT_COMPOSE: GNormalizeMode = 1; 187 pub const G_NORMALIZE_ALL: GNormalizeMode = 2; 188 pub const G_NORMALIZE_ALL_COMPOSE: GNormalizeMode = 3; 189 190 pub type GNumberParserError = c_int; 191 pub const G_NUMBER_PARSER_ERROR_INVALID: GNumberParserError = 0; 192 pub const G_NUMBER_PARSER_ERROR_OUT_OF_BOUNDS: GNumberParserError = 1; 193 194 pub type GOnceStatus = c_int; 195 pub const G_ONCE_STATUS_NOTCALLED: GOnceStatus = 0; 196 pub const G_ONCE_STATUS_PROGRESS: GOnceStatus = 1; 197 pub const G_ONCE_STATUS_READY: GOnceStatus = 2; 198 199 pub type GOptionArg = c_int; 200 pub const G_OPTION_ARG_NONE: GOptionArg = 0; 201 pub const G_OPTION_ARG_STRING: GOptionArg = 1; 202 pub const G_OPTION_ARG_INT: GOptionArg = 2; 203 pub const G_OPTION_ARG_CALLBACK: GOptionArg = 3; 204 pub const G_OPTION_ARG_FILENAME: GOptionArg = 4; 205 pub const G_OPTION_ARG_STRING_ARRAY: GOptionArg = 5; 206 pub const G_OPTION_ARG_FILENAME_ARRAY: GOptionArg = 6; 207 pub const G_OPTION_ARG_DOUBLE: GOptionArg = 7; 208 pub const G_OPTION_ARG_INT64: GOptionArg = 8; 209 210 pub type GOptionError = c_int; 211 pub const G_OPTION_ERROR_UNKNOWN_OPTION: GOptionError = 0; 212 pub const G_OPTION_ERROR_BAD_VALUE: GOptionError = 1; 213 pub const G_OPTION_ERROR_FAILED: GOptionError = 2; 214 215 pub type GRegexError = c_int; 216 pub const G_REGEX_ERROR_COMPILE: GRegexError = 0; 217 pub const G_REGEX_ERROR_OPTIMIZE: GRegexError = 1; 218 pub const G_REGEX_ERROR_REPLACE: GRegexError = 2; 219 pub const G_REGEX_ERROR_MATCH: GRegexError = 3; 220 pub const G_REGEX_ERROR_INTERNAL: GRegexError = 4; 221 pub const G_REGEX_ERROR_STRAY_BACKSLASH: GRegexError = 101; 222 pub const G_REGEX_ERROR_MISSING_CONTROL_CHAR: GRegexError = 102; 223 pub const G_REGEX_ERROR_UNRECOGNIZED_ESCAPE: GRegexError = 103; 224 pub const G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER: GRegexError = 104; 225 pub const G_REGEX_ERROR_QUANTIFIER_TOO_BIG: GRegexError = 105; 226 pub const G_REGEX_ERROR_UNTERMINATED_CHARACTER_CLASS: GRegexError = 106; 227 pub const G_REGEX_ERROR_INVALID_ESCAPE_IN_CHARACTER_CLASS: GRegexError = 107; 228 pub const G_REGEX_ERROR_RANGE_OUT_OF_ORDER: GRegexError = 108; 229 pub const G_REGEX_ERROR_NOTHING_TO_REPEAT: GRegexError = 109; 230 pub const G_REGEX_ERROR_UNRECOGNIZED_CHARACTER: GRegexError = 112; 231 pub const G_REGEX_ERROR_POSIX_NAMED_CLASS_OUTSIDE_CLASS: GRegexError = 113; 232 pub const G_REGEX_ERROR_UNMATCHED_PARENTHESIS: GRegexError = 114; 233 pub const G_REGEX_ERROR_INEXISTENT_SUBPATTERN_REFERENCE: GRegexError = 115; 234 pub const G_REGEX_ERROR_UNTERMINATED_COMMENT: GRegexError = 118; 235 pub const G_REGEX_ERROR_EXPRESSION_TOO_LARGE: GRegexError = 120; 236 pub const G_REGEX_ERROR_MEMORY_ERROR: GRegexError = 121; 237 pub const G_REGEX_ERROR_VARIABLE_LENGTH_LOOKBEHIND: GRegexError = 125; 238 pub const G_REGEX_ERROR_MALFORMED_CONDITION: GRegexError = 126; 239 pub const G_REGEX_ERROR_TOO_MANY_CONDITIONAL_BRANCHES: GRegexError = 127; 240 pub const G_REGEX_ERROR_ASSERTION_EXPECTED: GRegexError = 128; 241 pub const G_REGEX_ERROR_UNKNOWN_POSIX_CLASS_NAME: GRegexError = 130; 242 pub const G_REGEX_ERROR_POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED: GRegexError = 131; 243 pub const G_REGEX_ERROR_HEX_CODE_TOO_LARGE: GRegexError = 134; 244 pub const G_REGEX_ERROR_INVALID_CONDITION: GRegexError = 135; 245 pub const G_REGEX_ERROR_SINGLE_BYTE_MATCH_IN_LOOKBEHIND: GRegexError = 136; 246 pub const G_REGEX_ERROR_INFINITE_LOOP: GRegexError = 140; 247 pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME_TERMINATOR: GRegexError = 142; 248 pub const G_REGEX_ERROR_DUPLICATE_SUBPATTERN_NAME: GRegexError = 143; 249 pub const G_REGEX_ERROR_MALFORMED_PROPERTY: GRegexError = 146; 250 pub const G_REGEX_ERROR_UNKNOWN_PROPERTY: GRegexError = 147; 251 pub const G_REGEX_ERROR_SUBPATTERN_NAME_TOO_LONG: GRegexError = 148; 252 pub const G_REGEX_ERROR_TOO_MANY_SUBPATTERNS: GRegexError = 149; 253 pub const G_REGEX_ERROR_INVALID_OCTAL_VALUE: GRegexError = 151; 254 pub const G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: GRegexError = 154; 255 pub const G_REGEX_ERROR_DEFINE_REPETION: GRegexError = 155; 256 pub const G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: GRegexError = 156; 257 pub const G_REGEX_ERROR_MISSING_BACK_REFERENCE: GRegexError = 157; 258 pub const G_REGEX_ERROR_INVALID_RELATIVE_REFERENCE: GRegexError = 158; 259 pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN: GRegexError = 159; 260 pub const G_REGEX_ERROR_UNKNOWN_BACKTRACKING_CONTROL_VERB: GRegexError = 160; 261 pub const G_REGEX_ERROR_NUMBER_TOO_BIG: GRegexError = 161; 262 pub const G_REGEX_ERROR_MISSING_SUBPATTERN_NAME: GRegexError = 162; 263 pub const G_REGEX_ERROR_MISSING_DIGIT: GRegexError = 163; 264 pub const G_REGEX_ERROR_INVALID_DATA_CHARACTER: GRegexError = 164; 265 pub const G_REGEX_ERROR_EXTRA_SUBPATTERN_NAME: GRegexError = 165; 266 pub const G_REGEX_ERROR_BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED: GRegexError = 166; 267 pub const G_REGEX_ERROR_INVALID_CONTROL_CHAR: GRegexError = 168; 268 pub const G_REGEX_ERROR_MISSING_NAME: GRegexError = 169; 269 pub const G_REGEX_ERROR_NOT_SUPPORTED_IN_CLASS: GRegexError = 171; 270 pub const G_REGEX_ERROR_TOO_MANY_FORWARD_REFERENCES: GRegexError = 172; 271 pub const G_REGEX_ERROR_NAME_TOO_LONG: GRegexError = 175; 272 pub const G_REGEX_ERROR_CHARACTER_VALUE_TOO_LARGE: GRegexError = 176; 273 274 pub type GSeekType = c_int; 275 pub const G_SEEK_CUR: GSeekType = 0; 276 pub const G_SEEK_SET: GSeekType = 1; 277 pub const G_SEEK_END: GSeekType = 2; 278 279 pub type GShellError = c_int; 280 pub const G_SHELL_ERROR_BAD_QUOTING: GShellError = 0; 281 pub const G_SHELL_ERROR_EMPTY_STRING: GShellError = 1; 282 pub const G_SHELL_ERROR_FAILED: GShellError = 2; 283 284 pub type GSliceConfig = c_int; 285 pub const G_SLICE_CONFIG_ALWAYS_MALLOC: GSliceConfig = 1; 286 pub const G_SLICE_CONFIG_BYPASS_MAGAZINES: GSliceConfig = 2; 287 pub const G_SLICE_CONFIG_WORKING_SET_MSECS: GSliceConfig = 3; 288 pub const G_SLICE_CONFIG_COLOR_INCREMENT: GSliceConfig = 4; 289 pub const G_SLICE_CONFIG_CHUNK_SIZES: GSliceConfig = 5; 290 pub const G_SLICE_CONFIG_CONTENTION_COUNTER: GSliceConfig = 6; 291 292 pub type GSpawnError = c_int; 293 pub const G_SPAWN_ERROR_FORK: GSpawnError = 0; 294 pub const G_SPAWN_ERROR_READ: GSpawnError = 1; 295 pub const G_SPAWN_ERROR_CHDIR: GSpawnError = 2; 296 pub const G_SPAWN_ERROR_ACCES: GSpawnError = 3; 297 pub const G_SPAWN_ERROR_PERM: GSpawnError = 4; 298 pub const G_SPAWN_ERROR_TOO_BIG: GSpawnError = 5; 299 pub const G_SPAWN_ERROR_NOEXEC: GSpawnError = 6; 300 pub const G_SPAWN_ERROR_NAMETOOLONG: GSpawnError = 7; 301 pub const G_SPAWN_ERROR_NOENT: GSpawnError = 8; 302 pub const G_SPAWN_ERROR_NOMEM: GSpawnError = 9; 303 pub const G_SPAWN_ERROR_NOTDIR: GSpawnError = 10; 304 pub const G_SPAWN_ERROR_LOOP: GSpawnError = 11; 305 pub const G_SPAWN_ERROR_TXTBUSY: GSpawnError = 12; 306 pub const G_SPAWN_ERROR_IO: GSpawnError = 13; 307 pub const G_SPAWN_ERROR_NFILE: GSpawnError = 14; 308 pub const G_SPAWN_ERROR_MFILE: GSpawnError = 15; 309 pub const G_SPAWN_ERROR_INVAL: GSpawnError = 16; 310 pub const G_SPAWN_ERROR_ISDIR: GSpawnError = 17; 311 pub const G_SPAWN_ERROR_LIBBAD: GSpawnError = 18; 312 pub const G_SPAWN_ERROR_FAILED: GSpawnError = 19; 313 314 pub type GTestFileType = c_int; 315 pub const G_TEST_DIST: GTestFileType = 0; 316 pub const G_TEST_BUILT: GTestFileType = 1; 317 318 pub type GTestLogType = c_int; 319 pub const G_TEST_LOG_NONE: GTestLogType = 0; 320 pub const G_TEST_LOG_ERROR: GTestLogType = 1; 321 pub const G_TEST_LOG_START_BINARY: GTestLogType = 2; 322 pub const G_TEST_LOG_LIST_CASE: GTestLogType = 3; 323 pub const G_TEST_LOG_SKIP_CASE: GTestLogType = 4; 324 pub const G_TEST_LOG_START_CASE: GTestLogType = 5; 325 pub const G_TEST_LOG_STOP_CASE: GTestLogType = 6; 326 pub const G_TEST_LOG_MIN_RESULT: GTestLogType = 7; 327 pub const G_TEST_LOG_MAX_RESULT: GTestLogType = 8; 328 pub const G_TEST_LOG_MESSAGE: GTestLogType = 9; 329 pub const G_TEST_LOG_START_SUITE: GTestLogType = 10; 330 pub const G_TEST_LOG_STOP_SUITE: GTestLogType = 11; 331 332 pub type GTestResult = c_int; 333 pub const G_TEST_RUN_SUCCESS: GTestResult = 0; 334 pub const G_TEST_RUN_SKIPPED: GTestResult = 1; 335 pub const G_TEST_RUN_FAILURE: GTestResult = 2; 336 pub const G_TEST_RUN_INCOMPLETE: GTestResult = 3; 337 338 pub type GThreadError = c_int; 339 pub const G_THREAD_ERROR_AGAIN: GThreadError = 0; 340 341 pub type GTimeType = c_int; 342 pub const G_TIME_TYPE_STANDARD: GTimeType = 0; 343 pub const G_TIME_TYPE_DAYLIGHT: GTimeType = 1; 344 pub const G_TIME_TYPE_UNIVERSAL: GTimeType = 2; 345 346 pub type GTokenType = c_int; 347 pub const G_TOKEN_EOF: GTokenType = 0; 348 pub const G_TOKEN_LEFT_PAREN: GTokenType = 40; 349 pub const G_TOKEN_RIGHT_PAREN: GTokenType = 41; 350 pub const G_TOKEN_LEFT_CURLY: GTokenType = 123; 351 pub const G_TOKEN_RIGHT_CURLY: GTokenType = 125; 352 pub const G_TOKEN_LEFT_BRACE: GTokenType = 91; 353 pub const G_TOKEN_RIGHT_BRACE: GTokenType = 93; 354 pub const G_TOKEN_EQUAL_SIGN: GTokenType = 61; 355 pub const G_TOKEN_COMMA: GTokenType = 44; 356 pub const G_TOKEN_NONE: GTokenType = 256; 357 pub const G_TOKEN_ERROR: GTokenType = 257; 358 pub const G_TOKEN_CHAR: GTokenType = 258; 359 pub const G_TOKEN_BINARY: GTokenType = 259; 360 pub const G_TOKEN_OCTAL: GTokenType = 260; 361 pub const G_TOKEN_INT: GTokenType = 261; 362 pub const G_TOKEN_HEX: GTokenType = 262; 363 pub const G_TOKEN_FLOAT: GTokenType = 263; 364 pub const G_TOKEN_STRING: GTokenType = 264; 365 pub const G_TOKEN_SYMBOL: GTokenType = 265; 366 pub const G_TOKEN_IDENTIFIER: GTokenType = 266; 367 pub const G_TOKEN_IDENTIFIER_NULL: GTokenType = 267; 368 pub const G_TOKEN_COMMENT_SINGLE: GTokenType = 268; 369 pub const G_TOKEN_COMMENT_MULTI: GTokenType = 269; 370 371 pub type GTraverseType = c_int; 372 pub const G_IN_ORDER: GTraverseType = 0; 373 pub const G_PRE_ORDER: GTraverseType = 1; 374 pub const G_POST_ORDER: GTraverseType = 2; 375 pub const G_LEVEL_ORDER: GTraverseType = 3; 376 377 pub type GUnicodeBreakType = c_int; 378 pub const G_UNICODE_BREAK_MANDATORY: GUnicodeBreakType = 0; 379 pub const G_UNICODE_BREAK_CARRIAGE_RETURN: GUnicodeBreakType = 1; 380 pub const G_UNICODE_BREAK_LINE_FEED: GUnicodeBreakType = 2; 381 pub const G_UNICODE_BREAK_COMBINING_MARK: GUnicodeBreakType = 3; 382 pub const G_UNICODE_BREAK_SURROGATE: GUnicodeBreakType = 4; 383 pub const G_UNICODE_BREAK_ZERO_WIDTH_SPACE: GUnicodeBreakType = 5; 384 pub const G_UNICODE_BREAK_INSEPARABLE: GUnicodeBreakType = 6; 385 pub const G_UNICODE_BREAK_NON_BREAKING_GLUE: GUnicodeBreakType = 7; 386 pub const G_UNICODE_BREAK_CONTINGENT: GUnicodeBreakType = 8; 387 pub const G_UNICODE_BREAK_SPACE: GUnicodeBreakType = 9; 388 pub const G_UNICODE_BREAK_AFTER: GUnicodeBreakType = 10; 389 pub const G_UNICODE_BREAK_BEFORE: GUnicodeBreakType = 11; 390 pub const G_UNICODE_BREAK_BEFORE_AND_AFTER: GUnicodeBreakType = 12; 391 pub const G_UNICODE_BREAK_HYPHEN: GUnicodeBreakType = 13; 392 pub const G_UNICODE_BREAK_NON_STARTER: GUnicodeBreakType = 14; 393 pub const G_UNICODE_BREAK_OPEN_PUNCTUATION: GUnicodeBreakType = 15; 394 pub const G_UNICODE_BREAK_CLOSE_PUNCTUATION: GUnicodeBreakType = 16; 395 pub const G_UNICODE_BREAK_QUOTATION: GUnicodeBreakType = 17; 396 pub const G_UNICODE_BREAK_EXCLAMATION: GUnicodeBreakType = 18; 397 pub const G_UNICODE_BREAK_IDEOGRAPHIC: GUnicodeBreakType = 19; 398 pub const G_UNICODE_BREAK_NUMERIC: GUnicodeBreakType = 20; 399 pub const G_UNICODE_BREAK_INFIX_SEPARATOR: GUnicodeBreakType = 21; 400 pub const G_UNICODE_BREAK_SYMBOL: GUnicodeBreakType = 22; 401 pub const G_UNICODE_BREAK_ALPHABETIC: GUnicodeBreakType = 23; 402 pub const G_UNICODE_BREAK_PREFIX: GUnicodeBreakType = 24; 403 pub const G_UNICODE_BREAK_POSTFIX: GUnicodeBreakType = 25; 404 pub const G_UNICODE_BREAK_COMPLEX_CONTEXT: GUnicodeBreakType = 26; 405 pub const G_UNICODE_BREAK_AMBIGUOUS: GUnicodeBreakType = 27; 406 pub const G_UNICODE_BREAK_UNKNOWN: GUnicodeBreakType = 28; 407 pub const G_UNICODE_BREAK_NEXT_LINE: GUnicodeBreakType = 29; 408 pub const G_UNICODE_BREAK_WORD_JOINER: GUnicodeBreakType = 30; 409 pub const G_UNICODE_BREAK_HANGUL_L_JAMO: GUnicodeBreakType = 31; 410 pub const G_UNICODE_BREAK_HANGUL_V_JAMO: GUnicodeBreakType = 32; 411 pub const G_UNICODE_BREAK_HANGUL_T_JAMO: GUnicodeBreakType = 33; 412 pub const G_UNICODE_BREAK_HANGUL_LV_SYLLABLE: GUnicodeBreakType = 34; 413 pub const G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE: GUnicodeBreakType = 35; 414 pub const G_UNICODE_BREAK_CLOSE_PARANTHESIS: GUnicodeBreakType = 36; 415 pub const G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: GUnicodeBreakType = 37; 416 pub const G_UNICODE_BREAK_HEBREW_LETTER: GUnicodeBreakType = 38; 417 pub const G_UNICODE_BREAK_REGIONAL_INDICATOR: GUnicodeBreakType = 39; 418 pub const G_UNICODE_BREAK_EMOJI_BASE: GUnicodeBreakType = 40; 419 pub const G_UNICODE_BREAK_EMOJI_MODIFIER: GUnicodeBreakType = 41; 420 pub const G_UNICODE_BREAK_ZERO_WIDTH_JOINER: GUnicodeBreakType = 42; 421 422 pub type GUnicodeScript = c_int; 423 pub const G_UNICODE_SCRIPT_INVALID_CODE: GUnicodeScript = -1; 424 pub const G_UNICODE_SCRIPT_COMMON: GUnicodeScript = 0; 425 pub const G_UNICODE_SCRIPT_INHERITED: GUnicodeScript = 1; 426 pub const G_UNICODE_SCRIPT_ARABIC: GUnicodeScript = 2; 427 pub const G_UNICODE_SCRIPT_ARMENIAN: GUnicodeScript = 3; 428 pub const G_UNICODE_SCRIPT_BENGALI: GUnicodeScript = 4; 429 pub const G_UNICODE_SCRIPT_BOPOMOFO: GUnicodeScript = 5; 430 pub const G_UNICODE_SCRIPT_CHEROKEE: GUnicodeScript = 6; 431 pub const G_UNICODE_SCRIPT_COPTIC: GUnicodeScript = 7; 432 pub const G_UNICODE_SCRIPT_CYRILLIC: GUnicodeScript = 8; 433 pub const G_UNICODE_SCRIPT_DESERET: GUnicodeScript = 9; 434 pub const G_UNICODE_SCRIPT_DEVANAGARI: GUnicodeScript = 10; 435 pub const G_UNICODE_SCRIPT_ETHIOPIC: GUnicodeScript = 11; 436 pub const G_UNICODE_SCRIPT_GEORGIAN: GUnicodeScript = 12; 437 pub const G_UNICODE_SCRIPT_GOTHIC: GUnicodeScript = 13; 438 pub const G_UNICODE_SCRIPT_GREEK: GUnicodeScript = 14; 439 pub const G_UNICODE_SCRIPT_GUJARATI: GUnicodeScript = 15; 440 pub const G_UNICODE_SCRIPT_GURMUKHI: GUnicodeScript = 16; 441 pub const G_UNICODE_SCRIPT_HAN: GUnicodeScript = 17; 442 pub const G_UNICODE_SCRIPT_HANGUL: GUnicodeScript = 18; 443 pub const G_UNICODE_SCRIPT_HEBREW: GUnicodeScript = 19; 444 pub const G_UNICODE_SCRIPT_HIRAGANA: GUnicodeScript = 20; 445 pub const G_UNICODE_SCRIPT_KANNADA: GUnicodeScript = 21; 446 pub const G_UNICODE_SCRIPT_KATAKANA: GUnicodeScript = 22; 447 pub const G_UNICODE_SCRIPT_KHMER: GUnicodeScript = 23; 448 pub const G_UNICODE_SCRIPT_LAO: GUnicodeScript = 24; 449 pub const G_UNICODE_SCRIPT_LATIN: GUnicodeScript = 25; 450 pub const G_UNICODE_SCRIPT_MALAYALAM: GUnicodeScript = 26; 451 pub const G_UNICODE_SCRIPT_MONGOLIAN: GUnicodeScript = 27; 452 pub const G_UNICODE_SCRIPT_MYANMAR: GUnicodeScript = 28; 453 pub const G_UNICODE_SCRIPT_OGHAM: GUnicodeScript = 29; 454 pub const G_UNICODE_SCRIPT_OLD_ITALIC: GUnicodeScript = 30; 455 pub const G_UNICODE_SCRIPT_ORIYA: GUnicodeScript = 31; 456 pub const G_UNICODE_SCRIPT_RUNIC: GUnicodeScript = 32; 457 pub const G_UNICODE_SCRIPT_SINHALA: GUnicodeScript = 33; 458 pub const G_UNICODE_SCRIPT_SYRIAC: GUnicodeScript = 34; 459 pub const G_UNICODE_SCRIPT_TAMIL: GUnicodeScript = 35; 460 pub const G_UNICODE_SCRIPT_TELUGU: GUnicodeScript = 36; 461 pub const G_UNICODE_SCRIPT_THAANA: GUnicodeScript = 37; 462 pub const G_UNICODE_SCRIPT_THAI: GUnicodeScript = 38; 463 pub const G_UNICODE_SCRIPT_TIBETAN: GUnicodeScript = 39; 464 pub const G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL: GUnicodeScript = 40; 465 pub const G_UNICODE_SCRIPT_YI: GUnicodeScript = 41; 466 pub const G_UNICODE_SCRIPT_TAGALOG: GUnicodeScript = 42; 467 pub const G_UNICODE_SCRIPT_HANUNOO: GUnicodeScript = 43; 468 pub const G_UNICODE_SCRIPT_BUHID: GUnicodeScript = 44; 469 pub const G_UNICODE_SCRIPT_TAGBANWA: GUnicodeScript = 45; 470 pub const G_UNICODE_SCRIPT_BRAILLE: GUnicodeScript = 46; 471 pub const G_UNICODE_SCRIPT_CYPRIOT: GUnicodeScript = 47; 472 pub const G_UNICODE_SCRIPT_LIMBU: GUnicodeScript = 48; 473 pub const G_UNICODE_SCRIPT_OSMANYA: GUnicodeScript = 49; 474 pub const G_UNICODE_SCRIPT_SHAVIAN: GUnicodeScript = 50; 475 pub const G_UNICODE_SCRIPT_LINEAR_B: GUnicodeScript = 51; 476 pub const G_UNICODE_SCRIPT_TAI_LE: GUnicodeScript = 52; 477 pub const G_UNICODE_SCRIPT_UGARITIC: GUnicodeScript = 53; 478 pub const G_UNICODE_SCRIPT_NEW_TAI_LUE: GUnicodeScript = 54; 479 pub const G_UNICODE_SCRIPT_BUGINESE: GUnicodeScript = 55; 480 pub const G_UNICODE_SCRIPT_GLAGOLITIC: GUnicodeScript = 56; 481 pub const G_UNICODE_SCRIPT_TIFINAGH: GUnicodeScript = 57; 482 pub const G_UNICODE_SCRIPT_SYLOTI_NAGRI: GUnicodeScript = 58; 483 pub const G_UNICODE_SCRIPT_OLD_PERSIAN: GUnicodeScript = 59; 484 pub const G_UNICODE_SCRIPT_KHAROSHTHI: GUnicodeScript = 60; 485 pub const G_UNICODE_SCRIPT_UNKNOWN: GUnicodeScript = 61; 486 pub const G_UNICODE_SCRIPT_BALINESE: GUnicodeScript = 62; 487 pub const G_UNICODE_SCRIPT_CUNEIFORM: GUnicodeScript = 63; 488 pub const G_UNICODE_SCRIPT_PHOENICIAN: GUnicodeScript = 64; 489 pub const G_UNICODE_SCRIPT_PHAGS_PA: GUnicodeScript = 65; 490 pub const G_UNICODE_SCRIPT_NKO: GUnicodeScript = 66; 491 pub const G_UNICODE_SCRIPT_KAYAH_LI: GUnicodeScript = 67; 492 pub const G_UNICODE_SCRIPT_LEPCHA: GUnicodeScript = 68; 493 pub const G_UNICODE_SCRIPT_REJANG: GUnicodeScript = 69; 494 pub const G_UNICODE_SCRIPT_SUNDANESE: GUnicodeScript = 70; 495 pub const G_UNICODE_SCRIPT_SAURASHTRA: GUnicodeScript = 71; 496 pub const G_UNICODE_SCRIPT_CHAM: GUnicodeScript = 72; 497 pub const G_UNICODE_SCRIPT_OL_CHIKI: GUnicodeScript = 73; 498 pub const G_UNICODE_SCRIPT_VAI: GUnicodeScript = 74; 499 pub const G_UNICODE_SCRIPT_CARIAN: GUnicodeScript = 75; 500 pub const G_UNICODE_SCRIPT_LYCIAN: GUnicodeScript = 76; 501 pub const G_UNICODE_SCRIPT_LYDIAN: GUnicodeScript = 77; 502 pub const G_UNICODE_SCRIPT_AVESTAN: GUnicodeScript = 78; 503 pub const G_UNICODE_SCRIPT_BAMUM: GUnicodeScript = 79; 504 pub const G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS: GUnicodeScript = 80; 505 pub const G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC: GUnicodeScript = 81; 506 pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI: GUnicodeScript = 82; 507 pub const G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN: GUnicodeScript = 83; 508 pub const G_UNICODE_SCRIPT_JAVANESE: GUnicodeScript = 84; 509 pub const G_UNICODE_SCRIPT_KAITHI: GUnicodeScript = 85; 510 pub const G_UNICODE_SCRIPT_LISU: GUnicodeScript = 86; 511 pub const G_UNICODE_SCRIPT_MEETEI_MAYEK: GUnicodeScript = 87; 512 pub const G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN: GUnicodeScript = 88; 513 pub const G_UNICODE_SCRIPT_OLD_TURKIC: GUnicodeScript = 89; 514 pub const G_UNICODE_SCRIPT_SAMARITAN: GUnicodeScript = 90; 515 pub const G_UNICODE_SCRIPT_TAI_THAM: GUnicodeScript = 91; 516 pub const G_UNICODE_SCRIPT_TAI_VIET: GUnicodeScript = 92; 517 pub const G_UNICODE_SCRIPT_BATAK: GUnicodeScript = 93; 518 pub const G_UNICODE_SCRIPT_BRAHMI: GUnicodeScript = 94; 519 pub const G_UNICODE_SCRIPT_MANDAIC: GUnicodeScript = 95; 520 pub const G_UNICODE_SCRIPT_CHAKMA: GUnicodeScript = 96; 521 pub const G_UNICODE_SCRIPT_MEROITIC_CURSIVE: GUnicodeScript = 97; 522 pub const G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS: GUnicodeScript = 98; 523 pub const G_UNICODE_SCRIPT_MIAO: GUnicodeScript = 99; 524 pub const G_UNICODE_SCRIPT_SHARADA: GUnicodeScript = 100; 525 pub const G_UNICODE_SCRIPT_SORA_SOMPENG: GUnicodeScript = 101; 526 pub const G_UNICODE_SCRIPT_TAKRI: GUnicodeScript = 102; 527 pub const G_UNICODE_SCRIPT_BASSA_VAH: GUnicodeScript = 103; 528 pub const G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN: GUnicodeScript = 104; 529 pub const G_UNICODE_SCRIPT_DUPLOYAN: GUnicodeScript = 105; 530 pub const G_UNICODE_SCRIPT_ELBASAN: GUnicodeScript = 106; 531 pub const G_UNICODE_SCRIPT_GRANTHA: GUnicodeScript = 107; 532 pub const G_UNICODE_SCRIPT_KHOJKI: GUnicodeScript = 108; 533 pub const G_UNICODE_SCRIPT_KHUDAWADI: GUnicodeScript = 109; 534 pub const G_UNICODE_SCRIPT_LINEAR_A: GUnicodeScript = 110; 535 pub const G_UNICODE_SCRIPT_MAHAJANI: GUnicodeScript = 111; 536 pub const G_UNICODE_SCRIPT_MANICHAEAN: GUnicodeScript = 112; 537 pub const G_UNICODE_SCRIPT_MENDE_KIKAKUI: GUnicodeScript = 113; 538 pub const G_UNICODE_SCRIPT_MODI: GUnicodeScript = 114; 539 pub const G_UNICODE_SCRIPT_MRO: GUnicodeScript = 115; 540 pub const G_UNICODE_SCRIPT_NABATAEAN: GUnicodeScript = 116; 541 pub const G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN: GUnicodeScript = 117; 542 pub const G_UNICODE_SCRIPT_OLD_PERMIC: GUnicodeScript = 118; 543 pub const G_UNICODE_SCRIPT_PAHAWH_HMONG: GUnicodeScript = 119; 544 pub const G_UNICODE_SCRIPT_PALMYRENE: GUnicodeScript = 120; 545 pub const G_UNICODE_SCRIPT_PAU_CIN_HAU: GUnicodeScript = 121; 546 pub const G_UNICODE_SCRIPT_PSALTER_PAHLAVI: GUnicodeScript = 122; 547 pub const G_UNICODE_SCRIPT_SIDDHAM: GUnicodeScript = 123; 548 pub const G_UNICODE_SCRIPT_TIRHUTA: GUnicodeScript = 124; 549 pub const G_UNICODE_SCRIPT_WARANG_CITI: GUnicodeScript = 125; 550 pub const G_UNICODE_SCRIPT_AHOM: GUnicodeScript = 126; 551 pub const G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS: GUnicodeScript = 127; 552 pub const G_UNICODE_SCRIPT_HATRAN: GUnicodeScript = 128; 553 pub const G_UNICODE_SCRIPT_MULTANI: GUnicodeScript = 129; 554 pub const G_UNICODE_SCRIPT_OLD_HUNGARIAN: GUnicodeScript = 130; 555 pub const G_UNICODE_SCRIPT_SIGNWRITING: GUnicodeScript = 131; 556 pub const G_UNICODE_SCRIPT_ADLAM: GUnicodeScript = 132; 557 pub const G_UNICODE_SCRIPT_BHAIKSUKI: GUnicodeScript = 133; 558 pub const G_UNICODE_SCRIPT_MARCHEN: GUnicodeScript = 134; 559 pub const G_UNICODE_SCRIPT_NEWA: GUnicodeScript = 135; 560 pub const G_UNICODE_SCRIPT_OSAGE: GUnicodeScript = 136; 561 pub const G_UNICODE_SCRIPT_TANGUT: GUnicodeScript = 137; 562 pub const G_UNICODE_SCRIPT_MASARAM_GONDI: GUnicodeScript = 138; 563 pub const G_UNICODE_SCRIPT_NUSHU: GUnicodeScript = 139; 564 pub const G_UNICODE_SCRIPT_SOYOMBO: GUnicodeScript = 140; 565 pub const G_UNICODE_SCRIPT_ZANABAZAR_SQUARE: GUnicodeScript = 141; 566 pub const G_UNICODE_SCRIPT_DOGRA: GUnicodeScript = 142; 567 pub const G_UNICODE_SCRIPT_GUNJALA_GONDI: GUnicodeScript = 143; 568 pub const G_UNICODE_SCRIPT_HANIFI_ROHINGYA: GUnicodeScript = 144; 569 pub const G_UNICODE_SCRIPT_MAKASAR: GUnicodeScript = 145; 570 pub const G_UNICODE_SCRIPT_MEDEFAIDRIN: GUnicodeScript = 146; 571 pub const G_UNICODE_SCRIPT_OLD_SOGDIAN: GUnicodeScript = 147; 572 pub const G_UNICODE_SCRIPT_SOGDIAN: GUnicodeScript = 148; 573 pub const G_UNICODE_SCRIPT_ELYMAIC: GUnicodeScript = 149; 574 pub const G_UNICODE_SCRIPT_NANDINAGARI: GUnicodeScript = 150; 575 pub const G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG: GUnicodeScript = 151; 576 pub const G_UNICODE_SCRIPT_WANCHO: GUnicodeScript = 152; 577 578 pub type GUnicodeType = c_int; 579 pub const G_UNICODE_CONTROL: GUnicodeType = 0; 580 pub const G_UNICODE_FORMAT: GUnicodeType = 1; 581 pub const G_UNICODE_UNASSIGNED: GUnicodeType = 2; 582 pub const G_UNICODE_PRIVATE_USE: GUnicodeType = 3; 583 pub const G_UNICODE_SURROGATE: GUnicodeType = 4; 584 pub const G_UNICODE_LOWERCASE_LETTER: GUnicodeType = 5; 585 pub const G_UNICODE_MODIFIER_LETTER: GUnicodeType = 6; 586 pub const G_UNICODE_OTHER_LETTER: GUnicodeType = 7; 587 pub const G_UNICODE_TITLECASE_LETTER: GUnicodeType = 8; 588 pub const G_UNICODE_UPPERCASE_LETTER: GUnicodeType = 9; 589 pub const G_UNICODE_SPACING_MARK: GUnicodeType = 10; 590 pub const G_UNICODE_ENCLOSING_MARK: GUnicodeType = 11; 591 pub const G_UNICODE_NON_SPACING_MARK: GUnicodeType = 12; 592 pub const G_UNICODE_DECIMAL_NUMBER: GUnicodeType = 13; 593 pub const G_UNICODE_LETTER_NUMBER: GUnicodeType = 14; 594 pub const G_UNICODE_OTHER_NUMBER: GUnicodeType = 15; 595 pub const G_UNICODE_CONNECT_PUNCTUATION: GUnicodeType = 16; 596 pub const G_UNICODE_DASH_PUNCTUATION: GUnicodeType = 17; 597 pub const G_UNICODE_CLOSE_PUNCTUATION: GUnicodeType = 18; 598 pub const G_UNICODE_FINAL_PUNCTUATION: GUnicodeType = 19; 599 pub const G_UNICODE_INITIAL_PUNCTUATION: GUnicodeType = 20; 600 pub const G_UNICODE_OTHER_PUNCTUATION: GUnicodeType = 21; 601 pub const G_UNICODE_OPEN_PUNCTUATION: GUnicodeType = 22; 602 pub const G_UNICODE_CURRENCY_SYMBOL: GUnicodeType = 23; 603 pub const G_UNICODE_MODIFIER_SYMBOL: GUnicodeType = 24; 604 pub const G_UNICODE_MATH_SYMBOL: GUnicodeType = 25; 605 pub const G_UNICODE_OTHER_SYMBOL: GUnicodeType = 26; 606 pub const G_UNICODE_LINE_SEPARATOR: GUnicodeType = 27; 607 pub const G_UNICODE_PARAGRAPH_SEPARATOR: GUnicodeType = 28; 608 pub const G_UNICODE_SPACE_SEPARATOR: GUnicodeType = 29; 609 610 pub type GUserDirectory = c_int; 611 pub const G_USER_DIRECTORY_DESKTOP: GUserDirectory = 0; 612 pub const G_USER_DIRECTORY_DOCUMENTS: GUserDirectory = 1; 613 pub const G_USER_DIRECTORY_DOWNLOAD: GUserDirectory = 2; 614 pub const G_USER_DIRECTORY_MUSIC: GUserDirectory = 3; 615 pub const G_USER_DIRECTORY_PICTURES: GUserDirectory = 4; 616 pub const G_USER_DIRECTORY_PUBLIC_SHARE: GUserDirectory = 5; 617 pub const G_USER_DIRECTORY_TEMPLATES: GUserDirectory = 6; 618 pub const G_USER_DIRECTORY_VIDEOS: GUserDirectory = 7; 619 pub const G_USER_N_DIRECTORIES: GUserDirectory = 8; 620 621 pub type GVariantClass = c_int; 622 pub const G_VARIANT_CLASS_BOOLEAN: GVariantClass = 98; 623 pub const G_VARIANT_CLASS_BYTE: GVariantClass = 121; 624 pub const G_VARIANT_CLASS_INT16: GVariantClass = 110; 625 pub const G_VARIANT_CLASS_UINT16: GVariantClass = 113; 626 pub const G_VARIANT_CLASS_INT32: GVariantClass = 105; 627 pub const G_VARIANT_CLASS_UINT32: GVariantClass = 117; 628 pub const G_VARIANT_CLASS_INT64: GVariantClass = 120; 629 pub const G_VARIANT_CLASS_UINT64: GVariantClass = 116; 630 pub const G_VARIANT_CLASS_HANDLE: GVariantClass = 104; 631 pub const G_VARIANT_CLASS_DOUBLE: GVariantClass = 100; 632 pub const G_VARIANT_CLASS_STRING: GVariantClass = 115; 633 pub const G_VARIANT_CLASS_OBJECT_PATH: GVariantClass = 111; 634 pub const G_VARIANT_CLASS_SIGNATURE: GVariantClass = 103; 635 pub const G_VARIANT_CLASS_VARIANT: GVariantClass = 118; 636 pub const G_VARIANT_CLASS_MAYBE: GVariantClass = 109; 637 pub const G_VARIANT_CLASS_ARRAY: GVariantClass = 97; 638 pub const G_VARIANT_CLASS_TUPLE: GVariantClass = 40; 639 pub const G_VARIANT_CLASS_DICT_ENTRY: GVariantClass = 123; 640 641 pub type GVariantParseError = c_int; 642 pub const G_VARIANT_PARSE_ERROR_FAILED: GVariantParseError = 0; 643 pub const G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED: GVariantParseError = 1; 644 pub const G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE: GVariantParseError = 2; 645 pub const G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED: GVariantParseError = 3; 646 pub const G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END: GVariantParseError = 4; 647 pub const G_VARIANT_PARSE_ERROR_INVALID_CHARACTER: GVariantParseError = 5; 648 pub const G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING: GVariantParseError = 6; 649 pub const G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH: GVariantParseError = 7; 650 pub const G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE: GVariantParseError = 8; 651 pub const G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING: GVariantParseError = 9; 652 pub const G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE: GVariantParseError = 10; 653 pub const G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE: GVariantParseError = 11; 654 pub const G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG: GVariantParseError = 12; 655 pub const G_VARIANT_PARSE_ERROR_TYPE_ERROR: GVariantParseError = 13; 656 pub const G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN: GVariantParseError = 14; 657 pub const G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD: GVariantParseError = 15; 658 pub const G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT: GVariantParseError = 16; 659 pub const G_VARIANT_PARSE_ERROR_VALUE_EXPECTED: GVariantParseError = 17; 660 661 // Constants 662 pub const G_ASCII_DTOSTR_BUF_SIZE: c_int = 39; 663 pub const G_BIG_ENDIAN: c_int = 4321; 664 pub const G_CSET_A_2_Z: *const c_char = 665 b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\0" as *const u8 as *const c_char; 666 pub const G_CSET_DIGITS: *const c_char = b"0123456789\0" as *const u8 as *const c_char; 667 pub const G_CSET_a_2_z: *const c_char = 668 b"abcdefghijklmnopqrstuvwxyz\0" as *const u8 as *const c_char; 669 pub const G_DATALIST_FLAGS_MASK: c_int = 3; 670 pub const G_DATE_BAD_DAY: c_int = 0; 671 pub const G_DATE_BAD_JULIAN: c_int = 0; 672 pub const G_DATE_BAD_YEAR: c_int = 0; 673 pub const G_E: c_double = 2.718282; 674 pub const G_HOOK_FLAG_USER_SHIFT: c_int = 4; 675 pub const G_IEEE754_DOUBLE_BIAS: c_int = 1023; 676 pub const G_IEEE754_FLOAT_BIAS: c_int = 127; 677 pub const G_KEY_FILE_DESKTOP_ACTION_GROUP_PREFIX: *const c_char = 678 b"Desktop Action\0" as *const u8 as *const c_char; 679 pub const G_KEY_FILE_DESKTOP_GROUP: *const c_char = 680 b"Desktop Entry\0" as *const u8 as *const c_char; 681 pub const G_KEY_FILE_DESKTOP_KEY_ACTIONS: *const c_char = 682 b"Actions\0" as *const u8 as *const c_char; 683 pub const G_KEY_FILE_DESKTOP_KEY_CATEGORIES: *const c_char = 684 b"Categories\0" as *const u8 as *const c_char; 685 pub const G_KEY_FILE_DESKTOP_KEY_COMMENT: *const c_char = 686 b"Comment\0" as *const u8 as *const c_char; 687 pub const G_KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: *const c_char = 688 b"DBusActivatable\0" as *const u8 as *const c_char; 689 pub const G_KEY_FILE_DESKTOP_KEY_EXEC: *const c_char = b"Exec\0" as *const u8 as *const c_char; 690 pub const G_KEY_FILE_DESKTOP_KEY_FULLNAME: *const c_char = 691 b"X-GNOME-FullName\0" as *const u8 as *const c_char; 692 pub const G_KEY_FILE_DESKTOP_KEY_GENERIC_NAME: *const c_char = 693 b"GenericName\0" as *const u8 as *const c_char; 694 pub const G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN: *const c_char = 695 b"X-GNOME-Gettext-Domain\0" as *const u8 as *const c_char; 696 pub const G_KEY_FILE_DESKTOP_KEY_HIDDEN: *const c_char = b"Hidden\0" as *const u8 as *const c_char; 697 pub const G_KEY_FILE_DESKTOP_KEY_ICON: *const c_char = b"Icon\0" as *const u8 as *const c_char; 698 pub const G_KEY_FILE_DESKTOP_KEY_KEYWORDS: *const c_char = 699 b"Keywords\0" as *const u8 as *const c_char; 700 pub const G_KEY_FILE_DESKTOP_KEY_MIME_TYPE: *const c_char = 701 b"MimeType\0" as *const u8 as *const c_char; 702 pub const G_KEY_FILE_DESKTOP_KEY_NAME: *const c_char = b"Name\0" as *const u8 as *const c_char; 703 pub const G_KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: *const c_char = 704 b"NotShowIn\0" as *const u8 as *const c_char; 705 pub const G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY: *const c_char = 706 b"NoDisplay\0" as *const u8 as *const c_char; 707 pub const G_KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: *const c_char = 708 b"OnlyShowIn\0" as *const u8 as *const c_char; 709 pub const G_KEY_FILE_DESKTOP_KEY_PATH: *const c_char = b"Path\0" as *const u8 as *const c_char; 710 pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: *const c_char = 711 b"StartupNotify\0" as *const u8 as *const c_char; 712 pub const G_KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: *const c_char = 713 b"StartupWMClass\0" as *const u8 as *const c_char; 714 pub const G_KEY_FILE_DESKTOP_KEY_TERMINAL: *const c_char = 715 b"Terminal\0" as *const u8 as *const c_char; 716 pub const G_KEY_FILE_DESKTOP_KEY_TRY_EXEC: *const c_char = 717 b"TryExec\0" as *const u8 as *const c_char; 718 pub const G_KEY_FILE_DESKTOP_KEY_TYPE: *const c_char = b"Type\0" as *const u8 as *const c_char; 719 pub const G_KEY_FILE_DESKTOP_KEY_URL: *const c_char = b"URL\0" as *const u8 as *const c_char; 720 pub const G_KEY_FILE_DESKTOP_KEY_VERSION: *const c_char = 721 b"Version\0" as *const u8 as *const c_char; 722 pub const G_KEY_FILE_DESKTOP_TYPE_APPLICATION: *const c_char = 723 b"Application\0" as *const u8 as *const c_char; 724 pub const G_KEY_FILE_DESKTOP_TYPE_DIRECTORY: *const c_char = 725 b"Directory\0" as *const u8 as *const c_char; 726 pub const G_KEY_FILE_DESKTOP_TYPE_LINK: *const c_char = b"Link\0" as *const u8 as *const c_char; 727 pub const G_LITTLE_ENDIAN: c_int = 1234; 728 pub const G_LN10: c_double = 2.302585; 729 pub const G_LN2: c_double = 0.693147; 730 pub const G_LOG_2_BASE_10: c_double = 0.301030; 731 pub const G_LOG_DOMAIN: c_char = 0; 732 pub const G_LOG_FATAL_MASK: c_int = 5; 733 pub const G_LOG_LEVEL_USER_SHIFT: c_int = 8; 734 pub const G_OPTION_REMAINING: *const c_char = b"\0" as *const u8 as *const c_char; 735 pub const G_PDP_ENDIAN: c_int = 3412; 736 pub const G_PI: c_double = 3.141593; 737 pub const G_PI_2: c_double = 1.570796; 738 pub const G_PI_4: c_double = 0.785398; 739 pub const G_PRIORITY_DEFAULT: c_int = 0; 740 pub const G_PRIORITY_DEFAULT_IDLE: c_int = 200; 741 pub const G_PRIORITY_HIGH: c_int = -100; 742 pub const G_PRIORITY_HIGH_IDLE: c_int = 100; 743 pub const G_PRIORITY_LOW: c_int = 300; 744 pub const G_SOURCE_CONTINUE: gboolean = GTRUE; 745 pub const G_SOURCE_REMOVE: gboolean = GFALSE; 746 pub const G_SQRT2: c_double = 1.414214; 747 pub const G_STR_DELIMITERS: *const c_char = b"_-|> <.\0" as *const u8 as *const c_char; 748 pub const GLIB_SYSDEF_AF_INET: c_int = 2; 749 pub const GLIB_SYSDEF_AF_INET6: c_int = 10; 750 pub const GLIB_SYSDEF_AF_UNIX: c_int = 1; 751 pub const GLIB_SYSDEF_MSG_DONTROUTE: c_int = 4; 752 pub const GLIB_SYSDEF_MSG_OOB: c_int = 1; 753 pub const GLIB_SYSDEF_MSG_PEEK: c_int = 2; 754 pub const G_TEST_OPTION_ISOLATE_DIRS: *const c_char = 755 b"isolate_dirs\0" as *const u8 as *const c_char; 756 pub const G_TIME_SPAN_DAY: i64 = 86400000000; 757 pub const G_TIME_SPAN_HOUR: i64 = 3600000000; 758 pub const G_TIME_SPAN_MILLISECOND: i64 = 1000; 759 pub const G_TIME_SPAN_MINUTE: i64 = 60000000; 760 pub const G_TIME_SPAN_SECOND: i64 = 1000000; 761 pub const G_UNICHAR_MAX_DECOMPOSITION_LENGTH: c_int = 18; 762 pub const G_URI_RESERVED_CHARS_GENERIC_DELIMITERS: *const c_char = 763 b":/?#[]@\0" as *const u8 as *const c_char; 764 pub const G_URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: *const c_char = 765 b"!$&'()*+,;=\0" as *const u8 as *const c_char; 766 pub const G_USEC_PER_SEC: c_int = 1000000; 767 pub const G_WIN32_MSG_HANDLE: c_int = 19981206; 768 769 // Flags 770 pub type GAsciiType = c_uint; 771 pub const G_ASCII_ALNUM: GAsciiType = 1; 772 pub const G_ASCII_ALPHA: GAsciiType = 2; 773 pub const G_ASCII_CNTRL: GAsciiType = 4; 774 pub const G_ASCII_DIGIT: GAsciiType = 8; 775 pub const G_ASCII_GRAPH: GAsciiType = 16; 776 pub const G_ASCII_LOWER: GAsciiType = 32; 777 pub const G_ASCII_PRINT: GAsciiType = 64; 778 pub const G_ASCII_PUNCT: GAsciiType = 128; 779 pub const G_ASCII_SPACE: GAsciiType = 256; 780 pub const G_ASCII_UPPER: GAsciiType = 512; 781 pub const G_ASCII_XDIGIT: GAsciiType = 1024; 782 783 pub type GFileTest = c_uint; 784 pub const G_FILE_TEST_IS_REGULAR: GFileTest = 1; 785 pub const G_FILE_TEST_IS_SYMLINK: GFileTest = 2; 786 pub const G_FILE_TEST_IS_DIR: GFileTest = 4; 787 pub const G_FILE_TEST_IS_EXECUTABLE: GFileTest = 8; 788 pub const G_FILE_TEST_EXISTS: GFileTest = 16; 789 790 pub type GFormatSizeFlags = c_uint; 791 pub const G_FORMAT_SIZE_DEFAULT: GFormatSizeFlags = 0; 792 pub const G_FORMAT_SIZE_LONG_FORMAT: GFormatSizeFlags = 1; 793 pub const G_FORMAT_SIZE_IEC_UNITS: GFormatSizeFlags = 2; 794 pub const G_FORMAT_SIZE_BITS: GFormatSizeFlags = 4; 795 796 pub type GHookFlagMask = c_uint; 797 pub const G_HOOK_FLAG_ACTIVE: GHookFlagMask = 1; 798 pub const G_HOOK_FLAG_IN_CALL: GHookFlagMask = 2; 799 pub const G_HOOK_FLAG_MASK: GHookFlagMask = 15; 800 801 pub type GIOCondition = c_uint; 802 pub const G_IO_IN: GIOCondition = 1; 803 pub const G_IO_OUT: GIOCondition = 4; 804 pub const G_IO_PRI: GIOCondition = 2; 805 pub const G_IO_ERR: GIOCondition = 8; 806 pub const G_IO_HUP: GIOCondition = 16; 807 pub const G_IO_NVAL: GIOCondition = 32; 808 809 pub type GIOFlags = c_uint; 810 pub const G_IO_FLAG_APPEND: GIOFlags = 1; 811 pub const G_IO_FLAG_NONBLOCK: GIOFlags = 2; 812 pub const G_IO_FLAG_IS_READABLE: GIOFlags = 4; 813 pub const G_IO_FLAG_IS_WRITABLE: GIOFlags = 8; 814 pub const G_IO_FLAG_IS_WRITEABLE: GIOFlags = 8; 815 pub const G_IO_FLAG_IS_SEEKABLE: GIOFlags = 16; 816 pub const G_IO_FLAG_MASK: GIOFlags = 31; 817 pub const G_IO_FLAG_GET_MASK: GIOFlags = 31; 818 pub const G_IO_FLAG_SET_MASK: GIOFlags = 3; 819 820 pub type GKeyFileFlags = c_uint; 821 pub const G_KEY_FILE_NONE: GKeyFileFlags = 0; 822 pub const G_KEY_FILE_KEEP_COMMENTS: GKeyFileFlags = 1; 823 pub const G_KEY_FILE_KEEP_TRANSLATIONS: GKeyFileFlags = 2; 824 825 pub type GLogLevelFlags = c_uint; 826 pub const G_LOG_FLAG_RECURSION: GLogLevelFlags = 1; 827 pub const G_LOG_FLAG_FATAL: GLogLevelFlags = 2; 828 pub const G_LOG_LEVEL_ERROR: GLogLevelFlags = 4; 829 pub const G_LOG_LEVEL_CRITICAL: GLogLevelFlags = 8; 830 pub const G_LOG_LEVEL_WARNING: GLogLevelFlags = 16; 831 pub const G_LOG_LEVEL_MESSAGE: GLogLevelFlags = 32; 832 pub const G_LOG_LEVEL_INFO: GLogLevelFlags = 64; 833 pub const G_LOG_LEVEL_DEBUG: GLogLevelFlags = 128; 834 pub const G_LOG_LEVEL_MASK: GLogLevelFlags = 4294967292; 835 836 pub type GMarkupCollectType = c_uint; 837 pub const G_MARKUP_COLLECT_INVALID: GMarkupCollectType = 0; 838 pub const G_MARKUP_COLLECT_STRING: GMarkupCollectType = 1; 839 pub const G_MARKUP_COLLECT_STRDUP: GMarkupCollectType = 2; 840 pub const G_MARKUP_COLLECT_BOOLEAN: GMarkupCollectType = 3; 841 pub const G_MARKUP_COLLECT_TRISTATE: GMarkupCollectType = 4; 842 pub const G_MARKUP_COLLECT_OPTIONAL: GMarkupCollectType = 65536; 843 844 pub type GMarkupParseFlags = c_uint; 845 pub const G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG: GMarkupParseFlags = 1; 846 pub const G_MARKUP_TREAT_CDATA_AS_TEXT: GMarkupParseFlags = 2; 847 pub const G_MARKUP_PREFIX_ERROR_POSITION: GMarkupParseFlags = 4; 848 pub const G_MARKUP_IGNORE_QUALIFIED: GMarkupParseFlags = 8; 849 850 pub type GOptionFlags = c_uint; 851 pub const G_OPTION_FLAG_NONE: GOptionFlags = 0; 852 pub const G_OPTION_FLAG_HIDDEN: GOptionFlags = 1; 853 pub const G_OPTION_FLAG_IN_MAIN: GOptionFlags = 2; 854 pub const G_OPTION_FLAG_REVERSE: GOptionFlags = 4; 855 pub const G_OPTION_FLAG_NO_ARG: GOptionFlags = 8; 856 pub const G_OPTION_FLAG_FILENAME: GOptionFlags = 16; 857 pub const G_OPTION_FLAG_OPTIONAL_ARG: GOptionFlags = 32; 858 pub const G_OPTION_FLAG_NOALIAS: GOptionFlags = 64; 859 860 pub type GRegexCompileFlags = c_uint; 861 pub const G_REGEX_CASELESS: GRegexCompileFlags = 1; 862 pub const G_REGEX_MULTILINE: GRegexCompileFlags = 2; 863 pub const G_REGEX_DOTALL: GRegexCompileFlags = 4; 864 pub const G_REGEX_EXTENDED: GRegexCompileFlags = 8; 865 pub const G_REGEX_ANCHORED: GRegexCompileFlags = 16; 866 pub const G_REGEX_DOLLAR_ENDONLY: GRegexCompileFlags = 32; 867 pub const G_REGEX_UNGREEDY: GRegexCompileFlags = 512; 868 pub const G_REGEX_RAW: GRegexCompileFlags = 2048; 869 pub const G_REGEX_NO_AUTO_CAPTURE: GRegexCompileFlags = 4096; 870 pub const G_REGEX_OPTIMIZE: GRegexCompileFlags = 8192; 871 pub const G_REGEX_FIRSTLINE: GRegexCompileFlags = 262144; 872 pub const G_REGEX_DUPNAMES: GRegexCompileFlags = 524288; 873 pub const G_REGEX_NEWLINE_CR: GRegexCompileFlags = 1048576; 874 pub const G_REGEX_NEWLINE_LF: GRegexCompileFlags = 2097152; 875 pub const G_REGEX_NEWLINE_CRLF: GRegexCompileFlags = 3145728; 876 pub const G_REGEX_NEWLINE_ANYCRLF: GRegexCompileFlags = 5242880; 877 pub const G_REGEX_BSR_ANYCRLF: GRegexCompileFlags = 8388608; 878 pub const G_REGEX_JAVASCRIPT_COMPAT: GRegexCompileFlags = 33554432; 879 880 pub type GRegexMatchFlags = c_uint; 881 pub const G_REGEX_MATCH_ANCHORED: GRegexMatchFlags = 16; 882 pub const G_REGEX_MATCH_NOTBOL: GRegexMatchFlags = 128; 883 pub const G_REGEX_MATCH_NOTEOL: GRegexMatchFlags = 256; 884 pub const G_REGEX_MATCH_NOTEMPTY: GRegexMatchFlags = 1024; 885 pub const G_REGEX_MATCH_PARTIAL: GRegexMatchFlags = 32768; 886 pub const G_REGEX_MATCH_NEWLINE_CR: GRegexMatchFlags = 1048576; 887 pub const G_REGEX_MATCH_NEWLINE_LF: GRegexMatchFlags = 2097152; 888 pub const G_REGEX_MATCH_NEWLINE_CRLF: GRegexMatchFlags = 3145728; 889 pub const G_REGEX_MATCH_NEWLINE_ANY: GRegexMatchFlags = 4194304; 890 pub const G_REGEX_MATCH_NEWLINE_ANYCRLF: GRegexMatchFlags = 5242880; 891 pub const G_REGEX_MATCH_BSR_ANYCRLF: GRegexMatchFlags = 8388608; 892 pub const G_REGEX_MATCH_BSR_ANY: GRegexMatchFlags = 16777216; 893 pub const G_REGEX_MATCH_PARTIAL_SOFT: GRegexMatchFlags = 32768; 894 pub const G_REGEX_MATCH_PARTIAL_HARD: GRegexMatchFlags = 134217728; 895 pub const G_REGEX_MATCH_NOTEMPTY_ATSTART: GRegexMatchFlags = 268435456; 896 897 pub type GSpawnFlags = c_uint; 898 pub const G_SPAWN_DEFAULT: GSpawnFlags = 0; 899 pub const G_SPAWN_LEAVE_DESCRIPTORS_OPEN: GSpawnFlags = 1; 900 pub const G_SPAWN_DO_NOT_REAP_CHILD: GSpawnFlags = 2; 901 pub const G_SPAWN_SEARCH_PATH: GSpawnFlags = 4; 902 pub const G_SPAWN_STDOUT_TO_DEV_NULL: GSpawnFlags = 8; 903 pub const G_SPAWN_STDERR_TO_DEV_NULL: GSpawnFlags = 16; 904 pub const G_SPAWN_CHILD_INHERITS_STDIN: GSpawnFlags = 32; 905 pub const G_SPAWN_FILE_AND_ARGV_ZERO: GSpawnFlags = 64; 906 pub const G_SPAWN_SEARCH_PATH_FROM_ENVP: GSpawnFlags = 128; 907 pub const G_SPAWN_CLOEXEC_PIPES: GSpawnFlags = 256; 908 909 pub type GTestSubprocessFlags = c_uint; 910 pub const G_TEST_SUBPROCESS_INHERIT_STDIN: GTestSubprocessFlags = 1; 911 pub const G_TEST_SUBPROCESS_INHERIT_STDOUT: GTestSubprocessFlags = 2; 912 pub const G_TEST_SUBPROCESS_INHERIT_STDERR: GTestSubprocessFlags = 4; 913 914 pub type GTestTrapFlags = c_uint; 915 pub const G_TEST_TRAP_SILENCE_STDOUT: GTestTrapFlags = 128; 916 pub const G_TEST_TRAP_SILENCE_STDERR: GTestTrapFlags = 256; 917 pub const G_TEST_TRAP_INHERIT_STDIN: GTestTrapFlags = 512; 918 919 pub type GTraverseFlags = c_uint; 920 pub const G_TRAVERSE_LEAVES: GTraverseFlags = 1; 921 pub const G_TRAVERSE_NON_LEAVES: GTraverseFlags = 2; 922 pub const G_TRAVERSE_ALL: GTraverseFlags = 3; 923 pub const G_TRAVERSE_MASK: GTraverseFlags = 3; 924 pub const G_TRAVERSE_LEAFS: GTraverseFlags = 1; 925 pub const G_TRAVERSE_NON_LEAFS: GTraverseFlags = 2; 926 927 // Unions 928 #[repr(C)] 929 pub struct GDoubleIEEE754(c_void); 930 931 impl ::std::fmt::Debug for GDoubleIEEE754 { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result932 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 933 f.debug_struct(&format!("GDoubleIEEE754 @ {:?}", self as *const _)) 934 .finish() 935 } 936 } 937 938 #[repr(C)] 939 pub struct GFloatIEEE754(c_void); 940 941 impl ::std::fmt::Debug for GFloatIEEE754 { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result942 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 943 f.debug_struct(&format!("GFloatIEEE754 @ {:?}", self as *const _)) 944 .finish() 945 } 946 } 947 948 #[repr(C)] 949 #[derive(Copy, Clone)] 950 pub union GMutex { 951 pub p: gpointer, 952 pub i: [c_uint; 2], 953 } 954 955 impl ::std::fmt::Debug for GMutex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result956 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 957 f.debug_struct(&format!("GMutex @ {:?}", self as *const _)) 958 .finish() 959 } 960 } 961 962 #[repr(C)] 963 #[derive(Copy, Clone)] 964 pub union GTokenValue { 965 pub v_symbol: gpointer, 966 pub v_identifier: *mut c_char, 967 pub v_binary: c_ulong, 968 pub v_octal: c_ulong, 969 pub v_int: c_ulong, 970 pub v_int64: u64, 971 pub v_float: c_double, 972 pub v_hex: c_ulong, 973 pub v_string: *mut c_char, 974 pub v_comment: *mut c_char, 975 pub v_char: c_uchar, 976 pub v_error: c_uint, 977 } 978 979 impl ::std::fmt::Debug for GTokenValue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result980 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 981 f.debug_struct(&format!("GTokenValue @ {:?}", self as *const _)) 982 .field("v_symbol", unsafe { &self.v_symbol }) 983 .field("v_identifier", unsafe { &self.v_identifier }) 984 .field("v_binary", unsafe { &self.v_binary }) 985 .field("v_octal", unsafe { &self.v_octal }) 986 .field("v_int", unsafe { &self.v_int }) 987 .field("v_int64", unsafe { &self.v_int64 }) 988 .field("v_float", unsafe { &self.v_float }) 989 .field("v_hex", unsafe { &self.v_hex }) 990 .field("v_string", unsafe { &self.v_string }) 991 .field("v_comment", unsafe { &self.v_comment }) 992 .field("v_char", unsafe { &self.v_char }) 993 .field("v_error", unsafe { &self.v_error }) 994 .finish() 995 } 996 } 997 998 #[repr(C)] 999 #[derive(Copy, Clone)] 1000 pub union GVariantBuilder_u { 1001 pub s: GVariantBuilder_u_s, 1002 pub x: [size_t; 16], 1003 } 1004 1005 impl ::std::fmt::Debug for GVariantBuilder_u { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1006 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1007 f.debug_struct(&format!("GVariantBuilder_u @ {:?}", self as *const _)) 1008 .field("s", unsafe { &self.s }) 1009 .field("x", unsafe { &self.x }) 1010 .finish() 1011 } 1012 } 1013 1014 #[repr(C)] 1015 #[derive(Copy, Clone)] 1016 pub union GVariantDict_u { 1017 pub s: GVariantDict_u_s, 1018 pub x: [size_t; 16], 1019 } 1020 1021 impl ::std::fmt::Debug for GVariantDict_u { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1022 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1023 f.debug_struct(&format!("GVariantDict_u @ {:?}", self as *const _)) 1024 .field("s", unsafe { &self.s }) 1025 .field("x", unsafe { &self.x }) 1026 .finish() 1027 } 1028 } 1029 1030 // Callbacks 1031 pub type GChildWatchFunc = Option<unsafe extern "C" fn(GPid, c_int, gpointer)>; 1032 pub type GClearHandleFunc = Option<unsafe extern "C" fn(c_uint)>; 1033 pub type GCompareDataFunc = 1034 Option<unsafe extern "C" fn(gconstpointer, gconstpointer, gpointer) -> c_int>; 1035 pub type GCompareFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> c_int>; 1036 pub type GCopyFunc = Option<unsafe extern "C" fn(gconstpointer, gpointer) -> gpointer>; 1037 pub type GDataForeachFunc = Option<unsafe extern "C" fn(GQuark, gpointer, gpointer)>; 1038 pub type GDestroyNotify = Option<unsafe extern "C" fn(gpointer)>; 1039 pub type GDuplicateFunc = Option<unsafe extern "C" fn(gpointer, gpointer) -> gpointer>; 1040 pub type GEqualFunc = Option<unsafe extern "C" fn(gconstpointer, gconstpointer) -> gboolean>; 1041 pub type GFreeFunc = Option<unsafe extern "C" fn(gpointer)>; 1042 pub type GFunc = Option<unsafe extern "C" fn(gpointer, gpointer)>; 1043 pub type GHFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer)>; 1044 pub type GHRFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>; 1045 pub type GHashFunc = Option<unsafe extern "C" fn(gconstpointer) -> c_uint>; 1046 pub type GHookCheckFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>; 1047 pub type GHookCheckMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>; 1048 pub type GHookCompareFunc = Option<unsafe extern "C" fn(*mut GHook, *mut GHook) -> c_int>; 1049 pub type GHookFinalizeFunc = Option<unsafe extern "C" fn(*mut GHookList, *mut GHook)>; 1050 pub type GHookFindFunc = Option<unsafe extern "C" fn(*mut GHook, gpointer) -> gboolean>; 1051 pub type GHookFunc = Option<unsafe extern "C" fn(gpointer)>; 1052 pub type GHookMarshaller = Option<unsafe extern "C" fn(*mut GHook, gpointer)>; 1053 pub type GIOFunc = 1054 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition, gpointer) -> gboolean>; 1055 pub type GLogFunc = 1056 Option<unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer)>; 1057 pub type GLogWriterFunc = Option< 1058 unsafe extern "C" fn(GLogLevelFlags, *const GLogField, size_t, gpointer) -> GLogWriterOutput, 1059 >; 1060 pub type GNodeForeachFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer)>; 1061 pub type GNodeTraverseFunc = Option<unsafe extern "C" fn(*mut GNode, gpointer) -> gboolean>; 1062 pub type GOptionArgFunc = Option< 1063 unsafe extern "C" fn(*const c_char, *const c_char, gpointer, *mut *mut GError) -> gboolean, 1064 >; 1065 pub type GOptionErrorFunc = Option< 1066 unsafe extern "C" fn(*mut GOptionContext, *mut GOptionGroup, gpointer, *mut *mut GError), 1067 >; 1068 pub type GOptionParseFunc = Option< 1069 unsafe extern "C" fn( 1070 *mut GOptionContext, 1071 *mut GOptionGroup, 1072 gpointer, 1073 *mut *mut GError, 1074 ) -> gboolean, 1075 >; 1076 pub type GPollFunc = Option<unsafe extern "C" fn(*mut GPollFD, c_uint, c_int) -> c_int>; 1077 pub type GPrintFunc = Option<unsafe extern "C" fn(*const c_char)>; 1078 pub type GRegexEvalCallback = 1079 Option<unsafe extern "C" fn(*const GMatchInfo, *mut GString, gpointer) -> gboolean>; 1080 pub type GScannerMsgFunc = Option<unsafe extern "C" fn(*mut GScanner, *mut c_char, gboolean)>; 1081 pub type GSequenceIterCompareFunc = 1082 Option<unsafe extern "C" fn(*mut GSequenceIter, *mut GSequenceIter, gpointer) -> c_int>; 1083 pub type GSourceDummyMarshal = Option<unsafe extern "C" fn()>; 1084 pub type GSourceFunc = Option<unsafe extern "C" fn(gpointer) -> gboolean>; 1085 pub type GSpawnChildSetupFunc = Option<unsafe extern "C" fn(gpointer)>; 1086 pub type GTestDataFunc = Option<unsafe extern "C" fn(gconstpointer)>; 1087 pub type GTestFixtureFunc = Option<unsafe extern "C" fn(gpointer, gconstpointer)>; 1088 pub type GTestFunc = Option<unsafe extern "C" fn()>; 1089 pub type GTestLogFatalFunc = Option< 1090 unsafe extern "C" fn(*const c_char, GLogLevelFlags, *const c_char, gpointer) -> gboolean, 1091 >; 1092 pub type GThreadFunc = Option<unsafe extern "C" fn(gpointer) -> gpointer>; 1093 pub type GTranslateFunc = Option<unsafe extern "C" fn(*const c_char, gpointer) -> *const c_char>; 1094 pub type GTraverseFunc = Option<unsafe extern "C" fn(gpointer, gpointer, gpointer) -> gboolean>; 1095 pub type GUnixFDSourceFunc = 1096 Option<unsafe extern "C" fn(c_int, GIOCondition, gpointer) -> gboolean>; 1097 pub type GVoidFunc = Option<unsafe extern "C" fn()>; 1098 1099 // Records 1100 #[repr(C)] 1101 #[derive(Copy, Clone)] 1102 pub struct GArray { 1103 pub data: *mut c_char, 1104 pub len: c_uint, 1105 } 1106 1107 impl ::std::fmt::Debug for GArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1108 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1109 f.debug_struct(&format!("GArray @ {:?}", self as *const _)) 1110 .field("data", &self.data) 1111 .field("len", &self.len) 1112 .finish() 1113 } 1114 } 1115 1116 #[repr(C)] 1117 pub struct _GAsyncQueue(c_void); 1118 1119 pub type GAsyncQueue = *mut _GAsyncQueue; 1120 1121 #[repr(C)] 1122 pub struct _GBookmarkFile(c_void); 1123 1124 pub type GBookmarkFile = *mut _GBookmarkFile; 1125 1126 #[repr(C)] 1127 #[derive(Copy, Clone)] 1128 pub struct GByteArray { 1129 pub data: *mut u8, 1130 pub len: c_uint, 1131 } 1132 1133 impl ::std::fmt::Debug for GByteArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1134 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1135 f.debug_struct(&format!("GByteArray @ {:?}", self as *const _)) 1136 .field("data", &self.data) 1137 .field("len", &self.len) 1138 .finish() 1139 } 1140 } 1141 1142 #[repr(C)] 1143 pub struct GBytes(c_void); 1144 1145 impl ::std::fmt::Debug for GBytes { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1146 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1147 f.debug_struct(&format!("GBytes @ {:?}", self as *const _)) 1148 .finish() 1149 } 1150 } 1151 1152 #[repr(C)] 1153 pub struct GChecksum(c_void); 1154 1155 impl ::std::fmt::Debug for GChecksum { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1156 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1157 f.debug_struct(&format!("GChecksum @ {:?}", self as *const _)) 1158 .finish() 1159 } 1160 } 1161 1162 #[repr(C)] 1163 #[derive(Copy, Clone)] 1164 pub struct GCond { 1165 pub p: gpointer, 1166 pub i: [c_uint; 2], 1167 } 1168 1169 impl ::std::fmt::Debug for GCond { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1170 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1171 f.debug_struct(&format!("GCond @ {:?}", self as *const _)) 1172 .finish() 1173 } 1174 } 1175 1176 #[repr(C)] 1177 pub struct _GData(c_void); 1178 1179 pub type GData = *mut _GData; 1180 1181 #[repr(C)] 1182 pub struct GDate { 1183 pub julian_days: c_uint, 1184 _truncated_record_marker: c_void, 1185 // field julian has incomplete type 1186 } 1187 1188 impl ::std::fmt::Debug for GDate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1189 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1190 f.debug_struct(&format!("GDate @ {:?}", self as *const _)) 1191 .field("julian_days", &self.julian_days) 1192 .finish() 1193 } 1194 } 1195 1196 #[repr(C)] 1197 pub struct GDateTime(c_void); 1198 1199 impl ::std::fmt::Debug for GDateTime { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1200 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1201 f.debug_struct(&format!("GDateTime @ {:?}", self as *const _)) 1202 .finish() 1203 } 1204 } 1205 1206 #[repr(C)] 1207 #[derive(Copy, Clone)] 1208 pub struct GDebugKey { 1209 pub key: *const c_char, 1210 pub value: c_uint, 1211 } 1212 1213 impl ::std::fmt::Debug for GDebugKey { 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!("GDebugKey @ {:?}", self as *const _)) 1216 .field("key", &self.key) 1217 .field("value", &self.value) 1218 .finish() 1219 } 1220 } 1221 1222 #[repr(C)] 1223 pub struct _GDir(c_void); 1224 1225 pub type GDir = *mut _GDir; 1226 1227 #[repr(C)] 1228 pub struct GDoubleIEEE754_mpn { 1229 pub mantissa_low: c_uint, 1230 _truncated_record_marker: c_void, 1231 // field mantissa_high has incomplete type 1232 } 1233 1234 impl ::std::fmt::Debug for GDoubleIEEE754_mpn { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1235 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1236 f.debug_struct(&format!("GDoubleIEEE754_mpn @ {:?}", self as *const _)) 1237 .field("mantissa_low", &self.mantissa_low) 1238 .finish() 1239 } 1240 } 1241 1242 #[repr(C)] 1243 #[derive(Copy, Clone)] 1244 pub struct GError { 1245 pub domain: GQuark, 1246 pub code: c_int, 1247 pub message: *mut c_char, 1248 } 1249 1250 impl ::std::fmt::Debug for GError { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1251 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1252 f.debug_struct(&format!("GError @ {:?}", self as *const _)) 1253 .field("domain", &self.domain) 1254 .field("code", &self.code) 1255 .field("message", &self.message) 1256 .finish() 1257 } 1258 } 1259 1260 #[repr(C)] 1261 pub struct GFloatIEEE754_mpn { 1262 pub mantissa: c_uint, 1263 _truncated_record_marker: c_void, 1264 // field biased_exponent has incomplete type 1265 } 1266 1267 impl ::std::fmt::Debug for GFloatIEEE754_mpn { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1268 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1269 f.debug_struct(&format!("GFloatIEEE754_mpn @ {:?}", self as *const _)) 1270 .field("mantissa", &self.mantissa) 1271 .finish() 1272 } 1273 } 1274 1275 #[repr(C)] 1276 pub struct GHashTable(c_void); 1277 1278 impl ::std::fmt::Debug for GHashTable { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1279 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1280 f.debug_struct(&format!("GHashTable @ {:?}", self as *const _)) 1281 .finish() 1282 } 1283 } 1284 1285 #[repr(C)] 1286 #[derive(Copy, Clone)] 1287 pub struct GHashTableIter { 1288 pub dummy1: gpointer, 1289 pub dummy2: gpointer, 1290 pub dummy3: gpointer, 1291 pub dummy4: c_int, 1292 pub dummy5: gboolean, 1293 pub dummy6: gpointer, 1294 } 1295 1296 impl ::std::fmt::Debug for GHashTableIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1297 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1298 f.debug_struct(&format!("GHashTableIter @ {:?}", self as *const _)) 1299 .finish() 1300 } 1301 } 1302 1303 #[repr(C)] 1304 pub struct _GHmac(c_void); 1305 1306 pub type GHmac = *mut _GHmac; 1307 1308 #[repr(C)] 1309 #[derive(Copy, Clone)] 1310 pub struct GHook { 1311 pub data: gpointer, 1312 pub next: *mut GHook, 1313 pub prev: *mut GHook, 1314 pub ref_count: c_uint, 1315 pub hook_id: c_ulong, 1316 pub flags: c_uint, 1317 pub func: gpointer, 1318 pub destroy: GDestroyNotify, 1319 } 1320 1321 impl ::std::fmt::Debug for GHook { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1322 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1323 f.debug_struct(&format!("GHook @ {:?}", self as *const _)) 1324 .field("data", &self.data) 1325 .field("next", &self.next) 1326 .field("prev", &self.prev) 1327 .field("ref_count", &self.ref_count) 1328 .field("hook_id", &self.hook_id) 1329 .field("flags", &self.flags) 1330 .field("func", &self.func) 1331 .field("destroy", &self.destroy) 1332 .finish() 1333 } 1334 } 1335 1336 #[repr(C)] 1337 #[derive(Copy, Clone)] 1338 pub struct GHookList { 1339 pub seq_id: c_ulong, 1340 #[cfg(any(not(windows), not(target_pointer_width = "64")))] 1341 pub hook_size_and_setup: gpointer, 1342 #[cfg(all(windows, target_pointer_width = "64"))] 1343 pub hook_size_and_setup: c_ulong, 1344 pub hooks: *mut GHook, 1345 pub dummy3: gpointer, 1346 pub finalize_hook: GHookFinalizeFunc, 1347 pub dummy: [gpointer; 2], 1348 } 1349 1350 impl ::std::fmt::Debug for GHookList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1351 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1352 write!(f, "GHookList @ {:?}", self as *const _) 1353 } 1354 } 1355 1356 #[repr(C)] 1357 pub struct _GIConv(c_void); 1358 1359 pub type GIConv = *mut _GIConv; 1360 1361 #[repr(C)] 1362 pub struct GIOChannel { 1363 pub ref_count: c_int, 1364 pub funcs: *mut GIOFuncs, 1365 pub encoding: *mut c_char, 1366 pub read_cd: GIConv, 1367 pub write_cd: GIConv, 1368 pub line_term: *mut c_char, 1369 pub line_term_len: c_uint, 1370 pub buf_size: size_t, 1371 pub read_buf: *mut GString, 1372 pub encoded_read_buf: *mut GString, 1373 pub write_buf: *mut GString, 1374 pub partial_write_buf: [c_char; 6], 1375 pub use_buffer: c_uint, 1376 _truncated_record_marker: c_void, 1377 // field do_encode has incomplete type 1378 } 1379 1380 impl ::std::fmt::Debug for GIOChannel { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1381 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1382 f.debug_struct(&format!("GIOChannel @ {:?}", self as *const _)) 1383 .finish() 1384 } 1385 } 1386 1387 #[repr(C)] 1388 #[derive(Copy, Clone)] 1389 pub struct GIOFuncs { 1390 pub io_read: Option< 1391 unsafe extern "C" fn( 1392 *mut GIOChannel, 1393 *const c_char, 1394 size_t, 1395 *mut size_t, 1396 *mut *mut GError, 1397 ) -> GIOStatus, 1398 >, 1399 pub io_write: Option< 1400 unsafe extern "C" fn( 1401 *mut GIOChannel, 1402 *const c_char, 1403 size_t, 1404 *mut size_t, 1405 *mut *mut GError, 1406 ) -> GIOStatus, 1407 >, 1408 pub io_seek: Option< 1409 unsafe extern "C" fn(*mut GIOChannel, i64, GSeekType, *mut *mut GError) -> GIOStatus, 1410 >, 1411 pub io_close: Option<unsafe extern "C" fn(*mut GIOChannel, *mut *mut GError) -> GIOStatus>, 1412 pub io_create_watch: 1413 Option<unsafe extern "C" fn(*mut GIOChannel, GIOCondition) -> *mut GSource>, 1414 pub io_free: Option<unsafe extern "C" fn(*mut GIOChannel)>, 1415 pub io_set_flags: 1416 Option<unsafe extern "C" fn(*mut GIOChannel, GIOFlags, *mut *mut GError) -> GIOStatus>, 1417 pub io_get_flags: Option<unsafe extern "C" fn(*mut GIOChannel) -> GIOFlags>, 1418 } 1419 1420 impl ::std::fmt::Debug for GIOFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1421 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1422 f.debug_struct(&format!("GIOFuncs @ {:?}", self as *const _)) 1423 .field("io_read", &self.io_read) 1424 .field("io_write", &self.io_write) 1425 .field("io_seek", &self.io_seek) 1426 .field("io_close", &self.io_close) 1427 .field("io_create_watch", &self.io_create_watch) 1428 .field("io_free", &self.io_free) 1429 .field("io_set_flags", &self.io_set_flags) 1430 .field("io_get_flags", &self.io_get_flags) 1431 .finish() 1432 } 1433 } 1434 1435 #[repr(C)] 1436 pub struct GKeyFile(c_void); 1437 1438 impl ::std::fmt::Debug for GKeyFile { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1439 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1440 f.debug_struct(&format!("GKeyFile @ {:?}", self as *const _)) 1441 .finish() 1442 } 1443 } 1444 1445 #[repr(C)] 1446 #[derive(Copy, Clone)] 1447 pub struct GList { 1448 pub data: gpointer, 1449 pub next: *mut GList, 1450 pub prev: *mut GList, 1451 } 1452 1453 impl ::std::fmt::Debug for GList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1454 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1455 f.debug_struct(&format!("GList @ {:?}", self as *const _)) 1456 .field("data", &self.data) 1457 .field("next", &self.next) 1458 .field("prev", &self.prev) 1459 .finish() 1460 } 1461 } 1462 1463 #[repr(C)] 1464 #[derive(Copy, Clone)] 1465 pub struct GLogField { 1466 pub key: *const c_char, 1467 pub value: gconstpointer, 1468 pub length: ssize_t, 1469 } 1470 1471 impl ::std::fmt::Debug for GLogField { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1472 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1473 f.debug_struct(&format!("GLogField @ {:?}", self as *const _)) 1474 .field("key", &self.key) 1475 .field("value", &self.value) 1476 .field("length", &self.length) 1477 .finish() 1478 } 1479 } 1480 1481 #[repr(C)] 1482 pub struct GMainContext(c_void); 1483 1484 impl ::std::fmt::Debug for GMainContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1485 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1486 f.debug_struct(&format!("GMainContext @ {:?}", self as *const _)) 1487 .finish() 1488 } 1489 } 1490 1491 #[repr(C)] 1492 pub struct GMainLoop(c_void); 1493 1494 impl ::std::fmt::Debug for GMainLoop { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1495 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1496 f.debug_struct(&format!("GMainLoop @ {:?}", self as *const _)) 1497 .finish() 1498 } 1499 } 1500 1501 #[repr(C)] 1502 pub struct GMappedFile(c_void); 1503 1504 impl ::std::fmt::Debug for GMappedFile { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1505 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1506 f.debug_struct(&format!("GMappedFile @ {:?}", self as *const _)) 1507 .finish() 1508 } 1509 } 1510 1511 #[repr(C)] 1512 pub struct GMarkupParseContext(c_void); 1513 1514 impl ::std::fmt::Debug for GMarkupParseContext { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1515 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1516 f.debug_struct(&format!("GMarkupParseContext @ {:?}", self as *const _)) 1517 .finish() 1518 } 1519 } 1520 1521 #[repr(C)] 1522 #[derive(Copy, Clone)] 1523 pub struct GMarkupParser { 1524 pub start_element: Option< 1525 unsafe extern "C" fn( 1526 *mut GMarkupParseContext, 1527 *const c_char, 1528 *mut *const c_char, 1529 *mut *const c_char, 1530 gpointer, 1531 *mut *mut GError, 1532 ), 1533 >, 1534 pub end_element: Option< 1535 unsafe extern "C" fn(*mut GMarkupParseContext, *const c_char, gpointer, *mut *mut GError), 1536 >, 1537 pub text: Option< 1538 unsafe extern "C" fn( 1539 *mut GMarkupParseContext, 1540 *const c_char, 1541 size_t, 1542 gpointer, 1543 *mut *mut GError, 1544 ), 1545 >, 1546 pub passthrough: Option< 1547 unsafe extern "C" fn( 1548 *mut GMarkupParseContext, 1549 *const c_char, 1550 size_t, 1551 gpointer, 1552 *mut *mut GError, 1553 ), 1554 >, 1555 pub error: Option<unsafe extern "C" fn(*mut GMarkupParseContext, *mut GError, gpointer)>, 1556 } 1557 1558 impl ::std::fmt::Debug for GMarkupParser { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1559 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1560 f.debug_struct(&format!("GMarkupParser @ {:?}", self as *const _)) 1561 .field("start_element", &self.start_element) 1562 .field("end_element", &self.end_element) 1563 .field("text", &self.text) 1564 .field("passthrough", &self.passthrough) 1565 .field("error", &self.error) 1566 .finish() 1567 } 1568 } 1569 1570 #[repr(C)] 1571 pub struct GMatchInfo(c_void); 1572 1573 impl ::std::fmt::Debug for GMatchInfo { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1574 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1575 f.debug_struct(&format!("GMatchInfo @ {:?}", self as *const _)) 1576 .finish() 1577 } 1578 } 1579 1580 #[repr(C)] 1581 #[derive(Copy, Clone)] 1582 pub struct GMemVTable { 1583 pub malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>, 1584 pub realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>, 1585 pub free: Option<unsafe extern "C" fn(gpointer)>, 1586 pub calloc: Option<unsafe extern "C" fn(size_t, size_t) -> gpointer>, 1587 pub try_malloc: Option<unsafe extern "C" fn(size_t) -> gpointer>, 1588 pub try_realloc: Option<unsafe extern "C" fn(gpointer, size_t) -> gpointer>, 1589 } 1590 1591 impl ::std::fmt::Debug for GMemVTable { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1592 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1593 f.debug_struct(&format!("GMemVTable @ {:?}", self as *const _)) 1594 .field("malloc", &self.malloc) 1595 .field("realloc", &self.realloc) 1596 .field("free", &self.free) 1597 .field("calloc", &self.calloc) 1598 .field("try_malloc", &self.try_malloc) 1599 .field("try_realloc", &self.try_realloc) 1600 .finish() 1601 } 1602 } 1603 1604 #[repr(C)] 1605 #[derive(Copy, Clone)] 1606 pub struct GNode { 1607 pub data: gpointer, 1608 pub next: *mut GNode, 1609 pub prev: *mut GNode, 1610 pub parent: *mut GNode, 1611 pub children: *mut GNode, 1612 } 1613 1614 impl ::std::fmt::Debug for GNode { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1615 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1616 f.debug_struct(&format!("GNode @ {:?}", self as *const _)) 1617 .field("data", &self.data) 1618 .field("next", &self.next) 1619 .field("prev", &self.prev) 1620 .field("parent", &self.parent) 1621 .field("children", &self.children) 1622 .finish() 1623 } 1624 } 1625 1626 #[repr(C)] 1627 #[derive(Copy, Clone)] 1628 pub struct GOnce { 1629 pub status: GOnceStatus, 1630 pub retval: gpointer, 1631 } 1632 1633 impl ::std::fmt::Debug for GOnce { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1634 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1635 f.debug_struct(&format!("GOnce @ {:?}", self as *const _)) 1636 .finish() 1637 } 1638 } 1639 1640 #[repr(C)] 1641 pub struct _GOptionContext(c_void); 1642 1643 pub type GOptionContext = *mut _GOptionContext; 1644 1645 #[repr(C)] 1646 #[derive(Copy, Clone)] 1647 pub struct GOptionEntry { 1648 pub long_name: *const c_char, 1649 pub short_name: c_char, 1650 pub flags: c_int, 1651 pub arg: GOptionArg, 1652 pub arg_data: gpointer, 1653 pub description: *const c_char, 1654 pub arg_description: *const c_char, 1655 } 1656 1657 impl ::std::fmt::Debug for GOptionEntry { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1658 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1659 f.debug_struct(&format!("GOptionEntry @ {:?}", self as *const _)) 1660 .field("long_name", &self.long_name) 1661 .field("short_name", &self.short_name) 1662 .field("flags", &self.flags) 1663 .field("arg", &self.arg) 1664 .field("arg_data", &self.arg_data) 1665 .field("description", &self.description) 1666 .field("arg_description", &self.arg_description) 1667 .finish() 1668 } 1669 } 1670 1671 #[repr(C)] 1672 pub struct GOptionGroup(c_void); 1673 1674 impl ::std::fmt::Debug for GOptionGroup { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1675 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1676 f.debug_struct(&format!("GOptionGroup @ {:?}", self as *const _)) 1677 .finish() 1678 } 1679 } 1680 1681 #[repr(C)] 1682 pub struct _GPatternSpec(c_void); 1683 1684 pub type GPatternSpec = *mut _GPatternSpec; 1685 1686 #[repr(C)] 1687 #[derive(Copy, Clone)] 1688 pub struct GPrivate { 1689 pub p: gpointer, 1690 pub notify: GDestroyNotify, 1691 pub future: [gpointer; 2], 1692 } 1693 1694 impl ::std::fmt::Debug for GPrivate { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1695 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1696 f.debug_struct(&format!("GPrivate @ {:?}", self as *const _)) 1697 .finish() 1698 } 1699 } 1700 1701 #[repr(C)] 1702 #[derive(Copy, Clone)] 1703 pub struct GPtrArray { 1704 pub pdata: *mut gpointer, 1705 pub len: c_uint, 1706 } 1707 1708 impl ::std::fmt::Debug for GPtrArray { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1709 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1710 f.debug_struct(&format!("GPtrArray @ {:?}", self as *const _)) 1711 .field("pdata", &self.pdata) 1712 .field("len", &self.len) 1713 .finish() 1714 } 1715 } 1716 1717 #[repr(C)] 1718 #[derive(Copy, Clone)] 1719 pub struct GQueue { 1720 pub head: *mut GList, 1721 pub tail: *mut GList, 1722 pub length: c_uint, 1723 } 1724 1725 impl ::std::fmt::Debug for GQueue { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1726 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1727 f.debug_struct(&format!("GQueue @ {:?}", self as *const _)) 1728 .field("head", &self.head) 1729 .field("tail", &self.tail) 1730 .field("length", &self.length) 1731 .finish() 1732 } 1733 } 1734 1735 #[repr(C)] 1736 #[derive(Copy, Clone)] 1737 pub struct GRWLock { 1738 pub p: gpointer, 1739 pub i: [c_uint; 2], 1740 } 1741 1742 impl ::std::fmt::Debug for GRWLock { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1743 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1744 f.debug_struct(&format!("GRWLock @ {:?}", self as *const _)) 1745 .finish() 1746 } 1747 } 1748 1749 #[repr(C)] 1750 pub struct _GRand(c_void); 1751 1752 pub type GRand = *mut _GRand; 1753 1754 #[repr(C)] 1755 #[derive(Copy, Clone)] 1756 pub struct GRecMutex { 1757 pub p: gpointer, 1758 pub i: [c_uint; 2], 1759 } 1760 1761 impl ::std::fmt::Debug for GRecMutex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1762 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1763 f.debug_struct(&format!("GRecMutex @ {:?}", self as *const _)) 1764 .finish() 1765 } 1766 } 1767 1768 #[repr(C)] 1769 pub struct GRegex(c_void); 1770 1771 impl ::std::fmt::Debug for GRegex { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1772 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1773 f.debug_struct(&format!("GRegex @ {:?}", self as *const _)) 1774 .finish() 1775 } 1776 } 1777 1778 #[repr(C)] 1779 #[derive(Copy, Clone)] 1780 pub struct GSList { 1781 pub data: gpointer, 1782 pub next: *mut GSList, 1783 } 1784 1785 impl ::std::fmt::Debug for GSList { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1786 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1787 f.debug_struct(&format!("GSList @ {:?}", self as *const _)) 1788 .field("data", &self.data) 1789 .field("next", &self.next) 1790 .finish() 1791 } 1792 } 1793 1794 #[repr(C)] 1795 #[derive(Copy, Clone)] 1796 pub struct GScanner { 1797 pub user_data: gpointer, 1798 pub max_parse_errors: c_uint, 1799 pub parse_errors: c_uint, 1800 pub input_name: *const c_char, 1801 pub qdata: *mut GData, 1802 pub config: *mut GScannerConfig, 1803 pub token: GTokenType, 1804 pub value: GTokenValue, 1805 pub line: c_uint, 1806 pub position: c_uint, 1807 pub next_token: GTokenType, 1808 pub next_value: GTokenValue, 1809 pub next_line: c_uint, 1810 pub next_position: c_uint, 1811 pub symbol_table: *mut GHashTable, 1812 pub input_fd: c_int, 1813 pub text: *const c_char, 1814 pub text_end: *const c_char, 1815 pub buffer: *mut c_char, 1816 pub scope_id: c_uint, 1817 pub msg_handler: GScannerMsgFunc, 1818 } 1819 1820 impl ::std::fmt::Debug for GScanner { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1821 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1822 f.debug_struct(&format!("GScanner @ {:?}", self as *const _)) 1823 .field("user_data", &self.user_data) 1824 .field("max_parse_errors", &self.max_parse_errors) 1825 .field("parse_errors", &self.parse_errors) 1826 .field("input_name", &self.input_name) 1827 .field("qdata", &self.qdata) 1828 .field("config", &self.config) 1829 .field("token", &self.token) 1830 .field("value", &self.value) 1831 .field("line", &self.line) 1832 .field("position", &self.position) 1833 .field("next_token", &self.next_token) 1834 .field("next_value", &self.next_value) 1835 .field("next_line", &self.next_line) 1836 .field("next_position", &self.next_position) 1837 .field("msg_handler", &self.msg_handler) 1838 .finish() 1839 } 1840 } 1841 1842 #[repr(C)] 1843 pub struct GScannerConfig { 1844 pub cset_skip_characters: *mut c_char, 1845 pub cset_identifier_first: *mut c_char, 1846 pub cset_identifier_nth: *mut c_char, 1847 pub cpair_comment_single: *mut c_char, 1848 pub case_sensitive: c_uint, 1849 _truncated_record_marker: c_void, 1850 // field skip_comment_multi has incomplete type 1851 } 1852 1853 impl ::std::fmt::Debug for GScannerConfig { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1854 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1855 f.debug_struct(&format!("GScannerConfig @ {:?}", self as *const _)) 1856 .field("cset_skip_characters", &self.cset_skip_characters) 1857 .field("cset_identifier_first", &self.cset_identifier_first) 1858 .field("cset_identifier_nth", &self.cset_identifier_nth) 1859 .field("cpair_comment_single", &self.cpair_comment_single) 1860 .field("case_sensitive", &self.case_sensitive) 1861 .finish() 1862 } 1863 } 1864 1865 #[repr(C)] 1866 pub struct _GSequence(c_void); 1867 1868 pub type GSequence = *mut _GSequence; 1869 1870 #[repr(C)] 1871 pub struct _GSequenceIter(c_void); 1872 1873 pub type GSequenceIter = *mut _GSequenceIter; 1874 1875 #[repr(C)] 1876 #[derive(Copy, Clone)] 1877 pub struct GSource { 1878 pub callback_data: gpointer, 1879 pub callback_funcs: *mut GSourceCallbackFuncs, 1880 pub source_funcs: *const GSourceFuncs, 1881 pub ref_count: c_uint, 1882 pub context: *mut GMainContext, 1883 pub priority: c_int, 1884 pub flags: c_uint, 1885 pub source_id: c_uint, 1886 pub poll_fds: *mut GSList, 1887 pub prev: *mut GSource, 1888 pub next: *mut GSource, 1889 pub name: *mut c_char, 1890 pub priv_: *mut GSourcePrivate, 1891 } 1892 1893 impl ::std::fmt::Debug for GSource { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1894 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1895 f.debug_struct(&format!("GSource @ {:?}", self as *const _)) 1896 .finish() 1897 } 1898 } 1899 1900 #[repr(C)] 1901 #[derive(Copy, Clone)] 1902 pub struct GSourceCallbackFuncs { 1903 pub ref_: Option<unsafe extern "C" fn(gpointer)>, 1904 pub unref: Option<unsafe extern "C" fn(gpointer)>, 1905 pub get: Option<unsafe extern "C" fn(gpointer, *mut GSource, *mut GSourceFunc, *mut gpointer)>, 1906 } 1907 1908 impl ::std::fmt::Debug for GSourceCallbackFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1909 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1910 f.debug_struct(&format!("GSourceCallbackFuncs @ {:?}", self as *const _)) 1911 .field("ref_", &self.ref_) 1912 .field("unref", &self.unref) 1913 .field("get", &self.get) 1914 .finish() 1915 } 1916 } 1917 1918 #[repr(C)] 1919 #[derive(Copy, Clone)] 1920 pub struct GSourceFuncs { 1921 pub prepare: Option<unsafe extern "C" fn(*mut GSource, *mut c_int) -> gboolean>, 1922 pub check: Option<unsafe extern "C" fn(*mut GSource) -> gboolean>, 1923 pub dispatch: Option<unsafe extern "C" fn(*mut GSource, GSourceFunc, gpointer) -> gboolean>, 1924 pub finalize: Option<unsafe extern "C" fn(*mut GSource)>, 1925 pub closure_callback: GSourceFunc, 1926 pub closure_marshal: GSourceDummyMarshal, 1927 } 1928 1929 impl ::std::fmt::Debug for GSourceFuncs { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1930 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1931 f.debug_struct(&format!("GSourceFuncs @ {:?}", self as *const _)) 1932 .field("prepare", &self.prepare) 1933 .field("check", &self.check) 1934 .field("dispatch", &self.dispatch) 1935 .field("finalize", &self.finalize) 1936 .finish() 1937 } 1938 } 1939 1940 #[repr(C)] 1941 pub struct _GSourcePrivate(c_void); 1942 1943 pub type GSourcePrivate = *mut _GSourcePrivate; 1944 1945 #[repr(C)] 1946 pub struct _GStatBuf(c_void); 1947 1948 pub type GStatBuf = *mut _GStatBuf; 1949 1950 #[repr(C)] 1951 #[derive(Copy, Clone)] 1952 pub struct GString { 1953 pub str: *mut c_char, 1954 pub len: size_t, 1955 pub allocated_len: size_t, 1956 } 1957 1958 impl ::std::fmt::Debug for GString { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result1959 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 1960 f.debug_struct(&format!("GString @ {:?}", self as *const _)) 1961 .field("str", &self.str) 1962 .field("len", &self.len) 1963 .field("allocated_len", &self.allocated_len) 1964 .finish() 1965 } 1966 } 1967 1968 #[repr(C)] 1969 pub struct _GStringChunk(c_void); 1970 1971 pub type GStringChunk = *mut _GStringChunk; 1972 1973 #[repr(C)] 1974 pub struct _GTestCase(c_void); 1975 1976 pub type GTestCase = *mut _GTestCase; 1977 1978 #[repr(C)] 1979 #[derive(Copy, Clone)] 1980 pub struct GTestConfig { 1981 pub test_initialized: gboolean, 1982 pub test_quick: gboolean, 1983 pub test_perf: gboolean, 1984 pub test_verbose: gboolean, 1985 pub test_quiet: gboolean, 1986 pub test_undefined: gboolean, 1987 } 1988 1989 impl ::std::fmt::Debug for GTestConfig { 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!("GTestConfig @ {:?}", self as *const _)) 1992 .field("test_initialized", &self.test_initialized) 1993 .field("test_quick", &self.test_quick) 1994 .field("test_perf", &self.test_perf) 1995 .field("test_verbose", &self.test_verbose) 1996 .field("test_quiet", &self.test_quiet) 1997 .field("test_undefined", &self.test_undefined) 1998 .finish() 1999 } 2000 } 2001 2002 #[repr(C)] 2003 #[derive(Copy, Clone)] 2004 pub struct GTestLogBuffer { 2005 pub data: *mut GString, 2006 pub msgs: *mut GSList, 2007 } 2008 2009 impl ::std::fmt::Debug for GTestLogBuffer { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2010 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2011 f.debug_struct(&format!("GTestLogBuffer @ {:?}", self as *const _)) 2012 .finish() 2013 } 2014 } 2015 2016 #[repr(C)] 2017 pub struct GTestLogMsg { 2018 pub log_type: GTestLogType, 2019 pub n_strings: c_uint, 2020 pub strings: *mut *mut c_char, 2021 pub n_nums: c_uint, 2022 _truncated_record_marker: c_void, 2023 // /*Unimplemented*/*mut long double 2024 } 2025 2026 impl ::std::fmt::Debug for GTestLogMsg { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2027 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2028 f.debug_struct(&format!("GTestLogMsg @ {:?}", self as *const _)) 2029 .field("log_type", &self.log_type) 2030 .field("n_strings", &self.n_strings) 2031 .field("strings", &self.strings) 2032 .field("n_nums", &self.n_nums) 2033 .finish() 2034 } 2035 } 2036 2037 #[repr(C)] 2038 pub struct _GTestSuite(c_void); 2039 2040 pub type GTestSuite = *mut _GTestSuite; 2041 2042 #[repr(C)] 2043 pub struct GThread(c_void); 2044 2045 impl ::std::fmt::Debug for GThread { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2046 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2047 f.debug_struct(&format!("GThread @ {:?}", self as *const _)) 2048 .finish() 2049 } 2050 } 2051 2052 #[repr(C)] 2053 #[derive(Copy, Clone)] 2054 pub struct GThreadPool { 2055 pub func: GFunc, 2056 pub user_data: gpointer, 2057 pub exclusive: gboolean, 2058 } 2059 2060 impl ::std::fmt::Debug for GThreadPool { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2061 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2062 f.debug_struct(&format!("GThreadPool @ {:?}", self as *const _)) 2063 .field("func", &self.func) 2064 .field("user_data", &self.user_data) 2065 .field("exclusive", &self.exclusive) 2066 .finish() 2067 } 2068 } 2069 2070 #[repr(C)] 2071 #[derive(Copy, Clone)] 2072 pub struct GTimeVal { 2073 pub tv_sec: c_long, 2074 pub tv_usec: c_long, 2075 } 2076 2077 impl ::std::fmt::Debug for GTimeVal { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2078 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2079 f.debug_struct(&format!("GTimeVal @ {:?}", self as *const _)) 2080 .field("tv_sec", &self.tv_sec) 2081 .field("tv_usec", &self.tv_usec) 2082 .finish() 2083 } 2084 } 2085 2086 #[repr(C)] 2087 pub struct GTimeZone(c_void); 2088 2089 impl ::std::fmt::Debug for GTimeZone { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2090 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2091 f.debug_struct(&format!("GTimeZone @ {:?}", self as *const _)) 2092 .finish() 2093 } 2094 } 2095 2096 #[repr(C)] 2097 pub struct _GTimer(c_void); 2098 2099 pub type GTimer = *mut _GTimer; 2100 2101 #[repr(C)] 2102 #[derive(Copy, Clone)] 2103 pub struct GTrashStack { 2104 pub next: *mut GTrashStack, 2105 } 2106 2107 impl ::std::fmt::Debug for GTrashStack { 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!("GTrashStack @ {:?}", self as *const _)) 2110 .field("next", &self.next) 2111 .finish() 2112 } 2113 } 2114 2115 #[repr(C)] 2116 pub struct _GTree(c_void); 2117 2118 pub type GTree = *mut _GTree; 2119 2120 #[repr(C)] 2121 pub struct GVariant(c_void); 2122 2123 impl ::std::fmt::Debug for GVariant { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2124 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2125 f.debug_struct(&format!("GVariant @ {:?}", self as *const _)) 2126 .finish() 2127 } 2128 } 2129 2130 #[repr(C)] 2131 #[derive(Copy, Clone)] 2132 pub struct GVariantBuilder { 2133 pub u: GVariantBuilder_u, 2134 } 2135 2136 impl ::std::fmt::Debug for GVariantBuilder { 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!("GVariantBuilder @ {:?}", self as *const _)) 2139 .field("u", &self.u) 2140 .finish() 2141 } 2142 } 2143 2144 #[repr(C)] 2145 #[derive(Copy, Clone)] 2146 pub struct GVariantBuilder_u_s { 2147 pub partial_magic: size_t, 2148 pub type_: *const GVariantType, 2149 pub y: [size_t; 14], 2150 } 2151 2152 impl ::std::fmt::Debug for GVariantBuilder_u_s { 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!("GVariantBuilder_u_s @ {:?}", self as *const _)) 2155 .field("partial_magic", &self.partial_magic) 2156 .field("type_", &self.type_) 2157 .field("y", &self.y) 2158 .finish() 2159 } 2160 } 2161 2162 #[repr(C)] 2163 #[derive(Copy, Clone)] 2164 pub struct GVariantDict { 2165 pub u: GVariantDict_u, 2166 } 2167 2168 impl ::std::fmt::Debug for GVariantDict { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2169 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2170 f.debug_struct(&format!("GVariantDict @ {:?}", self as *const _)) 2171 .field("u", &self.u) 2172 .finish() 2173 } 2174 } 2175 2176 #[repr(C)] 2177 #[derive(Copy, Clone)] 2178 pub struct GVariantDict_u_s { 2179 pub asv: *mut GVariant, 2180 pub partial_magic: size_t, 2181 pub y: [size_t; 14], 2182 } 2183 2184 impl ::std::fmt::Debug for GVariantDict_u_s { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2185 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2186 f.debug_struct(&format!("GVariantDict_u_s @ {:?}", self as *const _)) 2187 .field("asv", &self.asv) 2188 .field("partial_magic", &self.partial_magic) 2189 .field("y", &self.y) 2190 .finish() 2191 } 2192 } 2193 2194 #[repr(C)] 2195 #[derive(Copy, Clone)] 2196 pub struct GVariantIter { 2197 pub x: [size_t; 16], 2198 } 2199 2200 impl ::std::fmt::Debug for GVariantIter { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2201 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2202 f.debug_struct(&format!("GVariantIter @ {:?}", self as *const _)) 2203 .finish() 2204 } 2205 } 2206 2207 #[repr(C)] 2208 pub struct GVariantType(c_void); 2209 2210 impl ::std::fmt::Debug for GVariantType { fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result2211 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result { 2212 f.debug_struct(&format!("GVariantType @ {:?}", self as *const _)) 2213 .finish() 2214 } 2215 } 2216 2217 extern "C" { 2218 2219 //========================================================================= 2220 // GIOCondition 2221 //========================================================================= g_io_condition_get_type() -> GType2222 pub fn g_io_condition_get_type() -> GType; 2223 2224 //========================================================================= 2225 // GMutex 2226 //========================================================================= g_mutex_clear(mutex: *mut GMutex)2227 pub fn g_mutex_clear(mutex: *mut GMutex); g_mutex_init(mutex: *mut GMutex)2228 pub fn g_mutex_init(mutex: *mut GMutex); g_mutex_lock(mutex: *mut GMutex)2229 pub fn g_mutex_lock(mutex: *mut GMutex); g_mutex_trylock(mutex: *mut GMutex) -> gboolean2230 pub fn g_mutex_trylock(mutex: *mut GMutex) -> gboolean; g_mutex_unlock(mutex: *mut GMutex)2231 pub fn g_mutex_unlock(mutex: *mut GMutex); 2232 2233 //========================================================================= 2234 // GArray 2235 //========================================================================= g_array_get_type() -> GType2236 pub fn g_array_get_type() -> GType; g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) -> *mut GArray2237 pub fn g_array_append_vals(array: *mut GArray, data: gconstpointer, len: c_uint) 2238 -> *mut GArray; 2239 #[cfg(any(feature = "v2_62", feature = "dox"))] g_array_binary_search( array: *mut GArray, target: gconstpointer, compare_func: GCompareFunc, out_match_index: *mut c_uint, ) -> gboolean2240 pub fn g_array_binary_search( 2241 array: *mut GArray, 2242 target: gconstpointer, 2243 compare_func: GCompareFunc, 2244 out_match_index: *mut c_uint, 2245 ) -> gboolean; 2246 #[cfg(any(feature = "v2_62", feature = "dox"))] g_array_copy(array: *mut GArray) -> *mut GArray2247 pub fn g_array_copy(array: *mut GArray) -> *mut GArray; g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char2248 pub fn g_array_free(array: *mut GArray, free_segment: gboolean) -> *mut c_char; g_array_get_element_size(array: *mut GArray) -> c_uint2249 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 GArray2250 pub fn g_array_insert_vals( 2251 array: *mut GArray, 2252 index_: c_uint, 2253 data: gconstpointer, 2254 len: c_uint, 2255 ) -> *mut GArray; g_array_new( zero_terminated: gboolean, clear_: gboolean, element_size: c_uint, ) -> *mut GArray2256 pub fn g_array_new( 2257 zero_terminated: gboolean, 2258 clear_: gboolean, 2259 element_size: c_uint, 2260 ) -> *mut GArray; g_array_prepend_vals( array: *mut GArray, data: gconstpointer, len: c_uint, ) -> *mut GArray2261 pub fn g_array_prepend_vals( 2262 array: *mut GArray, 2263 data: gconstpointer, 2264 len: c_uint, 2265 ) -> *mut GArray; g_array_ref(array: *mut GArray) -> *mut GArray2266 pub fn g_array_ref(array: *mut GArray) -> *mut GArray; g_array_remove_index(array: *mut GArray, index_: c_uint) -> *mut GArray2267 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 GArray2268 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 GArray2269 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)2270 pub fn g_array_set_clear_func(array: *mut GArray, clear_func: GDestroyNotify); g_array_set_size(array: *mut GArray, length: c_uint) -> *mut GArray2271 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 GArray2272 pub fn g_array_sized_new( 2273 zero_terminated: gboolean, 2274 clear_: gboolean, 2275 element_size: c_uint, 2276 reserved_size: c_uint, 2277 ) -> *mut GArray; g_array_sort(array: *mut GArray, compare_func: GCompareFunc)2278 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, )2279 pub fn g_array_sort_with_data( 2280 array: *mut GArray, 2281 compare_func: GCompareDataFunc, 2282 user_data: gpointer, 2283 ); g_array_unref(array: *mut GArray)2284 pub fn g_array_unref(array: *mut GArray); 2285 2286 //========================================================================= 2287 // GAsyncQueue 2288 //========================================================================= g_async_queue_length(queue: *mut GAsyncQueue) -> c_int2289 pub fn g_async_queue_length(queue: *mut GAsyncQueue) -> c_int; g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> c_int2290 pub fn g_async_queue_length_unlocked(queue: *mut GAsyncQueue) -> c_int; g_async_queue_lock(queue: *mut GAsyncQueue)2291 pub fn g_async_queue_lock(queue: *mut GAsyncQueue); g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer2292 pub fn g_async_queue_pop(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer2293 pub fn g_async_queue_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer)2294 pub fn g_async_queue_push(queue: *mut GAsyncQueue, data: gpointer); 2295 #[cfg(any(feature = "v2_46", feature = "dox"))] g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer)2296 pub fn g_async_queue_push_front(queue: *mut GAsyncQueue, item: gpointer); 2297 #[cfg(any(feature = "v2_46", feature = "dox"))] g_async_queue_push_front_unlocked(queue: *mut GAsyncQueue, item: gpointer)2298 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, )2299 pub fn g_async_queue_push_sorted( 2300 queue: *mut GAsyncQueue, 2301 data: gpointer, 2302 func: GCompareDataFunc, 2303 user_data: gpointer, 2304 ); g_async_queue_push_sorted_unlocked( queue: *mut GAsyncQueue, data: gpointer, func: GCompareDataFunc, user_data: gpointer, )2305 pub fn g_async_queue_push_sorted_unlocked( 2306 queue: *mut GAsyncQueue, 2307 data: gpointer, 2308 func: GCompareDataFunc, 2309 user_data: gpointer, 2310 ); g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer)2311 pub fn g_async_queue_push_unlocked(queue: *mut GAsyncQueue, data: gpointer); g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue2312 pub fn g_async_queue_ref(queue: *mut GAsyncQueue) -> *mut GAsyncQueue; g_async_queue_ref_unlocked(queue: *mut GAsyncQueue)2313 pub fn g_async_queue_ref_unlocked(queue: *mut GAsyncQueue); 2314 #[cfg(any(feature = "v2_46", feature = "dox"))] g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean2315 pub fn g_async_queue_remove(queue: *mut GAsyncQueue, item: gpointer) -> gboolean; 2316 #[cfg(any(feature = "v2_46", feature = "dox"))] g_async_queue_remove_unlocked(queue: *mut GAsyncQueue, item: gpointer) -> gboolean2317 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)2318 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, )2319 pub fn g_async_queue_sort_unlocked( 2320 queue: *mut GAsyncQueue, 2321 func: GCompareDataFunc, 2322 user_data: gpointer, 2323 ); g_async_queue_timed_pop(queue: *mut GAsyncQueue, end_time: *mut GTimeVal) -> gpointer2324 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, ) -> gpointer2325 pub fn g_async_queue_timed_pop_unlocked( 2326 queue: *mut GAsyncQueue, 2327 end_time: *mut GTimeVal, 2328 ) -> gpointer; g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer2329 pub fn g_async_queue_timeout_pop(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer2330 pub fn g_async_queue_timeout_pop_unlocked(queue: *mut GAsyncQueue, timeout: u64) -> gpointer; g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer2331 pub fn g_async_queue_try_pop(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer2332 pub fn g_async_queue_try_pop_unlocked(queue: *mut GAsyncQueue) -> gpointer; g_async_queue_unlock(queue: *mut GAsyncQueue)2333 pub fn g_async_queue_unlock(queue: *mut GAsyncQueue); g_async_queue_unref(queue: *mut GAsyncQueue)2334 pub fn g_async_queue_unref(queue: *mut GAsyncQueue); g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue)2335 pub fn g_async_queue_unref_and_unlock(queue: *mut GAsyncQueue); g_async_queue_new() -> *mut GAsyncQueue2336 pub fn g_async_queue_new() -> *mut GAsyncQueue; g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue2337 pub fn g_async_queue_new_full(item_free_func: GDestroyNotify) -> *mut GAsyncQueue; 2338 2339 //========================================================================= 2340 // GBookmarkFile 2341 //========================================================================= g_bookmark_file_add_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, exec: *const c_char, )2342 pub fn g_bookmark_file_add_application( 2343 bookmark: *mut GBookmarkFile, 2344 uri: *const c_char, 2345 name: *const c_char, 2346 exec: *const c_char, 2347 ); g_bookmark_file_add_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, )2348 pub fn g_bookmark_file_add_group( 2349 bookmark: *mut GBookmarkFile, 2350 uri: *const c_char, 2351 group: *const c_char, 2352 ); g_bookmark_file_free(bookmark: *mut GBookmarkFile)2353 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_long2354 pub fn g_bookmark_file_get_added( 2355 bookmark: *mut GBookmarkFile, 2356 uri: *const c_char, 2357 error: *mut *mut GError, 2358 ) -> c_long; 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, ) -> gboolean2359 pub fn g_bookmark_file_get_app_info( 2360 bookmark: *mut GBookmarkFile, 2361 uri: *const c_char, 2362 name: *const c_char, 2363 exec: *mut *mut c_char, 2364 count: *mut c_uint, 2365 stamp: *mut c_long, 2366 error: *mut *mut GError, 2367 ) -> gboolean; g_bookmark_file_get_applications( bookmark: *mut GBookmarkFile, uri: *const c_char, length: *mut size_t, error: *mut *mut GError, ) -> *mut *mut c_char2368 pub fn g_bookmark_file_get_applications( 2369 bookmark: *mut GBookmarkFile, 2370 uri: *const c_char, 2371 length: *mut size_t, 2372 error: *mut *mut GError, 2373 ) -> *mut *mut c_char; g_bookmark_file_get_description( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut c_char2374 pub fn g_bookmark_file_get_description( 2375 bookmark: *mut GBookmarkFile, 2376 uri: *const c_char, 2377 error: *mut *mut GError, 2378 ) -> *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_char2379 pub fn g_bookmark_file_get_groups( 2380 bookmark: *mut GBookmarkFile, 2381 uri: *const c_char, 2382 length: *mut size_t, 2383 error: *mut *mut GError, 2384 ) -> *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, ) -> gboolean2385 pub fn g_bookmark_file_get_icon( 2386 bookmark: *mut GBookmarkFile, 2387 uri: *const c_char, 2388 href: *mut *mut c_char, 2389 mime_type: *mut *mut c_char, 2390 error: *mut *mut GError, 2391 ) -> gboolean; g_bookmark_file_get_is_private( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> gboolean2392 pub fn g_bookmark_file_get_is_private( 2393 bookmark: *mut GBookmarkFile, 2394 uri: *const c_char, 2395 error: *mut *mut GError, 2396 ) -> gboolean; g_bookmark_file_get_mime_type( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> *mut c_char2397 pub fn g_bookmark_file_get_mime_type( 2398 bookmark: *mut GBookmarkFile, 2399 uri: *const c_char, 2400 error: *mut *mut GError, 2401 ) -> *mut c_char; g_bookmark_file_get_modified( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> c_long2402 pub fn g_bookmark_file_get_modified( 2403 bookmark: *mut GBookmarkFile, 2404 uri: *const c_char, 2405 error: *mut *mut GError, 2406 ) -> c_long; g_bookmark_file_get_size(bookmark: *mut GBookmarkFile) -> c_int2407 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_char2408 pub fn g_bookmark_file_get_title( 2409 bookmark: *mut GBookmarkFile, 2410 uri: *const c_char, 2411 error: *mut *mut GError, 2412 ) -> *mut c_char; g_bookmark_file_get_uris( bookmark: *mut GBookmarkFile, length: *mut size_t, ) -> *mut *mut c_char2413 pub fn g_bookmark_file_get_uris( 2414 bookmark: *mut GBookmarkFile, 2415 length: *mut size_t, 2416 ) -> *mut *mut c_char; g_bookmark_file_get_visited( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> c_long2417 pub fn g_bookmark_file_get_visited( 2418 bookmark: *mut GBookmarkFile, 2419 uri: *const c_char, 2420 error: *mut *mut GError, 2421 ) -> c_long; g_bookmark_file_has_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError, ) -> gboolean2422 pub fn g_bookmark_file_has_application( 2423 bookmark: *mut GBookmarkFile, 2424 uri: *const c_char, 2425 name: *const c_char, 2426 error: *mut *mut GError, 2427 ) -> gboolean; g_bookmark_file_has_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError, ) -> gboolean2428 pub fn g_bookmark_file_has_group( 2429 bookmark: *mut GBookmarkFile, 2430 uri: *const c_char, 2431 group: *const c_char, 2432 error: *mut *mut GError, 2433 ) -> gboolean; g_bookmark_file_has_item(bookmark: *mut GBookmarkFile, uri: *const c_char) -> gboolean2434 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, ) -> gboolean2435 pub fn g_bookmark_file_load_from_data( 2436 bookmark: *mut GBookmarkFile, 2437 data: *const u8, 2438 length: size_t, 2439 error: *mut *mut GError, 2440 ) -> 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, ) -> gboolean2441 pub fn g_bookmark_file_load_from_data_dirs( 2442 bookmark: *mut GBookmarkFile, 2443 file: *const c_char, 2444 full_path: *mut *mut c_char, 2445 error: *mut *mut GError, 2446 ) -> gboolean; g_bookmark_file_load_from_file( bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError, ) -> gboolean2447 pub fn g_bookmark_file_load_from_file( 2448 bookmark: *mut GBookmarkFile, 2449 filename: *const c_char, 2450 error: *mut *mut GError, 2451 ) -> gboolean; g_bookmark_file_move_item( bookmark: *mut GBookmarkFile, old_uri: *const c_char, new_uri: *const c_char, error: *mut *mut GError, ) -> gboolean2452 pub fn g_bookmark_file_move_item( 2453 bookmark: *mut GBookmarkFile, 2454 old_uri: *const c_char, 2455 new_uri: *const c_char, 2456 error: *mut *mut GError, 2457 ) -> gboolean; g_bookmark_file_remove_application( bookmark: *mut GBookmarkFile, uri: *const c_char, name: *const c_char, error: *mut *mut GError, ) -> gboolean2458 pub fn g_bookmark_file_remove_application( 2459 bookmark: *mut GBookmarkFile, 2460 uri: *const c_char, 2461 name: *const c_char, 2462 error: *mut *mut GError, 2463 ) -> gboolean; g_bookmark_file_remove_group( bookmark: *mut GBookmarkFile, uri: *const c_char, group: *const c_char, error: *mut *mut GError, ) -> gboolean2464 pub fn g_bookmark_file_remove_group( 2465 bookmark: *mut GBookmarkFile, 2466 uri: *const c_char, 2467 group: *const c_char, 2468 error: *mut *mut GError, 2469 ) -> gboolean; g_bookmark_file_remove_item( bookmark: *mut GBookmarkFile, uri: *const c_char, error: *mut *mut GError, ) -> gboolean2470 pub fn g_bookmark_file_remove_item( 2471 bookmark: *mut GBookmarkFile, 2472 uri: *const c_char, 2473 error: *mut *mut GError, 2474 ) -> gboolean; g_bookmark_file_set_added( bookmark: *mut GBookmarkFile, uri: *const c_char, added: c_long, )2475 pub fn g_bookmark_file_set_added( 2476 bookmark: *mut GBookmarkFile, 2477 uri: *const c_char, 2478 added: c_long, 2479 ); 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, ) -> gboolean2480 pub fn g_bookmark_file_set_app_info( 2481 bookmark: *mut GBookmarkFile, 2482 uri: *const c_char, 2483 name: *const c_char, 2484 exec: *const c_char, 2485 count: c_int, 2486 stamp: c_long, 2487 error: *mut *mut GError, 2488 ) -> gboolean; g_bookmark_file_set_description( bookmark: *mut GBookmarkFile, uri: *const c_char, description: *const c_char, )2489 pub fn g_bookmark_file_set_description( 2490 bookmark: *mut GBookmarkFile, 2491 uri: *const c_char, 2492 description: *const c_char, 2493 ); g_bookmark_file_set_groups( bookmark: *mut GBookmarkFile, uri: *const c_char, groups: *mut *const c_char, length: size_t, )2494 pub fn g_bookmark_file_set_groups( 2495 bookmark: *mut GBookmarkFile, 2496 uri: *const c_char, 2497 groups: *mut *const c_char, 2498 length: size_t, 2499 ); g_bookmark_file_set_icon( bookmark: *mut GBookmarkFile, uri: *const c_char, href: *const c_char, mime_type: *const c_char, )2500 pub fn g_bookmark_file_set_icon( 2501 bookmark: *mut GBookmarkFile, 2502 uri: *const c_char, 2503 href: *const c_char, 2504 mime_type: *const c_char, 2505 ); g_bookmark_file_set_is_private( bookmark: *mut GBookmarkFile, uri: *const c_char, is_private: gboolean, )2506 pub fn g_bookmark_file_set_is_private( 2507 bookmark: *mut GBookmarkFile, 2508 uri: *const c_char, 2509 is_private: gboolean, 2510 ); g_bookmark_file_set_mime_type( bookmark: *mut GBookmarkFile, uri: *const c_char, mime_type: *const c_char, )2511 pub fn g_bookmark_file_set_mime_type( 2512 bookmark: *mut GBookmarkFile, 2513 uri: *const c_char, 2514 mime_type: *const c_char, 2515 ); g_bookmark_file_set_modified( bookmark: *mut GBookmarkFile, uri: *const c_char, modified: c_long, )2516 pub fn g_bookmark_file_set_modified( 2517 bookmark: *mut GBookmarkFile, 2518 uri: *const c_char, 2519 modified: c_long, 2520 ); g_bookmark_file_set_title( bookmark: *mut GBookmarkFile, uri: *const c_char, title: *const c_char, )2521 pub fn g_bookmark_file_set_title( 2522 bookmark: *mut GBookmarkFile, 2523 uri: *const c_char, 2524 title: *const c_char, 2525 ); g_bookmark_file_set_visited( bookmark: *mut GBookmarkFile, uri: *const c_char, visited: c_long, )2526 pub fn g_bookmark_file_set_visited( 2527 bookmark: *mut GBookmarkFile, 2528 uri: *const c_char, 2529 visited: c_long, 2530 ); g_bookmark_file_to_data( bookmark: *mut GBookmarkFile, length: *mut size_t, error: *mut *mut GError, ) -> *mut u82531 pub fn g_bookmark_file_to_data( 2532 bookmark: *mut GBookmarkFile, 2533 length: *mut size_t, 2534 error: *mut *mut GError, 2535 ) -> *mut u8; g_bookmark_file_to_file( bookmark: *mut GBookmarkFile, filename: *const c_char, error: *mut *mut GError, ) -> gboolean2536 pub fn g_bookmark_file_to_file( 2537 bookmark: *mut GBookmarkFile, 2538 filename: *const c_char, 2539 error: *mut *mut GError, 2540 ) -> gboolean; g_bookmark_file_error_quark() -> GQuark2541 pub fn g_bookmark_file_error_quark() -> GQuark; g_bookmark_file_new() -> *mut GBookmarkFile2542 pub fn g_bookmark_file_new() -> *mut GBookmarkFile; 2543 2544 //========================================================================= 2545 // GByteArray 2546 //========================================================================= g_byte_array_get_type() -> GType2547 pub fn g_byte_array_get_type() -> GType; g_byte_array_append( array: *mut GByteArray, data: *const u8, len: c_uint, ) -> *mut GByteArray2548 pub fn g_byte_array_append( 2549 array: *mut GByteArray, 2550 data: *const u8, 2551 len: c_uint, 2552 ) -> *mut GByteArray; g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u82553 pub fn g_byte_array_free(array: *mut GByteArray, free_segment: gboolean) -> *mut u8; g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes2554 pub fn g_byte_array_free_to_bytes(array: *mut GByteArray) -> *mut GBytes; g_byte_array_new() -> *mut GByteArray2555 pub fn g_byte_array_new() -> *mut GByteArray; g_byte_array_new_take(data: *mut u8, len: size_t) -> *mut GByteArray2556 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 GByteArray2557 pub fn g_byte_array_prepend( 2558 array: *mut GByteArray, 2559 data: *const u8, 2560 len: c_uint, 2561 ) -> *mut GByteArray; g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray2562 pub fn g_byte_array_ref(array: *mut GByteArray) -> *mut GByteArray; g_byte_array_remove_index(array: *mut GByteArray, index_: c_uint) -> *mut GByteArray2563 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 GByteArray2564 pub fn g_byte_array_remove_index_fast( 2565 array: *mut GByteArray, 2566 index_: c_uint, 2567 ) -> *mut GByteArray; g_byte_array_remove_range( array: *mut GByteArray, index_: c_uint, length: c_uint, ) -> *mut GByteArray2568 pub fn g_byte_array_remove_range( 2569 array: *mut GByteArray, 2570 index_: c_uint, 2571 length: c_uint, 2572 ) -> *mut GByteArray; g_byte_array_set_size(array: *mut GByteArray, length: c_uint) -> *mut GByteArray2573 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 GByteArray2574 pub fn g_byte_array_sized_new(reserved_size: c_uint) -> *mut GByteArray; g_byte_array_sort(array: *mut GByteArray, compare_func: GCompareFunc)2575 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, )2576 pub fn g_byte_array_sort_with_data( 2577 array: *mut GByteArray, 2578 compare_func: GCompareDataFunc, 2579 user_data: gpointer, 2580 ); g_byte_array_unref(array: *mut GByteArray)2581 pub fn g_byte_array_unref(array: *mut GByteArray); 2582 2583 //========================================================================= 2584 // GBytes 2585 //========================================================================= g_bytes_get_type() -> GType2586 pub fn g_bytes_get_type() -> GType; g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes2587 pub fn g_bytes_new(data: gconstpointer, size: size_t) -> *mut GBytes; g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes2588 pub fn g_bytes_new_static(data: gconstpointer, size: size_t) -> *mut GBytes; g_bytes_new_take(data: gpointer, size: size_t) -> *mut GBytes2589 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 GBytes2590 pub fn g_bytes_new_with_free_func( 2591 data: gconstpointer, 2592 size: size_t, 2593 free_func: GDestroyNotify, 2594 user_data: gpointer, 2595 ) -> *mut GBytes; g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int2596 pub fn g_bytes_compare(bytes1: gconstpointer, bytes2: gconstpointer) -> c_int; g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean2597 pub fn g_bytes_equal(bytes1: gconstpointer, bytes2: gconstpointer) -> gboolean; g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer2598 pub fn g_bytes_get_data(bytes: *mut GBytes, size: *mut size_t) -> gconstpointer; g_bytes_get_size(bytes: *mut GBytes) -> size_t2599 pub fn g_bytes_get_size(bytes: *mut GBytes) -> size_t; g_bytes_hash(bytes: gconstpointer) -> c_uint2600 pub fn g_bytes_hash(bytes: gconstpointer) -> c_uint; g_bytes_new_from_bytes( bytes: *mut GBytes, offset: size_t, length: size_t, ) -> *mut GBytes2601 pub fn g_bytes_new_from_bytes( 2602 bytes: *mut GBytes, 2603 offset: size_t, 2604 length: size_t, 2605 ) -> *mut GBytes; g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes2606 pub fn g_bytes_ref(bytes: *mut GBytes) -> *mut GBytes; g_bytes_unref(bytes: *mut GBytes)2607 pub fn g_bytes_unref(bytes: *mut GBytes); g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray2608 pub fn g_bytes_unref_to_array(bytes: *mut GBytes) -> *mut GByteArray; g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer2609 pub fn g_bytes_unref_to_data(bytes: *mut GBytes, size: *mut size_t) -> gpointer; 2610 2611 //========================================================================= 2612 // GChecksum 2613 //========================================================================= g_checksum_get_type() -> GType2614 pub fn g_checksum_get_type() -> GType; g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum2615 pub fn g_checksum_new(checksum_type: GChecksumType) -> *mut GChecksum; g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum2616 pub fn g_checksum_copy(checksum: *const GChecksum) -> *mut GChecksum; g_checksum_free(checksum: *mut GChecksum)2617 pub fn g_checksum_free(checksum: *mut GChecksum); g_checksum_get_digest( checksum: *mut GChecksum, buffer: *mut u8, digest_len: *mut size_t, )2618 pub fn g_checksum_get_digest( 2619 checksum: *mut GChecksum, 2620 buffer: *mut u8, 2621 digest_len: *mut size_t, 2622 ); g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char2623 pub fn g_checksum_get_string(checksum: *mut GChecksum) -> *const c_char; g_checksum_reset(checksum: *mut GChecksum)2624 pub fn g_checksum_reset(checksum: *mut GChecksum); g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t)2625 pub fn g_checksum_update(checksum: *mut GChecksum, data: *const u8, length: ssize_t); g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t2626 pub fn g_checksum_type_get_length(checksum_type: GChecksumType) -> ssize_t; 2627 2628 //========================================================================= 2629 // GCond 2630 //========================================================================= g_cond_broadcast(cond: *mut GCond)2631 pub fn g_cond_broadcast(cond: *mut GCond); g_cond_clear(cond: *mut GCond)2632 pub fn g_cond_clear(cond: *mut GCond); g_cond_init(cond: *mut GCond)2633 pub fn g_cond_init(cond: *mut GCond); g_cond_signal(cond: *mut GCond)2634 pub fn g_cond_signal(cond: *mut GCond); g_cond_wait(cond: *mut GCond, mutex: *mut GMutex)2635 pub fn g_cond_wait(cond: *mut GCond, mutex: *mut GMutex); g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean2636 pub fn g_cond_wait_until(cond: *mut GCond, mutex: *mut GMutex, end_time: i64) -> gboolean; 2637 2638 //========================================================================= 2639 // GDate 2640 //========================================================================= g_date_get_type() -> GType2641 pub fn g_date_get_type() -> GType; g_date_new() -> *mut GDate2642 pub fn g_date_new() -> *mut GDate; g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate2643 pub fn g_date_new_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> *mut GDate; g_date_new_julian(julian_day: u32) -> *mut GDate2644 pub fn g_date_new_julian(julian_day: u32) -> *mut GDate; g_date_add_days(date: *mut GDate, n_days: c_uint)2645 pub fn g_date_add_days(date: *mut GDate, n_days: c_uint); g_date_add_months(date: *mut GDate, n_months: c_uint)2646 pub fn g_date_add_months(date: *mut GDate, n_months: c_uint); g_date_add_years(date: *mut GDate, n_years: c_uint)2647 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)2648 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)2649 pub fn g_date_clear(date: *mut GDate, n_dates: c_uint); g_date_compare(lhs: *const GDate, rhs: *const GDate) -> c_int2650 pub fn g_date_compare(lhs: *const GDate, rhs: *const GDate) -> c_int; 2651 #[cfg(any(feature = "v2_56", feature = "dox"))] g_date_copy(date: *const GDate) -> *mut GDate2652 pub fn g_date_copy(date: *const GDate) -> *mut GDate; g_date_days_between(date1: *const GDate, date2: *const GDate) -> c_int2653 pub fn g_date_days_between(date1: *const GDate, date2: *const GDate) -> c_int; g_date_free(date: *mut GDate)2654 pub fn g_date_free(date: *mut GDate); g_date_get_day(date: *const GDate) -> GDateDay2655 pub fn g_date_get_day(date: *const GDate) -> GDateDay; g_date_get_day_of_year(date: *const GDate) -> c_uint2656 pub fn g_date_get_day_of_year(date: *const GDate) -> c_uint; g_date_get_iso8601_week_of_year(date: *const GDate) -> c_uint2657 pub fn g_date_get_iso8601_week_of_year(date: *const GDate) -> c_uint; g_date_get_julian(date: *const GDate) -> u322658 pub fn g_date_get_julian(date: *const GDate) -> u32; g_date_get_monday_week_of_year(date: *const GDate) -> c_uint2659 pub fn g_date_get_monday_week_of_year(date: *const GDate) -> c_uint; g_date_get_month(date: *const GDate) -> GDateMonth2660 pub fn g_date_get_month(date: *const GDate) -> GDateMonth; g_date_get_sunday_week_of_year(date: *const GDate) -> c_uint2661 pub fn g_date_get_sunday_week_of_year(date: *const GDate) -> c_uint; g_date_get_weekday(date: *const GDate) -> GDateWeekday2662 pub fn g_date_get_weekday(date: *const GDate) -> GDateWeekday; g_date_get_year(date: *const GDate) -> GDateYear2663 pub fn g_date_get_year(date: *const GDate) -> GDateYear; g_date_is_first_of_month(date: *const GDate) -> gboolean2664 pub fn g_date_is_first_of_month(date: *const GDate) -> gboolean; g_date_is_last_of_month(date: *const GDate) -> gboolean2665 pub fn g_date_is_last_of_month(date: *const GDate) -> gboolean; g_date_order(date1: *mut GDate, date2: *mut GDate)2666 pub fn g_date_order(date1: *mut GDate, date2: *mut GDate); g_date_set_day(date: *mut GDate, day: GDateDay)2667 pub fn g_date_set_day(date: *mut GDate, day: GDateDay); g_date_set_dmy(date: *mut GDate, day: GDateDay, month: GDateMonth, y: GDateYear)2668 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)2669 pub fn g_date_set_julian(date: *mut GDate, julian_date: u32); g_date_set_month(date: *mut GDate, month: GDateMonth)2670 pub fn g_date_set_month(date: *mut GDate, month: GDateMonth); g_date_set_parse(date: *mut GDate, str: *const c_char)2671 pub fn g_date_set_parse(date: *mut GDate, str: *const c_char); g_date_set_time(date: *mut GDate, time_: GTime)2672 pub fn g_date_set_time(date: *mut GDate, time_: GTime); g_date_set_time_t(date: *mut GDate, timet: c_long)2673 pub fn g_date_set_time_t(date: *mut GDate, timet: c_long); g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal)2674 pub fn g_date_set_time_val(date: *mut GDate, timeval: *mut GTimeVal); g_date_set_year(date: *mut GDate, year: GDateYear)2675 pub fn g_date_set_year(date: *mut GDate, year: GDateYear); g_date_subtract_days(date: *mut GDate, n_days: c_uint)2676 pub fn g_date_subtract_days(date: *mut GDate, n_days: c_uint); g_date_subtract_months(date: *mut GDate, n_months: c_uint)2677 pub fn g_date_subtract_months(date: *mut GDate, n_months: c_uint); g_date_subtract_years(date: *mut GDate, n_years: c_uint)2678 pub fn g_date_subtract_years(date: *mut GDate, n_years: c_uint); 2679 //pub fn g_date_to_struct_tm(date: *const GDate, tm: /*Unimplemented*/*mut tm); g_date_valid(date: *const GDate) -> gboolean2680 pub fn g_date_valid(date: *const GDate) -> gboolean; g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> u82681 pub fn g_date_get_days_in_month(month: GDateMonth, year: GDateYear) -> u8; g_date_get_monday_weeks_in_year(year: GDateYear) -> u82682 pub fn g_date_get_monday_weeks_in_year(year: GDateYear) -> u8; g_date_get_sunday_weeks_in_year(year: GDateYear) -> u82683 pub fn g_date_get_sunday_weeks_in_year(year: GDateYear) -> u8; g_date_is_leap_year(year: GDateYear) -> gboolean2684 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_t2685 pub fn g_date_strftime( 2686 s: *mut c_char, 2687 slen: size_t, 2688 format: *const c_char, 2689 date: *const GDate, 2690 ) -> size_t; g_date_valid_day(day: GDateDay) -> gboolean2691 pub fn g_date_valid_day(day: GDateDay) -> gboolean; g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean2692 pub fn g_date_valid_dmy(day: GDateDay, month: GDateMonth, year: GDateYear) -> gboolean; g_date_valid_julian(julian_date: u32) -> gboolean2693 pub fn g_date_valid_julian(julian_date: u32) -> gboolean; g_date_valid_month(month: GDateMonth) -> gboolean2694 pub fn g_date_valid_month(month: GDateMonth) -> gboolean; g_date_valid_weekday(weekday: GDateWeekday) -> gboolean2695 pub fn g_date_valid_weekday(weekday: GDateWeekday) -> gboolean; g_date_valid_year(year: GDateYear) -> gboolean2696 pub fn g_date_valid_year(year: GDateYear) -> gboolean; 2697 2698 //========================================================================= 2699 // GDateTime 2700 //========================================================================= g_date_time_get_type() -> GType2701 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 GDateTime2702 pub fn g_date_time_new( 2703 tz: *mut GTimeZone, 2704 year: c_int, 2705 month: c_int, 2706 day: c_int, 2707 hour: c_int, 2708 minute: c_int, 2709 seconds: c_double, 2710 ) -> *mut GDateTime; 2711 #[cfg(any(feature = "v2_56", feature = "dox"))] g_date_time_new_from_iso8601( text: *const c_char, default_tz: *mut GTimeZone, ) -> *mut GDateTime2712 pub fn g_date_time_new_from_iso8601( 2713 text: *const c_char, 2714 default_tz: *mut GTimeZone, 2715 ) -> *mut GDateTime; g_date_time_new_from_timeval_local(tv: *const GTimeVal) -> *mut GDateTime2716 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 GDateTime2717 pub fn g_date_time_new_from_timeval_utc(tv: *const GTimeVal) -> *mut GDateTime; g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime2718 pub fn g_date_time_new_from_unix_local(t: i64) -> *mut GDateTime; g_date_time_new_from_unix_utc(t: i64) -> *mut GDateTime2719 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 GDateTime2720 pub fn g_date_time_new_local( 2721 year: c_int, 2722 month: c_int, 2723 day: c_int, 2724 hour: c_int, 2725 minute: c_int, 2726 seconds: c_double, 2727 ) -> *mut GDateTime; g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime2728 pub fn g_date_time_new_now(tz: *mut GTimeZone) -> *mut GDateTime; g_date_time_new_now_local() -> *mut GDateTime2729 pub fn g_date_time_new_now_local() -> *mut GDateTime; g_date_time_new_now_utc() -> *mut GDateTime2730 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 GDateTime2731 pub fn g_date_time_new_utc( 2732 year: c_int, 2733 month: c_int, 2734 day: c_int, 2735 hour: c_int, 2736 minute: c_int, 2737 seconds: c_double, 2738 ) -> *mut GDateTime; g_date_time_add(datetime: *mut GDateTime, timespan: GTimeSpan) -> *mut GDateTime2739 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 GDateTime2740 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 GDateTime2741 pub fn g_date_time_add_full( 2742 datetime: *mut GDateTime, 2743 years: c_int, 2744 months: c_int, 2745 days: c_int, 2746 hours: c_int, 2747 minutes: c_int, 2748 seconds: c_double, 2749 ) -> *mut GDateTime; g_date_time_add_hours(datetime: *mut GDateTime, hours: c_int) -> *mut GDateTime2750 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 GDateTime2751 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 GDateTime2752 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 GDateTime2753 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 GDateTime2754 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 GDateTime2755 pub fn g_date_time_add_years(datetime: *mut GDateTime, years: c_int) -> *mut GDateTime; g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan2756 pub fn g_date_time_difference(end: *mut GDateTime, begin: *mut GDateTime) -> GTimeSpan; g_date_time_format(datetime: *mut GDateTime, format: *const c_char) -> *mut c_char2757 pub fn g_date_time_format(datetime: *mut GDateTime, format: *const c_char) -> *mut c_char; 2758 #[cfg(any(feature = "v2_62", feature = "dox"))] g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut c_char2759 pub fn g_date_time_format_iso8601(datetime: *mut GDateTime) -> *mut c_char; g_date_time_get_day_of_month(datetime: *mut GDateTime) -> c_int2760 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_int2761 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_int2762 pub fn g_date_time_get_day_of_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_hour(datetime: *mut GDateTime) -> c_int2763 pub fn g_date_time_get_hour(datetime: *mut GDateTime) -> c_int; g_date_time_get_microsecond(datetime: *mut GDateTime) -> c_int2764 pub fn g_date_time_get_microsecond(datetime: *mut GDateTime) -> c_int; g_date_time_get_minute(datetime: *mut GDateTime) -> c_int2765 pub fn g_date_time_get_minute(datetime: *mut GDateTime) -> c_int; g_date_time_get_month(datetime: *mut GDateTime) -> c_int2766 pub fn g_date_time_get_month(datetime: *mut GDateTime) -> c_int; g_date_time_get_second(datetime: *mut GDateTime) -> c_int2767 pub fn g_date_time_get_second(datetime: *mut GDateTime) -> c_int; g_date_time_get_seconds(datetime: *mut GDateTime) -> c_double2768 pub fn g_date_time_get_seconds(datetime: *mut GDateTime) -> c_double; 2769 #[cfg(any(feature = "v2_58", feature = "dox"))] g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone2770 pub fn g_date_time_get_timezone(datetime: *mut GDateTime) -> *mut GTimeZone; g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const c_char2771 pub fn g_date_time_get_timezone_abbreviation(datetime: *mut GDateTime) -> *const c_char; g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan2772 pub fn g_date_time_get_utc_offset(datetime: *mut GDateTime) -> GTimeSpan; g_date_time_get_week_numbering_year(datetime: *mut GDateTime) -> c_int2773 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_int2774 pub fn g_date_time_get_week_of_year(datetime: *mut GDateTime) -> c_int; g_date_time_get_year(datetime: *mut GDateTime) -> c_int2775 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, )2776 pub fn g_date_time_get_ymd( 2777 datetime: *mut GDateTime, 2778 year: *mut c_int, 2779 month: *mut c_int, 2780 day: *mut c_int, 2781 ); g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean2782 pub fn g_date_time_is_daylight_savings(datetime: *mut GDateTime) -> gboolean; g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime2783 pub fn g_date_time_ref(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime2784 pub fn g_date_time_to_local(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_to_timeval(datetime: *mut GDateTime, tv: *mut GTimeVal) -> gboolean2785 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 GDateTime2786 pub fn g_date_time_to_timezone(datetime: *mut GDateTime, tz: *mut GTimeZone) -> *mut GDateTime; g_date_time_to_unix(datetime: *mut GDateTime) -> i642787 pub fn g_date_time_to_unix(datetime: *mut GDateTime) -> i64; g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime2788 pub fn g_date_time_to_utc(datetime: *mut GDateTime) -> *mut GDateTime; g_date_time_unref(datetime: *mut GDateTime)2789 pub fn g_date_time_unref(datetime: *mut GDateTime); g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> c_int2790 pub fn g_date_time_compare(dt1: gconstpointer, dt2: gconstpointer) -> c_int; g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean2791 pub fn g_date_time_equal(dt1: gconstpointer, dt2: gconstpointer) -> gboolean; g_date_time_hash(datetime: gconstpointer) -> c_uint2792 pub fn g_date_time_hash(datetime: gconstpointer) -> c_uint; 2793 2794 //========================================================================= 2795 // GDir 2796 //========================================================================= g_dir_close(dir: *mut GDir)2797 pub fn g_dir_close(dir: *mut GDir); 2798 #[cfg(any(windows, feature = "dox"))] g_dir_read_name_utf8(dir: *mut GDir) -> *const c_char2799 pub fn g_dir_read_name_utf8(dir: *mut GDir) -> *const c_char; g_dir_read_name(dir: *mut GDir) -> *const c_char2800 pub fn g_dir_read_name(dir: *mut GDir) -> *const c_char; g_dir_rewind(dir: *mut GDir)2801 pub fn g_dir_rewind(dir: *mut GDir); g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char2802 pub fn g_dir_make_tmp(tmpl: *const c_char, error: *mut *mut GError) -> *mut c_char; 2803 #[cfg(any(windows, feature = "dox"))] g_dir_open_utf8( path: *const c_char, flags: c_uint, error: *mut *mut GError, ) -> *mut GDir2804 pub fn g_dir_open_utf8( 2805 path: *const c_char, 2806 flags: c_uint, 2807 error: *mut *mut GError, 2808 ) -> *mut GDir; g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir2809 pub fn g_dir_open(path: *const c_char, flags: c_uint, error: *mut *mut GError) -> *mut GDir; 2810 2811 //========================================================================= 2812 // GError 2813 //========================================================================= g_error_get_type() -> GType2814 pub fn g_error_get_type() -> GType; g_error_new(domain: GQuark, code: c_int, format: *const c_char, ...) -> *mut GError2815 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 GError2816 pub fn g_error_new_literal(domain: GQuark, code: c_int, message: *const c_char) -> *mut GError; 2817 //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 GError2818 pub fn g_error_copy(error: *const GError) -> *mut GError; g_error_free(error: *mut GError)2819 pub fn g_error_free(error: *mut GError); g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean2820 pub fn g_error_matches(error: *const GError, domain: GQuark, code: c_int) -> gboolean; 2821 2822 //========================================================================= 2823 // GHashTable 2824 //========================================================================= g_hash_table_get_type() -> GType2825 pub fn g_hash_table_get_type() -> GType; g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean2826 pub fn g_hash_table_add(hash_table: *mut GHashTable, key: gpointer) -> gboolean; g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean2827 pub fn g_hash_table_contains(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; g_hash_table_destroy(hash_table: *mut GHashTable)2828 pub fn g_hash_table_destroy(hash_table: *mut GHashTable); g_hash_table_find( hash_table: *mut GHashTable, predicate: GHRFunc, user_data: gpointer, ) -> gpointer2829 pub fn g_hash_table_find( 2830 hash_table: *mut GHashTable, 2831 predicate: GHRFunc, 2832 user_data: gpointer, 2833 ) -> gpointer; g_hash_table_foreach(hash_table: *mut GHashTable, func: GHFunc, user_data: gpointer)2834 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_uint2835 pub fn g_hash_table_foreach_remove( 2836 hash_table: *mut GHashTable, 2837 func: GHRFunc, 2838 user_data: gpointer, 2839 ) -> c_uint; g_hash_table_foreach_steal( hash_table: *mut GHashTable, func: GHRFunc, user_data: gpointer, ) -> c_uint2840 pub fn g_hash_table_foreach_steal( 2841 hash_table: *mut GHashTable, 2842 func: GHRFunc, 2843 user_data: gpointer, 2844 ) -> c_uint; g_hash_table_get_keys(hash_table: *mut GHashTable) -> *mut GList2845 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 gpointer2846 pub fn g_hash_table_get_keys_as_array( 2847 hash_table: *mut GHashTable, 2848 length: *mut c_uint, 2849 ) -> *mut gpointer; g_hash_table_get_values(hash_table: *mut GHashTable) -> *mut GList2850 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, ) -> gboolean2851 pub fn g_hash_table_insert( 2852 hash_table: *mut GHashTable, 2853 key: gpointer, 2854 value: gpointer, 2855 ) -> gboolean; g_hash_table_lookup(hash_table: *mut GHashTable, key: gconstpointer) -> gpointer2856 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, ) -> gboolean2857 pub fn g_hash_table_lookup_extended( 2858 hash_table: *mut GHashTable, 2859 lookup_key: gconstpointer, 2860 orig_key: *mut gpointer, 2861 value: *mut gpointer, 2862 ) -> gboolean; g_hash_table_new(hash_func: GHashFunc, key_equal_func: GEqualFunc) -> *mut GHashTable2863 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 GHashTable2864 pub fn g_hash_table_new_full( 2865 hash_func: GHashFunc, 2866 key_equal_func: GEqualFunc, 2867 key_destroy_func: GDestroyNotify, 2868 value_destroy_func: GDestroyNotify, 2869 ) -> *mut GHashTable; g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable2870 pub fn g_hash_table_ref(hash_table: *mut GHashTable) -> *mut GHashTable; g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean2871 pub fn g_hash_table_remove(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; g_hash_table_remove_all(hash_table: *mut GHashTable)2872 pub fn g_hash_table_remove_all(hash_table: *mut GHashTable); g_hash_table_replace( hash_table: *mut GHashTable, key: gpointer, value: gpointer, ) -> gboolean2873 pub fn g_hash_table_replace( 2874 hash_table: *mut GHashTable, 2875 key: gpointer, 2876 value: gpointer, 2877 ) -> gboolean; g_hash_table_size(hash_table: *mut GHashTable) -> c_uint2878 pub fn g_hash_table_size(hash_table: *mut GHashTable) -> c_uint; g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean2879 pub fn g_hash_table_steal(hash_table: *mut GHashTable, key: gconstpointer) -> gboolean; g_hash_table_steal_all(hash_table: *mut GHashTable)2880 pub fn g_hash_table_steal_all(hash_table: *mut GHashTable); 2881 #[cfg(any(feature = "v2_58", feature = "dox"))] g_hash_table_steal_extended( hash_table: *mut GHashTable, lookup_key: gconstpointer, stolen_key: *mut gpointer, stolen_value: *mut gpointer, ) -> gboolean2882 pub fn g_hash_table_steal_extended( 2883 hash_table: *mut GHashTable, 2884 lookup_key: gconstpointer, 2885 stolen_key: *mut gpointer, 2886 stolen_value: *mut gpointer, 2887 ) -> gboolean; g_hash_table_unref(hash_table: *mut GHashTable)2888 pub fn g_hash_table_unref(hash_table: *mut GHashTable); 2889 2890 //========================================================================= 2891 // GHashTableIter 2892 //========================================================================= g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable2893 pub fn g_hash_table_iter_get_hash_table(iter: *mut GHashTableIter) -> *mut GHashTable; g_hash_table_iter_init(iter: *mut GHashTableIter, hash_table: *mut GHashTable)2894